/* anatomymax.app — shared styles. Brand: docs/BRAND_GLOVE.md (nitrile blue, bone ivory, coral, gold only for rewards;
   Latin terms always in an italic serif). Layout follows seocontrol.app: centred hero with the device, cards, FAQ. */

@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/assets/fonts/manrope-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/assets/fonts/manrope-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 600; font-display: swap; src: url(/assets/fonts/cormorant-italic-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 600; font-display: swap; src: url(/assets/fonts/cormorant-italic-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  color-scheme: light;
  --bg: #F5F8FD;
  --surface: #FFFFFF;
  --tint: #EAF1FC;
  --tint-2: #E3EDFC;
  --line: #DCE6F5;
  --line-2: #C9D8F0;
  --ink: #13213A;
  --ink-2: #2B3A55;
  --muted: #4A5A75;
  --faint: #6B7A93;
  --navy: #16305F;
  --blue: #3A73D6;
  --blue-ink: #2A5DB8;
  --blue-2: #5B93EE;
  --blue-soft: #EEF4FD;
  --bone: #F2E8D5;
  --bone-ink: #7A6A4C;
  --coral: #E8604C;
  --coral-ink: #B23A28;
  --coral-soft: #FDECE8;
  --vein: #5B5BD6;
  --gold: #F5C451;
  --gold-ink: #8A6A10;
  --gold-soft: #FCF3D9;
  --teal: #17808F;
  --teal-2: #1F9AAE;
  --teal-soft: #E2F4F6;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r: 20px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --shadow: 0 1px 2px rgba(22, 48, 95, 0.06), 0 10px 30px rgba(22, 48, 95, 0.08);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: var(--blue-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--blue-2); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { color: var(--navy); margin: 0; letter-spacing: -0.02em; line-height: 1.12; }
h1 { font-size: clamp(40px, 6.4vw, 72px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; }
h2 { font-size: clamp(30px, 4.2vw, 46px); font-weight: 800; }
h3 { font-size: 20px; font-weight: 800; letter-spacing: -0.01em; }
p { margin: 0; }
.la { font-family: var(--serif); font-style: italic; font-weight: 600; letter-spacing: 0; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- header ---------- */
.site-head { position: sticky; top: 0; z-index: 40; background: rgba(245, 248, 253, 0.86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-head.is-scrolled { border-bottom-color: var(--line); }
.head-in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--navy); font-weight: 800; font-size: 18px; letter-spacing: -0.02em; text-decoration: none; }
.brand svg { width: 30px; height: 34px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 600; padding: 8px 12px; border-radius: 10px; }
.nav a:hover { background: var(--blue-soft); color: var(--navy); }
.nav a[aria-current="page"] { color: var(--navy); background: var(--tint-2); }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; background: none; border-radius: 12px; cursor: pointer; position: relative; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { position: absolute; left: 12px; width: 20px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; content: ""; }
.menu-btn span { top: 21px; }
.menu-btn span::before { left: 0; top: -6px; }
.menu-btn span::after { left: 0; top: 6px; }
.is-menu .menu-btn span { background: transparent; }
.is-menu .menu-btn span::before { transform: translateY(6px) rotate(45deg); }
.is-menu .menu-btn span::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 760px) {
  .menu-btn { display: block; }
  .nav { position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 16px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 16px 30px rgba(22, 48, 95, .08); display: none; }
  .is-menu .nav { display: flex; }
  .nav a { padding: 14px 12px; font-size: 17px; }
}

/* ---------- buttons, badges ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 20px; border-radius: 14px; border: 0; background: var(--blue); color: #fff; font-weight: 800; font-size: 16px; text-decoration: none; cursor: pointer; transition: background .2s, transform .15s; }
.btn:hover { background: var(--blue-ink); color: #fff; }
.btn:active { transform: scale(.98); }
.btn-quiet { background: var(--surface); color: var(--navy); border: 1px solid var(--line-2); }
.btn-quiet:hover { background: var(--blue-soft); color: var(--navy); }
.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 14px; }
.store { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 18px 0 14px; border-radius: 14px; background: var(--navy); color: #fff; text-decoration: none; }
.store svg { width: 24px; height: 24px; flex-shrink: 0; }
.store span { display: flex; flex-direction: column; line-height: 1.1; font-weight: 800; font-size: 17px; text-align: left; }
.store small { font-size: 11px; font-weight: 600; opacity: .8; letter-spacing: .01em; }
.store.alt { background: var(--surface); color: var(--navy); border: 1px solid var(--line-2); }
.link-more { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: 16px; text-decoration: none; padding: 10px 6px; }
.link-more svg { width: 18px; height: 18px; transition: transform .2s; }
.link-more:hover svg { transform: translateX(3px); }
.pill { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 13px; font-size: 13px; font-weight: 800; white-space: nowrap; }
.pill.b { background: var(--blue-soft); color: var(--blue-ink); }
.pill.t { background: var(--teal-soft); color: var(--teal); }
.pill.g { background: var(--gold-soft); color: var(--gold-ink); }
.pill.c { background: var(--coral-soft); color: var(--coral-ink); }
.pill.n { background: #EEF1F6; color: var(--muted); }

/* ---------- hero ---------- */
.hero { position: relative; padding: 56px 0 24px; text-align: center; overflow: hidden; }
.hero::before { content: ""; position: absolute; left: 50%; top: 360px; width: 1100px; height: 900px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(91, 147, 238, .22), rgba(91, 147, 238, 0)); pointer-events: none; }
.hero-copy { position: relative; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.hero h1 { max-width: 900px; }
.lead { font-size: clamp(18px, 2.1vw, 21px); line-height: 1.55; color: var(--ink-2); max-width: 720px; }
.hero .cta { margin-top: 6px; }
.page-hero { padding: 64px 0 40px; text-align: center; }
.page-hero .hero-copy { gap: 18px; }

/* ---------- fold device ---------- */
.fold-zone { position: relative; margin-top: 44px; }
.fold-stage { position: relative; width: 100%; max-width: 640px; margin: 0 auto; }
.fold { position: absolute; left: 0; top: 0; width: 600px; height: 660px; transform-origin: 0 0; }
.fold-body { position: relative; width: 600px; height: 660px; perspective: 2600px; perspective-origin: 300px 50%; transform-style: preserve-3d; }
.half, .leaf { position: absolute; top: 0; width: 300px; height: 660px; }
.half { left: 0; background: #1A1D24; border-radius: 26px 0 0 26px; padding: 9px 0 9px 9px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), 0 30px 60px rgba(22, 48, 95, .18); }
.leaf { left: 300px; transform-origin: 0 50%; transform-style: preserve-3d; }
.face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; background: #1A1D24; }
.face-front { border-radius: 0 26px 26px 0; padding: 9px 9px 9px 0; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), 0 30px 60px rgba(22, 48, 95, .18); }
.face-back { transform: rotateY(180deg); border-radius: 30px; padding: 8px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 30px 60px rgba(22, 48, 95, .22); }
.face .shade, .half .shade { position: absolute; inset: 0; border-radius: inherit; background: #000; opacity: 0; pointer-events: none; }
.scr { position: relative; width: 100%; height: 100%; overflow: hidden; background: var(--bg); color: var(--ink); font-family: var(--sans); text-align: left; }
.scr-l { border-radius: 18px 0 0 18px; }
.scr-r { border-radius: 0 18px 18px 0; }
.scr-c { border-radius: 23px; }
.crease { position: absolute; left: 299px; top: 9px; bottom: 9px; width: 2px; background: linear-gradient(90deg, rgba(19, 33, 58, .06), rgba(255, 255, 255, .5), rgba(19, 33, 58, .06)); z-index: 3; pointer-events: none; }
.cam { position: absolute; width: 11px; height: 11px; border-radius: 50%; background: #0B0D12; box-shadow: inset 0 0 0 2px #232833; z-index: 6; }
.sbar { position: absolute; left: 0; right: 0; top: 0; height: 30px; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; font-size: 12px; font-weight: 800; color: var(--ink); z-index: 5; pointer-events: none; }
.sbar i { display: inline-flex; gap: 4px; align-items: center; }
.sbar b { display: inline-block; width: 22px; height: 11px; border-radius: 3px; border: 1.5px solid var(--ink); position: relative; }
.sbar b::after { content: ""; position: absolute; left: 1.5px; top: 1.5px; bottom: 1.5px; width: 70%; background: var(--ink); border-radius: 1px; }
.fold-view { display: flex; justify-content: center; gap: 6px; margin-top: 18px; }
.fold-view button { height: 40px; padding: 0 14px; border: 0; background: none; border-radius: 10px; color: var(--faint); font-weight: 700; font-size: 15px; cursor: pointer; position: relative; }
.fold-view button[aria-pressed="true"] { color: var(--navy); }
.fold-view button[aria-pressed="true"]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 2px; border-radius: 1px; background: var(--navy); }
.fold-note { margin-top: 6px; font-size: 13px; color: var(--faint); text-align: center; }
.fold-fallback { display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--muted); }

/* in-device app UI (device px) */
.app { position: absolute; inset: 0; font-size: 13px; line-height: 1.35; }
.v3d { position: absolute; inset: 0; background: radial-gradient(120% 70% at 50% 42%, #FFFFFF 0%, #E9F1FD 55%, #D9E6FA 100%); }
.v3d canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; touch-action: none; cursor: grab; }
.v3d canvas:active { cursor: grabbing; }
.v3d-chip { position: absolute; height: 28px; padding: 0 10px; border-radius: 14px; background: rgba(255, 255, 255, .92); display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--blue-ink); box-shadow: 0 2px 8px rgba(22, 48, 95, .08); pointer-events: none; z-index: 2; }
.v3d-chip svg { width: 15px; height: 15px; }
.v3d-chip.tl { left: 12px; top: 40px; color: var(--muted); }
.v3d-chip.bl { left: 12px; bottom: 14px; }
.v3d-label { position: absolute; left: 12px; right: 12px; bottom: 50px; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .95); box-shadow: 0 6px 18px rgba(22, 48, 95, .12); z-index: 2; opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s var(--ease); pointer-events: none; }
.v3d-label.on { opacity: 1; transform: none; }
.v3d-label .la { display: block; font-size: 20px; color: var(--navy); line-height: 1.1; }
.v3d-label span { font-size: 12px; color: var(--muted); }
.v3d-load { position: absolute; left: 50%; top: 50%; width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--blue); animation: spin 0.9s linear infinite; z-index: 1; }
.v3d.ready .v3d-load { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.les { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 38px 14px 14px; }
.les-top { display: flex; align-items: center; gap: 8px; }
.les-x { width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; color: var(--faint); flex-shrink: 0; }
.les-x svg { width: 18px; height: 18px; }
.les-bar { flex: 1; height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.les-bar i { display: block; height: 100%; border-radius: 4px; background: var(--blue); transition: width .5s var(--ease); }
.hearts { display: flex; gap: 2px; }
.hearts svg { width: 17px; height: 17px; transition: transform .3s, opacity .3s; }
.hearts svg.lost { opacity: .22; transform: scale(.8); filter: grayscale(1); }
.les-body { flex: 1; display: flex; flex-direction: column; gap: 10px; margin-top: 18px; min-height: 0; }
.les-q { font-size: 20px; font-weight: 800; color: var(--navy); letter-spacing: -0.01em; line-height: 1.15; }
.les-sub { font-size: 13px; color: var(--muted); }
.opts { display: grid; gap: 8px; margin-top: 4px; }
.opt { position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 0; min-height: 52px; padding: 7px 12px; border-radius: 14px; border: 2px solid var(--line); background: var(--surface); text-align: left; cursor: pointer; transition: border-color .2s, background .2s, transform .15s; }
.opt:hover { border-color: var(--line-2); }
.opt .la { font-size: 19px; color: var(--navy); line-height: 1.1; }
.opt small { font-size: 11.5px; color: var(--muted); }
.opt.sel { border-color: var(--blue); background: var(--blue-soft); }
.opt.ok { border-color: var(--teal-2); background: var(--teal-soft); }
.opt.bad { border-color: var(--coral); background: var(--coral-soft); animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }
.les-btn { height: 44px; border-radius: 13px; border: 0; background: var(--blue); color: #fff; font-weight: 800; font-size: 15px; cursor: pointer; margin-top: auto; flex-shrink: 0; }
.les-btn[disabled] { background: #C9D5EA; cursor: default; }
.speak { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 16px; background: var(--surface); border: 2px solid var(--line); cursor: pointer; text-align: left; }
.speak .sp { width: 44px; height: 44px; border-radius: 50%; background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.speak .sp svg { width: 22px; height: 22px; }
.speak .wave { display: flex; align-items: center; gap: 3px; height: 26px; }
.speak .wave i { width: 3px; border-radius: 2px; background: var(--blue-2); height: 6px; }
.speak.on .wave i { animation: wave .9s ease-in-out infinite; animation-delay: calc(var(--i) * 60ms); }
@keyframes wave { 50% { height: 24px; } }
.target { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 16px; background: var(--surface); border: 2px dashed var(--line-2); }
.target .la { font-size: 24px; color: var(--navy); }
.target span { font-size: 12.5px; color: var(--muted); }
.tip { font-size: 12.5px; color: var(--muted); display: flex; gap: 8px; align-items: flex-start; }
.tip svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--blue); }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 14px 14px; border-radius: 20px 20px 0 0; background: var(--teal-soft); transform: translateY(105%); transition: transform .35s var(--ease); z-index: 4; display: flex; flex-direction: column; gap: 6px; }
.sheet.on { transform: none; }
.sheet.bad { background: var(--coral-soft); }
.sheet h4 { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 800; color: var(--teal); }
.sheet.bad h4 { color: var(--coral-ink); }
.sheet h4 svg { width: 22px; height: 22px; }
.sheet .la { font-size: 22px; color: var(--navy); line-height: 1.1; }
.sheet p { font-size: 12.5px; color: var(--ink-2); }
.sheet .les-btn { margin-top: 6px; background: var(--teal); }
.sheet.bad .les-btn { background: var(--coral-ink); }
.tap { position: absolute; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; background: rgba(58, 115, 214, .28); border: 2px solid rgba(58, 115, 214, .7); pointer-events: none; z-index: 9; animation: tap .7s var(--ease) forwards; }
@keyframes tap { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }
.res { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; padding: 44px 16px 16px; gap: 8px; text-align: center; }
.res .max { width: 150px; height: 178px; margin-top: 8px; transform-origin: 50% 90%; }
.res .max.puff { animation: puff 1.1s var(--ease) both; }
@keyframes puff { 0% { transform: scale(.55); } 45% { transform: scale(1.12, 1.06); } 70% { transform: scale(.97); } 100% { transform: scale(1); } }
.res h4 { margin: 0; font-size: 22px; font-weight: 800; color: var(--navy); }
.stats { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 4px; }
.stat { padding: 8px 10px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); text-align: left; }
.stat small { display: block; font-size: 11px; color: var(--muted); font-weight: 700; }
.stat b { font-size: 18px; color: var(--navy); }
.stat.xp b { color: var(--blue-ink); }
.stat.cr b { color: var(--teal); }
.confetti { position: absolute; inset: 0; pointer-events: none; z-index: 8; }

/* cover screen (folded) */
.cov { position: absolute; inset: 0; padding: 36px 12px 12px; display: flex; flex-direction: column; gap: 10px; }
.cov-top { display: flex; align-items: center; justify-content: space-between; }
.cov-top h5 { margin: 0; font-size: 22px; font-weight: 800; color: var(--navy); letter-spacing: -0.02em; }
.ctr { display: flex; gap: 4px; }
.ctr span { height: 26px; padding: 0 7px 0 5px; border-radius: 13px; display: inline-flex; align-items: center; gap: 2px; font-size: 12px; font-weight: 800; }
.ctr svg { width: 15px; height: 15px; }
.ctr .p { background: var(--coral-soft); color: #9E3322; }
.ctr .e { background: var(--gold-soft); color: #6E5410; }
.ctr .k { background: #E6EFFC; color: #1F4C9E; }
.day { position: relative; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); padding: 12px; overflow: hidden; min-height: 150px; }
.day small { font-size: 11px; font-weight: 800; color: var(--blue-ink); }
.day b { display: block; font-size: 22px; font-weight: 800; color: var(--navy); line-height: 1.1; margin-top: 2px; }
.day .la { font-size: 17px; color: var(--ink); }
.day .prog { position: relative; z-index: 1; margin-top: 30px; width: 54%; font-size: 11px; color: var(--muted); }
.day .prog i { display: block; height: 5px; border-radius: 3px; background: var(--line); margin-top: 4px; overflow: hidden; }
.day .prog i::after { content: ""; display: block; width: 33%; height: 100%; background: var(--blue); border-radius: 3px; }
.day .skull2d { position: absolute; right: -6px; top: 10px; width: 126px; height: auto; }
.path { position: relative; flex: 1; display: flex; flex-direction: column; gap: 6px; padding-left: 34px; min-height: 0; }
.path::before { content: ""; position: absolute; left: 15px; top: 4px; height: 92px; width: 2px; background: repeating-linear-gradient(180deg, var(--blue) 0 6px, transparent 6px 12px); }
.path::after { content: ""; position: absolute; left: 15px; top: 150px; bottom: 60px; width: 0; border-left: 2px dashed var(--vein); opacity: .7; }
.step { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 40px; }
.step div { min-width: 0; }
.step p { font-size: 13px; font-weight: 700; color: var(--ink); line-height: 1.2; }
.step .la { display: block; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.step.lock p { color: var(--faint); }
.step.lock svg { width: 16px; height: 16px; color: #8A9AB5; flex-shrink: 0; }
.step .rv { font-size: 11px; font-weight: 700; color: var(--blue-ink); background: var(--blue-soft); border-radius: 10px; padding: 3px 8px; flex-shrink: 0; }
.cur { border-radius: 16px; border: 2px solid var(--blue); background: var(--surface); padding: 9px 10px; margin-left: -6px; }
.cur small { font-size: 10.5px; font-weight: 800; color: var(--blue-ink); }
.cur p { font-size: 15px; font-weight: 800; color: var(--navy); }
.cur .les-btn { height: 34px; width: 100%; margin-top: 6px; font-size: 13px; border-radius: 10px; }
.tabs { height: 50px; border-radius: 25px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 8px 20px rgba(22, 48, 95, .12); display: flex; align-items: center; justify-content: space-between; padding: 0 6px; flex-shrink: 0; }
.tabs span { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; color: var(--muted); border-radius: 19px; }
.tabs span.on { width: auto; padding: 0 12px 0 9px; gap: 5px; background: var(--navy); color: #fff; font-size: 12px; font-weight: 800; }
.tabs svg { width: 19px; height: 19px; }

/* ---------- sections ---------- */
.section { padding: 96px 0; }
.section.tint { background: var(--tint); }
.section.navy { background: var(--navy); color: #E6EEFB; }
.section.navy h2, .section.navy h3 { color: #fff; }
@media (max-width: 600px) { .section { padding: 64px 0; } }
.sec-head { max-width: 760px; margin-bottom: 44px; display: flex; flex-direction: column; gap: 14px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; align-items: center; }
.sec-head p { font-size: 18px; color: var(--ink-2); }
.section.navy .sec-head p { color: #C8D6EE; }
.grid { display: grid; gap: 18px; }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .g3, .g2, .g4 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.card p { color: var(--ink-2); font-size: 16px; }
.card .ico { width: 52px; height: 52px; border-radius: 16px; display: flex; align-items: center; justify-content: center; margin-bottom: 4px; }
.card .ico svg { width: 28px; height: 28px; }
.ico.b { background: var(--blue-soft); color: var(--blue-ink); }
.ico.t { background: var(--teal-soft); color: var(--teal); }
.ico.g { background: var(--gold-soft); color: var(--gold-ink); }
.ico.c { background: var(--coral-soft); color: var(--coral-ink); }
.ico.v { background: #ECECFB; color: #4545B8; }
.ico.n { background: #EEF1F6; color: var(--navy); }
.card .meta { margin-top: auto; padding-top: 6px; font-size: 14px; color: var(--muted); }
.card.wide { grid-column: 1 / -1; }

/* mechanics */
.mech { gap: 14px; }
.mech .demo { height: 150px; border-radius: 16px; background: var(--tint); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.mech .demo .la { font-size: 22px; color: var(--navy); }
.mech h3 { font-size: 18px; }
.mech p { font-size: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--ink-2); }
.demo-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; width: 84%; }
.demo-opts span { height: 38px; border-radius: 10px; background: #fff; border: 2px solid var(--line); display: flex; align-items: center; padding-left: 10px; font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 17px; color: var(--navy); }
.demo-opts span.ok { border-color: var(--teal-2); background: var(--teal-soft); }
.word { display: flex; gap: 5px; }
.word i { width: 30px; height: 36px; border-radius: 8px; background: #fff; border: 2px solid var(--line); display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 20px; color: var(--navy); }
.word i.e { border-style: dashed; color: transparent; }
.word i.f { border-color: var(--blue); background: var(--blue-soft); }

/* 3D section */
.v-split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: center; }
@media (max-width: 900px) { .v-split { grid-template-columns: 1fr; gap: 32px; } }
.viewer-card { position: relative; height: 560px; border-radius: 28px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
@media (max-width: 600px) { .viewer-card { height: 440px; } }
.viewer-card .v3d-chip.tl { top: 14px; }
.viewer-card .v3d-label { left: 16px; right: auto; bottom: 70px; min-width: 220px; }
.v-tools { position: absolute; left: 14px; right: 14px; bottom: 14px; display: flex; gap: 8px; z-index: 3; flex-wrap: wrap; }
.v-tools button { height: 40px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .95); color: var(--navy); font-weight: 700; font-size: 14px; cursor: pointer; }
.v-tools button[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.v-tools .zoom { margin-left: auto; display: flex; gap: 6px; }
.v-tools .zoom button { width: 40px; padding: 0; font-size: 20px; }
.facts { display: grid; gap: 14px; margin-top: 26px; }
.fact { display: flex; gap: 14px; align-items: flex-start; }
.fact b { flex-shrink: 0; min-width: 84px; font-size: 22px; font-weight: 800; color: var(--blue-ink); line-height: 1.2; }
.fact span { color: var(--ink-2); font-size: 16px; }
.note { font-size: 14px; color: var(--muted); margin-top: 18px; padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }

/* Max */
.max-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 760px) { .max-row { grid-template-columns: 1fr; } }
.max-card { align-items: center; text-align: center; cursor: pointer; position: relative; overflow: hidden; }
.max-card .stage { height: 210px; width: 100%; display: flex; align-items: flex-end; justify-content: center; border-radius: 16px; background: var(--tint); position: relative; overflow: hidden; }
.max-card svg.m { width: 150px; height: 178px; margin-bottom: 10px; transform-origin: 50% 92%; }
.max-card button { border: 0; background: none; padding: 0; cursor: pointer; width: 100%; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.max-card .sfx { font-size: 13px; font-weight: 700; color: var(--blue-ink); }
.play-puff svg.m { animation: puff 1.1s var(--ease) both; }
.play-wave svg.m { animation: wave-hand 1.2s ease-in-out both; }
@keyframes wave-hand { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-12deg); } 40% { transform: rotate(10deg); } 60% { transform: rotate(-8deg); } 80% { transform: rotate(6deg); } }
.play-fly svg.m { animation: fly 2.6s cubic-bezier(.5, 0, .7, 1) both; }
@keyframes fly { 0% { transform: none; } 10% { transform: scale(.9, 1.06); } 22% { transform: translate(-30px, -40px) rotate(-25deg) scale(.85); } 34% { transform: translate(40px, -110px) rotate(30deg) scale(.7); } 46% { transform: translate(-20px, -190px) rotate(-30deg) scale(.55); } 58% { transform: translate(30px, -320px) rotate(20deg) scale(.4); opacity: 0; } 72% { transform: translateY(24px) scale(.9); opacity: 0; } 100% { transform: none; opacity: 1; } }
.trombone { position: absolute; right: 14px; top: 12px; font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 20px; color: var(--coral-ink); opacity: 0; }
.play-fly .trombone { animation: tromb 1.6s ease both; }
@keyframes tromb { 10%, 70% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(8px); } }

/* languages */
.langs { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 960px) { .langs { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 520px) { .langs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lang { padding: 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.lang b { font-size: 17px; color: var(--navy); }
.lang span { font-size: 13px; color: var(--muted); }
.lang-more { margin-top: 18px; color: var(--ink-2); font-size: 16px; }
.latin-row { display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: center; margin-top: 34px; }
.latin-row span { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: clamp(22px, 3vw, 32px); color: var(--navy); }

/* split teasers */
.teaser { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
@media (max-width: 900px) { .teaser { grid-template-columns: 1fr; gap: 32px; } }
.teaser .copy { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.teaser .copy p { font-size: 18px; color: var(--ink-2); }
ul.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
ul.ticks li { position: relative; padding-left: 30px; color: var(--ink-2); }
ul.ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--teal-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%2317808F' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
ul.ticks.no li::before { background: var(--coral-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 7l10 10M17 7L7 17' fill='none' stroke='%23B23A28' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") center/12px no-repeat; }

/* certificate mock: strict, no game elements (docs/CERTIFICATE.md, §4) */
.cert { background: #FFFDF8; border: 1px solid #E4DCC8; border-radius: 6px; padding: 14px; box-shadow: var(--shadow); color: #1E2430; aspect-ratio: 1.414; display: flex; }
.cert-in { flex: 1; border: 1.5px solid #B8A77E; outline: 1px solid #D9CDAE; outline-offset: -6px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; padding: 18px 22px; }
.cert-in .wm { font-weight: 800; letter-spacing: .02em; font-size: 15px; color: #1E2430; }
.cert-in .of { font-family: Georgia, "Times New Roman", serif; font-size: 13px; color: #5B5A55; }
.cert-in .nm { font-family: Georgia, "Times New Roman", serif; font-size: clamp(22px, 3vw, 32px); color: #12161F; }
.cert-in .cr { font-family: Georgia, "Times New Roman", serif; font-style: italic; font-size: clamp(17px, 2.2vw, 22px); color: #12161F; }
.cert-in .row { display: flex; gap: 22px; margin-top: 10px; font-size: 11px; color: #5B5A55; flex-wrap: wrap; justify-content: center; }
.cert-in .row b { display: block; font-size: 13px; color: #12161F; font-weight: 700; }
.cert-in .disc { margin-top: 8px; font-size: 9.5px; color: #77746C; max-width: 420px; }

/* tables */
.tbl { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; font-size: 16px; }
.tbl th, .tbl td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl th { background: var(--tint); color: var(--navy); font-size: 14px; font-weight: 800; }
.tbl td.num { white-space: nowrap; font-weight: 800; color: var(--navy); }
.tbl-wrap { overflow-x: auto; border-radius: 18px; }

/* course */
.part { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; padding: 28px 0; border-top: 1px solid var(--line); }
.part:first-of-type { border-top: 0; }
@media (max-width: 760px) { .part { grid-template-columns: 1fr; gap: 14px; } }
.part-h { display: flex; flex-direction: column; gap: 6px; }
.part-h .la { font-size: 22px; color: var(--ink-2); }
.part-h .meta { font-size: 14px; color: var(--muted); }
.lessons { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lessons li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.lessons li > b { font-size: 13px; color: var(--blue-ink); padding-top: 2px; }
.lessons li p { font-weight: 700; color: var(--ink); font-size: 16px; }
.lessons li span { display: block; font-size: 14.5px; color: var(--muted); }
.lessons li span.la { font-size: 16px; color: var(--ink-2); }
.lessons li.sprint { background: var(--gold-soft); border-color: #F0DFAE; }
.lessons li.sprint > b { color: var(--gold-ink); }
.lessons li.build { background: var(--teal-soft); border-color: #BFE3E8; }
.lessons li.build > b { color: var(--teal); }
.systems { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 900px) { .systems { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .systems { grid-template-columns: 1fr; } }
.sys { padding: 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); display: flex; gap: 12px; align-items: flex-start; }
.sys > b { width: 32px; height: 32px; border-radius: 10px; background: var(--tint); color: var(--navy); display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; }
.sys p { font-weight: 800; color: var(--navy); }
.sys .la { display: block; font-size: 16px; color: var(--ink-2); }
.sys .pill { margin-top: 6px; }
.daybar { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 18px; }
.daybar i { width: 26px; height: 26px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); font-style: normal; font-size: 11px; font-weight: 800; color: var(--muted); display: flex; align-items: center; justify-content: center; }
.daybar i.a { background: var(--blue-soft); border-color: #C9D8F0; color: var(--blue-ink); }
.daybar i.s { background: var(--gold-soft); border-color: #F0DFAE; color: var(--gold-ink); }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }
.plan { position: relative; }
.plan .price { font-size: 40px; font-weight: 800; color: var(--navy); letter-spacing: -0.03em; line-height: 1; }
.plan .price small { font-size: 16px; font-weight: 700; color: var(--muted); letter-spacing: 0; }
.plan.hl { border: 2px solid var(--blue); }
.packs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 900px) { .packs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pack { padding: 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.pack .q { display: flex; align-items: center; gap: 6px; font-size: 22px; font-weight: 800; color: var(--navy); }
.pack .q svg { width: 22px; height: 22px; }
.pack .usd { font-size: 17px; font-weight: 800; color: var(--blue-ink); }
.pack p { font-size: 14px; color: var(--muted); }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-weight: 700; font-size: 17px; color: var(--navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { width: 24px; height: 24px; flex-shrink: 0; position: relative; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 5px; right: 5px; top: 11px; height: 2px; background: var(--blue); border-radius: 1px; transition: transform .3s var(--ease); }
.faq summary i::after { transform: rotate(90deg); }
.faq details.is-open summary i::after { transform: rotate(0); }
.faq .ans { padding: 0 20px 18px; color: var(--ink-2); }
.faq .ans p + p { margin-top: 10px; }

/* prose (privacy) */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: 26px; margin: 40px 0 12px; }
.prose p, .prose li { color: var(--ink-2); }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 22px; }

/* footer */
.site-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; padding: 34px 0 40px; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; }
.site-foot a { color: var(--ink-2); text-decoration: none; }
.site-foot a:hover { color: var(--navy); text-decoration: underline; }
.site-foot .by { color: var(--navy); font-weight: 700; }
.foot-btn { border: 0; background: none; padding: 0; color: var(--ink-2); cursor: pointer; font-size: 15px; }
.foot-btn:hover { color: var(--navy); text-decoration: underline; }
.credits { width: 100%; font-size: 13px; color: var(--faint); }

/* cookie banner */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 560px; margin: 0 auto; padding: 16px 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 18px 50px rgba(22, 48, 95, .18); display: flex; gap: 14px; align-items: center; flex-wrap: wrap; transform: translateY(20px); opacity: 0; transition: transform .3s var(--ease), opacity .3s; }
.consent.is-in { transform: none; opacity: 1; }
.consent p { flex: 1 1 260px; font-size: 14.5px; color: var(--ink-2); }
.consent-act { display: flex; gap: 8px; }
.consent .btn { height: 42px; font-size: 15px; padding: 0 16px; }

/* reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* 404 */
.nf { min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; text-align: center; padding: 60px 0; }
.nf svg { width: 150px; height: 178px; }
