/* ProvenXP website. Tokens and rules: DESIGN.md. Mobile first. */

@font-face {
  font-family: "Quicksand";
  src: url("/assets/fonts/Quicksand_700Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("/assets/fonts/Nunito_600SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("/assets/fonts/Nunito_700Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --sky-top: #D9E8FF;
  --sky-mid: #ECE4FF;
  --sky-bottom: #FFEAF1;
  --bg: #F4EFFF;
  --surface: #FFFFFF;
  --surface-alt: #F6F2FF;
  --track: #E6E0F5;
  --track-on-sky: #C2B7EA;
  --border: #E3DAF7;
  --text: #3B3358;
  --text-muted: #5F5880;
  --text-faint: #655E86;
  --on-fill: #FFFFFF;
  --action: #EE5F8A;
  --action-strong: #D23C6B;
  --action-text: #B23462;
  --action-soft: #FFE6EE;
  --level: #8270EE;
  --level-strong: #6A55E0;
  --level-text: #5A47C9;
  --level-soft: #ECE8FF;
  --proof: #FFB547;
  --proof-strong: #A86200;
  --proof-text: #8F5300;
  --proof-soft: #FFF1D6;
  --success: #4CC9A5;
  --success-strong: #1F8466;
  --success-text: #1C735A;
  --success-soft: #DDF6EE;
  --streak: #FF9E7A;
  --streak-text: #A84A1A;
  --streak-soft: #FFEADF;
  --coin: #C98A55;
  --coin-text: #7E4F2E;
  --coin-soft: #F7EDE4;
  --loot: #9C7BFF;
  --loot-strong: #6A3FD0;
  --loot-soft: #EEE6FF;
  --glass: rgba(255, 255, 255, 0.78);
  --glass-border: rgba(255, 255, 255, 0.95);
  --glass-sheet: rgba(255, 255, 255, 0.66);
  --shadow-card: 0 8px 24px rgba(110, 80, 160, 0.24);
  --shadow-sheet: 0 -10px 30px rgba(110, 80, 160, 0.16);

  /* Night mode, for the one night band */
  --night-1: #141A44;
  --night-2: #2B2766;
  --night-3: #5A3F82;
  --night-4: #8A5A8E;
  --night-card: #2B2452;
  --night-ink: #F3EEFF;
  --night-muted: #CBC3EA;
  --night-star: #EDE8FF;

  --s-xs: 4px;
  --s-sm: 8px;
  --s-md: 12px;
  --s-lg: 16px;
  --s-xl: 24px;
  --s-xxl: 32px;
  --s-3xl: 48px;
  --s-4xl: 64px;
  --s-5xl: 96px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-pill: 999px;
  --wrap: 1232px;
  --gut: 20px;
  --gap: var(--s-xl);       /* the grid's column gap */
  --pad: var(--s-3xl);      /* every section's top and bottom padding */
  --head-gap: var(--s-xxl); /* from a section's heading block to its content */
  --measure: 640px;
  --header-h: 64px;

  --f-head: "Quicksand", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --f-body: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --t-statement: clamp(2.5rem, 1.2rem + 6.2vw, 6rem);
  --t-display: clamp(2rem, 1.3rem + 3.4vw, 4rem);
  --t-title: clamp(1.75rem, 1.3rem + 2.2vw, 3rem);
  --t-heading: 1.375rem;
  --t-lead: 1.25rem;
  --t-body: 1.0625rem;
  --t-small: 0.9375rem;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--bg);
}
body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, var(--sky-top) 0, var(--sky-mid) 45%, var(--sky-bottom) 100%) var(--bg);
  color: var(--text);
  font: 600 var(--t-body)/1.55 var(--f-body);
  overflow-wrap: break-word;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--f-head); font-weight: 700; margin: 0; text-wrap: balance; }
h1 { font-size: var(--t-display); line-height: 1.08; }
h2 { font-size: var(--t-title); line-height: 1.12; }
h3 { font-size: var(--t-heading); line-height: 1.25; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
strong { font-weight: 700; }
table { border-collapse: collapse; }

a { color: var(--level-text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: text-decoration-thickness 150ms var(--ease), color 150ms var(--ease); }
a:hover { text-decoration-thickness: 2px; color: var(--level-strong); }
:focus-visible { outline: 3px solid var(--level); outline-offset: 2px; }

.wrap { width: min(100% - 2 * var(--gut), var(--wrap)); margin-inline: auto; }
.lead { font-size: var(--t-lead); line-height: 1.45; max-width: var(--measure); }
.quiet { color: var(--text-muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

.skip {
  position: absolute; left: var(--s-lg); top: -100px; z-index: 100;
  padding: var(--s-md) var(--s-lg); border-radius: var(--r-md);
  background: var(--surface); color: var(--level-text); font-weight: 700;
}
.skip:focus { top: var(--s-sm); }

/* Header */
.site-header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 10;
  background: var(--glass); border-bottom: 1px solid var(--glass-border);
}
.site-header__row { display: flex; align-items: center; gap: var(--s-sm); min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: var(--s-sm); min-height: 44px; color: var(--text); text-decoration: none; }
.brand:hover { color: var(--text); }
.brand__icon { width: 32px; height: 32px; border-radius: 9px; }
.brand__name { font: 700 1.125rem/1 var(--f-head); }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; }
.site-nav a {
  display: flex; white-space: nowrap; align-items: center; min-height: 44px; padding-inline: 6px;
  color: var(--text); font-weight: 700; font-size: var(--t-small); text-decoration-color: transparent;
}
.site-nav a:hover { color: var(--level-text); text-decoration-color: currentColor; }
.site-nav__opt { display: none; }

/* Status pill: a status, not a button */
.pill {
  display: inline-flex; align-items: center; gap: var(--s-sm);
  min-height: 36px; padding: 6px 14px; border-radius: var(--r-pill);
  background: var(--glass); border: 1px solid var(--glass-border);
  font-size: var(--t-small); font-weight: 700; line-height: 1.3; color: var(--text);
}
.pill__dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px var(--success-soft); }
.pill--header { display: none; }

/* Primary button: one per screen, in-page moves only while there is no store link */
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 var(--s-xl);
  border-radius: var(--r-pill); background: var(--action-strong); color: var(--on-fill);
  font: 700 var(--t-body)/1.2 var(--f-body); text-decoration: none; text-align: center;
  transition: background-color 150ms var(--ease), transform 150ms var(--ease);
}
.button:hover { background: var(--action-text); color: var(--on-fill); }
.button:active { transform: translateY(1px); }

.eyebrow { font-size: var(--t-small); font-weight: 700; color: var(--text-muted); }

/* Hero: the isle grows */
.hero { position: relative; }
.hero__pin { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; padding: calc(var(--header-h) + var(--s-lg)) 0 var(--s-xl); }
.hero__grid { flex: 1; display: flex; flex-direction: column; gap: var(--s-lg); min-height: 0; }
.hero__text { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-md); }
.hero__text .eyebrow { margin-bottom: calc(-1 * var(--s-xs)); }
.hero__lead { max-width: 34rem; }
.hero__free { font-weight: 700; }
.hero__next { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-md) var(--s-lg); margin-top: var(--s-xs); }

.stage { position: relative; display: flex; flex-direction: column; gap: var(--s-sm); min-height: 0; }
.stage__frame { position: relative; z-index: 1; width: 100%; max-width: 756px; margin-inline: auto; aspect-ratio: 756 / 650; }
.stage__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; }
.stage__img:last-child { opacity: 1; }
/* The clouds rest: no drift (the app's clouds drift, but a page that moves for ever is tiring) */
.cloud { position: absolute; z-index: 0; height: auto; opacity: .9; pointer-events: none; }
.cloud--a { top: 2%; left: 0; width: 30%; max-width: 220px; }
.cloud--b { bottom: 22%; right: 0; width: 24%; max-width: 170px; }

.stage__bar { position: relative; z-index: 1; width: 100%; max-width: 756px; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: var(--s-md); }
.stage__caption { display: flex; align-items: center; gap: var(--s-md); }
.stage__badges { position: relative; width: 44px; height: 44px; flex: none; }
.stage__badges img { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; }
.stage__badges img:last-child, .stage__badges img.is-on { opacity: 1; }
.stage__words { display: flex; flex-direction: column; line-height: 1.25; }
.stage__rank { font: 700 1.125rem/1.2 var(--f-head); color: var(--proof-text); }
.stage__place { font-size: var(--t-small); color: var(--text-muted); white-space: nowrap; }

.dots { display: none; align-items: center; gap: 4px; }
.dots li { width: 10px; height: 10px; border-radius: 50%; background: var(--track-on-sky); transform: scale(.67); }
.dots li.is-done { background: var(--level); }
.dots li.is-on { background: var(--level); transform: none; }

.ranks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-lg); padding-bottom: var(--s-xl); }
.ranks li { display: flex; flex-direction: column; }
.ranks img { width: 100%; margin-bottom: var(--s-xs); }
.ranks__name { font: 700 1.0625rem/1.3 var(--f-head); color: var(--proof-text); }
.ranks__place { font-size: var(--t-small); color: var(--text-muted); }

/* Animated mode: html.grow is set by site.js only with motion allowed and a tall enough screen */
.grow .hero { height: calc(100vh + 6 * 34vh); height: calc(100svh + 6 * 34svh); }
.grow .hero__pin { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 0; overflow: hidden; }
.grow .stage { flex: 1 1 auto; }
.grow .stage__frame { flex: 1 1 0; min-height: 96px; max-height: 650px; aspect-ratio: auto; }
.grow .stage__img:last-child { opacity: 0; }
.grow .stage__img:first-child { opacity: 1; }
.grow .stage__badges img:last-child { opacity: 0; }
.grow .stage__badges img.is-on { opacity: 1; }
.grow .dots { display: flex; }
.grow .ranks {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* Sections: one padding, one grid */
.band, .night { padding-block: var(--pad); }
.band--sheet { background: var(--glass-sheet); }
.band--surface { background: var(--surface); }
.head { display: grid; gap: var(--s-md); max-width: 54rem; margin-bottom: var(--head-gap); }
.head p { font-size: var(--t-lead); line-height: 1.45; max-width: var(--measure); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--s-lg); }

/* The grid. Phones: one column. From 960 px: twelve columns; a split puts its first part on
   columns 1 to 5 and its second on 7 to 12; rows of two or three equal cards land on the same lines. */
.split { display: grid; gap: var(--s-xl) var(--gap); align-items: start; }
.split__a h2 { margin-bottom: var(--s-lg); }
.row2, .row3 { display: grid; gap: var(--s-md); }
.stack { display: grid; gap: var(--s-md); align-content: start; }

/* Tile: a card with a picture. Phones: the picture beside the words. From 768 px: the picture on top. */
.tile { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: var(--s-lg); align-items: center; }
.tile__art {
  position: relative; display: grid; place-items: center; height: 88px; overflow: hidden;
  border-radius: var(--r-md); background: var(--surface-alt);
}
.tile__art img { width: 100%; height: 100%; object-fit: contain; }
.tile__art--gold { background: var(--proof-soft); }
.tile__art--mint { background: var(--success-soft); }
.tile__art--lantern img { position: absolute; left: 50%; top: 50%; width: 176px; height: 176px; max-width: none; transform: translate(-50%, -48%); }
.tile__art .tile__badge { width: 72px; height: 72px; }
.tile__text { display: grid; gap: var(--s-xs); align-content: start; }
.tile h3 { display: flex; align-items: center; gap: var(--s-sm); font-size: 1.1875rem; }
.num {
  display: inline-grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%;
  background: var(--level-soft); color: var(--level-text); font: 700 1.0625rem/1 var(--f-head);
}
.bigtick { position: relative; width: 52px; height: 52px; border-radius: 50%; background: var(--success-strong); }
.bigtick::after { content: ""; position: absolute; left: 19px; top: 11px; width: 13px; height: 24px; border: solid var(--on-fill); border-width: 0 4px 4px 0; transform: rotate(45deg); }

/* The rank statement */
.statement { font-size: var(--t-statement); line-height: 1.02; letter-spacing: -0.01em; max-width: 13ch; margin-bottom: var(--head-gap); }
.compare__item { display: flex; align-items: center; gap: var(--s-md); padding: var(--s-md) var(--s-lg); border-radius: var(--r-md); background: var(--level-soft); }
.compare__item img { width: 56px; height: 56px; flex: none; }
.compare__item strong { color: var(--level-text); }
.compare__item--rank { background: var(--proof-soft); }
.compare__item--rank strong { color: var(--proof-text); }
.rankrow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-lg) var(--s-sm); margin-top: var(--s-xxl); }
.rankrow li { display: grid; justify-items: start; gap: var(--s-sm); }
.rankrow img { width: 56px; height: 56px; }
.rankrow span { font: 700 0.8125rem/1.2 var(--f-head); color: var(--proof-text); }

/* Build habits that stick */
.badge-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-md); max-width: 30rem; }
.badge-row img { width: 100%; }
.ticks { display: grid; gap: var(--s-sm); }
.ticks li { position: relative; padding: var(--s-md) var(--s-lg) var(--s-md) 52px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--border); }
.ticks li::before { content: ""; position: absolute; left: 14px; top: 14px; width: 24px; height: 24px; border-radius: 50%; background: var(--success-soft); }
.ticks li::after { content: ""; position: absolute; left: 23px; top: 19px; width: 6px; height: 11px; border: solid var(--success-text); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }

/* Turn big goals into quests */
.quests li { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: center; gap: var(--s-md); padding-block: var(--s-sm); border-bottom: 1px solid var(--track); }
.quests li:last-child { border-bottom: 0; }
.quests img { width: 64px; height: 64px; object-fit: cover; object-position: 50% 100%; }
.campaign { display: grid; gap: var(--s-md); }
.campaign__map { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-sm); padding: var(--s-sm); border-radius: var(--r-md); background: var(--surface-alt); }
.campaign__map img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: 50% 100%; }
.progress { display: flex; align-items: center; gap: var(--s-lg); }
.progress img { width: 64px; height: 64px; flex: none; }
.progress h3 { margin-bottom: var(--s-xs); font-size: 1.1875rem; }

/* Play at your pace */
.modes { display: grid; gap: var(--s-md); }
.modes__table { width: 100%; margin-bottom: var(--s-xs); }
.modes__table th, .modes__table td { padding: 10px 4px; border-bottom: 1px solid var(--track); text-align: center; vertical-align: middle; }
.modes__table thead th { font: 700 var(--t-small)/1.2 var(--f-head); color: var(--text); }
.modes__table tbody th { width: 46%; text-align: left; font-weight: 700; padding-left: 0; }
.modes__table tbody tr:last-child > * { border-bottom: 0; }
.yes, .no { position: relative; display: inline-block; width: 26px; height: 26px; border-radius: 50%; vertical-align: middle; }
.yes { background: var(--success-soft); }
.yes::after { content: ""; position: absolute; left: 9.5px; top: 5px; width: 6px; height: 11px; border: solid var(--success-text); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.no::after { content: ""; position: absolute; left: 7px; top: 12px; width: 12px; height: 2.5px; border-radius: 2px; background: var(--track-on-sky); }

/* Choose your hero: a woman and a man of each class */
.classes { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: var(--s-lg) var(--s-md); }
.classes li { width: calc((100% - var(--s-md)) / 2); display: flex; flex-direction: column; align-items: center; gap: var(--s-sm); }
.classes__pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-xs); width: 100%; }
/* Each hero is shown from the boots up: the picture is enlarged in its frame and cut at the bottom.
   The files are the app's own, unchanged. */
.classes__frame { position: relative; display: block; width: 100%; aspect-ratio: 3 / 5; overflow: hidden; border-radius: var(--r-md); background: var(--surface-alt); border: 1px solid var(--border); }
.classes__frame img { position: absolute; left: 0; top: -5.6%; width: 100%; height: 124%; object-fit: cover; object-position: 50% 0; }
.classes li > span { font: 700 var(--t-small)/1.3 var(--f-head); text-align: center; }

/* A world that grows with you: the night band */
.night {
  color: var(--night-ink);
  background:
    radial-gradient(circle at 8% 3%, var(--night-star) 0 1.5px, transparent 2px),
    radial-gradient(circle at 31% 1.5%, var(--night-star) 0 1px, transparent 1.5px),
    radial-gradient(circle at 57% 4%, var(--night-star) 0 1.5px, transparent 2px),
    radial-gradient(circle at 79% 2%, var(--night-star) 0 1px, transparent 1.5px),
    radial-gradient(circle at 96% 6%, var(--night-star) 0 1.5px, transparent 2px),
    linear-gradient(180deg, var(--night-1) 0, var(--night-2) 40%, var(--night-3) 70%, var(--night-4) 100%);
}
.night .lead { color: var(--night-muted); margin-bottom: var(--s-xl); }
.night__list { display: grid; gap: var(--s-sm); }
.night__list li { padding: var(--s-md) var(--s-lg); border-radius: var(--r-md); background: var(--night-card); }
.night__art img { width: min(100%, 560px); margin-inline: auto; }

/* Rewards */
.reward { display: grid; gap: var(--s-lg); align-content: start; }
.reward__art { display: grid; place-items: center; border-radius: var(--r-md); background: var(--surface-alt); padding: var(--s-md); }
.badge-grid { grid-template-columns: repeat(4, minmax(0, 64px)); justify-content: center; gap: var(--s-sm); }
.badge-grid img { width: 64px; height: 64px; }
.reward__shop { width: 150px; }
.reward__text { display: grid; gap: var(--s-xs); }
.reward h3 { font-size: 1.1875rem; }

/* Who it is for */
.who__text { font: 700 clamp(1.375rem, 1.1rem + 1.2vw, 2rem)/1.3 var(--f-head); max-width: 34ch; margin-bottom: var(--s-lg); }
.who__text + p { max-width: var(--measure); margin-bottom: var(--s-lg); }

/* Your data, plainly */
.data__balloon { width: 56px; }
.data__link a, .site-footer__links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
#data .split__a { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-md) var(--s-xl); }
#data .split__a h2 { width: 100%; margin: 0; }
.facts li { display: grid; gap: var(--s-xs); padding-block: var(--s-md); border-bottom: 1px solid var(--track); }
.facts li:first-child { padding-top: 0; }
.facts li:last-child, .faq details:last-child { border-bottom: 0; }
.facts h3 { font-size: 1.125rem; }
.facts p { max-width: var(--measure); }

/* Questions and answers */
.faq details { border-bottom: 1px solid var(--track); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-lg);
  min-height: 52px; padding-block: var(--s-sm); cursor: pointer; list-style: none;
  font: 700 1.0625rem/1.35 var(--f-head);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%;
  background:
    linear-gradient(var(--level-text), var(--level-text)) center / 12px 2px no-repeat,
    linear-gradient(var(--level-text), var(--level-text)) center / 2px 12px no-repeat,
    var(--level-soft);
}
.faq details[open] summary::after {
  background: linear-gradient(var(--level-text), var(--level-text)) center / 12px 2px no-repeat, var(--level-soft);
}
.faq summary:hover { color: var(--level-text); }
.faq details p { padding-bottom: var(--s-lg); max-width: var(--measure); }

/* Closing */
.closing .lead { margin-bottom: var(--s-xl); }
.closing__art img { width: min(70%, 420px); margin-inline: auto; }

/* Footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding-block: var(--s-xxl); font-size: var(--t-small); }
.site-footer__row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-sm) var(--s-xl); }
.site-footer__links { display: flex; flex-wrap: wrap; gap: var(--s-xl); }

/* 404 */
.lost { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--header-h) + var(--s-xxl)) 0 var(--pad); }
.lost__text { display: grid; gap: var(--s-lg); justify-items: start; }
.lost__text h1 { margin: 0; }
.lost__scene { position: relative; }
.lost__isle { position: relative; z-index: 1; width: min(100%, 420px); margin-inline: auto; }

/* Breakpoints */
@media (min-width: 400px) {
  .dots { gap: 6px; }
  .dots li { width: 12px; height: 12px; }
  .site-nav a { padding-inline: 10px; }
  .brand__icon { width: 36px; height: 36px; border-radius: 10px; }
  .brand__name { font-size: 1.25rem; }
  .rankrow img { width: 64px; height: 64px; }
}

@media (min-width: 560px) {
  .ranks { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .site-nav__opt { display: block; }
  .row2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .classes li { width: calc((100% - 2 * var(--s-md)) / 3); }
}

@media (min-width: 768px) {
  :root { --gut: 32px; --pad: var(--s-4xl); --head-gap: var(--s-3xl); }
  .row2, .row3 { gap: var(--gap); }
  .row3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .card { padding: var(--s-xl); }
  .tile { grid-template-columns: none; grid-template-rows: auto 1fr; align-items: start; }
  .tile__art { height: 200px; }
  .tile__art--lantern img { width: 384px; height: 384px; }
  .tile__art .tile__badge { width: 128px; height: 128px; }
  .bigtick { width: 96px; height: 96px; }
  .bigtick::after { left: 35px; top: 19px; width: 24px; height: 46px; border-width: 0 7px 7px 0; }
  .tile h3 { font-size: var(--t-heading); }
  .rankrow { grid-template-columns: repeat(7, minmax(0, 1fr)); margin-top: var(--s-3xl); }
  .rankrow img { width: 80px; height: 80px; }
  .rankrow span { font-size: var(--t-small); }
  .classes { gap: var(--s-xl) var(--gap); }
  .classes li { width: calc((100% - 3 * var(--gap)) / 4); }
  .reward__art { height: 220px; }
  .badge-grid { grid-template-columns: repeat(4, 72px); gap: var(--s-md); }
  .badge-grid img { width: 72px; height: 72px; }
  .reward__shop { width: 190px; }
  .reward h3 { font-size: var(--t-heading); }
  .data__balloon { width: 126px; }
  .quests li { grid-template-columns: 80px minmax(0, 1fr); gap: var(--s-lg); }
  .quests img { width: 80px; height: 80px; }
  .progress img { width: 72px; height: 72px; }
  .faq summary { font-size: 1.125rem; min-height: 56px; }
}

@media (min-width: 960px) {
  :root { --pad: var(--s-5xl); }
  .split { grid-template-columns: repeat(12, minmax(0, 1fr)); row-gap: 0; }
  .split__a { grid-column: 1 / span 5; }
  .split__b { grid-column: 7 / -1; }
  .split--center { align-items: center; }
  .hero__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: minmax(0, 1fr); gap: var(--gap); align-items: center; }
  .hero__text { grid-column: 1 / span 6; }
  .stage { grid-column: 7 / -1; align-self: stretch; justify-content: center; }
  .hero__lead { font-size: var(--t-lead); }
  .ranks { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  #data .split__a { display: grid; justify-items: start; }
  #data .split__a h2 { width: auto; }
  .closing__art img { width: min(100%, 460px); }
  /* heroes: one row of seven classes, the woman above the man */
  .classes { flex-wrap: nowrap; }
  .classes li { width: auto; flex: 1 1 0; }
  .classes__pair { grid-template-columns: none; gap: var(--s-sm); }
}

@media (min-width: 1024px) {
  .pill--header { display: inline-flex; margin-left: var(--s-lg); }
}

@media (min-width: 1200px) {
  .tile__art { height: 230px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
