/* Vanguard Labs v3. Light, product-led, Linear-grade restraint. Near-white ground, near-black ink, cool hairlines,
   one deep indigo for actions and the live state. No gradients, no side stripes, no costume monospace. */
:root {
  --bg: #fbfbfc; --surface: #ffffff; --sunk: #f4f4f6; --ink: #0d0e12; --ink-2: #5a5e6b; --ink-3: #686c78;
  --line: #e7e7eb; --line-2: #d9dae0; --accent: #3d3fd1; --accent-ink: #ffffff; --accent-soft: #ececfd;
  --live: #17734a;
  --sans: "Onest", ui-sans-serif, -apple-system, "Segoe UI", sans-serif;
  --r: 10px; --gutter: 24px; color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--sans); }
::selection { background: var(--accent); color: var(--accent-ink); }
a { color: inherit; text-decoration-color: var(--line-2); text-underline-offset: 3px; text-decoration-thickness: 1px; transition: color .15s, text-decoration-color .15s; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }

/* Header */
.bar { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; }
.bar.scrolled { border-bottom-color: var(--line); }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.mark { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; letter-spacing: -0.01em; text-decoration: none; white-space: nowrap; }
.mark svg { display: block; }
nav.top { display: flex; align-items: center; gap: 28px; font-size: 14px; }
nav.top a { text-decoration: none; color: var(--ink-2); }
nav.top a:hover, nav.top a[aria-current] { color: var(--ink); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 8px; font: 500 15px/1 var(--sans); text-decoration: none; transition: background .15s, transform .1s, box-shadow .15s; }
.btn.primary { background: var(--ink); color: #fff; box-shadow: 0 1px 2px rgba(13,14,18,.18), inset 0 1px 0 rgba(255,255,255,.08); }
.btn.primary:hover { background: #24262e; }
.btn.primary:active { transform: translateY(1px); }
.btn.quiet { color: var(--ink-2); padding: 0 6px; }
.btn.quiet:hover { color: var(--ink); }
.btn svg { width: 16px; height: 16px; }

/* Hero */
.hero { padding: 96px 0 56px; }
.hero h1 { margin: 0; font-size: clamp(40px, 6.4vw, 72px); line-height: 1.02; letter-spacing: -0.04em; font-weight: 600; max-width: 15ch; text-wrap: balance; }
.hero .lede { margin: 22px 0 0; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; color: var(--ink-2); max-width: 56ch; }
.hero .actions { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

/* Product frame: Ask My Tara, working */
.frame { margin: 8px 0 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 1px 2px rgba(13,14,18,.04), 0 12px 32px -8px rgba(13,14,18,.12), 0 40px 80px -24px rgba(13,14,18,.12); overflow: hidden; }
.frame-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--ink-3); }
.frame-top b { color: var(--ink); font-weight: 600; }
.live { display: inline-flex; align-items: center; gap: 6px; color: var(--live); font-weight: 500; }
.live i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, var(--live) 18%, transparent); }
.frame-body { display: grid; grid-template-columns: minmax(260px, 340px) 1fr; min-height: 380px; }
.chat { background: #efeae2; padding: 22px 18px; display: grid; align-content: start; gap: 10px; border-right: 1px solid var(--line); }
.msg { max-width: 92%; padding: 9px 12px 7px; border-radius: 9px; font-size: 14px; line-height: 1.45; color: #111b21; box-shadow: 0 1px .5px rgba(11,20,26,.13); }
.msg.me { justify-self: end; background: #d9fdd3; }
.msg.tara { justify-self: start; background: #fff; }
.msg .who { display: block; font-size: 12.5px; font-weight: 600; color: #3d3fd1; margin-bottom: 2px; }
.msg .doc { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.msg .doc span { display: inline-grid; place-items: center; width: 30px; height: 34px; border-radius: 3px; background: #c13d2b; color: #fff; font-size: 11px; font-weight: 700; }
.msg time { display: block; text-align: right; font-size: 11px; color: #54626b; margin-top: 2px; }
.list { padding: 18px 20px 22px; }
.list .ttl { margin: 0 0 4px; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.list .sub { margin: 0 0 14px; font-size: 13px; color: var(--ink-3); }
.rowx { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 14px; padding: 11px 0; border-top: 1px solid var(--line); }
.score { display: grid; place-items: center; height: 40px; border-radius: 8px; font-weight: 600; font-size: 17px; font-variant-numeric: tabular-nums; }
.score.g { background: #fdf0c8; color: #6a4a00; }
.score.low { background: var(--sunk); color: var(--ink-2); font-size: 13.5px; white-space: nowrap; }
.rowx b { display: block; font-size: 14.5px; font-weight: 500; }
.rowx small { display: block; font-size: 13px; color: var(--ink-3); }
.tag { font-size: 12px; color: var(--ink-2); background: var(--sunk); border-radius: 999px; padding: 3px 9px; white-space: nowrap; }
.tag.on { color: var(--accent); background: var(--accent-soft); }
.caption { margin: 14px 2px 0; font-size: 13px; color: var(--ink-3); }

/* Sections */
section.sec { padding: 104px 0 0; }
section.sec > h2 { margin: 0; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; letter-spacing: -0.03em; font-weight: 600; max-width: 22ch; text-wrap: balance; }
section.sec > p.intro { margin: 14px 0 0; color: var(--ink-2); font-size: 17px; max-width: 58ch; }

/* Apps */
.apps { margin-top: 40px; border-top: 1px solid var(--line); }
.app { display: grid; grid-template-columns: 56px 1fr auto; gap: 20px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); }
.app .icon { width: 56px; height: 56px; border-radius: 13px; display: grid; place-items: center; background: #14161e; }
.app h3 { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.app p { margin: 4px 0 0; color: var(--ink-2); font-size: 15px; max-width: 62ch; }
.app .go { font-size: 14px; font-weight: 500; text-decoration: none; color: var(--ink); white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.app .go:hover { color: var(--accent); }
.app.next .icon { background: var(--sunk); border: 1px dashed var(--line-2); }
.app.next h3 { color: var(--ink-2); font-weight: 500; }

/* How we work: two columns of statements, hairline-separated, no cards */
.ways { margin-top: 40px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 64px; }
.way { padding: 22px 0 24px; border-top: 1px solid var(--line); }
.way h3 { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.way p { margin: 6px 0 0; color: var(--ink-2); font-size: 15.5px; max-width: 48ch; }

/* Company facts */
.facts { margin: 40px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.facts div { padding: 18px 20px 20px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: 13px; color: var(--ink-3); }
.facts dd { margin: 4px 0 0; font-size: 15.5px; font-weight: 500; }

/* Closing line */
.close { padding: 120px 0 96px; }
.close p { margin: 0; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.3; letter-spacing: -0.025em; font-weight: 500; max-width: 26ch; }
.close .actions { margin-top: 24px; display: flex; gap: 12px; flex-wrap: wrap; }

/* Policy pages */
.prose { max-width: 680px; padding: 72px 0 96px; }
.prose h1 { font-size: clamp(36px, 5vw, 52px); line-height: 1.05; letter-spacing: -0.035em; font-weight: 600; margin: 0 0 18px; }
.prose h2 { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; margin: 44px 0 8px; }
.prose p, .prose li { color: #2b2e36; font-size: 16.5px; }
.prose .lede { font-size: 19px; color: var(--ink-2); margin-top: 0; }
.prose ul { padding-left: 20px; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--ink-3); }
.prose a { text-decoration-color: var(--line-2); }

/* Footer */
footer.foot { border-top: 1px solid var(--line); }
footer.foot .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-top: 28px; padding-bottom: 40px; font-size: 13.5px; color: var(--ink-3); }
footer.foot a { text-decoration: none; color: var(--ink-2); }
footer.foot a:hover { color: var(--ink); }
footer.foot .who { margin-right: auto; }

/* The one authored moment: Tara's reply arrives, then the list settles in score order. */
@media (prefers-reduced-motion: no-preference) {
  .play .msg.tara { animation: arrive .5s cubic-bezier(.16,1,.3,1) 1.1s both; }
  .play .rowx { animation: settle .6s cubic-bezier(.16,1,.3,1) both; }
  .play .rowx:nth-child(3) { animation-delay: 1.5s; } .play .rowx:nth-child(4) { animation-delay: 1.6s; }
  .play .rowx:nth-child(5) { animation-delay: 1.7s; } .play .rowx:nth-child(6) { animation-delay: 1.8s; }
  .play .msg.me:nth-child(2) { animation: arrive .4s cubic-bezier(.16,1,.3,1) .5s both; }
}
@keyframes arrive { from { opacity: 0; transform: translateY(6px) scale(.98); } }
@keyframes settle { from { opacity: 0; transform: translateY(8px); filter: blur(2px); } }

@media (max-width: 820px) {
  .frame-body { grid-template-columns: 1fr; }
  .chat { border-right: 0; border-bottom: 1px solid var(--line); }
  .ways { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 40px; }
  section.sec { padding-top: 80px; }
  nav.top { gap: 18px; }
}
@media (max-width: 520px) {
  .app { grid-template-columns: 44px 1fr; }
  .app .icon { width: 44px; height: 44px; border-radius: 11px; }
  .app .go { grid-column: 2; }
  .tag { display: none; }
  :root { --gutter: 18px; }
}
.app .go svg { width: 14px; height: 14px; }
