/* Call Firewall pages: the app's own look (charcoal, flame orange, white).
   Loaded after site.css, which supplies the layout. Change product colours here. */
body.cf {
  --cf-bg: #0e1014;
  --cf-panel: #171a1f;
  --cf-card: #1e2229;
  --cf-line: #2e333b;
  --cf-text: #eceef1;
  --cf-muted: #b4b8bf;
  --cf-flame: #ff7a1f;
  --cf-ember: #ffb35c;
  --cf-on-flame: #1f0b00;
  background: var(--cf-bg);
  color: var(--cf-text);
}
.cf a { color: var(--cf-ember); }
.cf a:focus-visible, .cf button:focus-visible, .cf summary:focus-visible, .cf textarea:focus-visible {
  outline: 3px solid var(--cf-ember); outline-offset: 3px; border-radius: 4px;
}

/* Larger, easier reading text on the Call Firewall pages */
body.cf { font-size: 18px; }
.cf .lead { font-size: 21px; }
.cf .section-intro { font-size: 19px; }
.cf h3 { font-size: 20px; }
.cf .tile p, .cf .steps li { font-size: 17.5px; }
.cf .steps strong { font-size: 19.5px; }
.cf .plain-list li, .cf .check-list li { font-size: 18px; }
.cf .reading p, .cf .reading li { font-size: 18px; }

/* Header */
.cf-header { position: sticky; top: 0; z-index: 5; background: var(--cf-bg); border-bottom: 1px solid var(--cf-line); }
.cf-header::after { content: ""; display: block; height: 2px; background: linear-gradient(90deg, #ffb35c, #ff7a1f 45%, #b8420a); }
.cf-header .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 70px; }
.cf-brand { white-space: nowrap; display: inline-flex; align-items: center; gap: 12px; color: var(--cf-text) !important; font-size: 20px; font-weight: 600; text-decoration: none; }
.cf-brand img { border-radius: 10px; }
.cf-nav { display: flex; align-items: center; gap: 24px; }
.cf-nav a { color: var(--cf-muted); font-size: 16.5px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.cf-nav a:hover { color: var(--cf-text); }
.cf-nav .by { padding-left: 20px; border-left: 1px solid var(--cf-line); font-size: 15.5px; }
.cf-nav .by strong { color: var(--cf-text); font-weight: 600; }

/* Sections */
.cf .section { padding: 72px 0; }
.cf .alt { background: var(--cf-panel); }
.cf h1, .cf h2, .cf h3 { color: var(--cf-text); }
.cf .section-intro, .cf .lead { color: var(--cf-muted); }
.cf .eyebrow { color: var(--cf-ember); }

.cf-hero { padding: 80px 0 72px; background: radial-gradient(ellipse at 85% 20%, rgba(255, 122, 31, 0.14), transparent 55%), var(--cf-bg); }
.cf-hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.cf-hero h1 { font-size: clamp(34px, 5vw, 52px); }
.cf-facts { display: flex; flex-wrap: wrap; gap: 8px 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.cf-facts li { padding: 7px 14px; border: 1px solid var(--cf-line); border-radius: 999px; color: var(--cf-text); font-size: 15.5px; }
.cf-btn {
  display: inline-block; margin-top: 28px; padding: 13px 22px; border-radius: 10px;
  background: var(--cf-flame); color: var(--cf-on-flame) !important; font-weight: 700; text-decoration: none;
}
.cf-btn.soon { background: transparent; border: 1px solid #5a616b; color: var(--cf-text) !important; font-weight: 600; }

.cf .tile { background: var(--cf-card); border-color: var(--cf-line); }
.cf .tile p, .cf .steps li, .cf .plain-list, .cf .check-list li { color: var(--cf-muted); }
.cf .steps strong { color: var(--cf-text); }
.cf .steps li::before { background: var(--cf-flame); color: var(--cf-on-flame); }
.cf .check-list li::before { color: var(--cf-flame); }

/* "Try it" demo */
.demo { display: grid; grid-template-columns: minmax(280px, 0.9fr) 1.1fr; gap: 28px; align-items: start; }
.demo-panel { padding: 20px; border: 1px solid var(--cf-line); border-radius: 22px; background: var(--cf-bg); }
.demo-label { margin: 6px 0 8px 4px; color: var(--cf-flame); font-size: 13px; font-weight: 600; letter-spacing: 0.08em; }
.demo-card { margin-bottom: 14px; padding: 4px 0; border-radius: 16px; background: var(--cf-card); }
.demo-row {
  display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 52px; padding: 10px 16px; border: 0; background: transparent; color: var(--cf-text);
  font: inherit; font-size: 17px; text-align: left; cursor: pointer;
}
.demo-row small { display: block; color: var(--cf-muted); font-size: 14px; }
.demo-toggle { flex: none; position: relative; width: 46px; height: 26px; border-radius: 13px; background: #3a404a; transition: background 0.15s; }
.demo-toggle::after {
  content: ""; position: absolute; top: 4px; left: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: #8c929b; transition: left 0.15s, background 0.15s;
}
.demo-row[aria-checked="true"] .demo-toggle { background: var(--cf-flame); }
.demo-row[aria-checked="true"] .demo-toggle::after { left: 24px; background: var(--cf-on-flame); }
.demo-states { display: flex; flex-wrap: wrap; gap: 8px; padding: 2px 16px 12px; }
.demo-states.is-off { opacity: 0.55; }
.demo-sub { width: 100%; margin: 4px 0 2px; color: var(--cf-muted); font-size: 12.5px; letter-spacing: 0.06em; }
.demo-state {
  padding: 7px 13px; border: 1px solid var(--cf-line); border-radius: 999px; background: transparent;
  color: var(--cf-muted); font: inherit; font-size: 15px; cursor: pointer;
}
.demo-state[aria-pressed="true"] { border-color: var(--cf-flame); background: #3a1c08; color: #ffe5d0; }
.demo-state[aria-pressed="true"]::before { content: "\2713  "; }

.demo-calls { padding: 20px 22px; border: 1px solid var(--cf-line); border-radius: 22px; background: var(--cf-card); }
.demo-calls-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; }
.demo-calls h3 { margin: 0; }
.demo-summary { margin: 0; color: var(--cf-ember); font-size: 15.5px; font-weight: 600; }
.demo-calls ul { margin: 12px 0 0; padding: 0; list-style: none; }
.demo-call { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--cf-line); }
.demo-num { color: var(--cf-text); font-size: 17px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.demo-num small { display: block; color: var(--cf-muted); font-size: 14px; white-space: normal; }
.demo-result {
  flex: none; padding: 6px 12px; border: 1px solid #2f5b3f; border-radius: 999px;
  background: #13261b; color: #b9f0cc; font-size: 14.5px; font-weight: 600; white-space: nowrap;
}
.demo-result::before { content: "\260E  "; }
.demo-call.is-blocked .demo-result { border-color: #6b2a10; background: #3a1407; color: #ffc9a6; }
.demo-call.is-blocked .demo-result::before { content: "\2715  "; }
.demo-call.is-blocked .demo-num { color: var(--cf-muted); text-decoration: line-through; text-decoration-color: rgba(255, 122, 31, 0.6); }
.demo-note { margin: 14px 0 0; color: var(--cf-muted); font-size: 15px; }
@media (prefers-reduced-motion: reduce) {
  .demo-toggle, .demo-toggle::after { transition: none; }
}

/* FAQ */
.faq { max-width: 820px; border-top: 1px solid var(--cf-line); }
.faq details { border-bottom: 1px solid var(--cf-line); }
.faq summary {
  position: relative; padding: 18px 40px 18px 0; cursor: pointer; list-style: none;
  color: var(--cf-text); font-size: 19px; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 14px; color: var(--cf-flame); font-size: 24px; font-weight: 400; }
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 0 18px; color: var(--cf-muted); font-size: 18px; }
.faq details > div p { margin: 0 0 10px; }

/* Help chat */
.help { max-width: 820px; border: 1px solid var(--cf-line); border-radius: 16px; background: var(--cf-card); overflow: hidden; }
.help-log { max-height: 440px; min-height: 120px; overflow-y: auto; padding: 20px; }
.msg { max-width: 88%; margin: 0 0 12px; padding: 11px 15px; border-radius: 14px; line-height: 1.55; white-space: pre-wrap; }
.msg.bot { background: var(--cf-panel); border: 1px solid var(--cf-line); color: var(--cf-text); border-top-left-radius: 4px; }
.msg.user { margin-left: auto; background: #3a1c08; border: 1px solid #5c2f10; color: #ffe5d0; border-top-right-radius: 4px; }
.msg.wait { color: var(--cf-muted); font-style: italic; }
.help-starters { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 20px 14px; }
.help-starters button {
  padding: 8px 12px; border: 1px solid var(--cf-line); border-radius: 999px; background: transparent;
  color: var(--cf-ember); font: inherit; font-size: 15.5px; cursor: pointer;
}
.help-starters button:hover { border-color: var(--cf-flame); }
.help-form { display: flex; gap: 10px; padding: 14px; border-top: 1px solid var(--cf-line); background: var(--cf-panel); }
.help-form label { position: absolute; left: -9999px; }
.help-form textarea {
  flex: 1; min-height: 48px; max-height: 140px; resize: vertical; padding: 12px 14px;
  border: 1px solid var(--cf-line); border-radius: 10px; background: var(--cf-bg); color: var(--cf-text); font: inherit;
}
.help-form textarea::placeholder { color: #8c929b; }
.help-form button {
  padding: 0 20px; border: 0; border-radius: 10px; background: var(--cf-flame); color: var(--cf-on-flame);
  font: inherit; font-weight: 700; cursor: pointer;
}
.help-form button:disabled { opacity: 0.55; cursor: wait; }
.help-note { margin: 12px 0 0; max-width: 820px; color: var(--cf-muted); font-size: 15.5px; }

/* Reading page (privacy) */
.cf .page-head { background: radial-gradient(ellipse at 85% 0%, rgba(255, 122, 31, 0.12), transparent 60%), var(--cf-panel); }
.cf .page-head p, .cf .reading p, .cf .reading li { color: var(--cf-muted); }

/* Footer */
.cf-footer { border-top: 1px solid var(--cf-line); background: #0a0c0f; color: var(--cf-muted); font-size: 16px; }
.cf-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; padding-top: 32px; padding-bottom: 32px; }
.cf-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.cf-footer nav a { color: var(--cf-text); text-decoration: none; }
.cf-footer nav a:hover { text-decoration: underline; }
.cf-made { display: inline-flex; align-items: center; gap: 10px; color: var(--cf-muted) !important; text-decoration: none; }
.cf-made img { display: block; }
.cf-legal { border-top: 1px solid var(--cf-line); }
.cf-legal .wrap { padding-top: 16px; padding-bottom: 16px; font-size: 14.5px; }

@media (max-width: 760px) {
  .cf-hero { padding: 48px 0; }
  .cf-hero .wrap { grid-template-columns: 1fr; }
  .cf .section { padding: 52px 0; }
  .cf-nav { gap: 14px; }
  .cf-nav .hide-sm { display: none; }
  .cf-nav .by { padding-left: 14px; }
  .cf-brand { font-size: 18px; gap: 10px; }
  .cf-brand img { width: 32px; height: 32px; }
  .msg { max-width: 94%; }
  .demo { grid-template-columns: 1fr; }
  .demo-call { flex-wrap: wrap; row-gap: 8px; }
}

@media (max-width: 420px) {
  .cf-nav .by { display: none; }
}
