/* Valet landing page. Tokens follow the Valet design system.
   Light by default; dark follows the system. Pin with <html data-theme="light|dark">. */

:root {
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, "Helvetica Neue", sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --halo: #7C5CF0;
  --halo-glow: rgba(124, 92, 240, .24);
  --halo-glow-peak: rgba(124, 92, 240, .42);

  color-scheme: light;
  --bg: #F6F5FA;
  --surface: rgba(255, 255, 255, .66);
  --raised: #FFFFFF;
  --sunk: #EEECF4;
  --hover: #F2F0F8;
  --text: #1B1924;
  --muted: #5D5970;
  --line: #E3E0EB;
  --line-strong: #CDC8DA;
  --accent: #6544D6;
  --accent-hover: #5737C2;
  --accent-text: #5A3BC9;
  --accent-soft: #EEE9FD;
  --accent-line: #D3C7F7;
  --on-accent: #FFFFFF;
  --focus: #6544D6;
  --ok: #1D7A55;
  --blob-1: rgba(128, 98, 240, .30);
  --blob-2: rgba(168, 146, 250, .24);
  --blob-3: rgba(246, 184, 146, .26);
  --blob-4: rgba(116, 156, 240, .14);
  --shadow-2: 0 12px 28px -10px rgba(40, 24, 100, .24), 0 2px 6px rgba(40, 24, 100, .07);
  --shadow-3: 0 24px 60px -20px rgba(30, 18, 80, .38), 0 4px 12px rgba(30, 18, 80, .10);
}

/* Dark values, shared by the system preference, the data-theme pin and the safety band */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #121118; --surface: rgba(29, 27, 38, .62); --raised: #1D1B26; --sunk: #17161E; --hover: #272535;
    --text: #ECEAF3; --muted: #A9A4BB; --line: #2D2A3A; --line-strong: #403C52;
    --accent: #A08AFF; --accent-hover: #B19EFF; --accent-text: #B7A6FF; --accent-soft: #2A2545; --accent-line: #4A3F80;
    --on-accent: #160F2E; --focus: #B7A6FF; --ok: #4FC79A;
    --blob-1: rgba(120, 90, 240, .20); --blob-2: rgba(92, 72, 200, .16); --blob-3: rgba(230, 150, 110, .07); --blob-4: rgba(80, 120, 220, .08);
    --shadow-2: 0 14px 32px -10px rgba(0, 0, 0, .6), 0 2px 6px rgba(0, 0, 0, .35);
    --shadow-3: 0 24px 60px -20px rgba(0, 0, 0, .75), 0 4px 12px rgba(0, 0, 0, .4);
  }
}
:root[data-theme="dark"], .theme-dark {
  color-scheme: dark;
  --bg: #121118; --surface: rgba(29, 27, 38, .62); --raised: #1D1B26; --sunk: #17161E; --hover: #272535;
  --text: #ECEAF3; --muted: #A9A4BB; --line: #2D2A3A; --line-strong: #403C52;
  --accent: #A08AFF; --accent-hover: #B19EFF; --accent-text: #B7A6FF; --accent-soft: #2A2545; --accent-line: #4A3F80;
  --on-accent: #160F2E; --focus: #B7A6FF; --ok: #4FC79A;
  --blob-1: rgba(120, 90, 240, .20); --blob-2: rgba(92, 72, 200, .16); --blob-3: rgba(230, 150, 110, .07); --blob-4: rgba(80, 120, 220, .08);
  --shadow-2: 0 14px 32px -10px rgba(0, 0, 0, .6), 0 2px 6px rgba(0, 0, 0, .35);
  --shadow-3: 0 24px 60px -20px rgba(0, 0, 0, .75), 0 4px 12px rgba(0, 0, 0, .4);
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--accent-text); }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
img, svg { display: block; }
.skip { position: absolute; left: 12px; top: -48px; padding: 8px 12px; border-radius: 8px; background: var(--accent); color: var(--on-accent); z-index: 10; }
.skip:focus { top: 12px; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.backdrop {
  background:
    radial-gradient(50% 60% at 0% 0%, var(--blob-1), transparent 72%),
    radial-gradient(40% 50% at 100% 0%, var(--blob-3), transparent 72%),
    radial-gradient(60% 60% at 100% 100%, var(--blob-2), transparent 72%),
    radial-gradient(45% 50% at 0% 100%, var(--blob-4), transparent 72%),
    var(--bg);
}
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic--accent { color: var(--accent-text); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 12px; border: 1px solid transparent; font-size: 15px; line-height: 20px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background-color .12s cubic-bezier(.2,.8,.2,1); }
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn--secondary { background: var(--raised); border-color: var(--line-strong); color: var(--text); }
.btn--secondary:hover { background: var(--hover); color: var(--text); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* Type */
.eyebrow { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); }
.h2 { margin: 0; font-size: clamp(28px, 3.6vw, 40px); line-height: 1.15; font-weight: 650; letter-spacing: -.02em; text-wrap: balance; }
.lead { margin: 0; max-width: 640px; font-size: 17px; line-height: 27px; color: var(--muted); text-wrap: pretty; }
.section { padding: 112px 0; }
.section--flush-top { padding-top: 0; }
.section-head { display: flex; flex-direction: column; gap: 14px; }
.split { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.split__aside { flex: 1 1 300px; display: flex; flex-direction: column; gap: 14px; }
.split__main { flex: 999 1 560px; min-width: 0; }
.card { padding: 24px; border-radius: 16px; background: var(--raised); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.num { width: 32px; height: 32px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }

/* Nav */
.site-header { position: sticky; top: 0; z-index: 5; border-bottom: 1px solid var(--line); background: var(--surface); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); }
.site-nav { height: 64px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-size: 18px; font-weight: 650; letter-spacing: -.01em; text-decoration: none; }
.brand:hover { color: var(--text); }
.nav-links { display: flex; gap: 24px; align-items: center; margin: 0; padding: 0; list-style: none; }
.nav-links a, .nav-github { color: var(--muted); text-decoration: none; font-size: 14px; }
.nav-links a:hover, .nav-github:hover { color: var(--text); }
.spacer { flex: 1; }

/* Hero */
.hero { padding: 88px 0 96px; overflow: hidden; }
.hero__inner { display: flex; flex-direction: column; gap: 56px; }
.hero__copy { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--raised); border: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); flex: none; }
.hero__title { margin: 0; max-width: 900px; font-size: clamp(40px, 6.4vw, 76px); line-height: 1.02; font-weight: 700; letter-spacing: -.035em; text-wrap: balance; }
.hero__sub { margin: 0; max-width: 640px; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.5; color: var(--muted); text-wrap: pretty; }
.hero__meta { margin: 0; font-size: 13px; line-height: 18px; color: var(--muted); }
.runs-on { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 22px; margin: 0; padding: 0; list-style: none; font-size: 14px; color: var(--muted); }
.runs-on b { color: var(--text); font-weight: 600; }

/* Product shot (illustration, all HTML) */
.shot { max-width: 1040px; width: 100%; margin: 0 auto; border-radius: 16px; overflow: hidden; background: var(--raised); box-shadow: var(--shadow-3), 0 0 0 1px var(--line); }
.shot__bar { height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 16px; background: var(--sunk); border-bottom: 1px solid var(--line); }
.shot__light { width: 11px; height: 11px; border-radius: 50%; background: var(--line-strong); }
.shot__url { margin-left: 16px; flex: 1; max-width: 420px; height: 26px; border-radius: 8px; background: var(--raised); border: 1px solid var(--line); display: flex; align-items: center; padding: 0 12px; font-size: 12px; color: var(--muted); }
.shot__body { display: flex; height: 500px; }
.shot__page { position: relative; flex: 1; min-width: 0; overflow: hidden; background: #FBFAF7; color: #2A2620; }
.shop__bar { height: 52px; display: flex; align-items: center; gap: 24px; padding: 0 28px; border-bottom: 1px solid #ECE8E1; font-family: Georgia, "Times New Roman", serif; }
.shop__bar b { font-size: 20px; }
.shop__bar span { font-family: var(--font); font-size: 13px; color: #6B655B; }
.shop__grid { padding: 24px 28px; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px; }
.product { display: flex; flex-direction: column; gap: 6px; }
.product__img { height: 130px; border-radius: 10px; display: grid; place-items: center; }
.product__img i { width: 54px; height: 62px; border-radius: 6px 6px 16px 16px; }
.product__name { font-size: 14px; color: #2550A0; text-decoration: underline; }
.product__price { font-size: 13px; color: #4E483F; font-variant-numeric: tabular-nums; }
.agent-cursor { position: absolute; left: 92px; top: 224px; }
.agent-cursor svg { filter: drop-shadow(0 2px 3px rgba(20, 10, 60, .35)); }
.agent-cursor span { position: absolute; left: 19px; top: 21px; padding: 2px 7px; border-radius: 6px; background: #5A3BC9; color: #fff; font-size: 11px; line-height: 14px; font-weight: 600; box-shadow: 0 0 0 1.5px #fff, 0 2px 6px rgba(20, 10, 60, .3); white-space: nowrap; }
.bubble { position: absolute; left: 112px; top: 276px; width: 268px; max-width: calc(100% - 124px); padding: 12px 14px; border-radius: 12px; background: #fff; border: 1px solid #D3C7F7; box-shadow: 0 0 0 1px rgba(255,255,255,.8), 0 18px 44px -12px rgba(30,18,80,.34); color: #1B1924; display: flex; flex-direction: column; gap: 5px; }
.bubble__step { font-size: 10.5px; line-height: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #5A3BC9; }
.bubble__next { font-size: 14px; line-height: 20px; }
.bubble__why { font-size: 12px; line-height: 17px; color: #5D5970; }
.bubble__btn { align-self: flex-start; margin-top: 4px; padding: 7px 12px; border-radius: 9px; background: #6544D6; color: #fff; font-size: 12px; font-weight: 600; }
.halo { box-shadow: inset 0 0 0 2px var(--halo), inset 0 0 0 3px rgba(255,255,255,.5), inset 0 0 26px 4px var(--halo-glow); animation: halo 2400ms cubic-bezier(.45,0,.2,1) infinite; }
@keyframes halo { 50% { box-shadow: inset 0 0 0 2px var(--halo), inset 0 0 0 3px rgba(255,255,255,.5), inset 0 0 40px 8px var(--halo-glow-peak); } }

.panel { width: 340px; flex: none; display: flex; flex-direction: column; border-left: 1px solid var(--line); }
.panel__head { height: 44px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border-bottom: 1px solid var(--line); background: var(--surface); font-size: 12px; }
.panel__body { flex: 1; padding: 14px 12px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.msg-user { align-self: flex-end; max-width: 86%; padding: 8px 12px; border-radius: 13px 13px 4px 13px; background: var(--accent-soft); border: 1px solid var(--accent-line); font-size: 13px; line-height: 18px; }
.msg-agent { font-size: 14px; line-height: 21px; }
.msg-steps { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.msg-steps b { color: var(--text); font-weight: 600; }
.msg-notice { font-size: 11.5px; font-style: italic; color: var(--muted); }
.approval { padding: 12px; border-radius: 13px; border: 1px solid var(--accent-line); background: var(--raised); box-shadow: var(--shadow-2); display: flex; flex-direction: column; gap: 8px; }
.panel .approval { margin: 0 10px 10px; }
.approval__head { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; color: var(--accent-text); }
.approval__q { font-size: 13px; line-height: 18px; }
.approval__actions { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12px; font-weight: 600; }
.fake-btn { white-space: nowrap; padding: 7px 10px; border-radius: 9px; border: 1px solid var(--line-strong); }
.fake-btn--primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.fake-btn--quiet { border-color: transparent; color: var(--muted); padding-inline: 6px; }

.dots { display: inline-flex; gap: 3px; }
.dots i { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); animation: dot 1200ms cubic-bezier(.45,0,.2,1) infinite; }
.dots i:nth-child(2) { animation-delay: 160ms; }
.dots i:nth-child(3) { animation-delay: 320ms; }
@keyframes dot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-2px); } }

/* How a run goes */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 20px; }
.step__title { margin: 0; font-size: 19px; line-height: 26px; font-weight: 650; }
.step__text { margin: 0; font-size: 15px; line-height: 23px; color: var(--muted); }
.step__demo { margin-top: auto; }
.demo-input { padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line-strong); font-size: 13px; color: var(--muted); }
.demo-log { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: 13px; color: var(--muted); }
.demo-log li { display: flex; align-items: center; gap: 10px; }
.demo-file { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--line); }
.demo-file__type { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); font-family: var(--font-mono); font-size: 10px; font-weight: 700; }
.demo-file b { flex: 1; font-size: 13px; font-weight: 600; }

/* Capabilities */
.features { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 32px 36px; }
.feature { display: flex; flex-direction: column; gap: 8px; }
.feature dt { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 650; }
.feature dd { margin: 0; font-size: 15px; line-height: 23px; color: var(--muted); }

/* Safety */
.safety { padding: 112px 0; background: #14121D; color: var(--text); }
.safety__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 56px; align-items: center; }
.rules { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 18px; }
.rule { display: grid; grid-template-columns: 24px 1fr; gap: 14px; font-size: 15px; line-height: 23px; }
.rule .ic { margin-top: 2px; }
.rule b { font-weight: 600; }
.safety__demo { display: flex; flex-direction: column; gap: 14px; max-width: 440px; width: 100%; justify-self: center; }
.approval--lg { padding: 18px 20px 20px; border-radius: 18px; gap: 14px; box-shadow: var(--shadow-3); }
.approval--lg .approval__head { font-size: 13px; }
.approval--lg .approval__q { font-size: 17px; line-height: 25px; }
.approval--lg .approval__actions { font-size: 14px; gap: 8px; }
.approval--lg .fake-btn { padding: 10px 14px; border-radius: 10px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; padding: 12px 14px; border-radius: 10px; background: var(--sunk); font-family: var(--font-mono); font-size: 13px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.caption { margin: 0; font-size: 13px; line-height: 19px; color: var(--muted); text-align: center; }

/* Models */
.model-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 20px; }
.model-group h3 { margin: 0; font-size: 17px; font-weight: 650; }
.model-group p { margin: 0; font-size: 14px; line-height: 21px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chip { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 999px; background: var(--raised); border: 1px solid var(--line); font-size: 13px; line-height: 18px; white-space: nowrap; }
.note { margin: 0; font-size: 14px; color: var(--muted); }

/* Privacy */
.privacy { padding: 96px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.facts li { padding: 20px 22px; background: var(--raised); display: flex; flex-direction: column; gap: 4px; }
.facts b { font-size: 16px; font-weight: 650; }
.facts span { font-size: 14px; line-height: 21px; color: var(--muted); }

/* Install */
.install-steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.install-steps li { display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: start; padding: 18px 20px; border-radius: 14px; background: var(--raised); border: 1px solid var(--line); font-size: 15px; line-height: 23px; }
.install-steps .num { width: 28px; height: 28px; font-size: 13px; }
.install-steps b { font-weight: 600; }
.code { font-family: var(--font-mono); font-size: 13px; padding: 2px 6px; border-radius: 6px; background: var(--sunk); border: 1px solid var(--line); }

/* FAQ */
.faq details { border-top: 1px solid var(--line); padding: 4px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 56px; font-size: 17px; line-height: 24px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; font-weight: 400; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 0 0 20px; max-width: 720px; font-size: 15px; line-height: 24px; color: var(--muted); }

/* Closing and footer */
.closing { padding: 96px 0; border-top: 1px solid var(--line); }
.closing__inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; }
.closing .lead { text-align: center; }
.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap { min-height: 72px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding-top: 16px; padding-bottom: 16px; font-size: 14px; color: var(--muted); }
.footer-brand { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 600; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 24px; margin: 0; padding: 0; list-style: none; }

/* Responsive and motion */
@media (max-width: 760px) {
  .nav-links, .nav-github, .panel { display: none; }
  .section, .safety { padding: 72px 0; }
  .hero { padding: 56px 0 64px; }
  .shot__body { height: 420px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .halo { animation: none; }
  .dots i { animation: none; opacity: .55; }
}

/* Prose pages (help, privacy, 404) */
.prose { max-width: 760px; margin: 0 auto; padding: 72px 24px 96px; }
.prose h1 { margin: 12px 0 0; font-size: clamp(34px, 5vw, 52px); line-height: 1.05; font-weight: 700; letter-spacing: -.03em; text-wrap: balance; }
.prose h2 { margin: 48px 0 0; font-size: 26px; line-height: 1.2; font-weight: 650; letter-spacing: -.015em; }
.prose h3 { margin: 28px 0 0; font-size: 18px; line-height: 1.3; font-weight: 650; }
.prose p, .prose ul { margin: 14px 0 0; font-size: 16px; line-height: 26px; }
.prose li + li { margin-top: 6px; }
.prose .meta { color: var(--muted); }
.prose code { font-family: var(--font-mono); font-size: 13px; padding: 2px 6px; border-radius: 6px; background: var(--sunk); border: 1px solid var(--line); }
.prose table { width: 100%; margin-top: 18px; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { color: var(--muted); font-weight: 600; }
