/* LapisAI site: shared styles for index, privacy and terms. */
:root {
  --ink: #0E1726;
  --ink-2: #3E4A5C;
  --muted: #56637A;
  --bg: #F4F7FB;
  --bg-2: #E9EFF6;
  --card: #FFFFFF;
  --line: #D3DDE9;
  --line-2: #A9BBD1;
  --blue: #26619C;
  --blue-deep: #1D4E80;
  --blue-soft: #DCE8F5;
  --sky: #9DC0EA;
  --navy: #0B2340;
  --navy-2: #12305A;
  --navy-line: #21406A;
  --wood: #7B2D1F;
  --wood-soft: #EBD6D0;
  --sand: #F5F1EC;
  --sand-2: #EFEAE3;
  --sand-line: #DED7CE;
  --earth: #1B1715;
  --earth-2: #4F4842;
  --earth-muted: #6A625A;
  --green: #2ECC71;
  --forest: #0F2A1E;
  --forest-2: #153826;
  --forest-line: #24503A;
  --mint: #C9DBD1;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --radius: 18px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px); }
.mono { font-family: var(--mono); }
.eyebrow {
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase; color: var(--blue);
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }

/* ── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  font-size: 15px; font-weight: 700; text-decoration: none; white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .2s, background .2s, border-color .2s;
}
.btn svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 10px 24px -10px rgba(38, 97, 156, .7); }
.btn-primary:hover { background: var(--blue-deep); box-shadow: 0 14px 30px -10px rgba(38, 97, 156, .8); }
.btn-ghost { background: rgba(255, 255, 255, .7); color: var(--ink); border: 1px solid var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-lg { min-height: 54px; padding: 0 30px; font-size: 16px; }

/* ── Navigation ──────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 247, 251, .82);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.scrolled { border-bottom-color: var(--line); background: rgba(244, 247, 251, .92); }
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 68px; }
.nav-logo img { height: 30px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 8px 14px; border-radius: 999px; font-size: 15px; font-weight: 600;
  color: var(--ink-2); text-decoration: none; transition: background .2s, color .2s;
}
.nav-links a:hover { background: var(--bg-2); color: var(--ink); }
.nav-cta { min-height: 42px; padding: 0 20px; font-size: 14px; }
.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line);
  background: #fff; color: var(--ink); align-items: center; justify-content: center; cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }
.nav-menu { display: none; }
@media (max-width: 900px) {
  .nav-links, .nav-in > .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    display: block; overflow: hidden; max-height: 0;
    transition: max-height .35s var(--ease);
    border-top: 1px solid transparent;
  }
  .nav.open .nav-menu { max-height: 480px; border-top-color: var(--line); }
  .nav-menu ul { list-style: none; margin: 0 auto; padding-top: 12px; padding-bottom: 20px; display: grid; gap: 2px; }
  .nav-menu a:not(.btn) {
    display: block; padding: 12px 4px; font-size: 17px; font-weight: 600;
    color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--bg-2);
  }
  .nav-menu .btn { margin-top: 14px; width: 100%; }
}

/* ── Motion primitives ───────────────────────────────── */
@keyframes lp-up { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes lp-drop { from { opacity: 0; transform: translateY(-34px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes lp-shimmer { to { background-position: -200% center; } }
@keyframes lp-ping { 75%, 100% { transform: scale(2.2); opacity: 0; } }
@keyframes lp-strata { to { transform: translateX(-50%); } }
@keyframes lp-aurora-a { 0%, 100% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(90px, 50px, 0) scale(1.12); } }
@keyframes lp-aurora-b { 0%, 100% { transform: translate3d(0, 0, 0) scale(1.08); } 50% { transform: translate3d(-110px, -24px, 0) scale(.94); } }
@keyframes lp-marquee { to { transform: translateX(-50%); } }
@keyframes lp-blink { 50% { opacity: 0; } }
@keyframes lp-flow { to { stroke-dashoffset: -48; } }

.in { opacity: 0; animation: lp-up .9s var(--ease) forwards; animation-delay: var(--d, 0s); }
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ── Hero ────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; padding: clamp(40px, 7vw, 96px) 0 0; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.hero-bg .aurora { position: absolute; border-radius: 50%; filter: blur(60px); }
.hero-bg .aurora-a { width: 560px; height: 560px; top: -220px; left: -80px; background: radial-gradient(closest-side, rgba(38, 97, 156, .22), transparent); animation: lp-aurora-a 20s ease-in-out infinite; }
.hero-bg .aurora-b { width: 520px; height: 520px; top: -120px; right: -120px; background: radial-gradient(closest-side, rgba(157, 192, 234, .45), transparent); animation: lp-aurora-b 26s ease-in-out infinite; }
/* Blueprint grid: faint everywhere, lit under the pointer. */
.hero-bg .grid, .hero-bg .grid-lit { position: absolute; inset: 0; background-size: 48px 48px; }
.hero-bg .grid {
  background-image: linear-gradient(rgba(14, 23, 38, .055) 1px, transparent 1px), linear-gradient(90deg, rgba(14, 23, 38, .055) 1px, transparent 1px);
  mask-image: radial-gradient(ellipse 75% 70% at 50% 30%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 30%, #000 30%, transparent 78%);
}
.hero-bg .grid-lit {
  background-image: linear-gradient(rgba(38, 97, 156, .55) 1px, transparent 1px), linear-gradient(90deg, rgba(38, 97, 156, .55) 1px, transparent 1px);
  mask-image: radial-gradient(220px circle at var(--mx, -999px) var(--my, -999px), #000, transparent 70%);
  -webkit-mask-image: radial-gradient(220px circle at var(--mx, -999px) var(--my, -999px), #000, transparent 70%);
}
.hero-bg .glow { position: absolute; inset: 0; background: radial-gradient(380px circle at var(--mx, -999px) var(--my, -999px), rgba(38, 97, 156, .12), transparent 70%); }
/* Strata: layered contour lines drifting sideways at different speeds. */
.strata { position: absolute; left: 0; right: 0; bottom: 0; height: 62%; }
.strata svg { position: absolute; left: 0; bottom: 0; width: 200%; height: 100%; max-width: none; }
.strata .s1 { animation: lp-strata 48s linear infinite; }
.strata .s2 { animation: lp-strata 70s linear infinite; }
.strata .s3 { animation: lp-strata 95s linear infinite; }

.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; }
@media (max-width: 1000px) { .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; } }
.hero-copy { display: flex; flex-direction: column; gap: 26px; }
.badge {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 16px 7px 12px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .75); font-family: var(--mono); font-size: 11.5px; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase; color: var(--blue);
}
.ping { position: relative; width: 8px; height: 8px; flex: 0 0 auto; }
.ping::before, .ping::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--blue); }
.ping::before { animation: lp-ping 1.8s cubic-bezier(0, 0, .2, 1) infinite; opacity: .6; }
.hero h1 { font-size: clamp(40px, 4.9vw, 70px); font-weight: 700; letter-spacing: -.045em; line-height: 1.0; }
.hero h1 .line { display: block; }
.shimmer {
  display: inline-block; padding-bottom: .1em; margin-bottom: -.1em;
  background-image: linear-gradient(90deg, #1D4E80, #26619C, #3F7FC0, #6FA3DA, #3F7FC0, #26619C, #1D4E80);
  background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: lp-shimmer 7s linear infinite;
}
.hero-lede { max-width: 560px; font-size: clamp(17px, 1.45vw, 20px); color: var(--ink-2); }
.hero-lede b { color: var(--ink); font-weight: 700; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.definition { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-size: 14px; color: var(--muted); }
.definition .mono { font-size: 13px; }
.definition .word { color: var(--blue); font-weight: 500; }

/* The layer stack: tilts with the pointer, layers are laid from the bottom
   up, and a query pulse travels down the rail and back. */
.stack-scene { perspective: 1600px; }
.stack {
  position: relative; padding: 18px 18px 18px 46px; border-radius: 24px;
  background: rgba(255, 255, 255, .78); border: 1px solid var(--line);
  box-shadow: 0 30px 60px -30px rgba(14, 23, 38, .35), 0 2px 0 rgba(255, 255, 255, .8) inset;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transform-style: preserve-3d; transition: transform .5s var(--ease);
}
.stack-head { display: flex; justify-content: space-between; gap: 8px; padding: 2px 4px 12px; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); }
.stack-head span:last-child { color: var(--muted); }
.layers { position: relative; display: flex; flex-direction: column; gap: 10px; }
.layer {
  position: relative; border-radius: 14px; padding: 18px 20px; border: 1px solid var(--line);
  background: #fff; display: grid; gap: 6px;
  transition: box-shadow .45s var(--ease), border-color .45s, transform .45s var(--ease);
  animation: lp-drop .8s var(--ease) backwards; animation-delay: var(--d, 0s);
}
.layer-meta { display: flex; justify-content: space-between; gap: 8px; font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.layer-name { display: flex; align-items: center; gap: 10px; font-size: 24px; letter-spacing: -.01em; }
.layer-name svg, .layer-name img { width: 28px; height: 28px; flex: 0 0 auto; }
.layer p { font-size: 14.5px; color: var(--ink-2); }
.layer-relai { background: var(--forest); border-color: var(--forest); color: #E6EFE9; }
.layer-relai .layer-meta { color: #A9C2B4; }
.layer-relai p { color: var(--mint); }
.layer-env { padding: 12px 16px; background: var(--bg-2); border-style: dashed; border-color: var(--line-2); text-align: center; font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); }
.layer.active { transform: translateX(4px); border-color: var(--blue); box-shadow: 0 0 0 4px rgba(38, 97, 156, .12), 0 18px 34px -18px rgba(38, 97, 156, .55); }
.layer-relai.active { border-color: var(--green); box-shadow: 0 0 0 4px rgba(46, 204, 113, .18), 0 18px 34px -18px rgba(46, 204, 113, .6); }
.layer-tag {
  position: absolute; top: 14px; right: 16px; padding: 3px 9px; border-radius: 999px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase;
  background: var(--blue); color: #fff; opacity: 0; transform: translateY(-4px);
  transition: opacity .3s, transform .3s var(--ease);
}
.layer-relai .layer-tag { background: var(--green); color: var(--forest); }
.layer.active .layer-tag { opacity: 1; transform: none; }
.layer.active .layer-meta span:last-child { opacity: 0; }
.rail { position: absolute; left: 22px; width: 2px; background: repeating-linear-gradient(var(--line-2) 0 4px, transparent 4px 8px); border-radius: 2px; }
.pulse {
  position: absolute; left: 23px; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%;
  background: var(--blue); box-shadow: 0 0 0 5px rgba(38, 97, 156, .18), 0 0 18px 4px rgba(38, 97, 156, .45);
  transition: top .9s var(--ease), background .4s, box-shadow .4s;
}
.pulse.relai { background: var(--green); box-shadow: 0 0 0 5px rgba(46, 204, 113, .2), 0 0 18px 4px rgba(46, 204, 113, .5); }
.stack-caption {
  display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 10px 14px;
  border-radius: 12px; background: var(--bg); border: 1px solid var(--line); min-height: 44px;
  font-size: 13.5px; color: var(--ink-2);
}
.stack-caption .cap-step { font-family: var(--mono); font-size: 11px; color: var(--blue); flex: 0 0 auto; }
.stack-caption .text { transition: opacity .25s; }
@media (max-width: 520px) {
  .stack { padding: 14px 12px 14px 38px; }
  .rail { left: 18px; } .pulse { left: 19px; }
  .layer { padding: 16px; }
  .layer-name { font-size: 21px; }
}

.ticker {
  position: relative; margin-top: clamp(48px, 6vw, 80px); padding: 16px 0; overflow: hidden;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .5);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker-row { display: flex; width: max-content; gap: 40px; animation: lp-marquee 42s linear infinite; }
.ticker:hover .ticker-row { animation-play-state: paused; }
.ticker-row span { display: inline-flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.ticker-row span::before { content: ''; width: 14px; height: 9px; border: 1.5px solid var(--blue); border-top-width: 3px; border-radius: 2px; }

/* ── Sections ────────────────────────────────────────── */
.section { padding: clamp(72px, 9vw, 128px) 0; }
.section-head { display: grid; gap: 16px; max-width: 780px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.split { max-width: none; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: end; gap: 24px 64px; }
@media (max-width: 900px) { .section-head.split { grid-template-columns: minmax(0, 1fr); } }
h2.title { font-size: clamp(32px, 4.2vw, 54px); font-weight: 700; letter-spacing: -.035em; line-height: 1.06; }
.lede { font-size: 18px; color: var(--ink-2); }

/* Problem */
.problems { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 900px) { .problems { grid-template-columns: minmax(0, 1fr); } }
.problem { position: relative; padding: 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); display: grid; gap: 12px; align-content: start; }
.problem .num { font-family: var(--mono); font-size: 12px; color: var(--blue); }
.problem h3 { font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.problem p { color: var(--ink-2); font-size: 16px; }
.problem .fix { margin-top: 6px; padding-top: 14px; border-top: 1px dashed var(--line); font-size: 14px; color: var(--muted); }
.problem .fix b { color: var(--ink); }

/* Platform (navy) */
.platform { background: var(--navy); color: #F4F7FB; position: relative; overflow: hidden; isolation: isolate; }
.platform::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(800px 420px at 85% -10%, rgba(38, 97, 156, .55), transparent 70%), radial-gradient(600px 400px at -10% 110%, rgba(38, 97, 156, .35), transparent 70%); }
.platform .eyebrow { color: var(--sky); }
.platform .lede { color: #D3DEEA; }
.tiers { border-bottom: 1px solid var(--navy-line); }
.tier { display: grid; grid-template-columns: 210px 220px minmax(0, 1fr) auto; align-items: center; gap: 12px 32px; padding: 28px 8px; border-top: 1px solid var(--navy-line); border-radius: 4px; transition: background .3s; }
.tier:hover { background: rgba(255, 255, 255, .03); }
.tier .label { font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: #A9BBD1; }
.tier .name { display: flex; align-items: center; gap: 10px; font-size: 28px; }
.tier .name svg, .tier .name img { width: 28px; height: 28px; }
.tier p { font-size: 16.5px; color: #D3DEEA; }
.tier a.go { font-size: 14.5px; font-weight: 700; color: var(--sky); text-decoration: none; white-space: nowrap; }
.tier a.go:hover { color: #fff; }
.tier.env { border-top-style: dashed; border-top-color: #3A5F8F; }
@media (max-width: 1000px) { .tier { grid-template-columns: minmax(0, 1fr); padding: 26px 0; gap: 10px; } }

/* Product sections */
.product { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px 72px; align-items: center; }
.product.flip .product-copy { order: 2; }
@media (max-width: 1000px) { .product { grid-template-columns: minmax(0, 1fr); } .product.flip .product-copy { order: 0; } }
.product-copy { display: flex; flex-direction: column; gap: 22px; }
.brandline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.brandline .name { display: flex; align-items: center; gap: 10px; font-size: 30px; letter-spacing: -.01em; }
.brandline .name svg, .brandline .name img { width: 32px; height: 32px; }
.chip { display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.points { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.points li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; font-size: 16px; }
.points li::before { content: ''; width: 9px; height: 9px; margin: 8px 0 0 4px; border-radius: 50%; background: currentColor; opacity: .9; }
.points b { font-weight: 700; }
.note { padding-top: 18px; border-top: 1px solid; font-size: 14px; }

.redsection { background: var(--sand); color: var(--earth); }
.redsection + .redsection { border-top: 1px solid var(--sand-line); background: var(--sand-2); }
.redsection .eyebrow { color: var(--earth-muted); }
.redsection .lede, .redsection .points li { color: var(--earth-2); }
.redsection .points li::before { color: var(--wood); }
.redsection .points b { color: var(--earth); }
.redsection .note { border-color: var(--sand-line); color: var(--earth-muted); }
.btn-wood { background: var(--wood); color: #fff; box-shadow: 0 10px 24px -12px rgba(123, 45, 31, .8); }
.btn-wood:hover { background: #63231A; }

.sample {
  background: #fff; border: 1px solid var(--sand-line); border-radius: var(--radius);
  box-shadow: 0 24px 50px -28px rgba(27, 23, 21, .35); padding: 24px; display: grid; gap: 18px;
}
.sample-head { display: flex; justify-content: space-between; gap: 8px; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--earth-muted); }
.ask { padding: 12px 14px; background: var(--sand-2); border-radius: 12px; font-size: 15px; }
.big { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.big .v { font-size: 46px; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.big .d { font-size: 15px; font-weight: 700; color: #B22A5B; }
.bars { display: grid; gap: 10px; }
.bar { display: grid; grid-template-columns: 120px minmax(0, 1fr) 54px; align-items: center; gap: 12px; font-size: 14px; }
.bar .track { height: 10px; border-radius: 3px; background: var(--sand-2); overflow: hidden; }
.bar .fill { display: block; height: 100%; width: 0; border-radius: 3px; background: #4F6273; transition: width 1.2s var(--ease); transition-delay: var(--d, 0s); }
.bar.top .fill { background: var(--wood); }
.is-in .bar .fill, .no-motion .bar .fill { width: var(--w); }
.bar .n { text-align: right; font-variant-numeric: tabular-nums; }
.bar.top .n { font-weight: 700; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border: 1px solid var(--sand-line); border-radius: 8px; font-size: 13px; color: var(--earth-2); }
.tag svg { width: 13px; height: 13px; }
.receipt { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding-top: 16px; border-top: 1px solid var(--sand-line); font-size: 13px; color: var(--earth-2); }
.ok { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; background: #DCEFE6; color: #1F6B55; font-weight: 700; }
.ok svg { width: 12px; height: 12px; }
.cite { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; margin: 0 2px 0 4px; padding: 0 4px; border-radius: 5px; background: var(--wood-soft); color: #5E2217; font-family: var(--mono); font-size: 11px; vertical-align: 2px; }
.sub { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--earth-muted); }
.dot { width: 8px; height: 8px; border-radius: 2px; flex: 0 0 auto; }
.sources { display: grid; gap: 8px; padding-top: 16px; border-top: 1px solid var(--sand-line); }
.sources div { display: flex; gap: 10px; font-size: 13px; color: var(--earth-2); }
.sources .mono { color: #5E2217; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding-top: 22px; border-top: 1px solid var(--sand-line); }
.stats .v { display: block; font-size: 34px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stats .k { font-size: 14px; color: var(--earth-2); }

/* RELAI (forest) */
.relai { background: var(--forest); color: #E6EFE9; position: relative; overflow: hidden; isolation: isolate; }
.relai::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(700px 380px at 90% 0%, rgba(46, 204, 113, .16), transparent 70%); }
.relai .eyebrow { color: #A9C2B4; }
.relai h2 { color: #fff; }
.relai .lede { color: var(--mint); }
.relai-word { display: flex; align-items: center; gap: 12px; font-size: 32px; font-weight: 800; letter-spacing: .03em; color: var(--green); }
.relai-word img { width: 38px; height: 38px; }
.serif { font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-size: clamp(28px, 3vw, 40px); line-height: 1.1; color: var(--green); }
.btn-green { background: var(--green); color: var(--forest); box-shadow: 0 10px 24px -12px rgba(46, 204, 113, .9); }
.btn-green:hover { background: #58D68D; }
.apps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1000px) { .apps { grid-template-columns: minmax(0, 1fr); } }
.app { background: var(--forest-2); border: 1px solid var(--forest-line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 16px; transition: transform .3s var(--ease), border-color .3s; }
.app:hover { transform: translateY(-4px); border-color: #2F6B4D; }
.app-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.app h3 { font-size: 22px; font-weight: 700; color: #fff; }
.app p { color: var(--mint); font-size: 16px; }
.pill-new { height: 24px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--green); color: var(--green); font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; }
.pill-live { height: 24px; padding: 0 10px; border-radius: 999px; background: #1E5C3F; color: #BFF0D4; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; }
.app-foot { margin-top: auto; }
.screen { padding: 14px 16px; background: #0B2017; border-radius: 12px; font-family: var(--mono); font-size: 12.5px; line-height: 1.75; color: var(--mint); }
.screen .g { color: var(--green); }
.screen .m { color: #7FA592; }
.caret { display: inline-block; width: .55em; height: 1.1em; vertical-align: text-bottom; background: var(--green); animation: lp-blink 1s steps(1) infinite; }
.checks { display: grid; gap: 9px; padding: 14px 16px; background: #0B2017; border-radius: 12px; font-size: 13px; color: var(--mint); }
.checks div { display: flex; align-items: center; gap: 10px; }
.checks i { width: 16px; height: 16px; flex: 0 0 auto; border-radius: 50%; border: 2px solid var(--green); display: inline-flex; align-items: center; justify-content: center; transition: background .3s; }
.checks i svg { width: 9px; height: 9px; opacity: 0; transition: opacity .3s; }
.checks .done i { background: var(--green); }
.checks .done i svg { opacity: 1; }
.app-link { font-size: 15px; font-weight: 700; color: var(--green); text-decoration: none; }
.app-link:hover { color: #82E0AA; }
.relai-foot { margin-top: 28px; font-size: 15px; color: #A9C2B4; }

/* Together */
.question { padding: 26px 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); display: grid; gap: 8px; margin-bottom: 20px; }
.question .q { font-size: clamp(20px, 2.2vw, 28px); font-weight: 600; letter-spacing: -.01em; line-height: 1.3; }
.question .t { font-size: 15px; color: var(--muted); }
.flow { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 900px) { .flow { grid-template-columns: minmax(0, 1fr); } }
.flow-line { position: absolute; top: 38px; left: 8%; right: 8%; height: 2px; z-index: 0; pointer-events: none; }
.flow-line path { stroke-dasharray: 6 10; animation: lp-flow 1.6s linear infinite; }
@media (max-width: 900px) { .flow-line { display: none; } }
.step { position: relative; z-index: 1; padding: 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); display: grid; gap: 14px; align-content: start; }
.step-head { display: flex; align-items: center; gap: 10px; font-size: 20px; }
.step-head svg, .step-head img { width: 24px; height: 24px; }
.step .n { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; font-family: var(--mono); font-size: 13px; }
.step p { color: var(--ink-2); font-size: 16px; }
.step.dark { background: var(--forest); border-color: var(--forest-line); }
.step.dark .n { background: var(--green); color: var(--forest); }
.step.dark p { color: var(--mint); }

/* Trust */
.trust { background: var(--bg-2); border-top: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1000px) { .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .trust-grid { grid-template-columns: minmax(0, 1fr); } }
.trust-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: grid; gap: 10px; align-content: start; transition: transform .3s var(--ease), box-shadow .3s; }
.trust-card:hover { transform: translateY(-3px); box-shadow: 0 18px 36px -24px rgba(14, 23, 38, .35); }
.icon { width: 42px; height: 42px; border-radius: 12px; background: var(--blue-soft); display: inline-flex; align-items: center; justify-content: center; }
.icon svg { width: 21px; height: 21px; }
.trust-card h3 { font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.trust-card p { font-size: 15px; color: var(--ink-2); }
.clouds { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: 28px; }
.clouds .eyebrow { color: var(--muted); margin-right: 6px; }
.clouds span:not(.eyebrow) { padding: 8px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 15px; font-weight: 700; }

/* Company */
.company { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px 72px; align-items: start; }
@media (max-width: 900px) { .company { grid-template-columns: minmax(0, 1fr); } }
.company-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.company-stats div { border-top: 2px solid var(--ink); padding-top: 16px; display: grid; gap: 4px; }
.company-stats .v { font-size: 48px; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.company-stats .k { font-size: 15px; color: var(--ink-2); }

/* CTA band */
.cta { position: relative; overflow: hidden; isolation: isolate; background: var(--blue); color: #fff; padding: clamp(72px, 9vw, 120px) 0; }
.cta .strata { height: 100%; opacity: .9; z-index: -1; }
.cta-in { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px 64px; }
.cta h2 { font-size: clamp(34px, 4.8vw, 62px); font-weight: 700; letter-spacing: -.035em; line-height: 1.03; max-width: 720px; }
.cta p { margin-top: 16px; max-width: 560px; font-size: 18px; color: #DCE8F5; }
.btn-white { background: #fff; color: var(--blue-deep); box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .45); }
.btn-outline { border: 1px solid rgba(255, 255, 255, .55); color: #fff; }
.btn-outline:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }

/* ── Footer (same structure as RELAI's landing footer) ── */
.footer { border-top: 1px solid var(--line); background: #EEF3F9; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1.4fr; gap: 40px 32px; padding: 56px 0 44px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand, .footer-contact { grid-column: span 2; } }
.footer-brand img { height: 30px; width: auto; margin-bottom: 14px; }
.footer-brand p { font-size: 14px; color: var(--muted); max-width: 280px; }
.footer-brand .member { margin-top: 10px; font-size: 13px; color: var(--muted); }
.footer-brand .member b { color: var(--ink); }
.footer h3 { font-size: 14px; font-weight: 700; margin-bottom: 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer ul a { font-size: 14px; color: var(--muted); text-decoration: none; transition: color .2s; }
.footer ul a:hover { color: var(--ink); }
.footer-contact li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--muted); line-height: 1.6; }
.footer-contact svg { width: 16px; height: 16px; margin-top: 3px; flex: 0 0 auto; color: var(--ink); }
.footer-contact strong { display: block; color: var(--ink); font-weight: 600; }
.footer-contact small { display: block; font-size: 12px; opacity: .8; margin-top: 2px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 32px; padding: 22px 0 28px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }

/* ── Legal pages ─────────────────────────────────────── */
.legal-hero { position: relative; overflow: hidden; isolation: isolate; padding: clamp(48px, 7vw, 88px) 0 clamp(40px, 5vw, 56px); border-bottom: 1px solid var(--line); }
.legal-hero .strata { height: 46%; opacity: .6; z-index: -1; }
.legal-hero h1 { font-size: clamp(38px, 5vw, 60px); font-weight: 700; letter-spacing: -.04em; line-height: 1.04; margin-top: 14px; }
.legal-hero p { margin-top: 14px; max-width: 640px; color: var(--ink-2); font-size: 17px; }
.legal-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 18px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.legal { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(64px, 8vw, 104px); }
@media (max-width: 900px) { .legal { grid-template-columns: minmax(0, 1fr); gap: 28px; } }
.toc { position: sticky; top: 92px; align-self: start; }
.toc .eyebrow { display: block; margin-bottom: 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; border-left: 2px solid var(--line); }
.toc a { display: block; margin-left: -2px; padding: 6px 0 6px 14px; border-left: 2px solid transparent; font-size: 14px; color: var(--muted); text-decoration: none; transition: color .2s, border-color .2s; }
.toc a:hover, .toc a.current { color: var(--ink); border-left-color: var(--blue); }
@media (max-width: 900px) { .toc { position: static; } .toc ol { grid-template-columns: repeat(2, minmax(0, 1fr)); border-left: 0; } .toc a { border-left: 0; padding-left: 0; } }
.doc { max-width: 760px; }
.doc section { padding: 28px 0; border-bottom: 1px solid var(--line); }
.doc section:first-child { padding-top: 0; }
.doc h2 { font-size: 22px; font-weight: 700; letter-spacing: -.015em; margin-bottom: 12px; display: flex; gap: 12px; align-items: baseline; }
.doc h2 .mono { font-size: 13px; color: var(--blue); font-weight: 500; }
.doc h3 { font-size: 16px; font-weight: 700; margin: 18px 0 8px; }
.doc p, .doc li { font-size: 16px; color: var(--ink-2); }
.doc p + p, .doc ul + p { margin-top: 12px; }
.doc ul { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 8px; }
.doc a { color: var(--blue); }
.doc strong { color: var(--ink); }
.callout { margin-bottom: 28px; padding: 18px 20px; border-radius: 14px; background: var(--blue-soft); border: 1px solid #BCD3EC; font-size: 15px; color: var(--ink-2); }
.callout strong { color: var(--ink); }
.doc-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 32px; font-size: 14px; }
.doc-foot a { color: var(--blue); font-weight: 600; text-decoration: none; }

/* ── Reduced motion ──────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .in, .layer { opacity: 1 !important; animation: none !important; transform: none !important; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .shimmer, .ping::before, .strata svg, .aurora, .ticker-row, .caret, .flow-line path { animation: none !important; }
  .bar .fill { transition: none; }
  .stack, .pulse, .layer { transition: none !important; }
}

@media (max-width: 520px) {
  .badge { font-size: 10px; letter-spacing: .04em; padding: 6px 12px 6px 10px; }
  .hero-actions .btn { width: 100%; }
}

/* ── Relai showcase: desktop app with the terminal in front ── */
@keyframes lp-bob { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-10px) rotate(-1deg); } }
.showcase { margin-top: clamp(40px, 6vw, 72px); }
.show-tabs { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-bottom: 16px; }
.show-tabs button {
  height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--forest-line);
  background: transparent; color: var(--mint); font: 600 14px/1 var(--sans); cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.show-tabs button:hover { border-color: #2F6B4D; color: #fff; }
.show-tabs button[aria-selected="true"] { background: var(--green); border-color: var(--green); color: var(--forest); }
.show-stage { position: relative; padding-bottom: 48px; }
.win { margin: 0; }
.win.desk { margin-left: 16%; }
.win-bar { display: flex; align-items: center; gap: 12px; height: 36px; padding: 0 14px; background: #161616; border: 1px solid rgba(255, 255, 255, .1); border-bottom: 0; border-radius: 14px 14px 0 0; }
.win-bar .dots { display: flex; gap: 6px; }
.win-bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.win-bar .dots i:nth-child(2) { background: #febc2e; }
.win-bar .dots i:nth-child(3) { background: #28c840; }
.win-title { font: 500 12px/1 var(--mono); color: #A3A3A3; }
.win-body { position: relative; aspect-ratio: 2000 / 1250; overflow: hidden; background: #0c0c0c; border: 1px solid rgba(255, 255, 255, .1); border-radius: 0 0 14px 14px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7); }
.win-body img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.015); transition: opacity .6s var(--ease), transform 1.2s var(--ease); }
.win-body img.on { opacity: 1; transform: none; }
.win figcaption { margin-top: 12px; font-size: 14px; color: #A9C2B4; min-height: 1.5em; transition: opacity .25s; }
.win.term { position: absolute; left: 0; bottom: 0; width: 38%; z-index: 2; }
.win.term img { width: 100%; height: auto; border-radius: 12px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .75), 0 0 0 1px rgba(255, 255, 255, .08); animation: lp-bob 7s ease-in-out infinite; }
.win.term figcaption { padding-left: 4px; }
@media (max-width: 820px) {
  .show-tabs { justify-content: flex-start; }
  .show-stage { padding-bottom: 0; display: grid; gap: 28px; }
  .win.desk { margin-left: 0; }
  .win.term { position: static; width: 100%; max-width: 520px; }
  .win.term img { animation: none; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .win.term img { animation: none; }
  .win-body img { transition: none; }
}
.win.desk figcaption { text-align: right; }
@media (max-width: 820px) { .win.desk figcaption { text-align: left; } }

/* ── Redroot showcase: console window with an in-chat answer in front ── */
.showcase.rr .show-tabs button { border-color: var(--sand-line); color: var(--earth-2); background: rgba(255, 255, 255, .5); }
.showcase.rr .show-tabs button:hover { border-color: var(--earth-muted); color: var(--earth); }
.showcase.rr .show-tabs button[aria-selected="true"] { background: var(--wood); border-color: var(--wood); color: #fff; }
.showcase.rr .win-bar { background: var(--sand-2); border-color: var(--sand-line); }
.showcase.rr .win-title { color: var(--earth-muted); }
.showcase.rr .win-body { background: var(--sand); border-color: var(--sand-line); aspect-ratio: 1440 / 860; box-shadow: 0 40px 80px -36px rgba(27, 23, 21, .35); }
.showcase.rr .win-body img { height: auto; bottom: auto; object-fit: initial; transform: none; transition: opacity .6s var(--ease); }
.showcase.rr .win-body img.on.pan { transform: translateY(var(--pan)); transition: opacity .6s var(--ease), transform 4.4s cubic-bezier(.45, 0, .55, 1) .6s; }
.showcase.rr figcaption { color: var(--earth-muted); }
.win.chatcard { position: absolute; left: 0; bottom: 0; width: 32%; min-width: 280px; z-index: 2; }
.cc { background: #fff; border: 1px solid var(--sand-line); border-radius: 14px; padding: 14px; display: grid; gap: 12px; box-shadow: 0 30px 60px -24px rgba(27, 23, 21, .45); animation: lp-bob 7s ease-in-out infinite; color: var(--earth); }
.cc-head { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.cc-av { width: 20px; height: 20px; border-radius: 50%; background: var(--sand-2); border: 1px solid var(--sand-line); }
.cc-conn { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 999px; border: 1px solid var(--sand-line); font-size: 11px; color: var(--earth-muted); }
.cc-conn svg { width: 12px; height: 12px; }
.cc-q { justify-self: end; padding: 8px 12px; border-radius: 14px; background: var(--sand-2); border: 1px solid var(--sand-line); font-size: 13px; }
.cc-ans { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--sand-line); border-radius: 10px; justify-items: start; }
.cc-label { font-size: 12px; color: var(--earth-2); }
.cc-v { font-size: 28px; font-weight: 700; letter-spacing: -.02em; line-height: 1; }
.cc-v em { font-style: normal; font-size: 13px; font-weight: 700; color: #B22A5B; letter-spacing: 0; margin-left: 4px; }
.cc-bars { width: 100%; display: grid; gap: 5px; }
.cc-bars span { display: block; height: 7px; width: var(--w); border-radius: 0 2px 2px 0; background: #4F6273; }
.showcase.rr .win.chatcard figcaption { padding-left: 4px; }
@media (max-width: 820px) {
  .win.chatcard { position: static; width: 100%; max-width: 420px; }
  .cc { animation: none; }
}
@media (prefers-reduced-motion: reduce) {
  .cc { animation: none; }
  .showcase.rr .win-body img.on.pan { transform: none; transition: none; }
}

/* ── Redwood showcase: Second Brain window with the phone answer in front ── */
.showcase.rw .win-body { aspect-ratio: 1440 / 860; }
.win.phone { position: absolute; left: 1.5%; bottom: 0; width: 19%; min-width: 180px; z-index: 2; }
.win.phone img { width: 100%; height: auto; border-radius: 26px; box-shadow: 0 30px 60px -20px rgba(27, 23, 21, .55), 0 0 0 1px var(--sand-line); animation: lp-bob 7s ease-in-out infinite; }
.win.phone figcaption { padding-left: 4px; color: var(--earth-muted); white-space: nowrap; }
@media (max-width: 820px) {
  .win.phone { position: static; width: 100%; max-width: 240px; }
  .win.phone img { animation: none; }
}
@media (prefers-reduced-motion: reduce) { .win.phone img { animation: none; } }
