/* ══════════════════════════════════════════════════════════════
   Gaiya Lab — one stylesheet for the whole site.

   Previously these tokens were copy-pasted into every HTML file and had
   already drifted apart. They live here now; the filename is content-hashed
   at build time so it can be cached immutably for a year.
   ══════════════════════════════════════════════════════════════ */

/* ─── tokens ─── */
:root {
  --ground: #f1eee4;
  --card: #ffffff;
  --card-2: #faf8f2;
  --ink: #26332b;
  --muted: #5e7064;
  --faint: #8a9b8e;
  --accent: #2f6b4e;
  --accent-on: #ffffff;
  --line: rgba(47, 107, 78, 0.15);
  --line-soft: rgba(47, 107, 78, 0.08);
  --shadow: 0 14px 34px -20px rgba(37, 70, 50, 0.38);
  --shadow-lg: 0 30px 60px -32px rgba(37, 70, 50, 0.44);
  --bezel: #2a3830;

  --serif: 'Iowan Old Style', 'Palatino Linotype', Palatino, 'Book Antiqua', ui-serif, Georgia,
    'Songti SC', 'STSong', serif;
  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC',
    'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --round: ui-rounded, 'SF Pro Rounded', 'Hiragino Maru Gothic ProN', 'Varela Round', var(--sans);
  --mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;

  --gutter: clamp(1.15rem, 3.5vw, 3.25rem);
  --stack: clamp(2.5rem, 4.5vw, 4rem);
  color-scheme: light;
}

/* Dark values live in one block, applied by two selectors so that the OS
   preference and the explicit toggle share a single definition. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    color-scheme: dark;
    --ground: #161c18;
    --card: #1e2b23;
    --card-2: #223028;
    --ink: #e9efe8;
    --muted: #9db1a3;
    --faint: #76877c;
    --accent: #71c79a;
    --accent-on: #0f1a14;
    --line: rgba(220, 236, 222, 0.14);
    --line-soft: rgba(220, 236, 222, 0.07);
    --shadow: 0 14px 34px -20px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 30px 60px -32px rgba(0, 0, 0, 0.7);
    --bezel: #0d1310;
  }
}
:root[data-theme='dark'] {
  color-scheme: dark;
  --ground: #161c18;
  --card: #1e2b23;
  --card-2: #223028;
  --ink: #e9efe8;
  --muted: #9db1a3;
  --faint: #76877c;
  --accent: #71c79a;
  --accent-on: #0f1a14;
  --line: rgba(220, 236, 222, 0.14);
  --line-soft: rgba(220, 236, 222, 0.07);
  --shadow: 0 14px 34px -20px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 30px 60px -32px rgba(0, 0, 0, 0.7);
  --bezel: #0d1310;
}
:root[data-theme='light'] {
  color-scheme: light;
}

/* ─── per-product brand ───
   --brand      fill colour (buttons, dots, borders)
   --brand-on   text that sits ON the fill
   --brand-ink  text that sits on the page ground — a fill colour rarely
                has enough contrast to be read as text, so it is separate. */
[data-brand='mindbloom'] { --brand: #4e9e73; --brand-on: #0f1a14; --brand-ink: #2f6b4e; }
[data-brand='iread']     { --brand: #3c6a5f; --brand-on: #ffffff; --brand-ink: #35604f; }
[data-brand='wearwhat']  { --brand: #3f5142; --brand-on: #ffffff; --brand-ink: #3f5142; }
[data-brand='anelo']     { --brand: #986110; --brand-on: #ffffff; --brand-ink: #7d4f0c; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) [data-brand='mindbloom'] { --brand: #71c79a; --brand-on: #0f1a14; --brand-ink: #71c79a; }
  :root:not([data-theme='light']) [data-brand='iread']     { --brand: #a3d0c4; --brand-on: #0f1a14; --brand-ink: #a3d0c4; }
  :root:not([data-theme='light']) [data-brand='wearwhat']  { --brand: #a9bea2; --brand-on: #0f1a14; --brand-ink: #a9bea2; }
  :root:not([data-theme='light']) [data-brand='anelo']     { --brand: #e3a83b; --brand-on: #17192d; --brand-ink: #e3a83b; }
}
:root[data-theme='dark'] [data-brand='mindbloom'] { --brand: #71c79a; --brand-on: #0f1a14; --brand-ink: #71c79a; }
:root[data-theme='dark'] [data-brand='iread']     { --brand: #a3d0c4; --brand-on: #0f1a14; --brand-ink: #a3d0c4; }
:root[data-theme='dark'] [data-brand='wearwhat']  { --brand: #a9bea2; --brand-on: #0f1a14; --brand-ink: #a9bea2; }
:root[data-theme='dark'] [data-brand='anelo']     { --brand: #e3a83b; --brand-on: #17192d; --brand-ink: #e3a83b; }

/* Chinese needs no negative tracking and a little more leading. Language is
   now a URL fact, not a runtime toggle, so this keys off <html lang>. */
:root:lang(zh-CN) h1,
:root:lang(zh-CN) h2,
:root:lang(zh-CN) h3 { letter-spacing: 0; line-height: 1.32; }
:root:lang(zh-CN) .eyebrow { letter-spacing: 0.06em; }

/* ─── base ─── */
* { box-sizing: border-box; }

/* html carries its own background: without it the body background must
   propagate to the viewport canvas, which does not reliably repaint when
   only a CSS variable changed. */
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--ground);
}
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.03rem;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.wrap { max-width: 66rem; margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: 46rem; }
a { color: var(--accent); text-underline-offset: 0.2em; }
a:focus-visible,
button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
img { max-width: 100%; }

.eyebrow {
  font-family: var(--round);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--faint);
}

.skip-link {
  position: fixed; left: 0; top: 0; z-index: 999;
  transform: translateY(-120%);
  background: var(--accent); color: var(--accent-on);
  padding: 0.7rem 1.1rem; border-radius: 0 0 0.6rem 0;
  font-family: var(--round); font-size: 0.85rem; font-weight: 600; text-decoration: none;
}
.skip-link:focus { transform: translateY(0); }

/* ─── masthead ─── */
.masthead {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; padding: 1.15rem 0; flex-wrap: wrap;
}
.brand {
  display: flex; align-items: center; gap: 0.55rem;
  font-family: var(--serif); font-size: 1.1rem; color: var(--ink); text-decoration: none;
}
.brand svg { width: 21px; height: 21px; flex: none; }
.tools { display: flex; align-items: center; gap: 0.5rem; }
.mainnav { display: flex; gap: 1rem; margin-right: 0.35rem; }
.mainnav a { color: var(--muted); text-decoration: none; }
.mainnav a:hover, .mainnav a[aria-current='page'] { color: var(--accent); }

.iconbtn {
  background: transparent; border: 1px solid var(--line); color: var(--muted);
  height: 35px; border-radius: 100px; cursor: pointer;
  display: inline-grid; place-items: center; text-decoration: none;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  font-family: var(--round); font-size: 0.76rem; font-weight: 700; letter-spacing: 0.04em;
}
.iconbtn:hover { border-color: var(--accent); color: var(--accent); background: var(--card); }
.themebtn { width: 35px; }
.langbtn { padding: 0 0.85rem; }
.iconbtn svg { width: 16px; height: 16px; }

/* ─── hero ─── */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.75rem, 4vw, 3.25rem); align-items: center;
  padding: clamp(1.25rem, 2.5vw, 2.25rem) 0 clamp(2.25rem, 4vw, 3.5rem);
}
.hero h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.05rem, 4.15vw, 3.3rem); line-height: 1.09; letter-spacing: -0.018em;
  margin: 0.7rem 0 0; text-wrap: balance;
}
.hero .deck { margin: 1.1rem 0 0; color: var(--muted); font-size: 1.02rem; max-width: 42ch; }
.hero .deck b { color: var(--ink); font-weight: 600; }
.stats { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 1.35rem; }
.stat {
  font-family: var(--round); font-size: 0.76rem; font-weight: 600;
  background: var(--card); border: 1px solid var(--line); color: var(--muted);
  padding: 0.34rem 0.78rem; border-radius: 100px;
}

.hero-apps { display: flex; flex-direction: column; gap: 0.55rem; }
.minicard {
  display: flex; align-items: center; gap: 0.8rem; text-decoration: none;
  background: var(--card); border: 1px solid var(--line); border-radius: 1rem;
  padding: 0.7rem 0.85rem; box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.minicard:hover { transform: translateY(-2px); border-color: var(--brand); box-shadow: var(--shadow-lg); }
.minicard img { width: 42px; height: 42px; border-radius: 11px; flex: none; }
.minicard .t { display: flex; flex-direction: column; line-height: 1.32; min-width: 0; }
.minicard .t strong { font-family: var(--round); font-size: 0.94rem; font-weight: 700; color: var(--ink); }
.minicard .t .sub { font-size: 0.8rem; color: var(--muted); }
.minicard .go { margin-left: auto; color: var(--brand-ink); flex: none; width: 15px; height: 15px; opacity: 0.6; }

/* ─── section head ─── */
.sec-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; padding-bottom: 0.8rem; border-bottom: 1px solid var(--line);
}
.sec-head h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.4rem, 2.6vw, 1.85rem); margin: 0; }
.sec-head a { font-family: var(--round); font-size: 0.8rem; font-weight: 600; text-decoration: none; }

/* ─── product block (home) / product page hero ─── */
.app {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.88fr);
  gap: clamp(1.5rem, 3.5vw, 3rem); align-items: center;
  padding: clamp(2rem, 3.2vw, 3rem) 0; border-bottom: 1px solid var(--line-soft);
}
/* Alternate which side the screenshots sit on. The stage is already second
   in source order, so pulling it to the front is what actually flips the
   row — `order: 2` would be a no-op. */
.app:nth-of-type(even) .stage { order: -1; }
.app:last-child { border-bottom: 0; }
.app-body h2, .app-body h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.6rem, 2.9vw, 2.25rem); line-height: 1.14; margin: 0.5rem 0 0;
}
.app-icon { width: 56px; height: 56px; border-radius: 14px; margin-bottom: 0.9rem; display: block; }
.app-body .tagline {
  color: var(--brand-ink); font-family: var(--round); font-weight: 600;
  font-size: 0.95rem; margin: 0.45rem 0 0;
}
.app-body .copy { color: var(--muted); margin: 0.85rem 0 0; max-width: 44ch; font-size: 0.99rem; }
.feats { list-style: none; margin: 1.1rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.42rem; }
.feats li { display: flex; gap: 0.55rem; align-items: flex-start; font-size: 0.94rem; color: var(--muted); }
.feats svg { width: 15px; height: 15px; flex: none; margin-top: 0.3rem; color: var(--brand-ink); }
.reqs { margin: 1.05rem 0 0; font-size: 0.84rem; color: var(--faint); font-family: var(--round); }
/* The free/paid line. Set apart from the feature list so it reads as an
   answer to "what does it cost", not as another feature. */
.outbound {
  margin: 1.05rem 0 0; font-size: 0.84rem; font-family: var(--round);
  color: var(--faint);
}
.outbound a { color: var(--brand-ink, var(--accent)); text-decoration: none; border-bottom: 1px solid var(--line); }
.outbound a:hover { border-bottom-color: currentColor; }

.pricing {
  margin: 1.15rem 0 0; padding-left: 0.85rem;
  border-left: 2px solid var(--brand, var(--line));
  font-size: 0.88rem; line-height: 1.55; color: var(--muted); max-width: 46ch;
}

.cta { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.4rem; }
.btn {
  display: inline-flex; align-items: center; gap: 0.42rem;
  font-family: var(--round); font-size: 0.86rem; font-weight: 600;
  text-decoration: none; padding: 0.6rem 1.02rem; border-radius: 100px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.btn-primary { background: var(--brand); color: var(--brand-on); box-shadow: 0 8px 18px -10px var(--brand); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 24px -10px var(--brand); }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); background: var(--card); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-ink); transform: translateY(-2px); }
.btn svg { width: 14px; height: 14px; }

/* ─── phone carousel ─── */
.stage { display: flex; flex-direction: column; align-items: center; gap: 0.7rem; }
.phone {
  position: relative; width: min(100%, 19.5rem);
  background: var(--bezel); border-radius: 2.6rem; padding: 0.5rem; box-shadow: var(--shadow-lg);
}
.phone::after {
  content: ''; position: absolute; top: 0.85rem; left: 50%; transform: translateX(-50%);
  width: 27%; height: 0.32rem; border-radius: 100px; background: rgba(255, 255, 255, 0.18);
}
/* Aspect ratio is per product — it is set inline from the screenshot's real
   pixel dimensions so object-fit never has to crop. */
.screen { position: relative; border-radius: 2.15rem; overflow: hidden; background: var(--card-2); }
.slide {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; transition: opacity 0.7s ease;
}
.slide.on { opacity: 1; }

.controls { display: flex; align-items: center; gap: 0.55rem; justify-content: center; min-height: 22px; }
.dots { display: flex; gap: 0.4rem; }
.dots button {
  width: 6px; height: 6px; padding: 0; border-radius: 50%; cursor: pointer;
  border: 0; background: var(--line); transition: background 0.25s, width 0.25s;
}
.dots button.on { background: var(--brand); width: 18px; border-radius: 100px; }
/* WCAG 2.2.2 — auto-advancing content needs a control that keyboard users
   can reach. Hover-to-pause alone does not satisfy this. */
.pausebtn {
  border: 1px solid var(--line); background: transparent; color: var(--faint);
  width: 22px; height: 22px; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; padding: 0;
  transition: color 0.2s, border-color 0.2s;
}
.pausebtn:hover { color: var(--brand-ink); border-color: var(--brand); }
.pausebtn svg { width: 9px; height: 9px; }

/* ─── transcript stage (Anelo has no phone screenshots) ─── */
.transcript {
  width: 100%; background: var(--card); border: 1px solid var(--line);
  border-radius: 1.25rem; box-shadow: var(--shadow-lg); overflow: hidden;
}
.transcript .bar {
  display: flex; align-items: center; gap: 0.4rem;
  padding: 0.7rem 0.95rem; border-bottom: 1px solid var(--line-soft); background: var(--card-2);
}
.transcript .bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); display: block; }
.transcript .bar span {
  margin-left: auto; font-family: var(--round); font-size: 0.7rem;
  color: var(--faint); letter-spacing: 0.08em; text-transform: uppercase;
}
.transcript .row { padding: 1rem 1.1rem; border-bottom: 1px solid var(--line-soft); }
.transcript .row:last-child { border-bottom: 0; }
.transcript .lbl {
  font-family: var(--round); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint);
}
.transcript .said { margin: 0.35rem 0 0.75rem; color: var(--muted); font-size: 0.92rem; font-style: italic; }
.transcript .out {
  margin: 0.35rem 0 0; color: var(--ink); font-size: 0.93rem;
  font-family: var(--mono); line-height: 1.55;
  background: var(--card-2); border-left: 2px solid var(--brand);
  padding: 0.6rem 0.8rem; border-radius: 0 0.5rem 0.5rem 0;
}
.stage-caption { font-size: 0.8rem; color: var(--faint); font-family: var(--round); text-align: center; }

/* ─── cards / studio / contact ─── */
.panel {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 1.4rem; padding: clamp(1.5rem, 3vw, 2.5rem);
  box-shadow: var(--shadow); margin: var(--stack) 0 0;
}
.panel h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.35rem, 2.6vw, 1.9rem); line-height: 1.2; margin: 0.6rem 0 0;
  max-width: 28ch; text-wrap: balance;
}
.cols {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr));
  gap: clamp(1rem, 2.5vw, 2rem); margin-top: 1.4rem;
}
.cols p { margin: 0; color: var(--muted); font-size: 0.96rem; }

.contact {
  margin-top: var(--stack); display: flex; align-items: center; justify-content: space-between;
  gap: 1.25rem; flex-wrap: wrap;
  background: var(--card); border: 1px solid var(--line); border-radius: 1.4rem;
  padding: clamp(1.35rem, 2.6vw, 2rem) clamp(1.5rem, 3vw, 2.5rem); box-shadow: var(--shadow);
}
.contact h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.3rem, 2.5vw, 1.8rem); margin: 0.4rem 0 0; text-wrap: balance;
}
.mail {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-family: var(--round); font-weight: 600; font-size: 0.9rem;
  background: var(--accent); color: var(--accent-on); text-decoration: none;
  padding: 0.68rem 1.15rem; border-radius: 100px; white-space: nowrap;
  box-shadow: 0 8px 18px -10px var(--accent);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.mail:hover { transform: translateY(-2px); box-shadow: 0 14px 24px -10px var(--accent); color: var(--accent-on); }
.mail svg { width: 15px; height: 15px; }

/* ─── list rows (privacy index, blog index, changelog) ─── */
.rows { display: flex; flex-direction: column; gap: 0.7rem; margin: 0; padding: 0; list-style: none; }
.row-card {
  display: flex; align-items: center; gap: 0.9rem; text-decoration: none;
  background: var(--card); border: 1px solid var(--line); border-radius: 1.1rem;
  padding: 0.9rem 1rem; box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.row-card:hover { transform: translateY(-2px); border-color: var(--brand, var(--accent)); box-shadow: var(--shadow-lg); }
.row-card img { width: 44px; height: 44px; border-radius: 11px; flex: none; }
.row-card .t { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.row-card .t strong { font-family: var(--round); font-size: 0.98rem; font-weight: 700; color: var(--ink); }
.row-card .t .sub { font-size: 0.82rem; color: var(--muted); }
.row-card .go { margin-left: auto; color: var(--brand-ink, var(--accent)); flex: none; width: 16px; height: 16px; opacity: 0.65; }

/* ─── page header (interior pages) ─── */
.page-head { padding: clamp(1.5rem, 4vw, 3rem) 0 clamp(1.25rem, 3vw, 2rem); }
.page-head h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.9rem, 4.5vw, 2.9rem); line-height: 1.1; letter-spacing: -0.018em;
  margin: 0.7rem 0 0; text-wrap: balance;
}
.lede { color: var(--muted); margin: 1rem 0 0; max-width: 58ch; }

/* ─── article / prose ─── */
.prose { color: var(--ink); }
.prose > * + * { margin-top: 1.15rem; }
.prose h2 {
  font-family: var(--serif); font-weight: 400; font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  line-height: 1.25; margin-top: 2.4rem;
}
.prose h3 { font-family: var(--round); font-size: 1.03rem; font-weight: 700; margin-top: 1.8rem; }
.prose p { color: var(--muted); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose ul, .prose ol { color: var(--muted); padding-left: 1.2rem; }
.prose li + li { margin-top: 0.35rem; }
.prose code {
  font-family: var(--mono); font-size: 0.88em;
  background: var(--card-2); border: 1px solid var(--line-soft);
  padding: 0.1em 0.36em; border-radius: 0.35rem; color: var(--ink);
}
.prose pre {
  background: var(--card-2); border: 1px solid var(--line);
  padding: 1rem 1.1rem; border-radius: 0.9rem; overflow-x: auto;
}
.prose pre code { background: none; border: 0; padding: 0; font-size: 0.86rem; }
.prose blockquote {
  margin-left: 0; padding-left: 1.1rem; border-left: 2px solid var(--accent);
  color: var(--muted); font-style: italic;
}
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.2rem 0; }

.meta { font-family: var(--round); font-size: 0.78rem; color: var(--faint); display: flex; gap: 0.6rem; flex-wrap: wrap; }
.meta time { color: var(--faint); }

/* ─── post list ─── */
.postlist { list-style: none; margin: 0; padding: 0; }
.postlist li { border-bottom: 1px solid var(--line-soft); }
.postlist li:last-child { border-bottom: 0; }
.postlist a { display: block; text-decoration: none; padding: 1.25rem 0; }
.postlist h2 {
  font-family: var(--serif); font-weight: 400; font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  margin: 0.4rem 0 0; color: var(--ink); line-height: 1.25;
}
.postlist p { margin: 0.5rem 0 0; color: var(--muted); font-size: 0.94rem; max-width: 60ch; }
.postlist a:hover h2 { color: var(--accent); }

/* ─── changelog ─── */
.entries { list-style: none; margin: 0; padding: 0; }
.entry { padding: 1.6rem 0; border-bottom: 1px solid var(--line-soft); }
.entry:last-child { border-bottom: 0; }
.entry-head { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.pill {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-family: var(--round); font-size: 0.72rem; font-weight: 700;
  background: var(--card); border: 1px solid var(--line); color: var(--brand-ink, var(--accent));
  padding: 0.22rem 0.6rem; border-radius: 100px; text-decoration: none;
}
.pill img { width: 14px; height: 14px; border-radius: 4px; }
.entry h2 {
  font-family: var(--serif); font-weight: 400; font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  margin: 0.55rem 0 0; line-height: 1.25;
}
.entry .body { margin-top: 0.6rem; }
.entry .body p { margin: 0 0 0.6rem; color: var(--muted); font-size: 0.95rem; }
.entry .body p:last-child { margin-bottom: 0; }
.entry .body code {
  font-family: var(--mono); font-size: 0.88em; background: var(--card-2);
  border: 1px solid var(--line-soft); padding: 0.1em 0.36em; border-radius: 0.35rem; color: var(--ink);
}

/* ─── note panel ─── */
.note {
  background: var(--card); border: 1px solid var(--line); border-radius: 1.1rem;
  padding: clamp(1.1rem, 2.4vw, 1.6rem); box-shadow: var(--shadow);
}
.note p { margin: 0 0 0.8rem; color: var(--muted); font-size: 0.97rem; }
.note p:last-child { margin-bottom: 0; }
.note strong { color: var(--ink); font-weight: 600; }

/* ─── footer ─── */
footer {
  margin-top: clamp(2rem, 3vw, 3rem); border-top: 1px solid var(--line);
  padding: 1.15rem 0 1.85rem; display: flex; justify-content: space-between;
  gap: 0.75rem 1rem; flex-wrap: wrap; align-items: center;
}
footer nav { display: flex; gap: 1.15rem; flex-wrap: wrap; }
footer a.eyebrow { color: var(--muted); text-decoration: none; }
footer a.eyebrow:hover { color: var(--accent); }

/* ─── 404 ─── */
body.center { min-height: 100vh; display: grid; place-items: center; padding: 2rem 1.25rem; }
body.center main { max-width: 34rem; text-align: center; }
body.center .mark { width: 44px; height: 44px; margin: 0 auto 1.5rem; display: block; }
body.center h1 {
  font-family: var(--serif); font-weight: 400; font-size: clamp(1.8rem, 5vw, 2.6rem);
  line-height: 1.15; letter-spacing: -0.015em; margin: 0.8rem 0 0; text-wrap: balance;
}
body.center p { color: var(--muted); margin: 1rem 0 0; }
.actions { display: flex; gap: 0.6rem; justify-content: center; flex-wrap: wrap; margin-top: 2rem; }

/* ─── reveal on scroll: pure CSS, no observer.
   Browsers without animation-timeline simply get no animation.

   Deliberately animates transform ONLY — never opacity. A scroll-driven
   opacity fade leaves content at opacity:0 for anything that does not
   scroll: search engine renderers, social preview crawlers, screenshot
   services, print. Moving 18px is the whole effect; being invisible was
   never the point, and it is not worth the indexing risk. ─── */
.rv { transform: none; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .rv {
      animation: rise 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) both;
      animation-timeline: view();
      animation-range: entry 0% cover 20%;
    }
  }
}
@keyframes rise {
  from { transform: translateY(18px); }
  to { transform: none; }
}

/* ─── responsive ─── */
@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; gap: 1.75rem; }
  .hero .deck { max-width: none; }
}
@media (max-width: 780px) {
  .app { grid-template-columns: 1fr; gap: 1.75rem; }
  /* Single column: text always leads, screenshots always follow. */
  .app:nth-of-type(even) .stage, .stage { order: 0; }
  .app-body .copy { max-width: none; }
  .contact, footer { flex-direction: column; align-items: flex-start; }
  .mainnav { gap: 0.85rem; }
}
@media (max-width: 420px) {
  .masthead { gap: 0.6rem; }
  .mainnav { order: 3; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slide { transition: none; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ─── legal documents ───
   The bodies are verbatim HTML lifted from each product's own source, so the
   markup is whatever that source used (h1/h2/p/ul/strong/em/a). These rules
   fit that markup into the site rather than the other way round — the text is
   never reformatted to suit the design. */
.legal h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.5rem, 3.2vw, 2.1rem); line-height: 1.15;
  margin: 0 0 0.2rem; letter-spacing: -0.015em;
}
.legal .meta,
.legal .subtitle,
.legal > p.muted:first-child {
  display: block; font-family: var(--round); font-size: 0.78rem;
  color: var(--faint); margin: 0 0 1.6rem;
}
.legal h2 {
  font-family: var(--round); font-weight: 700; font-size: 1rem;
  color: var(--ink); margin-top: 2.2rem; margin-bottom: 0.5rem; letter-spacing: 0;
}
.legal p, .legal li { color: var(--muted); font-size: 0.97rem; }
.legal ul { padding-left: 1.15rem; margin-top: 0.6rem; }
.legal li { margin: 0.35rem 0; }
.legal strong { color: var(--ink); font-weight: 600; }
.legal a { color: var(--brand-ink, var(--accent)); }
/* The source pages ended with their own inter-document nav; the site
   provides that below the body, so hide the duplicate. */
.legal .nav { display: none; }
.meta a + a { margin-left: 0.6rem; }
