/* appdev.jaszberenyi.com — one stylesheet for the studio home, the app pages and the text pages.

   Family: this site shares its look with jaszberenyi.com (trapie/jaszberenyi-webpage) and
   thesuitwhobuilds.com (trapie/thesuitwhobuilds-site): Playfair Display / Inter / JetBrains Mono,
   a sticky glass nav with the IJ monogram, pill buttons, mono eyebrows and kickers, serif
   headlines, graph paper, a drawing sheet with a title block.
   - Daylight side (studio home, privacy, support, 404) = jaszberenyi.com: warm paper, ink,
     blueprint navy, amber / coral / teal.
   - Night side (the app landing pages) = The Suit Who Builds: charcoal, chalk, thin stripes.
     Each app keeps its own world on top of it: Ground Control the night sky and runway lights,
     Rocky Courier the warm cave.

   House rules that differ from the two sibling sites, because the apps are "Data Not Collected":
   - no third-party request of any kind: the three fonts are self-hosted (assets/fonts/, SIL OFL),
     and public/_headers enforces it with a self-only Content-Security-Policy;
   - no JavaScript: every effect here is CSS, and every one has a prefers-reduced-motion off-switch;
   - no inline style attributes (the CSP has no 'unsafe-inline').
   Performance rules carried over: glows are radial-gradients, never filter: blur(); only
   transform/opacity animate. */

@font-face { font-family: "Inter"; src: url("/assets/fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Playfair Display"; src: url("/assets/fonts/playfair-display.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Playfair Display"; src: url("/assets/fonts/playfair-display-italic.woff2") format("woff2"); font-weight: 400 900; font-style: italic; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; src: url("/assets/fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 100 800; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

@property --angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }

:root {
  /* Family palette (jaszberenyi.com) */
  --paper: #F3EFE6;
  --paper-2: #EBE6DB;
  --navy: #1B3A5B;
  --navy-2: #2C5A86;
  --amber: #F2A516;
  --coral: #E5546A;
  --teal: #14A39A;
  --teal-d: #0B7A73;
  /* The Suit Who Builds palette (night side) */
  --char: #1E2126;
  --char-2: #262A31;
  --char-line: #3A3F47;
  --chalk: #F4F1EA;
  --green: #4ADE80;

  /* Theme slots: daylight defaults; body.night and the app themes override them. */
  --bg: var(--paper);
  --surface: #FBF9F4;
  --line: #DCD5C8;
  --ink: #1E2126;
  --text: #3A3F47;
  --muted: #676D75;
  --hi: var(--coral);           /* kickers, highlights */
  --btn: var(--navy);           /* primary button */
  --btn-2: var(--navy-2);
  --btn-ink: var(--paper);
  --link: var(--navy);
  --grid-line: rgba(27, 58, 91, .045);

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 20px;
  --wrap: 1200px;
  --gutter: 24px;
  --nav-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 8px); -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background-color: var(--bg);
  /* faint engineering graph paper */
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 24px 24px;
  color: var(--text);
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); }
h1, h2, h3 { color: var(--ink); margin: 0 0 .5em; line-height: 1.12; }
h1 { font: 700 clamp(44px, 7vw, 88px)/1 var(--serif); letter-spacing: -.02em; }
h2 { font: 700 clamp(32px, 5vw, 54px)/1.06 var(--serif); letter-spacing: -.015em; text-wrap: balance; }
h3 { font: 600 19px/1.35 var(--sans); }
p { margin: 0 0 1em; text-wrap: pretty; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }
.serif { font-family: var(--serif); font-weight: 700; color: var(--ink); }
.mono { font-family: var(--mono); font-weight: 700; color: var(--navy); }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--text); max-width: 52ch; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: var(--paper); padding: 10px 16px; border-radius: 10px; z-index: 200; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 8px; }

/* ── Page chrome ───────────────────────────────────────────────────────── */
/* Reading progress: CSS scroll timeline only (no JS); browsers without it simply do not show it. */
.progress { display: none; }
@supports (animation-timeline: scroll()) {
  .progress { display: block; position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 120; transform-origin: 0 50%; transform: scaleX(0);
    background: linear-gradient(90deg, var(--navy), var(--teal), var(--amber), var(--coral)); animation: grow-x linear both; animation-timeline: scroll(root); }
}
@keyframes grow-x { to { transform: scaleX(1); } }
.grain { position: fixed; inset: 0; z-index: 110; pointer-events: none; opacity: .05; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ── Buttons ───────────────────────────────────────────────────────────── */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 14px 24px; border-radius: 999px; border: 0; cursor: pointer;
  font: 600 16px/1 var(--sans); text-decoration: none; white-space: nowrap; isolation: isolate; overflow: hidden;
  transition: transform .35s var(--spring), box-shadow .3s var(--ease), background .3s, color .3s, border-color .3s;
}
.btn:active { transform: scale(.96); }
.btn-main { background: var(--btn); color: var(--btn-ink); box-shadow: 0 12px 30px -12px color-mix(in srgb, var(--btn) 75%, transparent); }
.btn-main::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .35) 48%, transparent 66%); transform: translateX(-120%);
  animation: sweep 4.2s 2s var(--ease) infinite; }
.btn-main:hover::after { animation-duration: 1.1s; animation-delay: 0s; }
@keyframes sweep { 0%, 60% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
a.btn-main:hover { background: var(--btn-2); }
.btn-ghost { color: var(--ink); border: 1.5px solid var(--line); background: color-mix(in srgb, var(--surface) 70%, transparent); }
.btn-ghost:hover { border-color: var(--link); color: var(--link); }
.btn .arrow { display: inline-block; transition: transform .35s var(--spring); }
.btn-ghost:hover .arrow { transform: translate(3px, 3px); }
.btn-ghost:hover .arrow.ne { transform: translate(3px, -3px); }
.btn-soon { cursor: default; }
.btn-sm { min-height: 42px; padding: 10px 18px; font-size: 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 0; }

/* ── Nav ───────────────────────────────────────────────────────────────── */
.nav { position: sticky; top: 0; z-index: 100; height: var(--nav-h); border-bottom: 1px solid color-mix(in srgb, var(--line) 90%, transparent);
  background: color-mix(in srgb, var(--bg) 84%, transparent); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); }
.nav-inner { display: flex; align-items: center; gap: 18px; height: 100%; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand-mark { flex: none; width: 42px; height: 42px; border-radius: 12px; transition: transform .5s var(--spring); }
.brand:hover .brand-mark { transform: rotate(-10deg) scale(1.1); }
.brand-text { font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-text .mono { font-size: 13px; text-transform: uppercase; letter-spacing: .14em; }
.nav-links { display: flex; gap: 4px; margin-left: auto; padding: 5px; border-radius: 999px; background: color-mix(in srgb, var(--surface) 70%, transparent); border: 1px solid var(--line); }
.nav-links a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: 14.5px; padding: 8px 14px; border-radius: 999px; transition: color .25s, background .25s; }
.nav-links a:hover { color: var(--ink); background: color-mix(in srgb, var(--link) 9%, transparent); }
.nav-links a[aria-current="page"] { color: var(--link); background: color-mix(in srgb, var(--link) 12%, transparent); }
.nav-cta { flex: none; }
.nav-inner > .brand + .nav-cta { margin-left: auto; }

/* ── Shared bits ───────────────────────────────────────────────────────── */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 600 12px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--link);
  background: color-mix(in srgb, var(--link) 8%, transparent); border: 1px solid color-mix(in srgb, var(--link) 24%, transparent); padding: 10px 15px; border-radius: 999px; margin-bottom: 26px; }
.dot { position: relative; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: ping 1.8s infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .6; } 80%, 100% { transform: scale(3.2); opacity: 0; } }
.kicker { font: 700 14px var(--mono); color: var(--hi); letter-spacing: .04em; margin-bottom: 14px; }
.pop { opacity: 0; transform: translateY(18px); animation: pop-in .9s var(--ease) forwards; }
.pop.d1 { animation-delay: .1s; } .pop.d2 { animation-delay: .2s; } .pop.d3 { animation-delay: .3s; } .pop.d4 { animation-delay: .4s; } .pop.d5 { animation-delay: .5s; }
@keyframes pop-in { to { opacity: 1; transform: none; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.chips li { padding: 7px 13px; border-radius: 999px; background: color-mix(in srgb, var(--surface) 70%, transparent); border: 1px solid var(--line); font: 600 12.5px var(--mono); letter-spacing: .02em; color: var(--muted); }

.section { padding: 110px 0; position: relative; }
.section.tight { padding-top: 24px; }
.section-alt { background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--paper-2) 92%, transparent) 8%, color-mix(in srgb, var(--paper-2) 92%, transparent) 92%, transparent); }
.section-head { max-width: 700px; margin-bottom: 48px; }

.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
@media (min-width: 900px) { .grid.three { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 760px) { .grid.two { grid-template-columns: repeat(2, 1fr); } }
.card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  transition: transform .45s var(--spring), border-color .35s, box-shadow .35s; }
.card:hover { transform: translateY(-6px); border-color: var(--hi); box-shadow: 0 26px 50px -30px color-mix(in srgb, var(--hi) 70%, transparent); }
.card p:last-child { margin-bottom: 0; }
.card .icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: color-mix(in srgb, var(--hi) 16%, transparent); color: var(--hi); margin-bottom: 16px; }
.card .icon svg { width: 24px; height: 24px; }
.card h3 { font: 700 22px/1.2 var(--serif); }

/* ── Footer ────────────────────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--line); padding: 34px 0 44px; font-size: 14px; color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 14px 32px; justify-content: space-between; align-items: center; }
.footer p { margin: 0; }
.footer .serif { font-size: 15px; }
.footer .mono { font-size: 11.5px; text-transform: uppercase; letter-spacing: .14em; }
.flinks { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--ink); text-decoration: underline; }
.fnote { flex-basis: 100%; font: 500 12px/1.6 var(--mono); letter-spacing: .02em; }
.fnote a { text-decoration: underline; }

/* ════════════════════════════════════════════════════════════════════════
   DAYLIGHT — studio home
   ════════════════════════════════════════════════════════════════════════ */
.hero { position: relative; padding: 72px 0 96px; overflow: hidden; }
.aurora { position: absolute; inset: 0; pointer-events: none; -webkit-mask-image: linear-gradient(#000 65%, transparent); mask-image: linear-gradient(#000 65%, transparent); }
.aurora i { position: absolute; border-radius: 50%; will-change: transform; animation: drift 20s ease-in-out infinite alternate; }
.aurora .a1 { width: 70vmax; height: 70vmax; right: -30vmax; top: -38vmax; background: radial-gradient(circle, rgba(20, 163, 154, .16), transparent 60%); }
.aurora .a2 { width: 60vmax; height: 60vmax; left: -30vmax; bottom: -36vmax; background: radial-gradient(circle, rgba(242, 165, 22, .18), transparent 60%); animation-duration: 24s; }
.aurora .a3 { width: 40vmax; height: 40vmax; left: 38%; top: 30%; background: radial-gradient(circle, rgba(229, 84, 106, .10), transparent 62%); animation-duration: 28s; }
@keyframes drift { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-5vmax, 3vmax) scale(1.08); } 100% { transform: translate(3vmax, -2vmax) scale(.94); } }

.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.hero-copy { min-width: 0; }
.lockup { margin: 0 0 26px; display: flex; flex-direction: column; }
.lockup .l1, .lockup .l2 { display: block; }
.lockup .l1 { font-style: italic; font-weight: 500; color: var(--navy); }
.lockup .rule { display: block; height: 2px; width: min(560px, 100%); margin: 24px 0 16px; transform-origin: left;
  background: linear-gradient(90deg, var(--amber), var(--coral) 30%, rgba(27, 58, 91, 0)); animation: grow 1.2s .55s var(--ease) both; }
@keyframes grow { from { transform: scaleX(0); } }
.lockup .verbs { font: 700 clamp(12px, 1.35vw, 16px)/1.5 var(--mono); letter-spacing: .16em; color: var(--teal-d); }
.caret { display: inline-block; width: .55em; height: .9em; background: var(--teal); vertical-align: -.1em; margin-left: .12em; animation: caret 1.05s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.proof { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; padding: 0; margin: 30px 0 0; font: 500 13px var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.proof b { color: var(--navy); font-size: 15px; margin-right: 4px; }
.proof li + li::before { content: "/"; margin-right: 22px; color: var(--line); }

/* The drawing sheet (the family's signature: a mechanical engineer's title block) */
.hero-visual { position: relative; min-width: 0; }
.sheet { position: relative; z-index: 2; border-radius: var(--radius); overflow: hidden; color: #DCE6F0;
  background-color: var(--navy);
  background-image: linear-gradient(to right, rgba(255, 255, 255, .07) 1px, transparent 1px), linear-gradient(to bottom, rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 22px 22px;
  box-shadow: 0 40px 80px -34px rgba(27, 58, 91, .75), 0 0 0 6px var(--surface), 0 0 0 7px var(--line); }
.sheet::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 2px; pointer-events: none; z-index: 3;
  background: conic-gradient(from var(--angle), var(--amber), transparent 25%, var(--teal) 50%, transparent 75%, var(--amber));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spin-angle 7s linear infinite; }
@keyframes spin-angle { to { --angle: 360deg; } }
.sheet-head { display: flex; justify-content: space-between; gap: 12px; padding: 13px 18px; font: 700 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; border-bottom: 1px solid rgba(255, 255, 255, .22); }
.sheet-a { color: var(--amber); }
.sheet-body { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 26px; padding: 52px 34px 30px; }
.sheet-app { position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; text-decoration: none; color: #fff; font: 700 13px var(--mono); letter-spacing: .06em; text-transform: uppercase; text-align: center; }
.sheet-app img { width: 100%; max-width: 168px; aspect-ratio: 1; border-radius: 22%; border: 2px solid rgba(255, 255, 255, .85); box-shadow: 0 24px 40px -18px rgba(0, 0, 0, .7); transition: transform .5s var(--spring); }
.sheet-app:hover img { transform: rotate(-4deg) scale(1.05); }
.sheet-app b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--chalk); font-size: 12px; background: var(--navy); }
.dim { position: absolute; left: 34px; right: 34px; top: 18px; display: flex; align-items: center; gap: 8px; font: 700 11px var(--mono); color: var(--amber); }
.dim i { flex: 1; height: 1px; background: currentColor; position: relative; }
.dim i:first-child::before, .dim i:last-child::after { content: ""; position: absolute; top: -4px; width: 1px; height: 9px; background: currentColor; }
.dim i:first-child::before { left: 0; } .dim i:last-child::after { right: 0; }
.tblock { margin: 0 18px; display: grid; grid-template-columns: 1fr 1fr; border: 1px solid rgba(255, 255, 255, .45); }
.tblock div { padding: 7px 10px; border: 1px solid rgba(255, 255, 255, .22); min-width: 0; }
.tblock dt { font: 700 9.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: rgba(220, 230, 240, .7); }
.tblock dd { margin: 2px 0 0; font: 600 13px/1.3 var(--sans); color: #fff; overflow-wrap: anywhere; }
.sheet-foot { margin: 0; padding: 10px 18px 14px; font: 500 11px var(--mono); color: rgba(220, 230, 240, .7); letter-spacing: .04em; }

/* App cards */
.apps { display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.app-card { position: relative; display: block; border-radius: 28px; overflow: hidden; text-decoration: none; color: #fff; min-height: 400px;
  border: 1px solid var(--line); box-shadow: 0 40px 80px -44px rgba(30, 33, 38, .55), 0 0 0 8px var(--surface);
  transition: transform .45s var(--spring), box-shadow .35s; }
.app-card:hover { transform: translateY(-8px) rotate(-.6deg); box-shadow: 0 50px 90px -44px rgba(30, 33, 38, .65), 0 0 0 8px var(--surface); }
.app-card img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform .8s var(--ease); }
.app-card:hover img.bg { transform: scale(1.07); }
.app-card .shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .05) 20%, rgba(14, 16, 20, .9)); }
.app-card .tag { position: absolute; left: 18px; top: 18px; font: 800 11.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; padding: 6px 10px; border-radius: 8px; background: #FBBF24; color: #2B1E02; }
.app-card .info { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px; display: flex; gap: 18px; align-items: flex-end; }
.app-card .info img { flex: none; width: 76px; height: 76px; border-radius: 18px; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .8); }
.app-card .meta { font: 600 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .72); margin-bottom: 6px; }
.app-card h3 { font: 700 30px/1.05 var(--serif); color: #fff; margin: 0 0 6px; }
.app-card p { margin: 0; color: rgba(255, 255, 255, .84); font-size: 16px; }
.app-card .go { position: absolute; right: 22px; top: 18px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--ink); font-weight: 700;
  transform: scale(.6); opacity: 0; transition: transform .45s var(--spring), opacity .3s; }
.app-card:hover .go { transform: none; opacity: 1; }

/* Values band */
.values { padding: 72px 0; background: var(--ink); color: var(--chalk); position: relative; overflow: hidden; }
.values::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(to right, rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(to bottom, rgba(255, 255, 255, .04) 1px, transparent 1px); background-size: 24px 24px; }
.vgrid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.val .n { display: block; font: 700 clamp(44px, 6vw, 72px)/1 var(--serif); margin-bottom: 12px; color: var(--chalk); }
.val:nth-child(1) .n { color: #8FB3D9; } .val:nth-child(2) .n { color: var(--teal); }
.val:nth-child(3) .n { color: var(--amber); } .val:nth-child(4) .n { color: var(--coral); }
.val .l { display: block; font: 500 12.5px/1.5 var(--mono); color: #9AA3AD; text-transform: uppercase; letter-spacing: .08em; max-width: 24ch; margin: 0 auto; }

/* Family band: the two sibling sites, each in its own colours */
.family { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.fcard { position: relative; display: flex; flex-direction: column; gap: 10px; min-height: 250px; padding: 32px; border-radius: 28px; text-decoration: none; overflow: hidden;
  transition: transform .45s var(--spring), box-shadow .35s, border-color .35s; }
.fcard:hover { transform: translateY(-6px); }
.fcard .fk { font: 700 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.fcard h3 { font: 700 clamp(28px, 3vw, 38px)/1.08 var(--serif); margin: 0; }
.fcard p { margin: 0; max-width: 44ch; }
.fcard .fgo { margin-top: auto; padding-top: 10px; font: 700 13px var(--mono); letter-spacing: .04em; }
.fcard-me { background: radial-gradient(500px circle at 100% 0%, rgba(242, 165, 22, .18), transparent 60%), var(--surface); border: 1px solid var(--line); color: var(--text); }
.fcard-me .fk { color: var(--coral); } .fcard-me .fgo { color: var(--navy); }
.fcard-me:hover { border-color: var(--navy); box-shadow: 0 30px 60px -34px rgba(27, 58, 91, .6); }
.fcard-tswb { background-color: var(--char); background-image: repeating-linear-gradient(to right, #252930 0 1px, transparent 1px 16px); border: 1px solid var(--char-line); color: #D9DCE0; }
.fcard-tswb h3 { color: var(--chalk); }
.fcard-tswb .fk, .fcard-tswb .fgo { color: var(--green); }
.fcard-tswb:hover { border-color: var(--green); box-shadow: 0 30px 70px -30px rgba(74, 222, 128, .45); }
.fcard-tswb .prompt { font: 600 14px var(--mono); color: #9AA3AD; }
.fcard-tswb .prompt span { color: var(--green); }

/* ════════════════════════════════════════════════════════════════════════
   TEXT PAGES (privacy, support) and 404 — daylight
   ════════════════════════════════════════════════════════════════════════ */
.doc { max-width: 760px; margin: 56px auto 80px; padding: 44px clamp(22px, 5vw, 56px) 48px; background: var(--surface); border: 1px solid var(--line); border-radius: 28px;
  box-shadow: 0 40px 90px -60px rgba(30, 33, 38, .5); }
.doc-tag { display: inline-flex; align-items: center; gap: 10px; font: 700 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--hi); margin-bottom: 18px; }
.doc-tag img { width: 30px; height: 30px; border-radius: 8px; }
.doc h1 { font-size: clamp(34px, 5vw, 50px); line-height: 1.06; }
.doc h2 { font: 700 24px/1.2 var(--serif); margin-top: 1.7em; }
.doc .updated { font: 500 13px var(--mono); color: var(--muted); letter-spacing: .02em; }
.doc a { color: var(--link); text-underline-offset: 3px; }
.doc .qa { background: var(--bg); border: 1px solid var(--line); border-left: 4px solid var(--hi); border-radius: 14px; padding: 16px 20px; margin: 0 0 12px; }
.doc .qa strong { display: block; margin-bottom: 4px; color: var(--ink); }

.nf { min-height: calc(100svh - var(--nav-h)); display: flex; align-items: center; padding-block: 60px; }
.nf h1 { font-size: clamp(48px, 8vw, 96px); max-width: 14ch; }
.nf .kicker { font-size: 15px; }

/* ════════════════════════════════════════════════════════════════════════
   NIGHT SIDE — app landing pages (The Suit Who Builds palette + the app's world)
   ════════════════════════════════════════════════════════════════════════ */
body.night {
  --bg: var(--char);
  --surface: var(--char-2);
  --line: var(--char-line);
  --ink: var(--chalk);
  --text: #D9DCE0;
  --muted: #9AA3AD;
  --link: var(--green);
  --hi: var(--green);
  --btn: var(--green);
  --btn-2: #6BEA9B;
  --btn-ink: #0F2418;
  color-scheme: dark;
  background-image: repeating-linear-gradient(to right, #23262C 0 1px, transparent 1px 16px);
  background-size: auto;
}
body.night .grain { mix-blend-mode: overlay; opacity: .07; }
body.night .mono { color: var(--hi); }
body.night .section-alt { background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--surface) 70%, transparent) 8%, color-mix(in srgb, var(--surface) 70%, transparent) 92%, transparent); }
body.night .card:hover { box-shadow: 0 28px 70px -26px color-mix(in srgb, var(--hi) 45%, transparent); }
body.night .progress { background: linear-gradient(90deg, var(--hi), var(--btn-2)); }

.app-hero { position: relative; padding: 64px 0 96px; overflow: hidden; isolation: isolate; }
/* The app's sky / cave glow, faded out at the bottom so it melts into the page. */
.app-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: var(--hero-bg, none);
  -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
.app-hero .hero-grid { grid-template-columns: 1fr 1.2fr; }
.app-icon { width: 104px; height: 104px; border-radius: 24px; box-shadow: 0 16px 40px -14px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .08); margin-bottom: 24px; }
.app-hero h1 .glow { -webkit-background-clip: text; background-clip: text; color: transparent; }

.device { border-radius: 28px; padding: 12px; background: linear-gradient(145deg, #2a2f3a, #0d0f14); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .75), inset 0 0 0 1px rgba(255, 255, 255, .08);
  transition: transform .6s var(--ease); }
.app-hero .device { transform: perspective(1400px) rotateY(-6deg) rotateX(2deg); }
.app-hero .device:hover { transform: none; }
.device img { border-radius: 18px; }

.gallery { display: grid; gap: 26px; grid-template-columns: 1fr; }
@media (min-width: 820px) { .gallery { grid-template-columns: 1fr 1fr; } }
.gallery figure { margin: 0; }
.gallery figcaption { margin-top: 14px; color: var(--muted); font-size: 15px; }
.gallery figcaption b { font: 700 12px var(--mono); color: var(--hi); letter-spacing: .08em; margin-right: 8px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { text-align: center; padding: 26px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.stat b { display: block; font: 700 clamp(40px, 5vw, 60px)/1 var(--serif); letter-spacing: -.02em; margin-bottom: 10px; color: var(--chalk); }
.stat:nth-child(1) b { color: var(--hi); } .stat:nth-child(2) b { color: #8FB3D9; }
.stat:nth-child(3) b { color: var(--teal); } .stat:nth-child(4) b { color: var(--coral); }
.stat span { display: block; font: 500 12px/1.5 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }

.endband { position: relative; padding: 52px; border-radius: 32px; background:
  radial-gradient(600px circle at 0% 0%, color-mix(in srgb, var(--hi) 18%, transparent), transparent 60%), radial-gradient(500px circle at 100% 100%, rgba(255, 255, 255, .05), transparent 60%), var(--surface);
  border: 1px solid var(--line); }
.endband::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 2px; pointer-events: none;
  background: conic-gradient(from var(--angle), var(--hi), transparent 25%, rgba(255, 255, 255, .5) 50%, transparent 75%, var(--hi));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: spin-angle 8s linear infinite; }
.endband h2 { margin-bottom: 28px; }
.endband h3 { font: 700 24px/1.2 var(--serif); color: var(--hi); }
.endband .card { background: color-mix(in srgb, var(--bg) 60%, transparent); }

/* ── Ground Control ────────────────────────────────────────────────────── */
body.gc.night { --hi: #FFD23F; --btn: #FFD23F; --btn-2: #FFE07A; --btn-ink: #141000; --link: #9CC9FF; }
body.gc .app-hero { --hero-bg:
  radial-gradient(900px 480px at 85% 10%, rgba(64, 132, 255, .32), transparent 60%),
  radial-gradient(700px 420px at 0% 100%, rgba(255, 186, 60, .16), transparent 65%),
  linear-gradient(180deg, #0A1736 0%, rgba(30, 33, 38, 0) 100%); }
/* Runway edge lights along the bottom of the hero, chasing like an approach light row. */
body.gc .app-hero::after { content: ""; position: absolute; left: -46px; right: -46px; bottom: 22px; height: 6px;
  background: repeating-linear-gradient(90deg, rgba(255, 214, 102, .95) 0 6px, transparent 6px 46px); opacity: .8;
  animation: runway 2.4s linear infinite; }
@keyframes runway { to { transform: translateX(46px); } }
body.gc .app-hero h1 .glow { background-image: linear-gradient(90deg, #fff 0%, #FFE28A 55%, #FFB547 100%); }
body.gc .eyebrow { color: #FFD23F; background: rgba(255, 210, 63, .08); border-color: rgba(255, 210, 63, .3); }
body.gc .dot { background: #4BE38A; }

/* Airport signs: yellow taxiway-style direction signs. */
.signs { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .signs { gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 960px) { .signs { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.sign { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 10px; background: #FFD23F; color: #111; box-shadow: inset 0 0 0 3px #111, 0 10px 24px -14px rgba(255, 210, 63, .7);
  transition: transform .4s var(--spring); }
.sign:hover { transform: translateY(-4px) rotate(-1deg); }
.sign b { font: 800 1.45rem/1 var(--mono); background: #111; color: #FFD23F; padding: 6px 8px; border-radius: 6px; letter-spacing: .04em; }
.sign span { font-weight: 700; line-height: 1.2; font-size: .95rem; min-width: 0; overflow-wrap: anywhere; }
.sign small { display: block; font-weight: 600; opacity: .7; font-size: .78rem; }
.sign.free { background: #4BE38A; box-shadow: inset 0 0 0 3px #111, 0 10px 24px -14px rgba(75, 227, 138, .7); }
.sign.free b { color: #4BE38A; }
@media (max-width: 480px) { .sign { padding: 10px; gap: 8px; } .sign b { font-size: 1.1rem; padding: 5px 6px; } .sign span { font-size: .85rem; } }

/* ── Rocky Courier ─────────────────────────────────────────────────────── */
body.rc.night { --bg: #1E1A16; --surface: #2A231C; --line: #46392B; --hi: #F5A524; --btn: #F5A524; --btn-2: #FFC35A; --btn-ink: #261600; --link: #FFC977; --muted: #C2B39E;
  background-image: repeating-linear-gradient(to right, #241F1A 0 1px, transparent 1px 16px); }
body.rc .app-hero { --hero-bg:
  radial-gradient(800px 420px at 80% 20%, rgba(255, 170, 60, .30), transparent 60%),
  radial-gradient(700px 380px at 0% 100%, rgba(92, 184, 92, .22), transparent 60%),
  linear-gradient(180deg, #2A1D10 0%, rgba(30, 26, 22, 0) 100%); }
body.rc .app-hero h1 .glow { background-image: linear-gradient(90deg, #FFF4E0, #FFC35A 60%, #8FD16A); }
body.rc .eyebrow { color: #FFC35A; background: rgba(245, 165, 36, .08); border-color: rgba(245, 165, 36, .3); }
body.rc .dot { background: #8FD16A; }
.worlds { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.world { position: relative; overflow: hidden; border-radius: 18px; padding: 18px; color: #fff; min-height: 120px; display: flex; flex-direction: column; justify-content: flex-end;
  font: 700 20px/1.1 var(--serif); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); transition: transform .45s var(--spring); }
.world:hover { transform: translateY(-6px) rotate(-1deg); }
.world small { font: 700 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; opacity: .85; margin-bottom: 6px; }
.w-moss { background: linear-gradient(135deg, #3F7D3A, #7BBF5A); }
.w-sand { background: linear-gradient(135deg, #A8662C, #E2A75C); }
.w-ice { background: linear-gradient(135deg, #3B7CA8, #9FD8F2); }
.w-fire { background: linear-gradient(135deg, #9B2A14, #F07A2A); }
.w-crystal { background: linear-gradient(135deg, #3B2A6E, #9A6FF0); }

/* Text pages carry the app's accent on paper (darkened for AA contrast on paper). */
body.gc.doc-page { --hi: #8A6100; }
body.rc.doc-page { --hi: #9A5300; }

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .hero-grid, .app-hero .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero-visual { max-width: 560px; }
  .vgrid, .stats { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .family { grid-template-columns: 1fr; }
  .section { padding: 88px 0; }
  .app-hero .device { transform: none; }
}
@media (max-width: 760px) {
  :root { --gutter: 16px; --nav-h: 64px; }
  .nav-links { display: none; }
  .brand-mark { width: 38px; height: 38px; }
  .brand-text { font-size: 16px; }
  .brand-text .mono { display: none; }
  .hero, .app-hero { padding: 40px 0 72px; }
  .sheet-body { padding: 48px 20px 24px; gap: 18px; }
  .dim { left: 20px; right: 20px; }
  .tblock { margin: 0 12px; }
  .app-card { min-height: 340px; }
  .app-card .info { padding: 20px; gap: 14px; }
  .app-card .info img { width: 60px; height: 60px; border-radius: 14px; }
  .app-card h3 { font-size: 25px; }
  .fcard { padding: 26px 22px; min-height: 0; }
  .endband { padding: 32px 20px; }
  .doc { margin: 24px 12px 56px; border-radius: 22px; }
  .stat { padding: 20px 12px; }
  .section { padding: 72px 0; }
}
@media (max-width: 380px) {
  .btn { white-space: normal; text-align: center; }
}
@media (max-width: 330px) { .vgrid, .stats { grid-template-columns: 1fr; } }
@media (max-width: 700px), (hover: none) and (pointer: coarse) {
  .sheet::before, .endband::before { animation: none; }
  .nav { backdrop-filter: none; -webkit-backdrop-filter: none; background: color-mix(in srgb, var(--bg) 97%, transparent); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .pop { opacity: 1 !important; transform: none !important; }
  .progress { display: none; }
}
@media print {
  .nav, .progress, .grain, .aurora { display: none !important; }
  .pop { opacity: 1 !important; transform: none !important; }
  body { background: #fff; color: #000; }
  .doc { box-shadow: none; border: 0; margin: 0 auto; }
}
