/* =====================================================================
   Mind Your Eyes — site styles
   Palette: a warm pink lead colour with its complement, a deep teal, plus a
   sunny yellow used sparingly. High contrast, large clear type
   (Lexend, designed for easy reading), and gentle
   animations that switch off for people who prefer reduced motion.
   ===================================================================== */
:root {
  --pink: #d6006f;          /* lead colour: buttons, links, highlights */
  --pink-dark: #a8005a;
  --pink-soft: #fde7f1;
  --blush: #fff6fa;         /* alternate section background */
  --teal-deep: #00566a;     /* complement: page headers, footer */
  --teal-darker: #003a48;
  --teal: #0096a8;          /* decorative only */
  --teal-ink: #007585;      /* teal for text on white */
  --teal-soft: #e2f4f5;
  --sun: #ffc93c;

  --bg: #ffffff;
  --surface: #ffffff;
  --ink: #1c2630;
  --muted: #56626c;
  --line: #e4e1e6;

  /* names used by the quiz, questions and teaching-aid components */
  --accent: var(--pink);
  --accent-ink: #ffffff;
  --accent-soft: var(--pink-soft);
  --gold: #a86b12;
  --ok: #1d7a46;
  --ok-soft: #e3f3ea;
  --bad: #c0262d;
  --bad-soft: #fdeaea;
  --scan-bg: #0b1418;

  --f-body: "Lexend", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --f-display: var(--f-body);
  --f-mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;

  --r: 14px;
  --r-lg: 22px;
  --gap: clamp(16px, 2.5vw, 28px);
  --max: 1160px;
  --shadow: 0 1px 2px rgb(28 38 48 / .06), 0 12px 32px -12px rgb(0 86 106 / .22);
  --shadow-lift: 0 2px 4px rgb(28 38 48 / .06), 0 24px 48px -16px rgb(0 86 106 / .32);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --pink: #ff5fa8; --pink-dark: #ff85bd; --pink-soft: #3a1528; --blush: #161216;
    --teal-ink: #6fd6e3; --teal-soft: #0f2c33;
    --bg: #0d1a1f; --surface: #13262c; --ink: #eef4f5; --muted: #a9bcc1; --line: #263b42;
    --accent-ink: #1a0010; --ok: #5cc28e; --ok-soft: #143326; --bad: #ef7e70; --bad-soft: #3a1c18; --gold: #e0a64a;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 12px 32px -12px rgb(0 0 0 / .6);
    --shadow-lift: 0 2px 4px rgb(0 0 0 / .3), 0 24px 48px -16px rgb(0 0 0 / .7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --pink: #ff5fa8; --pink-dark: #ff85bd; --pink-soft: #3a1528; --blush: #161216;
  --teal-ink: #6fd6e3; --teal-soft: #0f2c33;
  --bg: #0d1a1f; --surface: #13262c; --ink: #eef4f5; --muted: #a9bcc1; --line: #263b42;
  --accent-ink: #1a0010; --ok: #5cc28e; --ok-soft: #143326; --bad: #ef7e70; --bad-soft: #3a1c18; --gold: #e0a64a;
  --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 12px 32px -12px rgb(0 0 0 / .6);
  --shadow-lift: 0 2px 4px rgb(0 0 0 / .3), 0 24px 48px -16px rgb(0 0 0 / .7);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.6 var(--f-body);
  min-height: 100vh; display: flex; flex-direction: column; overflow-x: clip;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: var(--pink); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--pink-dark); text-decoration-thickness: 3px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 6px var(--sun); border-radius: 4px; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 700; line-height: 1.12; text-wrap: balance; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.2rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.2rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.mono { font-family: var(--f-mono); font-size: .85em; letter-spacing: .02em; }
.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--pink); margin: 0 0 .5em; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 20; }
.skip:focus { left: 12px; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: 16px; }
.page-body { padding-block: 40px 80px; }
.hl { background: linear-gradient(transparent 62%, color-mix(in srgb, var(--sun) 70%, transparent) 62%); padding-inline: 2px; }

/* ---------- top strip, header ---------- */
.topstrip { background: var(--teal-darker); color: #e6f6f8; font-size: .86rem; }
.topstrip .container { display: flex; justify-content: space-between; gap: 12px; padding-block: 7px; flex-wrap: wrap; }
.topstrip a { color: #fff; font-weight: 700; }
.topstrip a:hover { color: var(--sun); }
.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.top__inner { display: flex; align-items: center; justify-content: space-between; gap: 14px 24px; flex-wrap: wrap; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand__mark { width: 46px; height: 46px; flex: none; transition: transform .4s var(--ease); }
.brand:hover .brand__mark { transform: rotate(-8deg) scale(1.05); }
.brand__name { font-weight: 400; font-size: .95rem; line-height: 1.2; color: var(--muted); }
.brand__name b { display: block; font-size: 1.3rem; font-weight: 700; color: var(--ink); position: relative; padding-bottom: 4px; }
.brand__name b::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 46px; background: var(--pink); border-radius: 3px; transition: width .4s var(--ease); }
.brand:hover .brand__name b::after { width: 100%; }
.top__nav { display: flex; gap: 6px 20px; align-items: center; flex-wrap: wrap; }
.top__nav a { color: var(--ink); text-decoration: none; font-weight: 700; position: relative; padding: 4px 0; }
.top__nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 3px; border-radius: 3px; background: var(--pink); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.top__nav a:not(.btn):hover::after, .top__nav a:not(.btn)[aria-current="page"]::after { transform: scaleX(1); }
.top__nav a:not(.btn)[aria-current="page"] { color: var(--pink); }
.top__nav a.btn { color: #fff; padding: 9px 20px; }
.linkish { background: none; border: 0; color: var(--muted); font: 700 1rem var(--f-body); cursor: pointer; padding: 0; }
.linkish:hover { color: var(--pink); }
.demo-banner { background: var(--sun); color: #1c2630; text-align: center; font-size: .9rem; font-weight: 700; padding: 8px 16px; }

.wrap { flex: 1; width: 100%; }
.wrap:focus { outline: none; }
.view-in { animation: viewIn .5s var(--ease) both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- footer ---------- */
.foot { background: var(--teal-deep); color: #dff1f3; position: relative; margin-top: 0; }
.foot__wave { display: block; width: 100%; height: 48px; color: var(--teal-deep); background: var(--bg); }
.foot__inner { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px 40px; padding-block: 28px 40px; }
.foot__brand { font-size: 1.05rem; }
.foot__brand b { display: block; font-size: 1.35rem; color: #fff; }
.foot p { margin: .6em 0 0; color: #bfe3e8; max-width: 52ch; font-size: .95rem; }
.foot__nav { display: grid; gap: 8px; align-content: start; }
.foot__nav a { color: #fff; font-weight: 700; text-decoration: none; }
.foot__nav a::before { content: "›"; color: var(--sun); margin-right: 8px; font-weight: 700; }
.foot__nav a:hover { color: var(--sun); }
.foot :focus-visible { outline-color: #fff; }

/* ---------- buttons & forms ---------- */
/* Buttons: a glossy pink pill with depth (a soft top highlight, a darker
   lower edge and a coloured glow), a light sweep on hover, and a press-down
   on click. Arrow buttons carry the arrow in a small round badge. */
.btn {
  --b1: #ec1a85; --b2: #d6006f; --b3: #b0005c; --edge: #8c004a; --glow: rgb(214 0 111 / .45);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 12px 24px;
  font: 700 1rem/1.2 var(--f-body); letter-spacing: .01em; text-decoration: none; cursor: pointer;
  color: #fff; border: 0; border-radius: 999px;
  background: linear-gradient(180deg, var(--b1) 0%, var(--b2) 55%, var(--b3) 100%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .35), inset 0 -3px 0 var(--edge), 0 10px 22px -10px var(--glow);
  text-shadow: 0 1px 0 rgb(0 0 0 / .15);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), filter .2s, background .2s, color .2s;
}
.btn::before {                                   /* the light sweep */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgb(255 255 255 / .35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s var(--ease);
}
.btn:hover { color: #fff; text-decoration: none; transform: translateY(-2px); filter: saturate(1.08) brightness(1.04);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .4), inset 0 -3px 0 var(--edge), 0 16px 28px -12px var(--glow); }
.btn:hover::before { transform: translateX(120%); }
.btn:active { transform: translateY(1px); box-shadow: inset 0 2px 4px rgb(0 0 0 / .2), 0 4px 10px -6px var(--glow); }
.btn:disabled { cursor: not-allowed; transform: none; filter: grayscale(.85); opacity: .5; box-shadow: none; }
.btn:disabled::before { display: none; }

/* arrow in a round badge */
.btn--go::after {
  content: "→"; display: inline-grid; place-items: center; flex: none;
  width: 28px; height: 28px; margin: -4px -12px -4px 2px; border-radius: 50%;
  background: rgb(255 255 255 / .22); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .3);
  font-size: .95rem; line-height: 1; transition: transform .25s var(--ease), background .25s;
}
.btn--go:hover::after { transform: translateX(3px); background: rgb(255 255 255 / .32); }

/* secondary: white with a pink rim, fills softly on hover */
.btn--ghost {
  color: var(--pink-dark); text-shadow: none;
  background: linear-gradient(180deg, var(--surface), color-mix(in srgb, var(--pink-soft) 45%, var(--surface)));
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--pink) 55%, transparent), 0 6px 14px -10px var(--glow);
}
.btn--ghost:hover { color: var(--pink-dark); background: var(--pink-soft);
  box-shadow: inset 0 0 0 2px var(--pink), 0 12px 22px -12px var(--glow); }
.btn--ghost:active { box-shadow: inset 0 0 0 2px var(--pink), inset 0 2px 4px rgb(0 0 0 / .08); }
.btn--ghost::before { background: linear-gradient(115deg, transparent 30%, rgb(214 0 111 / .10) 50%, transparent 70%); }
.btn--ghost.btn--go::after { background: var(--pink-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--pink) 35%, transparent); }

/* on the teal banners: white, turning sunshine yellow on hover */
.btn--light {
  --edge: #d3dfe2; --glow: rgb(0 0 0 / .45);
  color: var(--teal-deep); text-shadow: none;
  background: linear-gradient(180deg, #ffffff 0%, #f1f7f8 100%);
}
.btn--light:hover { color: #1c2630; background: linear-gradient(180deg, #ffdb6e 0%, var(--sun) 100%); --edge: #d9a514; }
.btn--light.btn--go::after { background: var(--teal-soft); box-shadow: none; }
.btn--light:hover.btn--go::after { background: rgb(255 255 255 / .55); }
.btn--outline-light {
  color: #fff; text-shadow: none;
  background: rgb(255 255 255 / .10); backdrop-filter: blur(6px);
  box-shadow: inset 0 0 0 2px rgb(255 255 255 / .65);
}
.btn--outline-light:hover { color: #fff; background: rgb(255 255 255 / .2); box-shadow: inset 0 0 0 2px #fff, 0 12px 24px -14px rgb(0 0 0 / .6); }

.btn--sm { min-height: 36px; padding: 7px 16px; font-size: .9rem; gap: 8px; }
.btn--sm.btn--go::after { width: 22px; height: 22px; margin-right: -8px; font-size: .8rem; }
.btn--block { width: 100%; margin: 14px 0 16px; }

/* small toggle buttons (question tools, filters) */
.btn-ghost { background: var(--surface); border: 2px solid var(--line); color: var(--ink); border-radius: 999px; padding: 7px 14px; font: 700 .88rem var(--f-body); cursor: pointer; transition: border-color .2s, color .2s, background .2s; }
.btn-ghost:hover, .btn-ghost[aria-pressed="true"] { border-color: var(--pink); color: var(--pink); background: var(--pink-soft); }

label { display: block; font-weight: 700; font-size: .95rem; margin: 16px 0 6px; }
.hint { font-weight: 400; color: var(--muted); font-size: .86rem; }
input[type=text], input[type=email], input[type=password], textarea, select {
  width: 100%; padding: 12px 14px; border: 2px solid var(--line); border-radius: 10px;
  background: var(--surface); color: var(--ink); font: 1rem/1.5 var(--f-body);
  transition: border-color .2s, box-shadow .2s;
}
input:focus, textarea:focus, select:focus { border-color: var(--pink); outline: none; box-shadow: 0 0 0 4px var(--pink-soft); }
textarea { resize: vertical; min-height: 140px; }
.alert { background: var(--bad-soft); color: var(--bad); border-left: 5px solid var(--bad); border-radius: 10px; padding: 12px 14px; margin: 12px 0; font-size: .95rem; animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }
.note { background: var(--ok-soft); color: var(--ok); border-left: 5px solid var(--ok); border-radius: 10px; padding: 12px 14px; margin: 12px 0; font-size: .95rem; }
.note a { color: inherit; font-weight: 700; }
.note--big { font-size: 1.05rem; padding: 18px 20px; }

/* ---------- page header band (inner pages) ---------- */
.phead { position: relative; color: #fff; background: linear-gradient(135deg, var(--teal-deep), var(--teal-darker)); overflow: hidden; isolation: isolate; }
.phead::before, .phead::after, .hero::before, .hero::after {
  content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(50px); opacity: .55;
  animation: drift 18s ease-in-out infinite alternate;
}
.phead::before, .hero::before { width: 420px; height: 420px; background: var(--pink); right: -120px; top: -160px; }
.phead::after, .hero::after { width: 360px; height: 360px; background: var(--teal); left: -140px; bottom: -200px; animation-delay: -9s; }
@keyframes drift { to { transform: translate(-60px, 50px) scale(1.15); } }
.phead__inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 40px; align-items: center; padding-block: 48px 72px; }
.phead h1 { color: #fff; margin-bottom: .3em; }
.phead .eyebrow { color: var(--sun); }
.phead .lede { color: #d5eef1; margin-bottom: 0; }
.phead__img { width: min(340px, 34vw); aspect-ratio: 16 / 10; border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 30px 60px -24px rgb(0 0 0 / .6); transform: rotate(2deg); border: 4px solid rgb(255 255 255 / .9); }
.phead__img img { width: 100%; height: 100%; object-fit: cover; }
.wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 40px; color: var(--bg); display: block; }
.phead .crumbs a { color: #fff; }
.phead .crumbs a + a::before { color: rgb(255 255 255 / .6); }

/* ---------- home: hero ---------- */
.hero { position: relative; color: #fff; background: linear-gradient(140deg, var(--teal-deep) 0%, var(--teal-darker) 100%); overflow: hidden; isolation: isolate; }
.hero__inner { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 24px 40px; align-items: center; padding-block: clamp(48px, 7vw, 88px) clamp(80px, 9vw, 120px); }
.hero .eyebrow { color: var(--sun); }
.hero h1 { color: #fff; font-size: clamp(2.5rem, 6.2vw, 4.4rem); line-height: 1.02; letter-spacing: -0.02em; margin-bottom: .3em; }
.hero h1 em { font-style: normal; color: #ffb3d6; }
.hero__lede { font-size: clamp(1.1rem, 2vw, 1.3rem); color: #d5eef1; max-width: 56ch; }
.hero .row { margin-top: 26px; }
.rotator { display: inline-flex; align-items: baseline; gap: 10px; font-size: 1.15rem; color: #fff; margin: 4px 0 14px; padding: 8px 16px; background: rgb(255 255 255 / .1); border: 1px solid rgb(255 255 255 / .2); border-radius: 999px; }
.rotator__word { display: inline-block; font-weight: 700; color: var(--sun); min-width: 9ch; }
.rotator__word.is-out { animation: wordOut .35s var(--ease) forwards; }
.rotator__word.is-in { animation: wordIn .45s var(--ease) both; }
@keyframes wordOut { to { opacity: 0; transform: translateY(-10px); } }
@keyframes wordIn { from { opacity: 0; transform: translateY(10px); } }
.hero__art { position: relative; }
.hero__art svg { width: 100%; height: auto; overflow: visible; }

/* the hero illustration */
.ill-float { animation: float 6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.ill-float--2 { animation-duration: 7.5s; animation-delay: -2s; }
.ill-float--3 { animation-duration: 5.5s; animation-delay: -4s; }
@keyframes float { 50% { transform: translateY(-12px); } }
.ill-spin { animation: spin 40s linear infinite; transform-box: fill-box; transform-origin: center; }
@keyframes spin { to { transform: rotate(360deg); } }
.ill-iris { animation: look 9s ease-in-out infinite; }
@keyframes look { 0%, 18% { transform: translate(0, 0); } 25%, 40% { transform: translate(14px, -4px); } 48%, 62% { transform: translate(-14px, 3px); } 70%, 100% { transform: translate(0, 0); } }
.ill-lid { transform: scaleY(0); animation: blink 6s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 0; }
@keyframes blink { 0%, 90%, 100% { transform: scaleY(0); } 94% { transform: scaleY(1); } }
.ill-dot { animation: typing 1.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.ill-dot:nth-child(2) { animation-delay: .18s; }
.ill-dot:nth-child(3) { animation-delay: .36s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .55; } 30% { transform: translateY(-6px); opacity: 1; } }
.ill-wave { animation: pulse 2.6s ease-out infinite; transform-box: fill-box; transform-origin: 0 50%; }
.ill-wave:nth-of-type(2) { animation-delay: .4s; }
.ill-wave:nth-of-type(3) { animation-delay: .8s; }
@keyframes pulse { 0% { opacity: 0; transform: scale(.85); } 40% { opacity: 1; } 100% { opacity: 0; transform: scale(1.1); } }
.ill-heart { animation: beat 1.8s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.18); } 30% { transform: scale(.96); } 45% { transform: scale(1.1); } }

/* ---------- home: sections ---------- */
.section { padding-block: clamp(56px, 8vw, 96px); position: relative; }
.section--blush { background: var(--blush); }
.section--teal { background: var(--teal-soft); }
.section__head { display: flex; justify-content: space-between; align-items: end; gap: 12px 24px; flex-wrap: wrap; margin-bottom: 28px; }
.section__head h2 { margin: 0; }
.section__head .lede { margin: 8px 0 0; }
.section__head > a { font-weight: 700; }
h2.underlined { position: relative; padding-bottom: 14px; }
h2.underlined::after { content: ""; position: absolute; left: 0; bottom: 0; width: 64px; height: 5px; border-radius: 5px; background: linear-gradient(90deg, var(--pink), var(--teal)); }

/* the scale of the problem */
.scale-banner { position: relative; border-radius: var(--r-lg); overflow: hidden; min-height: 220px; display: grid; align-items: end; margin-bottom: 28px; box-shadow: var(--shadow); }
.scale-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.6s var(--ease); }
.scale-banner.is-in img { transform: scale(1); }
.scale-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(0 58 72 / .92) 0%, rgb(0 58 72 / .55) 55%, rgb(214 0 111 / .25) 100%); }
.scale-banner p { position: relative; z-index: 1; color: #fff; font-size: clamp(1.25rem, 2.6vw, 1.75rem); font-weight: 700; line-height: 1.3; max-width: 30ch; margin: 0; padding: 32px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.stat { background: var(--surface); border-radius: var(--r); padding: 24px 22px 20px; display: grid; gap: 8px; align-content: start; box-shadow: var(--shadow); border-top: 6px solid var(--pink); transition: transform .3s var(--ease), box-shadow .3s; }
.stat:nth-child(even) { border-top-color: var(--teal); }
.stat:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.stat__value { font-size: clamp(2.4rem, 4.6vw, 3.3rem); font-weight: 700; line-height: 1; color: var(--pink); font-variant-numeric: tabular-nums; }
.stat:nth-child(even) .stat__value { color: var(--teal-ink); }
.stat__label { font-size: 1.02rem; }
.stat__src { font-size: .8rem; color: var(--muted); }

/* what patients tell us */
.voice { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.voice__photo { position: relative; max-width: 440px; justify-self: center; width: 100%; }
.voice__photo::before { content: ""; position: absolute; inset: 22px -22px -22px 22px; border-radius: var(--r-lg); background: linear-gradient(135deg, var(--teal), var(--teal-deep)); z-index: 0; }
.voice__photo img { position: relative; z-index: 1; border-radius: var(--r-lg); width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; box-shadow: var(--shadow-lift); }
.voice__bubble { position: absolute; z-index: 2; left: -14px; bottom: 34px; background: var(--pink); color: #fff; font-weight: 700; padding: 12px 18px; border-radius: 18px 18px 18px 4px; box-shadow: 0 14px 30px -12px var(--pink); max-width: 230px; font-size: .98rem; line-height: 1.35; }
.voice__list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; }
.voice__list li { position: relative; background: var(--surface); border-radius: 16px 16px 16px 4px; padding: 14px 18px 14px 52px; box-shadow: var(--shadow); }
.voice__list li::before { content: "“"; position: absolute; left: 14px; top: 2px; font-size: 3rem; line-height: 1; font-weight: 700; color: var(--pink); }
.voice__list li:nth-child(even)::before { color: var(--teal-ink); }

/* myths */
.myths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.myth { position: relative; background: var(--surface); border-radius: var(--r-lg); padding: 30px 28px 28px; display: grid; gap: 10px; align-content: start; box-shadow: var(--shadow); border: 1px solid var(--line); overflow: hidden; }
.myth__tag { justify-self: start; margin: 0; font: 700 .76rem var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: #fff; background: var(--pink); padding: 4px 12px; border-radius: 999px; }
.myth__tag--real { background: var(--teal-ink); margin-top: 14px; }
.myth__claim { margin: 0; font-size: 1.3rem; font-weight: 700; color: var(--muted); padding-right: 96px; }
.myth__stamp { position: absolute; top: 24px; right: 18px; font: 700 .9rem var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--pink); border: 3px solid var(--pink); border-radius: 8px; padding: 6px 10px; transform: rotate(-12deg); background: var(--surface); }
html.anim .myth .myth__stamp { opacity: 0; transform: rotate(-12deg) scale(2.2); }
html.anim .myth.is-in .myth__stamp { animation: stamp .45s .5s cubic-bezier(.3, 1.6, .5, 1) forwards; }
@keyframes stamp { to { opacity: 1; transform: rotate(-12deg) scale(1); } }
.myth h3 { margin: 0; font-size: 1.45rem; color: var(--teal-ink); }
.myth blockquote { margin: 6px 0; padding: 14px 18px; background: var(--pink-soft); border-left: 5px solid var(--pink); border-radius: 10px; }
.myth blockquote p { margin: 0 0 4px; font-size: 1.12rem; font-weight: 700; }
.myth blockquote cite { font-size: .84rem; color: var(--muted); font-style: normal; }

/* courses */
.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: var(--gap); }
.course-card { background: var(--surface); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); transition: transform .35s var(--ease), box-shadow .35s; position: relative; }
.course-card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: linear-gradient(90deg, var(--pink), var(--teal)); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.course-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.course-card:hover::after { transform: scaleX(1); }
.course-card__img { aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(135deg, var(--pink), var(--teal-deep)); position: relative; }
.course-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.course-card:hover .course-card__img img { transform: scale(1.06); }
.course-card__time { position: absolute; left: 14px; top: 14px; background: rgb(255 255 255 / .94); color: #1c2630; font-weight: 700; font-size: .8rem; padding: 4px 10px; border-radius: 999px; }
.course-card__body { padding: 22px 22px 26px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.course-card h3 { margin: 0; }
.course-card h3 a { color: var(--ink); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--pink) 45%, transparent); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.course-card h3 a:hover { color: var(--pink); text-decoration-color: var(--pink); }
.course-card p { margin: 0; color: var(--muted); }
.course-card .btn { align-self: flex-start; margin-top: auto; }
.course-card .parts { margin-top: 4px; }
.parts { list-style: none; padding: 0; margin: 0 0 6px; display: flex; flex-wrap: wrap; gap: 6px; }
.part { font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--teal-soft); color: var(--teal-ink); }
.part--quiz { background: var(--pink-soft); color: var(--pink); }
.meter { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; margin-top: 4px; }
.meter span { display: block; height: 100%; background: linear-gradient(90deg, var(--pink), var(--teal)); border-radius: inherit; transition: width .9s var(--ease); }
.course-card__spacer { flex: 1; }

.course-grid--four { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.course-card__done { position: absolute; right: 14px; top: 14px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--ok); color: #fff; font-weight: 700; box-shadow: 0 6px 14px -6px rgb(0 0 0 / .5); }
.module-done { color: var(--ok); font-weight: 700; margin: 0; }
.test-card { background: linear-gradient(160deg, var(--surface) 55%, var(--pink-soft)); border: 2px dashed color-mix(in srgb, var(--pink) 45%, transparent); }
.test-card__art { aspect-ratio: 16 / 9; display: grid; place-items: center; background: linear-gradient(135deg, var(--teal-deep), var(--teal-darker)); }
.test-card__art svg { width: 38%; height: auto; }
html.anim .test-card__art svg { animation: float 5s ease-in-out infinite; }
.test-card .eyebrow { margin: 0; }
.how { list-style: none; padding: 0; margin: 0 0 32px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.how li { background: var(--blush); border-radius: var(--r); padding: 18px 18px 18px 70px; position: relative; display: grid; gap: 4px; }
.how li span:last-child { color: var(--muted); font-size: .95rem; }
.how__n { position: absolute; left: 18px; top: 18px; width: 38px; height: 38px; border-radius: 50%; background: var(--pink); color: #fff; display: grid; place-items: center; font-weight: 700; }
.how li:nth-child(2) .how__n { background: var(--teal-ink); }
.how li:nth-child(3) .how__n { background: var(--sun); color: #1c2630; }
.mini-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; counter-reset: ms; }
.mini-steps li { position: relative; padding: 10px 12px 10px 44px; border-radius: 10px; background: var(--blush); font-weight: 500; }
.mini-steps li::before { content: ""; position: absolute; left: 12px; top: 50%; translate: 0 -50%; width: 20px; height: 20px; border-radius: 50%; border: 3px solid var(--line); background: var(--surface); }
.mini-steps li.is-done::before { background: var(--ok); border-color: var(--ok); }
.mini-steps li.is-here { outline: 2px solid var(--pink); }
.mini-steps li.is-locked { color: var(--muted); background: transparent; border: 2px dashed var(--line); }
.mini-steps a { color: var(--ink); text-decoration: none; }
.mini-steps a:hover { color: var(--pink); }
.panel h3 { font-size: 1.1rem; margin-top: 18px; }
.small-h { font-size: 1.05rem; margin: 16px 0 8px; color: var(--teal-ink); }
.q__mod { margin: 0 0 4px; font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-ink); }

/* events and the community call */
.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--gap); align-items: stretch; }
.community-cta { position: relative; overflow: hidden; isolation: isolate; color: #fff; border-radius: var(--r-lg); padding: 32px; background: linear-gradient(135deg, var(--pink) 0%, #b8005f 55%, var(--teal-deep) 140%); box-shadow: 0 24px 48px -20px var(--pink); }
.community-cta .eyebrow { color: var(--sun); }
.community-cta h2 { color: #fff; }
.community-cta p { color: #ffe8f3; max-width: 44ch; }
.community-cta__bubbles { position: absolute; right: -20px; bottom: -20px; width: 200px; z-index: -1; opacity: .35; }

.events { display: grid; gap: 14px; margin: 0 0 28px; max-width: 820px; }
.event { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 20px; align-items: start; background: var(--surface); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); transition: transform .3s var(--ease); }
.event:hover { transform: translateX(4px); }
.event__date { display: grid; justify-items: center; background: linear-gradient(160deg, var(--pink), var(--pink-dark)); color: #fff; border-radius: 12px; padding: 10px 4px; line-height: 1.1; box-shadow: 0 10px 20px -10px var(--pink); }
.event__day { font-size: 2rem; font-weight: 700; }
.event__month { font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; }
.event__year { font-size: .78rem; opacity: .9; }
.event h3 { margin: 2px 0 4px; }
.event h3 a { color: var(--ink); }
.event__meta { margin: 0 0 4px; font-weight: 700; color: var(--teal-ink); }
.event p:last-child { margin-bottom: 0; }
.panel { background: var(--surface); border-radius: var(--r); padding: 24px; box-shadow: var(--shadow); }
.panel--quiet { background: var(--blush); box-shadow: none; border: 2px dashed color-mix(in srgb, var(--pink) 35%, transparent); max-width: 820px; }

.sources { padding-block: 40px 56px; font-size: .88rem; color: var(--muted); }
.sources h2 { font-size: 1.05rem; }
.sources ol { padding-left: 1.2em; display: grid; gap: 6px; margin: 0; max-width: 95ch; }
.sources a { color: var(--muted); }

/* ---------- auth ---------- */
.auth-bg { background: radial-gradient(circle at 10% 10%, var(--pink-soft) 0, transparent 40%), radial-gradient(circle at 90% 90%, var(--teal-soft) 0, transparent 45%), var(--blush); }
.auth { display: grid; grid-template-columns: minmax(0, 460px) minmax(0, 340px); gap: var(--gap); justify-content: center; align-items: start; padding-block: 48px 80px; }
.auth--single { grid-template-columns: minmax(0, 480px); }
.auth__card { background: var(--surface); border-radius: var(--r-lg); padding: 34px; box-shadow: var(--shadow-lift); border-top: 6px solid var(--pink); }
.auth__card h1 { font-size: 2rem; color: var(--teal-ink); }
.auth__aside { padding-top: 28px; }
.auth__aside h2 { font-size: 1.4rem; }
.auth__aside .small-h { font-size: 1.15rem; margin-top: 24px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { padding-left: 30px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%; background: var(--teal-soft); }
.ticks li::after { content: ""; position: absolute; left: 6px; top: .5em; width: 8px; height: 5px; border-left: 2.5px solid var(--teal-ink); border-bottom: 2.5px solid var(--teal-ink); transform: rotate(-45deg); }

/* ---------- course ---------- */
.crumbs { display: flex; gap: 8px; flex-wrap: wrap; font-size: .9rem; margin-bottom: 16px; font-weight: 700; }
.crumbs a + a::before { content: "›"; color: var(--muted); margin-right: 8px; }
.course-head__meter { min-width: 180px; display: grid; gap: 4px; background: rgb(255 255 255 / .1); border: 1px solid rgb(255 255 255 / .25); border-radius: var(--r); padding: 16px 18px; }
.course-head__meter .muted { color: #d5eef1; }
.big { font-size: 2.6rem; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); align-items: start; }
.two-col--wide { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.steps { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 12px; }
.step > a, .step.is-locked { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 18px; border-radius: var(--r); background: var(--surface); color: var(--ink); text-decoration: none; box-shadow: var(--shadow); border: 2px solid transparent; transition: border-color .2s, transform .25s var(--ease); }
.step > a:hover { border-color: var(--pink); transform: translateX(4px); color: var(--ink); }
.step.is-locked { opacity: .6; box-shadow: none; border: 2px dashed var(--line); }
.step__num { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--pink-soft); color: var(--pink); font: 700 1.05rem var(--f-body); }
.step.is-done .step__num { background: var(--ok); color: #fff; }
.step__body { display: grid; gap: 2px; min-width: 0; }
.step__body .eyebrow { margin: 0; }
.pill { font-size: .78rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; white-space: nowrap; background: var(--pink-soft); color: var(--pink); }
.pill--done { background: var(--ok-soft); color: var(--ok); }
.pill--locked { background: transparent; color: var(--muted); border: 1px dashed var(--line); white-space: normal; text-align: right; max-width: 160px; }

/* ---------- slide viewer ---------- */
.viewer-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.viewer-head h1 { font-size: clamp(1.5rem, 3vw, 2.2rem); color: var(--teal-ink); }
.viewer { background: var(--scan-bg); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lift); }
.viewer__frame { aspect-ratio: 16 / 9; max-width: 100%; display: grid; place-items: center; position: relative; }
.viewer__frame img { width: 100%; height: 100%; object-fit: contain; display: block; user-select: none; animation: slideIn .35s var(--ease); }
@keyframes slideIn { from { opacity: .3; } }
.slide-links { position: absolute; inset: 0; pointer-events: none; }
.slide-link { position: absolute; display: block; pointer-events: auto; background: transparent; border: 0; padding: 0; border-radius: 6px; cursor: pointer; }
.slide-link:hover { outline: 3px solid var(--sun); outline-offset: 1px; background: rgb(255 201 60 / .14); }
.slide-link:focus-visible { outline: 3px solid var(--sun); outline-offset: 1px; }
.viewer__bar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px; background: var(--surface); border-top: 1px solid var(--line); }
.viewer__bar input[type=range] { width: 100%; accent-color: var(--pink); }
.viewer:fullscreen { display: flex; flex-direction: column; justify-content: center; border-radius: 0; }
.viewer:fullscreen .viewer__frame { flex: none; height: calc(100vh - 76px); width: auto; max-width: 100vw; margin: 0 auto; }
.viewer-foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; margin-top: 18px; align-items: start; }
.notes { background: var(--surface); border-radius: var(--r); padding: 14px 18px; box-shadow: var(--shadow); }
.notes__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 8px; }
.notes__title { margin: 0; font-size: 1.05rem; color: var(--teal-ink); }
.notes__ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.notes__text { max-width: 75ch; }
.notes__text p { margin: 0 0 .7em; }
.notes__text p:last-child { margin-bottom: 0; }
.notes__text [data-s] { border-radius: 4px; transition: background .25s, box-shadow .25s; }
.notes__text .is-reading { background: color-mix(in srgb, var(--sun) 45%, transparent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sun) 45%, transparent); }
/* the Listen button: a teal pill with little sound bars that move while reading */
.listen {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  padding: 8px 18px 8px 10px; border: 0; border-radius: 999px;
  font: 700 .95rem var(--f-body); color: #fff;
  background: linear-gradient(180deg, #0a7d8f, var(--teal-deep));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .25), inset 0 -2px 0 var(--teal-darker), 0 8px 18px -10px rgb(0 86 106 / .7);
  transition: transform .2s var(--ease), filter .2s;
}
.listen:hover { transform: translateY(-1px); filter: brightness(1.08); }
.listen:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.listen.is-on { background: linear-gradient(180deg, #ec1a85, var(--pink-dark)); box-shadow: inset 0 1px 0 rgb(255 255 255 / .3), inset 0 -2px 0 #8c004a, 0 8px 18px -10px rgb(214 0 111 / .7); }
.listen__icon { width: 26px; height: 26px; border-radius: 50%; background: rgb(255 255 255 / .2); display: inline-flex; align-items: center; justify-content: center; gap: 2px; }
.listen__icon i { display: block; width: 3px; height: 8px; border-radius: 2px; background: #fff; }
.listen__icon i:nth-child(2) { height: 13px; }
html.anim .listen.is-on .listen__icon i { animation: bars .9s ease-in-out infinite; }
html.anim .listen.is-on .listen__icon i:nth-child(2) { animation-delay: .15s; }
html.anim .listen.is-on .listen__icon i:nth-child(3) { animation-delay: .3s; }
@keyframes bars { 0%, 100% { transform: scaleY(.6); } 50% { transform: scaleY(1.5); } }
.autoread { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-weight: 500; font-size: .9rem; color: var(--muted); cursor: pointer; }
.autoread input { width: 18px; height: 18px; accent-color: var(--pink); }

/* explore mode (a guide with clickable sections): the box to press next is outlined in pink */
.viewer--explore .viewer__bar[hidden] { display: none !important; }
.viewer__bar--explore { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.viewer__bar--explore [data-next] { margin-left: auto; }
.viewer__step { font-size: .9rem; font-weight: 500; color: var(--muted); }
.viewer__bar--explore .btn { white-space: nowrap; }
@media (max-width: 560px) {
  .viewer__bar--explore { flex-wrap: wrap; }
  .viewer__bar--explore [data-next] { order: -1; flex: 1 1 100%; }
  .viewer__bar--explore .btn { padding: 9px 14px; font-size: .9rem; }
}
.slide-links--explore .slide-link { border-radius: 6px; }
.slide-mute { position: absolute; border-radius: 6px; background: rgb(255 255 255 / .82); pointer-events: none; }
.slide-links--explore .slide-link--next { box-shadow: 0 0 0 4px var(--pink), 0 0 0 8px rgb(214 0 111 / .25); }
html.anim .slide-links--explore .slide-link--next { animation: nextPulse 1.8s ease-in-out infinite; }
@keyframes nextPulse { 0%, 100% { box-shadow: 0 0 0 4px #d6006f, 0 0 0 6px rgb(214 0 111 / .35); } 50% { box-shadow: 0 0 0 4px #d6006f, 0 0 0 14px rgb(214 0 111 / 0); } }
.slide-links--explore .slide-link--next:hover { background: rgb(214 0 111 / .12); }
.slide-links--explore .slide-link.is-done { background: rgb(29 122 70 / .12); }
.viewer-foot .linkish { font-size: .9rem; text-decoration: underline; text-underline-offset: 3px; }
.slide-link__tick { position: absolute; right: -8px; top: -8px; width: 26px; height: 26px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .9rem; box-shadow: 0 4px 10px -4px rgb(0 0 0 / .5); }
.explore { margin-top: 16px; display: grid; gap: 10px; }
.explore__hint { margin: 0; font-weight: 500; color: var(--teal-ink); }
.explore__chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 7px; border-radius: 999px; border: 2px solid var(--line); background: var(--surface); color: var(--ink); font: 500 .92rem var(--f-body); cursor: pointer; transition: border-color .2s, background .2s; }
button.chip:hover { border-color: var(--pink); }
.chip__mark { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--pink-soft); color: var(--pink); font-weight: 700; font-size: .85rem; }
.chip__n { font-size: .8rem; color: var(--muted); }
.chip.is-part { border-color: color-mix(in srgb, var(--pink) 50%, var(--line)); }
.chip.is-done { border-color: var(--ok); background: var(--ok-soft); }
.chip.is-done .chip__mark { background: var(--ok); color: #fff; }
.chip--checks { cursor: default; }
.chip.is-locked { border-style: dashed; color: var(--muted); }

/* ---------- OCT explorer ---------- */
.oct-x { display: grid; gap: 14px; }
.oct-x__bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.seg { display: inline-flex; border: 2px solid var(--line); border-radius: 999px; overflow: hidden; }
.seg button { background: var(--surface); color: var(--ink); border: 0; padding: 7px 14px; font: 700 .88rem var(--f-body); cursor: pointer; }
.seg button + button { border-left: 2px solid var(--line); }
.seg button[aria-pressed="true"] { background: var(--pink); color: var(--accent-ink); }
.oct-x__stage { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.oct-x__scan { background: var(--scan-bg); border-radius: var(--r); overflow: hidden; }
.oct-x__scan svg { display: block; width: 100%; height: auto; }
.oct-x .layer { cursor: pointer; transition: opacity .2s; stroke: none; }
.oct-x .layer:hover { opacity: .85; }
.oct-x .layer:focus { outline: none; }
.oct-x .layer:focus-visible, .oct-x .layer.is-sel { stroke: var(--sun); stroke-width: 2.5; paint-order: stroke; }
.oct-x svg.dim .layer:not(.is-sel) { opacity: .55; }
.oct-x .hit { fill: none; stroke: transparent; stroke-width: 12; cursor: pointer; pointer-events: stroke; }
.oct-x .lumen { fill: #1c1c1c; opacity: .85; }
.oct-x .mk { fill: #cfd8dc; font: 700 15px var(--f-body); letter-spacing: .04em; }
.oct-x .scale { stroke: #fff; stroke-width: 3; }
.oct-x__panel { background: var(--surface); border-radius: var(--r); padding: 18px; min-height: 260px; box-shadow: var(--shadow); }
.oct-x__panel dl { margin: 0 0 12px; display: grid; gap: 4px; }
.oct-x__panel dt { font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }
.oct-x__panel dd { margin: 0; }
.oct-x__panel .target span { display: block; font: 700 .82rem var(--f-body); color: var(--muted); letter-spacing: .02em; margin-bottom: 4px; }
.oct-x__chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.oct-x__chips button { border: 2px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 4px 11px; font: 500 .82rem var(--f-mono); cursor: pointer; }
.oct-x__chips button.seen { border-color: var(--teal); }
.oct-x__chips button[aria-pressed="true"] { background: var(--pink); color: var(--accent-ink); border-color: var(--pink); }
.fb { font-weight: 700; margin: 6px 0; }
.fb.ok { color: var(--ok); }
.fb.no { color: var(--bad); }

/* ---------- quiz ---------- */
.name-gate { max-width: 620px; border-top: 6px solid var(--pink); }
.quiz { display: grid; gap: 16px; max-width: 840px; }
.q { border-radius: var(--r); background: var(--surface); padding: 20px; margin: 0; min-width: 0; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 4px 14px; box-shadow: var(--shadow); border: 2px solid transparent; transition: border-color .3s; }
.q__n { width: 34px; height: 34px; border-radius: 50%; background: var(--pink-soft); color: var(--pink); font: 700 .95rem/34px var(--f-body); text-align: center; }
.q__body { min-width: 0; }
.q .qfb { grid-column: 2; }
.q.is-right { border-color: var(--ok); }
.q.is-wrong { border-color: var(--bad); }

/* ---------- question formats (assets/questions.js) ---------- */
.qx { min-width: 0; }
.qx__stem { font-weight: 700; font-size: 1.08rem; margin: 2px 0 2px; }
.qx__how { font-size: .88rem; color: var(--muted); margin: 0 0 10px; }
.qbank { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px; min-height: 56px; border: 2px dashed var(--line); border-radius: 12px; background: var(--blush); margin: 10px 0 0; }
.qbank:empty::after { content: "All placed"; color: var(--muted); font-size: .88rem; align-self: center; }
.qbank--stack { flex-direction: column; }
.qchip {
  font: 500 .97rem/1.4 var(--f-body); color: var(--ink); text-align: left;
  background: var(--surface); border: 2px solid var(--line); border-radius: 10px;
  padding: 9px 13px; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none;
  box-shadow: 0 2px 0 var(--line); max-width: 100%; transition: border-color .15s, transform .15s;
}
.qchip:hover { border-color: var(--pink); transform: translateY(-1px); }
.qchip.is-picked { border-color: var(--pink); background: var(--pink-soft); box-shadow: 0 0 0 3px var(--pink-soft); }
.qchip.is-right { border-color: var(--ok); background: var(--ok-soft); }
.qchip.is-wrong { border-color: var(--bad); background: var(--bad-soft); }
.qchip.is-dragging { opacity: .3; }
.qghost { position: fixed; z-index: 50; pointer-events: none; opacity: .95; box-shadow: 0 14px 30px rgb(0 0 0 / .25); cursor: grabbing; transform: rotate(-2deg); }
.qzone { min-height: 46px; border: 2px dashed var(--line); border-radius: 10px; padding: 3px; display: flex; align-items: stretch; transition: border-color .15s, background .15s; min-width: 0; }
.qzone .qchip { width: 100%; }
.qzone.is-over, .qzone.is-target { border-color: var(--pink); background: var(--pink-soft); }
.qzone:empty { cursor: pointer; }
.qzone:empty::before { content: attr(data-hint); color: var(--muted); font-size: .86rem; align-self: center; padding: 0 8px; }
.qbox .qzone { min-height: 62px; }
.qorder { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.qorder li { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 10px; align-items: center; }
.qorder li > span { font-size: .82rem; color: var(--muted); text-align: right; }
.qorder li:first-child > span, .qorder li:last-child > span { color: var(--ink); font-weight: 700; }
.qmatch { display: grid; gap: 8px; }
.qmatch__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 10px; align-items: center; }
.qmatch__row > strong { font-weight: 700; font-size: .97rem; }
.qstatements { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.qstatements button {
  width: 100%; text-align: left; font: 400 .98rem/1.45 var(--f-body); color: var(--ink);
  background: var(--surface); border: 2px solid var(--line); border-radius: 10px; padding: 11px 14px; cursor: pointer;
  display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 8px; transition: border-color .15s;
}
.qstatements button b { color: var(--pink); }
.qstatements button:hover { border-color: var(--pink); }
.qstatements button[aria-pressed="true"] { border-color: var(--pink); background: var(--pink-soft); }
.qstatements button.is-right { border-color: var(--ok); background: var(--ok-soft); }
.qstatements button.is-wrong { border-color: var(--bad); background: var(--bad-soft); }
.qsentence { font-size: 1.12rem; line-height: 2.1; margin: 4px 0; }
.qsentence button { font: inherit; color: inherit; background: none; border: 0; border-radius: 4px; padding: 0 2px; margin: 0; cursor: pointer; }
.qsentence button:hover { background: var(--pink-soft); }
.qsentence button[aria-pressed="true"] { background: var(--pink); color: #fff; }
.qsentence button.is-right { background: var(--ok); color: #fff; }
.qsentence button.is-wrong { background: var(--bad); color: #fff; }
.qx.is-locked .qchip, .qx.is-locked button { cursor: default; }
.qx.is-locked .qbank { display: none; }
.qfb { border-radius: 10px; padding: 12px 16px; font-size: .96rem; display: grid; gap: 6px; animation: viewIn .35s var(--ease); }
.qfb:empty { display: none; }
.qfb.ok { background: var(--ok-soft); color: var(--ok); }
.qfb.no { background: var(--bad-soft); color: var(--bad); }
.qfb span { color: var(--ink); }
.qfb .row { margin-top: 4px; }

/* checkpoint shown inside the slide frame */
.viewer__frame.is-cp { aspect-ratio: auto !important; min-height: 0; display: block; background: var(--surface); }
.checkpoint { padding: clamp(18px, 3vw, 34px); max-width: 780px; margin: 0 auto; animation: viewIn .4s var(--ease); }
.checkpoint__foot { display: grid; gap: 10px; margin-top: 14px; justify-items: start; }
.checkpoint__foot .qfb { width: 100%; }

.quiz__foot { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; position: sticky; bottom: env(safe-area-inset-bottom, 0px); background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(8px); padding: 14px 0; border-top: 1px solid var(--line); }
.quiz__foot [data-err] { flex-basis: 100%; order: 3; }
.quiz__foot [data-err]:empty { display: none; }
.result { margin-top: 24px; border-radius: var(--r-lg); padding: 28px; max-width: 800px; animation: viewIn .5s var(--ease); }
.result h2 { font-size: 3rem; margin: 0 0 6px; font-variant-numeric: tabular-nums; }
.result--pass { background: linear-gradient(135deg, var(--ok-soft), var(--teal-soft)); border: 2px solid var(--ok); }
.result--pass .eyebrow { color: var(--ok); }
.result--fail { background: var(--bad-soft); border: 2px solid var(--bad); }
.result--fail .eyebrow { color: var(--bad); }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 60; overflow: hidden; }
.confetti i { position: absolute; top: -12px; width: 10px; height: 14px; border-radius: 2px; animation: fall 2.6s ease-in forwards; }
@keyframes fall { to { transform: translateY(105vh) rotate(720deg); opacity: .8; } }

/* ---------- certificates ---------- */
.cert-frame { background: var(--surface); border-radius: var(--r-lg); padding: clamp(10px, 2vw, 22px); margin: 8px 0 18px; overflow-x: auto; box-shadow: var(--shadow); }
.cert-svg { display: block; width: 100%; height: auto; min-width: 560px; box-shadow: 0 1px 2px rgb(0 0 0 / .08), 0 10px 34px rgb(0 0 0 / .1); }
.cert-svg .c-eyebrow { font: 700 22px var(--f-body); letter-spacing: 4px; fill: #d6006f; text-transform: uppercase; }
.cert-svg .c-title { font: 700 58px var(--f-body); fill: #00566a; }
.cert-svg .c-small { font: 400 22px var(--f-body); fill: #56626c; }
.cert-svg .c-name { font: italic 700 54px Georgia, "Times New Roman", serif; fill: #1c2630; }
.cert-svg .c-course { font: 700 32px var(--f-body); fill: #1c2630; }
.cert-svg .c-sig { font: 700 20px var(--f-body); fill: #1c2630; }
.cert-svg .c-tiny { font: 400 16px var(--f-body); fill: #56626c; }
.cert-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.cert-list li { display: grid; gap: 2px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.verify { border-radius: 12px; padding: 16px 18px; margin-top: 16px; animation: viewIn .4s var(--ease); }
.verify--ok { background: var(--ok-soft); border-left: 5px solid var(--ok); }
.verify--ok .eyebrow { color: var(--ok); }
.verify--no { background: var(--bad-soft); border-left: 5px solid var(--bad); }
.verify--no .eyebrow { color: var(--bad); }

/* ---------- community ---------- */
.choice { border: 0; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; }
.choice legend { font-weight: 700; font-size: .95rem; margin-bottom: 6px; padding: 0; }
.choice label, label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin: 0; font-size: 1rem; }
label.check { margin-top: 16px; }
.choice input, label.check input { margin-top: 5px; accent-color: var(--pink); width: 18px; height: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
#f-com .btn { margin-top: 18px; }
.tips { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 12px; }
.tip { background: var(--surface); border-radius: 16px 16px 16px 4px; padding: 16px 18px; box-shadow: var(--shadow); border-left: 5px solid var(--teal); }
.tip:nth-child(even) { border-left-color: var(--pink); }
.tip p { margin: 0 0 6px; }
.tip .eyebrow { margin-bottom: 4px; color: var(--teal-ink); }
.tip__credit { font-size: .84rem; color: var(--muted); margin: 0 !important; }

/* ---------- statistics (editor only) ---------- */
.periods { display: inline-flex; flex-wrap: wrap; gap: 6px; background: rgb(255 255 255 / .12); padding: 5px; border-radius: 999px; margin-top: 18px; }
.periods a { color: #fff; text-decoration: none; font-weight: 700; padding: 6px 14px; border-radius: 999px; }
.periods a:hover { background: rgb(255 255 255 / .16); color: #fff; }
.periods a[aria-current="true"] { background: #fff; color: var(--teal-deep); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; margin: 0 0 14px; }
.tile { background: var(--surface); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); border-top: 5px solid var(--pink); display: grid; gap: 4px; }
.tile:nth-child(3n+2) { border-top-color: var(--teal); }
.tile:nth-child(3n) { border-top-color: var(--sun); }
.tile__n { font-size: 2.2rem; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; color: var(--ink); }
.tile__l { font-size: .9rem; color: var(--muted); }
.tile__sub { font-size: .8rem; color: var(--teal-ink); font-weight: 700; }
.stat-block { margin-top: 44px; }
.stat-block h2 { font-size: 1.5rem; }
.table-wrap { overflow-x: auto; background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); }
.data { width: 100%; border-collapse: collapse; font-size: .95rem; }
.data th, .data td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.data th { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); background: var(--blush); }
.data tr:last-child td { border-bottom: 0; }
.data .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.data tbody tr:hover td { background: var(--blush); }
.chart { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); padding: 18px 18px 10px; }
.chart svg { display: block; width: 100%; height: auto; }
.chart .bar-a { fill: var(--pink); }
.chart .bar-b { fill: var(--teal); }
.chart .axis { stroke: var(--line); }
.chart text { fill: var(--muted); font: 12px var(--f-body); }
.chart .bar-a, .chart .bar-b { transform-box: fill-box; transform-origin: bottom; }
html.anim .chart.is-in .bar-a, html.anim .chart.is-in .bar-b { animation: grow .8s var(--ease) both; }
@keyframes grow { from { transform: scaleY(0); } }
.legend { display: flex; gap: 18px; font-size: .88rem; color: var(--muted); margin-top: 6px; flex-wrap: wrap; }
.legend span::before { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; background: var(--pink); }
.legend span + span::before { background: var(--teal); }

/* ---------- scroll reveal (only when animation is allowed) ---------- */
html.anim .rv { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0ms); }
html.anim .rv.is-in { opacity: 1; transform: none; }
html.anim .rv--left { transform: translateX(-30px); }
html.anim .rv--right { transform: translateX(30px); }
html.anim .rv--zoom { transform: scale(.94); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: minmax(0, 1fr); }
  .hero__art { max-width: 420px; justify-self: center; width: 100%; order: -1; margin-bottom: -10px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .voice, .myths, .split, .how { grid-template-columns: minmax(0, 1fr); }
  .voice__photo { max-width: 360px; }
  .phead__inner { grid-template-columns: minmax(0, 1fr); }
  .phead__img { display: none; }
  .foot__inner { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 820px) {
  .two-col, .two-col--wide, .oct-x__stage, .auth, .viewer-foot { grid-template-columns: minmax(0, 1fr); }
  .auth__aside { padding-top: 0; }
  .oct-x__panel { min-height: 0; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .stats { grid-template-columns: minmax(0, 1fr); }
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .event { grid-template-columns: 64px minmax(0, 1fr); gap: 14px; }
  .qmatch__row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .qorder li { grid-template-columns: 70px minmax(0, 1fr); }
  .q { grid-template-columns: minmax(0, 1fr); padding: 16px 14px; }
  .q .qfb { grid-column: 1; }
  .step > a, .step.is-locked { grid-template-columns: 40px minmax(0, 1fr); }
  .step__num { width: 40px; height: 40px; }
  .step .pill { grid-column: 2; justify-self: start; text-align: left; max-width: none; }
  .viewer__bar { grid-template-columns: 1fr 1fr; }
  .viewer__bar input[type=range] { grid-column: 1 / -1; grid-row: 1; }
  .top__nav { gap: 4px 14px; font-size: .95rem; }
  .brand__mark { width: 40px; height: 40px; }
  .brand__name b { font-size: 1.12rem; }
  .brand__name { font-size: .85rem; }
  .myth__claim { padding-right: 0; padding-top: 34px; }
  .auth__card { padding: 24px; }
  .scale-banner p { padding: 22px; }
  .community-cta { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  html { scroll-behavior: auto; }
}

/* ---------- designed pages (Module 2: the quick guide) ---------- */
.viewer__frame.is-doc { aspect-ratio: auto !important; display: block; background: var(--surface); }
.sdoc[hidden] { display: none; }
.sdoc { color: var(--ink); width: 100%; justify-self: stretch; }
.sdoc-page { padding: clamp(20px, 3.4vw, 44px); max-width: 1020px; margin: 0 auto; animation: viewIn .4s var(--ease); }
.sdoc-head { margin-bottom: clamp(16px, 2.4vw, 26px); max-width: 62ch; }
.sdoc-kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 10px; padding: 5px 12px; border-radius: 999px;
  background: var(--pink-soft); color: var(--pink-dark); font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.sdoc-title { margin: 0; font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem); line-height: 1.15; color: var(--teal-deep); letter-spacing: -.01em; }
:root[data-theme="dark"] .sdoc-title { color: var(--teal-ink); }
.sdoc-title::after { content: ""; display: block; width: 56px; height: 4px; border-radius: 4px; background: var(--pink); margin-top: 14px; }
.sdoc-lead { margin: 14px 0 0; font-size: clamp(1.02rem, .96rem + .3vw, 1.15rem); line-height: 1.6; color: var(--muted); }

.sdoc-grid { display: grid; gap: clamp(14px, 1.8vw, 20px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.sdoc-page--four .sdoc-grid { display: block; columns: 2 340px; column-gap: clamp(14px, 1.8vw, 20px); }
.sdoc-page--four .sdoc-group { break-inside: avoid; margin-bottom: clamp(14px, 1.8vw, 20px); display: inline-block; width: 100%; }
.sdoc-group { background: var(--blush); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(16px, 2vw, 22px);
  border-top: 4px solid var(--teal); }
html.anim .sdoc-group { animation: sdocUp .45s var(--ease) both; animation-delay: calc(var(--i) * 70ms); }
@keyframes sdocUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.sdoc-group h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 1.08rem; line-height: 1.3; color: var(--teal-deep); }
:root[data-theme="dark"] .sdoc-group h3 { color: var(--teal-ink); }
.sdoc-ic { flex: none; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--teal-soft); color: var(--teal-ink); }
.sdoc-ic svg { width: 20px; height: 20px; }
.sdoc-group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.sdoc-group li { position: relative; padding-left: 20px; font-size: 1rem; line-height: 1.55; }
.sdoc-group li::before { content: ""; position: absolute; left: 3px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--pink); }
.sdoc-group li.sdoc-li--head { padding-left: 0; }
.sdoc-group li.sdoc-li--head::before { display: none; }
.sdoc-group li strong { color: var(--ink); font-weight: 700; }
.sdoc-say { padding: 12px 14px 12px 40px !important; margin: 2px 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px 14px 14px 4px;
  box-shadow: 0 6px 16px -10px rgb(0 86 106 / .35); }
.sdoc-say::before { display: none; }
.sdoc-say__mark { position: absolute; left: 12px; top: 2px; font-size: 2rem; line-height: 1; color: var(--pink); font-family: Georgia, serif; }
.sdoc-say q { quotes: none; font-style: italic; color: var(--ink); }
.sdoc-key { display: flex; align-items: center; gap: 12px; margin: clamp(16px, 2vw, 22px) 0 0; padding: 14px 18px; border-radius: var(--r);
  background: var(--teal-deep); color: #fff; font-weight: 600; line-height: 1.45; }
.sdoc-key .sdoc-ic { background: rgb(255 255 255 / .14); color: var(--sun); }
.sdoc-next { margin: 18px 0 0; color: var(--muted); font-size: .95rem; }
.sdoc-next::before { content: "→ "; color: var(--pink); font-weight: 700; }

/* the guide: four section cards */
.sdoc-hub { display: grid; gap: clamp(14px, 2vw, 22px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.sdoc-card { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; gap: 10px; padding: clamp(18px, 2.2vw, 24px);
  border-radius: var(--r-lg); background: linear-gradient(160deg, var(--teal-deep), var(--teal-darker)); color: #fff;
  box-shadow: var(--shadow); transition: transform .2s var(--ease), box-shadow .2s var(--ease); position: relative; }
.sdoc-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.sdoc-card:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }
.sdoc-card__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sdoc-card .sdoc-ic { width: 42px; height: 42px; border-radius: 12px; background: rgb(255 255 255 / .14); color: #fff; }
.sdoc-card .sdoc-ic svg { width: 24px; height: 24px; }
.sdoc-card__state { font-size: .8rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: rgb(255 255 255 / .14); }
.sdoc-card__name { font-size: clamp(1.25rem, 1.05rem + .8vw, 1.6rem); font-weight: 700; line-height: 1.2; }
.sdoc-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 5px; color: rgb(255 255 255 / .88); font-size: .97rem; line-height: 1.45; }
.sdoc-card li { padding-left: 16px; position: relative; }
.sdoc-card li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--sun); }
.sdoc-card__go { margin-top: auto; padding-top: 8px; font-weight: 700; color: var(--sun); }
.sdoc-card.is-next { box-shadow: 0 0 0 4px var(--pink), 0 0 0 8px rgb(214 0 111 / .25), var(--shadow); }
html.anim .sdoc-card.is-next { animation: nextPulse 1.8s ease-in-out infinite; }
.sdoc-card.is-done { background: linear-gradient(160deg, #2a7a5a, #1d5c45); }
.sdoc-card.is-done .sdoc-card__state { background: #fff; color: #1d5c45; }
.sdoc-page .sdoc-hub + .sdoc-grid { margin-top: 20px; }

.viewer:fullscreen .viewer__frame.is-doc { height: calc(100vh - 76px); width: 100%; overflow: auto; }
@media (max-width: 560px) {
  .sdoc-page { padding: 18px 16px 22px; }
  .sdoc-group li { font-size: .98rem; }
}
