/* ============================================================
   ASTROLABE APPS — Design System
   Shared dark "star-chart" shell + per-product accent themes
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Type scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);
  --text-hero: clamp(3rem, 0.5rem + 7vw, 8rem);

  /* Spacing */
  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem;
  --space-5: 1.25rem; --space-6: 1.5rem; --space-8: 2rem; --space-10: 2.5rem;
  --space-12: 3rem; --space-16: 4rem; --space-20: 5rem; --space-24: 6rem; --space-32: 8rem;

  /* Radius */
  --radius-sm: 0.375rem; --radius-md: 0.5rem; --radius-lg: 0.875rem;
  --radius-xl: 1.25rem; --radius-full: 9999px;

  /* Content widths */
  --content-narrow: 680px; --content-default: 1020px; --content-wide: 1280px;

  /* Motion */
  --transition-interactive: 200ms cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);

  /* Fonts */
  --font-display: 'Clash Display', 'Cabinet Grotesk', sans-serif;
  --font-body: 'Satoshi', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', 'Geist Mono', ui-monospace, monospace;
}

/* ---------- Dark theme (default — the studio canvas) ---------- */
:root, [data-theme="dark"] {
  --color-bg: #07080d;
  --color-bg-2: #0a0c14;
  --color-surface: #0e111b;
  --color-surface-2: #131726;
  --color-surface-3: #1a1f30;
  --color-border: #232a40;
  --color-border-bright: #303955;
  --color-divider: #1a1f2e;

  --color-text: #e7eaf3;
  --color-text-muted: #9aa3bd;
  --color-text-faint: #5b6480;
  --color-text-inverse: #07080d;

  /* Astrolabe brass — the parent brand accent */
  --color-brass: #d9b15c;
  --color-brass-soft: #f0d79b;
  --color-brass-deep: #9c7a32;

  /* Default product accent = brand brass; per-product themes override below */
  --accent: var(--color-brass);
  --accent-soft: var(--color-brass-soft);
  --accent-deep: var(--color-brass-deep);
  --accent-glow: rgba(217, 177, 92, 0.22);

  --star: #c7d0ee;
  --shadow-md: 0 8px 28px rgba(0,0,0,0.5);
  --shadow-lg: 0 24px 60px rgba(0,0,0,0.6);
}

/* ---------- Light theme ---------- */
[data-theme="light"] {
  --color-bg: #f6f4ec;
  --color-bg-2: #efece1;
  --color-surface: #ffffff;
  --color-surface-2: #faf8f1;
  --color-surface-3: #f1eee3;
  --color-border: #ddd8c8;
  --color-border-bright: #cfc8b4;
  --color-divider: #e6e2d5;

  --color-text: #1d2030;
  --color-text-muted: #595f73;
  --color-text-faint: #9aa0b0;
  --color-text-inverse: #ffffff;

  --color-brass: #9c7a32;
  --color-brass-soft: #c89c44;
  --color-brass-deep: #6f561f;

  --accent: var(--color-brass);
  --accent-soft: var(--color-brass-soft);
  --accent-deep: var(--color-brass-deep);
  --accent-glow: rgba(156, 122, 50, 0.18);

  --star: #6f561f;
  --shadow-md: 0 8px 28px rgba(40,36,20,0.10);
  --shadow-lg: 0 24px 60px rgba(40,36,20,0.16);
}

/* ============================================================
   PER-PRODUCT ACCENT THEMES
   Apply data-accent="x" on a section or page to retheme.
   Each product: own accent color + own display font.
   ============================================================ */

/* PostalListr (data-accent hook: listfast) — electric amber/orange, fast & commercial */
[data-accent="listfast"] {
  --accent: #ff8a3d; --accent-soft: #ffb27a; --accent-deep: #c25a18;
  --accent-glow: rgba(255, 138, 61, 0.24);
  --font-product: 'Clash Display', sans-serif;
}
/* PawPath — warm coral/rose, friendly & caring */
[data-accent="pawpath"] {
  --accent: #ff6b8b; --accent-soft: #ffa0b4; --accent-deep: #c43d5c;
  --accent-glow: rgba(255, 107, 139, 0.22);
  --font-product: 'Chillax', sans-serif;
}
/* Boat Brain — deep cyan/teal, nautical & technical */
[data-accent="boatbrain"] {
  --accent: #35d6c4; --accent-soft: #7af0e3; --accent-deep: #149b8c;
  --accent-glow: rgba(53, 214, 196, 0.22);
  --font-product: 'Cabinet Grotesk', sans-serif;
}
/* CollegeCompass — confident indigo/violet, scholarly */
[data-accent="college"] {
  --accent: #8a7dff; --accent-soft: #b3aaff; --accent-deep: #5a4ed1;
  --accent-glow: rgba(138, 125, 255, 0.22);
  --font-product: 'General Sans', sans-serif;
}
/* Helm (LLM) — green-white plasma, raw compute */
[data-accent="helm"] {
  --accent: #6ef2a8; --accent-soft: #a9f9cb; --accent-deep: #2faf6e;
  --accent-glow: rgba(110, 242, 168, 0.22);
  --font-product: 'JetBrains Mono', monospace;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility; scroll-behavior: smooth;
  scroll-padding-top: 5rem; text-size-adjust: none;
}
body {
  min-height: 100dvh; line-height: 1.6;
  font-family: var(--font-body); font-size: var(--text-base);
  color: var(--color-text); background: var(--color-bg);
  overflow-x: hidden;
  transition: background 400ms var(--ease-out), color 400ms var(--ease-out);
}
img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
ul[role="list"] { list-style: none; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
a { color: inherit; text-decoration: none; }
h1,h2,h3,h4 { text-wrap: balance; line-height: 1.08; font-family: var(--font-display); font-weight: 600; }
p, li { text-wrap: pretty; }
::selection { background: var(--accent-glow); color: var(--color-text); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--radius-sm); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important; scroll-behavior: auto !important;
  }
}

/* ---------- Layout helpers ---------- */
.wrap { width: min(100% - 2.5rem, var(--content-wide)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2.5rem, var(--content-default)); margin-inline: auto; }
.section { padding-block: clamp(var(--space-16), 9vw, var(--space-32)); position: relative; }
.eyebrow {
  font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--accent); display: inline-flex; align-items: center; gap: var(--space-2);
}
.eyebrow::before { content: ""; width: 1.5rem; height: 1px; background: var(--accent); opacity: 0.7; }
.muted { color: var(--color-text-muted); }
.faint { color: var(--color-text-faint); }
.mono { font-family: var(--font-mono); }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding-block: var(--space-4);
  background: color-mix(in oklab, var(--color-bg) 72%, transparent);
  backdrop-filter: blur(14px) saturate(120%);
  border-bottom: 1px solid transparent;
  transition: border-color 300ms var(--ease-out), background 300ms var(--ease-out);
}
.header.scrolled { border-bottom-color: var(--color-divider); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); }
.brand { display: flex; align-items: center; gap: var(--space-3); }
.brand__mark { width: 34px; height: 34px; color: var(--accent); }
.brand__name { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; letter-spacing: 0.01em; }
.brand__name span { color: var(--accent); }
.nav { display: flex; align-items: center; gap: var(--space-6); }
.nav a { font-size: var(--text-sm); color: var(--color-text-muted); transition: color var(--transition-interactive); }
.nav a:hover { color: var(--color-text); }
.nav__cta {
  font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--color-text) !important; border: 1px solid var(--color-border-bright);
  padding: var(--space-2) var(--space-4); border-radius: var(--radius-full);
  transition: border-color var(--transition-interactive), background var(--transition-interactive);
}
.nav__cta:hover { border-color: var(--accent); background: var(--accent-glow); }
.icon-btn {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: var(--radius-full);
  color: var(--color-text-muted); border: 1px solid var(--color-border);
  transition: color var(--transition-interactive), border-color var(--transition-interactive);
}
.icon-btn:hover { color: var(--color-text); border-color: var(--color-border-bright); }
.menu-btn { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-family: var(--font-mono); font-size: var(--text-sm); letter-spacing: 0.04em;
  padding: var(--space-3) var(--space-6); border-radius: var(--radius-full);
  transition: transform var(--transition-interactive), box-shadow var(--transition-interactive),
              background var(--transition-interactive), border-color var(--transition-interactive);
}
.btn--primary { background: var(--accent); color: var(--color-text-inverse); font-weight: 600; }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px var(--accent-glow); }
.btn--primary:active { transform: translateY(0); }
.btn--ghost { border: 1px solid var(--color-border-bright); color: var(--color-text); }
.btn--ghost:hover { border-color: var(--accent); background: var(--accent-glow); transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: center; overflow: hidden; }
#astrolabe-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero__veil {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(120% 90% at 70% 30%, transparent 30%, var(--color-bg) 92%),
    linear-gradient(180deg, transparent 55%, var(--color-bg) 100%);
}
.hero__content { position: relative; z-index: 2; padding-block: var(--space-32) var(--space-24); }
.hero h1 {
  font-size: var(--text-hero); font-weight: 600; letter-spacing: -0.02em;
  margin-block: var(--space-6) var(--space-6); max-width: 16ch;
}
.hero h1 .grad {
  background: linear-gradient(120deg, var(--accent-soft), var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lead { font-size: var(--text-lg); color: var(--color-text-muted); max-width: 56ch; margin-bottom: var(--space-8); }
.hero__actions { display: flex; gap: var(--space-4); flex-wrap: wrap; }
.hero__scroll {
  position: absolute; bottom: var(--space-8); left: 50%; transform: translateX(-50%); z-index: 2;
  font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--color-text-faint); display: flex; flex-direction: column; align-items: center; gap: var(--space-2);
}
.hero__scroll::after { content: ""; width: 1px; height: 36px; background: linear-gradient(var(--color-text-faint), transparent); animation: scrollpulse 2s var(--ease-in-out) infinite; }
@keyframes scrollpulse { 0%,100% { opacity: 0.3; transform: scaleY(0.6); } 50% { opacity: 1; transform: scaleY(1); } }

/* ---------- Section header ---------- */
.section-head { max-width: 60ch; margin-bottom: var(--space-12); }
.section-head h2 { font-size: var(--text-2xl); letter-spacing: -0.01em; margin-block: var(--space-4) var(--space-4); }
.section-head p { font-size: var(--text-lg); color: var(--color-text-muted); }

/* ---------- Manifesto strip ---------- */
.manifesto { border-block: 1px solid var(--color-divider); }
.manifesto p {
  font-family: var(--font-display); font-weight: 500; font-size: var(--text-xl);
  letter-spacing: -0.01em; max-width: 30ch; line-height: 1.25;
}
.manifesto .grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--space-12); align-items: center; }
.manifesto .stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-8); }
.stat .num { font-family: var(--font-display); font-size: var(--text-2xl); color: var(--accent); line-height: 1; }
.stat .label { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.06em; color: var(--color-text-muted); margin-top: var(--space-2); }

/* ---------- Product cards ---------- */
.products-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }
.product-card {
  position: relative; padding: var(--space-8); border-radius: var(--radius-xl);
  background: linear-gradient(160deg, var(--color-surface), var(--color-bg-2));
  border: 1px solid var(--color-border); overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; gap: var(--space-5); min-height: 320px;
  transition: transform var(--transition-interactive), border-color var(--transition-interactive), box-shadow var(--transition-interactive);
}
.product-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0;
  background: radial-gradient(120% 80% at 80% 0%, var(--accent-glow), transparent 60%);
  transition: opacity 400ms var(--ease-out);
}
.product-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--shadow-lg); }
.product-card:hover::before { opacity: 1; }
.product-card.featured { grid-column: span 2; flex-direction: row; align-items: flex-start; gap: var(--space-8); }
.product-card.featured .product-card__body { flex: 0 0 38%; align-self: center; }
.product-card__body { flex: 1; display: flex; flex-direction: column; gap: var(--space-4); }
.product-card .tagicon {
  width: 52px; height: 52px; border-radius: var(--radius-lg); display: grid; place-items: center;
  background: var(--accent-glow); color: var(--accent); border: 1px solid color-mix(in oklab, var(--accent) 35%, transparent);
}
.product-card .tagicon svg { width: 26px; height: 26px; }
.product-card h3 { font-family: var(--font-product, var(--font-display)); font-size: var(--text-xl); }
.product-card h3 .dot { color: var(--accent); }
.product-card .status {
  display: inline-flex; align-items: center; gap: var(--space-2); font-family: var(--font-mono);
  font-size: var(--text-xs); letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-text-muted);
}
.product-card .status .dotmark { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.product-card p { color: var(--color-text-muted); font-size: var(--text-base); }
.product-card .meta { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: auto; }
.chip {
  font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.04em;
  padding: var(--space-1) var(--space-3); border-radius: var(--radius-full);
  border: 1px solid var(--color-border); color: var(--color-text-muted);
}
.product-card .arrow { color: var(--accent); display: inline-flex; align-items: center; gap: var(--space-2); font-family: var(--font-mono); font-size: var(--text-sm); }
.product-card .arrow svg { width: 16px; height: 16px; transition: transform var(--transition-interactive); }
.product-card:hover .arrow svg { transform: translateX(4px); }
.product-card__visual {
  flex: 0 0 42%; aspect-ratio: 4/3; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--color-border); background: var(--color-bg);
}
.product-card__visual img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Live app embed (PostalListr) ---------- */
.product-card__visual.app-embed {
  flex: 1 0 auto; aspect-ratio: auto; display: flex; flex-direction: column;
  background: #0c0e14; box-shadow: 0 10px 40px rgba(0,0,0,0.45);
  align-self: flex-start; height: auto;
}
.app-embed__chrome {
  display: flex; align-items: center; gap: var(--space-3); padding: 0.5rem 0.75rem;
  background: linear-gradient(var(--color-surface), var(--color-bg-2));
  border-bottom: 1px solid var(--color-border); flex: none;
}
.app-embed__dots { display: inline-flex; gap: 5px; }
.app-embed__dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--color-border); display: block; }
.app-embed__dots i:nth-child(1){ background:#ff5f56; } .app-embed__dots i:nth-child(2){ background:#ffbd2e; } .app-embed__dots i:nth-child(3){ background:#27c93f; }
.app-embed__url {
  flex: 1; display: inline-flex; align-items: center; gap: 0.4rem; justify-content: center;
  font-family: var(--font-mono); font-size: var(--text-xs); color: var(--color-text-muted);
  background: var(--color-bg); border-radius: var(--radius-full); padding: 0.25rem 0.75rem;
  border: 1px solid var(--color-border); max-width: 240px;
}
.app-embed__ext { color: var(--color-text-muted); display: inline-flex; transition: color var(--transition-interactive); }
.app-embed__ext:hover { color: var(--accent); }
/* Scaling viewport: the iframe is rendered at a fixed LOGICAL width and then
   scaled to fit the container, so the ENTIRE app page is visible with no
   internal scrolling (critical on mobile touch). */
.app-embed__viewport {
  position: relative; width: 100%; overflow: hidden; background: #fff;
  flex: none; /* keep the exact JS-set height; never let flexbox squash it */
}
.app-embed__frame {
  position: absolute; top: 0; left: 0; border: 0; display: block; background: #fff;
  /* set by JS: --emb-w (logical px), --emb-h (logical px), --emb-scale */
  width: var(--emb-w, 1000px);
  height: var(--emb-h, 1400px);
  transform: scale(var(--emb-scale, 1));
  transform-origin: top left;
}

/* ---------- PawPath footstep trail ---------- */
/* Prints appear one after another — a dog walking across the block, leaving a
   gait of alternating left/right paw prints, then the trail fades and repeats. */
.product-card.has-paws { overflow: hidden; }
.pawtrack {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
.pawtrack .paw {
  position: absolute; width: 26px; height: 26px; color: var(--accent);
  margin: -13px 0 0 -13px;           /* center on its left/top point */
  opacity: 0;
  transform: rotate(var(--rot, 90deg)) scale(0.6);
  transform-origin: center;
  animation-name: pawstamp;
  animation-timing-function: ease-out;
  animation-iteration-count: infinite;
}
@keyframes pawstamp {
  0%   { opacity: 0; transform: rotate(var(--rot,90deg)) scale(0.55); }
  4%   { opacity: 0.6; transform: rotate(var(--rot,90deg)) scale(1); }   /* press down */
  8%   { opacity: 0.42; transform: rotate(var(--rot,90deg)) scale(0.96); }
  82%  { opacity: 0.42; transform: rotate(var(--rot,90deg)) scale(0.96); } /* hold as the trail completes */
  94%  { opacity: 0; transform: rotate(var(--rot,90deg)) scale(0.9); }     /* whole trail lifts */
  100% { opacity: 0; transform: rotate(var(--rot,90deg)) scale(0.55); }
}
.product-card.has-paws > *:not(.pawtrack) { position: relative; z-index: 1; }

/* ---------- CollegeCompass compass rose ---------- */
.product-card.has-rose { overflow: hidden; }
.compass-rose {
  position: absolute; top: -28px; right: -28px; width: 190px; height: 190px;
  z-index: 0; color: var(--accent); opacity: 0.5; pointer-events: none;
}
.product-card.has-rose:hover .compass-rose { opacity: 0.7; }
/* slow spin of just the star + ticks, cardinal letters held still */
.compass-rose .rose-star, .compass-rose .rose-ticks {
  transform-origin: 60px 60px; animation: roseturn 90s linear infinite;
}
.compass-rose svg { width: 100%; height: 100%; overflow: visible; transition: opacity var(--transition-interactive); }
.compass-rose .rose-card-label {
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  text-anchor: middle; opacity: 0.9;
}
.compass-rose .rose-ord { font-size: 7px; font-weight: 500; opacity: 0.6; }
@keyframes roseturn { to { transform: rotate(360deg); } }
.product-card.has-rose > *:not(.compass-rose) { position: relative; z-index: 1; }

/* ---------- Approach / process ---------- */
.approach-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.approach-card { padding: var(--space-6); border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-surface); }
.approach-card .n { font-family: var(--font-mono); color: var(--accent); font-size: var(--text-sm); }
.approach-card h3 { font-size: var(--text-lg); margin-block: var(--space-3) var(--space-2); }
.approach-card p { color: var(--color-text-muted); font-size: var(--text-sm); }

/* ---------- Stack marquee ---------- */
.stack { border-block: 1px solid var(--color-divider); overflow: hidden; padding-block: var(--space-10); }
.marquee { display: flex; gap: var(--space-12); white-space: nowrap; width: max-content; animation: marquee 32s linear infinite; }
.marquee span { font-family: var(--font-mono); font-size: var(--text-lg); color: var(--color-text-faint); letter-spacing: 0.02em; }
.marquee span b { color: var(--accent); font-weight: 400; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- LLM / Helm section ---------- */
.helm { position: relative; overflow: hidden; }
.helm__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--space-16); align-items: center; }
.helm__card {
  border: 1px solid var(--color-border); border-radius: var(--radius-xl); padding: var(--space-8);
  background: linear-gradient(160deg, var(--color-surface-2), var(--color-bg));
  font-family: var(--font-mono); font-size: var(--text-sm);
}
.helm__card .line { display: flex; gap: var(--space-3); padding-block: var(--space-2); border-bottom: 1px dashed var(--color-divider); }
.helm__card .line:last-child { border-bottom: 0; }
.helm__card .k { color: var(--color-text-faint); flex: 0 0 42%; }
.helm__card .v { color: var(--accent-soft); }

/* ---------- CTA ---------- */
.cta { text-align: center; }
.cta h2 { font-size: var(--text-2xl); margin-bottom: var(--space-4); }
.cta p { color: var(--color-text-muted); font-size: var(--text-lg); max-width: 50ch; margin: 0 auto var(--space-8); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--color-divider); padding-block: var(--space-16) var(--space-10); }
.footer__top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: var(--space-8); margin-bottom: var(--space-12); }
.footer h4 { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-text-faint); margin-bottom: var(--space-4); }
.footer ul { display: grid; gap: var(--space-2); }
.footer ul a { font-size: var(--text-sm); color: var(--color-text-muted); transition: color var(--transition-interactive); }
.footer ul a:hover { color: var(--accent); }
.footer__brand p { color: var(--color-text-muted); font-size: var(--text-sm); max-width: 38ch; margin-top: var(--space-4); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; padding-top: var(--space-8); border-top: 1px solid var(--color-divider); font-family: var(--font-mono); font-size: var(--text-xs); color: var(--color-text-faint); flex-wrap: wrap; gap: var(--space-4); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 1; }
@supports (animation-timeline: view()) {
  .reveal { opacity: 0; animation: reveal-fade linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
}
@keyframes reveal-fade { to { opacity: 1; } }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .manifesto .grid, .helm__grid, .products-grid, .approach-grid { grid-template-columns: 1fr; }
  .product-card.featured { grid-column: span 1; flex-direction: column; align-items: stretch; }
  .product-card__visual { flex: none; width: 100%; }
  .product-card__visual.app-embed { flex: none; height: auto; align-self: stretch; }
  .footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav { display: none; }
  .menu-btn { display: grid; }
  .footer__top { grid-template-columns: 1fr; }
  .hero__content { padding-block: var(--space-24) var(--space-16); }
}

/* ============================================================
   PRODUCT PAGE
   ============================================================ */
.p-hero { padding-block: clamp(7rem, 14vw, 11rem) clamp(3rem, 7vw, 6rem); position: relative; overflow: hidden; }
.p-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(80% 60% at 80% 0%, var(--accent-glow), transparent 60%);
}
.p-hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: var(--space-16); align-items: center; }
.p-hero h1 { font-family: var(--font-product, var(--font-display)); font-size: var(--text-3xl); letter-spacing: -0.02em; margin-block: var(--space-5) var(--space-5); }
.p-hero h1 .dot { color: var(--accent); }
.p-hero__lead { font-size: var(--text-lg); color: var(--color-text-muted); margin-bottom: var(--space-8); max-width: 52ch; }
.p-hero__shot { border-radius: var(--radius-xl); overflow: hidden; border: 1px solid var(--color-border); box-shadow: var(--shadow-lg); position: relative; }
.p-hero__shot img { width: 100%; display: block; }
.p-back { font-family: var(--font-mono); font-size: var(--text-sm); color: var(--color-text-muted); display: inline-flex; align-items: center; gap: var(--space-2); transition: color var(--transition-interactive); }
.p-back:hover { color: var(--accent); }
.p-back svg { width: 16px; height: 16px; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.feature { padding: var(--space-6); border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-surface); transition: border-color var(--transition-interactive); }
.feature:hover { border-color: var(--accent); }
.feature .fi { width: 44px; height: 44px; border-radius: var(--radius-md); display: grid; place-items: center; background: var(--accent-glow); color: var(--accent); margin-bottom: var(--space-4); }
.feature .fi svg { width: 22px; height: 22px; }
.feature h3 { font-size: var(--text-lg); margin-bottom: var(--space-2); }
.feature p { font-size: var(--text-sm); color: var(--color-text-muted); }

.spec-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 var(--space-12); }
.spec { display: flex; justify-content: space-between; gap: var(--space-4); padding-block: var(--space-4); border-bottom: 1px dashed var(--color-divider); font-family: var(--font-mono); font-size: var(--text-sm); }
.spec .sk { color: var(--color-text-muted); }
.spec .sv { color: var(--accent-soft); text-align: right; }

.p-domain {
  display: inline-flex; align-items: center; gap: var(--space-2); font-family: var(--font-mono);
  font-size: var(--text-sm); padding: var(--space-2) var(--space-4); border-radius: var(--radius-full);
  border: 1px solid var(--accent); color: var(--accent); background: var(--accent-glow);
}
@media (max-width: 900px) { .p-hero__grid { grid-template-columns: 1fr; } .feature-grid { grid-template-columns: 1fr; } .spec-list { grid-template-columns: 1fr; } }
