/* Take Over: thetakeover.app
   Colours are the app's own (TakeOver/Views/Theme.swift). Type uses each visitor's system
   fonts (SF Rounded / SF on Apple devices); no font files are bundled. */

:root {
  --ink: #33126B;          /* purpleDeep: text */
  --ink-muted: #5B3F8C;    /* readable muted text on cream (≥ 7:1) */
  --night: #260D52;
  --violet: #6B33D6;
  --violet-dark: #5426B8;  /* violet links on cream with extra contrast */
  --cream: #FFF6E6;
  --cream-deep: #F2E6CF;
  --yellow: #FFD11A;
  --yellow-edge: #CC9900;
  --mint: #8CDBB0;
  --coral: #FF8066;
  --lilac: #D9C7F7;
  --sky: #8FD1F2;

  --rounded: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: system-ui, -apple-system, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius: 28px;
  --radius-sm: 18px;
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(64px, 9vw, 120px);
  --shadow: 0 18px 40px -18px rgb(38 13 82 / 0.35);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--rounded);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--violet-dark); text-underline-offset: 0.18em; text-decoration-thickness: 2px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 6px; }
.section--deep :focus-visible, .hero :focus-visible, .closing :focus-visible { outline-color: var(--yellow); }
h1, h2, h3 { line-height: 1.12; margin: 0 0 0.5em; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 780px; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--yellow); color: var(--ink);
  padding: 10px 16px; border-radius: 12px; font-weight: 800; text-decoration: none; }
.skip-link:focus { top: 12px; }

.preview-banner { background: var(--ink); color: var(--yellow); text-align: center; font-weight: 800;
  font-size: 0.875rem; padding: 6px 12px; letter-spacing: 0.02em; }
.draft-flag { color: #B3261E; }

/* ---------- Wordmark (the app's: black, condensed, italic, tilted -7°) ---------- */
/* Each line box is as tall as the font's own frame (1.2em, like a SwiftUI Text), so every
   glyph sits inside its box and nothing can be clipped by a box or a compositing layer. The
   lines then overlap by the app's -0.3em spacing. Padding leaves room for the italic slant
   and the -7° tilt, as the app does. */
.wordmark { display: inline-flex; flex-direction: column; align-items: flex-start; font-family: var(--display);
  font-weight: 900; font-style: italic; font-stretch: condensed; line-height: 1.2; transform: rotate(-7deg);
  color: var(--cream); letter-spacing: -0.01em; padding: 0.16em 0.12em 0.12em 0.06em; }
.wordmark > span { display: block; }
.wordmark .wm-over { margin-top: -0.3em; padding-left: 0.1em; }
.wordmark--small { font-size: 26px; color: var(--violet); }
.wordmark--hero { font-size: clamp(46px, 5.4vw, 76px); margin: 0 0 0 4px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgb(255 246 230 / 0.92);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid rgb(51 18 107 / 0.08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; padding: 6px 4px; text-decoration: none; }
.nav-list { display: flex; gap: clamp(4px, 2vw, 24px); list-style: none; margin: 0; padding: 0; }
.nav-list a { display: inline-block; padding: 10px 8px; min-height: 44px; font-weight: 750; color: var(--ink);
  text-decoration: none; border-radius: 10px; }
.nav-list a:hover, .nav-list a[aria-current="page"] { color: var(--violet-dark); text-decoration: underline; }
@media (max-width: 560px) {
  .nav-list li:not(:last-child) { display: none; }  /* phones: Support stays; sections are a scroll away */
}

/* ---------- Hero ----------
   Content-sized (no fixed or minimum height). Two columns from 900px; the copy comes first
   in the document, so on phones the headline and status are read and seen before the phone. */
.hero { background: var(--violet); color: var(--cream); padding: clamp(24px, 3.4vw, 44px) 0 clamp(32px, 4vw, 52px); overflow: hidden; }
.hero-grid { display: grid; gap: 28px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: 40px; } }
.banner { display: inline-block; margin: 8px 0 18px; background: var(--yellow); color: var(--ink);
  font-family: var(--rounded); font-weight: 900; letter-spacing: 0.04em; font-size: clamp(15px, 1.6vw, 20px);
  padding: 6px 18px; transform: rotate(-2deg); border-radius: 4px; }
.hero-title { font-family: var(--rounded); font-weight: 900; font-size: clamp(34px, 4.3vw, 58px); letter-spacing: -0.01em;
  color: var(--cream); max-width: 14ch; margin-bottom: 0.3em; }
.hero-sub { font-size: clamp(18px, 1.8vw, 22px); font-weight: 650; color: rgb(255 246 230 / 0.9); margin-bottom: 22px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px; }
.hero-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 4px 2px; color: var(--cream);
  font-weight: 800; text-decoration-color: rgb(255 246 230 / 0.55); }
.hero-link:hover { color: var(--yellow); text-decoration-color: currentColor; }
.hero-link-arrow { display: inline-block; transition: translate 0.2s ease; }
.hero-link:hover .hero-link-arrow, .hero-link:focus-visible .hero-link-arrow { translate: 0 3px; }

/* The phone, with a helper either side steadying it. --pw is the phone's width and --fig a
   figure's width; the figures' hands meet the phone's edges (hand tip = 0.89 of the figure's
   width, see figures.mjs), and the phone tilts about the height of their hands. */
.hero-visual { display: flex; justify-content: center; }
.hero-stage { --pw: clamp(200px, 17vw, 250px); --fig: calc(var(--pw) * 0.5); position: relative; width: var(--pw);
  margin: 0 calc(var(--fig) * 0.9); }
@media (max-width: 899px) { .hero-stage { --pw: min(200px, 46vw); --fig: calc(var(--pw) * 0.44); } }
.helper { position: absolute; height: auto; max-width: none; pointer-events: none; overflow: visible; }
.helper--hero-l, .helper--hero-r { width: var(--fig); bottom: calc(var(--fig) * -0.036); }
.helper--hero-l { left: calc(var(--fig) * -0.88); }
.helper--hero-r { right: calc(var(--fig) * -0.88); }

/* ---------- Store CTA ---------- */
.store-cta { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.05rem;
  border-radius: 999px; padding: 14px 24px; margin: 0; min-height: 52px; }
.store-cta--soon { background: rgb(255 246 230 / 0.14); color: var(--cream); border: 2px solid rgb(255 246 230 / 0.55); }
.store-cta--live { background: var(--yellow); color: var(--ink); text-decoration: none; box-shadow: 0 5px 0 var(--yellow-edge); }
.store-cta--live:hover { color: var(--ink); transform: translateY(1px); box-shadow: 0 4px 0 var(--yellow-edge); }
.store-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--yellow); flex: none; }

/* ---------- Phone frames ---------- */
.phone { margin: 0; background: var(--night); padding: 10px; border-radius: 40px; box-shadow: var(--shadow); }
.phone img { border-radius: 30px; }
.phone--portrait { width: 100%; position: relative; z-index: 1; transform: rotate(3deg);
  transform-origin: 50% calc(100% - var(--fig) * 0.6); }
.phone--landscape { padding: 7px; border-radius: 26px; margin-top: auto; }
.phone--landscape img { border-radius: 20px; }

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; }
.section--deep { background: var(--ink); color: var(--cream); }
.section--cream-deep { background: var(--cream-deep); }
.eyebrow { font-weight: 850; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.85rem; color: var(--violet-dark); margin-bottom: 10px; }
.eyebrow--light { color: var(--yellow); }
.section-title { font-weight: 900; font-size: clamp(32px, 4.4vw, 52px); letter-spacing: -0.01em; max-width: 20ch; }
.section-title--light { color: var(--cream); }
.section-lead { font-size: 1.2rem; color: var(--ink-muted); max-width: 50ch; }

/* Modes */
/* A helper stands on one card's top edge (the last card on desktop, the first when stacked);
   the margin above leaves it clear of the heading. */
.modes { --fig: 76px; position: relative; display: grid; gap: 22px; margin-top: calc(var(--fig) + 20px); }
.helper--modes { width: var(--fig); bottom: 100%; margin-bottom: calc(var(--fig) * -0.036); z-index: 3;
  left: calc(100% * 0.78 - var(--fig) / 2); }
@media (min-width: 960px) {
  .modes { --fig: 84px; margin-top: 48px; }
  .helper--modes { left: calc((100% + 22px) * 2 / 3 + (100% - 44px) / 3 * 0.64 - var(--fig) / 2); }
}
@media (min-width: 960px) { .modes { grid-template-columns: repeat(3, 1fr); } }
.mode { display: flex; flex-direction: column; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.mode p { margin-bottom: 18px; }
.mode--mint { background: var(--mint); }
.mode--violet { background: var(--violet); color: var(--cream); }
.mode--yellow { background: var(--yellow); }
/* Fixed height, natural width: align-self stops the flex column stretching it sideways,
   and object-fit keeps the aspect ratio if the card is ever narrower than the art. */
.mode-art { height: 120px; width: auto; max-width: 100%; align-self: flex-start; object-fit: contain;
  object-position: left bottom; margin: 0 0 14px; }
.mode-title { font-weight: 900; font-style: italic; font-size: 2rem; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.mode-tag { font-weight: 800; font-size: 1.1rem; margin-bottom: 8px !important; }
.pill { display: inline-block; font-style: normal; font-size: 0.8rem; font-weight: 850; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 4px 12px; border-radius: 999px; }
.pill--ink { background: var(--ink); color: var(--yellow); }

/* How it works: the app's "Tilt to score" demo is the focus (TiltTutorial in Artwork.swift).
   Phone: landscape 2:1, ink body (corner radius 22% of its height), screen inset 8%; yellow
   with a violet "?" when upright, green with a check tipped down, coral with a skip symbol
   tipped up (3D tilt of 42°). Rows: white, the demonstrated one tinted with its colour. */
.how-grid { display: grid; gap: 28px; align-items: center; grid-template-areas: "head" "demo" "notes"; }
.how-head { grid-area: head; }
.how-head .section-title { margin-bottom: 0.3em; }
.how-lead { font-size: clamp(19px, 2vw, 23px); font-weight: 750; color: var(--cream); margin: 0; max-width: 30ch; }
.tilt-demo { grid-area: demo; }
.how-notes { grid-area: notes; }
@media (min-width: 900px) {
  .how-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); grid-template-areas: "demo head" "demo notes"; column-gap: 56px; row-gap: 28px; }
  .how-head { align-self: end; }
  .how-notes { align-self: start; }
}
.tilt-demo { background: var(--cream); color: var(--ink); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px) clamp(18px, 3vw, 36px);
  display: flex; flex-direction: column; align-items: center; gap: 24px; }
.tilt-stage { display: flex; justify-content: center; align-items: center; gap: 24px; perspective: 600px; }
.tilt-stage--live { display: none; width: 220px; height: 136px; }   /* phone height × 1.24: room for the tilt */
.tilt-phone { --h: 110px; width: calc(var(--h) * 2); height: var(--h); background: var(--ink); border-radius: calc(var(--h) * 0.22);
  padding: calc(var(--h) * 0.08); transition: transform 0.45s ease-in-out; }
.tilt-phone--small { --h: 68px; }
.tilt-screen { position: relative; height: 100%; border-radius: calc(var(--h) * 0.16); background: var(--yellow); transition: background-color 0.45s ease-in-out; }
.tilt-sym { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transition: opacity 0.45s ease-in-out; color: var(--ink); }
.tilt-sym svg { width: calc(var(--h) * 0.4); height: auto; }
.tilt-sym--q { font-family: var(--rounded); font-weight: 900; font-size: calc(var(--h) * 0.55); line-height: 1; color: var(--violet); }
.tilt-phone[data-tilt="0"] .tilt-sym--q, .tilt-phone[data-tilt="2"] .tilt-sym--q { opacity: 1; }
.tilt-phone[data-tilt="1"] { transform: rotateX(-42deg); }   /* top edge toward the floor */
.tilt-phone[data-tilt="1"] .tilt-screen { background: #29A861; }
.tilt-phone[data-tilt="1"] .tilt-sym--down { opacity: 1; }
.tilt-phone[data-tilt="3"] { transform: rotateX(42deg); }    /* top edge toward the ceiling */
.tilt-phone[data-tilt="3"] .tilt-screen { background: var(--coral); }
.tilt-phone[data-tilt="3"] .tilt-sym--up { opacity: 1; }
.tilt-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; width: 100%; max-width: 360px; }
.tilt-row { display: flex; align-items: center; gap: 16px; padding: 10px 16px; border-radius: 16px; background: rgb(255 255 255 / 0.7);
  box-shadow: inset 0 0 0 1px rgb(51 18 107 / 0.12); font-weight: 800; font-size: 1.06rem;
  transition: background-color 0.25s ease-in-out, box-shadow 0.25s ease-in-out; }
.tilt-row-result { margin-left: auto; }
.tilt-icon { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; }
.tilt-icon svg { width: 17px; height: 17px; }
.tilt-row--down .tilt-icon { background: #29A861; color: var(--cream); }
.tilt-row--up .tilt-icon { background: var(--coral); color: var(--ink); }
.tilt-demo[data-phase="1"] .tilt-row--down { background: rgb(41 168 97 / 0.18); box-shadow: inset 0 0 0 2.5px #29A861; }
.tilt-demo[data-phase="3"] .tilt-row--up { background: rgb(255 128 102 / 0.18); box-shadow: inset 0 0 0 2.5px var(--coral); }
.tilt-toggle { font: inherit; font-weight: 800; font-size: 0.95rem; color: var(--violet-dark); background: transparent;
  border: 2px solid rgb(107 51 214 / 0.55); border-radius: 999px; min-height: 44px; padding: 8px 18px; cursor: pointer; }
.tilt-toggle:hover { background: rgb(107 51 214 / 0.08); color: var(--ink); }
/* Animated version only with JS and when motion is welcome; otherwise the still pair stays. */
@media (prefers-reduced-motion: no-preference) {
  .js .tilt-demo[data-live] .tilt-stage--live { display: flex; }
  .js .tilt-demo[data-live] .tilt-stage--still { display: none; }
}
.how-notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.how-notes li { padding-left: 16px; border-left: 3px solid var(--yellow); }
.how-notes h3 { font-size: 1.1rem; color: var(--cream); margin-bottom: 4px; }
.how-notes p { margin: 0; color: rgb(255 246 230 / 0.86); }

/* Categories */
/* A helper stands on the top edge of the next-to-last tile of the first row; the space above
   the grid is reserved for it. */
.cats-wrap { --cols: 2; --gap: 16px; --fig: 70px; position: relative; margin-top: calc(var(--fig) + 26px); }
@media (min-width: 720px) { .cats-wrap { --cols: 3; --fig: 80px; } }
@media (min-width: 1080px) { .cats-wrap { --cols: 6; --fig: 84px; } }
.cats { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--gap); grid-template-columns: repeat(var(--cols), 1fr); }
.helper--cats { width: var(--fig); bottom: 100%; margin-bottom: calc(var(--fig) * -0.036); z-index: 3;
  left: calc((100% + var(--gap)) * (var(--cols) - 1) / var(--cols) - var(--fig) * 0.88 - 12px); }
.cat { border-radius: var(--radius-sm); overflow: hidden; background: var(--cream-deep); box-shadow: var(--shadow); }
.cat img { width: 100%; }
.cat-name { display: block; padding: 10px 14px 12px; font-weight: 850; font-size: 1.05rem; background: #fff; }

/* Plans */
.plans { display: grid; gap: 22px; margin-top: 32px; }
@media (min-width: 820px) { .plans { grid-template-columns: 0.85fr 1.15fr; align-items: start; } }
.plan { background: #fff; border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.plan h3 { font-size: 1.6rem; font-weight: 900; }
.ticks { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 10px; }
.ticks li { padding-left: 34px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.2em; width: 22px; height: 22px; border-radius: 50%;
  background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%2333126B' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
/* Premium: the app's featured-plan treatment (PaywallView.weeklyCard): yellow card, violet
   border, a short lilac/cream highlight travelling around the border once every 5 s, and three
   four-point sparkles on the border, away from the text. Card and content never move. */
.plan--premium { position: relative; background: var(--yellow); color: var(--ink); box-shadow: inset 0 0 0 3px var(--violet), var(--shadow); }
.plan--premium h3 { color: var(--ink); margin: 0; }
.plan--premium .ticks li::before { background-color: var(--cream); }
.premium-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.premium-art { display: flex; align-items: flex-end; flex: none; }
.premium-fig { width: 52px; height: auto; }
.premium-star { width: 22px; height: auto; margin: 0 -4px 30px; }
.premium-border, .sparkle { position: absolute; pointer-events: none; }
.premium-border { inset: 0; width: 100%; height: 100%; overflow: visible; display: none; }
.premium-border rect { fill: none; stroke-width: 3; stroke-linecap: round; }
.pb-lilac { stroke: var(--lilac); stroke-dasharray: 0.14 0.86; }
.pb-cream { stroke: var(--cream); stroke-dasharray: 0.06 0.94; stroke-dashoffset: -0.08; }
.sparkle { width: 14px; height: 14px; translate: -50% -50%; }
.sparkle svg { width: 100%; height: 100%; display: block; overflow: visible; }
.sparkle path { fill: var(--cream); stroke: var(--violet); stroke-width: 1.4; }
.sparkle--1 { left: 97%; top: 6%; }
.sparkle--2 { left: 80%; top: 100%; width: 10px; height: 10px; }
.sparkle--2 path { fill: var(--violet); stroke: none; }
.sparkle--3 { left: 2%; top: 92%; width: 9px; height: 9px; }
@media (prefers-reduced-motion: no-preference) {
  .js .plan--premium[data-border] .premium-border { display: block; }
  .plan--premium.is-running .pb-lilac { animation: pb-travel 5s linear infinite; }
  .plan--premium.is-running .pb-cream { animation: pb-travel-head 5s linear infinite; }
  .plan--premium.is-running .sparkle { animation: twinkle 3.9s ease-in-out infinite; }
  .plan--premium.is-running .sparkle--2 { animation-delay: -1.3s; }
  .plan--premium.is-running .sparkle--3 { animation-delay: -2.6s; }
  .plan--premium.is-paused .pb-lilac, .plan--premium.is-paused .pb-cream, .plan--premium.is-paused .sparkle { animation-play-state: paused; }
  @keyframes pb-travel { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -1; } }
  @keyframes pb-travel-head { from { stroke-dashoffset: -0.08; } to { stroke-dashoffset: -1.08; } }
  @keyframes twinkle { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
}
/* Reduced motion: a still, slightly heavier border, as in the app. */
@media (prefers-reduced-motion: reduce) {
  .plan--premium { box-shadow: inset 0 0 0 4px var(--violet), var(--shadow); }
}
.plan-note { font-size: 0.95rem; color: var(--ink); margin: 0; }

/* FAQ */
.faq { margin-top: 28px; display: grid; gap: 12px; }
.faq details { background: #fff; border-radius: var(--radius-sm); box-shadow: 0 1px 0 rgb(51 18 107 / 0.08);
  transition: box-shadow 0.2s ease; }
.faq details:hover, .faq details:focus-within { box-shadow: 0 0 0 2px var(--lilac), 0 8px 22px -14px rgb(38 13 82 / 0.4); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 56px 18px 22px; font-weight: 800; font-size: 1.1rem;
  position: relative; border-radius: var(--radius-sm); min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--violet-dark); }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  font-size: 1.6rem; font-weight: 700; color: var(--violet); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 22px 20px; margin: 0; color: var(--ink-muted); }

/* Closing CTA */
.closing { background: var(--violet); color: var(--cream); text-align: center; padding: var(--section) 0; }
.closing-inner { display: flex; flex-direction: column; align-items: center; gap: 26px; }
.closing-title { font-weight: 900; font-size: clamp(32px, 5vw, 56px); max-width: 16ch; margin: 0; }
/* Decorative artwork never takes clicks or taps. */
.figures, .premium-art, .tilt-stage { pointer-events: none; }

/* Three actors; the middle one has just placed a star above its hand. */
.figures { display: flex; align-items: flex-end; }
.figures--cta { container-type: inline-size; position: relative; width: min(360px, 80%); gap: 4%; padding-top: 30px; }
@media (min-width: 720px) { .figures--cta { width: 400px; } }
.figures--cta .figure { width: 32%; }
.cta-star { position: absolute; width: 15cqw; height: auto; max-width: none; pointer-events: none;
  left: calc(36cqw + 32cqw * 86 / 112 - 7.5cqw); top: calc(30px + 32cqw * 1 / 112 - 7.5cqw); }

/* ---------- Inner pages ---------- */
.page-hero { padding: clamp(48px, 7vw, 88px) 0 clamp(28px, 4vw, 44px); }
.page-title { font-weight: 900; font-size: clamp(36px, 6vw, 60px); letter-spacing: -0.01em; }
.page-lead { font-size: 1.2rem; color: var(--ink-muted); max-width: 52ch; }
.page-meta { color: var(--ink-muted); font-weight: 700; }
.prose { padding-bottom: var(--section); }
.prose section { margin-top: 44px; }
.prose h2 { font-size: 1.6rem; font-weight: 900; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 0.45em; }
.toc { background: #fff; border-radius: var(--radius-sm); padding: 18px 22px; box-shadow: 0 1px 0 rgb(51 18 107 / 0.08); }
.toc ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.toc a { display: inline-block; padding: 8px 0; font-weight: 750; }
.summary-card, .contact-card { background: #fff; border-radius: var(--radius-sm); padding: 22px 26px; margin-top: 28px;
  box-shadow: 0 1px 0 rgb(51 18 107 / 0.08); }
.summary-card h2, .contact-card h2 { font-size: 1.3rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px;
  border-radius: 999px; background: var(--violet); color: var(--cream); font-weight: 800; text-decoration: none;
  overflow-wrap: anywhere; text-align: center; }
.button:hover { background: var(--ink); color: var(--cream); }
.button--ghost { background: transparent; color: var(--violet-dark); border: 2px solid var(--violet); }
.button--ghost:hover { background: var(--violet); color: var(--cream); }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; }
.notfound { text-align: left; }
.notfound-figure { width: 120px; margin-bottom: 12px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: var(--cream); padding: 48px 0 40px; }
.footer-inner { display: grid; gap: 24px; }
@media (min-width: 820px) { .footer-inner { grid-template-columns: 1fr auto; align-items: center; } }
.footer-brand { display: flex; gap: 14px; align-items: center; }
.footer-icon { border-radius: 13px; }
.footer-name { font-weight: 900; margin: 0; }
.footer-tag { margin: 0; color: rgb(255 246 230 / 0.8); font-size: 0.95rem; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer-links a { color: var(--cream); font-weight: 750; display: inline-block; padding: 10px 0; overflow-wrap: anywhere; }
.footer-links a:hover { color: var(--yellow); }
.footer-legal { grid-column: 1 / -1; margin: 0; color: rgb(255 246 230 / 0.7); font-size: 0.875rem; }

/* ---------- Motion (only when allowed, and only with JS) ----------
   Helpers and their props are positioned by site.js with the individual translate / rotate
   properties, so they never fight the reveal transitions (which use transform). */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(.2,.7,.2,1); }
  .js .reveal.is-in { opacity: 1; transform: none; }
  .js .hero-copy > * { animation: rise 0.7s cubic-bezier(.2,.7,.2,1) both; }
  .js .hero-copy > *:nth-child(2) { animation-delay: 0.08s; }
  .js .hero-copy > *:nth-child(3) { animation-delay: 0.16s; }
  .js .hero-copy > *:nth-child(4) { animation-delay: 0.24s; }
  .js .hero-copy > *:nth-child(5) { animation-delay: 0.32s; }
  @keyframes rise { from { opacity: 0; transform: translateY(16px); } }
  .js .wordmark--hero { animation-name: wm-in; }
  @keyframes wm-in { from { opacity: 0; transform: translateY(16px) rotate(-7deg); } to { transform: rotate(-7deg); } }
  /* Until site.js has set the hero's opening frame, keep the stage empty (the inline script
     drops .js after 2.5s if the module never runs, showing the static composition). */
  .js:not([data-ready]) .hero-stage { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
