/* Tidy Mind — tidy-mind.fun. The app's "Paper and Ink" look (src/kit/tokens.css): warm paper, soft ink, quiet cards
   and the four game accents, in light and dark (prefers-color-scheme). One stylesheet, no scripts, no external
   resources and no inline styles (see _headers); the mini boards and glyph tiles are inline SVG styled from here. */

/* Self-hosted from @fontsource (SIL Open Font License 1.1). Lilita One, the app's wordmark face, has one weight. */
@font-face {
  font-family: "Fredoka";
  src: url("/fonts/fredoka-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fredoka";
  src: url("/fonts/fredoka-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lilita One";
  src: url("/fonts/lilita-one-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Tokens: the app's light theme (src/kit/tokens.css, src/app/styles/base.css), plus a few site-only ones. */
:root {
  color-scheme: light;
  --paper: #f6f1e7;
  --paper-2: #efe8da;
  --card: #fffdf8;
  --ink: #2b2a33;
  --ink-2: #4a4852;
  --muted: #6c675e;
  --line: #ddd4c3;
  --line-strong: #b9ae99;
  --shadow: 0 1px 0 rgba(43, 42, 51, 0.06), 0 6px 18px rgba(43, 42, 51, 0.08);
  --shadow-lift: 0 2px 0 rgba(43, 42, 51, 0.06), 0 18px 40px rgba(43, 42, 51, 0.14);
  --focus: #1f6fbf; /* site-only: darker than the app's #3d9be9, so the ring keeps 3:1 on paper, paper-2 and card */
  --good: #2f9e5b;
  --star: #f2b33b;

  --acc-crown: #e39a1c;
  --acc-ink: #149086;
  --acc-decant: #e86a52;
  --acc-loose: #5a5fd6;
  /* Accents as text: same hue, at least 4.5:1 on paper, paper-2 and card. */
  --acc-crown-ink: #8a5e11;
  --acc-ink-ink: #10736b;
  --acc-decant-ink: #a74c3b;
  --acc-loose-ink: #4f54c8;
  /* Glyphs on an accent tile. */
  --acc-crown-on: #2b2a33;
  --acc-ink-on: #ffffff;
  --acc-decant-on: #1f1e25;
  --acc-loose-on: #ffffff;

  /* Board palette (src/kit/palette.ts): the solid and its soft tint. */
  --pal-0: #e5533d; --pal-0-tint: #efb2a3;
  --pal-1: #f2a93b; --pal-1-tint: #f4d4a2;
  --pal-2: #8cc63f; --pal-2-tint: #cce0a4;
  --pal-3: #1fa39a; --pal-3-tint: #a0d2c8;
  --pal-4: #3d9be9; --pal-4-tint: #accfe8;
  --pal-5: #5a5fd6; --pal-5-tint: #b8b7e0;
  --pal-6: #a35dc9; --pal-6-tint: #d5b6db;
  --pal-7: #e86fa3; --pal-7-tint: #f0bdcc;
  --pal-8: #8a5a3c; --pal-8-tint: #cbb5a3;

  /* Site-only. */
  --link: var(--acc-loose-ink);
  --dot: rgba(43, 42, 51, 0.13);
  --band: #2b2a33;          /* the ink band (calm promises) and the footer */
  --band-ink: #f6f1e7;
  --band-muted: #c9c3b6;
  --band-line: rgba(246, 241, 231, 0.16);
  --band-card: rgba(246, 241, 231, 0.06);
  --bezel: #2b2a33;
  --pill-icon: #f2b33b;
  --wrap: 1120px;
  --radius: 20px;
  --font-ui: "Fredoka", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Lilita One", var(--font-ui);
}

/* The app's dark theme. */
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --paper: #161c2c;
    --paper-2: #111724;
    --card: #1f2739;
    --ink: #ece6d8;
    --ink-2: #c4bfb3;
    --muted: #8b93a6;
    --line: #2f3a52;
    --line-strong: #4a5875;
    --shadow: 0 1px 0 rgba(0, 0, 0, 0.25), 0 8px 22px rgba(0, 0, 0, 0.35);
    --shadow-lift: 0 2px 0 rgba(0, 0, 0, 0.25), 0 20px 44px rgba(0, 0, 0, 0.45);
    --focus: #56abf0;
    --good: #4cc27a;
    --star: #f5c04f;

    --acc-crown: #f2b33b;
    --acc-ink: #2dbab0;
    --acc-decant: #f2836c;
    --acc-loose: #8a8ef0;
    --acc-crown-ink: #f2b33b;
    --acc-ink-ink: #2dbab0;
    --acc-decant-ink: #f2836c;
    --acc-loose-ink: #8a8ef0;
    --acc-crown-on: #161c2c;
    --acc-ink-on: #161c2c;
    --acc-decant-on: #161c2c;
    --acc-loose-on: #161c2c;

    --pal-0: #f0674f; --pal-0-tint: #723c3b;
    --pal-1: #f5b653; --pal-1-tint: #745d3c;
    --pal-2: #9bd353; --pal-2-tint: #4e693c;
    --pal-3: #2dbab0; --pal-3-tint: #205e63;
    --pal-4: #56abf0; --pal-4-tint: #31587e;
    --pal-5: #7c80e8; --pal-5-tint: #41467b;
    --pal-6: #b675da; --pal-6-tint: #594175;
    --pal-7: #f084b2; --pal-7-tint: #724864;
    --pal-8: #a8714f; --pal-8-tint: #53403b;

    --dot: rgba(236, 230, 216, 0.1);
    --band: #0c111d;
    --band-ink: #ece6d8;
    --band-muted: #a9b0c0;
    --band-line: rgba(236, 230, 216, 0.12);
    --band-card: rgba(236, 230, 216, 0.04);
    --bezel: #0b0f19;
    --pill-icon: #8a5e11;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--font-ui);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis: none;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
b, strong { font-weight: 600; }
h1, h2, h3 { font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: -0.005em; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
@media (max-width: 480px) { .wrap { width: calc(100% - 32px); } }

.skip {
  position: absolute; left: 12px; top: -80px; z-index: 30;
  background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: 12px; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 8px; }

/* The SVG sprite of the four game glyphs: kept in the document for <use>, never shown itself. */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------------- The logo mark and wordmark (src/app/icons.ts logoMark, home.css .tm-wordmark) ---------------- */

.mark { width: 1em; height: 1em; flex: none; overflow: visible; }
.mark .t1 { fill: var(--acc-crown); }
.mark .t2 { fill: var(--acc-ink); }
.mark .t3 { fill: var(--acc-loose); }
.mark .t4 { fill: var(--acc-decant); }
.wordmark { font-family: var(--font-display); font-weight: 400; letter-spacing: 0.01em; white-space: nowrap; }

/* ---------------- Game glyph tiles (the app icon's rounded squares) ---------------- */

.tile {
  --c: var(--ink); --on: var(--paper);
  display: grid; place-items: center; flex: none;
  width: 56px; height: 56px; border-radius: 28%;
  background: var(--c); color: var(--on);
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.12);
}
.tile svg { width: 66%; height: 66%; }
.tile.crown { --c: var(--acc-crown); --on: var(--acc-crown-on); }
.tile.ink { --c: var(--acc-ink); --on: var(--acc-ink-on); }
.tile.decant { --c: var(--acc-decant); --on: var(--acc-decant-on); }
.tile.loose { --c: var(--acc-loose); --on: var(--acc-loose-on); }

/* ---------------- Buttons and the store pill ---------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 12px 24px; border-radius: 999px;
  font: 600 17px/1.1 var(--font-ui); text-decoration: none; white-space: nowrap;
  background: var(--card); color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line-strong), 0 2px 0 var(--line);
  transition: transform 0.12s ease-out, box-shadow 0.12s ease-out;
}
.btn:hover { transform: translateY(-1px); box-shadow: inset 0 0 0 1.5px var(--ink-2), 0 3px 0 var(--line); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--ink); color: var(--paper); box-shadow: 0 3px 0 rgba(0, 0, 0, 0.18); }
.btn.primary:hover { box-shadow: 0 4px 0 rgba(0, 0, 0, 0.18); }
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* "Coming soon to Google Play": a store-style pill in ink, deliberately not Google's badge and not a link. */
.store-pill {
  display: inline-flex; align-items: center; gap: 12px; margin: 0;
  min-height: 60px; padding: 8px 22px 8px 16px; border-radius: 16px;
  background: var(--ink); color: var(--paper); box-shadow: 0 3px 0 rgba(0, 0, 0, 0.18);
}
.store-pill svg { width: 26px; height: 26px; flex: none; fill: none; stroke: var(--pill-icon); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.store-pill .stack { display: flex; flex-direction: column; align-items: flex-start; font: 600 20px/1.1 var(--font-ui); }
.store-pill small { font: 600 12px/1.2 var(--font-ui); letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.8; }

/* ---------------- Header ---------------- */

.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .site-header {
    background: color-mix(in srgb, var(--paper) 88%, transparent);
    -webkit-backdrop-filter: saturate(1.3) blur(12px); backdrop-filter: saturate(1.3) blur(12px);
  }
}
.site-header .wrap { display: flex; align-items: center; gap: 20px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.logo img { width: 40px; height: 40px; border-radius: 11px; box-shadow: 0 0 0 1px var(--line); }
.logo .wordmark { font-size: 24px; }
.site-nav { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.site-nav a { text-decoration: none; font-weight: 600; font-size: 16px; color: var(--ink-2); white-space: nowrap; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
@media (max-width: 760px) {
  .site-nav { gap: 18px; }
  .site-nav .opt { display: none; }
}
@media (max-width: 380px) {
  .logo .wordmark { font-size: 21px; }
  .logo img { width: 36px; height: 36px; }
  .site-nav { gap: 14px; }
  .site-nav a { font-size: 15px; }
}

/* ---------------- Dotted paper (a faint grid of dots, fading out at the edges) ---------------- */

.dotted { position: relative; isolation: isolate; }
.dotted::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(circle, var(--dot) 1.3px, transparent 1.6px) 0 0 / 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 80% 75% at 50% 40%, #000 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 75% at 50% 40%, #000 30%, transparent 100%);
}

/* ---------------- Hero ---------------- */

.hero .wrap {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center;
  padding: 64px 0 80px;
}
.hero-copy { max-width: 600px; min-width: 0; }
/* Sized so the mark and the wordmark fit on one line from 320 px up. */
.title { display: flex; align-items: center; gap: 0.22em; margin: 0 0 18px; font-size: clamp(44px, 13vw, 88px); line-height: 1; }
.title .mark { width: 0.92em; height: 0.92em; }
.title .wordmark { font-size: 1em; }
.tagline { font: 600 clamp(23px, 2.6vw, 29px)/1.25 var(--font-ui); margin: 0 0 16px; color: var(--ink); }
.hero .lede { font-size: 19px; line-height: 1.6; color: var(--ink-2); max-width: 33em; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 16px; margin-top: 28px; }
.hero .note, .closing .note { margin: 22px 0 0; font-weight: 600; font-size: 15px; color: var(--muted); }

/* Phone frame around a 9:16 screenshot (720×1280). No notch: the captures have no status bar for one to sit over. */
.phone {
  --w: 296px;
  position: relative; width: var(--w); margin: 0; padding: 9px; border-radius: 42px;
  background: var(--bezel);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.08), var(--shadow-lift);
}
.phone img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 33px; background: var(--paper-2); }

.hero-visual { position: relative; justify-self: center; padding: 22px 52px 30px; }
.hero-visual .tile { position: absolute; z-index: 2; animation: drift 4.2s ease-in-out infinite alternate; }
.hero-visual .tile.crown { top: 9%; left: 0; rotate: -8deg; width: 70px; height: 70px; }
.hero-visual .tile.ink { top: 30%; right: 0; rotate: 6deg; animation-delay: -1.4s; }
.hero-visual .tile.loose { bottom: 24%; left: 8px; rotate: 5deg; width: 60px; height: 60px; animation-delay: -2.6s; }
.hero-visual .tile.decant { bottom: 6%; right: 12px; rotate: 12deg; width: 64px; height: 64px; animation-delay: -0.6s; }
@keyframes drift { from { translate: 0 0; } to { translate: 0 -9px; } }

@media (max-width: 920px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 44px 0 60px; text-align: center; }
  .hero-copy { margin-inline: auto; }
  .title { justify-content: center; }
  .hero .lede { margin-inline: auto; }
  .actions { justify-content: center; }
}
@media (max-width: 480px) {
  .phone { --w: 232px; padding: 7px; border-radius: 34px; }
  .phone img { border-radius: 27px; }
  .hero-visual { padding: 16px 44px 24px; }
  .hero-visual .tile { width: 48px; height: 48px; }
  .hero-visual .tile.crown { width: 56px; height: 56px; }
  .hero-visual .tile.loose { width: 50px; height: 50px; }
  .hero-visual .tile.decant { width: 52px; height: 52px; right: 6px; }
  .tagline { font-size: 22px; }
  .hero .lede { font-size: 17.5px; }
}
@media (max-width: 360px) {
  .phone { --w: 216px; }
  .hero-visual { padding: 14px 34px 22px; }
  .hero-visual .tile.crown { left: -2px; }
  .hero-visual .tile.loose { left: 0; }
  .hero-visual .tile.ink { right: -2px; }
  .hero-visual .tile.decant { right: 0; }
}

/* ---------------- Sections ---------------- */

.section { padding: 88px 0; position: relative; }
.section.alt, .closing.alt { background: var(--paper-2); }
.section-head { max-width: 42em; margin-bottom: 44px; }
.eyebrow {
  display: inline-block; margin: 0 0 14px;
  font: 600 14px/1 var(--font-ui); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
}
.section-head h2 { font-size: clamp(30px, 4.6vw, 44px); margin: 0 0 12px; }
.section-head p { color: var(--ink-2); font-size: 19px; margin: 0; }
.center { text-align: center; margin-inline: auto; }
@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 32px; }
  .section-head p { font-size: 17.5px; }
}

/* Screenshot strip: scrolls sideways on smaller screens, a single row of six on wide ones. */
.shots {
  --pad: max(20px, calc((100% - var(--wrap)) / 2));
  display: flex; gap: 20px; margin: 0; padding: 6px var(--pad) 26px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad);
  scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent;
}
.shots:focus-visible { outline-offset: -3px; border-radius: 0; }
.shots figure { flex: 0 0 auto; width: clamp(172px, 46vw, 212px); margin: 0; scroll-snap-align: start; text-align: center; }
.shots figcaption { margin-top: 14px; font-weight: 600; font-size: 17px; line-height: 1.3; }
.phone.small { --w: 100%; padding: 6px; border-radius: 30px; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.08), var(--shadow); }
.phone.small img { border-radius: 24px; }
@media (max-width: 480px) { .shots { --pad: 16px; gap: 16px; } }
@media (min-width: 1200px) {
  .shots { justify-content: center; overflow-x: visible; }
  .shots figure { width: 166px; }
}

/* ---------------- The four games ---------------- */

.games { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.game {
  --c: var(--ink); --ci: var(--ink);
  display: grid; grid-template-columns: 200px 1fr; gap: 24px; align-items: center;
  padding: 24px; border-radius: var(--radius);
  background: var(--card); box-shadow: inset 0 0 0 1px var(--line), var(--shadow);
  border-top: 5px solid var(--c);
}
.game.crown { --c: var(--acc-crown); --ci: var(--acc-crown-ink); }
.game.ink { --c: var(--acc-ink); --ci: var(--acc-ink-ink); }
.game.loose { --c: var(--acc-loose); --ci: var(--acc-loose-ink); }
.game.decant { --c: var(--acc-decant); --ci: var(--acc-decant-ink); }
.game .board { padding: 12px; border-radius: 16px; background: var(--paper-2); }
.game-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.game-head .tile { width: 48px; height: 48px; }
.game h3 { font-size: 25px; }
.game .pitch { margin: 2px 0 0; font-weight: 600; font-size: 16px; line-height: 1.35; color: var(--ci); }
.game p { color: var(--ink-2); font-size: 16.5px; }
.game p:last-child { margin-bottom: 0; }
.game .worlds { font-size: 15px; color: var(--muted); }
@media (max-width: 1040px) { .games { grid-template-columns: 1fr; max-width: 680px; margin-inline: auto; } }
@media (max-width: 560px) {
  .game { grid-template-columns: 1fr; padding: 20px; gap: 18px; }
  .game .board { max-width: 240px; width: 100%; margin-inline: auto; order: 2; }
}

/* Mini boards (inline SVG, aria-hidden). */
.mb { width: 100%; height: auto; }
.mb-grid { fill: none; stroke: var(--line); stroke-width: 1; }
.mb-frame { fill: none; stroke: var(--ink); stroke-width: 2.5; }
.mb-wall { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linecap: square; }
.cr-a { fill: var(--pal-0-tint); }
.cr-b { fill: var(--pal-4-tint); }
.cr-c { fill: var(--pal-2-tint); }
.cr-d { fill: var(--pal-1-tint); }
.cr-e { fill: var(--pal-6-tint); }
.cr-dot { fill: var(--ink); opacity: 0.45; }
.cr-crown { color: var(--ink); fill: var(--ink); }
.cr-free { fill: none; stroke: var(--ink); stroke-width: 2; stroke-dasharray: 4 4; opacity: 0.55; }
.ip-paper, .le-paper { fill: var(--card); }
.ip-line { fill: none; stroke: var(--acc-ink); stroke-width: 13; stroke-linecap: round; stroke-linejoin: round; }
.ip-lead { fill: var(--acc-ink); stroke: var(--card); stroke-width: 3; }
.ip-num { fill: var(--ink); }
.ip-label { fill: var(--card); font: 600 15px/1 var(--font-ui); text-anchor: middle; }
.le-dot { fill: var(--line-strong); }
.le-rib { fill: none; stroke-width: 14; stroke-linecap: round; stroke-linejoin: round; }
.le-head { stroke-width: 3; stroke-linejoin: round; }
.le-r0 { stroke: var(--pal-0); fill: var(--pal-0); }
.le-r1 { stroke: var(--pal-3); fill: var(--pal-3); }
.le-r2 { stroke: var(--pal-5); fill: var(--pal-5); }
.le-r3 { stroke: var(--pal-1); fill: var(--pal-1); }
.le-r4 { stroke: var(--pal-6); fill: var(--pal-6); }
.le-r5 { stroke: var(--pal-4); fill: var(--pal-4); }
.le-rib.le-r0, .le-rib.le-r1, .le-rib.le-r2, .le-rib.le-r3, .le-rib.le-r4, .le-rib.le-r5 { fill: none; }
.dc-shelf { stroke: var(--line-strong); stroke-width: 4; stroke-linecap: round; }
.dc-glass { fill: none; stroke: var(--ink-2); stroke-width: 3; stroke-linejoin: round; }
.dc-lip { stroke: var(--ink-2); stroke-width: 3; stroke-linecap: round; }
.dc-b { fill: var(--pal-4); }
.dc-r { fill: var(--pal-0); }
.dc-g { fill: var(--pal-2); }
.dc-cork { fill: var(--pal-8); }

/* ---------------- Every game has ---------------- */

.extras { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.extra { padding: 22px 22px 24px; border-radius: var(--radius); background: var(--card); box-shadow: inset 0 0 0 1px var(--line), var(--shadow); }
.extra .icon {
  display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 14px; border-radius: 14px;
  background: var(--paper-2); color: var(--c, var(--ink));
}
.extra .icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.extra .i-crown { --c: var(--acc-crown-ink); }
.extra .i-ink { --c: var(--acc-ink-ink); }
.extra .i-loose { --c: var(--acc-loose-ink); }
.extra .i-decant { --c: var(--acc-decant-ink); }
.extra h3 { font-size: 20px; margin: 0 0 6px; }
.extra p { margin: 0; color: var(--ink-2); font-size: 16px; }
@media (max-width: 1040px) { .extras { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .extras { grid-template-columns: 1fr; } }

/* ---------------- Free and Complete ---------------- */

.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: stretch; }
.plan { display: flex; flex-direction: column; padding: 28px; border-radius: var(--radius); background: var(--card); box-shadow: inset 0 0 0 1px var(--line), var(--shadow); }
.plan.complete { box-shadow: inset 0 0 0 2px var(--ink), var(--shadow); }
.plan-head { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; }
.plan h3 { font-size: 26px; }
.plan .sub { margin: 0 0 18px; color: var(--ink-2); font-weight: 600; }
.plan .mark { font-size: 40px; }
.plan .seal {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; flex: none;
  background: var(--paper-2); color: var(--good);
}
.plan .seal svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.ticks { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 34px; color: var(--ink); }
/* A tick in a filled circle: the circle is the ::before, the tick a mask over it in the card colour. */
.ticks li::before, .ticks li::after { content: ""; position: absolute; left: 0; top: 0.2em; width: 22px; height: 22px; }
.ticks li::before { border-radius: 50%; background: var(--good); }
.ticks li::after {
  background: var(--card);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 12.5l3.3 3.3L17 9'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 12.5l3.3 3.3L17 9'/%3E%3C/svg%3E") center / contain no-repeat;
}
.plan.complete .ticks li::before { background: var(--ink); }
.plan .fine { margin: auto 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.plan .fine + .fine { margin-top: 10px; padding-top: 0; border-top: 0; }
.never { max-width: 46em; margin: 32px auto 0; text-align: center; color: var(--ink-2); }
@media (max-width: 860px) { .plans { grid-template-columns: 1fr; max-width: 620px; margin-inline: auto; } }
@media (max-width: 480px) { .plan { padding: 22px 20px; } }

/* ---------------- Calm by design (the ink band) ---------------- */

.band { --focus: var(--star); background: var(--band); color: var(--band-ink); }
.band .eyebrow { color: var(--band-muted); }
.band .section-head p { color: var(--band-muted); }
.promises { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.promises li { padding: 22px 22px 24px; border-radius: var(--radius); background: var(--band-card); box-shadow: inset 0 0 0 1px var(--band-line); }
.promises .icon { display: block; width: 30px; height: 30px; margin-bottom: 12px; fill: none; stroke: var(--star); stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.promises h3 { font-size: 20px; margin: 0 0 6px; }
.promises p { margin: 0; color: var(--band-muted); font-size: 16px; }
.band .note { margin: 32px 0 0; color: var(--band-muted); }
.band .note a { color: var(--band-ink); font-weight: 600; text-underline-offset: 3px; }
@media (max-width: 980px) { .promises { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .promises { grid-template-columns: 1fr; } }

/* ---------------- FAQ ---------------- */

.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 14px; }
.faq details { border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line), var(--shadow); }
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 20px; font: 600 18px/1.35 var(--font-ui); border-radius: 18px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 12px 2.5px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 2.5px 12px no-repeat,
    var(--paper-2);
  transition: rotate 0.2s ease;
}
.faq details[open] summary::after { rotate: 45deg; }
.faq summary:focus-visible { outline-offset: 2px; }
.faq details > p { margin: 0; padding: 0 20px 20px; color: var(--ink-2); }
.faq details > p + p { margin-top: -8px; }
.faq a { color: var(--link); font-weight: 600; text-underline-offset: 2px; }
@media (max-width: 480px) { .faq summary { font-size: 17px; padding: 16px; } .faq details > p { padding: 0 16px 18px; } }

/* ---------------- Closing ---------------- */

.closing { text-align: center; }
.closing .wrap { padding: 84px 0 96px; }
.round-icon { width: 128px; height: 128px; margin: 0 auto 24px; border-radius: 30px; box-shadow: 0 0 0 1px var(--line), var(--shadow-lift); }
.closing h2 { font-size: clamp(32px, 5vw, 48px); margin: 0 0 12px; }
.closing .wrap > p { font-size: 19px; color: var(--ink-2); margin: 0; }
.closing .actions { justify-content: center; }
.closing .wrap > .note { margin-top: 22px; }

/* ---------------- Footer ---------------- */

.site-footer { --focus: var(--star); background: var(--band); color: var(--band-muted); padding: 52px 0 56px; font-size: 15px; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.foot-logo { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; color: var(--band-ink); }
.foot-logo .mark { font-size: 30px; }
.foot-logo .wordmark { font-size: 23px; }
.site-footer h2 { margin: 0 0 12px; font-size: 16px; letter-spacing: 0.04em; color: var(--band-ink); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--band-ink); text-decoration: none; overflow-wrap: anywhere; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.site-footer .credits { grid-column: 1 / -1; margin: 0; padding-top: 22px; border-top: 1px solid var(--band-line); font-size: 13px; }
.site-footer .credits a { text-decoration: underline; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr 1fr; } .site-footer .wrap > div:first-child { grid-column: 1 / -1; } }
@media (max-width: 400px) { .site-footer .wrap { grid-template-columns: 1fr; } }

/* ---------------- Long-form pages (privacy, support) ---------------- */

.page-head { text-align: center; border-bottom: 1px solid var(--line); }
.page-head .wrap { padding: 56px 0 52px; }
.page-head .tiles { display: flex; justify-content: center; gap: 10px; margin-bottom: 22px; }
.page-head .tiles .tile { width: 40px; height: 40px; }
.page-head h1 { font-size: clamp(38px, 6.4vw, 56px); margin: 0 0 12px; }
.page-head p { margin: 0 auto; max-width: 34em; font-size: 19px; color: var(--ink-2); }
.page-head .updated { font-weight: 600; font-size: 16px; color: var(--muted); }

.prose { max-width: 760px; padding: 48px 0 88px; }
.prose h2 { font-size: 26px; margin: 44px 0 12px; }
.prose h3 { font-size: 20px; margin: 28px 0 8px; }
.prose p, .prose li { color: var(--ink); }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--acc-ink-ink); }
.prose a { color: var(--link); text-underline-offset: 2px; }
.prose .faq { margin: 8px 0 0; max-width: none; }
.summary-box {
  margin-bottom: 32px; padding: 22px 24px; border-radius: var(--radius);
  background: var(--card); box-shadow: inset 0 0 0 1px var(--line), var(--shadow);
  border-left: 5px solid var(--acc-ink);
}
.summary-box p { margin: 0; }
.summary-box p + p { margin-top: 0.8em; }

/* Support: the contact card. */
.contact-card {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 24px;
  margin-bottom: 12px; padding: 24px; border-radius: var(--radius);
  background: var(--card); box-shadow: inset 0 0 0 1px var(--line), var(--shadow);
}
.contact-card > div { flex: 1 1 320px; }
.contact-card h2 { margin: 0 0 6px; font-size: 24px; }
.contact-card p { margin: 0; }
.contact-card .mail { font-weight: 600; overflow-wrap: anywhere; }

/* ---------------- 404 ---------------- */

.not-found { text-align: center; }
.not-found .wrap { min-height: calc(100vh - 65px); min-height: calc(100svh - 65px); display: grid; place-content: center; justify-items: center; padding: 56px 0 72px; }
.not-found .mb-wrap { width: min(200px, 60vw); margin-bottom: 30px; padding: 12px; border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line), var(--shadow); rotate: -4deg; }
.not-found h1 { font-size: clamp(38px, 7vw, 60px); margin: 0 0 14px; }
.not-found p { max-width: 30em; font-size: 19px; color: var(--ink-2); }
.not-found .btn { margin-top: 10px; }

/* ---------------- Motion ---------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-visual .tile { animation: none; }
  .btn, .faq summary::after { transition: none; }
  .btn:hover, .btn:active { transform: none; }
}
