/* TapVibe Games: one design system for every page.
   Type: Instrument Serif for display, Geist for text and UI. Both self-hosted under the SIL Open Font License 1.1. */

@font-face { font-family: 'Instrument Serif'; src: url(fonts/instrument-serif-normal-400.woff2) format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Instrument Serif'; src: url(fonts/instrument-serif-italic-400.woff2) format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Geist'; src: url(fonts/geist-normal-400-700.woff2) format('woff2'); font-weight: 400 700; font-style: normal; font-display: swap; }

:root {
  /* brand: sampled from the TapVibe logo */
  --navy: #090026; /* TAP */
  --turquoise: #00dfd5; /* V */
  --magenta: #cb3fc7; /* I */
  --amber: #ffbb0b; /* B */
  --orange: #fe8412; /* E */
  --blue: #04459e; /* GAME */
  --stripe: linear-gradient(90deg, var(--turquoise) 0 25%, var(--magenta) 25% 50%, var(--amber) 50% 75%, var(--orange) 75%);

  /* light surfaces (contrast measured against --bg) */
  --bg: #fbf9f4;
  --paper: #fdf6e7; /* the illustrations' own paper colour */
  --surface: #ffffff;
  --ink: var(--navy); /* 19:1 */
  --ink-2: #4a4666; /* 8.5:1 */
  --ink-3: #6a6684; /* 5.2:1 */
  --line: rgba(9, 0, 38, 0.1);
  --line-strong: rgba(9, 0, 38, 0.2);
  --link: var(--blue); /* 8.5:1 */
  --accent: #a8229f; /* magenta for small text, 5.9:1 */
  --accent-display: var(--magenta); /* large type only, 3.9:1 */
  --accent-tint: rgba(203, 63, 199, 0.1);
  --tick: #007a73; /* turquoise, darkened for icons on light, 5:1 */
  --orange-text: #a65000; /* orange, darkened for text on light */

  /* dark surfaces */
  --night: var(--navy);
  --night-2: #1c1356;
  --on-night: #f3f1fb;
  --on-night-2: #c9c4dc; /* 11.9:1 */
  --on-night-3: #a8a2c2; /* 8.3:1 */

  /* type */
  --font-display: 'Instrument Serif', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --font-text: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --t-display: clamp(3rem, 1.5rem + 4.6vw, 5.75rem);
  --t-h2: clamp(2.375rem, 1.6rem + 2.4vw, 3.75rem);
  --t-title: clamp(2rem, 1.6rem + 1.2vw, 2.75rem);
  --t-h3: 1.25rem;
  --t-lead: clamp(1.125rem, 1.03rem + 0.3vw, 1.3125rem);
  --t-body: 1.0625rem;
  --t-small: 0.9375rem;
  --t-caption: 0.8125rem;

  /* layout */
  --max: 1200px;
  --gutter: clamp(20px, 4vw, 32px);
  --section: clamp(88px, 10vw, 144px);
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --shadow: 0 1px 2px rgba(9, 0, 38, 0.04), 0 24px 48px -28px rgba(9, 0, 38, 0.3);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--t-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}
img { display: block; max-width: 100%; height: auto; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--link); text-decoration-thickness: from-font; text-underline-position: from-font; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(255, 187, 11, 0.4); color: var(--ink); }
.skip { position: absolute; left: -9999px; top: 12px; z-index: 50; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); }
.skip:focus { left: 12px; color: #fff; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- type roles */
h1, h2, h3, h4 { margin: 0; font-weight: 400; text-wrap: balance; }
h1 { font-family: var(--font-display); font-size: var(--t-display); line-height: 1.02; letter-spacing: -0.02em; }
h2 { font-family: var(--font-display); font-size: var(--t-h2); line-height: 1.06; letter-spacing: -0.015em; }
h3 { font-family: var(--font-text); font-size: var(--t-h3); line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; }
h1 em, h2 em { font-style: italic; color: var(--accent-display); }
.title { font-family: var(--font-display); font-weight: 400; font-size: var(--t-title); line-height: 1.08; letter-spacing: -0.01em; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: var(--t-caption); line-height: 1.4; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); margin-bottom: 20px; }
.eyebrow::before { content: ''; width: 24px; height: 3px; border-radius: 2px; background: var(--stripe); }
.lead { font-size: var(--t-lead); line-height: 1.55; color: var(--ink-2); max-width: 34em; }
.muted { color: var(--ink-2); }
.small { font-size: var(--t-small); line-height: 1.55; }

/* ---------- header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(251, 249, 244, 0.92); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.site-header::before { content: ''; display: block; height: 3px; background: var(--stripe); }
.logo { display: inline-flex; align-items: center; flex: none; border-radius: 4px; }
.logo img { width: auto; height: 29px; }
.site-nav { display: flex; align-items: center; gap: 2px; }
.site-nav a:not(.btn) { padding: 8px 12px; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-size: var(--t-small); font-weight: 500; }
.site-nav a:not(.btn):hover, .site-nav a[aria-current='page'] { color: var(--ink); background: rgba(9, 0, 38, 0.05); }
.site-nav .btn { margin-left: 10px; }
@media (max-width: 860px) { .site-nav a.opt { display: none; } }
@media (max-width: 480px) { .logo img { height: 23px; } .site-nav a:not(.btn) { display: none; } .site-nav .btn { margin-left: 0; } }

/* ---------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: 12px; border: 1px solid var(--ink); background: var(--ink); color: #fff; font: 600 var(--t-small) / 1 var(--font-text); letter-spacing: -0.005em; text-decoration: none; white-space: nowrap; transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease), color 0.2s var(--ease); }
.btn:hover { background: var(--night-2); border-color: var(--night-2); color: #fff; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn.secondary { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn.secondary:hover { background: var(--surface); border-color: var(--ink); color: var(--ink); }
.btn.sm { height: 38px; padding: 0 16px; border-radius: 10px; }
.btn.light { background: #fff; color: var(--ink); border-color: #fff; }
.btn.light:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.btn[aria-disabled='true'] { background: transparent; color: var(--ink-3); border: 1px dashed var(--line-strong); cursor: default; transform: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* chips */
.chip { align-self: flex-start; justify-self: start; display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 12px; border-radius: 999px; font-size: var(--t-caption); font-weight: 600; line-height: 1; white-space: nowrap; background: var(--accent-tint); color: var(--accent); }
.chip::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip.quiet { background: rgba(9, 0, 38, 0.06); color: var(--ink-2); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tags li { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: var(--t-caption); font-weight: 500; line-height: 1.3; color: var(--ink-2); }

/* ---------- hero */
.hero { padding: clamp(40px, 6vw, 88px) 0 clamp(72px, 9vw, 120px); }
.hero .container { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr); gap: clamp(36px, 5.5vw, 80px); align-items: center; }
.hero .lead { margin-top: 26px; }
.hero .actions { margin-top: 36px; }
.meta { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 36px 0 0; padding: 0; list-style: none; color: var(--ink-2); font-size: var(--t-small); }
.meta li { display: inline-flex; align-items: center; gap: 8px; }
.meta svg { width: 18px; height: 18px; color: var(--tick); flex: none; }
.frame { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--paper); box-shadow: 0 0 0 1px var(--line), var(--shadow); }
.frame > img { width: 100%; height: 100%; object-fit: cover; }
.hero .frame { aspect-ratio: 4 / 3; }
.badge { position: absolute; left: 16px; bottom: 16px; right: 16px; width: max-content; max-width: calc(100% - 32px); display: flex; align-items: center; gap: 12px; padding: 10px 16px 10px 10px; border-radius: 16px; background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 8px 24px -12px rgba(9, 0, 38, 0.35); font-size: var(--t-caption); line-height: 1.35; color: var(--ink-2); }
.badge b { display: block; color: var(--ink); font-weight: 600; font-size: 0.875rem; }
.stack { display: flex; flex: none; }
.stack img { width: 36px; height: 36px; border-radius: 10px; border: 2px solid #fff; }
.stack img + img { margin-left: -10px; }
@media (max-width: 960px) { .hero .container { grid-template-columns: 1fr; } .hero .frame { max-width: 680px; } }

/* ---------- sections */
.section { padding: var(--section) 0; }
.section.tight-top { padding-top: 0; }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head .lead { margin-top: 22px; }
.section-head.split { max-width: none; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 24px 64px; align-items: end; }
.section-head.split .lead { margin-top: 0; }
@media (max-width: 900px) { .section-head.split { grid-template-columns: 1fr; } }
.band { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* games: the featured game */
.game { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); }
.game .media { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: clamp(12px, 2vw, 28px); background: var(--paper); align-content: center; }
.game .media img { width: 100%; border-radius: 14px; aspect-ratio: 16 / 9; object-fit: cover; }
.game .media img:first-child { grid-column: 1 / -1; aspect-ratio: 1024 / 500; }
.game .body { padding: clamp(28px, 3.6vw, 48px); display: flex; flex-direction: column; gap: 20px; }
.app-id { display: flex; align-items: center; gap: 16px; }
.app-id img { width: 64px; height: 64px; border-radius: 15px; box-shadow: 0 0 0 1px var(--line); flex: none; }
.app-id .title { display: block; }
.app-id small { display: block; margin-top: 6px; font-size: var(--t-caption); color: var(--ink-3); font-weight: 500; }
.game .body > p { color: var(--ink-2); }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--line); }
.facts div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts div:nth-child(odd) { padding-right: 16px; }
.facts dt { font-size: var(--t-caption); color: var(--ink-3); font-weight: 500; line-height: 1.4; }
.facts dd { margin: 2px 0 0; font-weight: 600; font-size: var(--t-small); line-height: 1.4; }
.label { font-size: var(--t-caption); color: var(--ink-3); font-weight: 500; margin-bottom: 10px; }
.fine { font-size: var(--t-caption); color: var(--ink-3); line-height: 1.5; }
@media (max-width: 960px) { .game { grid-template-columns: 1fr; } }

/* games: the shelf of what's next */
.shelf-label { display: flex; align-items: center; gap: 16px; margin: clamp(48px, 6vw, 72px) 0 20px; font-size: var(--t-caption); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.shelf-label::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.shelf { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.tile { display: flex; flex-direction: column; gap: 10px; padding: 12px 12px 26px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.tile .art { aspect-ratio: 16 / 10; border-radius: 14px; display: grid; place-items: center; margin-bottom: 12px; background: var(--tint, var(--paper)); }
.tile .art img { width: 38%; aspect-ratio: 1; border-radius: 22%; box-shadow: 0 0 0 1px rgba(9, 0, 38, 0.06), 0 18px 34px -18px rgba(9, 0, 38, 0.45); transition: transform 0.5s var(--ease); }
.tile:hover .art img { transform: translateY(-4px) rotate(-2deg); }
.tile > :not(.art) { margin-left: 14px; margin-right: 14px; }
.tile .title { font-size: 2rem; margin-top: 4px; }
.tile p { color: var(--ink-2); font-size: var(--t-small); line-height: 1.6; }
.tile.invite { background: var(--night); border-color: var(--night); color: var(--on-night); padding: 32px; justify-content: space-between; gap: 24px; }
.tile.invite > * { margin: 0; }
.tile.invite .title { font-size: 2.25rem; color: #fff; }
.tile.invite .title em { color: var(--turquoise); }
.tile.invite p { color: var(--on-night-2); margin-top: 12px; }
@media (max-width: 960px) { .shelf { grid-template-columns: 1fr 1fr; } .tile.invite { grid-column: 1 / -1; } }
@media (max-width: 620px) { .shelf { grid-template-columns: 1fr; } }

/* why: the research (dark) */
.dark { background: radial-gradient(900px 520px at 92% -14%, rgba(203, 63, 199, 0.2), transparent 62%), radial-gradient(1100px 620px at 70% 0%, var(--night-2), var(--night) 66%); color: var(--on-night); }
.dark .eyebrow { color: var(--amber); }
.dark h2 em { color: var(--turquoise); }
.dark .lead, .dark .muted { color: var(--on-night-2); }
.dark a { color: var(--amber); }
.dark a:hover { color: #fff; }
.idea { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.idea .lead { margin-top: 24px; }
.idea .orb { width: 100%; max-width: 340px; justify-self: end; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--paper); box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.04), 0 0 0 22px rgba(255, 255, 255, 0.025); }
.idea .orb img { width: 100%; height: 100%; object-fit: cover; }
.studies { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); margin-top: clamp(56px, 7vw, 96px); }
.study { border-top: 1px solid rgba(255, 255, 255, 0.16); padding-top: 28px; display: flex; flex-direction: column; gap: 12px; }
.study .figure { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; margin-bottom: 4px; }
.study .figure strong { font-family: var(--font-display); font-weight: 400; font-size: 4rem; line-height: 0.9; letter-spacing: -0.02em; color: #fff; font-variant-numeric: lining-nums; }
.study .figure span { font-size: var(--t-caption); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--on-night-3); }
.study h3 { color: #fff; }
.study p { color: var(--on-night-2); font-size: var(--t-small); line-height: 1.6; }
.study cite { margin-top: auto; padding-top: 8px; font-style: normal; font-size: var(--t-caption); line-height: 1.5; color: var(--on-night-3); }
.note { margin-top: clamp(48px, 6vw, 72px); padding: 24px 28px; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: var(--r); display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; color: #dcd8ea; font-size: var(--t-small); line-height: 1.65; }
.note svg { width: 22px; height: 22px; color: var(--amber); margin-top: 2px; }
.note strong { color: #fff; font-weight: 600; }
@media (max-width: 900px) { .idea { grid-template-columns: 1fr; } .idea .orb { justify-self: start; max-width: 220px; } .studies { grid-template-columns: 1fr; gap: 36px; } }

/* principles */
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3vw, 40px); }
.principle { display: flex; flex-direction: column; gap: 10px; }
.principle .frame { aspect-ratio: 5 / 4; margin-bottom: 14px; box-shadow: 0 0 0 1px var(--line); }
.principle .frame img { object-fit: contain; padding: 4%; transition: transform 0.6s var(--ease); }
.principle:hover .frame img { transform: scale(1.04); }
.principle .num { font-size: var(--t-caption); font-weight: 600; letter-spacing: 0.06em; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.principle p { color: var(--ink-2); }
.promises { margin: clamp(48px, 6vw, 72px) 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.promises li { display: flex; gap: 12px; align-items: flex-start; padding: 20px 22px; font-size: var(--t-small); line-height: 1.5; color: var(--ink-2); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.promises li:nth-child(3n) { border-right: 0; }
.promises li:nth-last-child(-n + 3) { border-bottom: 0; }
.promises b { display: block; color: var(--ink); font-weight: 600; }
.promises svg { width: 20px; height: 20px; flex: none; color: var(--tick); margin-top: 1px; }
@media (max-width: 900px) {
  .principles { grid-template-columns: 1fr; max-width: 560px; }
  .promises { grid-template-columns: 1fr; }
  .promises li { border-right: 0; }
  .promises li:nth-last-child(-n + 3) { border-bottom: 1px solid var(--line); }
  .promises li:last-child { border-bottom: 0; }
}

/* closing call to action */
.cta { text-align: center; }
.cta h2 { max-width: 15em; margin: 0 auto; }
.cta .lead { margin: 22px auto 0; }
.cta .actions { justify-content: center; margin-top: 36px; }

/* ---------- inner pages */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; padding: 0; list-style: none; font-size: var(--t-caption); color: var(--ink-3); }
.crumbs li + li::before { content: '/'; margin-right: 8px; color: var(--line-strong); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.page-hero { padding: clamp(36px, 5vw, 64px) 0 clamp(64px, 8vw, 104px); }
.page-hero .container { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(36px, 5vw, 72px); align-items: center; }
.page-hero .app-id { margin-bottom: 26px; }
.page-hero .lead { margin-top: 24px; }
.page-hero .actions { margin-top: 32px; }
.page-hero .frame { aspect-ratio: 1024 / 500; }
@media (max-width: 960px) { .page-hero .container { grid-template-columns: 1fr; } }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px); counter-reset: step; }
.step { border-top: 1px solid var(--line-strong); padding-top: 24px; }
.step::before { counter-increment: step; content: '0' counter(step); display: block; font-family: var(--font-display); font-size: 3rem; line-height: 1; color: var(--tick); margin-bottom: 16px; font-variant-numeric: lining-nums; }
.step p { color: var(--ink-2); margin-top: 8px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.shots { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.shots img { grid-column: span 2; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; box-shadow: 0 0 0 1px var(--line); }
.shots img:nth-child(-n + 2) { grid-column: span 3; }
@media (max-width: 760px) { .shots { grid-template-columns: 1fr; } .shots img, .shots img:nth-child(-n + 2) { grid-column: auto; } }
.table-wrap { overflow-x: auto; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); }
.compare { width: 100%; min-width: 600px; table-layout: fixed; border-collapse: collapse; font-size: var(--t-small); line-height: 1.55; }
.compare th, .compare td { text-align: left; padding: 18px 22px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font-weight: 600; color: var(--ink); background: var(--bg); }
.compare thead th small { display: block; font-weight: 500; color: var(--ink-3); font-size: var(--t-caption); }
.compare tbody th { font-weight: 600; }
.compare thead th:first-child { width: 20%; }
.compare td { color: var(--ink-2); }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.faq { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 32px clamp(32px, 6vw, 96px); align-items: start; }
.faq .section-head { margin: 0; position: sticky; top: 100px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; font-weight: 600; font-size: 1.0625rem; line-height: 1.4; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; width: 9px; height: 9px; flex: none; margin-right: 4px; border-right: 1.5px solid var(--ink-2); border-bottom: 1.5px solid var(--ink-2); transform: translateY(-3px) rotate(45deg); transition: transform 0.25s var(--ease); }
.faq details[open] summary::after { transform: translateY(2px) rotate(225deg); }
.faq summary:hover { color: var(--accent); }
.faq details p { padding: 0 0 24px; color: var(--ink-2); max-width: 64ch; }
@media (max-width: 900px) { .faq { grid-template-columns: 1fr; } .faq .section-head { position: static; } }

/* legal pages */
.legal-page { max-width: 760px; padding-top: clamp(36px, 5vw, 64px); padding-bottom: var(--section); }
.legal-page h1 { font-size: clamp(2.5rem, 1.8rem + 2.4vw, 3.75rem); line-height: 1.05; }
.legal-page .lede { margin-top: 18px; color: var(--ink-2); font-size: var(--t-small); }
.legal-page h2 { font-family: var(--font-text); font-size: 1.25rem; line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; margin: 44px 0 12px; }
.legal-page p, .legal-page li { color: var(--ink-2); }
.legal-page p + p { margin-top: 14px; }
.legal-page ul { padding-left: 20px; margin: 12px 0; }
.legal-page li { margin: 8px 0; }
.legal-page li::marker { color: var(--ink-3); }
.legal-page b { color: var(--ink); font-weight: 600; }
.legal-page .summary { margin: 32px 0 8px; padding: 24px 26px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.legal-page .summary p { color: var(--ink); }

/* ---------- footer */
.site-footer { background: var(--night); color: var(--on-night-3); padding: clamp(64px, 7vw, 96px) 0 32px; font-size: var(--t-small); }
.site-footer .logo { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 40px 32px; }
.footer-grid > div > p { margin-top: 16px; max-width: 30ch; line-height: 1.6; }
.site-footer h2 { margin: 0 0 16px; font-family: var(--font-text); color: #fff; font-size: var(--t-caption); line-height: 1.4; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: #dcd8ea; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .soon { color: var(--on-night-3); }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: clamp(48px, 6vw, 72px); padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: var(--t-caption); color: var(--on-night-3); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* brand colours in logo order: turquoise, magenta, amber/orange */
.study:nth-child(1) .figure strong { color: var(--turquoise); }
.study:nth-child(2) .figure strong { color: #e06ddc; }
.study:nth-child(3) .figure strong { color: var(--amber); }
.principle:nth-child(1) .num, .step:nth-child(1)::before { color: var(--tick); }
.principle:nth-child(2) .num, .step:nth-child(2)::before { color: var(--accent); }
.principle:nth-child(3) .num, .step:nth-child(3)::before { color: var(--orange-text); }
.site-footer { position: relative; }
.site-footer::before { content: ''; position: absolute; inset: 0 0 auto; height: 3px; background: var(--stripe); }

/* ---------- motion */
@keyframes enter { from { opacity: 0; transform: translateY(14px); } }
.enter { animation: enter 0.9s var(--ease) both; }
.enter.d1 { animation-delay: 0.07s; }
.enter.d2 { animation-delay: 0.14s; }
.enter.d3 { animation-delay: 0.21s; }
.enter.d4 { animation-delay: 0.28s; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
