/* FrequencyDictionary.net — shared styles.
 * Same design language as the iPhone app "Learn European Portuguese A1/2"
 * (FrequencyApp/Shared/Design/Theme.swift): red "section opener" band, cream page,
 * paper cards, gold ring badge, condensed Archivo caps, Newsreader for Portuguese.
 */

:root {
  --red: #C8102E;
  --red-dark: #9E0C24;
  --red-deep: #A50D26;
  --gold: #F2B705;
  --ink: #121417;
  --paper: #FBF9F4;     /* cards */
  --page: #F5F1E8;      /* cream page under the opener */
  --muted: #4A463F;
  --faint: #B9B1A2;
  --rule: #E4DED1;
  --line: #E3DCCD;
  --green: #00674A;
  --marker: #FBE3A6;

  --display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --gutter: 16px;
  --max: 1120px;
  --radius: 26px;
  --radius-sm: 16px;
  --shadow: 0 1px 2px rgba(18, 20, 23, .05), 0 10px 30px -8px rgba(60, 40, 20, .18);
}
@media (min-width: 720px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem; /* 17px */
  line-height: 1.55;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-underline-offset: .15em; }
a:hover { color: var(--red-dark); }
p { margin: 0 0 1em; }

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 20;
  background: var(--ink); color: #fff; padding: 8px 14px;
  font-family: var(--display); font-weight: 700;
}
.skip-link:focus { left: 8px; top: 8px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

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

/* ---------- Type ---------- */

.display, h1, h2, h3 {
  font-family: var(--display);
  font-weight: 900;
  font-stretch: 66%;
  text-transform: uppercase;
  line-height: .9;
  letter-spacing: -.005em;
  margin: 0;
  overflow-wrap: break-word;
}
h1 { font-size: clamp(3.1rem, 15vw, 7.2rem); }
h2 { font-size: clamp(2.4rem, 10.5vw, 4.4rem); }
h3 { font-size: clamp(1.45rem, 5.6vw, 1.9rem); line-height: .95; }
.gold { color: var(--gold); }
.red { color: var(--red); }

.eyebrow {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 100%;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .8rem;
  line-height: 1.3;
  color: var(--red);
  margin: 0 0 12px;
}
.eyebrow--rule::after { content: ""; display: block; width: 52px; height: 5px; background: currentColor; margin-top: 8px; }

.lede { font-size: clamp(1.15rem, 4.4vw, 1.35rem); line-height: 1.4; margin: 18px 0 0; max-width: 38ch; }
.muted { color: var(--muted); }
.small { font-size: .925rem; line-height: 1.5; }
.pt { font-family: var(--serif); }

/* ---------- Site header (sits on the red opener) ---------- */

.site-header { background: var(--red); color: var(--paper); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px 16px; flex-wrap: wrap;
  padding-top: 14px; padding-bottom: 6px;
}
.brand {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--display); font-weight: 900; font-stretch: 66%;
  text-transform: uppercase; font-size: 1.3rem; line-height: 1;
  color: var(--paper); text-decoration: none; letter-spacing: .01em;
}
.brand:hover { color: var(--paper); }
.brand img { width: 30px; height: 30px; border-radius: 8px; box-shadow: 0 0 0 1.5px rgba(251, 249, 244, .55); }
.brand span { color: var(--gold); }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a {
  font-family: var(--display); font-weight: 800; font-size: .78rem;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--paper); text-decoration: none;
  padding: 7px 11px; border-radius: 999px;
}
.nav a:hover { background: rgba(255, 255, 255, .12); color: var(--paper); }
.nav a[aria-current="page"] { background: var(--paper); color: var(--red); }

/* ---------- Opener (the app's red section header) ---------- */

.opener { background: var(--red); color: var(--paper); padding: 28px 0 44px; position: relative; }
.opener--overlap { padding-bottom: 120px; }
.opener .eyebrow { color: var(--gold); }
.opener h1 { color: var(--paper); }
.opener .lede { color: var(--paper); }
.opener .lede strong { color: var(--gold); }
.opener .sub { color: rgba(251, 249, 244, .82); font-size: .95rem; margin-top: 10px; }
.opener-grid { display: grid; gap: 24px; align-items: center; }
.opener-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.opener-bar { height: 6px; border-radius: 3px; background: var(--red-deep); margin-top: 26px; overflow: hidden; }
.opener-bar > span { display: block; height: 100%; width: 0; background: var(--gold); border-radius: 3px; transition: width .4s ease; }
@media (min-width: 900px) {
  .opener { padding: 40px 0 64px; }
  .opener--overlap { padding-bottom: 150px; }
  .opener-grid { grid-template-columns: 1fr auto; gap: 48px; }
}
.overlap { margin-top: -88px; position: relative; z-index: 1; }
@media (min-width: 900px) { .overlap { margin-top: -110px; } }

/* ---------- Ring badge ("27% KNOWN") ---------- */

.ring {
  --size: 76px;
  position: relative; flex: none;
  width: var(--size); height: var(--size);
  display: grid; place-items: center; text-align: center;
  color: var(--paper);
}
.ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.ring .track { fill: none; stroke: rgba(242, 183, 5, .3); stroke-width: 3; }
.ring .arc { fill: none; stroke: var(--gold); stroke-width: 3.6; stroke-linecap: round; transition: stroke-dasharray .9s ease-out; }
.ring-txt { position: relative; display: flex; flex-direction: column; align-items: center; gap: 1px; margin-top: -2px; }
.ring-n {
  font-family: var(--display); font-weight: 900; font-stretch: 62%;
  color: var(--gold); font-size: calc(var(--size) * .33); line-height: 1;
  font-variant-numeric: tabular-nums;
}
.ring-l {
  font-family: var(--display); font-weight: 800; letter-spacing: .1em;
  font-size: max(7.5px, calc(var(--size) * .115)); line-height: 1; text-transform: uppercase;
}
.ring--lg { --size: 132px; }
.ring--xl { --size: 172px; }
.ring--xl .track, .ring--lg .track { stroke-width: 2.6; }
.ring--xl .arc, .ring--lg .arc { stroke-width: 3.2; }
.ring--on-cream { color: var(--ink); }
.ring--on-cream .track { stroke: rgba(200, 16, 46, .14); }
.ring--on-cream .arc { stroke: var(--red); }
.ring--on-cream .ring-n { color: var(--red); }

/* ---------- Cards, sections, pills ---------- */

.section { padding: 48px 0; }
@media (min-width: 720px) { .section { padding: 72px 0; } }
.section-head { margin-bottom: 26px; max-width: 46rem; }
.section-head h2 { margin-bottom: 0; }
.section-head p { margin: 14px 0 0; color: var(--muted); max-width: 52ch; }

.card {
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}
@media (min-width: 720px) { .card { padding: 30px; } }
.card--flat { box-shadow: none; border: 1px solid var(--line); }
.card--red { background: var(--red); color: var(--paper); }
.card--red .eyebrow { color: var(--gold); }

/* Red section bar, like "SECTION 1 · THE ESSENTIALS · A1 / WORDS 1–100   11%" */
.section-bar {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 12px;
  background: var(--red); color: var(--paper);
  border-radius: var(--radius-sm);
  padding: 12px 16px 13px;
}
.section-bar .eyebrow { color: var(--gold); margin: 0 0 3px; font-size: .7rem; }
.section-bar .t { font-family: var(--display); font-weight: 900; font-stretch: 66%; text-transform: uppercase; font-size: 1.6rem; line-height: .95; }
.section-bar .n { font-family: var(--display); font-weight: 900; font-stretch: 66%; color: var(--gold); font-size: 1.9rem; line-height: .9; }

.pill {
  display: inline-block;
  font-family: var(--display); font-weight: 800; font-stretch: 100%;
  font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 10px 4px; border-radius: 7px; line-height: 1.2;
  background: var(--green); color: #fff; white-space: nowrap;
}
.pill--gold { background: var(--gold); color: var(--ink); }
.pill--new { background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1.5px var(--line); }
.pill--red { background: var(--red); }

/* Buttons: the app's big rounded pills */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 54px; padding: 14px 26px;
  font-family: var(--display); font-weight: 900; font-stretch: 72%;
  font-size: 1.2rem; letter-spacing: .03em; text-transform: uppercase; line-height: 1;
  border-radius: 16px; border: 0; cursor: pointer; text-decoration: none;
  background: var(--red); color: var(--paper);
  box-shadow: 0 3px 0 var(--red-dark);
  transition: transform .08s, box-shadow .08s, background .15s;
}
.btn:hover { background: #B50E29; color: var(--paper); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--red-dark); }
.btn--light { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--light:hover { background: #fff; color: var(--ink); }
.btn--light:active { box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--gold { background: var(--gold); color: var(--ink); box-shadow: 0 3px 0 #B98A00; }
.btn--gold:hover { background: #FFC81F; color: var(--ink); }
.btn--ghost-light { background: transparent; color: var(--paper); box-shadow: inset 0 0 0 2px rgba(251, 249, 244, .7); }
.btn--ghost-light:hover { background: rgba(255, 255, 255, .1); color: var(--paper); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
@media (max-width: 479px) { .btn-row .btn { width: 100%; } }

.badge-link { display: inline-block; line-height: 0; border-radius: 10px; }
.badge-link img { height: 52px; width: auto; }

/* ---------- Home: hero pair (book + app) ---------- */

.pair { display: grid; gap: 16px; }
@media (min-width: 760px) { .pair { grid-template-columns: 1fr 1fr; gap: 22px; } }
.pair .card { display: grid; grid-template-columns: 96px 1fr; gap: 18px; align-items: center; }
@media (min-width: 900px) { .pair .card { grid-template-columns: 120px 1fr; } }
.pair h3 { margin-bottom: 6px; }
.pair p { margin: 0; color: var(--muted); font-size: .97rem; }
.pair .go { display: inline-block; margin-top: 10px; font-family: var(--display); font-weight: 800; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; }
.icon-thumb { border-radius: 22%; box-shadow: 0 6px 18px -6px rgba(120, 10, 30, .55); }

/* ---------- Home: coverage ladder ---------- */

.ladder-card { padding: 0; overflow: hidden; }
.ladder-card .section-bar { border-radius: 0; padding: 16px 22px; }
.ladder { list-style: none; margin: 0; padding: 6px 22px 8px; }
.ladder li { display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.ladder li:last-child { border-bottom: 0; }
.ladder .count { font-family: var(--display); font-weight: 900; font-stretch: 66%; text-transform: uppercase; font-size: 1.7rem; line-height: 1; }
.ladder .count small { display: block; font-family: var(--sans); font-weight: 400; text-transform: none; font-size: .9rem; color: var(--muted); margin-top: 4px; }
.ladder .bar { grid-column: 1 / -1; }
.ladder .ring { --size: 70px; }
.bar { height: 10px; background: var(--rule); border-radius: 5px; overflow: hidden; }
.bar > span { display: block; height: 100%; width: 0; background: var(--red); border-radius: 5px; transition: width 1s cubic-bezier(.2, .7, .2, 1); }
.ladder-note { padding: 14px 22px 20px; margin: 0; font-size: .9rem; color: var(--muted); border-top: 1px solid var(--line); background: var(--page); }
@media (min-width: 900px) {
  .ladder-wrap { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: center; }
}

/* ---------- Numbered step cards ("01 Most-used first") ---------- */

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; counter-reset: step; }
@media (min-width: 720px) { .steps--3 { grid-template-columns: repeat(3, 1fr); } .steps--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps--4 { grid-template-columns: repeat(4, 1fr); } }
.steps li {
  counter-increment: step;
  background: var(--paper); border-radius: 20px; border: 1px solid var(--line);
  padding: 18px 20px 20px;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block; font-family: var(--display); font-weight: 900; font-stretch: 66%;
  color: var(--red); font-size: 2.6rem; line-height: 1; margin-bottom: 10px;
}
.steps h3 { font-size: 1.45rem; margin-bottom: 8px; }
.steps p { margin: 0; color: var(--muted); font-size: .97rem; }

/* ---------- Home: inside the book ---------- */

.inside-grid { display: grid; gap: 28px; align-items: start; }
@media (min-width: 900px) { .inside-grid { grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; } }
.book-page {
  margin: 0; border-radius: 6px; overflow: hidden; box-shadow: var(--shadow);
  max-width: 440px; justify-self: center; background: #fff;
}
.book-page figcaption { font-size: .85rem; color: var(--muted); padding: 10px 14px; background: var(--paper); border-top: 1px solid var(--line); }
.checklist { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.checklist li { padding-left: 34px; position: relative; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 22px; height: 22px; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 15px no-repeat;
}

/* ---------- Flip card (demo + quiz word) ---------- */

.demo-grid { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .demo-grid { grid-template-columns: 1fr 420px; gap: 56px; } }
.demo-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 12px; }
.demo-head .eyebrow { margin: 0; }
.demo-count { font-family: var(--display); font-weight: 900; font-stretch: 66%; font-size: 1.9rem; line-height: 1; text-transform: uppercase; }
.demo-count b { color: var(--red); font-weight: 900; }
.demo-count small { font-size: .95rem; color: var(--muted); }

.flip { perspective: 1400px; width: 100%; max-width: 420px; margin: 0 auto; }
.flip-btn { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; text-align: center; color: inherit; font: inherit; border-radius: var(--radius); }
.flip-inner { position: relative; height: 380px; transition: transform .55s cubic-bezier(.3, .7, .2, 1); transform-style: preserve-3d; }
.flip.is-flipped .flip-inner { transform: rotateY(180deg); }
.face {
  position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 24px 20px; overflow: hidden;
}
.face--back { transform: rotateY(180deg); justify-content: flex-start; padding-top: 0; }
.face--back::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 7px; background: var(--red); }
.face .eyebrow { margin-bottom: 14px; }
.face-word { font-family: var(--serif); font-size: clamp(3.4rem, 17vw, 4.6rem); line-height: 1; margin: 0; font-weight: 400; }
.face-hint { position: absolute; bottom: 22px; left: 0; right: 0; font-family: var(--display); font-weight: 800; font-size: .78rem; letter-spacing: .12em; color: var(--muted); text-transform: uppercase; }
.face-speaker { width: 46px; height: 46px; border-radius: 50%; background: var(--red); display: grid; place-items: center; margin-top: 22px; }
.face-speaker svg { width: 22px; height: 22px; }
.back-main { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; padding-top: 22px; }
.face-gloss { font-family: var(--serif); font-size: clamp(2.1rem, 10vw, 2.8rem); line-height: 1.05; margin: 0; }
.face-small { font-family: var(--serif); color: var(--muted); font-size: 1.15rem; margin-top: 10px; }
.face-ex {
  width: calc(100% + 40px); margin: 0 -20px -24px; padding: 14px 22px 18px;
  border-top: 1.5px dashed var(--faint); background: var(--page); text-align: left;
}
.face-ex .pt { font-style: italic; font-size: 1.25rem; display: block; line-height: 1.25; }
.face-ex .en { font-family: var(--serif); font-style: italic; color: var(--muted); font-size: 1rem; display: block; margin-top: 2px; }
.face-ex mark { background: var(--marker); color: inherit; padding: 0 2px; border-radius: 2px; }
.demo-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; max-width: 420px; margin-left: auto; margin-right: auto; }
.demo-actions .btn { width: 100%; padding-left: 10px; padding-right: 10px; }
.demo-note { text-align: center; font-size: .85rem; color: var(--muted); margin-top: 12px; }
@media (prefers-reduced-motion: reduce) { .flip-inner, .bar > span, .ring .arc, .opener-bar > span { transition: none; } }

/* ---------- Home: app section ---------- */

.app-band { background: var(--red); color: var(--paper); padding: 52px 0 56px; overflow: hidden; }
@media (min-width: 720px) { .app-band { padding: 80px 0; } }
.app-band .eyebrow { color: var(--gold); }
.app-band h2 { color: var(--paper); }
.app-id { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.app-id img { width: 76px; height: 76px; border-radius: 18px; box-shadow: 0 0 0 2px rgba(251, 249, 244, .6), 0 10px 24px -8px rgba(0, 0, 0, .45); }
.app-id .nm { font-family: var(--display); font-weight: 900; font-stretch: 72%; text-transform: uppercase; font-size: 1.35rem; line-height: 1; }
.app-id .st { font-size: .92rem; color: rgba(251, 249, 244, .85); margin-top: 4px; }
.app-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .app-grid { grid-template-columns: 1.05fr 1fr; gap: 56px; } }
.features { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
@media (min-width: 560px) { .features { grid-template-columns: 1fr 1fr; } }
.features li {
  background: rgba(255, 255, 255, .09); border: 1px solid rgba(251, 249, 244, .16);
  border-radius: 16px; padding: 13px 15px; font-size: .95rem; line-height: 1.4;
}
.features b { display: block; font-family: var(--display); font-weight: 900; font-stretch: 72%; text-transform: uppercase; font-size: 1.12rem; color: var(--gold); letter-spacing: .01em; margin-bottom: 2px; }
.price-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; align-items: center; }
.price-row .pill { font-size: .78rem; padding: 7px 12px 6px; }
.price-row .pill--paper { background: var(--paper); color: var(--red); }
.app-band .btn-row { align-items: center; }

.phones { display: flex; justify-content: center; gap: 14px; padding: 10px 0; }
.phone {
  width: min(44vw, 250px); flex: none;
  border-radius: 38px; padding: 9px; background: #0d0e10;
  box-shadow: 0 0 0 1.5px #3a3c40, 0 24px 50px -16px rgba(0, 0, 0, .55);
  position: relative;
}
.phone img { border-radius: 30px; width: 100%; aspect-ratio: 921 / 2000; object-fit: cover; background: var(--page); }
.phone::after { content: ""; position: absolute; top: 17px; left: 50%; width: 30%; height: 16px; transform: translateX(-50%); background: #0d0e10; border-radius: 10px; }
.phone--b { margin-top: 44px; }
@media (min-width: 960px) { .phone { width: 238px; } }

/* ---------- CTA cards ---------- */

.cta-card { display: grid; gap: 22px; align-items: center; }
@media (min-width: 820px) { .cta-card { grid-template-columns: auto 1fr; gap: 36px; } }
.cta-card h2 { font-size: clamp(2.2rem, 9vw, 3.6rem); }
.cta-card p { margin: 12px 0 0; color: var(--muted); }
.cta-card .btn-row { margin-top: 20px; }

.book-grid { display: grid; gap: 28px; align-items: center; }
@media (min-width: 820px) { .book-grid { grid-template-columns: 300px 1fr; gap: 52px; } }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

/* ---------- Quiz ---------- */

.quiz-shell { max-width: 560px; margin: 0 auto; }
.quiz-shell--wide { max-width: 680px; }
.q-card { text-align: center; padding: 40px 20px 30px; border-radius: 28px; position: relative; overflow: hidden; }
.q-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 7px; background: var(--red); }
.q-card .eyebrow { margin-bottom: 10px; }
.q-word { font-family: var(--serif); font-size: clamp(3.2rem, 16vw, 4.8rem); line-height: 1.05; margin: 6px 0 4px; font-weight: 400; }
.q-word:focus { outline: none; }
.q-prompt { color: var(--muted); margin: 6px 0 0; font-size: .95rem; }
.options { display: grid; gap: 10px; margin: 16px 0 0; padding: 0; list-style: none; }
@media (min-width: 600px) { .options { grid-template-columns: 1fr 1fr; } }
.option {
  width: 100%; display: flex; align-items: center; gap: 12px; text-align: left;
  min-height: 62px; padding: 14px 18px;
  background: #fff; color: var(--ink);
  border: 1px solid var(--rule); border-radius: 18px;
  box-shadow: 0 1px 2px rgba(18, 20, 23, .04);
  font-family: var(--sans); font-size: 1.08rem; font-weight: 500; line-height: 1.25; cursor: pointer;
  transition: background .15s, border-color .15s, transform .08s;
}
.option .letter {
  flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--display); font-weight: 900; font-size: .85rem; background: var(--page); color: var(--red);
}
.option:hover:not([disabled]) { border-color: var(--red); background: #fff; }
.option:active:not([disabled]) { transform: translateY(1px); }
.option[disabled] { cursor: default; }
.option.is-correct { background: var(--green); border-color: var(--green); color: #fff; }
.option.is-correct .letter { background: rgba(255, 255, 255, .2); color: #fff; }
.option.is-wrong { background: var(--red); border-color: var(--red); color: #fff; }
.option.is-wrong .letter { background: rgba(255, 255, 255, .2); color: #fff; }
.option.is-dim { opacity: .5; }
.feedback { min-height: 1.6em; margin: 16px 0 0; text-align: center; }
.feedback .ok, .feedback .no { font-family: var(--display); font-weight: 900; font-stretch: 72%; text-transform: uppercase; font-size: 1.15rem; letter-spacing: .02em; margin-right: 4px; }
.feedback .ok { color: var(--green); }
.feedback .no { color: var(--red); }
.feedback .pt { font-style: italic; }
.q-next { display: flex; justify-content: center; margin-top: 14px; }
.q-next .btn { min-width: 240px; }
@media (max-width: 479px) { .q-next .btn { width: 100%; } }

.result-card { text-align: center; padding-top: 30px; border-radius: 28px; }
.result-card .ring { margin: 6px auto 0; }
.result-line { font-family: var(--display); font-weight: 900; font-stretch: 66%; text-transform: uppercase; font-size: clamp(2rem, 9vw, 2.8rem); line-height: .95; margin: 18px 0 0; }
.result-line span { color: var(--red); }
.result-sub { color: var(--muted); margin: 8px auto 0; max-width: 40ch; }
.result-bar { margin: 22px auto 0; max-width: 460px; text-align: left; }
.result-bar .bar { height: 12px; position: relative; }
.result-bar .bar i { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--ink); left: 77.4%; }
.result-msg { margin: 22px auto 0; max-width: 46ch; }

.band-list { list-style: none; margin: 18px 0 0; padding: 0; overflow: hidden; border-radius: 20px; background: var(--paper); border: 1px solid var(--line); }
.band-list li { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.band-list li:last-child { border-bottom: 0; }
.band-list .rk { font-family: var(--display); font-weight: 900; font-stretch: 66%; color: var(--red); font-size: 1.35rem; line-height: 1; min-width: 5.2em; }
.band-list .sh { font-size: .9rem; color: var(--muted); }

.note-box { background: var(--paper); border-radius: 18px; border-left: 6px solid var(--gold); padding: 16px 18px; margin: 18px 0 0; font-size: .95rem; }

/* ---------- App page: book check ---------- */

.verify-card { max-width: 640px; margin: 0 auto; }
.verify-q { font-family: var(--display); font-weight: 900; font-stretch: 66%; text-transform: uppercase; font-size: clamp(2rem, 9vw, 2.9rem); line-height: .95; margin: 0 0 18px; }
.verify-q .n { color: var(--red); }
.field label { display: block; font-family: var(--display); font-weight: 800; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 8px; color: var(--red); }
.field input {
  width: 100%; font-family: var(--serif); font-size: 1.7rem; padding: 12px 16px;
  border: 1.5px solid var(--line); border-radius: 16px; background: #fff; color: var(--ink);
}
.field input:focus-visible { outline-offset: 0; border-color: var(--red); }
.field .hint { font-size: .9rem; color: var(--muted); margin: 8px 0 0; }
.verify-actions { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin-top: 18px; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--red); text-decoration: underline; text-underline-offset: .15em; cursor: pointer; }
.status { min-height: 1.5em; margin: 14px 0 0; }
.status.no { color: var(--red); }
.code-box { background: var(--page); border: 1.5px dashed var(--faint); border-radius: 18px; padding: 18px; text-align: center; }
.code-box .code { font-family: var(--display); font-weight: 900; font-stretch: 72%; font-size: 2.6rem; letter-spacing: .06em; color: var(--red); line-height: 1; }
.code-box .todo { font-size: .85rem; color: var(--muted); margin: 8px 0 0; }
.fine-print { text-align: center; font-size: .9rem; color: var(--muted); margin: 18px 0 0; }

/* ---------- Text pages (privacy, support) ---------- */

.prose { font-size: 1.05rem; }
.prose h2 { font-size: clamp(1.8rem, 7vw, 2.3rem); margin: 34px 0 12px; display: flex; gap: 10px; align-items: baseline; }
.prose h2:first-child { margin-top: 0; }
.prose h2 span { color: var(--red); }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 14px; }
.prose li { margin-bottom: 6px; }
.prose a { overflow-wrap: anywhere; }
.prose .callout { background: var(--page); border-left: 6px solid var(--red); border-radius: 12px; padding: 14px 16px; margin: 16px 0; }
.path { font-family: var(--display); font-weight: 700; font-size: .95em; background: var(--page); padding: 1px 6px; border-radius: 6px; white-space: nowrap; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 0; }
.faq summary {
  cursor: pointer; list-style: none; position: relative;
  font-family: var(--display); font-weight: 800; font-stretch: 85%; font-size: 1.12rem; line-height: 1.25;
  padding: 16px 40px 16px 0;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 12px; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; background: var(--page); color: var(--red); font-weight: 900; font-size: 1.2rem;
}
.faq details[open] summary::after { content: "–"; background: var(--red); color: var(--paper); }
.faq details > div { padding: 0 0 14px; }

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

.site-footer { background: var(--ink); color: rgba(251, 249, 244, .78); padding: 44px 0 30px; font-size: .92rem; }
.site-footer .brand { margin-bottom: 12px; }
.footer-blurb { max-width: 46ch; margin: 0 0 22px; }
.footer-grid { display: grid; gap: 34px; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.25fr 1fr; gap: 64px; } }
.footer-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 20px; align-content: start; }
@media (min-width: 560px) { .footer-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.footer-h, .site-footer .eyebrow {
  font-family: var(--display); font-weight: 800; font-stretch: 100%; text-transform: uppercase;
  letter-spacing: .14em; font-size: .7rem; color: var(--gold); margin: 0 0 12px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.footer-col a {
  font-family: var(--display); font-weight: 700; font-stretch: 100%; text-transform: uppercase;
  letter-spacing: .1em; font-size: .78rem; line-height: 1.2;
  color: rgba(251, 249, 244, .7); text-decoration: none; transition: color .15s;
}
.footer-col a:hover, .footer-col a:focus-visible { color: var(--gold); }
.social { display: flex !important; flex-wrap: wrap; gap: 8px !important; }
.social a {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .07); color: rgba(251, 249, 244, .85); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
}
.social a:hover { background: var(--red); color: #fff; }
.social svg { width: 17px; height: 17px; fill: currentColor; }
.footer-bottom { margin-top: 34px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .12); }
.footer-row {
  display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0 0 12px;
  font-family: var(--display); font-weight: 700; font-stretch: 100%; text-transform: uppercase; letter-spacing: .1em; font-size: .72rem;
  color: rgba(251, 249, 244, .7);
}
.footer-row a { color: rgba(251, 249, 244, .7); text-decoration: none; }
.footer-row a:hover { color: var(--gold); }
.credit { color: rgba(251, 249, 244, .45); font-size: .76rem; line-height: 1.5; margin: 0; max-width: 90ch; }
.credit a { color: rgba(251, 249, 244, .6); text-decoration: none; }
.credit a:hover { color: var(--gold); }

/* ---------- Physical book presentation ---------- */

.book { position: relative; display: block; border-radius: 2px 5px 5px 2px; overflow: hidden; aspect-ratio: 7 / 10;
  box-shadow: 0 1px 1px rgba(18, 20, 23, .12), 0 18px 34px -12px rgba(18, 20, 23, .5); background: #fff; }
.book img { width: 100%; height: 100%; object-fit: cover; }
.book::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 7%;
  background: linear-gradient(90deg, rgba(0,0,0,.22), rgba(0,0,0,.06) 45%, rgba(255,255,255,.18) 60%, rgba(0,0,0,0)); pointer-events: none; }
.pair .book { width: 96px; }
@media (min-width: 900px) { .pair .book { width: 120px; } }
.book--lg { width: 72%; max-width: 300px; justify-self: center; }
@media (min-width: 820px) { .book--lg { width: 100%; } }

/* ---------- Newsletter ---------- */

.nl-card { max-width: 760px; margin: 0 auto; text-align: center; }
.nl-card h2 { font-size: clamp(2.3rem, 10vw, 3.6rem); }
.nl-card .nl-line { color: var(--muted); margin: 12px auto 0; max-width: 44ch; }
.nl-card .nl-form { max-width: 520px; margin: 22px auto 0; }
.nl-row { display: flex; gap: 10px; flex-wrap: wrap; }
.nl-row input {
  flex: 1 1 220px; min-width: 0; min-height: 54px; padding: 12px 18px;
  font: inherit; font-size: 1.05rem; color: var(--ink);
  background: #fff; border: 1px solid var(--rule); border-radius: 999px;
}
.nl-row input:focus-visible { outline-offset: 0; border-color: var(--red); }
.nl-row .btn { border-radius: 999px; flex: 0 0 auto; }
@media (max-width: 479px) { .nl-row .btn { width: 100%; } }
.nl-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.nl-msg { min-height: 1.4em; margin: 10px 0 0; font-size: .95rem; }
.nl-msg.is-error { color: var(--red); }
.nl-msg.is-ok { font-family: var(--display); font-weight: 900; font-stretch: 72%; text-transform: uppercase; font-size: 1.35rem; color: var(--green); letter-spacing: .01em; }
.nl-form.is-done .nl-row { display: none; }
.nl-form--compact .nl-line { color: rgba(251, 249, 244, .78); font-size: .9rem; margin: 0 0 12px; max-width: 48ch; }
.nl-form--compact .nl-line strong { color: #fff; }
.nl-form--compact .nl-row input { min-height: 48px; background: #1E2024; color: #fff; border-color: #3A3D42; }
.nl-form--compact .nl-row input::placeholder { color: #8E8A82; }
.nl-form--compact .btn { min-height: 48px; font-size: 1.05rem; padding: 10px 22px; box-shadow: none; }
.nl-form--compact .nl-msg.is-error { color: #FF8A9B; }
.nl-form--compact .nl-msg.is-ok { color: var(--gold); }

/* ---------- Fixes ---------- */
.section-head .eyebrow { color: var(--red); }
.app-band .section-head .eyebrow, .opener .section-head .eyebrow { color: var(--gold); }
.phones { align-items: flex-start; }
.ring .arc[stroke-dasharray^="0 "] { opacity: 0; }
.ring--xl .ring-l { font-size: 15px; letter-spacing: .08em; }
[hidden] { display: none !important; }
.opener-grid > .ring { justify-self: center; }
.opener--compact { padding-top: 18px; }
.opener--compact.opener--overlap { padding-bottom: 104px; }
.opener--compact h1 { font-size: clamp(2.3rem, 10.5vw, 4rem); }
.opener--compact .opener-bar { margin-top: 18px; }
.nl-dl { margin-top: 12px; }
.nl-note { font-size: .85rem; color: var(--muted); margin: 10px 0 0; }
.nl-form--compact .nl-note { color: rgba(251, 249, 244, .6); }
.nl-split { display: grid; gap: 24px; align-items: center; text-align: left; }
.nl-split .book { width: 120px; justify-self: center; transform: rotate(-3deg); }
@media (min-width: 720px) { .nl-split { grid-template-columns: 170px 1fr; gap: 40px; } .nl-split .book { width: 100%; } }
.nl-split .nl-form { margin: 18px 0 0; max-width: none; }
.quiz-band { background: var(--ink); color: var(--paper); border-radius: var(--radius); padding: 30px 22px; display: grid; gap: 24px; align-items: center; text-align: center; }
.quiz-band h2 { color: var(--paper); font-size: clamp(2.3rem, 10vw, 4rem); }
.quiz-band .eyebrow { color: var(--gold); }
.quiz-band p { color: rgba(251, 249, 244, .8); margin: 12px auto 0; max-width: 46ch; }
.quiz-band .btn-row { justify-content: center; }
.quiz-band .ring { justify-self: center; color: var(--paper); }
@media (min-width: 820px) { .quiz-band { grid-template-columns: auto 1fr; text-align: left; padding: 44px 48px; gap: 44px; } .quiz-band p { margin-left: 0; } .quiz-band .btn-row { justify-content: flex-start; } }
@media (max-width: 559px) { .footer-cols .footer-col:last-child { grid-column: 1 / -1; } }
@media (min-width: 560px) { .footer-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; } }
.social { flex-wrap: nowrap; }
.opener--compact .opener-grid { max-width: 624px; }
.opener--compact.opener--overlap { padding-bottom: 124px; }
.quiz-shell .steps--3 { grid-template-columns: 1fr; }
@media (min-width: 600px) { .quiz-shell .steps--3 { grid-template-columns: repeat(3, 1fr); } .quiz-shell .steps li { padding: 14px; } .quiz-shell .steps h3 { font-size: 1.2rem; } }
.footer-col a { white-space: nowrap; }

/* Hero: three coverage rings (10 / 100 / 1,000 words) */
.hero-rings { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; justify-self: center; }
.hero-rings li { display: flex; align-items: center; gap: 18px; }
.hero-rings .ring--lg { --size: 116px; flex: none; }
.hero-rings .ring-n { font-size: 30px; }
.hero-ring-cap { display: flex; flex-direction: column; gap: 2px; color: var(--paper); }
.hero-ring-cap b { font-family: Archivo, sans-serif; font-weight: 900; font-stretch: 70%; text-transform: uppercase; font-size: 26px; line-height: 1; letter-spacing: .01em; }
.hero-ring-cap span { font-size: 14px; opacity: .8; }
@media (max-width: 820px) {
  .hero-rings { grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; margin-top: 8px; }
  .hero-rings li { flex-direction: column; text-align: center; gap: 8px; }
  .hero-rings .ring--lg { --size: 92px; }
  .hero-rings .ring-n { font-size: 22px; }
  .hero-ring-cap b { font-size: 18px; }
  .hero-ring-cap span { display: none; }
}

/* Coverage ladder card in the hero (right column) */
.hero-ladder { width: min(470px, 100%); justify-self: end; color: var(--ink); box-shadow: 0 18px 40px rgba(0,0,0,.22); }
@media (max-width: 820px) { .hero-ladder { justify-self: stretch; width: 100%; } }
/* On the red hero, give the card's header bar a dark fill so the card's top edge stands out */
.hero-ladder .section-bar { background: var(--ink); }
.hero-ladder { outline: 2px solid rgba(251, 249, 244, .9); outline-offset: 0; }
/* Hero: the real book cover on the right */
.hero-book { justify-self: end; display: block; transform: rotate(3deg); transition: transform .3s ease; }
.hero-book:hover { transform: rotate(0deg) translateY(-4px); }
.book--hero { display: block; width: min(330px, 70vw); }
.book--hero img { width: 100%; height: auto; display: block; border-radius: 3px 8px 8px 3px; box-shadow: -6px 0 0 rgba(0,0,0,.18) inset, 0 24px 50px rgba(0,0,0,.35), 0 6px 14px rgba(0,0,0,.25); }
@media (max-width: 820px) { .hero-book { justify-self: center; margin-top: 8px; } .book--hero { width: min(260px, 70vw); } }

/* A1 / A2 level badges */
.level-badges { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 18px; }
.lvl { display: inline-flex; align-items: center; justify-content: center; min-width: 54px; height: 40px; padding: 0 12px; border-radius: 12px;
  background: var(--paper); color: var(--red); font-family: var(--display); font-weight: 900; font-stretch: 70%; font-size: 26px; line-height: 1; }
.lvl--2 { background: var(--gold); color: var(--ink); }
.lvl-txt { margin-left: 6px; color: var(--gold); font-family: var(--display); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: 12px; }
.levels-grid { display: grid; gap: 18px; margin-top: 28px; }
@media (min-width: 900px) { .levels-grid { grid-template-columns: 1fr 1fr 1.2fr; } }
.level-card { padding: 24px; }
.level-card h3 { font-family: var(--display); font-weight: 900; font-stretch: 70%; text-transform: uppercase; font-size: 24px; line-height: 1.05; margin: 14px 0 8px; }
.level-card p { margin: 0; color: var(--muted, #4A463F); }
.lvl--big { height: 64px; min-width: 84px; font-size: 42px; border-radius: 16px; background: var(--red); color: var(--paper); }
.lvl--big.lvl--2 { background: var(--gold); color: var(--ink); }
.level-card--exam { background: var(--ink); color: var(--paper); }
.level-card--exam .eyebrow { color: var(--gold); margin: 0; }
.level-card--exam p { color: rgba(251,249,244,.85); }
.level-card--exam h3 { color: var(--paper); margin-top: 8px; }

/* Header: App Store + social icons */
.head-social { list-style: none; margin: 0 0 0 14px; padding: 0 0 0 14px; display: flex; align-items: center; gap: 4px; border-left: 1px solid rgba(251,249,244,.3); }
.head-social a { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: var(--paper); opacity: .85; transition: opacity .2s, background .2s; }
.head-social a:hover { opacity: 1; background: rgba(251,249,244,.14); }
.head-social svg { width: 17px; height: 17px; fill: currentColor; }
.head-social .hs-apple svg { width: 19px; height: 19px; }
@media (max-width: 760px) { .head-social .hs-soon { display: none; } .head-social { margin-left: 6px; padding-left: 8px; } }

/* Hero book v2: straight, on a cream panel so the cover's red edge stands out */
.hero-book { transform: none; background: var(--paper); border-radius: 28px; padding: 34px 40px; box-shadow: 0 18px 40px rgba(0,0,0,.22); }
.hero-book:hover { transform: translateY(-3px); }
.book--hero { width: min(300px, 64vw); }
.book--hero img { border-radius: 2px; box-shadow: 0 14px 30px rgba(18,20,23,.28), 0 3px 8px rgba(18,20,23,.18); }
@media (max-width: 820px) { .hero-book { padding: 24px 28px; } .book--hero { width: min(230px, 62vw); } }

/* Reviews (section is hidden until real reviews exist) */
.reviews-grid { display: grid; gap: 18px; margin-top: 26px; }
@media (min-width: 900px) { .reviews-grid { grid-template-columns: repeat(3, 1fr); } }
.review { margin: 0; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.stars { color: var(--gold); letter-spacing: 2px; font-size: 20px; line-height: 1; }
.review blockquote { margin: 0; font-family: Newsreader, Georgia, serif; font-size: 19px; line-height: 1.45; color: var(--ink); }
.review figcaption { font-size: 14px; color: var(--muted, #4A463F); }
.stars-summary { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* Hero v3: split background. Red behind the headline, cream behind the book, so the cover sits on cream with no frame. */
.hero-book { background: none; padding: 0; border-radius: 0; box-shadow: none; transform: none; }
.hero-book:hover { transform: translateY(-4px); }
.book--hero { width: 340px; }
.book--hero img { border-radius: 2px 4px 4px 2px; box-shadow: 0 30px 60px rgba(18,20,23,.30), 0 8px 18px rgba(18,20,23,.20); }
@media (min-width: 821px) {
  .hero-split { background: var(--red); overflow: hidden; }
  .hero-split::before { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: min(450px, calc(50% - 110px)); background: var(--page); }
  .hero-split > .wrap { position: relative; z-index: 1; }
  .hero-split .hero-book { justify-self: center; }
}
@media (max-width: 820px) { .hero-split .hero-book { display: none; } }

/* Header v2: plain nav links (gold underline on the current page) + one "Get the app" button */
.site-header .wrap { flex-wrap: nowrap; }
.nav { margin-left: auto; gap: 2px; }
.nav a { background: none !important; color: var(--paper) !important; box-shadow: none !important; border-radius: 0 !important; padding: 8px 12px !important; position: relative; opacity: .88; }
.nav a:hover { opacity: 1; }
.nav a[aria-current="page"] { opacity: 1; color: var(--gold) !important; }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; border-radius: 1px; background: var(--gold); }
.head-cta { display: inline-flex; align-items: center; gap: 7px; margin-left: 10px; padding: 9px 16px; border-radius: 999px; background: var(--gold); color: var(--ink);
  font-family: var(--display); font-weight: 800; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; white-space: nowrap; transition: transform .15s; }
.head-cta:hover { transform: translateY(-1px); }
.head-cta svg { width: 15px; height: 15px; fill: currentColor; margin-top: -2px; }
@media (max-width: 760px) {
  .site-header .wrap { flex-wrap: wrap; }
  .nav { margin-left: 0; order: 3; width: 100%; justify-content: flex-start; }
  .nav a { padding: 6px 10px !important; }
  .nav a:first-child { padding-left: 0 !important; } .nav a:first-child[aria-current="page"]::after { left: 0; }
  .head-cta { margin-left: auto; padding: 7px 12px; font-size: 12px; }
}
@media (max-width: 760px) { .head-cta { padding: 8px 14px; } .head-cta span { font-size: 0; } .head-cta span::after { content: "App"; font-size: 12px; } .brand { font-size: 17px; } }

/* Hero v4: cream area follows the book column itself, so it never cuts the book off */
@media (min-width: 821px) {
  .hero-split::before { display: none; }
  .hero-split .opener-grid { grid-template-columns: minmax(0, 1fr) minmax(250px, 34%); gap: 0; }
  .hero-split .opener-grid > div:first-child { padding-right: 40px; }
  .hero-split .hero-book { position: relative; justify-self: stretch; display: flex; justify-content: center; padding: 20px 0 20px 40px; }
  .hero-split .hero-book::before { content: ""; position: absolute; top: -1000px; bottom: -1000px; left: 0; right: -100vw; background: var(--page); z-index: -1; }
  .hero-split .book--hero { width: min(340px, 100%); }
  .hero-split h1 { font-size: clamp(3rem, 7.4vw, 6.4rem); }
}

/* Hero book as a 3D object: angled cover, visible page block, back cover */
.hero-split .hero-book { perspective: 1600px; }
.hero-split .book--hero { --w: 300px; --h: 428px; --t: 30px;
  width: var(--w); height: var(--h); position: relative; transform-style: preserve-3d;
  transform: rotateY(-28deg) rotateX(2deg); transition: transform .5s ease; }
.hero-split .hero-book:hover .book--hero { transform: rotateY(-12deg) rotateX(1deg); }
.hero-split .book--hero img { position: absolute; inset: 0; width: var(--w); height: var(--h); transform: translateZ(calc(var(--t) / 2));
  border-radius: 1px 3px 3px 1px; box-shadow: none; }
.hero-split .book--hero::before { /* page block on the right edge */
  content: ""; position: absolute; top: 4px; left: 0; width: calc(var(--t) - 2px); height: calc(var(--h) - 8px);
  transform: translateX(calc(var(--w) - var(--t) / 2 - 3px)) rotateY(90deg);
  background: repeating-linear-gradient(90deg, #fbf9f4 0 2px, #e6e0d3 2px 3px); }
.hero-split .book--hero::after { /* back cover + floor shadow */
  content: ""; position: absolute; inset: 0; transform: translateZ(calc(var(--t) / -2));
  background: var(--red); border-radius: 1px 3px 3px 1px; box-shadow: -18px 24px 48px rgba(18,20,23,.38); }
@media (min-width: 821px) and (max-width: 1100px) { .hero-split .book--hero { --w: 250px; --h: 357px; --t: 26px; } }

/* Hero v5: action cards on the cream side instead of the book picture */
.hero-ctas { display: grid; gap: 12px; width: 100%; }
.cta-card { display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px;
  background: var(--paper); color: var(--ink); text-decoration: none; box-shadow: 0 1px 0 var(--rule), 0 10px 24px rgba(18,20,23,.08);
  transition: transform .15s ease, box-shadow .15s ease; }
.cta-card:hover { transform: translateY(-2px); box-shadow: 0 1px 0 var(--rule), 0 16px 30px rgba(18,20,23,.14); }
.cta-ic { width: 56px; height: 56px; border-radius: 14px; overflow: hidden; display: grid; place-items: center; }
.cta-ic img { width: 100%; height: 100%; object-fit: cover; }
.cta-ic--book { width: 44px; height: 62px; border-radius: 2px; justify-self: center; box-shadow: 0 4px 10px rgba(18,20,23,.25); }
.cta-ic--ring { border-radius: 50%; border: 4px solid var(--gold); color: var(--red); font-family: var(--display); font-weight: 900; font-stretch: 70%; font-size: 20px; }
.cta-ic--pdf { background: var(--red); color: var(--paper); font-family: var(--display); font-weight: 900; font-size: 15px; letter-spacing: .06em; }
.cta-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cta-txt small { font-family: var(--display); font-weight: 800; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--red); }
.cta-txt b { font-family: var(--display); font-weight: 900; font-stretch: 72%; font-size: 23px; line-height: 1.05; text-transform: uppercase; }
.cta-txt em { font-style: normal; font-size: 14px; color: var(--muted); }
.cta-go { font-size: 22px; color: var(--red); transition: transform .15s; }
.cta-card:hover .cta-go { transform: translateX(3px); }
@media (min-width: 821px) {
  .hero-split .hero-ctas { position: relative; padding: 10px 0 10px 36px; }
  .hero-split .hero-ctas::before { content: ""; position: absolute; top: -1000px; bottom: -1000px; left: 0; right: -100vw; background: var(--page); z-index: -1; }
  .hero-split .opener-grid { grid-template-columns: minmax(0, 1fr) minmax(320px, 40%); }
}
@media (max-width: 820px) { .hero-ctas { margin-top: 10px; } }

/* Hero v6: single column on red, buttons under the intro */
.hero-solo .opener-grid { grid-template-columns: 1fr !important; }

/* Hero v7: buttons in a column on the right */
@media (min-width: 821px) {
  .hero-solo .opener-grid { grid-template-columns: minmax(0, 1fr) auto !important; align-items: end; }
  .hero-btns { flex-direction: column; align-items: stretch; gap: 14px; margin: 0 0 6px; }
  .hero-btns .btn { min-width: 300px; justify-content: center; text-align: center; padding-top: 20px; padding-bottom: 20px; font-size: 20px; }
}
@media (min-width: 821px) {
  .hero-solo h1 { font-size: clamp(3rem, 7.2vw, 7rem); overflow-wrap: normal; word-break: keep-all; }
  .hero-solo .hero-btns .btn { min-width: min(300px, 26vw); }
}
@media (min-width: 821px) { .hero-solo .opener-grid { align-items: center; } .hero-solo .hero-btns { margin: 0; align-self: center; } }
@media (min-width: 821px) {
  .hero-solo .hero-btns { gap: 16px; }
  .hero-solo .hero-btns .btn { min-width: min(360px, 32vw); padding-top: 26px; padding-bottom: 26px; font-size: 24px; border-radius: 20px; }
}
.hero-solo h1.hero-h1--long { font-size: clamp(2.6rem, 6vw, 5.6rem); line-height: .95; max-width: 15ch; }
.section-head h2 .red, h2 .red { color: var(--red); }
.demo-count, .demo-count b, .demo-count small { font-size: 1.6rem; }
.demo-count small { color: var(--ink); font-weight: 900; }

/* Hero v8: two big numbers */
.hero-nums { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 4px 28px; margin: 6px 0 18px; text-transform: none; font-size: inherit !important; max-width: none !important; }
.hn { display: flex; flex-direction: column; }
.hn-big { font-family: var(--display); font-weight: 900; font-stretch: 66%; font-size: clamp(5rem, 13vw, 11rem); line-height: .86; color: var(--paper); letter-spacing: -.01em; }
.hn--gold .hn-big, .hn--gold .hn-lbl { color: var(--gold); }
.hn-lbl { margin-top: 10px; max-width: 15ch; font-family: var(--display); font-weight: 800; font-size: clamp(.95rem, 1.5vw, 1.2rem); line-height: 1.15; letter-spacing: .08em; text-transform: uppercase; color: var(--paper); }
.hn-eq { font-family: var(--display); font-weight: 900; font-size: clamp(3rem, 7vw, 6rem); line-height: 1.2; color: rgba(251,249,244,.55); }
@media (max-width: 520px) { .hn-eq { display: none; } .hero-nums { gap: 18px 22px; } }

/* Hero v9: two rows, number + label side by side */
.hero-nums { flex-direction: column; flex-wrap: nowrap; gap: 6px; }
.hn-eq { display: none; }
.hn { flex-direction: row; align-items: flex-end; gap: 18px; }
.hn-big { font-size: clamp(4.4rem, 9.5vw, 8.6rem); }
.hn-lbl { margin: 0 0 .55em; max-width: 13ch; font-size: clamp(1rem, 1.6vw, 1.35rem); }

/* Exam card: light, like the other level cards, with a gold top bar */
.level-card--exam { background: var(--paper); color: var(--ink); box-shadow: inset 0 6px 0 var(--gold), var(--shadow, 0 10px 24px rgba(18,20,23,.08)); }
.level-card--exam .eyebrow { color: var(--red); }
.level-card--exam h3 { color: var(--ink); }
.level-card--exam p { color: var(--muted); }
.hn-lbl { max-width: 17ch; }
.pair .eyebrow { white-space: nowrap; font-size: clamp(.62rem, 1.1vw, .78rem); }

/* Hero v10: the sentence as the headline, with 1,000 and 77.4% much bigger */
.hero-solo h1.hero-sent { font-size: clamp(2rem, 3.6vw, 3.4rem); line-height: 1.02; max-width: 18ch; margin: 8px 0 18px; }
.hs-big { font-size: 2.3em; line-height: .9; vertical-align: -.08em; letter-spacing: -.01em; }
.hero-nums .hn-lbl { max-width: 14ch; }
.hn--gold .hn-lbl { color: var(--paper); }
.hero-nums .hn-lbl { max-width: none; white-space: nowrap; }
.hn--gold .hn-lbl { color: var(--gold); }

/* Hero v11: the plain sentence, just bigger */
.hero-solo h1.hero-plain { font-family: var(--sans); text-transform: none; font-weight: 600; font-stretch: normal; letter-spacing: -.01em;
  font-size: clamp(2rem, 3.9vw, 3.5rem); line-height: 1.15; max-width: 20ch; margin: 10px 0 0; color: var(--paper); }
.hero-plain strong { color: var(--gold); font-weight: 700; }
/* Hero v12: same sentence, in the site's heading style */
.hero-solo h1.hero-plain { font-family: var(--display); font-weight: 900; font-stretch: 66%; text-transform: uppercase; letter-spacing: 0;
  font-size: clamp(2.6rem, 5vw, 4.8rem); line-height: .98; max-width: 17ch; }
.hero-plain strong { font-weight: 900; }
/* Hero v13: white first half, gold second half, in the big heading style */
.hero-solo h1.hero-big2 { font-size: clamp(2.8rem, 5.6vw, 5.4rem); line-height: .95; max-width: 15ch; margin: 6px 0 0; }
.hero-solo h1.hero-big2 { max-width: 19ch; }
