/* Public site: landing, hub, assumptions. The app lives in app.css. */

/* ==========================================================================
   THE LANDING PAGE
   Rebuilt after review: the previous cut was aligned but empty. Full-width
   hairline lists holding short text, a rule-per-row, and a numbered eyebrow on
   every section. Density is the fix, not more alignment.

     · one spine: content starts at the same left edge in every section
     · content FILLS the measure; no row is half a page of white
     · long lists become cards and tiles, never a rule under every row
     · the product itself is the imagery: real screens in real device frames,
       never a screenshot faked out of divs
     · two eyebrows on the whole page; no section numbers
   ========================================================================== */
.lp { --page: 1240px; --gut: clamp(1.25rem, 4.5vw, 3.25rem); --gap: clamp(1rem, 2.2vw, 2rem); }
.lp .page { width: 100%; max-width: var(--page); margin-inline: auto; padding-inline: var(--gut); }
.lp .g12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.lp section { padding-block: clamp(4rem, 2.5rem + 4.5vw, 7rem); overflow-x: clip; }

/* ---- Section head. Heading and lead stack; nothing floats in a corner. ---- */
.lp .head { max-width: 62ch; margin-bottom: clamp(2rem, 3.5vw, 3rem); }
.lp .head h2 { font-size: clamp(1.85rem, 1.15rem + 2.1vw, 3rem); letter-spacing: -0.03em; line-height: 1.06; max-width: 18ch; }
.lp .head .lead { margin-top: 15px; font-size: var(--t-16); max-width: 58ch; }
.lp .head .kicker { display: block; margin-bottom: 14px; color: var(--primary-ink); }
.lp .band .head .lead { color: var(--on-drench-muted); }
.lp .band .head .kicker { color: var(--primary); }

/* ---- Top navigation ---- */
.lp .topnav { position: absolute; top: 0; left: 0; right: 0; z-index: 3; padding-block: var(--s-4); }
.lp .topnav .page { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); }
.lp .topnav .wm { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: var(--t-18); letter-spacing: -0.015em; color: var(--on-drench); }
.lp .topnav .wm img { width: 34px; height: 34px; background: #fff; border-radius: 9px; padding: 3px; }
.lp .topnav .wm b { color: var(--primary); }
.lp .topnav .links { display: flex; gap: 4px; align-items: center; }
.lp .topnav .links a { padding: 9px 14px; border-radius: var(--r-full); font-weight: 700; font-size: var(--t-13); color: var(--on-drench-muted); white-space: nowrap; }
.lp .topnav .links a:hover { color: var(--on-drench); background: oklch(1 0 0 / .1); }
.lp .topnav .links a.cta { background: var(--primary); color: var(--on-primary); }
.lp .topnav .links a.cta:hover { background: var(--primary-strong); }

/* ---- Hero: four elements, nothing more ---- */
.lp .hero { position: relative; min-height: 100dvh; display: flex; align-items: center; color: var(--on-drench);
  background: var(--drench); overflow: hidden; isolation: isolate; padding-block: 0; }
.lp.has-pocbar .hero { min-height: calc(100dvh - var(--pocbar-h)); }
.lp .hero .bg { position: absolute; inset: 0; z-index: -1; }
.lp .hero .bg img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 42%; opacity: .5; }
.lp .hero .bg::after { content: ''; position: absolute; inset: 0;
  background: linear-gradient(103deg, oklch(0.22 0.06 262 / .975) 0%, oklch(0.22 0.06 262 / .9) 44%, oklch(0.22 0.06 262 / .5) 100%); }
.lp .hero .in { width: 100%; padding-block: clamp(5.5rem, 11vh, 7rem) clamp(3rem, 6vh, 4rem); align-items: center; }
.lp .hero .copy { grid-column: 1 / span 7; }
.lp .hero .live { grid-column: 9 / span 4; display: flex; justify-content: center; }
.lp .hero .kicker { color: var(--on-drench-muted); }
.lp .hero h1 { font-size: clamp(2.4rem, 1.1rem + 3.9vw, 4.4rem); line-height: 1.03; letter-spacing: -0.038em; margin-top: 18px; max-width: 15ch; }
.lp .hero .lead { color: var(--on-drench-muted); margin-top: 20px; max-width: 46ch; }
.lp .roleband { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 560px; margin-top: clamp(1.75rem, 3.5vh, 2.5rem); }
.lp .rolebtn { display: flex; align-items: center; gap: 13px; padding: 14px 16px; border: 1px solid oklch(1 0 0 / .2); border-radius: var(--r-card);
  background: oklch(1 0 0 / .06); color: var(--on-drench); transition: background var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease); }
.lp .rolebtn:hover { background: oklch(1 0 0 / .14); border-color: oklch(1 0 0 / .42); }
.lp .rolebtn.primary { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.lp .rolebtn.primary:hover { background: var(--primary-strong); border-color: var(--primary-strong); }
.lp .rolebtn .ico { width: 20px; height: 20px; flex: none; }
.lp .rolebtn b { display: block; font-size: var(--t-14); }
.lp .rolebtn span span { display: block; font-size: var(--t-12); opacity: .78; margin-top: 1px; }

/* ---- Device frames. The product is the imagery: real screens, live. ---- */
.lp .lp-phone { position: relative; width: 390px; height: 844px; transform: scale(var(--fit, .72)); transform-origin: center;
  border: 10px solid #0C1937; border-radius: 46px; overflow: hidden; background: var(--bg);
  box-shadow: 0 60px 110px -35px oklch(0 0 0 / .75), 0 0 0 1px oklch(1 0 0 / .09); }
.lp .lp-phone::before { content: ''; position: absolute; left: 50%; top: 10px; transform: translateX(-50%); width: 118px; height: 33px; background: #0C1937; border-radius: 20px; z-index: 5; }
.lp .lp-phone iframe { width: 100%; height: 100%; border: 0; display: block; }
.lp .live-wrap { height: calc(844px * var(--fit, .72)); display: flex; align-items: center; }
@media (max-height: 940px) { .lp .hero .live { --fit: .64; } .lp .hero .live-wrap { height: calc(844px * .64); } }
@media (max-height: 820px) { .lp .hero .live { --fit: .58; } .lp .hero .live-wrap { height: calc(844px * .58); } }
/* In-page device, lighter chrome than the hero's */
.lp .device { --fit: .62; }
.lp .device .lp-phone { border-color: var(--drench); box-shadow: 0 40px 70px -30px oklch(0.245 0.06 262 / .45), 0 0 0 1px oklch(0.245 0.06 262 / .1); }
.lp .device .lp-phone::before { background: var(--drench); }
.lp .device .live-wrap { height: calc(844px * .62); justify-content: center; }
.lp .device .cap { text-align: center; font-size: var(--t-12); color: var(--muted); font-weight: 600; margin-top: 16px; }

/* ---- Stat row: real counts, opening the method section ---- */
.lp .stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap);
  padding-bottom: clamp(1.75rem, 3vw, 2.5rem); margin-bottom: clamp(1.75rem, 3vw, 2.5rem); border-bottom: 1px solid var(--line); }
.lp .stats .n { font-size: clamp(1.9rem, 1.2rem + 1.6vw, 2.75rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1; font-variant-numeric: tabular-nums; }
.lp .stats .l { font-size: var(--t-13); color: var(--muted); font-weight: 600; margin-top: 7px; }

/* ---- Six fields: two columns of wide cards. Content fills the card. ---- */
.lp .fields { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.lp .field { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 18px; align-items: start;
  padding: 22px 24px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card);
  transition: border-color var(--dur-1) var(--ease), transform var(--dur-1) var(--ease); }
.lp a.field:hover { border-color: var(--accent); transform: translateY(-2px); }
.lp .field .n { font-size: var(--t-28); font-weight: 800; letter-spacing: -0.04em; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.lp .field .name { display: block; font-size: var(--t-18); font-weight: 800; letter-spacing: 0.01em; }
.lp .field .tag { display: block; font-size: var(--t-14); color: var(--muted); font-weight: 500; margin-top: 4px; }
.lp .field .eg { display: block; font-size: var(--t-14); color: var(--ink-2); font-weight: 600; margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--line); line-height: 1.4; }
.lp .field.on { background: var(--drench); border-color: var(--drench); color: var(--on-drench); }
.lp .field.on .n { color: var(--primary); }
.lp .field.on .tag { color: var(--on-drench-muted); }
.lp .field.on .eg { color: var(--on-drench); border-top-color: var(--drench-line); }

/* ---- The chain, beside the screen that renders it ---- */
.lp .split { align-items: center; }
.lp .split .copy { grid-column: 1 / span 6; }
.lp .split .media { grid-column: 8 / span 5; }
.lp .ladder { list-style: none; position: relative; }
.lp .ladder::before { content: ''; position: absolute; left: 17px; top: 16px; bottom: 18px; width: 2px; background: var(--surface-3); }
.lp .ladder li { position: relative; padding: 0 0 20px 54px; }
.lp .ladder li:last-child { padding-bottom: 0; }
.lp .ladder .n { position: absolute; left: 0; top: -2px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%;
  background: var(--card); border: 2px solid var(--surface-3); font-size: var(--t-14); font-weight: 800; color: var(--muted); }
.lp .ladder li:last-child .n { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.lp .ladder .k { display: block; font-size: var(--t-12); font-weight: 800; letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--muted); }
.lp .ladder .v { display: block; font-size: var(--t-16); font-weight: 700; margin-top: 5px; line-height: 1.35; }
.lp .ladder .v.sm { font-size: var(--t-14); font-weight: 500; color: var(--ink-2); }
.lp .link-cta { display: inline-flex; align-items: center; gap: 9px; margin-top: 28px; font-weight: 800; font-size: var(--t-15);
  color: var(--primary-ink); border-bottom: 2px solid var(--primary); padding-bottom: 3px; }
.lp .link-cta:hover { gap: 14px; }
.lp .link-cta .ico { transition: transform var(--dur-2) var(--ease); }

/* ---- Ten dials as tiles, with the correction beside them ---- */
.lp .dials .tiles-col { grid-column: 1 / span 7; }
.lp .dials .panel-col { grid-column: 9 / span 4; }
.lp .dialtiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lp .tile-d { display: flex; align-items: center; gap: 12px; padding: 15px 16px; border-radius: var(--r-ctl);
  background: var(--card); border: 1px solid var(--line); font-size: var(--t-15); font-weight: 700; }
.lp .tile-d .n { font-size: var(--t-13); font-weight: 800; color: var(--muted-2); font-variant-numeric: tabular-nums; min-width: 20px; }
.lp .tile-d.on { background: var(--primary-soft); border: 2px solid var(--primary); color: var(--primary-ink); padding: 14px 15px; }
.lp .tile-d.on .n { color: var(--primary-ink); }
.lp .panel { background: var(--drench); color: var(--on-drench); border-radius: var(--r-card); padding: 26px 24px; }
.lp .panel .k { font-size: var(--t-12); font-weight: 800; letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--primary); }
.lp .panel .t { font-size: var(--t-22); font-weight: 800; letter-spacing: -0.02em; margin-top: 10px; }
.lp .panel .rule { height: 1px; background: var(--drench-line); margin: 20px 0; }
.lp .panel .lbl { font-size: var(--t-12); font-weight: 700; color: var(--on-drench-muted); }
.lp .panel .c { font-size: var(--t-15); font-weight: 600; line-height: 1.5; margin-top: 8px; }
.lp .panel .link-cta { color: var(--primary); border-color: var(--primary); margin-top: 22px; }

/* ---- The protocol ---- */
.lp .band { background: var(--drench); color: var(--on-drench); }
.lp .band .proof { border-top: 1px solid var(--drench-line); }
.lp .band .proof div { padding: 17px 0; border-bottom: 1px solid var(--drench-line); }
.lp .band .proof b { display: block; font-size: var(--t-16); font-weight: 800; }
.lp .band .proof span { display: block; color: var(--on-drench-muted); font-size: var(--t-14); font-weight: 500; margin-top: 4px; }
.lp .band .link-cta { color: var(--primary); border-color: var(--primary); }
.lp .png { border-radius: var(--r-card); overflow: hidden; background: #fff; box-shadow: 0 40px 80px -28px oklch(0 0 0 / .7); }
.lp .png img { width: 100%; height: auto; display: block; }
.lp .four { align-items: start; }
.lp .four .copy { grid-column: 1 / span 6; }
.lp .four .media { grid-column: 8 / span 5; }

/* ---- Four sports ---- */
.lp .plate { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.lp .plate .ph { border-radius: var(--r-card); overflow: hidden; background: var(--surface-2); }
.lp .plate .ph img { width: 100%; display: block; aspect-ratio: 4 / 3; object-fit: cover; }
.lp .plate .cap { display: flex; align-items: baseline; gap: 10px; padding-top: 13px; }
.lp .plate .cap b { font-size: var(--t-16); font-weight: 800; }
.lp .plate .cap .n { margin-left: auto; font-size: var(--t-13); color: var(--muted); font-weight: 600; }

/* ---- Footer ---- */
.lp .foot { border-top: 1px solid var(--line); padding-block: clamp(3rem, 5vw, 4.5rem) calc(var(--pocbar-h) + var(--s-6)); }
.lp .foot .cols { row-gap: var(--s-6); }
.lp .foot .about { grid-column: 1 / span 4; }
.lp .foot .col:nth-of-type(2) { grid-column: 6 / span 2; }
.lp .foot .col:nth-of-type(3) { grid-column: 8 / span 2; }
.lp .foot .col:nth-of-type(4) { grid-column: 10 / span 3; }
.lp .foot h4 { font-size: var(--t-11); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.lp .foot a { display: block; padding: 5px 0; color: var(--ink-2); font-weight: 600; font-size: var(--t-14); }
.lp .foot a:hover { color: var(--primary-ink); }
.lp .foot .fine { color: var(--muted); font-size: var(--t-13); line-height: 1.65; max-width: 42ch; margin-top: 14px; }
.lp .foot .fine a { display: inline; padding: 0; text-decoration: underline; text-underline-offset: 3px; }

/* ---- One orchestrated load on the fold; scroll reveals are handled by .rv ---- */
@media (prefers-reduced-motion: no-preference) {
  .lp .hero .copy > *, .lp .hero .live { animation: rise 460ms var(--ease-out) backwards; }
  .lp .hero .copy > *:nth-child(1) { animation-delay: 40ms; }
  .lp .hero .copy > *:nth-child(2) { animation-delay: 110ms; }
  .lp .hero .copy > *:nth-child(3) { animation-delay: 180ms; }
  .lp .hero .copy > *:nth-child(4) { animation-delay: 250ms; }
  .lp .hero .live { animation-delay: 200ms; animation-duration: 560ms; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}

/* ---- Responsive: the spine holds, the right column folds under it ---- */
@media (max-width: 1080px) {
  .lp .hero .copy { grid-column: 1 / span 8; }
  .lp .hero .live { display: none; }
  .lp .split .copy, .lp .four .copy { grid-column: 1 / span 7; }
  .lp .split .media, .lp .four .media { grid-column: 9 / span 4; }
  .lp .dials .tiles-col { grid-column: 1 / span 6; }
  .lp .dials .panel-col { grid-column: 8 / span 5; }
}
@media (max-width: 900px) {
  .lp .hero .copy { grid-column: 1 / -1; }
  .lp .split .copy, .lp .four .copy, .lp .dials .tiles-col { grid-column: 1 / -1; }
  .lp .split .media, .lp .four .media, .lp .dials .panel-col { grid-column: 1 / -1; margin-top: var(--s-6); }
  .lp .fields { grid-template-columns: 1fr; }
  .lp .plate { grid-template-columns: 1fr 1fr; row-gap: var(--s-5); }
  .lp .foot .about { grid-column: 1 / -1; }
  .lp .foot .col:nth-of-type(2), .lp .foot .col:nth-of-type(3), .lp .foot .col:nth-of-type(4) { grid-column: span 4; }
}
@media (max-width: 640px) {
  .lp .topnav .links a:not(.cta) { display: none; }
  .lp .hero h1 { font-size: clamp(1.95rem, 8.6vw, 2.5rem); }
  .lp .hero .lead { font-size: var(--t-15); }
  .lp .hero .lead .more { display: none; }
  .lp .roleband { grid-template-columns: 1fr 1fr; gap: 8px; }
  .lp .rolebtn { padding: 12px; gap: 10px; } .lp .rolebtn .ico { width: 17px; height: 17px; }
  .lp .rolebtn b { font-size: var(--t-13); } .lp .rolebtn span span { display: none; }
  .lp .stats { grid-template-columns: 1fr 1fr; row-gap: var(--s-5); }
  .lp .dialtiles { grid-template-columns: 1fr; }
  .lp .plate { grid-template-columns: 1fr; }
  .lp .device { --fit: .52; } .lp .device .live-wrap { height: calc(844px * .52); }
  .lp .foot .col:nth-of-type(2), .lp .foot .col:nth-of-type(3), .lp .foot .col:nth-of-type(4) { grid-column: span 6; }
}

/* Hub and assumptions */
.hub .head { padding: var(--s-8) 0 var(--s-5); }
.hub section { padding-block: var(--section-tight); }
.hub .scr { display: flex; gap: var(--s-3); align-items: flex-start; padding: 12px 16px; border-bottom: var(--rule); }
.hub .scr:last-child { border-bottom: 0; }
.hub .scr .file { font-family: var(--font-mono); font-size: var(--t-11); color: var(--muted-2); display: block; margin-top: 2px; }
.hub .tag-module { font-family: var(--font-mono); font-size: 10px; padding: 2px 6px; border: var(--rule); border-radius: var(--r-full); color: var(--muted); }
.hub .modrow tr:target td { background: var(--primary-soft); }
.hub table { font-size: var(--t-14); } .hub th { text-align: left; font-size: var(--t-11); text-transform: uppercase; letter-spacing: var(--tracking-caps); color: var(--muted); padding: 10px 12px; border-bottom: var(--rule-ctl); }
.hub td { padding: 10px 12px; border-bottom: var(--rule); vertical-align: top; }
.doc { max-width: 760px; }
.doc h2 { font-size: var(--t-24); margin-top: var(--s-7); }
.doc h3 { font-size: var(--t-16); margin-top: var(--s-5); }
.doc p, .doc li { font-size: var(--t-15); line-height: 1.6; color: var(--ink-2); font-weight: 500; }
.doc ul { padding-left: 20px; margin-top: 8px; } .doc li + li { margin-top: 6px; }
.doc table { font-size: var(--t-14); margin-top: var(--s-4); } .doc th { text-align: left; padding: 8px 10px; border-bottom: var(--rule-ctl); font-size: var(--t-12); text-transform: uppercase; letter-spacing: var(--tracking-caps); color: var(--muted); }
.doc td { padding: 8px 10px; border-bottom: var(--rule); vertical-align: top; }
.site-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); padding: var(--s-4) 0; border-bottom: var(--rule); }
.site-head .wm { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: var(--t-16); } .site-head .wm img { width: 32px; height: 32px; } .site-head .wm b { color: var(--primary-ink); }
.site-head nav { display: flex; gap: 4px; } .site-head nav a { padding: 8px 12px; border-radius: var(--r-full); font-size: var(--t-13); font-weight: 700; color: var(--muted); } .site-head nav a:hover, .site-head nav a[aria-current] { background: var(--surface-2); color: var(--ink); }
/* Phone-width landing: the fold must still hold the headline, the lead and the role band. */
.lp .topnav .links a.cta { white-space: nowrap; }
@media (max-width: 600px) {
  .lp .topnav .links a:not(.cta) { display: none; }
  .lp .topnav .wm { font-size: var(--t-16); }
  .lp .hero .in { padding-block: calc(var(--s-8) + 8px) calc(var(--pocbar-h) + var(--s-4)); gap: 0; }
  .lp .hero .d-display { font-size: clamp(1.9rem, 9.2vw, 2.4rem); }
  .lp .hero .lead { font-size: var(--t-15); line-height: 1.5; }
  .lp .hero .lead .more { display: none; }
  .lp .roleband { grid-template-columns: 1fr 1fr; gap: 8px; }
  .lp .rolebtn { padding: 12px 12px; gap: 10px; }
  .lp .rolebtn .ico { width: 18px; height: 18px; }
  .lp .rolebtn b { font-size: var(--t-13); }
  .lp .rolebtn > span > span { display: none; }
  .lp .kicker.mt-7 { margin-top: var(--s-5); }
}
