/* Simpyl Receptionist landing. Brand v1: Poster Yellow #FFD21F, Wall Black #100F0D, White. Card #1C1A16 for UI only. */
@font-face { font-family: "Archivo"; src: url("fonts/Archivo.ttf") format("truetype"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
:root {
  --y: #FFD21F; --k: #100F0D; --w: #FFFFFF; --card: #1C1A16;
  --line: rgba(255,255,255,.12); --muted: #B9B4AA;
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --pad: clamp(24px, 5.5vw, 80px);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }  /* no CSS smooth scroll: sections.js drives the motion */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--font); font-size: 18px; line-height: 1.5; color: var(--k); background: var(--k); }
img { display: block; max-width: 100%; }
a { color: inherit; }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 50; background: var(--k); color: var(--y); padding: 8px 16px; border-radius: 16px; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }

[data-theme="yellow"] { background: var(--y); color: var(--k); }
[data-theme="night"], [data-theme="black"] { background: var(--k); color: var(--w); }
[data-theme="white"] { background: var(--w); color: var(--k); }

.label { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 16px; }
.display { font-size: clamp(52px, 7.4vw, 112px); font-weight: 900; line-height: .95; letter-spacing: -.02em; margin: 0; max-width: 12.5ch; }
.h1 { font-size: clamp(38px, 5vw, 60px); font-weight: 900; line-height: 1; letter-spacing: -.015em; margin: 0; }
.body { max-width: 34em; margin: 16px 0 0; }

/* Top bar */
.topbar { position: absolute; inset: 0 0 auto 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; padding: 20px var(--pad); background: transparent; }
.brand img { height: 40px; width: auto; }
.topnav { display: flex; gap: 24px; font-weight: 600; font-size: 15px; }
.topnav a { text-decoration: none; border-bottom: 2px solid transparent; }
.topnav a:hover { border-color: currentColor; }

/* Hero: most of the first screen */
.hero { position: relative; min-height: 92vh; min-height: 92svh; display: flex; flex-direction: column; justify-content: center; padding: 104px var(--pad) 88px; }
.hero-inner { max-width: 1200px; }
.lede { font-size: clamp(19px, 1.7vw, 24px); max-width: 30em; margin: 28px 0 0; }
.tryit { margin: 36px 0 0; }
.tryit-label { font-weight: 600; font-size: 15px; margin: 0 0 8px; }
.pill-frame { display: block; max-width: 100%; margin-left: -8px; border: 0; background: transparent; }  /* the pill page has 8px padding for its shadow */
.tryit-note { font-size: 14px; margin: 6px 0 0; max-width: 34em; }
.price-line { margin: 28px 0 0; font-size: 18px; max-width: 34em; padding-top: 16px; border-top: 2px solid var(--k); }
.ast { text-decoration: none; font-weight: 800; padding: 0 2px; }
.scroll-cue { position: absolute; left: var(--pad); bottom: 24px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; text-decoration: none; }
.scroll-cue svg { width: 20px; height: 20px; animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(4px); } }
@media (prefers-reduced-motion: reduce) { .scroll-cue svg { animation: none; } }

.hero-art { display: none; }
@media (min-width: 1180px) { .hero-art { display: block; position: absolute; right: var(--pad); top: 50%; transform: translateY(-50%); width: min(30vw, 400px); height: auto; } }
/* Section heads */
.chat-sec, .pricing { padding: 96px var(--pad); }
.chat-sec { padding-top: 72px; }
.sec-head { max-width: 1200px; margin: 0 auto 40px; }
.chat-sec .label { color: var(--y); }

/* (assistant window styles are at the end of this file) */

/* Pricing */
.big-num { font-size: clamp(72px, 10vw, 140px); font-weight: 900; line-height: .95; letter-spacing: -.02em; margin: 0; }
.big-num span { font-size: .3em; letter-spacing: 0; font-weight: 800; }
.facts { list-style: none; padding: 0; margin: 0 auto; max-width: 1200px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.facts li { border-top: 2px solid var(--k); padding-top: 16px; display: flex; flex-direction: column; gap: 6px; }
.facts strong { font-size: 20px; font-weight: 800; }
.fee-note { max-width: 1200px; margin: 40px auto 0; font-size: 15px; }
.fee-note:target { outline: 2px solid var(--k); outline-offset: 8px; }

.foot { padding: 48px var(--pad); display: flex; flex-direction: column; gap: 10px; }
.foot p { margin: 0; } .foot img { height: 22px; width: auto; margin-bottom: 8px; }
.foot .small { font-size: 14px; color: var(--muted); max-width: 60em; }

/* Tablet / mobile */
@media (max-width: 960px) { .facts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) {
  body { font-size: 17px; }
  .topnav { display: none; }
  .brand img { height: 32px; }
  .hero { padding-top: 88px; padding-bottom: 72px; }
  .lede { margin-top: 20px; }
  .chat-sec, .pricing { padding: 72px var(--pad); }
  .facts { grid-template-columns: 1fr; }
}

/* ---------- Assistant window: dark desktop chat app look. Generic chrome, Simpyl's own marks only. ---------- */
.win {
  --wbg: #222222; --wside: #1A1A1A; --wline: #2F2F2F; --wbub: #2E2E2E; --wtext: #ECECEC; --wgrey: #9A9A9A; --wsel: #2C2C2C;
  --wfont: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 282px 1fr;
  height: min(720px, calc(100vh - 48px)); height: min(720px, calc(100svh - 48px));
  background: var(--wbg); color: var(--wtext); font-family: var(--wfont); font-size: 15px; line-height: 1.45;
  border: 1px solid #3A3A3A; border-radius: 22px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.55), inset 0 0 0 1px rgba(255,255,255,.03);
}
.win button { font-family: inherit; }
.win-side { background: var(--wside); border-right: 1px solid var(--wline); display: flex; flex-direction: column; min-height: 0; padding: 14px 12px 12px; }
.win-top { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 14px 6px; }
.lights { display: inline-flex; gap: 8px; }
.lights i { width: 12px; height: 12px; border-radius: 50%; background: #FF5F57; }
.lights i:nth-child(2) { background: #FEBC2E; } .lights i:nth-child(3) { background: #28C840; }
.icon-btn { width: 28px; height: 28px; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: #BDBDBD; cursor: pointer; padding: 0; }
.icon-btn:hover { background: #2A2A2A; color: #FFF; }
.icon-btn svg { width: 20px; height: 20px; }
.search { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; margin: 0 4px 10px; background: #262626; border: 1px solid #353535; border-radius: 10px; color: #8C8C8C; }
.search svg { width: 16px; height: 16px; flex: none; }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--wtext); font: inherit; font-size: 14.5px; outline: none; padding: 0; }
.search input::placeholder { color: #8C8C8C; }
.search input::-webkit-search-cancel-button { filter: invert(1) opacity(.5); }
.search:focus-within { border-color: #555; }
.bots { list-style: none; margin: 0; padding: 0; overflow-y: auto; flex: 1; min-height: 0; scrollbar-width: none; }
.bots li[hidden] { display: none; }
.bot { width: 100%; display: flex; gap: 10px; align-items: center; text-align: left; background: transparent; border: 0; border-radius: 10px; padding: 8px 10px; margin: 0 0 2px; color: inherit; cursor: pointer; }
.bot:hover { background: #222; }
.bot.on { background: var(--wsel); }
.bot:focus-visible { outline: 2px solid #8C8C8C; outline-offset: -2px; }
.bot-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bot-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.bot-name { font-size: 15px; color: #F2F2F2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bot-time { font-size: 12.5px; color: #8E8E8E; flex: none; }
.bot-prev { font-size: 13.5px; color: #8E8E8E; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me { display: flex; align-items: center; gap: 10px; padding: 12px 8px 2px; font-size: 14.5px; color: #E2E2E2; }
.me-av { width: 28px; height: 28px; border-radius: 50%; border: 1px solid #4A4A4A; display: grid; place-items: center; font-size: 11px; color: #BDBDBD; letter-spacing: .02em; }

/* Friendly round avatars: solid colour circle with two small dot eyes (CSS only) */
.av { position: relative; flex: none; width: 32px; height: 32px; border-radius: 50%; font-size: 32px; display: inline-block; overflow: hidden; }
.av::before { content: ""; position: absolute; left: 34%; top: 33%; width: .1em; height: .19em; border-radius: .06em; background: #151515; box-shadow: .2em 0 0 #151515; }
.av-cfo { background: #4FB7A0; } .av-cto { background: #4A86F0; } .av-ceo { background: #9466F2; } .av-chuck { background: #F2913D; }
.av-rec { background: #FFD21F; }
.av-rec::before { content: none; }
.av-rec img { width: 100%; height: 100%; transform: scale(.84); }
.av-sm { width: 18px; height: 18px; font-size: 18px; }
.av-xs { width: 15px; height: 15px; font-size: 15px; vertical-align: -2px; margin: 0 4px 0 2px; }

/* Main pane */
.win-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.win-head { display: flex; align-items: center; gap: 9px; height: 46px; padding: 0 14px; border-bottom: 1px solid var(--wline); flex: none; }
.win-name { font-size: 15px; color: #F2F2F2; }
.win-mon { width: 18px; height: 18px; margin-left: auto; color: #9A9A9A; }
.logs { flex: 1; min-height: 0; position: relative; }
.log { position: absolute; inset: 0; overflow-y: auto; padding: 20px 22px 14px; display: flex; flex-direction: column; gap: 6px; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #3A3A3A transparent; }
.log[hidden] { display: none; }
.log > :first-child { margin-top: auto; }

.b { align-self: flex-start; max-width: min(78%, 600px); background: var(--wbub); color: var(--wtext); border-radius: 18px; padding: 9px 14px; overflow-wrap: anywhere; }
.b p { margin: 0; } .b p + p { margin-top: 6px; }
.b + .u, .u + .b, .sys + .b, .sys + .u { margin-top: 10px; }
.u { align-self: flex-end; max-width: min(75%, 520px); background: #F2F2F2; color: #151515; border-radius: 20px; padding: 9px 15px; overflow-wrap: anywhere; }
.sys { align-self: center; text-align: center; color: var(--wgrey); font-size: 14px; margin: 14px 0 6px; max-width: 92%; }
.sys b { color: #E4E4E4; font-weight: 400; }
.sys .clock { display: inline-block; width: 14px; height: 14px; vertical-align: -2px; margin: 0 4px 0 6px; color: #BDBDBD; }
.who { font-weight: 400; } .who-cfo { color: #5CCFB5; } .who-ceo { color: #A77DFF; } .who-rec { color: #FFD21F; } .who-cto { color: #6FA0FF; }
.soon { display: inline-block; margin-left: 8px; padding: 0 7px; border-radius: 999px; background: #FFD21F; color: #100F0D; font-size: 11px; font-weight: 700; line-height: 18px; vertical-align: 1px; }
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { padding: 1px 0; }
.checks li::before { content: "✓ "; color: #E8E8E8; }
.checks b { font-weight: 600; color: #FFF; }
.mrow { padding: 8px 0; border-top: 1px solid #3B3B3B; }
.mrow:first-child { border-top: 0; padding-top: 2px; } .mrow:last-child { padding-bottom: 2px; }
.mtop { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.mname { font-weight: 600; color: #FFF; }
.mtime, .mnum { color: var(--wgrey); font-size: 13px; font-variant-numeric: tabular-nums; }
.mreason { margin: 3px 0 0; }
.mcb { display: inline-block; margin-top: 6px; font-size: 12.5px; font-weight: 600; color: #100F0D; background: #FFD21F; border-radius: 999px; padding: 1px 9px; }
.mcb.plain { background: transparent; color: #FFD21F; box-shadow: inset 0 0 0 1px #FFD21F; }
.fine { font-size: 13px; color: var(--wgrey); }
.inline-btn { font: inherit; font-size: 14px; font-weight: 600; background: #F2F2F2; color: #151515; border: 0; border-radius: 999px; padding: 6px 14px; cursor: pointer; margin-top: 8px; }
.inline-btn:hover { background: #FFD21F; }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.typing { display: inline-flex; gap: 5px; padding: 6px 2px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: #9A9A9A; animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }

.chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px 18px 2px; overflow-x: auto; scrollbar-width: none; flex: none; }
.chips[hidden] { display: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; font: inherit; font-size: 13.5px; color: #D8D8D8; background: #2A2A2A; border: 1px solid #3A3A3A; border-radius: 999px; padding: 6px 12px; cursor: pointer; white-space: nowrap; }
.chip:hover, .chip:focus-visible { background: #333; color: #FFF; border-color: #555; }
.chip:disabled { opacity: .45; cursor: default; }
.composer { flex: none; display: flex; align-items: center; gap: 8px; margin: 10px 18px 0; background: #262626; border: 1px solid #3A3A3A; border-radius: 24px; padding: 6px 6px 6px 8px; }
.composer:focus-within { border-color: #5A5A5A; }
.comp-plus { width: 30px; height: 30px; border-radius: 50%; border: 0; background: #333; color: #CFCFCF; display: grid; place-items: center; padding: 0; flex: none; cursor: default; }
.comp-plus svg { width: 18px; height: 18px; }
.composer input { flex: 1; min-width: 0; background: transparent; border: 0; color: var(--wtext); font: inherit; font-size: 15.5px; padding: 8px 2px; outline: none; }
.composer input::placeholder { color: #8A8A8A; }
.send { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 0; background: #F4F4F4; color: #151515; display: grid; place-items: center; cursor: pointer; padding: 0; }
.send svg { width: 18px; height: 18px; }
.send .ic-up { display: none; }
.composer.has-text .send .ic-up { display: block; } .composer.has-text .send .ic-mic { display: none; }
.send:hover { background: #FFF; }
.composer-note { text-align: center; color: #7E7E7E; font-size: 12px; margin: 8px 16px 12px; }

/* Mobile: sidebar becomes an avatar strip on top */
@media (max-width: 760px) {
  .win { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); height: 84svh; min-height: 560px; margin: 0 -12px; border-radius: 18px; }
  .win-side { min-width: 0; border-right: 0; border-bottom: 1px solid var(--wline); padding: 10px 10px 6px; }
  .win-top { padding: 0 2px 8px 4px; }
  .search, .me { display: none; }
  .bots { display: flex; gap: 2px; overflow-x: auto; overflow-y: hidden; flex: none; }
  .bots li { flex: none; }
  .bot { flex-direction: column; gap: 4px; width: 78px; padding: 6px 2px; }
  .bot .av { width: 36px; height: 36px; font-size: 36px; }
  .bot-time, .bot-prev { display: none; }
  .bot-row { justify-content: center; }
  .bot-name { font-size: 11.5px; max-width: 76px; }
  .win-head { height: 42px; }
  .log { padding: 14px 12px 10px; }
  .b { max-width: 88%; } .u { max-width: 82%; }
  .chips { flex-wrap: nowrap; padding: 6px 12px 2px; }
  .composer { margin: 8px 12px 0; }
  .composer input { font-size: 16px; }
}

/* Living avatars: blink, glance and a gentle bob (off for reduced motion) */
@keyframes av-blink { 0%, 90%, 100% { transform: translateX(0) scaleY(1); } 93% { transform: translateX(0) scaleY(.1); } 96% { transform: translateX(0) scaleY(1); } }
@keyframes av-glance { 0%, 30%, 100% { translate: 0 0; } 38%, 55% { translate: .05em 0; } 63%, 80% { translate: -.05em 0; } }
@keyframes av-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -1.5px; } }
.av::before { transform-origin: 50% 50%; animation: av-blink 4.2s infinite, av-glance 9s ease-in-out infinite; }
.av-cto::before { animation-delay: 1.1s, 2.3s; } .av-ceo::before { animation-delay: 2.4s, 4.1s; } .av-chuck::before { animation-delay: .6s, 6.2s; } .av-cfo::before { animation-delay: 3.1s, .8s; }
[data-bot].on .av, .win-head .av { animation: av-bob 2.8s ease-in-out infinite; }
.av-rec img { animation: av-bob 3.2s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .av, .av::before, .av-rec img { animation: none !important; } }

/* ---------- v3: three full-window sections (Hero, Chat, Pricing) + footer as a short last stop ----------
   Each section is at least one window tall (100vh, then 100dvh where supported). Type and spacing scale with
   both width and height so the content fits at common sizes; if it can't, the section grows and the page
   scrolls through it before snapping on (see sections.js). */
.hero, .chat-sec, .pricing { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; }
html.snap-on { overscroll-behavior-y: none; }
html.snapping body { will-change: transform; }

/* Hero */
.hero { padding: clamp(76px, 12vh, 112px) var(--pad) clamp(52px, 9vh, 88px); }
.display { font-size: clamp(40px, min(7.4vw, 11vh), 112px); }
.lede { font-size: clamp(17px, min(1.7vw, 2.9vh), 24px); margin-top: clamp(12px, 3.2vh, 28px); }
.tryit { margin-top: clamp(14px, 3.6vh, 36px); }
.tryit-label { margin-bottom: clamp(2px, 1vh, 8px); }
.price-line { margin-top: clamp(12px, 3vh, 28px); padding-top: clamp(8px, 1.8vh, 16px); font-size: clamp(16px, 2.2vh, 18px); }
.scroll-cue { bottom: clamp(12px, 3vh, 24px); }
.hero-art { width: min(30vw, 400px, 52vh); }

/* Chat: heading on top, the app window takes whatever height is left */
.chat-sec { padding: clamp(20px, 6vh, 72px) var(--pad) clamp(20px, 5vh, 64px); justify-content: flex-start; }
.chat-sec .sec-head { flex: none; width: 100%; margin-bottom: clamp(12px, 3vh, 36px); }
.chat-sec .label { margin-bottom: clamp(6px, 1.6vh, 16px); }
.chat-sec .h1 { font-size: clamp(30px, min(5vw, 7vh), 60px); }
.chat-sec .body { margin-top: clamp(6px, 1.4vh, 16px); }
.win { flex: 1 1 0; width: 100%; height: auto; min-height: 320px; max-height: 760px; }
@media (min-width: 1000px) {
  /* Wide screens: title left, notes right, to give the window more height */
  .chat-sec .sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 30em); column-gap: 48px; align-items: end; }
  .chat-sec .sec-head .label { grid-column: 1; grid-row: 1; }
  .chat-sec .sec-head .h1 { grid-column: 1; grid-row: 2 / span 2; align-self: end; }
  .chat-sec .sec-head .body { grid-column: 2; grid-row: 3; font-size: 16px; }
}
@media (min-height: 1000px) { .chat-sec { justify-content: center; } }

/* Pricing */
.pricing { padding: clamp(28px, 7vh, 96px) var(--pad); }
.pricing .sec-head { width: 100%; margin-bottom: clamp(16px, 4vh, 40px); }
.pricing .label { margin-bottom: clamp(6px, 1.6vh, 16px); }
.big-num { font-size: clamp(52px, min(10vw, 15vh), 140px); }
.pricing .body { margin-top: clamp(6px, 1.6vh, 16px); }
.facts { width: 100%; gap: clamp(12px, 2.6vh, 24px) 24px; }
.facts li { padding-top: clamp(8px, 1.6vh, 16px); gap: 4px; }
.facts strong { font-size: clamp(17px, 2.4vh, 20px); }
.facts span { font-size: clamp(15px, 2.1vh, 18px); line-height: 1.4; }
.fee-note { width: 100%; margin-top: clamp(16px, 4vh, 40px); font-size: clamp(13px, 1.9vh, 15px); }
.fee-note.is-target { outline: 2px solid var(--k); outline-offset: 8px; }
@media (min-width: 1100px) { .facts { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 761px) and (max-width: 1099px) { .facts { grid-template-columns: repeat(3, 1fr); } }

/* Footer: a short last stop */
.foot { padding: clamp(28px, 5vh, 48px) var(--pad); }

@media (max-width: 760px) {
  .hero { padding-top: clamp(68px, 10vh, 88px); padding-bottom: clamp(48px, 8vh, 72px); }
  .display { font-size: clamp(36px, min(11.5vw, 6.4vh), 56px); }
  .lede { font-size: clamp(16px, 2.2vh, 19px); }
  .tryit-note { font-size: 13px; }
  .chat-sec { padding: clamp(18px, 3.4vh, 40px) var(--pad) clamp(14px, 2.4vh, 28px); }
  .chat-sec .h1 { font-size: clamp(28px, min(8.6vw, 4.6vh), 40px); }
  .chat-sec .body { font-size: 15px; line-height: 1.4; }
  .win { height: auto; min-height: 300px; max-height: none; margin: 0 -12px; width: calc(100% + 24px); }
  .pricing { padding: clamp(20px, 4vh, 48px) var(--pad); }
  .big-num { font-size: clamp(48px, min(17vw, 9vh), 80px); }
  .pricing .body { font-size: 15px; }
  .facts { gap: clamp(8px, 1.4vh, 14px); }
  .facts li { padding-top: clamp(6px, 1vh, 10px); gap: 2px; }
  .facts strong { font-size: 16px; }
  .facts span { font-size: 14px; line-height: 1.35; }
  .fee-note { font-size: 12.5px; line-height: 1.4; }
}
@media (max-height: 500px) and (orientation: landscape) {
  /* Phones on their side: let sections be taller than the window; the page scrolls through them before snapping */
  .win { flex: none; height: 300px; }
}
/* The chat window's drop shadow must not bleed onto the white pricing section now that the padding is tighter */
.pricing, .foot { position: relative; z-index: 1; }

/* v4: the visitor's own call in the Receptionist thread */
.waiting { color: var(--wgrey); }
.writing { display: inline-flex; align-items: center; gap: 10px; color: var(--wgrey); }
.writing .typing { padding: 0; }
/* Assistant reply styled like Grok Bot markdown: paragraphs, bold labels, plain bullet lists. */
.b.md ul, .b.md ol { margin: 6px 0 0; padding-left: 20px; }
.b.md ol > li + li { margin-top: 8px; }
.b.md ol ul { margin-top: 2px; }
.b.md li { margin: 2px 0; overflow-wrap: anywhere; }
.b.md li::marker { color: var(--wgrey); }
.b.md strong { font-weight: 700; color: #FFF; }
.b.md p + ul, .b.md ul + p, .b.md ol + p { margin-top: 8px; }
.sys code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; color: #E4E4E4; }
.reveal { animation: rise .35s ease-out both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .reveal { animation: none; } }
.tab-note { text-align: center; color: #9A9A9A; font-size: 12px; margin: -6px 16px 12px; }
.tab-note[hidden] { display: none; }
.link-btn { font: inherit; color: #CFCFCF; background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }
.link-btn[hidden] { display: none; }

/* ---------- v5 (staging): stacked cards. Each card is position: sticky; the next one slides up over it
   (borrowed from the 21st.dev "Smooth Scroll" card: sticky top-0 full-screen sections, rounded top corners
   on the incoming card). sections.js keeps the snap + spring, adds a slight recede on the card behind, sets a
   negative sticky top for cards taller than the window, and themes the fixed bar from the card in front. ---------- */
:root { --bar-h: 72px; --card-r: 28px; }
@media (max-width: 760px) { :root { --bar-h: 60px; --card-r: 22px; } }

/* Fixed bar: always visible above every card */
.topbar { position: fixed; inset: 0 0 auto 0; z-index: 40; height: var(--bar-h); padding: 0 var(--pad);
  background: var(--k); color: var(--w); transition: background-color .22s ease, color .22s ease, box-shadow .22s ease; }
.topbar[data-bar="light"] { background: var(--w); color: var(--k); box-shadow: 0 1px 0 rgba(16,15,13,.08); }
.brand { position: relative; display: flex; align-items: center; min-height: 44px; }
.brand img { height: 36px; width: auto; transition: opacity .22s ease; }
.brand .logo-light { position: absolute; left: 0; top: 50%; transform: translateY(-50%); opacity: 0; }
.topbar[data-bar="light"] .logo-dark { opacity: 0; }
.topbar[data-bar="light"] .logo-light { opacity: 1; }
.topnav { gap: 8px; }
.topnav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-bottom: 0; border-radius: 999px; transition: background-color .15s ease; }
.topnav a:hover { background: rgba(255,255,255,.12); }
.topbar[data-bar="light"] .topnav a:hover { background: rgba(16,15,13,.07); }
.topbar :focus-visible { outline-color: currentColor; }
@media (prefers-reduced-motion: reduce) { .topbar, .brand img { transition: none; } }

/* The stack: cards in normal flow, each sticky at the top. Later cards paint over earlier ones. */
.stack { position: relative; display: block; }
.card { position: sticky; top: 0; min-height: 100vh; min-height: 100dvh; transform-origin: 50% 0; }
.card + .card { border-radius: var(--card-r) var(--card-r) 0 0; overflow: hidden;
  box-shadow: 0 -18px 48px rgba(0,0,0,.28); }
#top { z-index: 1; } #chat { z-index: 2; } #card-3 { z-index: 3; }
/* Dim layer on the card behind; sections.js drives --dim (0..1) */
.card::after { content: ""; position: absolute; inset: 0; background: #000; opacity: calc(var(--dim, 0) * .45); pointer-events: none; z-index: 30; border-radius: inherit; }
html.snapping .stack { will-change: transform; }
html.snapping body { will-change: auto; }

/* Content clears the fixed bar */
.hero { padding-top: calc(var(--bar-h) + clamp(16px, 5vh, 48px)); }
.chat-sec { padding-top: calc(var(--bar-h) + clamp(12px, 3.5vh, 40px)); }
@media (min-height: 1000px) { .chat-sec { justify-content: flex-start; } }

/* Card 3 = pricing + footer, together at least one window tall */
.card-last { display: flex; flex-direction: column; background: var(--w); }
.card-last .pricing { flex: 1 0 auto; min-height: 0; padding-top: calc(var(--bar-h) + clamp(16px, 5vh, 64px)); }
.pricing, .foot { position: static; z-index: auto; }

/* Site footer */
.foot { padding: clamp(28px, 5vh, 56px) var(--pad) clamp(20px, 3.5vh, 32px); gap: 0; }
.foot-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px 48px; flex-wrap: wrap; max-width: 1200px; width: 100%; margin: 0 auto; }
.foot-brand p { margin: 0; font-size: 16px; }
.foot .foot-brand img { height: 28px; margin-bottom: 12px; }
.foot-links ul { list-style: none; margin: -12px 0 0; padding: 0; display: flex; flex-wrap: wrap; column-gap: 8px; }
.foot-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; font-weight: 600; font-size: 15px; text-decoration: none; border-radius: 999px; }
.foot-links a:hover { background: rgba(255,255,255,.1); text-decoration: underline; }
.foot .small { max-width: 1200px; width: 100%; margin: clamp(16px, 3vh, 28px) auto 0; }
.foot-legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 24px; max-width: 1200px; width: 100%; margin: clamp(12px, 2.4vh, 20px) auto 0; padding-top: clamp(12px, 2.4vh, 20px); border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.foot-legal p { margin: 0; }

@media (max-width: 760px) {
  .topnav { display: flex; gap: 0; font-size: 14px; }
  .topnav a { padding: 0 10px; }
  .brand img { height: 28px; }
  .hero { padding-top: calc(var(--bar-h) + clamp(12px, 3vh, 28px)); }
  .chat-sec { padding-top: calc(var(--bar-h) + clamp(8px, 2vh, 20px)); }
  .card-last .pricing { padding-top: calc(var(--bar-h) + clamp(12px, 3vh, 32px)); }
  .foot-links ul { margin: 0 -10px; }
  .foot-links a { font-size: 14px; }
  .foot-legal { flex-direction: column; }
}
@media (max-width: 360px) { .topnav a { padding: 0 6px; font-size: 13px; } .brand img { height: 24px; } }
/* Card 3: keep pricing + footer within one window on common laptop heights */
.card-last .pricing { padding-top: calc(var(--bar-h) + clamp(12px, 3.5vh, 48px)); padding-bottom: clamp(16px, 3vh, 40px); }
.card-last .pricing .sec-head { margin-bottom: clamp(12px, 2.5vh, 32px); }
.card-last .fee-note { margin-top: clamp(12px, 2.5vh, 32px); }
.foot { padding-top: clamp(20px, 3.5vh, 40px); }
.foot .small { margin-top: clamp(12px, 2vh, 20px); }
.foot { padding-bottom: clamp(16px, 2.5vh, 32px); }
.foot-legal { margin-top: clamp(10px, 1.6vh, 20px); padding-top: clamp(10px, 1.6vh, 20px); }
.foot .foot-brand img { margin-bottom: 8px; }
.foot .small { margin-top: clamp(10px, 1.6vh, 20px); }

/* ---------- v5b: match the 21st.dev card exactly (no recede, no dim, no shadow, 16px top corners) and a menu with
   no background whose ink is "cut" by the card edge: one painted skin per card, clipped in sections.js. ---------- */
:root { --card-r: 16px; }
@media (max-width: 760px) { :root { --card-r: 16px; } }
.card + .card { box-shadow: none; }
.card::after { content: none; }

.topbar { background: transparent; box-shadow: none; transition: none; pointer-events: none; }
.topbar a { pointer-events: auto; }
.brand img { transition: none; }
.bar-skins .topbar { z-index: 40; }
.skin[data-ink="dark"] { color: var(--k); }
.skin[data-ink="light"] { color: var(--w); }
.skin { visibility: hidden; }            /* sections.js reveals each skin with its clip once it has measured */
.skin.is-on { visibility: visible; }
html:not(.snap-on) .skin[data-skin="0"] { visibility: visible; } /* no-JS fallback: the hero's skin */
/* The real menu: same layout, invisible ink, on top for clicks, focus and screen readers */
.topbar-hit { z-index: 41; color: transparent; }
.topbar-hit img { opacity: 0; }
.topbar-hit a:focus-visible { outline: none; }
.topnav a:hover { background: transparent; }
.topbar[data-bar="light"] .topnav a:hover { background: transparent; }
/* Hover and keyboard focus are mirrored onto the skins (sections.js), so rings and underlines take each card's ink */
.skin a.is-hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.skin .topnav a.is-hover { text-decoration: underline; }
.skin a.is-focus { outline: 3px solid currentColor; outline-offset: -3px; }
.skin .brand.is-focus { outline-offset: 2px; border-radius: 10px; }
/* Each skin is backed by its own card's colour. It is clipped to that card's band (rounded like the card's top
   corners), so it looks the same as a transparent bar during transitions but stops a tall card's text (Card 3 on phones)
   from running under the logo and links. To get a truly see-through bar, remove these three lines. */
.skin[data-skin="0"] { background: var(--y); }
.skin[data-skin="1"] { background: var(--k); }
.skin[data-skin="2"] { background: var(--w); }

/* v5c: Card 3 is all white. The footer is black ink on white, set apart from pricing by a thin divider. */
.foot { background: var(--w); color: var(--k); border-top: 1px solid rgba(16,15,13,.16); }
.foot .small { color: #4F4A42; }                      /* 8.2:1 on white */
.foot-legal { color: #4F4A42; border-top-color: rgba(16,15,13,.12); }
.foot-links a:hover { background: rgba(16,15,13,.07); }
.foot-links a:focus-visible { outline-color: var(--k); }
.card-last .pricing { border-bottom: 0; }
/* Plain markdown-style link inside an assistant reply */
.b .md-link { color: #FFF; text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.b .md-link:hover { color: #FFD21F; }
.b p + p .md-link { display: inline-block; }
/* v5d: footer without brand block: links start flush with the text column */
.foot-links ul { margin: -6px -10px 0; }
/* v5e: square cards. No rounded corners on the stacked cards or their layers, so Card 1 never shows in Card 2's corners */
:root { --card-r: 0px; }
.card, .card + .card, .card::after, .bar-skins, .skin { border-radius: 0; }

/* Log in link (account portal). Three nav links do not fit beside the lockup on small phones, so the in-page "See it work" link drops below 480px (the hero button still goes there). */
@media (max-width: 480px) { .topnav a[href="#chat"] { display: none; } }
