/*
 * Olisend public site, see spec section 54. Brand tokens from docs/brand.md.
 *
 * Two rules the brand document implies but does not spell out, and which the
 * first version of this page broke:
 *
 *  - The three-stop gradient starts at #10A8FF. White text on that end is
 *    about 2.6:1, below AA, so the gradient carries no text: buttons ramp
 *    from --blue, and the full gradient is left to the mark, the launcher
 *    and a rule.
 *  - The sample conversations are Greek, so the face has to carry Greek.
 *    Geologica does; IBM Plex Mono does not, which is why the mono is only
 *    ever used for Latin figures and code.
 */

/* ------------------------------------------------------------------ fonts */

/*
 * Self-hosted rather than fetched from a font CDN: the page would otherwise
 * make every visitor's browser call a third party before it can draw a word.
 * Served from /fonts, one copy for the site, the dashboard and the widget.
 *
 * Geologica is the variable face, one file per script; IBM Plex Mono is
 * Latin only, which is all the code block needs.
 */

@font-face {
    font-family: 'Geologica';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('/fonts/geologica-greek.woff2') format('woff2');
    unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}

@font-face {
    font-family: 'Geologica';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('/fonts/geologica-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
                   U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
                   U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Geologica';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('/fonts/geologica-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
                   U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
                   U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'IBM Plex Mono';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/plex-mono-400-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
                   U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
                   U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'IBM Plex Mono';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('/fonts/plex-mono-500-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
                   U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
                   U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ----------------------------------------------------------------- tokens */

:root {
    --blue-light: #10a8ff;
    --blue: #176cf2;
    --purple: #6535e8;

    /* The mark, the launcher, a rule — never under text. */
    --gradient: linear-gradient(120deg, var(--blue-light), var(--blue) 45%, var(--purple));
    /* Buttons: the same journey, started where white text is legible. */
    --gradient-safe: linear-gradient(120deg, var(--blue), #5a2ee0);

    --blue-deep: #1259cc;
    --violet-deep: #4a3aa8;

    --ink: #10131c;
    --ink-2: #3e4759;
    --ink-3: #59627a;
    --ink-4: #8a93a6;

    --line: #dfe3ed;
    --line-soft: #eceff6;
    --surface: #ffffff;
    --paper: #f4f5f9;
    --tint-blue: #eaf1fe;
    --tint-violet: #efeafd;

    --night: #0f1320;
    --night-2: #151a2c;
    --night-line: #262c43;
    --night-text: #d5dcec;
    --night-meta: #9aa4bd;

    --sans: 'Geologica', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

    --wrap: 1184px;
    --radius: 16px;
    --section: clamp(60px, 7vw, 92px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--surface);
    color: var(--ink);
    font: 400 16px/1.6 var(--sans);
    -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { animation: none !important; transition: none !important; }
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }

/* The header is sticky, so an anchor has to stop short of it. */
section[id], main[id] { scroll-margin-top: 88px; }

h1, h2, h3 { margin: 0; letter-spacing: -0.03em; line-height: 1.12; }
h1 { font-size: clamp(36px, 4.6vw, 56px); font-weight: 750; letter-spacing: -0.035em; line-height: 1.04; }
h2 { font-size: clamp(28px, 3.3vw, 40px); font-weight: 720; }
h3 { font-size: 19px; font-weight: 680; letter-spacing: -0.015em; }

p { margin: 0; }

a { color: var(--blue-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.accent { color: var(--blue); }

.eyebrow {
    display: flex; align-items: center; gap: 9px;
    font-family: var(--mono); font-size: 11.5px; font-weight: 500;
    letter-spacing: 0.15em; text-transform: uppercase;
    color: var(--violet-deep);
}

.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: -9999px;
    background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip:focus { left: 16px; top: 16px; z-index: 40; }

/* ---------------------------------------------------------------- buttons */

.button {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    height: 52px; padding: 0 28px;
    border: 1px solid transparent; border-radius: 12px;
    background: var(--gradient-safe); color: #fff;
    font-family: inherit; font-size: 16px; font-weight: 640;
    cursor: pointer;
}
.button:hover { text-decoration: none; filter: brightness(1.07); }

.button.small { height: 40px; padding: 0 18px; font-size: 14.5px; border-radius: 10px; }

.button.ghost {
    background: none; color: var(--ink); border-color: #d6dbe8;
}
.button.ghost:hover { border-color: var(--blue); color: var(--blue-deep); filter: none; }

.button.light { background: #fff; color: var(--ink); }
.button.light:hover { filter: brightness(0.96); }

.button.outline { background: none; color: #fff; border-color: #333b58; }
.button.outline:hover { border-color: #5b678c; filter: none; }

/* ----------------------------------------------------------------- header */

.site-header {
    position: sticky; top: 0; z-index: 20;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid #e7eaf2;
}

.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo img { display: block; height: 26px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { color: var(--ink-2); font-size: 14.5px; font-weight: 500; }
.site-nav a:hover { color: var(--ink); }
.site-nav a.button { color: #fff; }
.site-nav .rule { width: 1px; height: 20px; background: #e2e5ee; }

.menu-toggle {
    display: none;
    width: 44px; height: 44px; align-items: center; justify-content: center;
    border: 1px solid #e2e5ee; border-radius: 10px;
    background: #fff; color: var(--ink); cursor: pointer;
}

.mobile-nav {
    display: none; gap: 2px;
    padding: 8px 32px 16px;
    border-top: 1px solid var(--line-soft);
    background: rgba(255, 255, 255, 0.98);
}
.mobile-nav a {
    display: block; padding: 12px 0;
    color: var(--ink-2); font-size: 16px; font-weight: 550;
    border-bottom: 1px solid var(--line-soft);
}
.mobile-nav a:last-child { border-bottom: 0; }

/* ------------------------------------------------------------------- hero */

.hero { padding: clamp(48px, 6.5vw, 92px) 0; }

.hero-inner {
    display: grid; grid-template-columns: 1.05fr 1fr;
    gap: clamp(32px, 4vw, 50px); align-items: center;
}

.hero-copy h1 { margin-top: 22px; }

.lede { margin-top: 24px; font-size: clamp(17px, 1.5vw, 18.5px); color: var(--ink-2); max-width: 43ch; }

.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.ticks { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 24px; color: var(--ink-2); font-size: 15px; }
.ticks li::before {
    content: ''; position: absolute; left: 0; top: 0.55em;
    width: 13px; height: 7px;
    border-left: 2.4px solid var(--blue); border-bottom: 2.4px solid var(--blue);
    transform: rotate(-45deg);
}

.ticks.inline {
    display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 26px;
}
.ticks.inline li { font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); padding-left: 20px; }
.ticks.inline li::before { width: 11px; height: 6px; border-width: 2.2px; top: 0.5em; }

/* Stills of the two screens, drawn with the widget's own tokens. */

.hero-shot { position: relative; padding-bottom: 46px; }

.shot-app {
    width: 88%;
    background: var(--surface);
    border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: 0 30px 66px rgba(16, 19, 28, 0.14);
    overflow: hidden;
}

.shot-bar {
    display: flex; align-items: center; gap: 8px;
    height: 40px; padding: 0 14px;
    border-bottom: 1px solid var(--line-soft); background: #fbfcfe;
}
.shot-bar span { width: 9px; height: 9px; border-radius: 50%; background: #e4e7f0; }
.shot-bar em { margin-left: 8px; font-family: var(--mono); font-size: 11px; font-style: normal; color: #626b7e; }

.shot-body { display: flex; min-height: 240px; }

.shot-list { width: 36%; border-right: 1px solid var(--line-soft); background: #fbfcfe; padding: 10px 0; }
.shot-row { padding: 9px 13px 9px 16px; }
.shot-row.current { border-left: 3px solid var(--blue); padding-left: 13px; background: #fff; }
.shot-row strong { display: block; font-size: 12.5px; font-weight: 650; }
.shot-row span {
    display: block; font-size: 11.5px; color: #626b7e; margin-top: 2px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.shot-thread { flex: 1; min-width: 0; padding: 14px; display: flex; flex-direction: column; gap: 9px; }

/* "us" and "them" are relative to whoever is looking at the pane: the agent
   in .shot-thread, the visitor in .shot-widget-body. */
.bubble { max-width: 84%; padding: 8px 11px; font-size: 12.5px; line-height: 1.45; }
.shot-thread .bubble.them { align-self: flex-start; background: #f1f3f9; border-radius: 12px 12px 12px 3px; }
.shot-thread .bubble.us { align-self: flex-end; background: var(--blue); color: #fff; border-radius: 12px 12px 3px 12px; }

.shot-suggest {
    align-self: flex-start; display: flex; align-items: center; gap: 7px;
    padding: 7px 10px; border-radius: 10px;
    border: 1px dashed #c3b6f2; background: #f7f4fe;
    font-size: 11.5px; font-weight: 600; color: var(--violet-deep);
}

.shot-composer {
    margin-top: auto; height: 32px; display: flex; align-items: center; padding: 0 10px;
    border: 1px solid #e4e7f0; border-radius: 9px;
    font-size: 11.5px; color: var(--ink-4);
}

.shot-widget {
    position: absolute; right: 0; bottom: 8px; width: 49%;
    border: 1px solid #dde1ec; border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 22px 50px rgba(16, 19, 28, 0.18);
    overflow: hidden;
}

.shot-widget-head { padding: 13px 15px; background: var(--blue); color: #fff; }
.shot-widget-head strong { display: block; font-size: 13.5px; font-weight: 650; }
.shot-widget-head span { font-size: 11.5px; color: #dce8ff; }

.shot-widget-body { padding: 14px; display: flex; flex-direction: column; gap: 8px; background: #f7f8fc; }
.shot-widget-body .bubble.us { align-self: flex-end; background: var(--blue); color: #fff; border-radius: 12px 12px 3px 12px; }
.shot-widget-body .bubble.them { align-self: flex-start; background: #fff; border: 1px solid #e4e7f0; border-radius: 12px 12px 12px 3px; }
.bubble.small { font-size: 12px; }

.shot-status {
    align-self: flex-start; display: inline-flex; align-items: center; gap: 5px;
    margin-top: 2px; font-size: 11px; font-weight: 650; color: #1f8a4c;
}
.shot-status svg { flex-shrink: 0; }

.shot-widget-composer { padding: 11px 15px; border-top: 1px solid #e9ecf4; font-size: 12px; color: var(--ink-4); }

.shot-launcher {
    position: absolute; right: 8px; bottom: -22px;
    width: 54px; height: 54px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--gradient);
    box-shadow: 0 10px 26px rgba(101, 53, 232, 0.42);
}

/* ------------------------------------------------------------------ strip */

.strip { background: var(--night); color: #fff; padding: 26px 0; }
.strip-inner { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.strip-inner > div + div { border-left: 1px solid var(--night-line); padding-left: 28px; }

.strip-fact { font-size: 16px; font-weight: 650; letter-spacing: -0.01em; }
.strip-label {
    font-family: var(--mono); font-size: 10.5px;
    letter-spacing: 0.16em; text-transform: uppercase; color: var(--night-meta);
    margin-top: 5px;
}
.strip-inner > div:first-child .strip-label { margin: 0 0 5px; color: #8f9ab5; }

/* ---------------------------------------------------------------- pillars */

.pillars { padding: var(--section) 0; }
.pillars h2 { margin-top: 14px; max-width: 20ch; }

.pillar-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px; margin-top: 44px;
}

.pillar {
    padding: 28px;
    border: 1px solid #e4e7f0; border-radius: var(--radius);
    background: var(--surface);
}
.pillar.featured { border-color: #dcd4f7; background: #fcfbff; }

.pillar-mark {
    display: flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; border-radius: 13px;
    background: var(--tint-blue); color: var(--blue-deep);
}
.pillar.featured .pillar-mark { background: var(--tint-violet); color: var(--violet-deep); }

.pillar h3 { margin-top: 20px; }
.pillar p { margin-top: 9px; font-size: 14.5px; line-height: 1.62; color: var(--ink-2); }

/* ---------------------------------------------------------------- toolbox */

.toolbox { background: var(--paper); padding: var(--section) 0; }

.toolbox-inner { display: grid; grid-template-columns: 300px 1fr; gap: clamp(28px, 4vw, 56px); }
.toolbox-inner > div:first-child h2 { font-size: clamp(25px, 2.6vw, 30px); }
.toolbox-inner > div:first-child p { margin-top: 14px; font-size: 14.5px; color: var(--ink-2); }

.toolbox-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0 44px; }
.toolbox-group h3 {
    padding-bottom: 12px; border-bottom: 2px solid var(--blue);
    font-family: var(--mono); font-size: 11.5px; font-weight: 500;
    letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue-deep);
}
.toolbox-group ul { margin: 0; padding: 0; list-style: none; }
.toolbox-group li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.toolbox-group li:last-child { border-bottom: 0; }
.toolbox-group strong { display: block; font-size: 15.5px; font-weight: 650; }
.toolbox-group span { display: block; margin-top: 4px; font-size: 13.5px; line-height: 1.55; color: var(--ink-3); }

/* --------------------------------------------------------------- showcase */

.showcase { padding: var(--section) 0; }

.showcase-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.showcase-head h2 { margin-top: 14px; }
.showcase-lede { font-size: 15px; line-height: 1.62; color: var(--ink-2); max-width: 38ch; }

.app-shot {
    display: flex; margin-top: 40px; height: 420px;
    border: 1px solid var(--line); border-radius: 18px;
    background: var(--surface);
    box-shadow: 0 28px 64px rgba(16, 19, 28, 0.11);
    overflow: hidden;
}

.app-rail {
    width: 60px; flex-shrink: 0; background: var(--night);
    padding: 16px 0; display: flex; flex-direction: column; align-items: center; gap: 18px;
}
.app-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--gradient); }

.app-queue { width: 300px; flex-shrink: 0; border-right: 1px solid var(--line-soft); background: #fbfcfe; }

.app-queue-head {
    display: flex; align-items: center; justify-content: space-between;
    height: 56px; padding: 0 18px; border-bottom: 1px solid var(--line-soft);
}
.app-queue-head strong { font-size: 15px; font-weight: 680; }

.pill {
    font-family: var(--mono); font-size: 11px;
    padding: 3px 8px; border-radius: 999px;
    background: var(--tint-blue); color: var(--blue-deep);
}

.app-conv { padding: 14px 18px 14px 21px; border-top: 1px solid #f0f2f8; }
.app-conv:first-of-type { border-top: 0; }
.app-conv.current { border-left: 3px solid var(--blue); padding-left: 18px; background: #fff; }
.app-conv-top { display: flex; align-items: baseline; justify-content: space-between; }
.app-conv-top strong { font-size: 14px; font-weight: 620; color: var(--ink-2); }
.app-conv.current .app-conv-top strong { font-weight: 680; color: var(--ink); }
.app-conv-top em { font-family: var(--mono); font-size: 10.5px; font-style: normal; color: #626b7e; }
.app-conv p {
    font-size: 13px; color: var(--ink-3); margin-top: 3px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.tag {
    display: inline-block; margin-top: 8px;
    font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
    padding: 2px 7px; border-radius: 4px;
    background: #fdf0e6; color: #8a4a12;
}
.tag.ai { background: var(--tint-violet); color: var(--violet-deep); }
.tag.human { background: var(--tint-blue); color: var(--blue-deep); }
.tag.done { background: #e6f6ec; color: #1f8a4c; }
.tag.wait { background: #eef0f6; color: #59627a; }
.tag + .tag { margin-left: 6px; }

.app-thread { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.app-thread-head {
    display: flex; align-items: center; justify-content: space-between;
    height: 56px; padding: 0 22px; border-bottom: 1px solid var(--line-soft);
}
.app-who { display: flex; align-items: center; gap: 10px; }
.app-who strong { font-size: 14.5px; font-weight: 680; }
.app-who em { font-family: var(--mono); font-size: 10.5px; font-style: normal; color: #626b7e; }

.avatar {
    display: flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--tint-blue); color: var(--blue-deep);
    font-size: 12px; font-weight: 680;
}

.app-actions { display: flex; gap: 8px; }
.mini {
    display: inline-flex; align-items: center; height: 32px; padding: 0 13px;
    border: 1px solid var(--line); border-radius: 8px;
    background: #fff; font-size: 13px; font-weight: 600; color: var(--ink-2);
}
.mini.solid { background: var(--blue); border-color: transparent; color: #fff; }
.mini.violet { background: var(--violet-deep); border-color: transparent; color: #fff; }

.app-messages {
    flex: 1; min-height: 0; padding: 22px; background: #fdfdff;
    display: flex; flex-direction: column; gap: 12px;
}
.app-day {
    align-self: center; font-family: var(--mono); font-size: 10.5px;
    letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-4);
}
.app-messages .bubble { max-width: 68%; padding: 11px 14px; font-size: 14px; line-height: 1.5; }
.app-messages .bubble.them { align-self: flex-start; background: #f1f3f9; border-radius: 14px 14px 14px 4px; }
.app-messages .bubble.us { align-self: flex-end; background: var(--blue); color: #fff; border-radius: 14px 14px 4px 14px; }

.app-suggest {
    align-self: flex-start; max-width: 76%; padding: 12px 14px;
    border: 1px dashed #c3b6f2; border-radius: 12px; background: #f7f4fe;
}
.app-suggest-head {
    display: flex; align-items: center; gap: 7px;
    font-size: 12px; font-weight: 680; color: var(--violet-deep);
}
.app-suggest-body { font-size: 13.5px; line-height: 1.5; color: var(--ink-2); margin-top: 7px; }
.app-suggest-actions { display: flex; gap: 8px; margin-top: 11px; }
.app-suggest-actions .mini { height: 30px; font-size: 12.5px; }

.app-composer {
    margin-top: auto; height: 42px; display: flex; align-items: center; padding: 0 14px;
    border: 1px solid #e4e7f0; border-radius: 10px; background: #fff;
    font-size: 13.5px; color: var(--ink-4);
}

.app-side { width: 216px; flex-shrink: 0; padding: 18px; border-left: 1px solid var(--line-soft); background: #fbfcfe; }
.app-side hr { border: 0; border-top: 1px solid #e7eaf2; margin: 16px 0; }
.app-side-label {
    font-family: var(--mono); font-size: 10.5px;
    letter-spacing: 0.12em; text-transform: uppercase; color: #626b7e;
}
.app-side-name { font-size: 14px; font-weight: 680; margin-top: 10px; }
.app-side-meta { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; line-height: 1.5; }
.app-side-value { font-size: 13.5px; font-weight: 620; }

/* ---------------------------------------------------------------- install */

.install { background: var(--night); color: #fff; padding: var(--section) 0; }
.install-inner { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 4.5vw, 60px); align-items: center; }
.install .eyebrow { color: #9fc3ff; }
.install h2 { margin-top: 14px; color: #fff; }

.steps { margin: 26px 0 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.steps li { display: flex; gap: 13px; align-items: flex-start; font-size: 15px; line-height: 1.55; color: var(--night-text); }
.steps .step-no {
    flex-shrink: 0; display: flex; align-items: center; justify-content: center;
    width: 24px; height: 24px; border-radius: 7px;
    background: #1e2540; color: #bfd4ff;
    font-family: var(--mono); font-size: 11.5px;
}
.steps code { font-family: var(--mono); font-size: 13.5px; color: #fff; }

.install-lede { margin-top: 16px; font-size: 15.5px; line-height: 1.6; color: var(--night-text); max-width: 46ch; }

.audience { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 28px; }
.audience > div { padding: 18px; border: 1px solid var(--night-line); border-radius: 12px; background: var(--night-2); }
.audience h3 { font-size: 14.5px; font-weight: 680; color: #fff; }
.audience p { margin-top: 6px; font-size: 13.5px; line-height: 1.55; color: var(--night-meta); }

.snippet { border: 1px solid var(--night-line); border-radius: var(--radius); background: var(--night-2); overflow: hidden; }

.snippet-head {
    display: flex; align-items: center; justify-content: space-between;
    height: 44px; padding: 0 16px; border-bottom: 1px solid var(--night-line);
}
.snippet-file { font-family: var(--mono); font-size: 11.5px; color: var(--night-meta); }

.snippet-copy {
    display: inline-flex; align-items: center; gap: 6px;
    height: 28px; padding: 0 11px;
    border: 1px solid #333b58; border-radius: 7px;
    background: #1c2238; color: var(--night-text);
    font-family: var(--mono); font-size: 11.5px; cursor: pointer;
}
.snippet-copy:hover { background: #232a45; }

.snippet pre {
    margin: 0; padding: 22px; overflow-x: auto;
    font: 400 13.5px/1.85 var(--mono); color: #cbd5ea;
}
.c-note { color: var(--ink-4); }
.c-tag { color: #7fb2ff; }
.c-attr { color: #c3b6f2; }
.c-val { color: #9de0a8; }

.snippet-foot {
    display: flex; flex-wrap: wrap; gap: 8px 22px;
    padding: 14px 22px; border-top: 1px solid var(--night-line);
    font-family: var(--mono); font-size: 11px; color: var(--night-meta);
}

/* ---------------------------------------------------------------- pricing */

.pricing { background: var(--paper); padding: var(--section) 0; }

.pricing-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.pricing-head h2 { margin-top: 14px; }
.section-lede { margin-top: 13px; font-size: 15.5px; color: var(--ink-2); max-width: 54ch; }

.period { display: inline-flex; flex-shrink: 0; padding: 4px; border-radius: 11px; background: #e7eaf2; }
.period button {
    height: 36px; padding: 0 18px;
    border: 0; border-radius: 8px; background: none;
    font-family: inherit; font-size: 13.5px; font-weight: 600; color: var(--ink-2);
    cursor: pointer;
}
.period button.current {
    background: #fff; color: var(--ink); font-weight: 650;
    box-shadow: 0 1px 3px rgba(16, 19, 28, 0.12);
}

.plans {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px; margin-top: 40px; align-items: start;
}

.plan {
    display: flex; flex-direction: column; height: 100%;
    padding: 26px;
    border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--surface);
}
.plan.featured {
    border-color: var(--blue);
    box-shadow: 0 20px 44px rgba(23, 108, 242, 0.16);
}

.plan-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.plan h3 { font-size: 16px; font-weight: 680; }

.badge {
    font-family: var(--mono); font-size: 10px;
    letter-spacing: 0.1em; text-transform: uppercase;
    padding: 4px 9px; border-radius: 999px;
    background: var(--tint-blue); color: var(--blue-deep);
}

.plan .price { margin-top: 12px; font-size: 38px; font-weight: 760; letter-spacing: -0.035em; line-height: 1; }
.plan .price span { font-size: 14px; font-weight: 400; color: #626b7e; letter-spacing: 0; }
.plan .price-note { font-family: var(--mono); font-size: 11px; color: #626b7e; margin-top: 7px; }
.plan .blurb { margin-top: 14px; font-size: 13.5px; line-height: 1.55; color: var(--ink-3); }

.plan ul { margin: 18px 0 auto; padding: 0; list-style: none; display: grid; gap: 9px; }
.plan li { position: relative; padding-left: 22px; font-size: 13.5px; color: var(--ink-2); }
.plan li::before {
    content: ''; position: absolute; left: 0; top: 0.5em;
    width: 11px; height: 6px;
    border-left: 2.4px solid var(--blue); border-bottom: 2.4px solid var(--blue);
    transform: rotate(-45deg);
}

.plan .button { height: 44px; margin-top: 20px; font-size: 14.5px; border-radius: 10px; }

/* The two states the first version did not draw. */

.plan-skeleton { pointer-events: none; }
.plan-skeleton span {
    display: block; border-radius: 5px; background: #e7eaf2;
}
.plan-skeleton span + span { margin-top: 12px; }
.plan-skeleton .sk-name { height: 11px; width: 46%; }
.plan-skeleton .sk-price { height: 26px; width: 60%; }
.plan-skeleton .sk-line { height: 9px; width: 90%; background: #eff1f6; margin-top: 14px; }
.plan-skeleton .sk-line.short { width: 72%; margin-top: 7px; }
.plan-skeleton .sk-cta { height: 44px; margin-top: 26px; background: #eff1f6; }

.plans-error {
    grid-column: 1 / -1;
    display: flex; gap: 14px;
    padding: 24px;
    border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
}
.plans-error-mark {
    flex-shrink: 0; display: flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 11px;
    background: #fdf0e6; color: #8a4a12;
}
.plans-error h3 { font-size: 15.5px; font-weight: 680; }
.plans-error p { margin-top: 5px; font-size: 13.5px; line-height: 1.55; color: var(--ink-3); }
.plans-error button {
    height: 40px; margin-top: 14px; padding: 0 16px;
    border: 1px solid #d6dbe8; border-radius: 9px; background: #fff;
    font-family: inherit; font-size: 13.5px; font-weight: 620; color: var(--ink);
    cursor: pointer;
}
.plans-error button:hover { border-color: var(--blue); color: var(--blue-deep); }

.pricing-foot { margin-top: 26px; font-family: var(--mono); font-size: 11.5px; color: #626b7e; }

/* --------------------------------------------------------------- knowledge */

.knowledge { background: var(--paper); padding: var(--section) 0; }

.knowledge-inner {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: clamp(32px, 4vw, 56px); align-items: center;
}
.knowledge-copy h2 { margin-top: 14px; max-width: 18ch; }
.knowledge-lede { margin-top: 16px; font-size: 16px; line-height: 1.62; color: var(--ink-2); max-width: 46ch; }
.knowledge-copy .ticks { margin-top: 24px; }

.knowledge-flow {
    display: flex; flex-direction: column; align-items: center; gap: 14px;
    padding: clamp(24px, 3vw, 38px);
    border: 1px solid var(--line); border-radius: var(--radius);
    background: linear-gradient(180deg, #fbfcff, #f2f6ff);
}
.flow-sources { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.flow-sources span {
    padding: 5px 11px; border: 1px solid var(--line); border-radius: 8px;
    background: #fff; font-family: var(--mono); font-size: 11.5px; color: var(--ink-2);
}
.flow-arrow { color: var(--ink-4); font-size: 18px; line-height: 1; }
.flow-core {
    padding: 14px 28px; border-radius: 12px;
    background: var(--gradient-safe); color: #fff;
    font-weight: 680; letter-spacing: -0.01em;
    box-shadow: 0 14px 30px rgba(23, 108, 242, 0.26);
}
.flow-out {
    padding: 12px 24px; border-radius: 12px;
    background: var(--tint-blue); color: var(--blue-deep); font-weight: 650;
}

/* ---------------------------------------------------------------- handoff */

.handoff { padding: var(--section) 0; }

.handoff-inner {
    display: grid; grid-template-columns: 1fr 1.1fr;
    gap: clamp(32px, 4vw, 56px); align-items: center;
}
.handoff-copy h2 { margin-top: 14px; max-width: 16ch; }
.handoff-lede { margin-top: 16px; font-size: 16px; line-height: 1.62; color: var(--ink-2); max-width: 46ch; }

.handoff-steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.handoff-steps li {
    display: flex; gap: 14px;
    padding: 18px;
    border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--surface);
}
.handoff-steps .step-no {
    flex-shrink: 0; display: flex; align-items: center; justify-content: center;
    width: 26px; height: 26px; border-radius: 8px;
    background: var(--tint-blue); color: var(--blue-deep);
    font-family: var(--mono); font-size: 12px;
}
.handoff-steps strong { display: block; font-size: 15.5px; font-weight: 680; }
.handoff-steps div span { display: block; margin-top: 5px; font-size: 14px; line-height: 1.55; color: var(--ink-3); }

/* -------------------------------------------------------------- use cases */

.usecases { background: var(--paper); padding: var(--section) 0; }
.usecases h2 { margin-top: 14px; max-width: 20ch; }

.usecase-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 20px; margin-top: 44px;
}
.usecase-grid article {
    padding: 24px;
    border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--surface);
}
.usecase-grid h3 { font-size: 16px; font-weight: 680; }
.usecase-grid p { margin-top: 8px; font-size: 14px; line-height: 1.6; color: var(--ink-2); }

/* -------------------------------------------------------------------- roi */

.roi { padding: var(--section) 0; }
.roi-inner {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: clamp(32px, 4vw, 56px); align-items: center;
}
.roi-copy h2 { margin-top: 14px; max-width: 16ch; }
.roi-lede { margin-top: 16px; font-size: 16px; line-height: 1.62; color: var(--ink-2); max-width: 44ch; }

.roi-card {
    padding: 28px;
    border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 24px 54px rgba(16, 19, 28, 0.08);
}
.roi-fields { display: grid; grid-template-columns: 1fr auto; gap: 12px 16px; align-items: center; }
.roi-fields label { font-size: 14px; color: var(--ink-2); }
.roi-fields input {
    width: 120px; height: 42px; padding: 0 12px;
    border: 1px solid var(--line); border-radius: 9px;
    background: #fff; color: var(--ink);
    font-family: inherit; font-size: 15px; font-weight: 620; text-align: right;
}
.roi-input-suffix { display: flex; align-items: center; gap: 8px; }
.roi-input-suffix span { font-size: 14px; color: var(--ink-3); }

.roi-out {
    display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
    margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line);
}
.roi-figure { display: block; font-size: clamp(26px, 3vw, 34px); font-weight: 760; letter-spacing: -0.03em; color: var(--blue-deep); }
.roi-caption { display: block; margin-top: 4px; font-size: 12.5px; line-height: 1.45; color: var(--ink-3); }

/* ---------------------------------------------------- pricing comparison */

.compare {
    margin-top: 32px; overflow-x: auto;
    border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--surface);
}
.compare table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.compare th, .compare td {
    padding: 13px 18px; text-align: left;
    border-bottom: 1px solid var(--line-soft); white-space: nowrap;
}
.compare thead th { font-size: 12px; font-weight: 700; }
.compare tbody th { font-weight: 550; color: var(--ink-2); }
.compare td { color: var(--ink-2); }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare .compare-yes { color: #1f8a4c; font-weight: 700; }
.compare .compare-no { color: var(--ink-4); }
.compare .is-featured { background: #f7faff; }

/* -------------------------------------------------------------------- faq */

.faq { padding: var(--section) 0; }
.faq-inner { display: grid; grid-template-columns: 320px 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.faq-head h2 { margin-top: 14px; font-size: clamp(25px, 2.6vw, 30px); }

.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 18px 0; font-size: 16px; font-weight: 620; cursor: pointer;
    list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; font-family: var(--mono); font-size: 18px; color: var(--blue-deep); }
.faq-list details[open] summary::after { content: '−'; }
.faq-list p { padding: 0 0 20px; font-size: 14.5px; line-height: 1.62; color: var(--ink-2); max-width: 70ch; }

/* ---------------------------------------------------------------- closing */

.closing { background: var(--night); color: #fff; padding: var(--section) 0; text-align: center; }
.closing .wrap { display: flex; flex-direction: column; align-items: center; }
.closing-rule { width: 52px; height: 4px; border-radius: 4px; background: var(--gradient); }
.closing h2 { margin-top: 26px; color: #fff; max-width: 18ch; }
.closing p { margin-top: 16px; font-size: 16px; color: #b9c2d8; max-width: 48ch; }
.closing .cta { justify-content: center; }

/* ----------------------------------------------------------------- footer */

.site-footer { border-top: 1px solid #e7eaf2; padding: 54px 0 0; }

.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, minmax(0, 1fr)); gap: 40px; }
.footer-grid > div { display: grid; gap: 9px; align-content: start; }
.footer-grid a { font-size: 13.5px; color: var(--ink-2); }
.footer-grid a:hover { color: var(--ink); }

.footer-brand img { height: 24px; width: auto; display: block; }
.footer-brand p { font-size: 13.5px; line-height: 1.6; color: var(--ink-3); max-width: 30ch; margin-top: 7px; }

.footer-label {
    font-family: var(--mono); font-size: 10.5px;
    letter-spacing: 0.12em; text-transform: uppercase; color: #626b7e;
    margin-bottom: 4px;
}

.footer-bottom {
    display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
    margin-top: 44px; padding: 20px 0;
    border-top: 1px solid #e7eaf2;
    font-family: var(--mono); font-size: 11.5px; color: #626b7e;
}

/* ------------------------------------------------------------ narrow ---- */

@media (max-width: 1040px) {
    .app-side { display: none; }
    .app-queue { width: 250px; }
}

@media (max-width: 900px) {
    /* The links collapse, but Start free is the reason the page exists
       and stays in the header. */
    .site-nav { gap: 12px; }
    .site-nav a:not(.button), .site-nav .rule { display: none; }
    .menu-toggle { display: flex; }
    /* Only openable here, so widening the window closes it again. */
    .mobile-nav:not([hidden]) { display: grid; }

    .hero-inner, .install-inner, .toolbox-inner { grid-template-columns: 1fr; }
    .knowledge-inner, .handoff-inner, .roi-inner, .faq-inner { grid-template-columns: 1fr; }
    .audience { grid-template-columns: 1fr; }
    .hero-shot { padding-bottom: 0; }
    .shot-launcher { display: none; }

    .showcase-head { flex-direction: column; align-items: flex-start; gap: 18px; }
    .pricing-head { flex-direction: column; align-items: flex-start; gap: 24px; }

    .strip-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
    .strip-inner > div + div { border-left: 0; padding-left: 0; }

    .app-shot { height: auto; flex-direction: column; }
    .app-rail { width: 100%; flex-direction: row; padding: 12px 16px; }
    .app-queue { width: 100%; border-right: 0; border-bottom: 1px solid var(--line-soft); }
    .app-messages { min-height: 320px; }

    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
}

@media (max-width: 620px) {
    .wrap { padding: 0 20px; }
    .mobile-nav { padding-left: 20px; padding-right: 20px; }

    .shot-app { display: none; }
    .shot-widget { position: static; width: 100%; max-width: 340px; }

    .strip-inner { grid-template-columns: 1fr; }
    .cta .button { width: 100%; }
    .roi-fields { grid-template-columns: 1fr; }
    .roi-fields input { width: 100%; }
    .roi-out { grid-template-columns: 1fr; }
    .compare table { font-size: 12.5px; }
    .compare th, .compare td { padding: 11px 13px; }
    .footer-grid { grid-template-columns: 1fr; }
}
