/* Marketing site. Colours and type follow the product (app styles.css) and the pitch deck (deck.css). */
@font-face { font-family: "DM Sans"; src: url("fonts/dm-sans-latin-wght-normal.woff2") format("woff2"); font-weight: 100 1000; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("fonts/dm-sans-latin-wght-italic.woff2") format("woff2"); font-weight: 100 1000; font-style: italic; font-display: swap; }

:root {
  --dark: #12302F;
  --dark-2: #0c2423;
  --light: #F5F6F2;
  --alt: #E6EEEB;
  --teal: #17736E;
  --teal-2: #1fa39b;
  --teal-soft: #CFE5E1;
  --gold: #E8B546;
  --gold-soft: #fbefd2;
  --ink: #12302F;
  --muted: #4A5E5C;
  --soft: #BFD8D5;
  --line: #dbe4e1;
  --white: #ffffff;
  --error: #c0392b;
  --ok: #15805b;
  /* node colours from the flow editor, used as accents */
  --k-question: #0891b2; --k-condition: #d97706; --k-lead: #db2777; --k-case: #b45309; --k-message: #6366f1; --k-end: #e11d48;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(18,48,47,.05), 0 6px 24px rgba(18,48,47,.08);
  --shadow-lg: 0 2px 4px rgba(18,48,47,.06), 0 24px 60px rgba(18,48,47,.18);
  --ring: 0 0 0 3px rgba(23,115,110,.28);
  --ease: cubic-bezier(.2,.7,.3,1);
  --font: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--light); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--teal); }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; letter-spacing: -.02em; color: var(--ink); }
h1 { font-size: clamp(40px, 6vw, 72px); font-weight: 750; letter-spacing: -.035em; }
h2 { font-size: clamp(32px, 4.2vw, 52px); font-weight: 720; }
h3 { font-size: 21px; font-weight: 700; letter-spacing: -.01em; line-height: 1.25; }
p { margin: 0; }
.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--teal); margin-bottom: 16px; display: inline-flex; gap: 10px; align-items: center; }
.eyebrow::before { content: ""; width: 22px; height: 3px; background: var(--gold); border-radius: 2px; }
.lede { font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); max-width: 640px; margin-top: 20px; }
.center { text-align: center; }
.center .lede { margin-inline: auto; }
.section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.section.alt { background: var(--alt); }
.section.dark { background: var(--dark); color: var(--light); }
.dark h2, .dark h3, .dark h1 { color: var(--light); }
.dark .lede { color: var(--soft); }
.dark .eyebrow { color: var(--gold); }
.sr-only { 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(--white); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 8px; }

/* buttons */
.btn { --bg: var(--teal); --fg: #fff; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 24px; border-radius: 999px; background: var(--bg); color: var(--fg); font: 650 16px/1 var(--font); text-decoration: none; border: 0; cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(23,115,110,.28); }
.btn:active { transform: translateY(0); }
.btn.gold { --bg: var(--gold); --fg: var(--dark); }
.btn.gold:hover { box-shadow: 0 10px 28px rgba(232,181,70,.4); }
.btn.ghost { --bg: transparent; --fg: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1.5px var(--teal); }
.dark .btn.ghost { --fg: var(--light); box-shadow: inset 0 0 0 1.5px rgba(191,216,213,.35); }
.dark .btn.ghost:hover { box-shadow: inset 0 0 0 1.5px var(--gold); }
.btn.lg { padding: 18px 30px; font-size: 17px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .6; pointer-events: none; }
.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.micro { font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 18px; }
.micro span { display: inline-flex; gap: 6px; align-items: center; }
.micro span::before { content: ""; width: 16px; height: 16px; background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.3l2.6 2.5L12 5.4' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; border-radius: 50%; flex: none; }
.dark .micro { color: var(--soft); }

/* top bar */
.founding-bar { background: var(--dark-2); color: var(--soft); font-size: 14px; text-align: center; padding: 9px 16px; }
.founding-bar b { color: var(--gold); font-weight: 700; }
.founding-bar a { color: var(--light); font-weight: 600; margin-left: 6px; }
.nav { position: sticky; top: 0; z-index: 40; background: rgba(245,246,242,.82); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s, background .2s; }
.nav.scrolled { border-bottom-color: var(--line); background: rgba(245,246,242,.94); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 750; font-size: 21px; letter-spacing: -.02em; }
.logo svg { width: 34px; height: 34px; flex: none; }
.logo svg.wordmark { width: 76px; height: 25px; }
.nav-links { display: flex; gap: 4px; margin-left: 12px; }
.nav-links a { color: var(--muted); text-decoration: none; font-weight: 550; font-size: 15px; padding: 8px 12px; border-radius: 999px; transition: background .2s, color .2s; }
.nav-links a:hover { background: var(--alt); color: var(--ink); }
.nav-right { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.nav-right .signin { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 12px; }
.lang { border: 0; background: transparent; font: 600 14px var(--font); color: var(--muted); cursor: pointer; padding: 8px 10px; border-radius: 8px; }
.lang:hover { background: var(--alt); color: var(--ink); }
.nav .btn { padding: 11px 18px; font-size: 15px; }
.menu-btn { display: none; border: 0; background: transparent; width: 44px; height: 44px; border-radius: 10px; cursor: pointer; }
.menu-btn span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 4px auto; border-radius: 2px; transition: transform .2s; }
@media (max-width: 960px) {
  .nav-links { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; background: var(--light); padding: 12px 24px 20px; border-bottom: 1px solid var(--line); margin: 0; }
  .nav.open .nav-links { display: flex; }
  .nav-links a { padding: 12px; font-size: 17px; }
  .menu-btn { display: block; }
  .nav-right .signin, .nav-right .lang { display: none; }
  .nav.open .nav-right .lang { display: inline; }
}
@media (max-width: 520px) { .nav-right .btn { display: none; } }

/* hero */
.hero { padding: clamp(48px, 8vw, 96px) 0 clamp(64px, 8vw, 112px); overflow: hidden; position: relative; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 820px; height: 820px; background: radial-gradient(closest-side, rgba(31,163,155,.18), transparent 70%); pointer-events: none; }
.hero::after { content: ""; position: absolute; left: -200px; bottom: -300px; width: 700px; height: 700px; background: radial-gradient(closest-side, rgba(232,181,70,.16), transparent 70%); pointer-events: none; }
.hero .wrap { display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; position: relative; z-index: 1; }
.hero h1 em { font-style: normal; background: linear-gradient(100deg, var(--teal) 10%, var(--teal-2) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.pill { display: inline-flex; gap: 8px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px 6px 6px; font-size: 14px; font-weight: 550; color: var(--muted); text-decoration: none; margin-bottom: 22px; box-shadow: var(--shadow); }
.pill b { background: var(--gold-soft); color: #8a5a00; padding: 3px 10px; border-radius: 999px; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
@media (max-width: 960px) { .hero .wrap { grid-template-columns: 1fr; } }

/* hero visual: a chat turns into a case */
.stage { position: relative; height: 540px; }
.mock { position: absolute; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; }
.mock-chat { left: 0; top: 18px; width: 330px; height: 480px; display: flex; flex-direction: column; }
.mock-chat header { background: var(--dark); color: var(--light); padding: 14px 16px; display: flex; gap: 10px; align-items: center; font-weight: 650; font-size: 15px; }
.mock-chat header .dot { width: 30px; height: 30px; border-radius: 9px; background: var(--gold); display: grid; place-items: center; color: var(--dark); font-size: 14px; }
.mock-chat header small { display: block; color: var(--soft); font-weight: 450; font-size: 12px; }
.mock-chat .ai-note { font-size: 11px; color: var(--muted); background: var(--alt); padding: 6px 14px; }
.msgs { flex: 1; padding: 14px; display: flex; flex-direction: column; gap: 8px; overflow: hidden; justify-content: flex-end; }
.msg { max-width: 82%; padding: 9px 13px; border-radius: 16px; font-size: 14px; line-height: 1.4; animation: pop .35s var(--ease) both; }
.msg.bot { background: var(--alt); border-bottom-left-radius: 5px; align-self: flex-start; }
.msg.me { background: var(--teal); color: #fff; border-bottom-right-radius: 5px; align-self: flex-end; }
.msg.typing { display: inline-flex; gap: 4px; padding: 12px 14px; }
.msg.typing i { width: 6px; height: 6px; background: var(--muted); border-radius: 50%; opacity: .5; animation: blink 1s infinite; }
.msg.typing i:nth-child(2) { animation-delay: .15s; } .msg.typing i:nth-child(3) { animation-delay: .3s; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-self: flex-end; justify-content: flex-end; animation: pop .35s var(--ease) both; }
.chips span { border: 1.5px solid var(--teal); color: var(--teal); border-radius: 999px; padding: 4px 11px; font-size: 13px; font-weight: 600; background: #fff; }
.chips span.on { background: var(--teal); color: #fff; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes blink { 50% { opacity: 1; } }

.mock-case { right: 0; top: 0; width: 360px; padding: 20px; transform: translateY(20px); opacity: 0; transition: all .7s var(--ease); }
.mock-case.show { transform: none; opacity: 1; }
.mock-case .id { font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .06em; }
.mock-case h4 { font-size: 19px; margin: 4px 0 12px; }
.stages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-bottom: 14px; }
.stages span { font-size: 11px; font-weight: 650; text-align: center; padding: 6px 4px; border-radius: 6px; background: var(--alt); color: var(--muted); }
.stages span.on { background: linear-gradient(135deg, var(--teal), var(--teal-2)); color: #fff; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 13px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; font-weight: 600; }
.next { margin-top: 14px; border-left: 3px solid var(--teal); background: var(--light); border-radius: 8px; padding: 10px 12px; font-size: 13px; }
.next b { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); }
.mock-rule { right: 34px; bottom: 6px; width: 300px; padding: 14px 16px; font-size: 13px; opacity: 0; transform: translateY(20px); transition: all .7s var(--ease) .25s; }
.mock-rule.show { opacity: 1; transform: none; }
.mock-rule .tag { display: inline-block; font-size: 10px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: var(--k-condition); margin-bottom: 4px; }
.mock-rule .row { display: flex; justify-content: space-between; padding: 5px 0; border-top: 1px dashed var(--line); }
.mock-rule .row:first-of-type { border-top: 0; }
.mock-rule .row.hit { color: var(--teal); font-weight: 700; }
.flowline { position: absolute; left: 300px; top: 330px; width: 120px; height: 120px; pointer-events: none; }
.flowline path { stroke: var(--gold); stroke-width: 2.5; fill: none; stroke-dasharray: 6 7; animation: dash 1.2s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -26; } }
@media (max-width: 1100px) { .mock-chat { width: 300px; } .mock-case { width: 320px; } }
@media (max-width: 960px) { .stage { height: 520px; max-width: 560px; margin-inline: auto; width: 100%; } }
@media (max-width: 600px) {
  .stage { height: auto; display: grid; gap: 16px; }
  .mock { position: relative; inset: auto; width: 100% !important; transform: none !important; }
  .mock-chat { height: 400px; } .flowline { display: none; }
  .mock-case, .mock-rule { opacity: 1; }
}

/* trust strip */
.trust { border-block: 1px solid var(--line); background: var(--white); }
.trust .wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 30px; padding: 22px 0; }
.trust span { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14.5px; color: var(--ink); }
.trust svg { width: 22px; height: 22px; color: var(--teal); flex: none; }

/* problem */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 40px; } }
.chaos { position: relative; height: 380px; }
.chaos .note { position: absolute; background: var(--white); border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow); font-size: 14px; width: 230px; transition: transform .5s var(--ease); }
.chaos .note b { display: block; font-size: 12px; color: var(--muted); font-weight: 650; letter-spacing: .04em; margin-bottom: 4px; }
.chaos .note:nth-child(1) { left: 0; top: 10px; transform: rotate(-4deg); }
.chaos .note:nth-child(2) { right: 10px; top: 0; transform: rotate(3deg); }
.chaos .note:nth-child(3) { left: 40px; top: 140px; transform: rotate(2deg); }
.chaos .note:nth-child(4) { right: 0; top: 150px; transform: rotate(-3deg); }
.chaos .note:nth-child(5) { left: 90px; top: 270px; transform: rotate(-1deg); }
.chaos:hover .note { transform: rotate(0) translateY(-2px); }
.pain { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.pain li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; color: var(--muted); }
.pain li::before { content: "×"; width: 26px; height: 26px; border-radius: 50%; background: #fde4e7; color: #a32436; display: grid; place-items: center; font-weight: 700; line-height: 1; }
.pain b { color: var(--ink); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 56px; counter-reset: s; }
.step { background: var(--white); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow); position: relative; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.step .ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px; color: #fff; }
.step .ic svg { width: 24px; height: 24px; }
.step .n { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 15px; margin-top: 8px; }
.step:not(:last-child)::after { content: ""; position: absolute; right: -16px; top: 50px; width: 12px; height: 12px; border-top: 2.5px solid var(--gold); border-right: 2.5px solid var(--gold); transform: rotate(45deg); z-index: 2; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } .step::after { display: none; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* product tour */
.tour { margin-top: 48px; display: grid; grid-template-columns: 320px 1fr; gap: 36px; align-items: start; }
.tabs { display: grid; gap: 8px; }
.tab { text-align: left; border: 0; background: transparent; border-radius: 14px; padding: 18px 20px; cursor: pointer; font: inherit; color: var(--muted); transition: background .2s; border-left: 3px solid transparent; }
.tab h3 { font-size: 18px; color: var(--ink); margin-bottom: 4px; }
.tab p { font-size: 14.5px; line-height: 1.5; }
.tab:hover { background: rgba(255,255,255,.6); }
.tab[aria-selected="true"] { background: var(--white); box-shadow: var(--shadow); border-left-color: var(--teal); }
.browser { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; }
.browser .bar { display: flex; gap: 6px; align-items: center; padding: 11px 14px; background: #eef2f1; border-bottom: 1px solid var(--line); }
.browser .bar i { width: 11px; height: 11px; border-radius: 50%; background: #d4dcda; }
.browser .bar span { margin-left: 12px; font-size: 12px; color: var(--muted); background: var(--white); border-radius: 6px; padding: 3px 12px; flex: 1; max-width: 360px; }
.browser img { width: 100%; height: auto; aspect-ratio: 1360 / 900; object-fit: cover; object-position: top left; }
.panel[hidden] { display: none; }
.panel { animation: fade .4s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (max-width: 900px) { .tour { grid-template-columns: 1fr; } .tabs { grid-auto-flow: column; overflow-x: auto; grid-auto-columns: 78%; } }

/* features grid */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.feature { background: var(--white); border-radius: var(--radius); padding: 26px; border: 1px solid var(--line); transition: border-color .2s, transform .25s var(--ease); }
.feature:hover { border-color: var(--teal); transform: translateY(-3px); }
.feature .ic { width: 42px; height: 42px; border-radius: 12px; background: var(--teal-soft); color: var(--teal); display: grid; place-items: center; margin-bottom: 16px; }
.feature .ic svg { width: 22px; height: 22px; }
.feature p { color: var(--muted); font-size: 15px; margin-top: 8px; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

/* sectors */
.sector-tabs { display: inline-flex; background: rgba(255,255,255,.08); border-radius: 999px; padding: 5px; gap: 4px; margin-top: 36px; flex-wrap: wrap; }
.sector-tabs button { border: 0; background: transparent; color: var(--soft); font: 600 15px var(--font); padding: 10px 18px; border-radius: 999px; cursor: pointer; transition: all .2s; }
.sector-tabs button[aria-selected="true"] { background: var(--gold); color: var(--dark); }
.sector { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; margin-top: 40px; align-items: start; }
.sector[hidden] { display: none; }
.sector h3 { font-size: 30px; line-height: 1.2; }
.sector .lede { font-size: 18px; }
.usecases { display: grid; gap: 12px; }
.usecase { background: rgba(255,255,255,.06); border: 1px solid rgba(191,216,213,.16); border-radius: 14px; padding: 16px 18px; display: grid; grid-template-columns: 36px 1fr; gap: 14px; }
.usecase .ic { width: 36px; height: 36px; border-radius: 10px; background: rgba(232,181,70,.16); color: var(--gold); display: grid; place-items: center; }
.usecase .ic svg { width: 18px; height: 18px; }
.usecase b { color: var(--light); display: block; }
.usecase span { color: var(--soft); font-size: 15px; }
.quote { margin-top: 28px; border-left: 3px solid var(--gold); padding-left: 18px; color: var(--light); font-size: 18px; font-style: italic; }
.quote small { display: block; font-style: normal; color: var(--soft); font-size: 14px; margin-top: 8px; }
@media (max-width: 900px) { .sector { grid-template-columns: 1fr; } }

/* try it */
.try { display: grid; grid-template-columns: 1fr 440px; gap: 56px; align-items: center; }
.try-frame { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; height: 600px; position: relative; }
.try-frame iframe { width: 100%; height: 100%; border: 0; }
.demo-chat { display: flex; flex-direction: column; height: 100%; }
.demo-chat header { background: var(--dark); color: var(--light); padding: 16px 18px; font-weight: 650; display: flex; align-items: center; gap: 10px; }
.demo-chat header .dot { width: 32px; height: 32px; border-radius: 10px; background: var(--gold); display: grid; place-items: center; color: var(--dark); font-weight: 800; }
.demo-chat header small { display: block; color: var(--soft); font-weight: 450; font-size: 12px; }
.demo-chat .ai-note { font-size: 12px; color: var(--muted); background: var(--alt); padding: 7px 18px; }
.demo-chat .msgs { overflow-y: auto; justify-content: flex-start; padding: 18px; }
.demo-chat .answers { padding: 14px 16px 16px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px; min-height: 70px; }
.demo-chat .answers button { border: 1.5px solid var(--teal); color: var(--teal); background: #fff; border-radius: 999px; padding: 8px 14px; font: 600 14px var(--font); cursor: pointer; transition: all .15s; }
.demo-chat .answers button:hover { background: var(--teal); color: #fff; }
.demo-chat .answers form { display: flex; gap: 8px; width: 100%; }
.demo-chat .answers input { flex: 1; border: 1.5px solid var(--line); border-radius: 999px; padding: 10px 16px; font: 15px var(--font); }
.demo-chat .answers input:focus { border-color: var(--teal); outline: none; }
.result-card { align-self: stretch; background: var(--light); border: 1px solid var(--line); border-radius: 14px; padding: 14px; font-size: 14px; animation: pop .4s var(--ease) both; }
.result-card .stages { margin: 8px 0 10px; }
.try-points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.try-points li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; color: var(--muted); }
.try-points li b { color: var(--ink); }
.try-points .k { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 13px; }
@media (max-width: 960px) { .try { grid-template-columns: 1fr; } .try-frame { height: 560px; } }

/* comparison */
.compare { margin-top: 48px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow-x: auto; }
.compare table { width: 100%; border-collapse: collapse; min-width: 720px; font-size: 15px; }
.compare th, .compare td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font-size: 14px; color: var(--muted); font-weight: 650; }
.compare thead th.us { color: var(--teal); }
.compare td.us { background: rgba(207,229,225,.35); font-weight: 600; }
.compare thead th.us { background: rgba(207,229,225,.35); }
.compare tr:last-child td { border-bottom: 0; }
.cy, .cn, .cm { display: inline-flex; width: 22px; height: 22px; border-radius: 50%; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; margin-right: 8px; vertical-align: -5px; }
.cy { background: var(--teal); color: #fff; } .cn { background: #f1e3e3; color: #a32436; } .cm { background: var(--gold-soft); color: #8a5a00; }

/* calculator */
.calc { margin-top: 48px; display: grid; grid-template-columns: 1.1fr 1fr; background: var(--white); border-radius: 24px; box-shadow: var(--shadow-lg); overflow: hidden; }
.calc .inputs { padding: 36px; display: grid; gap: 26px; }
.calc label { display: block; font-weight: 650; font-size: 15px; }
.calc .row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.calc output { font-weight: 750; color: var(--teal); font-size: 18px; }
.calc input[type=range] { width: 100%; accent-color: var(--teal); height: 6px; }
.calc .out { background: var(--dark); color: var(--light); padding: 36px; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.calc .out::after { content: ""; position: absolute; right: -120px; top: -120px; width: 320px; height: 320px; background: radial-gradient(closest-side, rgba(232,181,70,.25), transparent); }
.calc .big { font-size: clamp(44px, 6vw, 64px); font-weight: 800; color: var(--gold); letter-spacing: -.03em; line-height: 1; margin: 6px 0 10px; }
.calc .out p { color: var(--soft); }
.calc .out .btn { margin-top: 26px; align-self: flex-start; }
@media (max-width: 860px) { .calc { grid-template-columns: 1fr; } }

/* pricing */
.billing { display: inline-flex; align-items: center; gap: 4px; background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 5px; margin-top: 32px; }
.billing button { border: 0; background: transparent; font: 650 15px var(--font); color: var(--muted); padding: 9px 18px; border-radius: 999px; cursor: pointer; }
.billing button[aria-pressed="true"] { background: var(--dark); color: var(--light); }
.billing .save { background: var(--gold-soft); color: #8a5a00; font-size: 12px; padding: 2px 8px; border-radius: 999px; margin-left: 6px; }
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 40px; align-items: stretch; }
.plan { background: var(--white); border-radius: 22px; padding: 30px 26px; display: flex; flex-direction: column; border: 1.5px solid var(--line); position: relative; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.plan.popular { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(23,115,110,.1), var(--shadow-lg); }
.plan .badge { position: absolute; top: -13px; left: 26px; background: var(--gold); color: var(--dark); font-size: 12px; font-weight: 750; letter-spacing: .04em; padding: 5px 12px; border-radius: 999px; }
.plan h3 { font-size: 20px; }
.plan .blurb { color: var(--muted); font-size: 14.5px; margin-top: 6px; min-height: 46px; }
.plan .price { margin-top: 20px; display: flex; align-items: baseline; gap: 6px; }
.plan .price b { font-size: 46px; font-weight: 800; letter-spacing: -.03em; color: var(--ink); line-height: 1; }
.plan .price s { color: var(--muted); font-size: 18px; }
.plan .per { font-size: 14px; color: var(--muted); }
.plan .billed { font-size: 13px; color: var(--muted); min-height: 20px; margin-top: 4px; }
.plan .founding { font-size: 13px; font-weight: 650; color: #8a5a00; background: var(--gold-soft); border-radius: 8px; padding: 6px 10px; margin-top: 10px; }
.plan ul { list-style: none; padding: 0; margin: 22px 0 26px; display: grid; gap: 10px; font-size: 14.5px; flex: 1; align-content: start; }
.plan li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; }
.plan li::before { content: ""; width: 18px; height: 18px; margin-top: 3px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='8' fill='%23CFE5E1'/%3E%3Cpath d='M4.5 8.2l2.3 2.2L11.5 5.8' fill='none' stroke='%2317736E' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; }
.plan .includes { font-size: 13px; font-weight: 700; color: var(--teal); margin: 20px 0 -12px; }
.plan-details { margin-top: 28px; }
.plan-details summary { cursor: pointer; list-style: none; text-align: center; font-weight: 700; color: var(--teal); padding: 12px; }
.plan-details summary::-webkit-details-marker { display: none; }
.plan-details summary::after { content: " ▾"; }
.plan-details[open] summary::after { content: " ▴"; }
.plan-compare { margin-top: 12px; }
.plan-compare table { min-width: 680px; }
.plan-compare thead th { font-size: 16px; color: var(--ink); font-weight: 700; text-align: center; position: sticky; top: 0; background: var(--white); }
.plan-compare thead th small { display: block; font-size: 13px; color: var(--muted); font-weight: 500; }
.plan-compare tbody th { font-weight: 550; font-size: 15px; color: var(--ink); }
.plan-compare tbody th small { display: block; font-weight: 400; font-size: 13px; color: var(--muted); }
.plan-compare td { text-align: center; font-size: 15px; }
.plan-compare td.us { font-weight: 650; }
.plan-compare tr.grp th { background: var(--light); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); padding-top: 12px; padding-bottom: 12px; }
.plan-compare .none { color: #b9c4c1; }
.plan-compare .cy { margin: 0; }
.plan .sub { font-size: 12.5px; color: var(--muted); text-align: center; margin-top: 10px; }
.price-notes { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 32px; margin-top: 28px; color: var(--muted); font-size: 14.5px; }
.price-notes b { color: var(--ink); }
.enterprise-row { margin-top: 22px; background: var(--dark); color: var(--light); border-radius: 22px; padding: 26px 30px; display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.enterprise-row > div { flex: 1 1 520px; }
.enterprise-row h3 { color: var(--light); }
.enterprise-row p { color: var(--soft); font-size: 15px; margin-top: 4px; }
@media (max-width: 1080px) { .plans { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .plans { grid-template-columns: 1fr; } }

/* faq */
.faq { max-width: 820px; margin: 48px auto 0; display: grid; gap: 10px; }
.faq details { background: var(--white); border-radius: 14px; border: 1px solid var(--line); padding: 0 22px; transition: border-color .2s; }
.faq details[open] { border-color: var(--teal); }
.faq summary { cursor: pointer; list-style: none; font-weight: 650; padding: 20px 0; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--teal); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 20px; }

/* contact */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 16px; }
.contact-list li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; color: var(--soft); }
.contact-list .ic { width: 40px; height: 40px; border-radius: 12px; background: rgba(232,181,70,.15); color: var(--gold); display: grid; place-items: center; }
.contact-list .ic svg { width: 20px; height: 20px; }
.contact-list b { color: var(--light); display: block; }
.card-form { background: var(--white); color: var(--ink); border-radius: 24px; padding: 32px; box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.card-form h3 { margin-bottom: 4px; color: var(--ink); }
.card-form .hint { color: var(--muted); font-size: 14.5px; margin-bottom: 20px; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fgrid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 14px; font-weight: 650; margin-bottom: 6px; }
.field label small { font-weight: 450; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; border: 1.5px solid var(--line); background: var(--white); border-radius: 12px; padding: 12px 14px; font: 16px var(--font); color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--teal); box-shadow: var(--ring); outline: none; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--error); }
.field .err { color: var(--error); font-size: 13px; margin-top: 4px; display: none; }
.field.invalid .err { display: block; }
.check { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: 14px; color: var(--muted); align-items: start; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--teal); }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 14px; font-size: 14.5px; border-radius: 10px; padding: 0; }
.form-status.ok { background: #e3f3ec; color: var(--ok); padding: 12px 14px; }
.form-status.bad { background: #fde4e7; color: #8f1c2e; padding: 12px 14px; }
.sent { text-align: center; padding: 30px 10px; }
.sent .tick { width: 64px; height: 64px; border-radius: 50%; background: var(--teal); margin: 0 auto 16px; display: grid; place-items: center; color: #fff; animation: pop .4s var(--ease); }
.sent .tick svg { width: 32px; height: 32px; }
.sent p { color: var(--muted); margin-top: 8px; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .fgrid { grid-template-columns: 1fr; } .card-form { padding: 24px 20px; } }

/* final CTA */
.final { text-align: center; padding: clamp(80px, 10vw, 130px) 0; background: linear-gradient(160deg, var(--teal) 0%, #0f5a56 60%, var(--dark) 100%); color: #fff; position: relative; overflow: hidden; }
.final::before { content: ""; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Ccircle cx='2' cy='2' r='1.3' fill='%23ffffff' fill-opacity='.08'/%3E%3C/svg%3E"); }
.final h2 { color: #fff; position: relative; }
.final .lede { color: #d7ece9; position: relative; }
.final .actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 34px; position: relative; }
.final .micro { justify-content: center; color: #d7ece9; position: relative; }
.final .micro span::before { background-color: var(--gold); }

/* footer */
footer { background: var(--dark-2); color: var(--soft); padding: 64px 0 36px; font-size: 15px; }
footer .cols { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 36px; }
footer h4 { color: var(--light); font-size: 14px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
footer a { color: var(--soft); text-decoration: none; display: block; padding: 3px 0; }
footer a:hover { color: var(--gold); }
footer .logo { color: var(--light); }
footer .legal { border-top: 1px solid rgba(191,216,213,.14); margin-top: 48px; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 13.5px; }
@media (max-width: 760px) { footer .cols { grid-template-columns: 1fr 1fr; } }

/* sticky mobile CTA */
.mobile-cta { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 30; display: none; transform: translateY(120%); transition: transform .3s var(--ease); }
.mobile-cta.show { transform: none; }
@media (max-width: 700px) { .mobile-cta { display: block; } }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal, .mock-case, .mock-rule { opacity: 1; transform: none; }
}

/* signup + welcome pages */
.signup-page { min-height: 100vh; display: grid; grid-template-columns: 1fr 460px; background: linear-gradient(to left, var(--dark) 460px, var(--light) 460px); }
.signup-main { padding: 28px clamp(20px, 5vw, 72px) 64px; }
.signup-main .top { display: flex; justify-content: space-between; align-items: center; margin-bottom: clamp(28px, 6vh, 64px); }
.signup-main .top a.back { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 550; }
.signup-main form { max-width: 560px; }
.signup-main h1 { font-size: clamp(32px, 4vw, 44px); }
.signup-main .lede { margin: 12px 0 28px; font-size: 18px; }
.plan-pick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 8px; }
.plan-pick label { position: relative; border: 1.5px solid var(--line); background: var(--white); border-radius: 14px; padding: 14px 16px; cursor: pointer; transition: border-color .15s, box-shadow .15s; display: block; }
.plan-pick input { position: absolute; opacity: 0; }
.plan-pick label:has(input:checked) { border-color: var(--teal); box-shadow: var(--ring); }
.plan-pick label:has(input:focus-visible) { box-shadow: var(--ring); }
.plan-pick b { display: block; font-size: 16px; }
.plan-pick span { font-size: 13.5px; color: var(--muted); }
.plan-pick em { position: absolute; top: 10px; right: 12px; font-style: normal; font-size: 11px; font-weight: 750; background: var(--gold); color: var(--dark); padding: 2px 8px; border-radius: 999px; }
.slug { display: flex; align-items: stretch; border: 1.5px solid var(--line); border-radius: 12px; background: var(--white); overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.slug:focus-within { border-color: var(--teal); box-shadow: var(--ring); }
.slug input { border: 0 !important; box-shadow: none !important; flex: 1; min-width: 0; }
.slug span { padding: 12px 14px; background: var(--light); color: var(--muted); font-size: 15px; display: flex; align-items: center; white-space: nowrap; border-left: 1px solid var(--line); }
.slug span[hidden] { display: none; }
.slug-preview { font-size: 13.5px; color: var(--muted); margin-top: 6px; }
.slug-preview b { color: var(--teal); font-weight: 650; }
.slug-state { font-size: 13px; margin-top: 6px; min-height: 18px; }
.slug-state.ok { color: var(--ok); } .slug-state.bad { color: var(--error); }
.stack { display: grid; gap: 16px; }
.signup-aside { background: var(--dark); color: var(--light); padding: 48px 40px; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: 28px; }
.signup-aside h2 { color: var(--light); font-size: 24px; }
.summary { background: rgba(255,255,255,.06); border: 1px solid rgba(191,216,213,.18); border-radius: 18px; padding: 22px; }
.summary .line { display: flex; justify-content: space-between; padding: 6px 0; color: var(--soft); font-size: 15px; }
.summary .line b { color: var(--light); }
.summary .total { border-top: 1px solid rgba(191,216,213,.2); margin-top: 8px; padding-top: 12px; font-size: 17px; }
.summary .total b { color: var(--gold); font-size: 20px; }
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.timeline li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; color: var(--soft); font-size: 15px; }
.timeline li b { color: var(--light); display: block; }
.timeline .n { width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--gold); color: var(--gold); display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.assure { font-size: 14px; color: var(--soft); display: grid; gap: 8px; }
.assure span::before { content: "✓ "; color: var(--gold); font-weight: 800; }
@media (max-width: 960px) { .signup-page { grid-template-columns: 1fr; background: var(--light); } .signup-aside { position: static; height: auto; } }

.welcome { min-height: 100vh; display: grid; place-items: center; padding: 40px 20px; background: radial-gradient(1200px 600px at 80% -10%, rgba(31,163,155,.18), transparent), var(--light); }
.welcome .box { background: var(--white); border-radius: 28px; box-shadow: var(--shadow-lg); max-width: 640px; width: 100%; padding: clamp(28px, 5vw, 52px); text-align: center; }
.welcome .tick { width: 76px; height: 76px; border-radius: 50%; background: linear-gradient(135deg, var(--teal), var(--teal-2)); display: grid; place-items: center; color: #fff; margin: 0 auto 22px; animation: pop .5s var(--ease); }
.welcome .tick svg { width: 38px; height: 38px; }
.welcome h1 { font-size: clamp(30px, 4vw, 40px); }
.welcome .lede { margin: 12px auto 0; }
.ws-url { display: inline-flex; gap: 8px; align-items: center; margin-top: 22px; background: var(--light); border: 1px dashed var(--teal); border-radius: 12px; padding: 10px 16px; font-weight: 650; color: var(--teal); word-break: break-all; }
.welcome ol { text-align: left; margin: 30px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; counter-reset: w; }
.welcome ol li { counter-increment: w; display: grid; grid-template-columns: 34px 1fr; gap: 12px; background: var(--light); border-radius: 14px; padding: 14px; color: var(--muted); font-size: 15px; }
.welcome ol li::before { content: counter(w); width: 30px; height: 30px; border-radius: 50%; background: var(--dark); color: var(--gold); display: grid; place-items: center; font-weight: 750; font-size: 14px; }
.welcome ol b { color: var(--ink); display: block; }
.spinner { width: 46px; height: 46px; border: 4px solid var(--alt); border-top-color: var(--teal); border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto 20px; }
@keyframes spin { to { transform: rotate(360deg); } }
.demo-flag { position: fixed; bottom: 12px; left: 50%; transform: translateX(-50%); white-space: nowrap; z-index: 50; background: var(--gold); color: var(--dark); font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 999px; box-shadow: var(--shadow); }
.plan-compare table { table-layout: fixed; }
.plan-compare thead th:first-child, .plan-compare tbody th[scope="row"] { width: 36%; text-align: left; }
