/* =============================================================================
   Curion — website styles
   Palette and type follow the Curion app (Theme.swift): deep aubergine ink,
   cream paper, tomato / mustard / blue / olive accents, serif headlines.
   Layout: one flat colour per section, big serif headline with an italic
   accent word, a phone playing a real clip from the app, floating cards.
   ========================================================================== */

:root {
  --ink: #241A2E;
  --ink-soft: #3A2E44;
  --cream: #F8F0E7;
  --paper: #FCF7F1;
  --card: #F4E7D3;
  --tomato: #C4432F;
  --tomato-dark: #A33524;
  --mustard: #E3A23E;
  --mustard-deep: #B07A1E;
  --blue: #33719F;
  --olive: #667A2E;
  --muted: #6E6470;
  --hair: #E3D7CA;

  --blue-p: #DCE8F2;
  --tomato-p: #F7DDD7;
  --mustard-p: #FAEFC8;
  --olive-p: #E2EAD3;
  --plum-p: #E6DDF1;

  --serif: "Newsreader", "New York", ui-serif, Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --wrap: 1180px;
  --radius: 22px;
  --shadow: 0 18px 40px -18px rgba(36, 26, 46, .35);
  --shadow-sm: 0 8px 22px -12px rgba(36, 26, 46, .35);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--mustard); color: var(--ink); }
:focus-visible { outline: 3px solid var(--mustard); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- Wordmark: "Curion" in the app's serif, mustard dot over the i */
.wordmark {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 30px;
  letter-spacing: -0.02em;
  line-height: 1;
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
}
.wordmark .i { position: relative; display: inline-block; }
.wordmark .i::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -0.02em;
  width: .2em; height: .2em;
  transform: translateX(-50%);
  border-radius: 50%;
  background: var(--mustard);
  box-shadow: 0 0 0 .06em rgba(227, 162, 62, .28);
}

.topbar {
  position: absolute; inset: 0 0 auto 0; z-index: 20;
  padding: 26px 0;
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; }
.topbar .get {
  font-size: 14px; font-weight: 600; text-decoration: none;
  padding: 10px 16px; border-radius: 999px;
  background: var(--ink); color: var(--cream);
}

/* ---- Type ----------------------------------------------------------------- */
.kicker {
  display: flex; align-items: center; gap: 10px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 22px;
}
.kicker::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%;
  background: var(--mustard); flex: none;
}
.kicker::after {
  content: ""; height: 1px; flex: 1; max-width: 180px;
  background: currentColor; opacity: .35;
}
.kicker b { color: var(--ink); font-weight: 700; }

.display {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(48px, 7.4vw, 104px);
  line-height: .94;
  letter-spacing: -0.035em;
  margin: 0 0 26px;
}
.display em, .h2 em, .h3 em { font-style: italic; color: var(--tomato); }
.h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(42px, 5.6vw, 80px);
  line-height: .96;
  letter-spacing: -0.03em;
  margin: 0 0 22px;
}
.h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.lede { font-size: 17px; max-width: 470px; color: var(--ink-soft); margin: 0 0 28px; }
.small { font-size: 13px; color: var(--muted); }

/* ---- Sections ------------------------------------------------------------- */
.sec { position: relative; overflow: hidden; padding: 120px 0; }
.sec .grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center;
}
.sec.flip .grid > :first-child { order: 2; }
.sec.hero { padding: 150px 0 120px; min-height: 100vh; display: flex; align-items: center; }
.sec > .wrap { position: relative; z-index: 2; }
.sec.hero > .wrap { flex: none; }

.bg-cream   { background: var(--cream); }
.bg-blue-p  { background: var(--blue-p); }
.bg-olive-p { background: var(--olive-p); }
.bg-mustard { background: var(--mustard); }
.bg-tomato-p{ background: var(--tomato-p); }
.bg-blue    { background: var(--blue); color: var(--cream); }
.bg-olive   { background: var(--olive); color: var(--cream); }
.bg-tomato  { background: var(--tomato); color: var(--cream); }
.bg-ink     { background: var(--ink); color: var(--cream); }

/* On dark sections the secondary text and accents flip to cream / mustard. */
.dark .lede, .bg-blue .lede, .bg-olive .lede, .bg-tomato .lede, .bg-ink .lede { color: rgba(248, 240, 231, .82); }
.bg-blue .kicker, .bg-olive .kicker, .bg-tomato .kicker, .bg-ink .kicker { color: rgba(248, 240, 231, .7); }
.bg-blue .kicker b, .bg-olive .kicker b, .bg-tomato .kicker b, .bg-ink .kicker b { color: var(--cream); }
.bg-blue .display em, .bg-blue .h2 em,
.bg-olive .display em, .bg-olive .h2 em,
.bg-ink .display em, .bg-ink .h2 em { color: var(--mustard); }
.bg-tomato .h2 em, .bg-tomato .display em { color: var(--mustard-p); }
.bg-mustard .kicker::before { background: var(--tomato); }
.bg-mustard .h2 em { color: var(--tomato); }
.bg-blue-p .h2 em { color: var(--blue); }
.bg-olive-p .h2 em { color: var(--olive); }

/* Big decorative shapes (the app's circles + rings). */
.deco { position: absolute; z-index: 1; pointer-events: none; border-radius: 50%; will-change: transform; }
.deco.disc { background: var(--mustard); }
.deco.ring { border: 26px solid var(--blue); background: transparent; }
.deco.dot { background: var(--tomato); }
.deco.ink { background: var(--ink); }

/* ---- Stat chips (one solid, the rest outlined) ----------------------------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 0; padding: 0; list-style: none; }
.chips li {
  min-width: 118px;
  padding: 12px 16px 11px;
  border: 1.5px solid currentColor;
  border-radius: 14px;
}
.chips li:first-child { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.bg-ink .chips li:first-child, .bg-blue .chips li:first-child,
.bg-olive .chips li:first-child, .bg-tomato .chips li:first-child { background: var(--cream); border-color: var(--cream); color: var(--ink); }
.chips strong { display: block; font-family: var(--serif); font-weight: 500; font-size: 30px; line-height: 1; letter-spacing: -0.02em; }
.chips span { display: block; font-size: 11px; line-height: 1.3; margin-top: 6px; opacity: .78; }

/* ---- Pills / badges -------------------------------------------------------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  padding: 7px 12px; border-radius: 999px;
  background: var(--ink); color: var(--cream);
}
.badge.mustard { background: var(--mustard); color: var(--ink); }
.badge.cream { background: var(--cream); color: var(--ink); }
.badge.olive { background: var(--olive); color: var(--cream); }
.badge.outline { background: transparent; color: inherit; border: 1.5px solid currentColor; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }

/* ---- Store buttons ---------------------------------------------------------- */
.stores { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.store {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px 10px 14px;
  min-height: 54px;
  border-radius: 14px;
  background: var(--ink); color: var(--cream);
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
  box-shadow: var(--shadow-sm);
}
.store:hover { transform: translateY(-2px); }
.store svg { width: 26px; height: 26px; flex: none; }
.store small { display: block; font-size: 10.5px; line-height: 1.1; opacity: .8; }
.store b { display: block; font-size: 17px; line-height: 1.15; font-weight: 600; letter-spacing: -0.01em; }
.bg-ink .store, .bg-blue .store, .bg-tomato .store, .bg-olive .store { background: var(--cream); color: var(--ink); }
.store-note { font-size: 12px; line-height: 1.4; color: var(--muted); margin-left: 4px; }
.bg-ink .store-note { color: rgba(248, 240, 231, .6); }

.textlink {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 24px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 3px;
}
.textlink:hover { opacity: .75; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: 999px; border: 0; cursor: pointer;
  font-size: 15px; font-weight: 600; text-decoration: none;
  background: var(--ink); color: var(--cream);
  transition: transform .15s ease, opacity .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn.cream { background: var(--cream); color: var(--ink); }
.btn[disabled] { opacity: .4; pointer-events: none; }

/* ---- Phone mockup ----------------------------------------------------------- */
.stage { position: relative; display: flex; justify-content: center; align-items: center; min-height: 640px; }
.phone {
  position: relative; z-index: 3;
  width: 300px;
  aspect-ratio: 600 / 1304;
  border-radius: 50px;
  padding: 9px;
  background: #17111d;
  box-shadow: 0 40px 70px -30px rgba(36, 26, 46, .7), inset 0 0 0 2px #3b3044;
}
.phone::before { /* side button */
  content: ""; position: absolute; right: -3px; top: 150px; width: 4px; height: 70px;
  border-radius: 0 3px 3px 0; background: #2b2232;
}
.phone .screen {
  width: 100%; height: 100%;
  border-radius: 42px;
  overflow: hidden;
  background: var(--cream);
}
.phone video, .phone img.shot { width: 100%; height: 100%; object-fit: cover; }
.phone.tilt { transform: rotate(4deg); }
.phone.tilt-l { transform: rotate(-4deg); }

/* Paper cards that float around the phone (like vocabulary cards). */
.fcard {
  position: absolute; z-index: 4;
  width: 196px;
  background: var(--paper);
  color: var(--ink);
  border-radius: 18px;
  padding: 14px 16px 15px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(36, 26, 46, .06);
}
.fcard .k { font-size: 9.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.fcard .w { font-family: var(--serif); font-size: 26px; line-height: 1.05; letter-spacing: -0.02em; margin: 6px 0 4px; }
.fcard .s { font-size: 12px; line-height: 1.35; color: var(--ink-soft); }
.fcard .ico {
  position: absolute; right: 12px; top: 12px; width: 24px; height: 24px; border-radius: 50%;
  border: 1.5px solid var(--ink); display: grid; place-items: center; font-size: 12px;
}
.fcard.dark { background: var(--ink); color: var(--cream); }
.fcard.dark .k { color: rgba(248, 240, 231, .65); }
.fcard.dark .s { color: rgba(248, 240, 231, .8); }

.mascot { position: absolute; z-index: 5; width: 200px; filter: drop-shadow(0 18px 18px rgba(36, 26, 46, .18)); }
.bob { animation: bob 4.5s ease-in-out infinite; }
.bob-slow { animation: bob 6s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-10px) rotate(-1.5deg); } }
.float { animation: float 7s ease-in-out infinite; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }

/* ---- Talking patient (simulator section) ---------------------------------- */
.talk {
  position: absolute; z-index: 5;
  width: 280px;
  background: var(--paper); color: var(--ink);
  border-radius: 24px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.talk .face { background: var(--mustard); position: relative; aspect-ratio: 1349 / 900; overflow: hidden; }
.talk .face::before { /* the app's hatch pattern */
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,.14) 0 6px, transparent 6px 16px);
}
.talk svg { position: relative; width: 100%; height: auto; margin-top: -2%; }
.talk .live {
  position: absolute; left: 12px; top: 12px; z-index: 2;
  font-size: 10px; font-weight: 800; letter-spacing: .14em; padding: 5px 9px; border-radius: 999px;
  background: var(--tomato); color: #fff;
}
.talk .chat { padding: 14px 14px 16px; display: grid; gap: 8px; min-height: 154px; align-content: start; }
.bubble { font-size: 13px; line-height: 1.38; padding: 9px 12px; border-radius: 14px; max-width: 92%; }
.bubble.me { justify-self: end; background: var(--ink); color: var(--cream); border-bottom-right-radius: 4px; }
.bubble.pt { justify-self: start; background: var(--mustard-p); border-bottom-left-radius: 4px; font-family: var(--serif); font-size: 15px; }
.bubble.typing::after { content: "▍"; animation: blink 1s steps(1) infinite; margin-left: 1px; opacity: .6; }
@keyframes blink { 50% { opacity: 0; } }

/* ---- MCQ widget ------------------------------------------------------------ */
.mcq {
  position: relative; z-index: 4;
  width: min(440px, 100%);
  background: var(--paper);
  color: var(--ink);
  border-radius: 28px;
  padding: 24px;
  box-shadow: var(--shadow);
}
.mcq .top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.mcq .q { font-family: var(--serif); font-size: 23px; line-height: 1.18; letter-spacing: -0.01em; margin: 0 0 16px; }
.mcq .opts { display: grid; gap: 9px; }
.mcq .opt {
  text-align: left; cursor: pointer;
  padding: 13px 15px; border-radius: 16px;
  border: 1.5px solid var(--hair); background: #fff;
  font-size: 15px; line-height: 1.3;
  display: flex; gap: 10px; align-items: center;
  transition: border-color .15s, background .15s, transform .1s;
}
.mcq .opt:hover { border-color: var(--ink); }
.mcq .opt .l {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; font-size: 12px; font-weight: 700;
  background: var(--cream);
}
.mcq .opt.right { border-color: var(--olive); background: var(--olive-p); }
.mcq .opt.right .l { background: var(--olive); color: #fff; }
.mcq .opt.wrong { border-color: var(--tomato); background: var(--tomato-p); }
.mcq .opt.wrong .l { background: var(--tomato); color: #fff; }
.mcq .opt[disabled] { cursor: default; }
.mcq .why {
  display: none; margin-top: 14px; padding: 12px 14px; border-radius: 16px;
  background: var(--mustard-p); font-size: 13.5px; line-height: 1.45;
}
.mcq .why b { display: block; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--tomato); margin-bottom: 3px; }
.mcq.answered .why { display: block; }
.mcq .foot { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; }
.mcq .dots { display: flex; gap: 6px; }
.mcq .dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--hair); }
.mcq .dots i.on { width: 22px; border-radius: 99px; background: var(--ink); }

/* ---- Patients marquee ------------------------------------------------------ */
.faces { position: relative; z-index: 2; margin-top: 70px; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.faces .track { display: flex; gap: 18px; width: max-content; animation: marquee 48s linear infinite; }
.faces:hover .track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.face-card {
  width: 168px; flex: none;
  border-radius: 24px; overflow: hidden;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}
.face-card .pic { aspect-ratio: 1 / .9; display: flex; align-items: flex-end; justify-content: center; }
.face-card:nth-child(5n+1) .pic { background: var(--mustard); }
.face-card:nth-child(5n+2) .pic { background: var(--blue); }
.face-card:nth-child(5n+3) .pic { background: var(--tomato); }
.face-card:nth-child(5n+4) .pic { background: var(--olive); }
.face-card:nth-child(5n+5) .pic { background: var(--ink); }
.face-card img { width: 100%; height: auto; }
.face-card .cap { padding: 10px 12px 12px; }
.face-card .cap b { display: block; font-family: var(--serif); font-weight: 500; font-size: 18px; line-height: 1.1; }
.face-card .cap span { font-size: 11px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; font-weight: 700; }

/* ---- Steps ("how the app works") ------------------------------------------ */
.steps { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 46px; }
.step {
  background: var(--paper); color: var(--ink);
  border-radius: var(--radius); padding: 22px 20px 24px;
  box-shadow: var(--shadow-sm);
}
.step .n { font-family: var(--serif); font-style: italic; font-size: 26px; color: var(--tomato); }
.step h3 { font-family: var(--serif); font-weight: 500; font-size: 25px; letter-spacing: -0.01em; margin: 4px 0 6px; }
.step p { margin: 0; font-size: 14px; color: var(--ink-soft); }
.step .tag { margin-top: 12px; display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* ---- Plans / credits -------------------------------------------------------- */
.plans { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.plan { background: var(--paper); color: var(--ink); border-radius: 28px; padding: 26px; box-shadow: var(--shadow); }
.plan.pro { background: var(--ink); color: var(--cream); }
.plan h3 { font-family: var(--serif); font-weight: 500; font-size: 34px; letter-spacing: -0.02em; margin: 0 0 4px; }
.plan .sub { font-size: 13px; opacity: .75; margin: 0 0 18px; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.plan li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 14.5px; line-height: 1.35; }
.plan li::before {
  content: "✓"; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  font-size: 12px; font-weight: 800; background: var(--olive); color: #fff;
}
.plan li.no::before { content: "–"; background: var(--hair); color: var(--muted); }
.plan.pro li::before { background: var(--mustard); color: var(--ink); }
.plan li small { display: block; font-size: 12px; opacity: .7; }

.howcredits { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 56px 0 18px; }
.hc { border: 1.5px solid rgba(248, 240, 231, .4); border-radius: var(--radius); padding: 20px; }
.hc .n { font-family: var(--serif); font-size: 44px; line-height: 1; letter-spacing: -0.03em; }
.hc h4 { margin: 10px 0 6px; font-size: 16px; }
.hc p { margin: 0; font-size: 14px; color: rgba(248, 240, 231, .82); }

.packs { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 18px; }
.pack {
  background: var(--paper); color: var(--ink); border-radius: var(--radius);
  padding: 20px; display: flex; align-items: center; gap: 14px; box-shadow: var(--shadow-sm);
  border: 2px solid transparent;
}
.pack.best { border-color: var(--mustard); }
.pack .spark { width: 42px; height: 42px; border-radius: 50%; background: var(--mustard-p); color: var(--mustard-deep); display: grid; place-items: center; flex: none; font-size: 18px; }
.pack b { font-family: var(--serif); font-weight: 500; font-size: 24px; letter-spacing: -0.02em; display: block; line-height: 1.05; }
.pack span { font-size: 12px; color: var(--muted); }
.pack .price { margin-left: auto; background: var(--ink); color: var(--cream); font-weight: 700; font-size: 15px; padding: 8px 14px; border-radius: 999px; }
.pack .best-tag { display: inline-block; font-size: 9.5px; font-weight: 800; letter-spacing: .12em; background: var(--mustard); padding: 3px 7px; border-radius: 99px; margin-left: 6px; vertical-align: 4px; font-family: var(--sans); }

/* ---- Footer + floating nav ------------------------------------------------- */
footer.site {
  background: var(--ink); color: var(--cream);
  padding: 56px 0 120px;
  border-top: 1px solid rgba(248, 240, 231, .08);
}
footer.site .row { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-end; justify-content: space-between; }
footer.site .wordmark { font-size: 40px; }
footer.site .tag { font-family: var(--serif); font-style: italic; font-size: 17px; opacity: .75; margin-top: 8px; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 14px; }
footer.site nav a { text-decoration: none; opacity: .78; }
footer.site nav a:hover { opacity: 1; }
footer.site .legal { margin-top: 30px; font-size: 12px; opacity: .55; max-width: 760px; }

.pillnav {
  position: fixed; left: 50%; bottom: 18px; z-index: 50;
  transform: translateX(-50%);
  display: flex; gap: 4px; padding: 6px;
  background: var(--ink); color: var(--cream);
  border-radius: 999px;
  box-shadow: 0 18px 40px -14px rgba(36, 26, 46, .6), inset 0 0 0 1px rgba(248, 240, 231, .08);
}
.pillnav a {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 15px; border-radius: 999px;
  font-size: 13.5px; font-weight: 600; text-decoration: none; white-space: nowrap;
  color: rgba(248, 240, 231, .82);
  transition: background .2s, color .2s;
}
.pillnav a svg { width: 16px; height: 16px; }
.pillnav a:hover { color: var(--cream); background: rgba(248, 240, 231, .08); }
.pillnav a.on { background: var(--cream); color: var(--ink); }
.pillnav a.get { background: var(--mustard); color: var(--ink); }
.pillnav a .lbl-short { display: none; }

/* ---- Inner pages (FAQ, legal, support) ------------------------------------- */
.page-hero { padding: 150px 0 60px; position: relative; overflow: hidden; }
.page-hero .display { font-size: clamp(48px, 7vw, 96px); }
.prose { position: relative; z-index: 2; max-width: 760px; padding-bottom: 120px; }
.prose h2 { font-family: var(--serif); font-weight: 500; font-size: 30px; letter-spacing: -0.02em; margin: 44px 0 10px; }
.prose p, .prose li { font-size: 16.5px; color: var(--ink-soft); }
.prose ul { padding-left: 20px; }
.prose a { color: var(--tomato); }
.prose .meta { font-size: 13px; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; font-weight: 700; }
.note {
  background: var(--mustard-p); border-radius: 18px; padding: 16px 18px; margin: 28px 0;
  font-size: 15px; color: var(--ink);
}

.faq-group { margin: 0 0 40px; }
.faq-group > h2 { font-family: var(--serif); font-weight: 500; font-size: 30px; margin: 0 0 14px; letter-spacing: -0.02em; }
.faq-item { border-bottom: 1.5px solid var(--hair); }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 18px;
  background: none; border: 0; cursor: pointer; text-align: left;
  padding: 20px 0; font-family: var(--serif); font-size: 22px; line-height: 1.2; letter-spacing: -0.01em;
}
.faq-q .pm { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--ink); display: grid; place-items: center; transition: transform .25s, background .25s; }
.faq-q .pm::before { content: "+"; font-family: var(--sans); font-size: 18px; line-height: 1; }
.faq-item.open .pm { transform: rotate(45deg); background: var(--ink); color: var(--cream); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a p { margin: 0 0 20px; font-size: 16px; color: var(--ink-soft); max-width: 680px; }

.cards2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 30px 0; }
.card {
  background: var(--paper); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm);
}
.card h3 { font-family: var(--serif); font-weight: 500; font-size: 26px; margin: 0 0 6px; letter-spacing: -0.01em; }
.card p { margin: 0 0 14px; color: var(--ink-soft); font-size: 15px; }

form.contact { display: grid; gap: 14px; margin-top: 10px; }
form.contact label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; }
form.contact input, form.contact textarea {
  font: inherit; font-size: 16px; padding: 14px 16px; border-radius: 16px;
  border: 1.5px solid var(--hair); background: #fff; color: var(--ink);
}
form.contact input:focus, form.contact textarea:focus { outline: none; border-color: var(--ink); }
form.contact textarea { min-height: 150px; resize: vertical; }

/* ---- Dictionary (About) ---------------------------------------------------- */
.dict { position: relative; z-index: 2; max-width: 820px; }
.dict .word { font-family: var(--serif); font-weight: 500; font-size: clamp(64px, 11vw, 150px); letter-spacing: -0.04em; line-height: .9; margin: 0; }
.dict .pron { font-family: var(--serif); font-style: italic; font-size: 24px; color: var(--muted); margin: 14px 0 30px; }
.dict ol { list-style: none; counter-reset: d; padding: 0; margin: 0; display: grid; gap: 22px; }
.dict ol li { counter-increment: d; display: grid; grid-template-columns: 46px 1fr; gap: 8px; font-size: 19px; line-height: 1.45; }
.dict ol li::before { content: counter(d) "."; font-family: var(--serif); font-style: italic; font-size: 26px; color: var(--tomato); line-height: 1.1; }
.dict ol li i { color: var(--muted); font-family: var(--serif); }
.dict ol li em { font-family: var(--serif); font-size: 21px; }

/* ---- Mini case (How it works) --------------------------------------------- */
.mc { position: relative; z-index: 2; display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: center; }
.mc .side .k { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); display: flex; gap: 10px; align-items: center; }
.mc .side .k .num { width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: var(--cream); display: grid; place-items: center; letter-spacing: 0; }
.mc .side h3 { font-family: var(--serif); font-weight: 500; font-size: 36px; line-height: 1.02; letter-spacing: -0.02em; margin: 14px 0 10px; }
.mc .side h3 em { font-style: italic; color: var(--tomato); }
.mc .side p { color: var(--ink-soft); font-size: 15px; max-width: 320px; }
.bg-blue .mc .side p, .bg-olive .mc .side p, .bg-ink .mc .side p { color: rgba(248, 240, 231, .82); }
.bg-blue .mc .side .k, .bg-olive .mc .side .k, .bg-ink .mc .side .k { color: rgba(248, 240, 231, .7); }
.bg-blue .mc .side .k .num, .bg-olive .mc .side .k .num, .bg-ink .mc .side .k .num { background: var(--cream); color: var(--ink); }
.bg-blue .mc .side h3 em, .bg-olive .mc .side h3 em, .bg-ink .mc .side h3 em { color: var(--mustard); }

.casecard {
  background: var(--paper); color: var(--ink);
  border-radius: 28px; padding: 26px; box-shadow: var(--shadow);
  max-width: 560px;
}
.casecard .head { display: flex; gap: 16px; align-items: center; margin-bottom: 16px; }
.casecard .av { width: 84px; height: 84px; border-radius: 50%; background: var(--mustard); overflow: hidden; flex: none; display: flex; align-items: flex-end; }
.casecard .av img { width: 100%; }
.casecard h4 { font-family: var(--serif); font-weight: 500; font-size: 26px; margin: 0; letter-spacing: -0.01em; }
.casecard .cc { font-family: var(--serif); font-size: 21px; line-height: 1.25; background: var(--mustard); padding: 16px 18px; border-radius: 18px; margin: 0 0 16px; }
.casecard ul.facts { margin: 0 0 16px; padding-left: 18px; }
.casecard ul.facts li { font-size: 15px; margin: 4px 0; }
.chipset { display: flex; flex-wrap: wrap; gap: 8px; }
.qchip {
  cursor: pointer; border: 1.5px solid var(--ink); background: transparent; border-radius: 999px;
  padding: 9px 14px; font-size: 14px; transition: background .15s, color .15s;
}
.qchip:hover { background: var(--cream); }
.qchip.used { background: var(--ink); color: var(--cream); }
.answer { margin-top: 12px; font-family: var(--serif); font-size: 18px; line-height: 1.3; min-height: 48px; padding: 12px 14px; background: var(--mustard-p); border-radius: 14px; }
.tray { min-height: 64px; border-radius: 18px; background: var(--tomato-p); padding: 10px; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; align-items: center; }
.tray:empty::before { content: "Add tests to the tray"; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--tomato); padding: 0 8px; }
.tray .t { background: #fff; border-radius: 12px; padding: 8px 12px; font-size: 13px; font-weight: 600; }
.testrow { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 14px; border: 1.5px solid var(--hair); background: #fff; border-radius: 16px; margin-bottom: 8px; font-size: 14.5px; }
.testrow button { flex: none; border: 0; border-radius: 999px; padding: 7px 13px; font-size: 13px; font-weight: 700; cursor: pointer; background: var(--tomato-p); color: var(--tomato); }
.testrow button.added { background: var(--ink); color: var(--cream); }
.results { display: grid; gap: 8px; margin-top: 12px; }
.result { padding: 12px 14px; border-radius: 14px; background: var(--cream); font-size: 14px; }
.result b { display: block; font-family: var(--serif); font-weight: 500; font-size: 19px; }
.result.good { border-left: 4px solid var(--olive); }
.result.meh { border-left: 4px solid var(--hair); }
.summary { position: relative; z-index: 2; display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.summary .box { min-width: 150px; padding: 16px 18px; border-radius: 18px; border: 1.5px solid var(--ink); }
.summary .box:first-child { background: var(--ink); color: var(--cream); }
.summary .box:nth-child(2) { background: var(--olive); color: var(--cream); border-color: var(--olive); }
.summary .box strong { display: block; font-family: var(--serif); font-weight: 500; font-size: 40px; line-height: 1; letter-spacing: -0.03em; }
.summary .box span { font-size: 12px; opacity: .8; }

.loop { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 40px; }
.loop .card h3 em { color: var(--blue); }
.loop .card .day { font-family: var(--serif); font-style: italic; color: var(--blue); font-size: 22px; }

/* ---- Reveal on scroll ----------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .bob, .bob-slow, .float, .faces .track { animation: none !important; }
}

/* ---- Responsive ------------------------------------------------------------ */
@media (max-width: 980px) {
  .sec { padding: 96px 0; }
  .sec .grid, .mc { grid-template-columns: 1fr; gap: 40px; }
  .sec.flip .grid > :first-child { order: 0; }
  .sec.hero { min-height: auto; padding: 120px 0 90px; }
  .stage { min-height: 560px; }
  .steps, .loop { grid-template-columns: 1fr 1fr; }
  .plans, .howcredits, .packs, .cards2 { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .wrap { width: min(var(--wrap), 100% - 36px); }
  .sec { padding: 80px 0; }
  .phone { width: 248px; border-radius: 42px; padding: 8px; }
  .phone .screen { border-radius: 35px; }
  .stage { min-height: 520px; }
  .fcard { width: 160px; padding: 12px 13px; }
  .fcard .w { font-size: 21px; }
  .mascot { width: 130px !important; }
  .talk { width: 230px; }
  .steps, .loop { grid-template-columns: 1fr; }
  .chips li { min-width: 0; flex: 1 1 30%; padding: 10px 12px; }
  .chips strong { font-size: 24px; }
  .pillnav a { padding: 10px 11px; font-size: 12.5px; }
  .pillnav a .lbl-long { display: none; }
  .pillnav a .lbl-short { display: inline; }
  .deco.ring { border-width: 18px; }
  .faq-q { font-size: 19px; }
}
@media (max-width: 380px) {
  .pillnav a svg { display: none; }
}

/* ---- Page components (added with the page templates) ----------------------- */
.ticks { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 10px; }
.ticks li { display: grid; grid-template-columns: 14px 1fr; gap: 12px; align-items: baseline; font-size: 15.5px; }
.ticks li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--mustard); transform: translateY(-1px); }

.plancard {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 20px; border-radius: 20px; text-decoration: none; color: var(--ink);
  box-shadow: var(--shadow-sm); transition: transform .2s ease;
}
.plancard:hover { transform: translateX(4px); }
.plancard small { display: block; font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; opacity: .75; }
.plancard b { display: block; font-family: var(--serif); font-weight: 500; font-size: 26px; line-height: 1.1; letter-spacing: -0.01em; }
.plancard em { font-style: normal; font-size: 12px; opacity: .8; }
.plancard i { font-style: normal; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--cream); display: grid; place-items: center; flex: none; }

.mcq-plain { display: grid; gap: 9px; }
.mcq-plain .opt {
  text-align: left; cursor: pointer; padding: 13px 15px; border-radius: 16px;
  border: 1.5px solid var(--hair); background: #fff; font-size: 15px; line-height: 1.3;
  transition: border-color .15s, background .15s;
}
.mcq-plain .opt:hover { border-color: var(--ink); }
.mcq-plain .opt.picked { border-color: var(--ink); background: var(--cream); box-shadow: inset 0 0 0 1px var(--ink); }
.mcq-plain .opt.right { border-color: var(--olive); background: var(--olive-p); }
.mcq-plain .opt.wrong { border-color: var(--tomato); background: var(--tomato-p); }
.mcq-plain .opt.missed { border-style: dashed; border-color: var(--olive); }
.mcq-plain .opt[disabled] { cursor: default; }
.btn.ghost.used { background: var(--ink); color: var(--cream); }

.newcase {
  position: relative; z-index: 4; width: min(400px, 100%);
  background: var(--paper); color: var(--ink); border-radius: 28px; padding: 24px; box-shadow: var(--shadow);
  display: grid; gap: 10px;
}
.newcase .k { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--tomato); }
.newcase .field { border: 1.5px solid var(--hair); border-radius: 16px; padding: 10px 14px; background: #fff; }
.newcase .field span { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.newcase .field b { font-family: var(--serif); font-weight: 500; font-size: 19px; }
.newcase .field b.blank { color: var(--muted); font-style: italic; }

.scorecard {
  position: relative; z-index: 4; width: min(400px, 100%);
  background: var(--paper); color: var(--ink); border-radius: 28px; padding: 24px; box-shadow: var(--shadow);
}
.scorecard .k { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.scorecard .top { display: flex; justify-content: space-between; align-items: center; margin: 8px 0 16px; }
.scorecard .big { font-family: var(--serif); font-size: 64px; line-height: 1; letter-spacing: -0.04em; }
.scorecard .big small { font-size: 22px; color: var(--muted); letter-spacing: 0; }
.scorecard .s { font-size: 13px; color: var(--ink-soft); margin-top: 4px; }
.scorecard .grade { width: 72px; height: 72px; border-radius: 50%; background: var(--olive); color: var(--cream); display: grid; place-items: center; font-family: var(--serif); font-size: 40px; }
.scorecard .bar { display: grid; grid-template-columns: 110px 1fr; gap: 12px; align-items: center; font-size: 13px; margin: 9px 0; }
.scorecard .bar i { position: relative; height: 8px; border-radius: 99px; background: var(--olive-p); overflow: hidden; }
.scorecard .bar i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: 99px; background: var(--olive); }

.talk .face { aspect-ratio: 1349 / 1060; }
.plan li small { grid-column: 2; margin-top: -8px; }
@media (max-width: 620px) {
  .hide-sm { display: none; }
  .sec.hero .deco.disc { width: 380px !important; height: 380px !important; right: -190px !important; top: 40px !important; }
}
@media (max-width: 620px) {
  .sec:not(.hero) .deco.ring { display: none; }
}
/* Phones/tablets: the stacked layout puts some circles behind text of the same colour */
@media (max-width: 980px) {
  #practice .deco.disc { background: var(--mustard) !important; }
  #scores .deco.disc { background: var(--tomato) !important; }
  #get .deco.disc { background: var(--blue) !important; }
}
@media (max-width: 620px) {
  .sec:not(.hero) .deco.ink { display: none; }
}
@media (max-width: 980px) {
  .sec:not(.hero) .deco.ring, .sec:not(.hero) .deco.ink { display: none; }
}
/* Phones: keep the big corner circle on inner pages clear of the header logo */
@media (max-width: 620px) {
  .page-hero .deco.disc,
  main > section.sec:first-child:not(.hero) .deco.disc {
    width: 220px !important; height: 220px !important; right: -90px !important; top: -70px !important;
  }
}

/* ---- About: "Why" phone stage + "What's inside" cards ----------------------- */
.why-stage { min-height: 620px; }
.steps.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 980px) {
  .steps.three { grid-template-columns: 1fr 1fr; }
  .why-stage { width: 100%; max-width: 520px; margin-inline: auto; }
}
@media (max-width: 620px) {
  .why-stage { min-height: 540px; }
  .why-stage .deco.disc { width: 300px !important; height: 300px !important; }
  .why-stage .fcard { top: 4% !important; right: -4px !important; }
  .why-stage .mascot { left: -6px !important; }
  /* compact list: numeral on the left, title + text on the right */
  .steps.three { grid-template-columns: 1fr; gap: 12px; margin-top: 30px; }
  .steps.three .step {
    display: grid; grid-template-columns: 38px 1fr; column-gap: 10px;
    padding: 18px 18px 20px; align-items: baseline;
  }
  .steps.three .step .n { grid-row: span 2; font-size: 24px; }
  .steps.three .step h3 { font-size: 22px; margin: 0 0 4px; }
  .steps.three .step p { font-size: 14.5px; line-height: 1.5; }
}
