:root {
  --blush: #FFD9E1;
  --petal: #FFB6C7;
  --gill: #FF9AA6;
  --agua: #C3E9E3;
  --cielo: #CDDFFB;
  --lirio: #DCD0F7;
  --maiz: #FDE6B0;
  --papaya: #F2793D;
  --papaya-text: #9A3A13;
  --papaya-soft: #FFC9A8;
  --jade: #17A98B;
  --aqua: #2EAFB5;
  --aqua-text: #217D81;
  --deep-water: #16404F;
  --arcade-bar: #0B222B;
  --paper: #FBF5EF;
  --paper-light: #FFF9F4;
  --ink: #26202A;
  --ink-soft: #6B5F70;
  --line: rgba(38, 32, 42, .1);
  --shadow: 0 18px 54px rgba(38, 32, 42, .1);
  --shadow-soft: 0 8px 24px rgba(38, 32, 42, .07);
  --radius: 22px;
  --ribbon: repeating-linear-gradient(90deg,
    var(--papaya) 0 28px,
    var(--papaya-soft) 28px 46px,
    var(--blush) 46px 60px,
    var(--papaya) 60px 70px);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Figtree", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body, button, a {
  -webkit-tap-highlight-color: transparent;
}

h1, h2, h3, h4, p {
  margin-top: 0;
}

h1, h2, h3, .display {
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.04;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

a {
  color: var(--aqua-text);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--deep-water);
}

button, summary {
  font: inherit;
}

button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--deep-water);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 1000;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--ink);
  color: white;
  font-weight: 700;
  transform: translateY(-150%);
  transition: transform .2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.mono {
  font: 500 11px/1.2 "DM Mono", ui-monospace, monospace;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.soft {
  color: var(--ink-soft);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: rgba(38, 32, 42, .58);
}

.eyebrow::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--papaya);
  content: "";
  flex: 0 0 auto;
}

.ribbon-band {
  height: 10px;
  background: var(--ribbon);
}

.continuous-cut {
  position: relative;
  height: 34px;
  background: var(--ribbon);
  -webkit-mask:
    conic-gradient(from -45deg at bottom, transparent 90deg, #000 0) 0 100% / 14px 9px repeat-x,
    linear-gradient(#000 0 0) 0 0 / 100% calc(100% - 9px) no-repeat;
  mask:
    conic-gradient(from -45deg at bottom, transparent 90deg, #000 0) 0 100% / 14px 9px repeat-x,
    linear-gradient(#000 0 0) 0 0 / 100% calc(100% - 9px) no-repeat;
}

.continuous-cut::after {
  position: absolute;
  inset: 7px 0 auto;
  height: 9px;
  background: radial-gradient(circle 2.8px at center, var(--paper-light) 96%, transparent) 0 0 / 20px 100%;
  content: "";
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  background: rgba(255, 249, 244, .9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav {
  display: flex;
  min-height: 66px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.brand:hover {
  color: var(--ink);
}

.brand-mark {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--blush);
  overflow: hidden;
  position: relative;
  flex: 0 0 auto;
}

.brand-mark svg {
  width: 100%;
  height: 100%;
  transform: scale(.78) translateY(1px);
}

.brand-mark::after {
  position: absolute;
  inset: auto 0 0;
  height: 7px;
  background: var(--ribbon);
  content: "";
}

.brand-copy {
  display: grid;
  gap: 1px;
}

.brand-name {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1;
}

.brand-family {
  color: var(--ink-soft);
  font: 500 9px/1.2 "DM Mono", ui-monospace, monospace;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-links a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.nav-links a:hover {
  background: rgba(255, 217, 225, .58);
  color: var(--ink);
}

.nav-links .support-link {
  margin-left: 6px;
  border: 1px solid rgba(38, 32, 42, .16);
  background: var(--blush);
  color: var(--ink);
}

main {
  padding-top: 76px;
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 7px 7px, rgba(242, 121, 61, .15) 2.1px, transparent 2.3px) 0 0 / 22px 22px,
    var(--paper-light);
}

.hero::before {
  position: absolute;
  width: 500px;
  height: 500px;
  top: 8%;
  left: -340px;
  border: 80px solid rgba(255, 217, 225, .48);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.03fr .97fr;
  gap: 56px;
  min-height: 760px;
  align-items: center;
  padding: 68px 0 78px;
}

.hero-copy {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 22px;
}

.family-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 6px 13px 6px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .66);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow-soft);
}

.family-chip:hover {
  color: var(--ink);
  transform: translateY(-1px);
}

.family-chip svg {
  width: 30px;
  height: 30px;
}

.family-chip strong {
  color: var(--ink);
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 14px;
}

.family-chip .lotta {
  color: #D33C88;
}

.hero h1 {
  max-width: 760px;
  margin-bottom: 0;
  font-size: clamp(52px, 6.2vw, 78px);
  line-height: .94;
  letter-spacing: -.045em;
}

.marker {
  position: relative;
  z-index: 0;
  display: inline-block;
  white-space: nowrap;
}

.marker::after {
  position: absolute;
  z-index: -1;
  inset: 63% -2% 2%;
  border-radius: 7px;
  background: rgba(255, 214, 102, .72);
  content: "";
  transform: rotate(-1.2deg);
}

.hero .lead {
  max-width: 36ch;
  margin-bottom: 0;
  color: rgba(38, 32, 42, .72);
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.48;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.store-badge {
  display: inline-grid;
  min-width: 154px;
  min-height: 54px;
  align-content: center;
  padding: 8px 18px;
  border-radius: 15px;
  background: var(--ink);
  color: white;
  line-height: 1.05;
  box-shadow: 0 4px 0 rgba(0, 0, 0, .2);
}

a.store-badge {
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}

a.store-badge:hover,
a.store-badge:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 6px 0 rgba(0, 0, 0, .2);
}

.store-badge.soon {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .18);
}

.store-badge.soon small {
  color: inherit;
  opacity: .7;
}

.store-badge small {
  color: rgba(255, 255, 255, .72);
  font-size: 10px;
  font-weight: 500;
}

.store-badge strong {
  margin-top: 3px;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 17px;
  letter-spacing: -.02em;
}

.text-link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  padding: 0 9px;
  color: var(--ink);
  font-weight: 700;
  text-decoration-thickness: 2px;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 2px;
}

.pill {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--blush);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
}

.pill:nth-child(2) {
  background: var(--agua);
}

.pill:nth-child(3) {
  background: var(--maiz);
}

.hero-visual {
  position: relative;
  min-height: 660px;
  display: grid;
  place-items: center;
}

.hero-orbit {
  position: absolute;
  inset: 8% 2% 4%;
  border: 1px dashed rgba(38, 32, 42, .16);
  border-radius: 50%;
  transform: rotate(-8deg);
}

.hero-orbit::before,
.hero-orbit::after {
  position: absolute;
  border-radius: 50%;
  content: "";
}

.hero-orbit::before {
  width: 15px;
  height: 15px;
  top: 15%;
  right: 8%;
  background: var(--papaya);
}

.hero-orbit::after {
  width: 11px;
  height: 11px;
  bottom: 16%;
  left: 7%;
  background: var(--aqua);
}

.mascot-bubble {
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  box-shadow: var(--shadow);
}

.mascot-bubble svg {
  width: 84%;
  height: 84%;
}

.mascot-bubble.axo {
  width: 168px;
  height: 168px;
  left: -14px;
  top: 55px;
  background: var(--blush);
  transform: rotate(-8deg);
}

.mascot-bubble.xolo {
  width: 138px;
  height: 138px;
  right: -3px;
  bottom: 42px;
  background: var(--lirio);
  transform: rotate(7deg);
}

.mascot-label {
  position: absolute;
  z-index: 5;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 249, 244, .96);
  box-shadow: var(--shadow-soft);
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.mascot-label.axo-label {
  left: 18px;
  top: 190px;
}

.mascot-label.xolo-label {
  right: -3px;
  bottom: 20px;
}

.mascot-label strong {
  color: var(--ink);
}

.phone {
  --phone-width: 330px;
  position: relative;
  z-index: 4;
  width: var(--phone-width);
  height: 650px;
  overflow: hidden;
  border: 9px solid var(--ink);
  border-radius: 48px;
  background: #FAF6F0;
  box-shadow: 0 38px 75px rgba(38, 32, 42, .24);
  transform: rotate(2.2deg);
  animation: phone-float 7s ease-in-out infinite;
}

@keyframes phone-float {
  0%, 100% { transform: rotate(2.2deg) translateY(0); }
  50% { transform: rotate(1.2deg) translateY(-8px); }
}

.phone-status {
  display: flex;
  height: 38px;
  align-items: center;
  justify-content: space-between;
  padding: 0 19px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
}

.phone-island {
  position: absolute;
  top: 7px;
  left: 50%;
  width: 86px;
  height: 25px;
  border-radius: 999px;
  background: #111;
  transform: translateX(-50%);
}

.reader-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 19px 12px;
  font-size: 13px;
  font-weight: 700;
}

.reader-controls {
  display: flex;
  gap: 8px;
  color: var(--aqua-text);
}

.reader-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 19px 15px;
  color: var(--ink-soft);
  font-size: 10px;
}

.level-badge {
  display: inline-flex;
  min-width: 32px;
  height: 25px;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: #3A8463;
  color: white;
  font-weight: 800;
}

.reader-copy {
  padding: 0 20px 260px;
  color: #2B2B33;
  font-family: "Literata", Georgia, serif;
  font-size: 19px;
  line-height: 1.62;
}

.reader-copy p {
  margin-bottom: 17px;
}

.demo-word {
  border-radius: 4px;
  transition: background .25s ease, text-decoration-color .25s ease;
}

.phone[data-level="1"] .demo-word {
  background: rgba(255, 214, 102, .64);
}

.phone[data-level="2"] .demo-word {
  background: rgba(255, 214, 102, .43);
}

.phone[data-level="3"] .demo-word {
  background: rgba(255, 214, 102, .25);
}

.phone[data-level="4"] .demo-word {
  background: transparent;
  text-decoration: underline dotted var(--aqua);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.phone[data-level="5"] .demo-word {
  background: transparent;
  text-decoration: none;
}

.word-sheet {
  position: absolute;
  inset: auto 0 0;
  min-height: 248px;
  padding: 10px 17px 18px;
  border-top: 1px solid rgba(38, 32, 42, .08);
  border-radius: 28px 28px 0 0;
  background: rgba(255, 249, 244, .98);
  box-shadow: 0 -10px 32px rgba(38, 32, 42, .09);
}

.sheet-handle {
  width: 48px;
  height: 5px;
  margin: 0 auto 12px;
  border-radius: 999px;
  background: rgba(38, 32, 42, .2);
}

.word-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.word-row h3 {
  margin: 0;
  font-family: "Figtree", sans-serif;
  font-size: 25px;
  letter-spacing: -.02em;
}

.part-of-speech {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(38, 32, 42, .06);
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 600;
}

.translation {
  margin: 5px 0 10px;
  color: var(--aqua-text);
  font-size: 17px;
  font-weight: 700;
}

.demo-state {
  min-height: 15px;
  margin-bottom: 8px;
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .02em;
}

.level-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}

.level-button,
.master-button {
  min-height: 35px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: rgba(38, 32, 42, .07);
  color: var(--ink);
  cursor: pointer;
  font-size: 9px;
  font-weight: 700;
  transition: background .15s ease, transform .15s ease;
}

.level-button:hover,
.master-button:hover {
  transform: translateY(-1px);
}

.level-button[aria-pressed="true"] {
  border-color: rgba(38, 32, 42, .08);
  background: var(--blush);
}

.master-button {
  width: 100%;
  margin-top: 6px;
  background: var(--agua);
  color: #154E51;
  font-size: 10px;
}

.master-button[aria-pressed="true"] {
  background: var(--aqua);
  color: var(--ink);
}

.trust-strip {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.trust-inner {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: rgba(38, 32, 42, .54);
}

.trust-inner i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--papaya);
}

section {
  scroll-margin-top: 92px;
}

.section {
  padding: 104px 0;
}

.section-head {
  display: flex;
  max-width: 720px;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
  margin-bottom: 44px;
}

.section-head.centered {
  align-items: center;
  margin-inline: auto;
  text-align: center;
}

.section-head h2,
.split-copy h2,
.arcade-copy h2,
.privacy h2,
.support h2 {
  margin-bottom: 0;
  font-size: clamp(36px, 5vw, 54px);
  line-height: .98;
}

.section-head .lead,
.split-copy .lead,
.arcade-copy .lead,
.privacy .lead,
.support .lead {
  margin-bottom: 0;
  color: rgba(38, 32, 42, .66);
  font-size: 18px;
  line-height: 1.55;
}

.loop {
  background: var(--paper);
}

.loop-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: loop-step;
}

.loop-card {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-light);
  box-shadow: var(--shadow-soft);
  counter-increment: loop-step;
}

.loop-card::before {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  margin-bottom: 24px;
  border-radius: 12px;
  background: var(--card-pastel);
  content: "0" counter(loop-step);
  font: 500 11px/1 "DM Mono", monospace;
}

.loop-card::after {
  position: absolute;
  top: 37px;
  right: -13px;
  z-index: 2;
  width: 26px;
  height: 2px;
  background: rgba(38, 32, 42, .22);
  content: "";
}

.loop-card:last-child::after {
  display: none;
}

.loop-card h3 {
  margin-bottom: 8px;
  font-size: 25px;
}

.loop-card > p {
  min-height: 74px;
  margin-bottom: 20px;
  color: var(--ink-soft);
  font-size: 14px;
}

.loop-demo {
  min-height: 118px;
  padding: 15px;
  border-radius: 16px;
  background: var(--demo-bg);
}

.loop-read {
  font-family: "Literata", Georgia, serif;
  font-size: 14px;
  line-height: 1.65;
}

.loop-read span {
  border-radius: 3px;
  background: rgba(255, 214, 102, .66);
}

.loop-bank {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 6px;
}

.loop-bank span {
  padding: 7px 9px;
  border-radius: 999px;
  background: white;
  box-shadow: 0 2px 8px rgba(38, 32, 42, .07);
  font-size: 11px;
  font-weight: 700;
}

.loop-quiz {
  background: var(--deep-water);
  color: white;
}

.loop-quiz .sentence {
  margin-bottom: 13px;
  font-family: "Literata", Georgia, serif;
  font-size: 14px;
}

.loop-quiz .blank {
  color: #FFD666;
  font-weight: 700;
}

.loop-quiz .answer {
  display: block;
  padding: 7px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .09);
  color: rgba(255, 255, 255, .78);
  font-size: 10px;
}

.loop-quiz .answer + .answer {
  margin-top: 5px;
}

.loop-quiz .answer.correct {
  background: #327E50;
  color: white;
}

.loop-master {
  display: grid;
  align-content: center;
  gap: 14px;
}

.master-row {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: "Literata", Georgia, serif;
  font-size: 13px;
}

.master-row .old {
  border-radius: 4px;
  background: rgba(255, 214, 102, .55);
}

.master-row .new {
  text-decoration: underline dotted var(--aqua);
  text-underline-offset: 3px;
}

.master-progress {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(38, 32, 42, .08);
}

.master-progress::before {
  display: block;
  width: 74%;
  height: 100%;
  border-radius: inherit;
  background: var(--aqua);
  content: "";
}

.reading {
  border-block: 1px solid var(--line);
  background: var(--paper-light);
}

.split {
  display: grid;
  grid-template-columns: .78fr 1.22fr;
  gap: 72px;
  align-items: center;
}

.split-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.feature-list {
  display: grid;
  gap: 13px;
  padding: 0;
  margin: 6px 0 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  padding-left: 29px;
  color: var(--ink-soft);
}

.feature-list li::before {
  position: absolute;
  left: 0;
  top: 3px;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  background: var(--agua);
  color: #124E51;
  content: "✓";
  font-size: 12px;
  font-weight: 800;
}

.library-window {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: #FAF6F0;
  box-shadow: var(--shadow);
}

.window-top {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .55);
}

.window-top strong {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 22px;
}

.window-actions {
  color: var(--aqua-text);
  font-weight: 800;
}

.library-body {
  padding: 22px;
}

.segments {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  margin-bottom: 16px;
  border: 1px solid rgba(38, 32, 42, .25);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.segments span {
  padding: 8px 10px;
}

.segments .active {
  background: rgba(195, 233, 227, .75);
}

.level-chips {
  display: flex;
  gap: 7px;
  margin-bottom: 18px;
  overflow: hidden;
}

.level-chips span {
  display: inline-flex;
  min-width: 36px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(38, 32, 42, .06);
  font-size: 10px;
  font-weight: 700;
}

.level-chips span:first-child {
  min-width: 58px;
  background: var(--aqua);
  color: var(--ink);
}

.course-preview {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 13px;
  align-items: center;
  margin-bottom: 22px;
  padding: 16px;
  border: 1px solid rgba(46, 175, 181, .25);
  border-radius: 18px;
  background: linear-gradient(90deg, rgba(195, 233, 227, .42), rgba(255, 217, 225, .32));
}

.course-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 14px;
  background: rgba(195, 233, 227, .8);
  color: var(--aqua-text);
  font-size: 22px;
  font-weight: 800;
}

.course-copy {
  display: grid;
  gap: 2px;
}

.course-copy strong {
  font-size: 14px;
}

.course-copy span {
  color: var(--ink-soft);
  font-size: 10px;
}

.course-arrow {
  color: var(--ink-soft);
  font-size: 22px;
}

.shelf-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 11px;
}

.shelf-head strong {
  font-size: 14px;
}

.shelf-head span {
  color: var(--aqua-text);
  font-size: 10px;
  font-weight: 700;
}

.poster-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.poster {
  min-width: 0;
}

.poster-art {
  position: relative;
  display: grid;
  aspect-ratio: 4 / 3;
  place-items: center;
  overflow: hidden;
  border-radius: 14px;
  background: var(--poster-bg);
  color: rgba(255, 255, 255, .92);
  font-size: 28px;
}

.poster-art::before {
  position: absolute;
  inset: 0;
  background: var(--poster-pattern);
  content: "";
  opacity: .26;
}

.poster-art span {
  position: relative;
}

.poster h4 {
  margin: 8px 0 2px;
  overflow: hidden;
  font-family: "Figtree", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.poster p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 9px;
}

.arcade {
  position: relative;
  overflow: hidden;
  background: var(--deep-water);
  color: white;
}

.arcade::before {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 7px 7px, rgba(255, 214, 102, .12) 2px, transparent 2.2px) 0 0 / 24px 24px;
  content: "";
}

.arcade .container {
  position: relative;
  display: grid;
  grid-template-columns: .88fr 1.12fr;
  gap: 70px;
  align-items: center;
}

.arcade-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.arcade-copy .eyebrow,
.arcade-copy .lead {
  color: rgba(255, 255, 255, .7);
}

.arcade-copy .eyebrow::before {
  background: #FFD666;
}

.arcade-copy h2 {
  color: white;
}

.arcade-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.arcade-pills span {
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .78);
  font-size: 12px;
  font-weight: 600;
}

.quiz-stage {
  position: relative;
  min-height: 620px;
  display: grid;
  place-items: center;
}

.xolo-coach {
  position: absolute;
  top: 10px;
  right: 4px;
  z-index: 3;
  width: 140px;
  height: 140px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 50%;
  background: var(--lirio);
  transform: rotate(6deg);
}

.xolo-coach svg {
  width: 100%;
  height: 100%;
}

.coach-note {
  position: absolute;
  top: 122px;
  right: 106px;
  z-index: 4;
  padding: 9px 12px;
  border-radius: 13px;
  background: var(--paper-light);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  box-shadow: var(--shadow);
}

.quiz-phone {
  width: min(390px, 100%);
  padding: 25px;
  border: 7px solid var(--arcade-bar);
  border-radius: 36px;
  background: #1B4B5A;
  box-shadow: 0 34px 70px rgba(0, 0, 0, .32);
  transform: rotate(-1.8deg);
}

.quiz-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 66px;
  color: rgba(255, 255, 255, .64);
  font-weight: 700;
}

.quiz-streak {
  color: #FF7A72;
}

.quiz-score {
  color: white;
  font-size: 24px;
}

.quiz-sentence {
  margin-bottom: 10px;
  font-family: "Literata", Georgia, serif;
  font-size: 26px;
  line-height: 1.35;
  text-align: center;
}

.quiz-sentence strong,
.quiz-translation strong {
  color: #FFD666;
}

.quiz-translation {
  margin-bottom: 30px;
  color: rgba(255, 255, 255, .62);
  text-align: center;
}

.correct-burst {
  width: max-content;
  margin: 0 auto 18px;
  padding: 8px 15px;
  border-radius: 999px;
  background: #327E50;
  color: white;
  font-weight: 800;
}

.quiz-answers {
  display: grid;
  gap: 9px;
}

.quiz-answer {
  padding: 13px 15px;
  border-radius: 13px;
  background: rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .82);
  font-weight: 700;
}

.quiz-answer.correct {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #327E50;
  color: white;
}

.languages {
  background: var(--paper);
}

.language-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 48px;
}

.language-chip {
  display: grid;
  min-height: 118px;
  place-items: center;
  gap: 5px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-light);
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.language-chip .flag {
  font-size: 31px;
  line-height: 1;
}

.language-chip strong {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 18px;
}

.language-chip span:last-child {
  color: var(--ink-soft);
  font-size: 11px;
}

.content-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.content-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-light);
  box-shadow: var(--shadow-soft);
}

.content-card-head {
  height: 102px;
  background:
    repeating-radial-gradient(circle at 50% 100%, transparent 0 10px, rgba(38, 32, 42, .06) 10px 14px) 0 0 / 28px 16px,
    var(--card-pastel);
}

.content-card-body {
  padding: 22px;
}

.content-card h3 {
  margin-bottom: 8px;
  font-size: 23px;
}

.content-card p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.privacy {
  border-block: 1px solid var(--line);
  background: var(--paper-light);
}

.privacy-intro {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 70px;
  align-items: end;
  margin-bottom: 42px;
}

.privacy-intro .lead {
  max-width: 58ch;
}

.privacy-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.privacy-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow-soft);
}

.privacy-card .privacy-icon {
  display: grid;
  width: 45px;
  height: 45px;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 14px;
  background: var(--icon-bg);
  font-size: 20px;
  font-weight: 800;
}

.privacy-card h3 {
  margin-bottom: 8px;
  font-size: 21px;
}

.privacy-card p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.policy {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.policy-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.policy-header h3 {
  margin-bottom: 0;
  font-size: 26px;
}

.policy-header time {
  color: var(--ink-soft);
  font: 500 10px/1.2 "DM Mono", monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.policy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 34px;
}

.policy-block h4 {
  margin-bottom: 7px;
  font-size: 15px;
}

.policy-block p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.faq-section {
  background: var(--paper);
}

.faq-wrap {
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  gap: 70px;
  align-items: start;
}

.faq-intro h2 {
  margin: 12px 0 14px;
  font-size: clamp(36px, 5vw, 52px);
}

.faq-list {
  display: grid;
  gap: 10px;
}

details {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper-light);
  box-shadow: var(--shadow-soft);
}

summary {
  position: relative;
  min-height: 64px;
  padding: 20px 56px 18px 21px;
  cursor: pointer;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.02em;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  position: absolute;
  top: 50%;
  right: 20px;
  color: var(--papaya);
  content: "+";
  font-size: 23px;
  transform: translateY(-50%);
}

details[open] summary::after {
  content: "−";
}

details p {
  margin: -3px 21px 21px;
  color: var(--ink-soft);
  font-size: 14px;
}

.support-wrap {
  padding: 0 0 96px;
}

.support {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
  overflow: hidden;
  padding: 34px;
  border-radius: 28px;
  background: var(--ink);
  color: white;
}

.support::before {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 7px 7px, rgba(255, 217, 225, .1) 2.2px, transparent 2.4px) 0 0 / 22px 22px;
  content: "";
}

.support > * {
  position: relative;
}

.support-mascots {
  display: flex;
  align-items: flex-end;
}

.support-mascots svg {
  width: 92px;
  height: 92px;
}

.support-mascots svg + svg {
  margin-left: -24px;
}

.support-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.support .eyebrow {
  color: rgba(255, 255, 255, .58);
}

.support .eyebrow::before {
  background: var(--gill);
}

.support h2 {
  color: white;
  font-size: clamp(30px, 4vw, 43px);
}

.support .lead {
  color: rgba(255, 255, 255, .7);
  font-size: 15px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 0 21px;
  border-radius: 14px;
  background: var(--papaya);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 4px 0 #B95829;
  transition: transform .15s ease, box-shadow .15s ease;
}

.button:hover {
  color: var(--ink);
  transform: translateY(1px);
  box-shadow: 0 3px 0 #B95829;
}

footer {
  background: var(--ink);
  color: rgba(255, 255, 255, .66);
}

.footer-inner {
  display: flex;
  min-height: 92px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 13px;
}

.footer-brand {
  color: white;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 16px;
  font-weight: 800;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
}

footer a {
  color: var(--cielo);
  font-weight: 700;
}

footer a:hover {
  color: white;
}

@media (max-width: 1040px) {
  .hero-inner {
    grid-template-columns: .9fr 1.1fr;
    gap: 26px;
  }

  .mascot-bubble.axo {
    left: -32px;
  }

  .mascot-bubble.xolo {
    right: -22px;
  }

  .loop-grid {
    grid-template-columns: 1fr 1fr;
  }

  .loop-card::after {
    display: none;
  }

  .split,
  .arcade .container {
    gap: 42px;
  }
}

@media (max-width: 860px) {
  .nav-links li:not(:last-child) {
    display: none;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    padding-top: 76px;
  }

  .hero-copy {
    align-items: center;
    text-align: center;
  }

  .hero .lead {
    max-width: 47ch;
  }

  .hero-visual {
    min-height: 680px;
  }

  .split,
  .arcade .container,
  .privacy-intro,
  .faq-wrap {
    grid-template-columns: 1fr;
  }

  .split-copy,
  .arcade-copy {
    max-width: 650px;
  }

  .arcade .container {
    gap: 24px;
  }

  .language-row {
    grid-template-columns: repeat(3, 1fr);
  }

  .content-cards,
  .privacy-cards {
    grid-template-columns: 1fr;
  }

  .privacy-intro {
    gap: 20px;
  }

  .support {
    grid-template-columns: auto 1fr;
  }

  .support .button {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(100% - 32px, 1180px);
  }

  .brand-name {
    font-size: 18px;
  }

  .brand-family {
    display: none;
  }

  .nav-links .support-link {
    min-height: 40px;
    padding-inline: 12px;
    font-size: 13px;
  }

  main {
    padding-top: 76px;
  }

  .hero-inner {
    min-height: 0;
    padding: 58px 0 64px;
  }

  .hero h1 {
    font-size: clamp(44px, 14vw, 62px);
  }

  .hero-actions {
    justify-content: center;
  }

  .store-badge {
    min-width: 145px;
  }

  .hero-visual {
    min-height: 600px;
  }

  .phone {
    --phone-width: min(300px, calc(100vw - 64px));
    height: 590px;
  }

  .reader-copy {
    padding-bottom: 248px;
    font-size: 17px;
  }

  .word-sheet {
    min-height: 238px;
  }

  .mascot-bubble.axo {
    width: 112px;
    height: 112px;
    left: -6px;
    top: 26px;
  }

  .mascot-bubble.xolo {
    width: 98px;
    height: 98px;
    right: -3px;
    bottom: 36px;
  }

  .mascot-label {
    display: none;
  }

  .trust-inner {
    flex-wrap: wrap;
    gap: 8px 12px;
    padding: 15px 0;
    text-align: center;
  }

  .trust-inner .mono {
    font-size: 9px;
  }

  .section {
    padding: 78px 0;
  }

  .section-head {
    margin-bottom: 32px;
  }

  .section-head h2,
  .split-copy h2,
  .arcade-copy h2,
  .privacy h2,
  .support h2 {
    font-size: 38px;
  }

  .loop-grid {
    grid-template-columns: 1fr;
  }

  .loop-card {
    min-height: 0;
  }

  .loop-card > p {
    min-height: 0;
  }

  .library-body {
    padding: 15px;
  }

  .poster-row {
    grid-template-columns: 1fr 1fr;
  }

  .poster:last-child {
    display: none;
  }

  .quiz-stage {
    min-height: 580px;
  }

  .quiz-phone {
    padding: 20px;
  }

  .xolo-coach {
    width: 105px;
    height: 105px;
    top: 8px;
    right: -4px;
  }

  .coach-note {
    top: 92px;
    right: 70px;
  }

  .language-row {
    grid-template-columns: 1fr 1fr;
  }

  .language-chip:last-child {
    grid-column: 1 / -1;
  }

  .policy {
    padding: 22px;
  }

  .policy-header {
    display: grid;
  }

  .policy-grid {
    grid-template-columns: 1fr;
  }

  .support {
    grid-template-columns: 1fr;
    padding: 28px;
  }

  .support .button {
    grid-column: 1;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 28px 0;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ============================================================
   Pricing — Free vs Xolingo Pro, plus the store subscription
   disclosures required wherever the subscription is marketed.
   ============================================================ */

.pricing {
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-light) 100%);
}

.plan-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-bottom: 26px;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px 28px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-light);
  box-shadow: var(--shadow-soft);
}

.plan::before {
  position: absolute;
  inset: 0 0 auto;
  height: 10px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--plan-pastel, var(--blush));
  content: "";
}

.plan.featured {
  border-color: rgba(242, 121, 61, .45);
  box-shadow: var(--shadow);
}

.plan-flag {
  position: absolute;
  top: -13px;
  right: 24px;
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--papaya);
  color: var(--paper-light);
  font-family: "DM Mono", monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.plan-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding-top: 6px;
}

.plan-name {
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -.02em;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.plan-price strong {
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-size: 21px;
  font-weight: 800;
}

.plan-price small,
.plan-note {
  color: var(--ink-soft);
  font-size: 13.5px;
}

.plan-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.plan-list li {
  position: relative;
  padding-left: 27px;
  font-size: 15.5px;
  line-height: 1.5;
}

.plan-list li::before {
  position: absolute;
  top: 3px;
  left: 0;
  display: grid;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--plan-pastel, var(--blush));
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  place-items: center;
  content: "✓";
}

.plan-note {
  margin: auto 0 0;
  padding-top: 4px;
}

.plan-terms {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.plan-terms h3 {
  margin-bottom: 16px;
  font-size: 20px;
}

.plan-terms ul {
  display: grid;
  gap: 13px;
  margin: 0 0 22px;
  padding: 0;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  list-style: none;
}

.plan-terms li {
  padding-left: 16px;
  border-left: 3px solid var(--blush);
  font-size: 15px;
  line-height: 1.55;
}

.plan-links,
.policy-more,
.support-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin: 0;
}

.policy-more {
  margin-top: 22px;
}

.button.ghost {
  background: transparent;
  border: 1.5px solid rgba(38, 32, 42, .18);
  box-shadow: none;
}

.button.ghost:hover {
  background: var(--blush);
}

/* ============================================================
   Document pages — privacy policy, terms of use, support.
   ============================================================ */

.doc-hero {
  padding: 132px 0 34px;
  background: var(--paper-light);
  border-bottom: 1px solid var(--line);
}

.doc-hero .eyebrow {
  margin-bottom: 14px;
}

.doc-hero h1 {
  max-width: 20ch;
  margin-bottom: 14px;
  font-size: clamp(38px, 6vw, 62px);
}

.doc-hero .lead {
  max-width: 60ch;
  margin-bottom: 18px;
  color: var(--ink-soft);
  font-size: 18px;
}

.doc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-family: "DM Mono", monospace;
  font-size: 12px;
  letter-spacing: .06em;
}

.doc-meta span {
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--blush);
}

.doc-meta span:nth-child(2) { background: var(--agua); }
.doc-meta span:nth-child(3) { background: var(--maiz); }

.doc-layout {
  display: grid;
  align-items: start;
  gap: 46px;
  padding: 54px 0 90px;
  grid-template-columns: 250px minmax(0, 1fr);
}

.doc-toc {
  position: sticky;
  top: 104px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper-light);
}

.doc-toc strong {
  display: block;
  margin-bottom: 12px;
  font-family: "DM Mono", monospace;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.doc-toc ol {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}

.doc-toc a {
  display: flex;
  gap: 9px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.4;
  text-decoration: none;
  counter-increment: toc;
}

.doc-toc a::before {
  color: var(--ink-soft);
  font-family: "DM Mono", monospace;
  font-size: 11.5px;
  content: counter(toc, decimal-leading-zero);
}

.doc-toc a:hover {
  color: var(--papaya);
}

.doc-body > section {
  padding: 0 0 34px;
  scroll-margin-top: 108px;
}

.doc-body > section + section {
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.doc-body h2 {
  margin-bottom: 14px;
  font-size: clamp(24px, 3vw, 30px);
}

.doc-body h3 {
  margin: 26px 0 10px;
  font-family: "Figtree", system-ui, sans-serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0;
}

.doc-body p,
.doc-body li {
  max-width: 74ch;
  font-size: 16px;
  line-height: 1.65;
}

.doc-body p {
  margin-bottom: 14px;
}

.doc-body ul,
.doc-body ol {
  margin: 0 0 16px;
  padding-left: 22px;
}

.doc-body li {
  margin-bottom: 9px;
}

.doc-body a {
  color: var(--papaya-text);
  text-underline-offset: 3px;
}

.doc-body a:hover {
  color: var(--deep-water);
}

.doc-table-wrap {
  overflow-x: auto;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper-light);
}

.doc-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 14.5px;
}

.doc-table th,
.doc-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  line-height: 1.5;
}

.doc-table thead th {
  background: var(--blush);
  font-family: "DM Mono", monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.doc-table tbody tr:last-child th,
.doc-table tbody tr:last-child td {
  border-bottom: none;
}

.doc-table tbody th {
  width: 30%;
  font-weight: 700;
}

.callout {
  display: flex;
  gap: 15px;
  margin: 0 0 20px;
  padding: 19px 22px;
  border-radius: 16px;
  background: var(--callout-bg, var(--agua));
}

.callout p {
  margin: 0;
  font-size: 15px;
}

.callout p + p {
  margin-top: 9px;
}

.callout strong {
  display: block;
  margin-bottom: 4px;
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-size: 17px;
  letter-spacing: -.01em;
}

.callout .callout-mark {
  flex: none;
  width: 40px;
  height: 40px;
}

.step-cards {
  display: grid;
  gap: 16px;
  margin-bottom: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.step-card {
  position: relative;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper-light);
}

.step-card span {
  display: inline-flex;
  margin-bottom: 11px;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--step-pastel, var(--lirio));
  font-family: "DM Mono", monospace;
  font-size: 11px;
  font-weight: 500;
}

.step-card h3 {
  margin: 0 0 7px;
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.015em;
}

.step-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.55;
}

.doc-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  padding: 26px 28px;
  border-radius: var(--radius);
  background: var(--blush);
}

.doc-contact svg {
  width: 62px;
  height: 56px;
}

.doc-contact div {
  flex: 1 1 260px;
}

.doc-contact p {
  margin: 0;
}

@media (max-width: 900px) {
  .doc-layout {
    gap: 30px;
    grid-template-columns: minmax(0, 1fr);
  }

  .doc-toc {
    position: static;
  }

  .doc-hero {
    padding-top: 116px;
  }
}

/* .doc-body a sets a link colour; buttons inside prose must keep their own. */
.doc-body .button,
.doc-body .button.ghost {
  color: var(--ink);
  text-decoration: none;
}

.doc-body .button:hover {
  color: var(--ink);
}

/* Legal tables stack into labelled cards on a phone: a policy is read, not
   dragged sideways. Cells carry data-label from the column header. */
@media (max-width: 640px) {
  .doc-table-wrap {
    overflow-x: visible;
    border: none;
    background: none;
  }

  .doc-table {
    min-width: 0;
    display: block;
  }

  .doc-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .doc-table tbody,
  .doc-table tr,
  .doc-table th,
  .doc-table td {
    display: block;
    width: auto;
  }

  .doc-table tr {
    margin-bottom: 14px;
    padding: 4px 0 8px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--paper-light);
  }

  .doc-table tbody th {
    width: auto;
    padding-bottom: 6px;
    border-bottom: none;
    font-family: "Bricolage Grotesque", system-ui, sans-serif;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -.015em;
  }

  .doc-table td {
    padding-top: 4px;
    border-bottom: none;
  }

  .doc-table td::before {
    display: block;
    margin-bottom: 3px;
    color: var(--ink-soft);
    font-family: "DM Mono", monospace;
    font-size: 10.5px;
    letter-spacing: .12em;
    text-transform: uppercase;
    content: attr(data-label);
  }
}

.nav-links a[aria-current="page"] {
  color: var(--papaya);
}

/* ---- Reading pages (/read/) ----
   Generated by tools/build_site_readings.mjs; reuses the doc-hero and the
   site tokens so these pages sit beside Support and Privacy. */
.crumbs {
  margin-bottom: 14px;
  color: var(--ink-soft);
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.crumbs li + li::before {
  margin-right: 10px;
  color: var(--papaya-text);
  content: "/";
}

.crumbs a {
  color: var(--ink-soft);
}

.crumbs a:hover {
  color: var(--papaya-text);
}

.read-hero h1 {
  max-width: 22ch;
}

.read-layout {
  display: grid;
  grid-template-columns: minmax(0, 40rem) minmax(260px, 340px);
  align-items: start;
  justify-content: space-between;
  gap: 48px;
  padding-block: 44px 56px;
}

.read-text {
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  font-size: 20px;
  line-height: 1.75;
}

.read-text p {
  margin-bottom: 1.1em;
}

.read-intro section + section {
  margin-top: 28px;
}

.read-intro h2 {
  margin-bottom: 10px;
  font-size: 24px;
}

.read-intro p {
  max-width: 62ch;
  font-size: 17px;
  line-height: 1.65;
}

.read-cta {
  position: sticky;
  top: 96px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-light);
  box-shadow: var(--shadow-soft);
}

.read-cta h2 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.25;
}

.read-cta p {
  margin-bottom: 18px;
  color: var(--ink-soft);
  font-size: 15px;
}

.read-more,
.read-about {
  padding: 40px 0;
  border-top: 1px solid var(--line);
}

.read-more h2,
.read-about h2 {
  margin-bottom: 18px;
  font-size: 26px;
}

.read-about p {
  max-width: 68ch;
}

.read-back {
  margin-top: 20px;
}

.read-level + .read-level {
  margin-top: 40px;
}

.read-level h2 {
  margin-bottom: 6px;
}

.read-level h2 a {
  color: inherit;
  text-decoration: none;
}

.read-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.read-list a {
  display: flex;
  height: 100%;
  flex-direction: column;
  gap: 8px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper-light);
  color: var(--ink);
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}

.read-list a:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.read-list-title {
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.015em;
}

.read-list-blurb {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.5;
}

.read-list-meta {
  margin-top: auto;
  color: var(--papaya-text);
}

@media (max-width: 900px) {
  .read-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .read-cta {
    position: static;
  }

  .read-text {
    font-size: 19px;
  }
}

/* Lesson blocks under a reading */
.read-main {
  min-width: 0;
}

.read-lesson {
  margin-top: 44px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.read-lesson h2 {
  margin-bottom: 12px;
  font-size: 26px;
}

.read-lesson p {
  max-width: 62ch;
}

.read-questions {
  display: grid;
  gap: 18px;
  margin: 18px 0 0;
  padding-left: 1.4em;
}

.read-questions > li > p {
  margin-bottom: 8px;
  font-size: 18px;
  font-weight: 700;
}

.read-questions details {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper-light);
}

.read-questions summary {
  min-height: 44px;
  padding: 11px 16px;
  color: var(--papaya-text);
  cursor: pointer;
  font-weight: 800;
}

.read-questions details[open] summary {
  border-bottom: 1px solid var(--line);
}

.read-questions details p {
  margin: 0;
  padding: 10px 16px 0;
}

.read-questions details p:last-child {
  padding-bottom: 12px;
}

.read-en {
  color: var(--ink-soft);
  font-size: 15px;
}

.read-words {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.read-words li {
  display: flex;
  flex-direction: column;
  padding: 11px 15px;
  border-radius: 14px;
  background: var(--agua);
}

.read-words span {
  color: var(--ink-soft);
  font-size: 15px;
}

.read-examples {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.read-examples li {
  padding: 10px 16px;
  border-left: 4px solid var(--papaya);
  border-radius: 0 12px 12px 0;
  background: var(--maiz);
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  font-size: 18px;
}

.read-rights {
  margin-top: 32px;
  color: var(--ink-soft);
  font-size: 14px;
}

/* Blog-style lead-in above a reading */
.read-post {
  margin-bottom: 28px;
}

.read-lead {
  max-width: 62ch;
  margin-bottom: 18px;
  font-size: 19px;
  line-height: 1.6;
}

.read-challenge {
  max-width: 62ch;
  padding: 16px 18px;
  border: 1px solid #A9D8D5;
  border-radius: 16px;
  background: #E8F2F0;
}

.read-challenge .mono {
  color: var(--aqua-text);
}

.read-challenge p {
  margin: 6px 0 0;
}

.read-challenge .read-skip {
  color: var(--ink-soft);
  font-size: 14px;
}

/* Language buttons on /read/ */
.read-langs {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.read-lang-btn {
  display: flex;
  min-width: min(100%, 340px);
  align-items: center;
  gap: 18px;
  padding: 18px 24px;
  border-radius: 18px;
  background: var(--papaya);
  box-shadow: 0 5px 0 #B95829;
  color: var(--ink);
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}

.read-lang-btn:hover {
  color: var(--ink);
  transform: translateY(1px);
  box-shadow: 0 4px 0 #B95829;
}

.read-lang-text {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 3px;
}

.read-lang-name {
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.15;
}

.read-lang-meta {
  font-size: 12px;
}

.read-lang-arrow {
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
}

.read-level .button {
  margin-top: 4px;
}
