/* Public landing. Shares the Chat Lab palette; no external fonts or requests. */
:root {
    color-scheme: light;
    --ink: #142536;
    --muted: #556576;
    --line: #dde5e8;
    --surface: #fff;
    --canvas: #f5f7f6;
    --brand: #116b64;
    --brand-dark: #0c514c;
    --brand-soft: #e6f4f0;
    --mint: #33c7aa;
    --night: #102331;
    --night-line: #29414b;
    --night-muted: #9fb7bd;
    --font-body: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --font-display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
    --radius-sm: 10px;
    --radius-md: 18px;
    --container: 1200px;
    --shadow-panel: 0 28px 70px -32px rgb(16 35 49 / 30%), 0 3px 12px rgb(16 35 49 / 5%);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; color: var(--ink); background: var(--canvas); font-family: var(--font-body); font-size: 1rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, dl, dd { margin: 0; }
ol, ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 4px; border-radius: 4px; }
.modes :focus-visible, .final-cta :focus-visible, .site-footer :focus-visible { outline-color: var(--mint); }
::selection { background: #c7ebe0; color: var(--ink); }
[hidden] { display: none !important; }
main { overflow-x: clip; }

.container { width: min(var(--container), calc(100% - 48px)); margin-inline: auto; }
.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-link { position: fixed; z-index: 100; top: 12px; left: 12px; padding: 12px 20px; background: var(--night); color: #fff; border-radius: 8px; transform: translateY(-160%); }
.skip-link:focus { transform: none; }

.eyebrow { font-size: .72rem; font-weight: 700; letter-spacing: .15em; color: var(--brand); }
.eyebrow-light { color: var(--mint); }
.eyebrow-line { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.eyebrow-line::before { content: ""; width: 22px; height: 2px; background: currentColor; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px; border: 1px solid transparent; border-radius: 8px; font-size: .9rem; font-weight: 650; line-height: 1.3; cursor: pointer; transition: background .18s, border-color .18s, color .18s; }
.button-primary { background: var(--brand); color: #fff; }
.button-primary:hover { background: var(--brand-dark); }
.button-secondary { background: var(--surface); border-color: var(--line); }
.button-secondary:hover { border-color: var(--muted); }
.button-light { background: var(--mint); color: var(--night); }
.button-light:hover { background: #5fd8bf; }
.button-outline-light { border-color: #3d5a65; color: #e7f3f1; }
.button-outline-light:hover { border-color: var(--mint); color: #fff; }
.play-glyph { width: 0; height: 0; border-block: 5px solid transparent; border-left: 8px solid currentColor; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgb(245 247 246 / 94%); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 80px; display: flex; align-items: center; flex-wrap: wrap; gap: 24px; }
.site-brand { display: inline-flex; align-items: center; gap: 11px; font-size: 1.3rem; font-weight: 800; letter-spacing: -.05em; }
.brand-mark { width: 34px; height: 34px; flex: 0 0 34px; display: inline-flex; align-items: end; gap: 3px; padding: 8px; border-radius: 10px; background: var(--mint); transform: rotate(-7deg); }
.brand-mark span { width: 4px; border-radius: 3px; background: #0e3c3c; }
.brand-mark span:nth-child(1) { height: 9px; }
.brand-mark span:nth-child(2) { height: 16px; }
.brand-mark span:nth-child(3) { height: 11px; }
.site-nav { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-left: 40px; }
.nav-links, .nav-actions { display: flex; align-items: center; gap: 26px; font-size: .88rem; font-weight: 560; }
.nav-links a, .nav-login { padding-block: 12px; color: var(--muted); }
.nav-links a:hover, .nav-login:hover { color: var(--brand); }
.nav-login { color: var(--ink); font-weight: 650; }
.menu-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; background: transparent; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: transform .2s; }
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* Hero */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: clamp(36px, 5vw, 80px); padding-block: 64px 56px; }
.hero-copy { min-width: 0; }
.hero h1 { max-width: 640px; font-family: var(--font-display); font-size: clamp(2.7rem, 4.4vw, 4.15rem); font-weight: 600; letter-spacing: -.035em; line-height: 1.06; }
.hero h1 span { display: block; margin-top: 10px; color: var(--brand); font-style: italic; }
.hero-lead { max-width: 480px; margin-top: 26px; color: var(--muted); font-size: 1.07rem; line-height: 1.8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-audience { margin-top: 18px; color: var(--muted); font-size: .84rem; }
.availability { display: flex; align-items: center; gap: 12px; max-width: 380px; margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line); }
.availability-dot { width: 9px; height: 9px; border-radius: 50%; background: #25a36f; box-shadow: 0 0 0 5px #d9f0e5; flex: none; margin-inline: 4px; }
.availability p { font-size: .84rem; font-weight: 650; }
.availability span { font-size: .76rem; color: var(--muted); }
.hero-product { position: relative; min-width: 0; }
.hero-product::before { content: ""; position: absolute; z-index: -1; inset: 50px -18px 70px 26px; background: #e2ece9; border-radius: 34px; transform: rotate(3deg); }

/* Demo */
.demo { min-width: 0; scroll-margin-top: 110px; }
.demo-caption { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; margin: 0 4px 14px; color: var(--muted); font-size: .74rem; }
.demo-caption h2 { color: var(--brand-dark); font-size: .74rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.chat-panel { overflow: hidden; background: var(--surface); border: 1px solid #d3dfe0; border-radius: var(--radius-md); box-shadow: var(--shadow-panel); }
.chat-header { display: flex; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid #e7eeeb; }
.chat-avatar { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 50%; background: #dcece8; color: #25665f; font-weight: 700; }
.chat-name { font-size: .98rem; font-weight: 700; line-height: 1.35; }
.chat-meta { color: var(--muted); font-size: .76rem; }
.chat-status { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; padding: 5px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-dark); font-size: .72rem; font-weight: 650; white-space: nowrap; }
.chat-status i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chat-body { display: grid; gap: 14px; padding: 22px; background: #f4f7f6 radial-gradient(#e3eae8 1px, transparent 1px) 0 0 / 18px 18px; }
.bubble { max-width: 84%; padding: 11px 14px 8px; border-radius: 14px; font-size: .88rem; line-height: 1.55; box-shadow: 0 1px 2px rgb(16 35 49 / 6%); }
.bubble-meta { display: block; margin-top: 4px; color: var(--muted); font-size: .7rem; text-align: right; }
.bubble sup, .draft sup { color: var(--brand-dark); font-weight: 700; }
.bubble-in { background: #fff; border-top-left-radius: 4px; }
.bubble-out { justify-self: end; background: #d9f3e8; border-top-right-radius: 4px; }
.agent-step { display: flex; gap: 12px; align-items: center; margin-left: 10px; padding-left: 14px; border-left: 1px dashed #9fbfb5; }
.step-glyph { width: 18px; height: 18px; flex: none; border: 2px solid var(--brand); border-radius: 50%; position: relative; }
.step-glyph::after { content: ""; position: absolute; width: 7px; height: 2px; right: -6px; bottom: -3px; background: var(--brand); transform: rotate(45deg); border-radius: 2px; }
.agent-step strong { display: block; font-size: .82rem; }
.agent-step span { color: var(--muted); font-size: .74rem; }
.draft { justify-self: end; max-width: 88%; padding: 12px 14px; border: 1px dashed #8fbcae; border-radius: 14px; background: #fff; }
.draft-label { display: block; margin-bottom: 4px; color: var(--brand); font-size: .66rem; font-weight: 750; letter-spacing: .12em; }
.draft p { font-size: .86rem; line-height: 1.55; }
.draft-actions { display: flex; justify-content: end; gap: 8px; margin-top: 10px; font-size: .74rem; font-weight: 650; }
.draft-actions span { padding: 5px 10px; border: 1px solid var(--line); border-radius: 6px; }
.draft-actions .draft-approve { border-color: var(--brand); background: var(--brand); color: #fff; transition: box-shadow .3s; }
[data-demo][data-step="4"] .draft-approve { box-shadow: 0 0 0 4px #bfe6da; }
.approval { display: flex; align-items: center; gap: 10px; justify-self: end; color: var(--brand-dark); font-size: .8rem; font-weight: 650; }
.approval-check { width: 22px; height: 22px; flex: none; border-radius: 50%; background: var(--brand); position: relative; }
.approval-check::after { content: ""; position: absolute; left: 7px; top: 5px; width: 6px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.chat-footer { padding: 12px 22px; border-top: 1px solid var(--line); background: #fbfcfc; }
.phase-track { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: .72rem; counter-reset: phase; }
.phase-track li { counter-increment: phase; transition: color .3s; }
.phase-track li::before { content: counter(phase) " · "; color: var(--brand); font-variant-numeric: tabular-nums; }
.phase-track li[data-active="true"] { color: var(--ink); font-weight: 700; }
.demo-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-top: 12px; }
.demo-controls > p { flex: 1 1 260px; color: var(--muted); font-size: .76rem; line-height: 1.5; }
.demo-controls button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 0; background: transparent; border: 0; color: var(--brand); font-size: .78rem; font-weight: 650; cursor: pointer; }
.demo-controls button:hover { text-decoration: underline; }
.demo-controls button[aria-disabled="true"] { cursor: progress; }
[data-phase] { transition: opacity .35s, transform .35s; }
[data-pending="true"] { opacity: .12; transform: translateY(6px); }

/* Journey */
.journey { padding-top: 32px; border-top: 1px solid var(--line); }
.journey-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; }
.journey-heading .eyebrow { color: var(--muted); }
.journey-heading h2 { font-size: 1.1rem; font-weight: 650; letter-spacing: -.02em; }
.journey-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin: 28px 0 32px; counter-reset: step; }
.journey-flow li { counter-increment: step; position: relative; padding-top: 18px; border-top: 2px solid #cfe0db; }
.journey-flow li:first-child { border-top-color: var(--brand); }
.journey-flow h3 { font-size: 1rem; font-weight: 650; }
.journey-flow h3::before { content: "0" counter(step) "  "; color: var(--brand); font-size: .76rem; font-variant-numeric: tabular-nums; white-space: pre; }
.journey-flow p { margin-top: 6px; color: var(--muted); font-size: .84rem; }
.channels { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .78rem; }
.channels > p { color: var(--ink); font-weight: 650; }
.channels > div { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.channel-current { display: inline-flex; align-items: center; gap: 8px; color: var(--brand); font-weight: 650; }
.channel-current i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* Sections */
.section { padding-block: clamp(72px, 9vw, 112px); }
.section-heading { max-width: 460px; }
.section-heading-wide { max-width: 720px; margin-bottom: 48px; }
.section-heading h2 { margin-top: 14px; font-family: var(--font-display); font-size: clamp(2rem, 3.2vw, 2.75rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.12; }
.section-heading > p:not(.eyebrow) { margin-top: 18px; color: var(--muted); font-size: 1rem; line-height: 1.75; }

.how-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 7vw, 110px); align-items: start; }
.how-grid .section-heading { position: sticky; top: 120px; }
.how-list { display: grid; }
.how-list li { display: grid; grid-template-columns: 64px 1fr; gap: 16px; padding-block: 28px; border-top: 1px solid var(--line); }
.how-list li:last-child { border-bottom: 1px solid var(--line); }
.how-index { font-family: var(--font-display); font-size: 1.6rem; color: var(--brand); line-height: 1.1; font-variant-numeric: tabular-nums; }
.how-list h3 { font-size: 1.08rem; font-weight: 650; letter-spacing: -.015em; }
.how-list p { margin-top: 8px; color: var(--muted); font-size: .94rem; line-height: 1.7; }

.modes { background: var(--night); color: #e7f3f1; }
.modes .section-heading > p:not(.eyebrow) { color: var(--night-muted); }
.modes-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--night-line); border-radius: var(--radius-md); overflow: hidden; }
.mode { display: flex; flex-direction: column; gap: 16px; padding: 30px 28px; }
.mode + .mode { border-left: 1px solid var(--night-line); }
.mode-featured { background: #163240; box-shadow: inset 0 3px 0 var(--mint); }
.mode header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mode h3 { font-family: var(--font-display); font-size: 1.55rem; font-weight: 600; }
.mode > p { color: var(--night-muted); font-size: .93rem; line-height: 1.7; }
.mode > .mode-summary { color: #fff; font-size: 1.02rem; font-weight: 650; line-height: 1.4; }
.mode-state { padding: 4px 10px; border-radius: 999px; background: #1f4a4a; color: #8ff0d6; font-size: .7rem; font-weight: 700; letter-spacing: .04em; }
.mode-state-soon { background: #3a3a2a; color: #f0d98f; }
.mode dl { display: grid; gap: 10px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--night-line); font-size: .84rem; }
.mode dl div { display: flex; justify-content: space-between; gap: 12px; }
.mode dt { color: var(--night-muted); }
.mode dd { font-weight: 600; text-align: right; }

.status-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.status-col { padding: 26px 26px 28px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.status-col h3 { display: flex; align-items: center; gap: 10px; font-size: 1rem; font-weight: 700; }
.status-col ul { display: grid; gap: 12px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: .92rem; line-height: 1.6; }
.status-col li { padding-left: 14px; border-left: 2px solid var(--line); }
.status-dot { width: 10px; height: 10px; flex: none; border-radius: 50%; }
.status-dot-ready { background: #25a36f; box-shadow: 0 0 0 4px #d9f0e5; }
.status-dot-testing { background: #c99a1e; box-shadow: 0 0 0 4px #f6ecd0; }
.status-dot-planned { background: transparent; border: 2px solid #8a9aa8; }

.trust-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(40px, 7vw, 110px); }
.trust-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px 40px; }
.trust-list li { padding-left: 18px; border-left: 2px solid var(--brand); }
.trust-list h3 { font-size: 1.02rem; font-weight: 650; }
.trust-list p { margin-top: 8px; color: var(--muted); font-size: .92rem; line-height: 1.7; }

.plans { background: var(--surface); border-block: 1px solid var(--line); }
.plans-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.plan { display: flex; flex-direction: column; gap: 18px; padding: 30px 28px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--canvas); }
.plan h3 { font-size: 1rem; font-weight: 700; letter-spacing: .02em; }
.plan-figure { display: grid; gap: 2px; }
.plan-figure strong { font-family: var(--font-display); font-size: 2.6rem; font-weight: 600; line-height: 1; letter-spacing: -.03em; }
.plan-open .plan-figure strong { font-size: 1.9rem; line-height: 1.2; color: var(--muted); }
.plan-figure span { color: var(--muted); font-size: .84rem; }
.plans-common { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 20px; padding: 18px 24px; border: 1px dashed #c9d7da; border-radius: var(--radius-sm); font-size: .9rem; }
.plans-common p { color: var(--muted); }
.plans-common ul { display: flex; flex-wrap: wrap; gap: 10px 24px; font-weight: 600; }
.plans-common li { display: flex; gap: 10px; }
.plans-common li::before { content: ""; width: 12px; height: 7px; flex: none; margin-top: 6px; border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(-45deg); }
.plans-note { margin-top: 18px; color: var(--muted); font-size: .8rem; }

.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(40px, 7vw, 110px); }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 22px; font-weight: 650; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; flex: none; width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--brand); font-size: 1.1rem; transition: transform .2s; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list summary:hover { color: var(--brand); }
.faq-list details p { max-width: 620px; padding-bottom: 22px; color: var(--muted); line-height: 1.75; }

.final-cta { background: var(--night); color: #e7f3f1; }
.final-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding-block: 72px; }
.final-cta h2 { max-width: 640px; margin-top: 14px; font-family: var(--font-display); font-size: clamp(1.9rem, 3vw, 2.6rem); font-weight: 600; line-height: 1.15; letter-spacing: -.03em; }
.final-cta p:not(.eyebrow) { max-width: 560px; margin-top: 14px; color: var(--night-muted); }
.final-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; flex: none; }

.site-footer { background: var(--night); color: var(--night-muted); font-size: .76rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: start; gap: 24px; padding-block: 24px; border-top: 1px solid var(--night-line); }
.footer-inner p { max-width: 560px; text-align: right; }

@media (min-width: 1200px) {
    .container { width: min(var(--container), calc(100% - 112px)); }
}
@media (max-width: 1060px) {
    .site-nav { margin-left: 16px; }
    .nav-links { gap: 18px; }
}
@media (max-width: 899px) {
    .header-inner { min-height: 72px; justify-content: space-between; gap: 0; }
    .menu-toggle { display: flex; }
    .site-nav { flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 16px; margin: 0; padding: 8px 0 22px; }
    .site-header[data-enhanced="true"]:not([data-open="true"]) .site-nav { display: none; }
    .nav-links, .nav-actions { flex-direction: column; align-items: stretch; gap: 0; }
    .nav-links a { border-bottom: 1px solid var(--line); }
    .nav-actions { gap: 10px; }
    .nav-login { text-align: center; }
    .hero { grid-template-columns: 1fr; gap: 44px; padding-block: 44px 36px; }
    .hero h1 { font-size: clamp(2.6rem, 7.6vw, 3.8rem); }
    .hero-product { width: min(100%, 560px); margin-inline: auto; }
    .hero-product::before { inset-inline: 16px -8px; }
    .journey-heading { flex-direction: column; gap: 8px; }
    .journey-flow { grid-template-columns: repeat(2, 1fr); gap: 26px 32px; }
    .channels { flex-direction: column; align-items: start; gap: 10px; }
    .how-grid, .trust-grid, .faq-grid { grid-template-columns: 1fr; gap: 36px; }
    .how-grid .section-heading { position: static; }
    .modes-grid { grid-template-columns: 1fr; }
    .mode + .mode { border-left: 0; border-top: 1px solid var(--night-line); }
    .plans-grid, .status-grid { grid-template-columns: 1fr; }
    .plans-grid { max-width: 520px; }
    .final-cta-inner { flex-direction: column; align-items: start; }
}
@media (max-width: 560px) {
    .container { width: calc(100% - 36px); }
    .hero-actions { flex-direction: column; }
    .journey-flow { grid-template-columns: 1fr; gap: 22px; }
    .trust-list { grid-template-columns: 1fr; gap: 28px; }
    .how-list li { grid-template-columns: 44px 1fr; }
    .chat-header { padding: 16px; }
    .chat-body { padding: 16px; }
    .bubble, .draft { max-width: 94%; }
    .demo-controls { justify-content: center; text-align: center; }
    .footer-inner { flex-direction: column; gap: 8px; }
    .footer-inner p { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
