/* voice.scrini.ai — one stylesheet for every page.
   Tokens are the console's own (ui/src/app/globals.css), so signing in from the
   site does not feel like arriving somewhere else. */
:root {
  --bg: #0b1220;
  --bg-2: #0f1728;
  --surface: #111c30;
  --surface-2: #16233a;
  --ink: #e6edf7;
  --ink-muted: #8fa0b8;
  --ink-faint: #5d6e88;
  --line: #1d2b42;
  --line-soft: #172234;
  --accent: #16c264;
  --accent-soft: #3ddb87;
  --accent-ink: #04160b;
  --accent-bg: rgba(22, 194, 100, 0.12);
  --accent-line: rgba(22, 194, 100, 0.28);
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --radius: 14px;
  --gutter: 24px;
  --max: 1160px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-sans); font-size: 16px;
       line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; }
svg { display: block; }
p, h1, h2, h3, h4, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.i { width: 18px; height: 18px; flex: 0 0 auto; }

.skip { position: absolute; left: -9999px; top: 12px; background: var(--accent); color: var(--accent-ink);
        padding: 8px 14px; border-radius: 8px; font-weight: 600; z-index: 20; text-decoration: none; }
.skip:focus { left: 16px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------------------------------------------------------------- type */
.eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
           color: var(--accent-soft); margin-bottom: 14px; display: block; }
h1, h2, h3, h4 { font-weight: 600; letter-spacing: -.025em; line-height: 1.12; }
/* Even line lengths, so no heading ends on one stranded word. */
h1, h2, .lede { text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5vw, 3.9rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.08rem; letter-spacing: -.012em; line-height: 1.3; }
h1 em, h2 em { font-style: normal; color: var(--accent-soft); }
.lede { color: var(--ink-muted); font-size: 1.12rem; max-width: 62ch; margin-top: 16px; }
.muted { color: var(--ink-muted); }
.small { font-size: 13.5px; color: var(--ink-faint); }
code, .mono { font-family: var(--font-mono); font-size: .9em; }
p code, li code { background: var(--bg-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }

/* ---------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 20px;
       border-radius: 10px; font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap;
       transition: background .15s, border-color .15s, transform .15s; border: 1px solid transparent; }
.btn:active { transform: translateY(1px); }
.btn .i { width: 16px; height: 16px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-soft); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: rgba(255,255,255,.02); }
.btn-ghost:hover { border-color: var(--ink-faint); background: rgba(255,255,255,.05); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.text-link { color: var(--accent-soft); text-decoration: none; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.text-link .i { width: 15px; height: 15px; }

/* ---------------------------------------------------------------- header */
header.nav { position: sticky; top: 0; z-index: 10; background: rgba(11,18,32,.82);
             backdrop-filter: saturate(140%) blur(12px); -webkit-backdrop-filter: saturate(140%) blur(12px);
             border-bottom: 1px solid var(--line-soft); }
.nav .wrap { display: flex; align-items: center; height: 68px; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 17px; letter-spacing: -.01em; flex: 0 0 auto; }
.brand svg { width: 28px; height: 28px; }
.brand small { color: var(--ink-faint); font-weight: 500; font-size: 13px; }
nav.primary { display: flex; align-items: center; gap: 4px; flex: 1; }
.nav a.link { color: var(--ink-muted); text-decoration: none; font-size: 14.5px; padding: 8px 10px; border-radius: 8px;
              display: inline-flex; align-items: center; gap: 4px; }
.nav a.link:hover, .nav a.link[aria-current="page"] { color: var(--ink); }
.nav a.link[aria-current="page"] { background: rgba(255,255,255,.04); }
.caret { width: 12px; height: 12px; opacity: .7; }
.actions { display: flex; align-items: center; gap: 10px; }

/* Use-cases dropdown: :hover for a mouse, :focus-within for a keyboard. */
.dd { position: relative; }
.dd-panel { display: none; position: absolute; top: calc(100% + 6px); left: -12px; width: 380px; padding: 8px;
            background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
            box-shadow: 0 24px 60px -20px rgba(0,0,0,.7); }
.dd-panel::before { content: ""; position: absolute; top: -10px; left: 0; right: 0; height: 10px; } /* hover bridge */
.dd:hover .dd-panel, .dd:focus-within .dd-panel { display: grid; }
.dd-panel a { text-decoration: none; padding: 10px 12px; border-radius: 9px; display: grid; gap: 2px; }
.dd-panel a:hover, .dd-panel a:focus-visible { background: var(--surface-2); }
.dd-panel strong { font-size: 14.5px; font-weight: 600; }
.dd-panel span { font-size: 13px; color: var(--ink-muted); }
.dd-panel .dd-all { color: var(--accent-soft); font-size: 13.5px; font-weight: 600; border-top: 1px solid var(--line); border-radius: 0 0 9px 9px; margin-top: 4px; }

.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 10px;
                display: grid; place-content: center; gap: 4px; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; }
.menu-panel { position: absolute; right: 0; top: calc(100% + 10px); width: min(320px, calc(100vw - 32px)); padding: 10px;
              background: var(--surface); border: 1px solid var(--line); border-radius: 14px; display: grid; gap: 2px;
              box-shadow: 0 24px 60px -20px rgba(0,0,0,.8); }
.menu-panel a { text-decoration: none; padding: 10px 12px; border-radius: 9px; font-weight: 500; }
.menu-panel a:hover { background: var(--surface-2); }
.menu-panel a.sub { color: var(--ink-muted); font-size: 14px; padding-left: 24px; }
.menu-panel .btn { margin-top: 8px; }

/* ---------------------------------------------------------------- sections */
section { padding: 96px 0; border-top: 1px solid var(--line-soft); }
section.tight { padding: 64px 0; }
.section-head { max-width: 760px; }
.section-head.center { margin: 0 auto; text-align: center; }
.section-head.center .lede { margin-left: auto; margin-right: auto; }
.section-foot { margin-top: 32px; }

/* ---------------------------------------------------------------- heroes */
.hero { position: relative; padding: 88px 0 96px; border-top: 0; overflow: hidden; }
.hero::before, .page-hero::before { content: ""; position: absolute; width: 780px; height: 780px; right: -240px; top: -300px;
  background: radial-gradient(closest-side, rgba(22,194,100,.15), transparent 70%); pointer-events: none; }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; gap: 64px; align-items: center; }
.hero .wrap > *, .split > * { min-width: 0; }
.hero h1 { max-width: 14ch; }
.fine { margin-top: 22px; color: var(--ink-faint); font-size: 13.5px; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.fine span { display: inline-flex; align-items: center; gap: 7px; }
.fine span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.page-hero { position: relative; overflow: hidden; padding: 80px 0 72px; border-top: 0; }
.page-hero .wrap { position: relative; }
.page-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); max-width: 20ch; }
.crumbs { display: flex; gap: 8px; font-size: 13.5px; color: var(--ink-faint); margin-bottom: 18px; }
.crumbs a { color: var(--ink-muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }

/* ---------------------------------------------------------------- run card (home hero) */
.run { background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); border-radius: 18px;
       padding: 20px 20px 16px; box-shadow: 0 30px 80px -30px rgba(0,0,0,.75); }
.run-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-muted);
            padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.run-head b { color: var(--ink); font-weight: 600; }
.live { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; color: var(--accent-soft); white-space: nowrap; }
.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(22,194,100,.55); } 70% { box-shadow: 0 0 0 9px rgba(22,194,100,0); } 100% { box-shadow: 0 0 0 0 rgba(22,194,100,0); } }
.timeline { position: relative; margin-top: 14px; display: grid; gap: 14px; }
.timeline::before { content: ""; position: absolute; left: 15px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.tl { position: relative; display: grid; grid-template-columns: 32px 1fr auto; gap: 12px; align-items: start; }
.tl .dot { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--bg-2);
           border: 1px solid var(--line); color: var(--ink-muted); position: relative; z-index: 1; }
.tl .dot .i { width: 15px; height: 15px; }
.tl.on .dot { color: var(--accent-soft); border-color: var(--accent-line); background: #0e2a22; }
.tl b { display: block; font-size: 14px; font-weight: 600; }
.tl span { display: block; font-size: 13px; color: var(--ink-muted); line-height: 1.45; }
.tl time { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-faint); padding-top: 3px; }
.caption { margin-top: 14px; font-size: 12px; color: var(--ink-faint); text-align: right; }

/* ---------------------------------------------------------------- strips */
.strip { padding: 30px 0; }
.strip .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 36px; }
.strip p { color: var(--ink-faint); font-size: 13.5px; }
.strip ul { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.strip li { color: var(--ink-muted); font-weight: 600; font-size: 15px; letter-spacing: -.01em; display: inline-flex; align-items: center; gap: 8px; }
.strip li .i { color: var(--accent-soft); width: 16px; height: 16px; }

/* ---------------------------------------------------------------- flow diagram */
.flow { display: grid; grid-template-columns: 1fr auto 1.1fr auto 1fr; align-items: stretch; gap: 14px; margin-top: 48px; }
.flow-col { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.flow-col.agent { border-color: var(--accent-line); background: linear-gradient(180deg, #0f2a24, var(--surface)); }
.flow-col h3 { display: flex; align-items: center; gap: 10px; }
.flow-col h3 .i { color: var(--accent-soft); }
.flow-col > p { color: var(--ink-muted); font-size: 14px; margin-top: 6px; }
.flow-col ul { margin-top: 14px; display: grid; gap: 8px; }
.flow-col li { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--ink); background: var(--bg-2);
               border: 1px solid var(--line-soft); border-radius: 9px; padding: 8px 10px; }
.flow-col li .i { width: 15px; height: 15px; color: var(--ink-muted); }
.flow-arrow { display: grid; place-items: center; color: var(--ink-faint); }
.flow-arrow .i { width: 22px; height: 22px; }

/* ---------------------------------------------------------------- cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.cards.four { grid-template-columns: repeat(4, 1fr); }
.card { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); display: flex; flex-direction: column; }
a.card { text-decoration: none; transition: border-color .15s, transform .15s; }
a.card:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.card .ico { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-bg); color: var(--accent-soft);
             display: grid; place-items: center; margin-bottom: 18px; }
.card .ico .i { width: 19px; height: 19px; }
.card p { color: var(--ink-muted); font-size: 15px; margin-top: 8px; }
.card ul { margin-top: 16px; display: grid; gap: 8px; }
.card li, .checks li { display: flex; gap: 10px; font-size: 14.5px; color: var(--ink-muted); }
.card li::before { content: ""; flex: 0 0 5px; height: 5px; margin-top: 9px; border-radius: 50%; background: var(--ink-faint); }
.card .more { margin-top: auto; padding-top: 18px; }
.checks { display: grid; gap: 10px; margin-top: 20px; }
.checks li .i { color: var(--accent-soft); width: 17px; height: 17px; margin-top: 3px; }
.checks li { color: var(--ink); }
.checks li span { color: var(--ink-muted); }

/* bordered grid of short features */
.cells { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 48px; background: var(--line);
         border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cells.three { grid-template-columns: repeat(3, 1fr); }
.cell { background: var(--bg); padding: 26px; }
.cell h3 { display: flex; align-items: flex-start; gap: 10px; }
.cell h3 .i { color: var(--accent-soft); width: 17px; height: 17px; margin-top: 2px; }
.cell p { color: var(--ink-muted); font-size: 14.5px; margin-top: 8px; }

/* ---------------------------------------------------------------- split (text + visual) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.rev > :first-child { order: 2; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.panel-title { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 14px; }

/* numbered steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; counter-reset: step; }
.steps.four { grid-template-columns: repeat(4, 1fr); }
.step { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.step::before { counter-increment: step; content: "0" counter(step); display: block; font-family: var(--font-mono); font-size: 13px; color: var(--accent-soft); margin-bottom: 16px; }
.step p { color: var(--ink-muted); margin-top: 8px; font-size: 15px; }

/* recipes: a trigger and the steps it sets off, as one line of pills */
.recipes { display: grid; gap: 14px; margin-top: 48px; }
.recipe { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 20px 22px; }
.recipe h3 { font-size: 1rem; }
.recipe p { color: var(--ink-muted); font-size: 14.5px; margin-top: 4px; }
.pipe { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.pill { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; padding: 6px 11px; border-radius: 999px;
        background: var(--bg-2); border: 1px solid var(--line); color: var(--ink); white-space: nowrap; }
.pill .i { width: 14px; height: 14px; color: var(--ink-muted); }
.pill.trigger { border-color: var(--accent-line); background: var(--accent-bg); }
.pill.trigger .i { color: var(--accent-soft); }
.pipe .to { color: var(--ink-faint); font-size: 14px; }

/* chips (integration names) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip { font-size: 14px; padding: 7px 12px; border-radius: 9px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); }
.int-groups { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 48px; }
.int-group { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: var(--bg-2); }
.int-group h3 { display: flex; align-items: center; gap: 10px; }
.int-group h3 .i { color: var(--accent-soft); }
.int-group > p { color: var(--ink-muted); font-size: 14.5px; margin-top: 6px; }

/* channel blocks */
.channel { display: grid; grid-template-columns: 280px 1fr; gap: 48px; padding: 48px 0; border-top: 1px solid var(--line-soft); }
.channel:first-of-type { border-top: 0; padding-top: 0; }
.channel .ch-name { display: flex; align-items: center; gap: 12px; }
.channel .ch-name .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-bg); color: var(--accent-soft); display: grid; place-items: center; }
.channel .ch-name .ico .i { width: 21px; height: 21px; }
.channel .ch-name h2 { font-size: 1.6rem; }
.channel .how { margin-top: 12px; font-size: 13.5px; color: var(--ink-faint); }
.channel .checks { margin-top: 0; }

/* code */
pre { margin: 0; background: #070d18; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
      overflow-x: auto; font-family: var(--font-mono); font-size: 13.5px; line-height: 1.7; color: #c6d3e6; }
pre .c { color: var(--ink-faint); } pre .k { color: var(--accent-soft); } pre .s { color: #9ec7ff; }
.code-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; font-family: var(--font-sans);
             font-size: 12px; color: var(--ink-faint); }
.code-head .dots { display: flex; gap: 6px; }
.code-head .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }

/* use-case page: "what you see" dashboard sketch */
.dash { display: grid; gap: 12px; }
.dash-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tile { background: var(--bg-2); border: 1px solid var(--line-soft); border-radius: 10px; padding: 12px; }
.tile small { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-faint); }
.tile b { font-size: 22px; font-weight: 600; }
.stages { display: flex; height: 10px; gap: 2px; border-radius: 4px; overflow: hidden; }
.stages i { display: block; }
.dash-rows { display: grid; gap: 6px; }
.dash-row { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; padding: 8px 10px; border-radius: 8px; background: var(--bg-2); border: 1px solid var(--line-soft); }
.dash-row span:last-child { color: var(--ink-muted); white-space: nowrap; }

/* closing band */
.cta-band { text-align: center; }
.cta-band h2 { margin: 0 auto; max-width: 20ch; }
.cta-band .lede { margin-left: auto; margin-right: auto; }
.cta-band .cta { justify-content: center; }

/* contact */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 8px; }

/* ---------------------------------------------------------------- footer */
.site-footer { border-top: 1px solid var(--line); background: #0a1020; padding: 64px 0 36px; }
.footer-top { display: grid; grid-template-columns: 300px 1fr; gap: 56px; }
.footer-brand p { color: var(--ink-muted); font-size: 14.5px; margin: 16px 0 20px; max-width: 34ch; }
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.footer-cols h2 { font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--ink); margin-bottom: 14px; }
.footer-cols ul { display: grid; gap: 10px; }
.footer-cols a { color: var(--ink-muted); text-decoration: none; font-size: 14px; }
.footer-cols a:hover { color: var(--ink); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 24px;
                 border-top: 1px solid var(--line-soft); color: var(--ink-faint); font-size: 13px; }
.hosted { display: inline-flex; align-items: center; gap: 8px; }
.hosted .i { width: 15px; height: 15px; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  nav.primary { display: none; }
  .actions { margin-left: auto; }
  .menu { display: block; }
  .flow { grid-template-columns: 1fr; }
  .flow-arrow { transform: rotate(90deg); height: 24px; }
  .cells { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 960px) {
  .hero .wrap, .split { grid-template-columns: 1fr; gap: 48px; }
  .split.rev > :first-child { order: 0; }
  .cards, .cards.four, .steps.four { grid-template-columns: repeat(2, 1fr); }
  .int-groups, .contact-grid { grid-template-columns: 1fr; }
  .channel { grid-template-columns: 1fr; gap: 20px; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  :root { --gutter: 16px; }
  section { padding: 72px 0; }
  .hero { padding: 56px 0 72px; }
  .page-hero { padding: 56px 0 56px; }
  /* Sign in stays in the bar on a phone; Book a demo moves into the menu. */
  .brand small, .actions > .btn { display: none; }
  .cards, .cards.two, .cards.four, .steps, .steps.four, .cells, .cells.three { grid-template-columns: 1fr; }
  .cta .btn { flex: 1 1 100%; }
  .dash-tiles { grid-template-columns: repeat(3, 1fr); }
  .tl { grid-template-columns: 32px 1fr; }
  .tl time { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .live::before { animation: none; }
  a.card:hover { transform: none; }
}
