/* YOLO Lab landing — mobile-first, brand tokens from the shorts (lib/core.js) and the panel. */
:root {
  --bg: #161925; --bg-2: #0e1119; --card: #1F2333; --line: #2C3146;
  --text: #F4F6FA; --muted: #A3AABD; --yellow: #F2B024; --teal: #4AA2A8; --teal-l: #74C2C2;
  --green: #58A860; --red: #E5534B; --violet: #9184d9;
  --r: 18px; --wrap: 1200px;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --heavy: "Arial Black", "Segoe UI Black", system-ui, sans-serif;
  --fs-h1: clamp(2rem, 1.2rem + 3.6vw, 3.5rem);
  --fs-h2: clamp(1.55rem, 1.15rem + 1.8vw, 2.4rem);
  --fs-lead: clamp(1.05rem, 0.98rem + 0.35vw, 1.25rem);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1rem/1.6 var(--sans); overflow-x: hidden; }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-l); text-underline-offset: 3px; }
a:hover { color: var(--yellow); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .6em; }
h1 { font: 900 var(--fs-h1)/1.08 var(--heavy); letter-spacing: -.01em; }
h2 { font: 900 var(--fs-h2)/1.12 var(--heavy); }
h3 { font-size: 1.15rem; font-weight: 800; }
p { margin: 0 0 1em; }
dfn { font-style: normal; font-weight: 700; color: var(--text); }
.y { color: var(--yellow); } .t { color: var(--teal); }
.sprite { display: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lang { font-weight: 800; letter-spacing: .04em; }
.top-row > .lang { margin-left: auto; padding: 10px 12px; color: var(--text); text-decoration: none; border: 1px solid var(--line); border-radius: 10px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--yellow); color: #111; padding: 10px 16px; border-radius: 8px; z-index: 99; }
.skip:focus { left: 8px; }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 820px; }
.narrow-p { max-width: 820px; }
.center { text-align: center; justify-content: center; }
.fine { font-size: .875rem; color: var(--muted); }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(14, 17, 25, .86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 900 1.2rem var(--heavy); }
.brand img { border-radius: 10px; }
.burger { width: 48px; height: 48px; display: grid; place-content: center; gap: 5px; background: none; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.burger span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .2s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav { position: fixed; inset: 64px 0 auto 0; display: none; flex-direction: column; padding: 12px 16px 20px; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.nav.open { display: flex; }
.nav a { padding: 14px 4px; color: var(--text); text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--line); min-height: 48px; }
.nav a.btn { margin-top: 12px; border: 0; justify-content: center; color: #15171f; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 14px 26px; border-radius: 14px; background: var(--yellow); color: #15171f; font-weight: 800; font-size: 1.05rem; text-decoration: none; border: 2px solid var(--yellow); transition: transform .15s, box-shadow .15s, background .15s; }
.btn:hover { color: #15171f; transform: translateY(-1px); box-shadow: 0 10px 30px rgba(242, 176, 36, .25); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { color: var(--text); border-color: var(--teal); box-shadow: none; }
.btn-sm { min-height: 44px; padding: 10px 18px; font-size: .95rem; }
.ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.ico-lg { width: 48px; height: 48px; fill: none; stroke: var(--yellow); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 14px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 12px; }
.cta-row .btn { flex: 1 1 100%; }

/* hero */
.hero { padding: 36px 0 48px; background: radial-gradient(1100px 600px at 80% 10%, #1e2336 0%, transparent 60%), radial-gradient(800px 500px at 0% 100%, rgba(74, 162, 168, .10), transparent 60%); }
.hero-grid { display: grid; gap: 32px; }
.kicker { color: var(--teal-l); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: .85rem; margin-bottom: 12px; }
.lead { font-size: var(--fs-lead); color: #d9dde8; }
.chips { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); font-size: .92rem; font-weight: 600; }
.chips li:first-child { border-color: var(--yellow); color: var(--yellow); }
.hero-art { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.hero-art figcaption { font-size: .875rem; color: var(--muted); margin-top: 10px; }
.hero-chart { width: 100%; aspect-ratio: 640 / 420; }
.hero-chart .g { stroke: #252a3b; stroke-width: 1; }
.hero-chart .zs { fill: rgba(88, 168, 96, .22); stroke: var(--green); stroke-width: 1.5; }
.hero-chart .zr { fill: rgba(229, 83, 75, .16); stroke: var(--red); stroke-width: 1.5; }
.hero-chart .zl { fill: var(--muted); font: 600 15px var(--sans); }
.hero-chart .up { stroke: var(--green); fill: var(--green); stroke-width: 2; }
.hero-chart .dn { stroke: var(--red); fill: var(--red); stroke-width: 2; }
.hero-chart .mk { fill: var(--yellow); stroke: #15171f; stroke-width: 3; }
.hero-chart .ml { fill: var(--yellow); font: 800 16px var(--sans); }

/* sections */
.sec { padding: 56px 0; }
.sec-alt { background: var(--bg-2); border-block: 1px solid #1b1f2d; }
.answer { font-size: var(--fs-lead); color: #dfe3ee; }
.cards { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 16px; grid-template-columns: 1fr; }
.card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; transition: transform .2s, border-color .2s; }
.card:hover { transform: translateY(-3px); border-color: #3a4160; }
.card p { color: #cfd4e1; margin: 0; }
.card-key { border-color: var(--yellow); box-shadow: 0 0 0 1px rgba(242, 176, 36, .25), 0 20px 50px rgba(242, 176, 36, .08); }
.badge { position: absolute; top: -12px; right: 18px; background: var(--yellow); color: #15171f; font-weight: 800; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; padding: 5px 12px; border-radius: 999px; }
.also { margin: 24px 0 0; color: #cfd4e1; }
.disclosure { margin: 24px 0 0; padding: 16px 18px; border: 1px solid var(--line); border-left: 4px solid var(--teal); border-radius: 12px; background: rgba(31, 35, 51, .6); color: #c9cfdd; font-size: .95rem; }

.steps { list-style: none; padding: 0; margin: 28px 0; display: grid; gap: 16px; }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.steps p { color: #cfd4e1; margin: 0; }
.n { display: inline-grid; place-items: center; width: 30px; height: 30px; margin-right: 10px; border-radius: 50%; background: var(--teal); color: #10131b; font: 900 .95rem var(--heavy); vertical-align: 2px; }
.two { display: grid; gap: 16px; }
.note { padding: 22px; border-radius: var(--r); border: 1px dashed var(--line); }
.note p { color: #cfd4e1; margin: 0; }

.panel-grid { display: grid; gap: 20px; margin: 28px 0; }
.shots { display: grid; gap: 20px; }
.shots figure, .video { margin: 0; }
.shots img { border-radius: var(--r); border: 1px solid var(--line); width: 100%; }
figcaption { font-size: .9rem; color: var(--muted); margin-top: 10px; }
.video-facade { position: relative; display: block; width: 100%; max-width: 380px; margin-inline: auto; padding: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: #000; cursor: pointer; }
.video-facade img { width: 100%; }
.play { position: absolute; inset: 0; margin: auto; width: 84px; height: 84px; border-radius: 50%; background: rgba(242, 176, 36, .95); box-shadow: 0 10px 40px rgba(0, 0, 0, .5); transition: transform .15s; }
.play::after { content: ""; position: absolute; left: 34px; top: 26px; border-style: solid; border-width: 16px 0 16px 26px; border-color: transparent transparent transparent #15171f; }
.video-facade:hover .play { transform: scale(1.06); }
.video video { width: 100%; max-width: 380px; margin-inline: auto; border-radius: var(--r); background: #000; }
.video figcaption { text-align: center; }
.ticks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; color: #d5dae6; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .45em; width: 16px; height: 9px; border-left: 3px solid var(--green); border-bottom: 3px solid var(--green); transform: rotate(-45deg); }
.ticks.warn li::before { width: 14px; height: 14px; border: 0; border-radius: 50%; background: var(--red); transform: none; top: .35em; }

.how { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 16px; counter-reset: s; }
.how li { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.how .n { width: 40px; height: 40px; font-size: 1.15rem; background: var(--yellow); margin-bottom: 12px; }
.how p { color: #cfd4e1; margin: 0; }

.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative; font-weight: 700; font-size: 1.08rem; min-height: 48px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 6px; top: 12px; font: 400 1.8rem/1 var(--sans); color: var(--yellow); transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: #cfd4e1; padding-bottom: 18px; margin: 0; }

.final { background: radial-gradient(700px 300px at 50% 0%, rgba(242, 176, 36, .12), transparent 70%); }
.final p { font-size: var(--fs-lead); color: #d9dde8; }

.foot { padding: 40px 0 120px; border-top: 1px solid var(--line); background: var(--bg-2); }
.foot-grid { display: grid; gap: 20px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot nav a { color: var(--muted); padding: 6px 0; }
.foot .disclosure { margin: 0; }

.sticky-cta { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 30; display: flex; align-items: center; justify-content: center; min-height: 56px; border-radius: 16px; background: var(--yellow); color: #15171f; font-weight: 800; text-decoration: none; box-shadow: 0 12px 40px rgba(0, 0, 0, .5); transform: translateY(140%); transition: transform .25s; }
.sticky-cta.show { transform: none; }
.sticky-cta:hover { color: #15171f; }

/* reveal on scroll (only when JS marked the page; without JS everything is visible) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ≥480 */
@media (min-width: 480px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .cta-row .btn { flex: 0 1 auto; }
}
/* ≥768 */
@media (min-width: 768px) {
  .sec { padding: 80px 0; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .two { grid-template-columns: repeat(2, 1fr); }
  .how { grid-template-columns: repeat(3, 1fr); }
  .shots { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: auto 1fr; align-items: start; }
  .foot nav { justify-content: flex-end; }
  .foot .disclosure { grid-column: 1 / -1; }
  .sticky-cta { left: auto; right: 24px; bottom: 24px; padding: 0 28px; }
}
/* ≥1024 */
@media (min-width: 1024px) {
  .burger { display: none; }
  .nav { position: static; display: flex; flex-direction: row; align-items: center; gap: 4px; padding: 0; background: none; border: 0; }
  .nav a { border: 0; padding: 10px 12px; min-height: 0; color: #cfd4e1; }
  .nav a.btn { margin: 0 0 0 10px; color: #15171f; }
  .hero { padding: 72px 0 88px; }
  .hero-grid { grid-template-columns: 1.05fr .95fr; align-items: center; gap: 56px; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .panel-grid { grid-template-columns: 380px 1fr; align-items: start; gap: 32px; }
  .sticky-cta { display: none; }
}
/* phone in landscape: keep the hero within one screen */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { padding: 20px 0; }
  .hero-art { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* consent banner: both choices equally easy (EU guidance) */
.consent { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; max-width: 640px; margin-inline: auto; padding: 18px 20px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 20px 60px rgba(0, 0, 0, .55); }
.consent p { margin: 0 0 14px; font-size: .95rem; color: #d5dae6; }
.consent-btns { display: flex; gap: 10px; }
.btn-consent { flex: 1; min-height: 48px; border-radius: 12px; border: 2px solid var(--teal); background: transparent; color: var(--text); font: 700 1rem var(--sans); cursor: pointer; }
.btn-consent:hover { background: rgba(74, 162, 168, .15); }
.consent-open .sticky-cta { display: none; }

/* quizzes */
.quiz-sec { padding-top: 32px; }
.quiz-wrap { max-width: 760px; }
.crumbs { margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.quiz { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 28px 22px; min-height: 420px; }
.quiz h1 { font-size: clamp(1.8rem, 1.2rem + 2.4vw, 2.6rem); }
.quiz-progress { height: 8px; background: var(--bg-2); border-radius: 99px; overflow: hidden; margin-bottom: 10px; }
.quiz-progress i { display: block; height: 100%; width: 0; background: var(--yellow); border-radius: 99px; transition: width .3s ease; }
.quiz-q { font: 800 clamp(1.3rem, 1.1rem + 1vw, 1.7rem)/1.25 var(--sans); margin: 8px 0 20px; outline: none; }
.quiz-opts { display: grid; gap: 10px; }
.quiz-opt { text-align: left; min-height: 56px; padding: 14px 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg-2); color: var(--text); font: 600 1.02rem/1.35 var(--sans); cursor: pointer; transition: border-color .15s, background .15s, transform .1s; }
.quiz-opt:hover { border-color: var(--teal); background: #182033; }
.quiz-opt:active { transform: scale(.99); }
.quiz-back { margin-top: 18px; background: none; border: 0; color: var(--muted); font: 600 .95rem var(--sans); cursor: pointer; padding: 8px 0; min-height: 44px; }
.quiz-back:hover { color: var(--text); }
.quiz-result h2 { font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2rem); }
.quiz-big { color: var(--yellow); font-size: clamp(2.2rem, 1.4rem + 4vw, 3.4rem) !important; margin-bottom: .3em; }
.quiz-stats { display: grid; gap: 10px; margin: 18px 0; }
.quiz-stats div { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; justify-content: space-between; gap: 12px; }
.quiz-stats span { color: var(--muted); }
.quiz-type p, .quiz-plan li { color: #d5dae6; }
.quiz-plan, .quiz-next { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.quiz-plan ol, .quiz-next ol { padding-left: 1.2em; display: grid; gap: 10px; }
.code { font-family: ui-monospace, Consolas, monospace; color: var(--yellow); letter-spacing: .04em; }
.copy { margin-left: 6px; padding: 4px 10px; border-radius: 8px; border: 1px solid var(--line); background: transparent; color: var(--teal-l); font: 600 .85rem var(--sans); cursor: pointer; }
.quiz-wrap .disclosure { margin-top: 20px; }
@media (min-width: 640px) {
  .quiz { padding: 40px 44px; }
  .quiz-stats { grid-template-columns: repeat(3, 1fr); }
  .quiz-stats div { flex-direction: column; }
}

.tests { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.test-card { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 20px 22px; border-radius: var(--r); border: 1px solid var(--line); background: var(--card); color: var(--text); text-decoration: none; transition: border-color .15s, transform .15s; }
.test-card:hover { color: var(--text); border-color: var(--yellow); transform: translateY(-2px); }
.test-card span { color: var(--muted); font-size: .9rem; }
@media (min-width: 768px) { .tests { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .tests { grid-template-columns: repeat(4, 1fr); } }

.share-panel { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 12px; }
.share-link { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-2); color: var(--text); font: 700 .95rem var(--sans); text-decoration: none; cursor: pointer; }
.share-link:hover { border-color: var(--teal); color: var(--text); }

/* quiz: bonus block, charts, feedback */
.quiz-bonus { margin-top: 26px; padding: 22px; border-radius: var(--r); border: 1px solid rgba(242, 176, 36, .45); background: linear-gradient(180deg, rgba(242, 176, 36, .08), rgba(242, 176, 36, 0) 60%), var(--bg-2); }
.quiz-bonus h2 { margin-bottom: 14px; }
.bonus-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.bonus-list li { position: relative; display: grid; gap: 2px; padding: 12px 14px 12px 40px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.bonus-list li::before { content: ""; position: absolute; left: 15px; top: 17px; width: 12px; height: 7px; border-left: 3px solid var(--green); border-bottom: 3px solid var(--green); transform: rotate(-45deg); }
.bonus-list li span { color: #c9cfdd; font-size: .93rem; }
.bonus-list li.hot { border-color: var(--yellow); }
.badge-s { justify-self: start; margin-bottom: 4px; padding: 2px 9px; border-radius: 99px; background: var(--yellow); color: #15171f; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.quiz-figure { margin: 0 0 16px; padding: 10px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); }
.quiz-chart { width: 100%; height: auto; }
.quiz-chart .zs { fill: rgba(88, 168, 96, .2); stroke: var(--green); stroke-width: 1.5; }
.quiz-chart .zr { fill: rgba(229, 83, 75, .16); stroke: var(--red); stroke-width: 1.5; }
.quiz-chart .zl { fill: var(--muted); font: 600 13px var(--sans); }
.quiz-chart .up { fill: var(--green); stroke: var(--green); stroke-width: 2; }
.quiz-chart .dn { fill: var(--red); stroke: var(--red); stroke-width: 2; }
.quiz-chart .mk { fill: var(--yellow); stroke: #15171f; stroke-width: 2; }
.quiz-chart .mkl { fill: #15171f; font: 900 13px var(--sans); text-anchor: middle; }
.quiz-chart .pl { fill: none; stroke: var(--text); stroke-width: 3; stroke-linejoin: round; }
.quiz-chart .cl { fill: none; stroke: var(--yellow); stroke-width: 3; stroke-linejoin: round; }
.quiz-chart .bb { fill: var(--green); }
.quiz-chart .bs { fill: var(--red); opacity: .8; }
.quiz-figure .fine { margin: 6px 4px 0; }
.quiz-opts-row { grid-template-columns: repeat(4, 1fr); }
.quiz-opts-row .quiz-opt { text-align: center; }
.quiz-opt.right { border-color: var(--green); background: rgba(88, 168, 96, .18); }
.quiz-opt.wrong { border-color: var(--red); background: rgba(229, 83, 75, .15); }
.quiz-opt:disabled { cursor: default; opacity: 1; color: var(--text); }
.quiz-feedback { margin-top: 14px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-2); }
.quiz-feedback p { margin: 0 0 12px; color: #d5dae6; }
@media (max-width: 420px) { .quiz-opts-row { grid-template-columns: repeat(2, 1fr); } }
.quiz-chart .g { stroke: var(--line); stroke-width: 1; stroke-dasharray: 4 4; }
