/* =====================================================================
   Fated Truths — design system
   Romantic noir. Editorial serif over compact sans. Premium motion:
   slow, controlled, no bounce. Cards are paper: 3–5% settle at most.
   ===================================================================== */

/* ---------- fonts (self-hosted variable fonts, latin subset) ---------- */
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 300 700; font-display: swap; src: url('/assets/fonts/cormorant-garamond-latin-var.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 300 700; font-display: swap; src: url('/assets/fonts/cormorant-garamond-latin-italic-var.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 100 1000; font-display: swap; src: url('/assets/fonts/dm-sans-latin-var.woff2') format('woff2'); }

/* ---------- tokens ---------- */
:root {
  --ink: #0D0B10;
  --panel: #17131B;
  --raised: #211B26;
  --bone: #F7F0E8;
  --muted: #9D939F;
  --coral: #FF4D5E;
  --lilac: #B783FF;
  --gold: #F5C451;
  --mint: #63D5B2;
  --sky: #58B8FF;               /* Becoming level accent (from the app theme) */
  --line: rgba(247, 240, 232, 0.10);
  --line-strong: rgba(247, 240, 232, 0.18);

  /* derived */
  --muted-strong: #B5ABB8;          /* 7:1 on ink for small secondary text */
  --coral-ink: #1A0A0D;             /* text on coral buttons */
  --coral-soft: rgba(255, 77, 94, 0.14);
  --lilac-soft: rgba(183, 131, 255, 0.14);
  --gold-soft: rgba(245, 196, 81, 0.14);
  --mint-soft: rgba(99, 213, 178, 0.14);
  --sky-soft: rgba(88, 184, 255, 0.14);

  --serif: 'Cormorant Garamond', 'Cormorant', Georgia, 'Times New Roman', serif;
  --sans: 'DM Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* type scale (fluid) */
  --fs-display: clamp(3rem, 2.2rem + 5vw, 7rem);
  --fs-h1: clamp(2.6rem, 1.8rem + 3.6vw, 5rem);
  --fs-h2: clamp(2rem, 1.5rem + 2.2vw, 3.4rem);
  --fs-h3: clamp(1.5rem, 1.25rem + 1vw, 2rem);
  --fs-lead: clamp(1.1rem, 1rem + 0.4vw, 1.3rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-label: 0.75rem;

  /* space */
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section: clamp(4.5rem, 6vw + 2rem, 9rem);
  --container: 72rem;
  --container-narrow: 46rem;
  --radius: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  /* motion — Premium archetype */
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-enter: cubic-bezier(0.05, 0.7, 0.1, 1);
  --ease-exit: cubic-bezier(0.3, 0, 1, 1);
  --ease-paper: cubic-bezier(0.22, 0.9, 0.3, 1.04);
  --dur-quick: 160ms;
  --dur-standard: 420ms;
  --dur-slow: 720ms;
  --dur-reveal: 1000ms;

  --shadow-card: 0 1px 0 rgba(247,240,232,0.06) inset, 0 20px 50px -20px rgba(0,0,0,0.7), 0 8px 18px -10px rgba(0,0,0,0.6);
  --shadow-lift: 0 1px 0 rgba(247,240,232,0.08) inset, 0 36px 70px -24px rgba(0,0,0,0.8), 0 14px 26px -12px rgba(0,0,0,0.6);

  color-scheme: dark;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100dvh;
  overflow-x: clip;
  position: relative;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--serif); font-weight: 500; line-height: 1.05; letter-spacing: -0.01em; text-wrap: balance; }
p { margin: 0; }
p + p { margin-top: 1em; }
a { color: inherit; text-decoration-color: rgba(247,240,232,0.35); text-underline-offset: 0.18em; transition: color var(--dur-quick) var(--ease-standard), text-decoration-color var(--dur-quick) var(--ease-standard); }
a:hover { text-decoration-color: currentColor; }
ul, ol { margin: 0; padding: 0; }
::selection { background: var(--coral); color: var(--coral-ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
:focus:not(:focus-visible) { outline: none; }
main:focus { outline: none; }

/* ---------- utilities ---------- */
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.container--narrow { width: min(100% - 2 * var(--gutter), var(--container-narrow)); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: 0.75rem 1rem; background: var(--gold); color: var(--ink); border-radius: var(--radius-pill); font-weight: 600; text-decoration: none; transition: top var(--dur-quick) var(--ease-standard); }
.skip-link:focus { top: 1rem; }
.is-muted { color: var(--muted); }
.serif { font-family: var(--serif); }
.italic { font-style: italic; }
.accent--coral { color: var(--coral); }
.accent--lilac { color: var(--lilac); }
.accent--gold { color: var(--gold); }
.accent--mint { color: var(--mint); }
.accent--sky { color: var(--sky); }
.text-center { text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.75rem;
  font-family: var(--sans); font-size: var(--fs-label); font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted-strong);
}
.eyebrow::before { content: ''; width: 1.75rem; height: 1px; background: currentColor; opacity: 0.6; }
.eyebrow--plain::before { display: none; }
.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--muted-strong); max-width: 42ch; text-wrap: pretty; }
.prose { max-width: 66ch; }
.prose p, .prose li { color: var(--muted-strong); }
.prose strong { color: var(--bone); font-weight: 600; }
.prose h2 { font-size: var(--fs-h3); margin-top: 2.75rem; margin-bottom: 0.9rem; color: var(--bone); }
.prose h3 { font-size: 1.35rem; margin-top: 2rem; margin-bottom: 0.6rem; color: var(--bone); }
.prose ul, .prose ol { padding-left: 1.25rem; margin: 0.75rem 0 1rem; }
.prose li + li { margin-top: 0.4rem; }
.prose li::marker { color: var(--gold); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
.prose a { color: var(--bone); }
.prose .callout { border: 1px solid var(--line-strong); border-left: 3px solid var(--gold); background: var(--panel); padding: 1rem 1.25rem; border-radius: 12px; margin: 1.25rem 0; }
.prose .callout--todo { border-left-color: var(--coral); }
.prose .callout p { margin: 0; }
.prose .callout p + p { margin-top: 0.6em; }
.prose code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9em; background: var(--raised); padding: 0.1em 0.4em; border-radius: 6px; color: var(--bone); }

/* ---------- atmosphere (ambient layer) ---------- */
.atmosphere { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.atmosphere__glow {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.55; will-change: transform;
  animation: drift 26s var(--ease-standard) infinite alternate;
}
.atmosphere__glow--coral { width: 60vmax; height: 60vmax; left: -18vmax; top: -20vmax; background: radial-gradient(circle, rgba(255,77,94,0.32), transparent 62%); }
.atmosphere__glow--lilac { width: 55vmax; height: 55vmax; right: -16vmax; top: 20vh; background: radial-gradient(circle, rgba(183,131,255,0.26), transparent 62%); animation-duration: 34s; animation-delay: -12s; }
.atmosphere__glow--gold { width: 40vmax; height: 40vmax; left: 30vw; bottom: -22vmax; background: radial-gradient(circle, rgba(245,196,81,0.16), transparent 62%); animation-duration: 42s; animation-delay: -20s; }
.atmosphere__grain {
  position: absolute; inset: -50%; opacity: 0.07; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.6s steps(6) infinite;
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(6vw, 4vh, 0) scale(1.08); }
}
@keyframes grain {
  0% { transform: translate(0,0); } 20% { transform: translate(-6%,4%); } 40% { transform: translate(4%,-6%); }
  60% { transform: translate(-3%,7%); } 80% { transform: translate(7%,-2%); } 100% { transform: translate(0,0); }
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--ink) 78%, transparent);
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-standard) var(--ease-standard), background var(--dur-standard) var(--ease-standard);
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: color-mix(in srgb, var(--ink) 88%, transparent); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; min-height: 44px; }
.brand__mark { width: 40px; height: 40px; object-fit: contain; filter: drop-shadow(0 0 14px rgba(255,77,94,0.35)); transition: filter var(--dur-standard) var(--ease-standard), transform var(--dur-standard) var(--ease-paper); }
.brand:hover .brand__mark { filter: drop-shadow(0 0 20px rgba(255,77,94,0.6)); transform: rotate(-4deg); }
.brand__name { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; letter-spacing: 0.01em; }
.brand--footer .brand__mark { width: 32px; height: 32px; }

.site-nav__list { list-style: none; display: flex; align-items: center; gap: 0.25rem; }
.site-nav__link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.9rem; border-radius: var(--radius-pill); font-size: var(--fs-small); font-weight: 500; color: var(--muted-strong); text-decoration: none; position: relative; }
.site-nav__link::after { content: ''; position: absolute; left: 0.9rem; right: 0.9rem; bottom: 8px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform var(--dur-standard) var(--ease-standard); }
.site-nav__link:hover, .site-nav__link:focus-visible { color: var(--bone); }
.site-nav__link:hover::after, .site-nav__link:focus-visible::after { transform: scaleX(1); }
.site-nav__cta { margin-left: 0.5rem; }

.nav-toggle { display: none; position: relative; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 50%; background: transparent; cursor: pointer; }
.nav-toggle__bar { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--bone); transition: transform var(--dur-standard) var(--ease-standard), opacity var(--dur-quick) var(--ease-standard); }
.nav-toggle__bar:nth-child(1) { top: 17px; }
.nav-toggle__bar:nth-child(2) { top: 25px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--panel); border-bottom: 1px solid var(--line); padding: 0.5rem var(--gutter) 1.25rem; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: transform var(--dur-standard) var(--ease-enter), opacity var(--dur-standard) var(--ease-standard), visibility 0s linear var(--dur-standard); }
  .site-nav.is-open { transform: none; opacity: 1; visibility: visible; transition-delay: 0s; }
  .site-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav__link { min-height: 48px; padding: 0 0.5rem; font-size: 1.05rem; border-radius: 8px; }
  .site-nav__link::after { display: none; }
  .site-nav__cta { margin: 0.75rem 0 0; }
  .site-nav__cta .button { width: 100%; }
}

/* ---------- buttons ---------- */
.button {
  --btn-bg: var(--raised); --btn-fg: var(--bone); --btn-border: var(--line-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 52px; padding: 0.8rem 1.6rem; border-radius: var(--radius-pill);
  background: var(--btn-bg); color: var(--btn-fg); border: 1px solid var(--btn-border);
  font-weight: 600; font-size: 1rem; letter-spacing: 0.01em; text-decoration: none; cursor: pointer;
  position: relative; overflow: hidden; isolation: isolate;
  transition: transform var(--dur-quick) var(--ease-standard), box-shadow var(--dur-standard) var(--ease-standard), background var(--dur-quick) var(--ease-standard), border-color var(--dur-quick) var(--ease-standard);
}
.button::after { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(120px 60px at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,0.22), transparent 70%); opacity: 0; transition: opacity var(--dur-standard) var(--ease-standard); }
.button:hover::after, .button:focus-visible::after { opacity: 1; }
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0) scale(0.985); transition-duration: 80ms; }
.button--primary { --btn-bg: var(--coral); --btn-fg: var(--coral-ink); --btn-border: transparent; box-shadow: 0 10px 30px -10px rgba(255,77,94,0.55); }
.button--primary:hover { box-shadow: 0 16px 40px -12px rgba(255,77,94,0.75); }
.button--ghost { --btn-bg: transparent; }
.button--ghost:hover { border-color: rgba(247,240,232,0.4); }
.button--gold { --btn-bg: var(--gold); --btn-fg: var(--ink); --btn-border: transparent; }
.button--small { min-height: 44px; padding: 0.5rem 1.1rem; font-size: var(--fs-small); }
.button.is-static { cursor: default; color: var(--muted-strong); }
.button.is-static:hover { transform: none; }
.button.is-static::after { display: none; }
.button[hidden] { display: none; }
.button__icon { width: 1.1em; height: 1.1em; flex: none; }

/* ---------- surfaces ---------- */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.card {
  position: relative; background: linear-gradient(160deg, var(--raised), var(--panel) 70%);
  border: 1px solid var(--line-strong); border-radius: var(--radius); box-shadow: var(--shadow-card);
  transition: transform var(--dur-standard) var(--ease-paper), box-shadow var(--dur-standard) var(--ease-standard), border-color var(--dur-standard) var(--ease-standard);
}
.card::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(60% 40% at 50% 0%, rgba(247,240,232,0.06), transparent 70%); }
.card--hover:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); border-color: rgba(247,240,232,0.26); }

/* ---------- sections ---------- */
.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: calc(var(--section) * 0.6); }
.section__head { max-width: 48rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section__head .eyebrow { margin-bottom: 1.1rem; }
.section__head h2 { font-size: var(--fs-h2); margin-bottom: 1rem; }
.section__head .lead { max-width: 56ch; }
.section--rule { border-top: 1px solid var(--line); }

/* ---------- page header (interior pages) ---------- */
.page-head { padding: clamp(3rem, 6vw, 5.5rem) 0 clamp(2rem, 4vw, 3rem); }
.page-head .eyebrow { margin-bottom: 1.1rem; }
.page-head h1 { font-size: var(--fs-h1); margin-bottom: 1rem; }
.page-head .lead { max-width: 56ch; }
.page-head__meta { margin-top: 1.25rem; font-size: var(--fs-small); color: var(--muted); }
.page-head__meta strong { color: var(--muted-strong); font-weight: 500; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 3.5rem 0 2.5rem; margin-top: var(--section); background: linear-gradient(to bottom, transparent, rgba(23,19,27,0.7)); }
.site-footer__inner { display: grid; gap: 2rem; grid-template-columns: 1fr; }
.site-footer__tagline { margin-top: 0.9rem; color: var(--muted-strong); max-width: 36ch; }
.site-footer__nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
.site-footer__nav a, .site-footer__nav span { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted-strong); text-decoration: none; font-size: var(--fs-small); }
.site-footer__nav a:hover { color: var(--bone); }
.site-footer__legal { font-size: 0.85rem; color: var(--muted); }
.site-footer__note { display: block; margin-top: 0.3rem; }
@media (min-width: 760px) {
  .site-footer__inner { grid-template-columns: 1.2fr 1fr; grid-template-areas: 'brand nav' 'legal legal'; align-items: start; }
  .site-footer__brand { grid-area: brand; } .site-footer__nav { grid-area: nav; justify-self: end; } .site-footer__legal { grid-area: legal; }
  .site-footer__nav ul { justify-content: flex-end; }
}

/* ---------- scroll reveal (primary entrance) ---------- */
.js [data-reveal] { opacity: 0; transform: translate3d(0, 22px, 0); transition: opacity var(--dur-slow) var(--ease-standard), transform var(--dur-slow) var(--ease-enter); transition-delay: var(--reveal-delay, 0ms); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal="scale"] { transform: scale(0.96); }
.js [data-reveal-group] > * { --reveal-delay: calc(var(--i, 0) * 70ms); }

/* ---------- prompt cards (shared physical card) ---------- */
.prompt-card {
  --card-accent: var(--coral);
  position: relative;
  aspect-ratio: 5 / 7; width: 100%; padding: 1.4rem;
  display: flex; flex-direction: column; justify-content: space-between;
  background: linear-gradient(165deg, #2A2230 0%, var(--raised) 45%, #191420 100%);
  border: 1px solid rgba(247,240,232,0.16); border-radius: 20px;
  box-shadow: var(--shadow-card), 0 0 0 1px rgba(0,0,0,0.35);
  color: var(--bone); text-align: left; overflow: hidden; isolation: isolate;
}
.prompt-card::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(80% 50% at 50% -10%, color-mix(in srgb, var(--card-accent) 26%, transparent), transparent 70%); }
.prompt-card::after { content: ''; position: absolute; inset: 10px; border-radius: 14px; border: 1px solid rgba(247,240,232,0.08); pointer-events: none; }
.prompt-card__meta { display: flex; justify-content: space-between; align-items: center; font-size: var(--fs-label); letter-spacing: 0.2em; text-transform: uppercase; color: var(--card-accent); font-weight: 600; }
.prompt-card__meta .pip { width: 8px; height: 8px; border-radius: 50%; background: var(--card-accent); box-shadow: 0 0 12px var(--card-accent); }
.prompt-card__text { font-family: var(--serif); font-size: clamp(1.35rem, 1.1rem + 1.2vw, 1.9rem); line-height: 1.2; font-weight: 500; text-wrap: pretty; }
.prompt-card__foot { font-size: var(--fs-label); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

/* ---------- status / toast ---------- */
.status { font-size: var(--fs-small); color: var(--mint); min-height: 1.5em; }
.status.is-error { color: var(--coral); }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .atmosphere__glow, .atmosphere__grain { animation: none; }
  .js [data-reveal] { opacity: 1; transform: none; }
}


/* ---- home.css ---- */
/* =====================================================================
   home.css — marketing home page.
   Builds on site.css tokens. Premium motion only: 350–720ms,
   cubic-bezier(0.4,0,0.2,1) family, no bounce, ≤4% paper settle.
   No page-wide ambient effects here — .atmosphere already owns that layer.
   ===================================================================== */

/* site.css declares .prompt-card::before/::after as absolute but never sets a
   containing block on .prompt-card. Scoped correction for the cards on this
   page (see report: belongs in site.css). */
/* ---------------------------------------------------------------
   1. HERO
   --------------------------------------------------------------- */
.hero { padding-block: clamp(2.25rem, 5vw, 4.5rem) clamp(3.5rem, 6vw, 6rem); }
.hero__inner { display: grid; gap: clamp(2.75rem, 5vw, 4rem); align-items: center; }

.hero__title {
  font-size: clamp(2.8rem, 1.9rem + 3.4vw, 4.6rem);
  line-height: 0.96;
  margin: 1.25rem 0 1.5rem;
}
.hero__line { display: block; }
.hero__line--accent { color: var(--coral); font-style: italic; }
.hero__lead { max-width: 40ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.hero__note {
  margin-top: 1.5rem; font-size: var(--fs-small); color: var(--muted);
  letter-spacing: 0.02em;
}

/* --- hero visual: brand mark + fanned deck --- */
.hero__visual { position: relative; display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
/* The real mark is itself a little card stack, so it sits above the deck like a
   wax seal rather than behind it (where it would read as a dark duplicate). */
.hero__mark {
  position: absolute; z-index: 4; pointer-events: none;
  width: clamp(3.75rem, 9vw, 5.5rem); height: auto;
  top: -2.5%; right: 2%;
  rotate: 6deg;
  filter: drop-shadow(0 0 22px rgba(255, 77, 94, 0.55)) drop-shadow(0 0 60px rgba(183, 131, 255, 0.35));
}

.deck {
  position: relative; z-index: 1;
  width: min(78%, 20rem); aspect-ratio: 5 / 7;
  margin-inline: auto;
  transform-style: preserve-3d;
}
.deck__card {
  position: absolute; inset: 0;
  transform-origin: 50% 88%;
  transition:
    transform 450ms var(--ease-enter),
    opacity 450ms var(--ease-standard),
    box-shadow var(--dur-standard) var(--ease-standard);
  will-change: transform, opacity;
}
.deck__card[data-pos="0"] { z-index: 3; opacity: 1;    transform: translate3d(0, 0, 0) rotate(-1.5deg) scale(1); }
.deck__card[data-pos="1"] { z-index: 2; opacity: 0.92; transform: translate3d(7%, -3.5%, 0) rotate(5deg) scale(0.955); }
.deck__card[data-pos="2"] { z-index: 1; opacity: 0.78; transform: translate3d(-8%, -6.5%, 0) rotate(-6.5deg) scale(0.92); }
.deck__card[data-pos="0"] { box-shadow: var(--shadow-lift), 0 0 0 1px rgba(0, 0, 0, 0.35); }

/* exit: the drawn card lifts and slides off (ease-in, ~300ms) */
.deck__card.is-leaving {
  z-index: 5;
  opacity: 0;
  transform: translate3d(-46%, -22%, 0) rotate(-17deg) scale(0.9);
  transition-duration: 300ms;
  transition-timing-function: var(--ease-exit);
}
/* reposition without animating, then deal back in */
.deck__card.is-instant { transition: none; }
.deck__card.is-dealing { opacity: 0; }

.deck__controls { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 0.6rem; text-align: center; }
.deck__draw[hidden] { display: none; }
.deck__caption { font-size: var(--fs-label); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); max-width: 26ch; }

/* --- hero entrance choreography (primary layer, ≤500ms total stagger) --- */
@keyframes ft-hero-rise {
  from { opacity: 0; transform: translate3d(0, 18px, 0); }
  to   { opacity: 1; transform: none; }
}
@keyframes ft-hero-deal {
  from { opacity: 0; transform: translate3d(0, 26px, 0) scale(0.97); }
  to   { opacity: 1; transform: none; }
}
.js .hero__step { animation: ft-hero-rise 620ms var(--ease-enter) both; }
.js .hero__visual.hero__step { animation-name: ft-hero-deal; animation-duration: 720ms; }
.js .hero__step[data-hero-step="1"] { animation-delay: 60ms; }
.js .hero__step[data-hero-step="2"] { animation-delay: 130ms; }
.js .hero__step[data-hero-step="3"] { animation-delay: 200ms; }
.js .hero__step[data-hero-step="4"] { animation-delay: 280ms; }
.js .hero__step[data-hero-step="5"] { animation-delay: 360ms; }
.js .hero__step[data-hero-step="6"] { animation-delay: 430ms; }
.js .hero__step[data-hero-step="7"] { animation-delay: 240ms; }

@media (min-width: 900px) {
  .hero__inner { grid-template-columns: 1.04fr 0.96fr; gap: clamp(3rem, 5vw, 5rem); }
  .deck { width: min(100%, 21rem); }
  .hero__mark { top: -14%; }
}

/* ---------------------------------------------------------------
   2. HOW IT WORKS
   --------------------------------------------------------------- */
.steps { list-style: none; position: relative; display: grid; gap: 2.5rem; padding-left: 3.75rem; }
.steps::before {
  content: ''; position: absolute; left: 1.4rem; top: 1.1rem; bottom: 1rem; width: 1px;
  background: linear-gradient(to bottom, rgba(245, 196, 81, 0.75), rgba(245, 196, 81, 0.12));
  --sx: 1; --sy: 0;
  transform: scale(var(--sx), var(--sy));
  transform-origin: top left;
  transition: transform var(--dur-reveal) var(--ease-standard) 160ms;
}
.steps.is-visible::before { --sx: 1; --sy: 1; }

.step { position: relative; }
.step__numeral {
  position: absolute; left: -3.75rem; top: -0.35rem;
  width: 2.8rem; text-align: center;
  font-family: var(--serif); font-size: 2rem; font-weight: 500; line-height: 1.2;
  color: var(--gold);
  /* soft ink mask so the connecting rule dissolves behind the numeral
     instead of stamping a hard rectangle over the ambient glow */
  background: radial-gradient(ellipse closest-side, var(--ink) 58%, rgba(13, 11, 16, 0) 100%);
  padding: 0.35rem 0.2rem;
}
.step__title { font-size: var(--fs-h3); margin-bottom: 0.6rem; }
.step__body { color: var(--muted-strong); max-width: 34ch; }

@media (min-width: 820px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 2rem clamp(2rem, 4vw, 3.5rem); padding-left: 0; }
  .steps::before {
    left: 0; right: 0; top: 1.85rem; bottom: auto; width: auto; height: 1px;
    background: linear-gradient(to right, rgba(245, 196, 81, 0.7), rgba(245, 196, 81, 0.12));
    --sx: 0; --sy: 1;
  }
  .step__numeral {
    position: static; display: inline-block; width: auto; text-align: left;
    font-size: clamp(2.1rem, 1.6rem + 1vw, 2.75rem);
    padding: 0.2rem 1.1rem 0.2rem 0.35rem; margin: 0 0 0.9rem -0.35rem;
  }
}

/* ---------------------------------------------------------------
   3. FIVE LEVELS
   --------------------------------------------------------------- */
.levels__row { list-style: none; display: grid; gap: 1rem; }
.level { --level-rot: 0deg; --level-shift: 0rem; }
.level__card {
  --level-accent: var(--bone);
  position: relative; height: 100%;
  display: flex; flex-direction: column; gap: 0.5rem;
  padding: clamp(1.25rem, 2vw, 1.6rem);
  background: linear-gradient(168deg, var(--raised), var(--panel) 72%);
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transform: translateY(var(--level-shift)) rotate(var(--level-rot)) perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform var(--dur-standard) var(--ease-paper), box-shadow var(--dur-standard) var(--ease-standard), border-color var(--dur-standard) var(--ease-standard);
}
/* secondary layer: accent bleed + glare follow the pointer, never the text */
.level__card::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(70% 45% at 50% 0%, color-mix(in srgb, var(--level-accent) 22%, transparent), transparent 72%);
  opacity: 0.85; transition: opacity var(--dur-standard) var(--ease-standard);
}
.level__card::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(120px 90px at var(--glare-x, 50%) var(--glare-y, 0%), rgba(247, 240, 232, 0.10), transparent 70%);
  opacity: 0; transition: opacity var(--dur-standard) var(--ease-standard);
}
.level__card:hover { border-color: color-mix(in srgb, var(--level-accent) 45%, var(--line-strong)); box-shadow: var(--shadow-lift); }
.level__card:hover::before { opacity: 1; }
.level__card:hover::after { opacity: 1; }

.level__numeral {
  font-family: var(--serif); font-size: clamp(2.4rem, 2rem + 1.4vw, 3.4rem); line-height: 1;
  color: var(--level-accent); opacity: 0.9;
}
.level__name { font-size: 1.6rem; }
.level__desc { color: var(--muted-strong); font-size: var(--fs-small); }
.level__index {
  margin-top: auto; padding-top: 1rem;
  font-size: var(--fs-label); letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted);
}

.level--perception .level__card { --level-accent: var(--coral); }
.level--connection .level__card { --level-accent: var(--lilac); }
.level--reflection .level__card { --level-accent: var(--gold); }
.level--repair     .level__card { --level-accent: var(--mint); }
.level--becoming   .level__card { --level-accent: var(--sky); }
.level--becoming .level__card { box-shadow: var(--shadow-card), 0 0 48px -20px rgba(88, 184, 255, 0.5); }

.levels__note {
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
  font-size: var(--fs-small); color: var(--muted-strong);
  border-left: 2px solid var(--gold); padding-left: 1rem; max-width: 56ch;
}

/* tablet: scroll-snapped row */
@media (min-width: 640px) and (max-width: 1099.98px) {
  .levels__row {
    grid-auto-flow: column; grid-auto-columns: minmax(15.5rem, 1fr);
    overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scrollbar-width: thin;
    padding-bottom: 1rem;
  }
  .level { scroll-snap-align: center; }
}
/* desktop: five across, alternating paper offset */
@media (min-width: 1100px) {
  .levels__row { grid-template-columns: repeat(5, 1fr); gap: 0.9rem; align-items: stretch; }
  .level:nth-child(odd)  { --level-rot: -1.1deg; --level-shift: 0rem; }
  .level:nth-child(even) { --level-rot: 1.3deg;  --level-shift: 1.4rem; }
  .level:nth-child(3)    { --level-rot: 0deg;    --level-shift: -0.6rem; }
}

/* ---------------------------------------------------------------
   4. CONSENT
   --------------------------------------------------------------- */
.consent__grid { list-style: none; display: grid; gap: 1rem; }
.consent__panel {
  padding: clamp(1.4rem, 2.4vw, 2rem);
  transition: border-color var(--dur-standard) var(--ease-standard), background var(--dur-standard) var(--ease-standard);
}
.consent__panel:hover { border-color: var(--line-strong); background: color-mix(in srgb, var(--panel) 80%, var(--raised)); }
.consent__title { font-size: 1.35rem; margin: 1rem 0 0.55rem; }
.consent__body { color: var(--muted-strong); font-size: var(--fs-small); max-width: 42ch; }

.glyph {
  width: 52px; height: 52px; fill: none;
  stroke: var(--gold); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
  opacity: 0.95;
  transition: stroke var(--dur-standard) var(--ease-standard), transform var(--dur-slow) var(--ease-paper);
}
.consent__panel:nth-child(2) .glyph { stroke: var(--lilac); }
.consent__panel:nth-child(3) .glyph { stroke: var(--mint); }
.consent__panel:nth-child(4) .glyph { stroke: var(--coral); }
.consent__panel:hover .glyph { transform: rotate(-3deg) scale(1.04); }

@media (min-width: 760px) { .consent__grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; } }

/* ---------------------------------------------------------------
   5. PRIVATE BY DESIGN
   --------------------------------------------------------------- */
/* .privacy__intro and .tonight__copy are section heads that also carry body
   content, so they repeat .section__head's rhythm rather than nest inside it. */
.privacy__intro .eyebrow,
.tonight__copy .eyebrow { margin-bottom: 1.1rem; }
.privacy__intro > h2,
.tonight__copy > h2 { font-size: var(--fs-h2); margin-bottom: 1rem; }

.privacy__inner { display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: start; }
.privacy__list { margin-top: 2rem; display: grid; gap: 0; }
.privacy__item { display: grid; gap: 0.2rem; padding: 1.05rem 0; border-top: 1px solid var(--line); }
.privacy__item:last-child { border-bottom: 1px solid var(--line); }
.privacy__item dt {
  font-size: var(--fs-label); letter-spacing: 0.2em; text-transform: uppercase;
  font-weight: 600; color: var(--mint);
}
.privacy__item dd { margin: 0; color: var(--muted-strong); font-size: var(--fs-small); }
.privacy__cta { margin-top: 1.75rem; }

.privacy__aside { position: relative; }
.truth-table-wrap {
  overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--panel);
}
.truth-table { width: 100%; border-collapse: collapse; font-size: 0.8125rem; text-align: left; }
.truth-table__caption {
  caption-side: top; text-align: left; padding: 1rem 1.1rem 0.75rem;
  font-family: var(--serif); font-size: 1.2rem; color: var(--bone);
}
.truth-table th, .truth-table td { padding: 0.7rem 0.75rem; vertical-align: top; border-top: 1px solid var(--line); }
.truth-table thead th {
  border-top: 0; font-size: var(--fs-label); letter-spacing: 0.12em; text-transform: uppercase;
  font-weight: 600; color: var(--muted-strong);
}
.truth-table thead th:nth-child(2) { color: var(--mint); }
.truth-table thead th:nth-child(3) { color: var(--gold); }
.truth-table tbody th { font-weight: 500; color: var(--bone); }
.truth-table tbody td { color: var(--muted-strong); }
.truth-table tbody tr:nth-child(even) { background: rgba(247, 240, 232, 0.022); }
.truth-table__note { margin-top: 1rem; font-size: var(--fs-small); color: var(--muted); max-width: 52ch; }

@media (min-width: 980px) { .privacy__inner { grid-template-columns: 1.02fr 0.98fr; gap: clamp(3rem, 5vw, 4.5rem); } }

/* ---------------------------------------------------------------
   6. FEATURE MOSAIC
   --------------------------------------------------------------- */
.mosaic {
  list-style: none; display: grid; gap: 1px; grid-template-columns: 1fr;
  background: var(--line); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden;
}
.mosaic__tile {
  background: var(--panel); padding: clamp(1.5rem, 2.6vw, 2.25rem);
  display: flex; flex-direction: column; gap: 0.5rem;
  transition: background var(--dur-standard) var(--ease-standard);
}
.mosaic__tile:hover { background: var(--raised); }
.mosaic__title { font-size: 1.35rem; }
.mosaic__body { color: var(--muted-strong); font-size: var(--fs-small); max-width: 46ch; }
.mosaic__body--quiet { color: var(--muted); font-style: italic; font-family: var(--serif); font-size: 1.05rem; }
.mosaic__figure {
  font-family: var(--serif); font-weight: 500; line-height: 0.85; letter-spacing: -0.02em;
  font-size: clamp(4.5rem, 3rem + 9vw, 8.5rem); color: var(--bone);
  margin-bottom: 0.5rem;
}
.mosaic__plus { color: var(--coral); font-size: 0.55em; vertical-align: super; }
.mosaic__figure--roman { font-size: clamp(3rem, 2rem + 4vw, 4.75rem); color: var(--gold); }
.mosaic__tile--figure { justify-content: flex-end; }
.mosaic__tile--patterns { justify-content: center; background: linear-gradient(175deg, var(--raised), var(--panel) 70%); }

@media (min-width: 700px) {
  .mosaic {
    grid-template-columns: repeat(2, 1fr);
    grid-template-areas:
      'figure figure'
      'levels packs'
      'daily  fav'
      'pair   pair'
      'patterns patterns'
      'plans  plans';
  }
}
@media (min-width: 1000px) {
  .mosaic {
    grid-template-columns: repeat(4, 1fr);
    grid-template-areas:
      'figure figure levels levels'
      'figure figure packs  daily'
      'pair   pair   fav    patterns'
      'plans  plans  plans  patterns';
  }
}
@media (min-width: 700px) {
  .mosaic__tile--figure { grid-area: figure; }
  .mosaic__tile--levels { grid-area: levels; }
  .mosaic__tile--packs { grid-area: packs; }
  .mosaic__tile--daily { grid-area: daily; }
  .mosaic__tile--pairing { grid-area: pair; }
  .mosaic__tile--favourites { grid-area: fav; }
  .mosaic__tile--patterns { grid-area: patterns; }
  .mosaic__tile--plans { grid-area: plans; }
}

/* ---------------------------------------------------------------
   7. TONIGHT'S QUESTION
   --------------------------------------------------------------- */
.tonight__inner { display: grid; gap: clamp(2.25rem, 4vw, 3.5rem); align-items: center; }
.tonight__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; margin-top: 1.75rem; }
.tonight__status { flex: 1 1 12rem; }
.tonight__note { margin-top: 1.25rem; font-size: var(--fs-small); color: var(--muted); max-width: 46ch; }

.tonight__card-wrap { display: flex; justify-content: center; }
.tonight__card {
  width: min(80%, 19rem);
  transform: rotate(-2deg) perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform var(--dur-standard) var(--ease-paper), box-shadow var(--dur-standard) var(--ease-standard);
}
.tonight__card:hover { box-shadow: var(--shadow-lift), 0 0 0 1px rgba(0, 0, 0, 0.35); }
.tonight__card .prompt-card__foot { color: var(--muted-strong); }

@media (min-width: 900px) {
  .tonight__inner { grid-template-columns: 1.1fr 0.9fr; }
  .tonight__card { width: min(100%, 20rem); }
}

/* ---------------------------------------------------------------
   8. FINAL CTA
   --------------------------------------------------------------- */
.download { text-align: center; }
.download__inner { position: relative; display: flex; flex-direction: column; align-items: center; padding-block: clamp(2rem, 4vw, 3.5rem); }
.download__mark {
  position: absolute; z-index: 0; pointer-events: none;
  top: 50%; left: 50%; translate: -50% -50%;
  width: clamp(10rem, 24vw, 15rem); height: auto;
  opacity: 0.14;
  filter: drop-shadow(0 0 70px rgba(255, 77, 94, 0.8)) drop-shadow(0 0 140px rgba(183, 131, 255, 0.5)) blur(1px);
}
.download__eyebrow,
.download__title,
.download__body,
.download__actions,
.download__fine { position: relative; z-index: 1; }
.download__eyebrow { color: var(--coral); }
.download__title { font-size: var(--fs-h1); margin: 1.1rem 0 1rem; }
.download__body { margin-inline: auto; }
.download__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 2rem; }
.download__fine { margin-top: 1.75rem; font-size: var(--fs-small); color: var(--muted); max-width: 44ch; margin-inline: auto; }

/* ---------------------------------------------------------------
   reduced motion — hold the layout, drop the movement
   --------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .js .hero__step { animation: none; opacity: 1; transform: none; }
  .deck__card,
  .deck__card.is-leaving { transition: none; }
  .deck__card.is-leaving { opacity: 0; transform: none; }
  .steps::before { --sx: 1; --sy: 1; transition: none; }
  .level__card,
  .tonight__card { transform: none; }
  .level:nth-child(n) { --level-rot: 0deg; --level-shift: 0rem; }
  .consent__panel:hover .glyph { transform: none; }
}


/* ---- legal.css ---- */
.toc { border: 1px solid var(--line); border-radius: var(--radius, 12px); background: var(--panel); padding: 1rem 1.25rem; }
.toc ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 0.75rem; }
.toc li { margin: 0; }
.toc a { display: inline-flex; align-items: center; min-height: 44px; padding: 0.25rem 0.85rem; border-radius: var(--radius-pill, 999px); border: 1px solid var(--line-strong); color: var(--muted-strong); font-size: var(--fs-small); text-decoration: none; }
.toc a:hover, .toc a:focus-visible { color: var(--bone); border-color: var(--gold); }
.page-related { margin-top: 2.5rem; color: var(--muted); font-size: var(--fs-small); }


/* ---- notfound.css ---- */
/* ---------- 404 page ---------- */
.notfound__inner {
  display: grid; gap: clamp(2rem, 5vw, 3rem); align-items: center;
  grid-template-columns: 1fr;
}
.notfound__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.notfound__card-wrap { display: flex; justify-content: center; }
.notfound__card {
  --card-accent: var(--lilac);
  width: min(220px, 60vw);
  transform: rotate(4deg);
  filter: saturate(0.85);
}
.notfound__card .prompt-card__text { background: linear-gradient(100deg, transparent, var(--line-strong), transparent); border-radius: 8px; height: 1.6em; }

@media (min-width: 760px) {
  .notfound__inner { grid-template-columns: 1.2fr 0.8fr; }
}

@media (prefers-reduced-motion: reduce) {
  .notfound__card { transform: rotate(4deg); }
}


/* ---- pair.css ---- */
/* ---------- pair invite / handoff page ---------- */
.pair { padding-block: clamp(2rem, 5vw, 4rem) var(--section); min-height: 60vh; }
.pair__head { padding-top: 0; }

.pair__code-wrap { margin: 2rem 0 2.5rem; }
.pair__code {
  display: flex; flex-wrap: nowrap; gap: clamp(0.3rem, 1.4vw, 0.75rem);
  margin-bottom: 1.5rem;
}
.pair__glyph {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 0; width: 100%; height: clamp(56px, 12vw, 72px); flex: 1 1 0; max-width: 84px;
  background: linear-gradient(160deg, var(--raised), var(--panel) 70%);
  border: 1px solid var(--line-strong); border-radius: 14px; box-shadow: var(--shadow-card);
  font-family: var(--serif); font-size: clamp(1.6rem, 1.2rem + 2vw, 2.6rem); font-weight: 600;
  color: var(--bone); letter-spacing: 0.02em;
  opacity: 0; transform: translateY(10px) scale(0.94);
  animation: pair-deal var(--dur-standard) var(--ease-enter) forwards;
  animation-delay: calc(var(--i, 0) * 55ms);
}
.pair__glyph:nth-child(1) { --i: 0; } .pair__glyph:nth-child(2) { --i: 1; }
.pair__glyph:nth-child(3) { --i: 2; } .pair__glyph:nth-child(4) { --i: 3; }
.pair__glyph:nth-child(5) { --i: 4; } .pair__glyph:nth-child(6) { --i: 5; }
@keyframes pair-deal {
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .pair__glyph { animation: none; opacity: 1; transform: none; }
}

.pair__code-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 0.75rem; }

.pair__fallback {
  padding: 1.5rem clamp(1.25rem, 4vw, 2rem); margin-top: 1.5rem;
  opacity: 0; animation: pair-fade-in var(--dur-standard) var(--ease-standard) forwards;
}
@keyframes pair-fade-in { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .pair__fallback { animation: none; opacity: 1; }
}
.pair__fallback p { margin: 0 0 0.75rem; }
.pair__fallback #pair-store-slot { margin-bottom: 1.1rem; }

.pair__manual-lead { color: var(--muted-strong); margin-bottom: 0.75rem; }
.pair__steps { list-style: decimal; padding-left: 1.35rem; display: flex; flex-direction: column; gap: 0.5rem; color: var(--muted-strong); }
.pair__steps li::marker { color: var(--gold); font-weight: 600; }

.pair__manual { padding: 1.5rem clamp(1.25rem, 4vw, 2rem); margin-top: 1.75rem; }
.pair__manual p:last-child { margin-top: 1rem; color: var(--muted); font-size: var(--fs-small); }

@media (max-width: 480px) {
  .pair__code-actions { flex-direction: column; }
  .pair__code-actions .button { width: 100%; }
}

.pair__title { font-family: var(--serif); font-weight: 500; font-size: var(--fs-h1); line-height: 1.05; letter-spacing: -0.01em; text-wrap: balance; margin: 0 0 1rem; }


/* ---- press.css ---- */
/* ---- press / brand kit page ---- */

.page-press .table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius, 12px); background: var(--panel); }
.fact-table { width: 100%; border-collapse: collapse; font-size: var(--fs-small); }
.fact-table th, .fact-table td { text-align: left; padding: 0.75rem 1.1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.fact-table tr:last-child th, .fact-table tr:last-child td { border-bottom: none; }
.fact-table th { color: var(--muted-strong); font-weight: 600; width: 40%; }
.fact-table td { color: var(--bone); }
.fact-table code { font-family: var(--sans); background: var(--raised); border: 1px solid var(--line-strong); border-radius: 6px; padding: 0.1em 0.45em; font-size: 0.9em; }

.swatch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
  gap: 0.85rem;
  margin-top: 1.25rem;
}
.swatch-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius, 14px);
  background: var(--panel);
  color: var(--bone);
  font-family: var(--sans);
  cursor: pointer;
  min-height: 44px;
  text-align: left;
  transition: transform var(--dur-standard) var(--ease-paper), border-color var(--dur-standard) var(--ease-standard), box-shadow var(--dur-standard) var(--ease-standard);
}
.swatch-card:hover, .swatch-card:focus-visible { transform: translateY(-3px); border-color: rgba(247,240,232,0.32); box-shadow: var(--shadow-card); }
.swatch-card.is-done { border-color: var(--gold); }
.swatch-card__chip {
  display: block;
  width: 100%;
  height: 3rem;
  border-radius: 10px;
  background: var(--swatch, var(--panel));
  border: 1px solid rgba(247,240,232,0.14);
}
.swatch-card__name { font-size: var(--fs-small); font-weight: 600; }
.swatch-card__hex { font-size: var(--fs-label); color: var(--muted-strong); letter-spacing: 0.02em; }

.type-sample-grid { display: grid; gap: 1.25rem; margin-top: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.type-sample { border: 1px solid var(--line); border-radius: var(--radius, 14px); background: var(--panel); padding: 1.5rem 1.25rem; }
.type-sample__label { margin: 0 0 0.75rem; font-size: var(--fs-label); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted-strong); }
.type-sample__text { margin: 0; color: var(--bone); }
.type-sample__text--serif { font-family: var(--serif); font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); line-height: 1.15; }
.type-sample__text--sans { font-family: var(--sans); font-size: var(--fs-lead); }

.page-press .asset-list { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: 0.6rem; }
.page-press .asset-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.4rem 0;
  color: var(--bone);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
}
.page-press .asset-list a:hover, .page-press .asset-list a:focus-visible { text-decoration-color: var(--gold); }


/* ---- support.css ---- */
/* ---------- support page ---------- */
.support-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

.accordion { display: flex; flex-direction: column; gap: 0.75rem; }
.accordion__item {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
}
.accordion__trigger {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 44px; padding: 1.1rem 1.4rem; cursor: pointer; list-style: none;
  font-family: var(--sans); font-weight: 600; color: var(--bone); font-size: 1.02rem;
  -webkit-tap-highlight-color: transparent;
}
.accordion__trigger::-webkit-details-marker { display: none; }
.accordion__trigger:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; border-radius: 8px; }
.accordion__chevron { flex: none; color: var(--muted-strong); transition: transform var(--dur-standard) var(--ease-standard); }
.accordion__item[open] .accordion__chevron { transform: rotate(180deg); color: var(--gold); }

.accordion__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--dur-standard) var(--ease-standard); }
.accordion__panel-inner { overflow: hidden; min-height: 0; }
.accordion__panel-inner p { padding: 0 1.4rem 1.25rem; margin: 0; color: var(--muted-strong); max-width: 62ch; }
.accordion__item[open] .accordion__panel { grid-template-rows: 1fr; }

@media (prefers-reduced-motion: reduce) {
  .accordion__panel { transition: none; }
  .accordion__chevron { transition: none; }
}

/* ---------- app details panel ---------- */
.app-details { padding: 1.75rem clamp(1.25rem, 4vw, 2.25rem); }
.app-details__title { font-size: var(--fs-h3); margin-bottom: 1rem; }
.app-details__list { display: grid; gap: 0.6rem 2rem; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); margin: 0 0 1.25rem; }
.app-details__list > div { display: flex; flex-direction: column; gap: 0.15rem; }
.app-details__list dt { font-size: var(--fs-label); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.app-details__list dd { margin: 0; color: var(--bone); font-weight: 500; }
.app-details__links { font-size: var(--fs-small); color: var(--muted-strong); }
.app-details__links a { color: var(--bone); }

@media (max-width: 480px) {
  .support-actions { flex-direction: column; }
  .support-actions .button { width: 100%; }
}
