/* Call Captain website — IBM blue accent, Apple-like type and spacing, light + dark.
   No inline styles anywhere (the CSP blocks them): every visual lives here. */

/* ============ tokens ============ */
:root {
  --blue: #0f62fe; --blue-hover: #0353e9; --blue-deep: #002d9c; --blue-soft: #edf5ff; --blue-tint: #d0e2ff;
  --accent: var(--blue); --accent-ink: #fff;
  --bg: #ffffff; --bg-2: #f5f5f7; --surface: #ffffff; --surface-2: #fbfbfd; --line: #e5e5ea; --line-2: #d2d2d7;
  --ink: #1d1d1f; --ink-2: #6e6e73; --ink-3: #8e8e93;
  --green: #198038; --green-soft: #defbe6; --red: #da1e28; --red-soft: #fff1f1; --grey-soft: #f2f2f7;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.04), 0 2px 8px rgba(0,0,0,.04);
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 12px 32px rgba(0,0,0,.07);
  --shadow-lg: 0 24px 64px rgba(15,98,254,.16);
  --radius: 20px; --radius-sm: 12px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", "IBM Plex Sans", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2,.7,.2,1);
}
@media (prefers-color-scheme: dark) {
  :root {
    --blue: #4589ff; --blue-hover: #78a9ff; --blue-deep: #0f62fe; --blue-soft: #0f2a5c; --blue-tint: #1c3f80;
    --bg: #000; --bg-2: #0d0d0f; --surface: #1c1c1e; --surface-2: #161618; --line: #2f2f33; --line-2: #3a3a3e;
    --ink: #f5f5f7; --ink-2: #a1a1a6; --ink-3: #86868b;
    --green: #42be65; --green-soft: #0e2a17; --red: #ff8389; --red-soft: #3a1214; --grey-soft: #2c2c2e;
    --shadow-sm: none; --shadow: 0 0 0 1px rgba(255,255,255,.04); --shadow-lg: 0 24px 64px rgba(69,137,255,.18);
  }
}

/* ============ base ============ */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.55 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body.nav-open { overflow: hidden; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
img, svg { max-width: 100%; }
h1, h2, h3 { color: var(--ink); }
h1 { font-size: clamp(40px, 6.6vw, 76px); line-height: 1.03; letter-spacing: -.04em; margin: 0 0 22px; font-weight: 760; }
h2 { font-size: clamp(32px, 4.6vw, 52px); line-height: 1.07; letter-spacing: -.032em; margin: 0 0 16px; font-weight: 730; }
h3 { font-size: 20px; line-height: 1.25; letter-spacing: -.015em; margin: 0 0 8px; font-weight: 650; }
p { margin: 0 0 14px; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }
.center { text-align: center; }
.muted { color: var(--ink-2); }
.small { font-size: 14px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 8px; }
.eyebrow { color: var(--accent); font-weight: 650; font-size: 15px; letter-spacing: .01em; margin: 0 0 10px; }
.lead { font-size: clamp(19px, 2.1vw, 23px); line-height: 1.42; color: var(--ink-2); max-width: 720px; margin: 0 0 28px; }
.center .lead { margin-left: auto; margin-right: auto; }
.icon { width: 22px; height: 22px; flex: none; }
.icon.big { width: 34px; height: 34px; color: var(--accent); margin-bottom: 14px; }
.icon.huge { width: 64px; height: 64px; }

/* ============ buttons ============ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 980px; padding: 11px 22px;
  font: 600 16px/1.2 var(--font); cursor: pointer; background: var(--accent); color: var(--accent-ink); min-height: 44px; white-space: nowrap;
  transition: background .2s, transform .2s var(--ease), box-shadow .2s; }
.btn:hover { background: var(--blue-hover); text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn:active { transform: none; }
.btn .icon { width: 18px; height: 18px; }
.btn.secondary { background: var(--grey-soft); color: var(--ink); }
.btn.secondary:hover { background: var(--line); box-shadow: none; }
.btn.small { padding: 8px 15px; min-height: 36px; font-size: 14px; }
.btn.big { padding: 15px 28px; font-size: 18px; min-height: 54px; }
.btn.full { width: 100%; }
.btn.light { background: #fff; color: #0f62fe; }
.btn.light:hover { background: #edf5ff; }
.btn.ghost-light { background: rgba(255,255,255,.12); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.4); }
.btn.ghost-light:hover { background: rgba(255,255,255,.2); }
.btn:disabled { opacity: .55; cursor: default; transform: none; }
.more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; margin-top: 8px; }
.more .icon { width: 17px; height: 17px; transition: transform .2s var(--ease); }
.more:hover .icon { transform: translateX(3px); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.center-actions { justify-content: center; }
.demo-note { font-size: 15px; color: var(--ink-2); max-width: 520px; }

/* ============ header ============ */
.top { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.top.scrolled { border-bottom-color: var(--line); }
.top-row { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); flex: none; }
.brand:hover { text-decoration: none; }
.brand picture { display: block; line-height: 0; }
/* Brand kit logo, used as-is (never stretched): height sets the size, width follows. */
.brand .logo { display: block; height: 30px; width: auto; }
.foot .brand .logo { height: 32px; }
@media (max-width: 339px) { .top .brand .logo { height: 34px; } } /* wheel-only mark on very narrow phones */
.modal-mark { display: block; width: 44px; height: 44px; margin: 0 auto 12px; }
.nav { display: flex; align-items: center; gap: 16px; flex: 1; }
.nav-list { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; flex: 1; }
.nav-link { display: inline-flex; align-items: center; gap: 3px; padding: 8px 12px; border-radius: 10px; border: 0; background: none;
  font: 500 15px/1.2 var(--font); color: var(--ink-2); cursor: pointer; }
.nav-link:hover, .nav-link[aria-expanded="true"], .nav-link.is-current { color: var(--ink); text-decoration: none; background: var(--grey-soft); }
.chev { width: 15px; height: 15px; transition: transform .2s var(--ease); }
.has-menu { position: relative; }
.nav-link[aria-expanded="true"] .chev { transform: rotate(180deg); }
.dropdown { position: absolute; top: calc(100% + 10px); left: -12px; min-width: 320px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 18px; box-shadow: var(--shadow); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s, transform .18s var(--ease), visibility .18s; }
.dropdown ul { list-style: none; margin: 0; padding: 0; }
.dropdown a { display: block; padding: 10px 12px; border-radius: 12px; color: var(--ink); }
.dropdown a:hover, .dropdown a[aria-current="page"] { background: var(--blue-soft); text-decoration: none; }
.dropdown strong { display: block; font-weight: 600; font-size: 15px; }
.dropdown span { display: block; font-size: 13px; color: var(--ink-2); }
.has-menu:hover .dropdown, .has-menu:focus-within .dropdown, .nav-link[aria-expanded="true"] + .dropdown { opacity: 1; visibility: visible; transform: none; }
.js .has-menu:not(:hover) .nav-link[aria-expanded="false"] + .dropdown { opacity: 0; visibility: hidden; }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-login { color: var(--ink-2); font-weight: 500; font-size: 15px; }
.nav-login:hover { color: var(--ink); }
.nav-demo { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 600; font-size: 15px; white-space: nowrap; }
.nav-demo .icon { width: 18px; height: 18px; }
@media (max-width: 1240px) and (min-width: 961px) { .nav-demo .num { display: none; } }
@media (max-width: 1100px) and (min-width: 961px) {
  .nav-demo > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .nav-demo { width: 36px; height: 36px; justify-content: center; border-radius: 50%; background: var(--blue-soft); }
}
/* Industries: two labeled columns + a footer row (desktop dropdown). */
.dropdown.wide { min-width: 560px; padding: 14px; }
.dd-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; }
.dd-title { margin: 2px 12px 6px; font-size: 13px; font-weight: 650; color: var(--ink-2); text-transform: uppercase; letter-spacing: .04em; }
.dropdown.wide a { padding: 7px 12px; font-size: 15px; font-weight: 500; }
.dd-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 8px; }
.dd-foot a { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 600; }
.dd-foot .icon { width: 16px; height: 16px; }

.menu-toggle { display: none; margin-left: auto; width: 48px; height: 48px; border-radius: 12px; align-items: center; justify-content: center; color: var(--ink); }
.menu-toggle .icon { width: 26px; height: 26px; }
.menu-toggle .shut { display: none; }
.nav-open .menu-toggle .open { display: none; }
.nav-open .menu-toggle .shut { display: block; }
html.menu-lock, html.menu-lock body { overflow: hidden; } /* the page behind the open menu doesn't scroll */

/* ---------- phone menu: full-width panel under the header ---------- */
@media (max-width: 960px) {
  /* backdrop-filter would make the header the containing block for the fixed panel
     (the panel then sized to the 64px header and pushed the page wider than the screen). */
  .top { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); }
  .menu-toggle { display: inline-flex; }
  .nav { display: none; position: fixed; top: 64px; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--bg);
    border-top: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0;
    padding: 0 20px calc(28px + env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior: contain; }
  .nav-open .nav { display: flex; }
  .nav-list { flex-direction: column; flex: none; gap: 0; }
  .nav-list > li { border-bottom: 1px solid var(--line); }
  .nav-link { width: 100%; min-height: 56px; justify-content: space-between; padding: 14px 4px; border-radius: 0;
    font-size: 19px; font-weight: 600; color: var(--ink); background: none !important; }
  .chev { display: block; width: 24px; height: 24px; }
  /* Sections open by tap only (not hover) */
  .dropdown, .dropdown.wide, .js .has-menu:not(:hover) .nav-link[aria-expanded="false"] + .dropdown {
    display: none; position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0;
    border-radius: 0; padding: 0 0 10px; min-width: 0; background: none; }
  .nav-link[aria-expanded="true"] + .dropdown { display: block; }
  .dd-cols { grid-template-columns: 1fr; gap: 0; }
  .dd-title { margin: 14px 4px 4px; font-size: 14px; }
  .dropdown li { border-top: 1px solid var(--line); }
  .dropdown a, .dropdown.wide a { display: flex; flex-direction: column; justify-content: center; min-height: 52px; padding: 10px 4px 10px 14px;
    border-radius: 0; font-size: 18px; font-weight: 500; color: var(--ink); }
  .dropdown strong { font-size: 18px; font-weight: 500; }
  .dropdown span { font-size: 15px; }
  .dd-foot { flex-direction: column; gap: 0; margin-top: 0; padding-top: 0; }
  .dd-foot a { flex-direction: row; justify-content: flex-start; min-height: 52px; padding: 10px 4px 10px 14px; font-size: 18px; border-top: 1px solid var(--line); }
  .nav-actions { flex-direction: column; align-items: stretch; margin-top: auto; padding-top: 24px; gap: 12px; }
  .nav-actions a { width: 100%; }
  .nav-demo { justify-content: center; min-height: 52px; border-radius: 980px; background: var(--grey-soft); color: var(--ink); font-size: 18px; }
  .nav-login { display: flex; align-items: center; justify-content: center; min-height: 52px; border-radius: 980px;
    box-shadow: inset 0 0 0 1.5px var(--line-2); color: var(--ink); font-size: 18px; font-weight: 600; }
  .nav-actions .btn.nav-signup { min-height: 52px; font-size: 18px; }
}

/* ============ hero ============ */
.hero { position: relative; overflow: hidden; padding: 96px 0 88px; }
.hero-bg { position: absolute; inset: -20% -10% auto; height: 120%; z-index: -1;
  background:
    radial-gradient(40% 50% at 78% 30%, color-mix(in srgb, var(--blue) 22%, transparent), transparent 70%),
    radial-gradient(30% 40% at 12% 10%, color-mix(in srgb, #8a3ffc 12%, transparent), transparent 70%),
    radial-gradient(50% 50% at 50% 100%, color-mix(in srgb, var(--blue) 8%, transparent), transparent 70%); }
.hero-grid { display: grid; gap: 48px; align-items: center; }
.hero-split .hero-grid { grid-template-columns: 1.05fr .95fr; }
.hero:not(.hero-split) .hero-copy { max-width: 820px; }
@media (max-width: 900px) { .hero-split .hero-grid { grid-template-columns: 1fr; } .hero { padding: 64px 0 56px; } }

/* ============ sections ============ */
.section { padding: 104px 0; }
.section.alt { background: var(--bg-2); }
@media (max-width: 700px) { .section { padding: 72px 0; } }
.section-head { margin-bottom: 52px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .g3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .g2, .g3 { grid-template-columns: 1fr; } }
.stack { display: grid; gap: 18px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 28px; }
.card p { color: var(--ink-2); margin: 0; }
.card h3 .icon { width: 20px; height: 20px; vertical-align: -3px; color: var(--accent); margin-right: 4px; }
.card.plain { transition: transform .25s var(--ease), box-shadow .25s; }
.card.plain:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.tag { display: inline-block; font-size: 12px; font-weight: 650; padding: 3px 10px; border-radius: 999px; background: var(--grey-soft); color: var(--ink-2); vertical-align: 2px; letter-spacing: .01em; }

/* features */
.feature { display: flex; flex-direction: column; transition: transform .25s var(--ease), box-shadow .25s; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature p { flex: 1; }
.feature-icon { width: 48px; height: 48px; border-radius: 14px; background: var(--blue-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 18px; }
.feature.is-soon { background: transparent; border-style: dashed; box-shadow: none; }
.feature.is-soon .feature-icon { background: var(--grey-soft); color: var(--ink-3); }

/* steps */
.steps { list-style: none; padding: 0; margin: 0 0 32px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.step p { color: var(--ink-2); margin: 0; }
.step-num { position: absolute; top: 22px; right: 24px; font-size: 44px; font-weight: 800; letter-spacing: -.04em; color: var(--blue-tint); line-height: 1; }
.step-icon { width: 52px; height: 52px; border-radius: 16px; background: linear-gradient(135deg, var(--blue), var(--blue-deep)); color: #fff; display: grid; place-items: center; margin-bottom: 20px; box-shadow: var(--shadow-lg); }

/* checks */
.checks { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks .icon { width: 20px; height: 20px; color: var(--accent); margin-top: 3px; }

/* tabs */
.tab-list { display: flex; gap: 8px; overflow-x: auto; padding: 4px; margin: 0 auto 28px; width: fit-content; max-width: 100%;
  background: var(--grey-soft); border-radius: 16px; scrollbar-width: none; }
.tab-list::-webkit-scrollbar { display: none; }
.tab-list [role=tab] { display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; border-radius: 12px; padding: 10px 16px;
  font: 600 15px/1.2 var(--font); color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.tab-list [role=tab] .icon { width: 18px; height: 18px; }
.tab-list [role=tab][aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.tab-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 36px; box-shadow: var(--shadow-sm); }
.tab-panel + .tab-panel { margin-top: 18px; }
.tab-panel h3 { margin-top: 18px; }
.tab-panel h3:first-child { margin-top: 0; }
.tab-panel p { color: var(--ink-2); }
.tab-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 860px) { .tab-grid { grid-template-columns: 1fr; } .tab-panel { padding: 24px; } }

/* conversation */
.convo { margin: 0; background: var(--surface-2); border: 1px solid var(--line); border-radius: 24px; padding: 22px; }
.convo figcaption { font-size: 13px; color: var(--ink-3); margin-bottom: 14px; }
.convo ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.bubble { max-width: 86%; padding: 10px 14px; border-radius: 20px; font-size: 15px; line-height: 1.45; }
.bubble .who { display: block; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; opacity: .65; margin-bottom: 2px; }
.bubble.ava { align-self: flex-start; background: var(--grey-soft); border-bottom-left-radius: 6px; }
.bubble.caller { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 6px; }
#example-call ol { max-height: 560px; overflow-y: auto; padding-right: 4px; }

/* plans */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; } }
.plan { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 32px; }
.plan .price { font-size: 56px; font-weight: 780; letter-spacing: -.045em; line-height: 1; }
.plan .price small { font-size: 18px; font-weight: 500; color: var(--ink-2); letter-spacing: 0; }
.plan .mins { font-weight: 650; }
.plan .who { flex: 1; }
.plan.featured { border: 2px solid var(--accent); box-shadow: var(--shadow-lg); }
.plan-flag { position: absolute; top: -13px; left: 28px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.overage { margin-top: 22px; }

/* compare table */
.table-wrap { overflow-x: auto; border-radius: 20px; border: 1px solid var(--line); background: var(--surface); }
.compare { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 15px; }
.compare th, .compare td { padding: 15px 18px; text-align: center; border-bottom: 1px solid var(--line); }
.compare tbody tr:last-child > * { border-bottom: 0; }
.compare th[scope=row] { text-align: left; font-weight: 500; color: var(--ink-2); }
.compare thead th { font-size: 17px; font-weight: 700; }
.compare .yes { color: var(--accent); }
@media (max-width: 600px) {
  .compare { min-width: 0; font-size: 13px; }
  .compare th, .compare td { padding: 11px 6px; }
  .compare thead th { font-size: 13px; }
  .compare th[scope=row] { width: 38%; }
}

/* calculator */
.calc { display: grid; gap: 24px; padding: 32px; }
.calc-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 500px) { .calc-inputs { grid-template-columns: 1fr; } }
.calc-out { background: linear-gradient(135deg, var(--blue), var(--blue-deep)); color: #fff; border-radius: 18px; padding: 24px; }
.calc-label { display: block; font-size: 14px; font-weight: 600; opacity: .85; }
.calc-num { display: block; font-size: clamp(42px, 6vw, 60px); font-weight: 780; letter-spacing: -.04em; line-height: 1.1; margin: 6px 0 10px; font-variant-numeric: tabular-nums; }
.calc-note { display: block; font-size: 13px; opacity: .85; line-height: 1.45; }

/* integration pills */
.badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 24px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; font-weight: 600; font-size: 15px; background: var(--surface); border: 1px solid var(--line); }
.pill small { font-weight: 500; color: var(--ink-3); font-size: 12px; }
.pill .icon { width: 16px; height: 16px; color: var(--green); }
.pill.soon { background: transparent; border-style: dashed; color: var(--ink-2); }

/* faq */
.faq { max-width: 820px; margin: 0 auto 28px; }
.faq details { border-top: 1px solid var(--line); padding: 20px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 650; font-size: 19px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 12px; height: 12px; flex: none; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg) translate(-3px, -3px); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(225deg) translate(-3px, -3px); }
.faq p { color: var(--ink-2); margin: 12px 0 0; max-width: 720px; }

/* call-to-action band */
.cta-band { position: relative; overflow: hidden; text-align: center; color: #fff; border-radius: 32px; padding: 72px 24px;
  background: linear-gradient(135deg, #0f62fe 0%, #0043ce 55%, #002d9c 100%); }
.cta-glow { position: absolute; inset: 0; background: radial-gradient(40% 60% at 80% 0%, rgba(255,255,255,.22), transparent 70%), radial-gradient(30% 50% at 10% 100%, rgba(138,63,252,.35), transparent 70%); pointer-events: none; }
.cta-band h2 { color: #fff; position: relative; }
.cta-band p { position: relative; color: rgba(255,255,255,.88); font-size: 19px; max-width: 620px; margin: 0 auto 28px; }
.cta-band .actions { position: relative; }

/* industry hero art */
.industry-art { position: relative; }
.industry-badge { position: absolute; top: -26px; right: -10px; width: 96px; height: 96px; border-radius: 28px; display: grid; place-items: center;
  color: #fff; background: linear-gradient(135deg, var(--blue), var(--blue-deep)); box-shadow: var(--shadow-lg); z-index: 1; }
.industry-badge .icon { width: 48px; height: 48px; }
.industry-art .convo figcaption { padding-right: 96px; min-height: 56px; }
@media (max-width: 600px) {
  .industry-badge { width: 72px; height: 72px; border-radius: 22px; top: -20px; right: 8px; }
  .industry-badge .icon { width: 36px; height: 36px; }
  .industry-art .convo figcaption { padding-right: 76px; }
}

/* setup list */
.setup { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 14px; }
.setup li { counter-increment: s; position: relative; padding: 18px 20px 18px 64px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; color: var(--ink-2); }
.setup li strong { color: var(--ink); }
.setup li::before { content: counter(s); position: absolute; left: 18px; top: 16px; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: 15px; }

/* about */
.founder { text-align: center; }
.founder-photo { width: 128px; height: 128px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: var(--grey-soft); color: var(--ink-3); border: 2px dashed var(--line-2); }

/* forms */
form.start { max-width: 760px; margin: 0 auto; padding: 32px; }
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-size: 14px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
input, select, textarea { width: 100%; font: inherit; font-size: 16px; color: inherit; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 12px 14px; min-height: 48px; transition: border-color .15s, box-shadow .15s; }
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 20%, transparent); }
.invalid input, .invalid select, .invalid textarea { border-color: var(--red); }
.err { color: var(--red); font-size: 14px; margin-top: 6px; }
.notice { padding: 14px 16px; border-radius: 12px; background: var(--blue-soft); margin-bottom: 18px; }
.notice.bad { background: var(--red-soft); color: var(--red); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.fine { margin: 14px 0 0; font-size: 14px; color: var(--ink-2); }
.done { max-width: 760px; margin: 0 auto; padding: 48px 28px; }
.done-check { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: var(--green-soft); color: var(--green); }
.done-check .icon { width: 32px; height: 32px; }

/* sign-up section: with JS the form lives in the dialog; without JS it's inline here */
.inline-cta { display: none; }
.js .inline-cta { display: block; }
.js .inline-form { display: none; }
.inline-cta .fine { text-align: center; }

/* ============ sign-up dialog ============ */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 24px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.42); backdrop-filter: blur(8px) saturate(140%); -webkit-backdrop-filter: blur(8px) saturate(140%);
  opacity: 0; transition: opacity .22s ease; }
.modal-card { position: relative; width: min(640px, 100%); max-height: calc(100vh - 48px); overflow-y: auto; overscroll-behavior: contain;
  background: var(--surface); border-radius: 28px; box-shadow: 0 30px 80px rgba(0,0,0,.28); padding: 32px 32px 28px;
  opacity: 0; transform: translateY(14px) scale(.97); transition: opacity .22s ease, transform .26s var(--ease); }
.modal.is-open .modal-backdrop { opacity: 1; }
.modal.is-open .modal-card { opacity: 1; transform: none; }
.modal-close { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--grey-soft);
  color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: background .15s; }
.modal-close:hover { background: var(--line); }
.modal-close .icon { width: 18px; height: 18px; }
.modal-head { text-align: center; margin: 4px 0 22px; padding: 0 28px; }
.modal-head picture { display: inline-block; line-height: 0; }
.modal-head h2 { font-size: clamp(24px, 3.2vw, 30px); margin-bottom: 8px; }
.modal-head p { color: var(--ink-2); margin: 0; }
.modal form.start { padding: 0; max-width: none; }
.modal .done { padding: 24px 8px 12px; outline: none; }
body.modal-open { overflow: hidden; }
@media (max-width: 600px) {
  .modal { padding: 0; place-items: end stretch; }
  .modal-card { width: 100%; max-height: 100dvh; height: 100dvh; border-radius: 0; padding: 20px 18px calc(24px + env(safe-area-inset-bottom));
    transform: translateY(40px); }
  .modal-head { margin-top: 28px; padding: 0 8px; }
}

/* legal */
.doc { max-width: 780px; }
.doc h1 { font-size: clamp(36px, 5vw, 48px); margin-top: 18px; }
.doc h2 { font-size: 24px; margin-top: 36px; }
.doc li { color: var(--ink-2); margin-bottom: 8px; }
.draft { border: 2px solid var(--red); color: var(--red); background: var(--red-soft); border-radius: 14px; padding: 14px 18px; font-weight: 650; }

/* footer */
.foot { border-top: 1px solid var(--line); background: var(--bg-2); padding: 64px 0 40px; font-size: 14px; color: var(--ink-2); }
.foot-top { display: grid; grid-template-columns: 1.4fr repeat(5, 1fr); gap: 28px; }
@media (max-width: 980px) { .foot-top { grid-template-columns: 1fr 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .foot-top { grid-template-columns: 1fr 1fr; } }
.foot-brand p { margin: 12px 0 14px; }
.foot-demo { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; }
.foot-demo .icon { width: 18px; height: 18px; }
.foot-col h2 { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink); margin: 6px 0 12px; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.foot-col a { color: var(--ink-2); }
.foot-col a:hover { color: var(--ink); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--ink-3); }

/* ============ illustrations (SVG classes) ============ */
.art { width: 100%; height: auto; display: block; overflow: visible; }
.a-panel { fill: var(--surface); stroke: var(--line); stroke-width: 1.5; filter: drop-shadow(0 10px 24px rgba(15,98,254,.10)); }
.a-panel-soft { fill: var(--surface-2); stroke: var(--line); }
.a-panel-blue { fill: var(--blue-soft); stroke: var(--blue-tint); }
.a-soon { stroke-dasharray: 5 5; fill: transparent; }
.a-blue { fill: var(--blue); }
.a-blue-soft { fill: var(--blue-soft); }
.a-green { fill: var(--green); }
.a-white { fill: #fff; }
.a-tick { fill: none; stroke: #fff; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.a-ring { fill: none; stroke: var(--blue); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: ring 2.4s var(--ease) infinite; }
.a-ring.r2 { animation-delay: 1.2s; }
.a-bubble { fill: var(--grey-soft); }
.a-bubble-me { fill: var(--blue); }
.a-text, .a-text-me, .a-label, .a-strong, .a-cal-day, .a-cal-num, .a-big, .a-badge-t, .a-white-t { font-family: var(--font); }
.a-text { fill: var(--ink); font-size: 15px; }
.a-text-me { fill: #fff; font-size: 15px; }
.a-label { fill: var(--ink-2); font-size: 13px; }
.a-strong { fill: var(--ink); font-size: 16px; font-weight: 650; }
.a-strong.small { font-size: 14px; }
.a-cal-day { fill: var(--blue); font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.a-cal-num { fill: var(--blue); font-size: 22px; font-weight: 800; }
.a-big { fill: var(--ink); font-size: 30px; font-weight: 780; }
.a-blue-t { fill: var(--blue); }
.a-red-t { fill: var(--red); }
.a-badge-t { fill: var(--ink); font-size: 12px; font-weight: 650; }
.a-white-t { fill: #fff; font-size: 15px; font-weight: 700; }
.a-white-t.small { font-size: 11px; font-weight: 600; }
.a-flow { fill: none; stroke: var(--blue-tint); stroke-width: 3; stroke-dasharray: 6 10; animation: flow 1.6s linear infinite; }
.a-line { fill: none; stroke: var(--blue); stroke-width: 2.5; stroke-linecap: round; opacity: .55; }
.a-line.dashed { stroke-dasharray: 6 8; opacity: .4; }
.a-open { fill: var(--blue-soft); opacity: .6; }
.a-busy { fill: var(--grey-soft); }
.a-rule { stroke: var(--line); }
.a-dot { fill: var(--line-2); }
.a-green-soft { fill: var(--green-soft); } .a-red-soft { fill: var(--red-soft); } .a-grey-soft { fill: var(--grey-soft); }
.a-wave { fill: var(--blue); transform-box: fill-box; transform-origin: center; animation: wave 1.4s ease-in-out infinite; }
.a-wave.w1 { animation-delay: .1s; } .a-wave.w2 { animation-delay: .2s; } .a-wave.w3 { animation-delay: .3s; } .a-wave.w4 { animation-delay: .4s; } .a-wave.w5 { animation-delay: .5s; }

/* staged entrance for illustration parts */
.a-in { opacity: 0; animation: rise .7s var(--ease) forwards; transform-box: fill-box; }
.a-pop { opacity: 0; transform-box: fill-box; transform-origin: center; animation: pop .5s var(--ease) forwards; }
.s0 { animation-delay: .15s; } .s1 { animation-delay: .7s; } .s2 { animation-delay: 1.3s; } .s3 { animation-delay: 1.9s; } .s4 { animation-delay: 2.5s; } .s5 { animation-delay: 3.1s; }

@keyframes ring { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.9); opacity: 0; } }
@keyframes flow { to { stroke-dashoffset: -32; } }
@keyframes wave { 0%, 100% { transform: scaleY(.55); } 50% { transform: scaleY(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { opacity: 0; transform: scale(.4); } 70% { opacity: 1; transform: scale(1.12); } 100% { opacity: 1; transform: scale(1); } }

/* ============ scroll reveal (only when JS is running) ============ */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.grid > .reveal:nth-child(2), .steps > .reveal:nth-child(2) { transition-delay: .08s; }
.grid > .reveal:nth-child(3), .steps > .reveal:nth-child(3) { transition-delay: .16s; }
.steps > .reveal:nth-child(4) { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .a-ring { display: none; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ============ sign-up: "What's your industry?" (only for Other, once JS runs) ============ */
.js .other-industry:not(.is-on) { display: none; }
.js .nojs-only { display: none; }

/* ============ /industries ============ */
.industry-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.industry-card { display: flex; align-items: center; gap: 12px; padding: 16px 18px; min-height: 60px; color: var(--ink); font-weight: 600; font-size: 17px; }
.industry-card:hover { text-decoration: none; box-shadow: var(--shadow); }
.industry-card .icon { color: var(--accent); }
.industry-card .go { margin-left: auto; width: 18px; height: 18px; color: var(--ink-3); }
.tell-us .lead { margin-left: auto; margin-right: auto; }

/* ============ phones: nothing under 14px, tap targets at least 44px ============ */
@media (max-width: 720px) {
  .tag, .convo figcaption, .bubble .who, .plan-flag, .foot-col h2, .compare thead th, .compare th, .compare td,
  .calc-note, .pill small { font-size: 14px; }
  .bubble .who { letter-spacing: .02em; }
  .brand { min-width: 44px; }
  .more, .foot-demo { min-height: 44px; margin-top: 0; }
  .tab-list [role=tab] { min-height: 44px; }
  .faq summary { min-height: 44px; }
  .foot-col ul { gap: 0; }
  .foot-col a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
}
