/* Setwell — shared styles.
   Layout and sizes follow attio.com (measured at 1440px and 390px):
   framed 1392px container, Inter / Inter Display, 36px buttons with 10px radius,
   two-tone section headings (dark lead sentence + muted continuation). */

:root {
  --fg: #1c1d1f;
  --fg-2: #2e3238;
  --muted: #6f7988;
  --muted-2: #8f99a8;
  --muted-3: #b5bdc9;
  --line: #e4e7ec;
  --line-2: #d3d8df;
  --line-3: #edeff3;
  --btn-line: #cad0d9;
  --bg: #ffffff;
  --bg-soft: #fafafb;
  --bg-soft-2: #f3f4f6;
  --primary: #202124;
  --primary-line: #505967;
  --primary-fg: #f3f4f6;
  --blue: #245bc2;
  --blue-bright: #266df0;
  --blue-soft: #e8f0ff;
  --green: #1f8a4c;
  --green-soft: #e6f6ec;
  --amber: #a15c07;
  --amber-soft: #fff3dc;
  --red: #c83a3a;
  --red-soft: #fdeceb;
  --dark: #101010;
  --dark-2: #1c1d1f;
  --dark-line: #2e3238;
  --dark-muted: #8f99a8;

  --font: "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --frame: 1392px;
  --gutter: 24px;        /* page edge → frame line */
  --pad: 58px;           /* frame line → content */
  --radius: 10px;
  --radius-card: 12px;
  --shadow-card: 0 1px 2px rgba(16, 24, 40, 0.04), 0 4px 16px rgba(16, 24, 40, 0.04);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--font); font-size: 16px; line-height: 22px; font-weight: 500;
  letter-spacing: -0.01em; font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; }
button, input, select, textarea { font: inherit; letter-spacing: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--blue-bright); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 100; background: var(--primary); color: var(--primary-fg); padding: 8px 12px; border-radius: var(--radius); font-size: 14px; }
.skip:focus { top: 12px; }

/* ---------- display type (Inter at large optical size = Inter Display) ---------- */
.display { font-variation-settings: "opsz" 32; }
.h1, .h2, .h3, .h-xl { text-wrap: balance; }
.h1 { font-size: 64px; line-height: 0.95; font-weight: 600; letter-spacing: -0.02em; font-variation-settings: "opsz" 32; }
.h2 { font-size: 40px; line-height: 1.1; font-weight: 500; letter-spacing: -0.01em; font-variation-settings: "opsz" 32; }
.h2 .soft, .h3 .soft { color: var(--muted); }
.h3 { font-size: 24px; line-height: 1.15; font-weight: 500; letter-spacing: -0.01em; font-variation-settings: "opsz" 32; }
.h4 { font-size: 18px; line-height: 22px; font-weight: 500; letter-spacing: -0.01em; }
.h-xl { font-size: 56px; line-height: 1; font-weight: 500; letter-spacing: -0.015em; font-variation-settings: "opsz" 32; }
.lead { font-size: 18px; line-height: 1.3; color: var(--muted); letter-spacing: -0.01em; }
.muted { color: var(--muted); }
.small { font-size: 14px; line-height: 20px; }
.tiny { font-size: 12px; line-height: 16px; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- frame ---------- */
.frame { max-width: calc(var(--frame) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.frame > .rail { border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.sec { border-top: 1px solid var(--line); }
.sec-pad { padding: 160px var(--pad) 80px; }
.sec-pad-sm { padding: 112px var(--pad) 72px; }
.sec-head { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; max-width: 900px; }
.sec-head.center { align-items: center; text-align: center; margin: 0 auto; }
.sec-head .actions { margin-top: 12px; }

/* tag pill (Attio "Platform") */
.tag { display: inline-flex; align-items: center; height: 24px; padding: 0 6px; border-radius: 6px; background: var(--blue-soft); color: var(--blue); font-size: 14px; line-height: 20px; font-weight: 500; }
.tag.dark { background: rgba(38, 109, 240, 0.16); color: #8fb4ff; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: var(--radius); font-size: 14px; line-height: 20px; font-weight: 500; white-space: nowrap; border: 1px solid transparent; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.btn-secondary { background: var(--bg); border-color: var(--btn-line); color: var(--fg-2); }
.btn-secondary:hover { background: var(--bg-soft-2); }
.btn-primary { background: var(--primary); border-color: var(--primary-line); color: var(--primary-fg); }
.btn-primary:hover { background: #2e3238; }
.btn-lg { height: 40px; }
.btn-sm { height: 32px; padding: 0 6px 0 10px; font-size: 12px; line-height: 16px; }
.btn svg { width: 14px; height: 14px; flex: none; }
.btn-dark-secondary { background: var(--dark); border-color: var(--dark-line); color: var(--primary-fg); }
.btn-dark-secondary:hover { background: #1a1a1a; }
.btn-dark-primary { background: var(--dark-line); border-color: rgba(80, 89, 103, 0.5); color: var(--primary-fg); }
.btn-dark-primary:hover { background: #3a3f46; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- announcement bar (Attio: 48px, black, 16px/500) ---------- */
.announce { position: relative; display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 64px; background: #000; color: #fff; font-size: 16px; line-height: 22px; font-weight: 500; }
.announce[hidden] { display: none; }
.announce a { display: inline-flex; align-items: center; gap: 6px; padding: 13px 0; text-align: center; }
.announce a:hover { text-decoration: underline; text-underline-offset: 3px; }
.announce a svg { width: 14px; height: 14px; flex: none; }
.announce .ann-short { display: none; }
.ann-close { position: absolute; right: 24px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: var(--radius); border: 1px solid transparent; background: none; color: #edeff3; display: grid; place-items: center; cursor: pointer; }
.ann-close:hover { background: rgba(255, 255, 255, 0.1); }
.ann-close svg { width: 14px; height: 14px; }
/* promo prices: regular by default, promo shown while the offer runs (site.js sets .promo-on) */
.promo { display: none; }
.promo-on .promo { display: inline; }
.promo-on .tag.promo { display: inline-flex; }
.promo-on .reg { display: none; }
.promo s { color: var(--muted-2); font-weight: 500; font-size: 0.6em; letter-spacing: 0; margin-left: 4px; }
.radio-card .promo s { font-size: 0.9em; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.95); backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line); }
.site-header .bar { height: 68px; display: flex; align-items: center; gap: 32px; padding: 0 24px 0 20px; max-width: 1440px; margin: 0 auto; }
.brand { display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 4px 12px 4px 8px; margin-left: -8px; border-radius: 12px; font-size: 17px; font-weight: 600; letter-spacing: -0.02em; color: var(--fg); }
.brand-mark { width: 26px; height: 26px; flex: none; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { display: inline-flex; align-items: center; height: 36px; padding: 0 12px; border-radius: var(--radius); font-size: 15px; line-height: 22px; font-weight: 500; color: var(--fg-2); }
.nav a:hover, .nav a[aria-current="page"] { background: var(--bg-soft-2); }
.header-actions { margin-left: auto; display: flex; gap: 10px; }
.menu-btn { display: none; margin-left: auto; width: 36px; height: 36px; border-radius: var(--radius); border: 1px solid transparent; background: none; align-items: center; justify-content: center; cursor: pointer; }
.menu-btn:hover { background: var(--bg-soft-2); }
.menu-btn svg { width: 20px; height: 20px; }
.mobile-menu { display: none; border-top: 1px solid var(--line); padding: 8px 16px 16px; background: var(--bg); }
.mobile-menu a.link { display: flex; align-items: center; height: 44px; padding: 0 8px; font-size: 16px; border-bottom: 1px solid var(--line-3); }
.mobile-menu .actions { margin-top: 14px; }
.mobile-menu .actions .btn { flex: 1; height: 40px; }
.site-header.open .mobile-menu { display: block; }

/* ---------- hero ---------- */
.hero { position: relative; text-align: center; padding: 96px var(--pad) 0; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: auto 0 0 0; height: 62%; background: linear-gradient(180deg, rgba(232, 240, 255, 0) 0%, rgba(232, 240, 255, 0.55) 100%); pointer-events: none; }
.hero > * { position: relative; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px 0 12px; border-radius: 13px; border: 1px solid var(--line-3); background: var(--bg); font-size: 14px; line-height: 20px; color: var(--fg); box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04); }
.pill svg { width: 12px; height: 12px; color: var(--muted); }
.hero .h1 { margin: 36px auto 0; max-width: 1200px; }
.hero .lead { margin: 36px auto 0; max-width: 520px; }
.hero .actions { justify-content: center; margin-top: 24px; }
.hero .note { margin-top: 14px; font-size: 13px; line-height: 18px; color: var(--muted-2); }
.hero-shot { margin: 72px auto 0; max-width: 1080px; }
.hero.left { text-align: left; padding-top: 112px; }
.hero.left .h1, .hero.left .lead { margin-left: 0; }
.hero.left .actions { justify-content: flex-start; }

/* ---------- app window mock ---------- */
.window { background: var(--bg); border: 1px solid rgba(0, 0, 0, 0.08); border-radius: 12px 12px 0 0; box-shadow: 0 0 0 6px rgba(244, 245, 247, 0.9), 0 24px 48px -12px rgba(16, 24, 40, 0.12); overflow: hidden; text-align: left; }
.window-bar { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; background: var(--bg-soft-2); border-bottom: 1px solid var(--line); }
.window-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.window-bar i:nth-child(2) { background: #febc2e; }
.window-bar i:nth-child(3) { background: #28c840; }
.window-bar span { margin-left: 10px; font-size: 12px; color: var(--muted); }
.app { display: grid; grid-template-columns: 232px 1fr; min-height: 420px; }
.app-side { border-right: 1px solid var(--line); padding: 12px 10px; display: flex; flex-direction: column; gap: 2px; background: var(--bg); }
.app-side .ws { display: flex; align-items: center; gap: 8px; padding: 6px 8px 12px; font-size: 14px; font-weight: 600; }
.app-side .ws b { width: 22px; height: 22px; border-radius: 6px; background: var(--primary); color: #fff; display: grid; place-items: center; font-size: 11px; }
.app-side a { display: flex; align-items: center; gap: 8px; height: 28px; padding: 0 8px; border-radius: 6px; font-size: 13px; color: var(--fg-2); }
.app-side a.on { background: var(--bg-soft-2); }
.app-side a .count { margin-left: auto; font-size: 11px; color: var(--muted); }
.app-side .grp { margin: 12px 8px 4px; font-size: 11px; color: var(--muted-2); }
.app-main { padding: 22px 28px; display: flex; flex-direction: column; gap: 16px; background: var(--bg); min-width: 0; }
.app-main .top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.app-main .top h4 { font-size: 18px; font-weight: 600; letter-spacing: -0.015em; }
.chip { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 12px; line-height: 16px; background: var(--bg-soft-2); color: var(--fg-2); white-space: nowrap; }
.chip.green { background: var(--green-soft); color: var(--green); }
.chip.blue { background: var(--blue-soft); color: var(--blue); }
.chip.amber { background: var(--amber-soft); color: var(--amber); }
.chip.red { background: var(--red-soft); color: var(--red); }
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: var(--shadow-card); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.card-body { padding: 12px 14px; }

/* timeline rows inside mocks */
.tl { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.tl li { display: grid; grid-template-columns: 80px 1fr auto; gap: 12px; align-items: start; padding: 10px 14px; border-top: 1px solid var(--line-3); font-size: 13px; line-height: 18px; }
.tl li:first-child { border-top: 0; }
.tl time { color: var(--muted); font-variant-numeric: tabular-nums; }
.tl b { font-weight: 600; display: block; }
.tl .d { color: var(--muted); }
.tl li.lost { opacity: .55; }

/* mini table */
.mtable { width: 100%; border-collapse: collapse; font-size: 13px; line-height: 18px; }
.mtable th { text-align: left; font-weight: 500; color: var(--muted); padding: 8px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.mtable td { padding: 9px 14px; border-bottom: 1px solid var(--line-3); white-space: nowrap; }
.mtable tr:last-child td { border-bottom: 0; }
.mtable .r { text-align: right; font-variant-numeric: tabular-nums; }
.mtable.wrap td, .mtable.wrap th { white-space: normal; }
.bar-mini { display: inline-block; height: 6px; border-radius: 3px; background: var(--blue-bright); vertical-align: middle; }
.bar-mini.mut { background: var(--line-2); }

/* chat / sms */
.chat { display: flex; flex-direction: column; gap: 8px; padding: 14px; font-size: 13px; line-height: 18px; }
.msg { max-width: 82%; padding: 8px 11px; border-radius: 12px; background: var(--bg-soft-2); color: var(--fg); }
.msg.me { align-self: flex-end; background: var(--blue-bright); color: #fff; }
.msg .who { display: block; font-size: 11px; opacity: .7; margin-bottom: 2px; }
.msg-meta { font-size: 11px; color: var(--muted-2); text-align: center; }

/* workflow nodes (Attio workflow look) */
.flow { position: relative; display: grid; gap: 28px; justify-items: center; padding: 28px 16px; }
.node { position: relative; width: min(100%, 300px); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; box-shadow: var(--shadow-card); font-size: 13px; line-height: 18px; }
.node.active { border-color: #9fbcf7; box-shadow: 0 0 0 3px rgba(38, 109, 240, 0.12); }
.node b { font-weight: 600; display: flex; align-items: center; gap: 8px; }
.node .d { color: var(--muted); margin-top: 2px; }
.node .badge { position: absolute; top: -11px; right: 10px; }
.node + .node::before { content: ""; position: absolute; left: 50%; top: -29px; height: 28px; border-left: 1px dashed var(--muted-3); }
.ico { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); flex: none; }
.ico svg { width: 13px; height: 13px; }
.ico.green { background: var(--green-soft); color: var(--green); }
.ico.amber { background: var(--amber-soft); color: var(--amber); }

/* ---------- logo / tool grid ---------- */
.logo-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line); border-top: 1px solid var(--line); }
.logo-grid > div { height: 96px; display: grid; place-items: center; background: var(--bg); font-size: 19px; font-weight: 600; letter-spacing: -0.02em; color: #3b4048; padding: 0 12px; text-align: center; }
.logo-grid > div small { display: block; font-size: 11px; font-weight: 500; letter-spacing: 0; color: var(--muted-2); margin-top: 2px; }
.logo-caption { padding: 16px var(--pad); font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); background: var(--bg-soft); }

/* ---------- feature explorer (left list + right panels) ---------- */
.explorer { display: grid; grid-template-columns: 348px 1fr; border-top: 1px solid var(--line); }
.ex-nav { border-right: 1px solid var(--line); padding: 112px 0 40px; position: relative; }
.ex-nav ol { list-style: none; margin: 0; padding: 0; position: sticky; top: 120px; display: flex; flex-direction: column; gap: 7px; }
.ex-nav button { all: unset; box-sizing: border-box; display: block; width: 100%; cursor: pointer; padding: 4px 20px 4px var(--pad); font-size: 18px; line-height: 22px; font-weight: 500; color: var(--muted-3); position: relative; transition: color .15s; }
.ex-nav button:hover { color: var(--muted); }
.ex-nav button[aria-selected="true"] { color: var(--fg); }
.ex-nav button[aria-selected="true"]::before { content: ""; position: absolute; left: -1px; top: 0; bottom: 0; border-left: 1px solid var(--blue-bright); }
.ex-nav button:focus-visible { outline-offset: -2px; }
.ex-panels { min-width: 0; }
.ex-panel { display: flex; flex-direction: column; }
.ex-panel[hidden] { display: none; }
.ex-copy { padding: 112px var(--pad) 80px; max-width: 690px; }
.ex-copy .h3 { max-width: 560px; }
.ex-copy ul { margin: 24px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 16px; line-height: 22px; color: var(--muted); }
.ex-copy li { display: flex; gap: 10px; }
.ex-copy li::before { content: ""; flex: none; width: 16px; height: 16px; margin-top: 3px; border-radius: 50%; background: var(--blue-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%23245bc2' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.ex-stage { background: var(--bg-soft); border-top: 1px solid var(--line); padding: 64px var(--pad); display: grid; place-items: center; min-height: 460px; }
.ex-stage > .card { width: min(100%, 620px); }

/* ---------- two-up cells (Attio "Free your reps to sell.") ---------- */
.cells { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
.cells.three { grid-template-columns: repeat(3, 1fr); }
.cells.four { grid-template-columns: repeat(4, 1fr); }
.cell { padding: 28px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cell:first-child { border-left: 0; padding-left: var(--pad); }
.cell .h4 + p { color: var(--muted); font-size: 16px; line-height: 22px; }
.cell .art { margin-top: 28px; flex: 1; display: grid; place-items: center; min-height: 200px; }
.cells.pad-l .cell:first-child { padding-left: var(--pad); }

/* steps (Attio changelog cards) */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 var(--pad); }
.step { padding: 0 24px 40px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; min-height: 260px; }
.step .k { font-size: 12px; line-height: 16px; color: var(--muted); margin-bottom: 12px; }
.step p { color: var(--muted); }
.step .meta { margin-top: auto; padding-top: 24px; font-size: 14px; line-height: 20px; color: var(--fg-2); }
.ticks { height: 28px; border-top: 1px solid var(--line); background: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 12px); opacity: .7; }

/* stats with blue rule */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 220px)); gap: 28px 40px; margin-top: 40px; }
.stat { border-left: 2px solid var(--blue-bright); padding-left: 12px; }
.stat b { display: block; font-size: 32px; line-height: 36px; font-weight: 500; letter-spacing: -0.02em; font-variation-settings: "opsz" 32; }
.stat span { display: block; font-size: 14px; line-height: 20px; color: var(--muted); margin-top: 2px; }
.stat small { display: block; font-size: 12px; line-height: 16px; color: var(--muted-2); margin-top: 4px; }
.u-links a { text-decoration: underline; text-underline-offset: 2px; }

/* split section (text left, art right) */
.split { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.split > .copy { padding: 112px var(--pad) 80px; display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.split > .art { border-left: 1px solid var(--line); background: var(--bg-soft); display: grid; place-items: center; padding: 56px 40px; min-width: 0; }

/* industries cards */
.ind { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.ind > * { padding: 28px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; min-height: 280px; }
.ind > *:first-child { border-left: 0; padding-left: var(--pad); }
.ind a.live:hover { background: var(--bg-soft); }
.ind .meta { margin-top: auto; padding-top: 24px; display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--fg-2); }
.ind .meta svg { width: 14px; height: 14px; }
.ind p { color: var(--muted); }

/* FAQ */
.faq { border-top: 1px solid var(--line); display: grid; grid-template-columns: 348px 1fr; }
.faq .side { padding: 112px var(--pad) 40px; border-right: 1px solid var(--line); }
.faq .list { padding: 104px var(--pad) 80px 0; }
.faq details { border-bottom: 1px solid var(--line); margin-left: var(--pad); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; font-size: 18px; line-height: 22px; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 16px; height: 16px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 3v10M3 8h10' stroke='%236f7988' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") center/16px no-repeat; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 20px; color: var(--muted); max-width: 680px; display: flex; flex-direction: column; gap: 10px; }
.faq details a { color: var(--blue); }

/* ---------- forms ---------- */
.form-wrap { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.form-wrap > .copy { padding: 112px var(--pad) 80px; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.form-wrap > .form-side { border-left: 1px solid var(--line); background: var(--bg-soft); padding: 64px var(--pad); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 24px; box-shadow: var(--shadow-card); }
.form .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; line-height: 18px; color: var(--fg-2); }
.field label .opt { color: var(--muted-2); }
.input { height: 40px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--bg); font-size: 14px; line-height: 20px; transition: border-color .15s, box-shadow .15s; width: 100%; min-width: 0; }
textarea.input { height: auto; min-height: 96px; padding: 10px 12px; resize: vertical; }
select.input { appearance: none; -webkit-appearance: none; padding-right: 32px; background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%236f7988' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 10px center/16px no-repeat; }
.input:hover { border-color: var(--muted-3); }
.input:focus { outline: none; border-color: var(--blue-bright); box-shadow: 0 0 0 3px rgba(38, 109, 240, 0.15); }
.input[aria-invalid="true"] { border-color: var(--red); }
.err { font-size: 12px; line-height: 16px; color: var(--red); min-height: 0; }
.radio-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.radio-card { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 12px; border: 1px solid var(--line-2); border-radius: var(--radius); cursor: pointer; font-size: 13px; line-height: 18px; color: var(--muted); }
.radio-card b { color: var(--fg); font-weight: 600; font-size: 14px; }
.radio-card input { position: absolute; opacity: 0; pointer-events: none; }
.radio-card:has(input:checked) { border-color: var(--blue-bright); box-shadow: 0 0 0 3px rgba(38, 109, 240, 0.12); }
.radio-card:has(input:focus-visible) { outline: 2px solid var(--blue-bright); outline-offset: 2px; }
.form .submit { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.form .submit .btn { height: 40px; }
.form-done { display: none; flex-direction: column; gap: 10px; align-items: flex-start; }
.form.sent > :not(.form-done) { display: none; }
.form.sent .form-done { display: flex; grid-column: 1 / -1; }
.next-steps { list-style: none; margin: 8px 0 0; padding: 0; counter-reset: s; display: flex; flex-direction: column; gap: 12px; }
.next-steps li { counter-increment: s; display: grid; grid-template-columns: 24px 1fr; gap: 10px; color: var(--muted); }
.next-steps li::before { content: counter(s); width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; font-size: 12px; color: var(--fg-2); background: var(--bg); }

/* ---------- calculator ---------- */
.calc { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.calc .inputs { padding: 56px var(--pad); display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; align-content: start; }
.calc .inputs .hint { grid-column: 1 / -1; font-size: 13px; line-height: 18px; color: var(--muted-2); }
.calc .out { border-left: 1px solid var(--line); background: var(--bg-soft); padding: 56px var(--pad); display: flex; flex-direction: column; gap: 20px; }
.calc .big { font-size: 56px; line-height: 1; font-weight: 500; letter-spacing: -0.02em; font-variation-settings: "opsz" 32; font-variant-numeric: tabular-nums; }
.calc .rows { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.calc .rows div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 20px; color: var(--muted); }
.calc .rows div b { color: var(--fg); font-weight: 500; font-variant-numeric: tabular-nums; }
.calc .fine { font-size: 12px; line-height: 16px; color: var(--muted-2); }
.field .suffix { position: relative; }
.field .suffix .input { padding-right: 36px; }
.field .suffix span { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 13px; color: var(--muted); pointer-events: none; }
.field .prefix { position: relative; }
.field .prefix .input { padding-left: 24px; }
.field .prefix span { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-size: 14px; color: var(--muted); pointer-events: none; }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.plan { padding: 40px 28px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.plan:first-child { border-left: 0; padding-left: var(--pad); }
.plan .price { font-size: 32px; line-height: 36px; font-weight: 500; letter-spacing: -0.02em; font-variation-settings: "opsz" 32; margin-top: 8px; }
.plan .price small { font-size: 14px; line-height: 20px; color: var(--muted); font-weight: 500; letter-spacing: -0.01em; }
.plan p { color: var(--muted); }
.plan ul { list-style: none; margin: 12px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 20px; color: var(--fg-2); }
.plan li { display: flex; gap: 8px; }
.plan li::before { content: "—"; color: var(--muted-3); }
.plan .best { margin-top: auto; padding-top: 20px; font-size: 13px; line-height: 18px; color: var(--muted); }
.plan .best b { color: var(--fg-2); font-weight: 500; }
.plan.featured { background: var(--bg-soft); }
.fineprint { padding: 18px var(--pad); border-top: 1px solid var(--line); font-size: 13px; line-height: 18px; color: var(--muted); }

/* ---------- dark CTA + footer ---------- */
.dark { background: var(--dark); color: var(--primary-fg); }
.dark .rail { border-color: var(--dark-line); }
.cta-dark { text-align: center; padding: 160px var(--pad) 120px; position: relative; overflow: hidden; }
.cta-dark::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 48px); mask-image: linear-gradient(180deg, transparent, #000 40%, #000 60%, transparent); -webkit-mask-image: linear-gradient(180deg, transparent, #000 40%, #000 60%, transparent); pointer-events: none; }
.cta-dark > * { position: relative; }
.cta-dark .h-xl { max-width: 720px; margin: 0 auto; }
.cta-dark .lead { color: var(--dark-muted); margin: 24px auto 0; max-width: 520px; }
.cta-dark .actions { justify-content: center; margin-top: 32px; }
.footer-cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; border-top: 1px solid var(--dark-line); }
.footer-cols > div { padding: 40px 28px 56px; border-left: 1px solid var(--dark-line); display: flex; flex-direction: column; gap: 10px; font-size: 14px; line-height: 20px; }
.footer-cols > div:first-child { border-left: 0; padding-left: var(--pad); }
.footer-cols h2 { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--muted); margin-bottom: 6px; }
.footer-cols a { color: #d3d8df; }
.footer-cols a:hover { color: #fff; }
.footer-cols p { color: var(--dark-muted); max-width: 320px; }
.footer-bottom { border-top: 1px solid var(--dark-line); padding: 20px var(--pad); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; line-height: 18px; color: var(--muted); }
.dark .brand { color: #fff; }

/* problem cards with "fix" footers */
.leaks { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.leak { padding: 28px; border-left: 1px solid var(--line); border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; min-height: 230px; margin-top: -1px; }
.leak:nth-child(3n + 1) { border-left: 0; padding-left: var(--pad); }
.leak .k { font-size: 12px; line-height: 16px; color: var(--muted); margin-bottom: 14px; }
.leak p { color: var(--muted); }
.leak .fix { margin-top: auto; padding-top: 20px; display: flex; gap: 6px; align-items: center; font-size: 14px; line-height: 20px; color: var(--fg-2); }
.leak .fix .chip { font-size: 12px; }

/* compliance list */
.checks { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.checks > div { padding: 28px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.checks > div:first-child { border-left: 0; padding-left: var(--pad); }
.checks p { color: var(--muted); font-size: 14px; line-height: 20px; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  :root { --pad: 40px; }
  .nav { display: none; }
  .header-actions { display: none; }
  .menu-btn { display: inline-flex; }
  .explorer, .faq { grid-template-columns: 260px 1fr; }
  .logo-grid { grid-template-columns: repeat(4, 1fr); }
  .logo-grid > div:nth-child(n + 9) { display: none; }
  .checks { grid-template-columns: repeat(2, 1fr); }
  .checks > div:nth-child(3) { border-left: 0; padding-left: var(--pad); }
  .checks > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-cols > div:nth-child(3) { border-left: 0; padding-left: var(--pad); }
  .footer-cols > div:nth-child(n + 3) { border-top: 1px solid var(--dark-line); }
}
@media (max-width: 900px) {
  .h1 { font-size: 48px; line-height: 1; }
  .explorer { grid-template-columns: 1fr; }
  .ex-nav { border-right: 0; padding: 0; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
  .ex-nav::-webkit-scrollbar { display: none; }
  .ex-nav ol { position: static; flex-direction: row; gap: 0; }
  .ex-nav button { width: auto; white-space: nowrap; padding: 16px 20px; font-size: 14px; line-height: 20px; border-right: 1px solid var(--line); }
  .ex-nav li:first-child button { padding-left: var(--pad); }
  .ex-nav button[aria-selected="true"] { background: var(--bg-soft); }
  .ex-nav button[aria-selected="true"]::before { left: 0; right: 0; top: auto; bottom: -1px; border-left: 0; border-bottom: 1px solid var(--blue-bright); }
  .ex-copy { padding: 56px var(--pad) 40px; }
  .split, .form-wrap, .calc { grid-template-columns: 1fr; }
  .split > .art, .form-wrap > .form-side, .calc .out { border-left: 0; border-top: 1px solid var(--line); }
  .cells, .cells.three, .cells.four, .ind, .plans, .leaks, .steps { grid-template-columns: 1fr; }
  .cell, .ind > *, .plan, .leak { border-left: 0; border-top: 1px solid var(--line); padding-left: var(--pad); padding-right: var(--pad); }
  .cell:first-child, .ind > *:first-child, .plan:first-child { border-top: 0; }
  .leak { margin-top: 0; min-height: 0; }
  .leak:first-child { border-top: 0; }
  .ind > * { min-height: 0; }
  .steps { margin: 0; }
  .step { border-left: 0; border-top: 1px solid var(--line); padding: 28px var(--pad); min-height: 0; }
  .faq { grid-template-columns: 1fr; }
  .faq .side { border-right: 0; padding-bottom: 8px; }
  .faq .list { padding: 0 var(--pad) 64px; }
  .faq details { margin-left: 0; }
}
@media (max-width: 640px) {
  :root { --gutter: 8px; --pad: 16px; }
  .announce { padding: 0 52px 0 16px; font-size: 14px; line-height: 20px; }
  .announce .ann-long { display: none; }
  .announce .ann-short { display: inline; }
  .ann-close { right: 8px; }
  body { font-size: 15px; line-height: 21px; }
  .site-header .bar { height: 56px; padding: 0 12px 0 16px; }
  .h1 { font-size: 40px; line-height: 38px; letter-spacing: -0.01em; }
  .h2 { font-size: 32px; line-height: 36px; }
  .h3 { font-size: 22px; line-height: 26px; }
  .h-xl { font-size: 40px; line-height: 42px; }
  .lead { font-size: 15px; line-height: 19.5px; }
  .hero { padding: 64px var(--pad) 0; }
  .hero .h1 { margin-top: 28px; }
  .hero .lead { margin-top: 24px; }
  .hero .actions { flex-direction: column; align-items: stretch; max-width: 320px; margin-left: auto; margin-right: auto; }
  .hero .actions .btn-primary { order: -1; height: 40px; }
  .hero.left .actions { margin-left: 0; }
  .hero-shot { margin-top: 48px; }
  .pill { font-size: 13px; }
  .sec-pad { padding: 96px var(--pad) 56px; }
  .sec-pad-sm, .split > .copy, .form-wrap > .copy { padding: 64px var(--pad) 48px; }
  .split > .art { padding: 40px var(--pad); }
  .form-wrap > .form-side { padding: 32px var(--pad); }
  .form { grid-template-columns: 1fr; padding: 18px; }
  .radio-row { grid-template-columns: 1fr; }
  .app { grid-template-columns: 1fr; min-height: 0; }
  .app-side { display: none; }
  .app-main { padding: 16px; }
  .logo-grid { grid-template-columns: repeat(2, 1fr); }
  .logo-grid > div { height: 72px; font-size: 16px; }
  .logo-grid > div:nth-child(n + 7) { display: none; }
  .ex-stage { padding: 32px 12px; min-height: 0; }
  .calc .inputs { grid-template-columns: 1fr; padding: 40px var(--pad); }
  .calc .out { padding: 40px var(--pad); }
  .calc .big { font-size: 44px; }
  .checks { grid-template-columns: 1fr; }
  .checks > div, .checks > div:nth-child(3) { border-left: 0; padding-left: var(--pad); border-top: 1px solid var(--line); }
  .checks > div:first-child { border-top: 0; }
  .cta-dark { padding: 96px var(--pad) 80px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-cols > div { padding: 28px var(--pad); }
  .footer-cols > div:first-child { grid-column: 1 / -1; }
  .footer-cols > div:nth-child(2) { border-left: 0; border-top: 1px solid var(--dark-line); }
  .footer-cols > div:nth-child(3) { border-left: 1px solid var(--dark-line); padding-left: var(--pad); }
  .footer-cols > div:nth-child(4) { border-left: 0; }
  .tl li { grid-template-columns: 58px 1fr; }
  .tl li > :last-child:not(:nth-child(2)) { grid-column: 2; justify-self: start; }
  .mtable th, .mtable td { padding-left: 10px; padding-right: 10px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 20px; }
  .stat b { font-size: 26px; line-height: 30px; }
  .footer-bottom { padding: 20px var(--pad); }
}
