/* Gametize Academy — shared styles. Brand palette only. */
:root {
  --ink: #030D14;
  --ink-2: #0A1A24;
  --teal: #02837C;
  --teal-dark: #016B65;
  --teal-bright: #1BB0AA;
  --mint: #B6F3E8;
  --mint-soft: #E8FBF7;
  --gray: #D9D9D9;
  --gray-soft: #F2F4F4;
  --white: #FFFFFF;
  --text: #030D14;
  --text-2: #36434C;
  --text-3: #5A6770;
  --line: #E3E8E8;
  --radius: 20px;
  --shadow: 0 12px 32px rgba(3, 13, 20, .08);
  --shadow-lg: 0 28px 64px rgba(3, 13, 20, .16);
  --font: "Figtree", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--white); font-size: 18px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { line-height: 1.12; letter-spacing: -0.015em; font-weight: 700; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding: 110px 0; }
.section-sm { padding: 70px 0; }
.center { text-align: center; }
.bg-gray { background: var(--gray-soft); }
.bg-ink { background: var(--ink); color: var(--white); }
.bg-teal { background: var(--teal-bright); color: var(--white); }

.kicker { display: inline-block; font-size: 14px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); margin-bottom: 14px; }
.bg-ink .kicker, .on-dark .kicker { color: var(--mint); }
.bg-teal .kicker { color: var(--ink); }
.h1 { font-size: clamp(40px, 5.6vw, 72px); }
.h2 { font-size: clamp(30px, 3.8vw, 50px); margin-bottom: 18px; }
.h3 { font-size: clamp(22px, 2.2vw, 28px); margin-bottom: 12px; }
.lead { font-size: 21px; color: var(--text-2); max-width: 680px; }
.center .lead { margin-left: auto; margin-right: auto; }
.bg-ink .lead, .on-dark .lead { color: #C3CDD3; }
.bg-teal .lead { color: var(--ink); }
.muted { color: var(--text-2); }

/* Buttons — pill buttons like the original brand */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 30px; border-radius: 999px; font-weight: 700; font-size: 18px; border: 2px solid transparent; cursor: pointer; transition: background .2s, color .2s, transform .2s, box-shadow .2s; white-space: nowrap; }
.btn:hover { }   /* no jump on hover: it made buttons flicker when the mouse sat on their bottom edge (Ivy, Nov 13) */
.btn .arr { transition: transform .2s; }
.btn:hover .arr { transform: translateX(4px); }
.btn-teal { background: var(--teal); color: var(--white); }
.btn-soon { background: var(--mint-soft); color: var(--teal-dark); border-color: var(--mint); cursor: default; }
.btn-teal:hover { background: var(--teal-dark); box-shadow: 0 10px 24px rgba(2,131,124,.3); }
.btn-mint { background: var(--mint); color: var(--ink); }
.btn-mint:hover { background: var(--white); }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { background: var(--ink-2); }
.btn-line { border-color: var(--teal); color: var(--teal); }
.btn-line:hover { background: var(--teal); color: var(--white); }
.btn-line-light { border-color: var(--mint); color: var(--mint); }
.btn-line-light:hover { background: var(--mint); color: var(--ink); }
.btn-sm { padding: 10px 20px; font-size: 16px; }
.btn-block { width: 100%; }

.tag { display: inline-block; padding: 5px 12px; border-radius: 999px; font-size: 14px; font-weight: 700; letter-spacing: .04em; background: var(--mint); color: var(--ink); }
.tag-ink { background: var(--ink); color: var(--mint); }
.tag-line { background: transparent; border: 1.5px solid currentColor; }

/* Check list (CSS-drawn ticks, no icons) */
.ticks { list-style: none; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 34px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--teal); }
.ticks li::after { content: ""; position: absolute; left: 7px; top: 7px; width: 5px; height: 9px; border: solid var(--white); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.bg-ink .ticks li::before, .on-dark .ticks li::before { background: var(--teal-bright); }

/* Draft placeholders — dashed brand teal */
.ph { outline: 2px dashed var(--teal-bright); outline-offset: 4px; border-radius: 8px; }
.ph-note { display: inline-block; font-size: 14px; font-weight: 700; color: var(--teal); letter-spacing: .02em; }
.draft-banner { position: fixed; left: 16px; bottom: 16px; z-index: 50; background: var(--ink); color: var(--white); font-size: 14px; padding: 10px 14px; border-radius: 12px; box-shadow: var(--shadow-lg); display: flex; gap: 12px; align-items: center; max-width: calc(100% - 32px); }
.draft-banner b { color: var(--mint); }
.draft-banner button { background: none; border: 0; color: #8A98A1; cursor: pointer; font-size: 20px; line-height: 1; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--white); border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.site-header.scrolled { box-shadow: 0 6px 24px rgba(3,13,20,.06); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 78px; gap: 24px; }
.nav-logo img { height: 50px; width: auto; }
.nav-menu { display: flex; align-items: center; gap: 34px; list-style: none; font-size: 17px; font-weight: 500; }
.nav-menu > li { position: relative; }
.nav-menu > li > a { padding: 28px 0; display: inline-block; position: relative; }
.nav-menu > li > a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 20px; height: 2px; background: var(--teal); transform: scaleX(0); transition: transform .2s; }
.nav-menu > li:hover > a::after { transform: scaleX(1); }
.caret { display: inline-block; width: 7px; height: 7px; border: solid var(--text-3); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); margin: 0 0 3px 8px; }
.mega { position: absolute; top: 100%; left: -260px; width: 760px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 14px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .18s ease; }
.has-mega:hover .mega, .has-mega:focus-within .mega { opacity: 1; visibility: visible; transform: none; }
.mega a { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center; padding: 10px; border-radius: 14px; }
.mega a:hover { background: var(--mint-soft); }
.mega img { width: 96px; height: 72px; object-fit: cover; border-radius: 10px; }
.mega strong { display: block; font-size: 17px; }
.mega small { display: block; color: var(--text-3); font-size: 14px; line-height: 1.4; margin-top: 2px; }
.nav-cta { display: flex; gap: 10px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; width: 40px; height: 40px; position: relative; flex: none; }   /* flex: none = never squeezed on small phones (its lines stuck out) */
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { position: absolute; left: 9px; width: 22px; height: 2px; background: var(--ink); content: ""; }
.nav-toggle span { top: 19px; } .nav-toggle span::before { top: -7px; left: 0; } .nav-toggle span::after { top: 7px; left: 0; }
.mobile-only { display: none; }

/* Photo hero */
.photo-hero { position: relative; color: var(--white); background: var(--ink); overflow: hidden; }
.photo-hero .bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.06); animation: slowzoom 18s ease-out forwards; }
@keyframes slowzoom { to { transform: scale(1); } }
.photo-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3,13,20,.94) 0%, rgba(3,13,20,.78) 42%, rgba(3,13,20,.25) 100%); }
.photo-hero .wrap { position: relative; z-index: 1; padding-top: 130px; padding-bottom: 130px; }
.photo-hero h1 { max-width: 760px; margin-bottom: 22px; }
.photo-hero h1 em { font-style: normal; color: var(--teal-bright); }
.photo-hero .lead { color: #D3DCE0; margin-bottom: 36px; max-width: 620px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-facts { display: flex; gap: 40px; flex-wrap: wrap; margin-top: 56px; max-width: 760px; }
.hero-facts b { display: block; font-size: 26px; color: var(--mint); }
.hero-facts span { font-size: 16px; color: #B5C1C7; }

/* Split: image + text */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split.flip > :first-child { order: 2; }
.split > * { min-width: 0; }
@media (max-width: 360px) { .section .btn { white-space: normal; text-align: center; } }   /* long buttons wrap instead of sticking out on small phones */   /* never wider than the screen (the certificate picture stuck out 9px on 320px phones; Nov 14, 2026) */
.frame { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.frame:hover img { transform: scale(1.04); }
.frame-tall { aspect-ratio: 4 / 5; }
.frame-wide { aspect-ratio: 4 / 3; }
.frame-badge { position: absolute; left: 20px; bottom: 20px; background: var(--white); color: var(--ink); border-radius: 14px; padding: 14px 18px; box-shadow: var(--shadow); max-width: 260px; }
.frame-badge b { display: block; font-size: 24px; color: var(--teal); line-height: 1.1; }
.frame-badge span { font-size: 14px; color: var(--text-2); }
/* Socialico: our community app (separate brand). Curvy, friendly wordmark. */
.socialico { font-family: "Pacifico", cursive; font-weight: 400; letter-spacing: .01em; background: linear-gradient(90deg, #1BB0AA, #8B6CF6 55%, #FF7A6B); -webkit-background-clip: text; background-clip: text; color: transparent; padding: 0 .08em; }
.socialico-badge { padding: 16px 22px 14px; border-radius: 18px; max-width: 320px; }
.socialico-badge .socialico { font-size: 46px; line-height: 1.25; color: transparent; display: inline-block; }   /* inline-block so the full teal → violet → coral shows on the word */
.socialico-badge span { display: block; font-size: 15px; font-weight: 600; margin-top: 2px; }
.socialico-inline { font-size: 1.25em; }
.btn-soon .socialico { font-size: 22px; line-height: 1; }

/* Moving photo strip */
.strip { overflow: hidden; background: var(--ink); padding: 18px 0; }
.strip-track { display: flex; gap: 18px; width: max-content; animation: marquee 50s linear infinite; }
.strip:hover .strip-track { animation-play-state: paused; }
.strip img { height: 240px; width: 340px; object-fit: cover; border-radius: 14px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Who-is-this-for band */
.who { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin-top: 50px; border-top: 1px solid rgba(3,13,20,.2); }
.who div { padding: 26px 20px 0 0; }
.who b { display: block; font-size: 17px; font-weight: 700; margin-bottom: 8px; color: var(--ink); opacity: .7; }
.who span { font-size: 20px; font-weight: 700; line-height: 1.25; color: var(--white); }

/* Photo cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.pcard { background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.pcard:hover { box-shadow: var(--shadow-lg); }
.pcard .img { aspect-ratio: 16 / 10; overflow: hidden; }
.pcard .img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.pcard:hover .img img { transform: scale(1.06); }
.pcard .body { padding: 26px 26px 30px; display: flex; flex-direction: column; flex: 1; }
.pcard .num { font-size: 14px; font-weight: 700; color: var(--teal); letter-spacing: .1em; margin-bottom: 8px; }
.pcard h3 { font-size: 21px; margin-bottom: 10px; }
.pcard p { color: var(--text-2); font-size: 17px; flex: 1; }
.pcard .ticks { margin-top: 14px; font-size: 17px; color: var(--text-2); gap: 8px; }
.pcard .btn { margin-top: 22px; align-self: flex-start; }

/* Numbered rows */
.rows { display: grid; gap: 0; border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 90px 1fr 1.4fr; gap: 30px; padding: 34px 0; border-bottom: 1px solid var(--line); align-items: start; }
.row .n { font-size: 40px; font-weight: 700; color: var(--teal-bright); line-height: 1; }
.row h3 { font-size: 22px; }
.row p, .row ul { color: var(--text-2); }
.bg-ink .rows, .bg-ink .row { border-color: rgba(255,255,255,.12); }
.bg-ink .row p, .bg-ink .row ul { color: #C3CDD3; }

/* Quote band */
.quote-band { position: relative; color: var(--white); background: var(--ink); overflow: hidden; }
.quote-band .bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .28; }
.quote-band .wrap { position: relative; padding: 120px 24px; max-width: 980px; text-align: center; }
.quote-band blockquote { font-size: clamp(22px, 2.6vw, 32px); line-height: 1.45; font-weight: 500; }
.quote-band blockquote::before { content: "\201C"; display: block; font-size: 90px; line-height: .6; color: var(--teal-bright); margin-bottom: 18px; }
.quote-band cite { display: block; margin-top: 28px; font-style: normal; font-weight: 700; color: var(--mint); }
.quote-band cite span { display: block; font-weight: 400; color: #B5C1C7; font-size: 17px; }
.qdots { display: flex; gap: 8px; justify-content: center; margin-top: 30px; }
.qdots button { width: 10px; height: 10px; border-radius: 50%; border: 0; background: rgba(255,255,255,.3); cursor: pointer; }
.qdots button.on { background: var(--teal-bright); width: 28px; border-radius: 99px; }

/* Facilitators */
.people { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.person { background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.person img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: top; background: var(--mint-soft); }
.person div { padding: 24px 26px 28px; }
.person small { color: var(--teal); font-weight: 700; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; }
.person h3 { font-size: 24px; margin: 4px 0 10px; }
.person p { color: var(--text-2); font-size: 17px; }
.person a.more { display: inline-block; margin-top: 14px; font-weight: 700; color: var(--teal); font-size: 16px; }
.person a.more:hover { text-decoration: underline; }

/* Credentials row */
.creds { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.cred { display: flex; gap: 14px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 12px 18px; }
.cred img { height: 40px; width: auto; }
.cred strong { display: block; font-size: 17px; }
.cred span { font-size: 14px; color: var(--text-3); }

/* CTA band with photo */
.cta-photo { position: relative; overflow: hidden; border-radius: 28px; color: var(--white); background: var(--ink); }
.cta-photo .bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.cta-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(2,131,124,.96) 0%, rgba(2,131,124,.85) 45%, rgba(2,131,124,.2) 100%); }
.cta-photo .in { position: relative; z-index: 1; padding: 80px 64px; max-width: 640px; }
.cta-photo h2 { font-size: clamp(28px, 3.4vw, 44px); margin-bottom: 16px; }
.cta-photo p { color: #E2F7F4; font-size: 20px; margin-bottom: 30px; }

/* Forms */
.form-card { background: var(--white); color: var(--ink); border-radius: 24px; padding: 36px; box-shadow: var(--shadow-lg); }
.form-card h3 { font-size: 24px; margin-bottom: 6px; }
.form-card > p { color: var(--text-2); margin-bottom: 22px; font-size: 17px; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 14px; font-weight: 700; color: var(--text-2); }
.field input, .field select, .field textarea { padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--white); width: 100%; }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal-bright); box-shadow: 0 0 0 4px rgba(27,176,170,.15); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-note { font-size: 14px; color: var(--text-3); margin-top: 12px; }
.form-done { display: none; text-align: center; padding: 30px 6px; }
.form-done .ring { width: 72px; height: 72px; border-radius: 50%; background: var(--mint); margin: 0 auto 18px; position: relative; }
.form-done .ring::after { content: ""; position: absolute; left: 28px; top: 18px; width: 14px; height: 26px; border: solid var(--teal); border-width: 0 4px 4px 0; transform: rotate(45deg); }
.form-done h3 { font-size: 24px; margin-bottom: 8px; }

/* Subscribe band */
.subscribe { background: var(--teal-bright); padding: 80px 0; }
.sub-box { max-width: 920px; margin: 0 auto; background: var(--white); border-radius: 28px; padding: 44px; display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; }
.sub-box h2 { font-size: 30px; }
.sub-box h2 span { color: var(--teal-bright); }
.sub-box p { color: var(--text-2); margin-top: 8px; }
.sub-form { display: grid; gap: 10px; }
.sub-form input { padding: 13px 16px; border: 1.5px solid var(--line); border-radius: 999px; }
.sub-form input:focus { outline: none; border-color: var(--teal-bright); }
.sub-msg { margin: 2px 0 0; min-height: 0; font-size: 15px; text-align: center; color: var(--text-2); }   /* status under Subscribe (Ivy, Nov 22, 2026) */
.sub-msg:empty { display: none; }
.sub-msg.is-warn { color: #B42318; font-weight: 600; }
.wl-form .sub-msg { margin-top: 10px; }
.sub-msg { text-wrap: balance; }   /* even lines on phones: no word or two left alone */
/* Robot check of the visitor forms (Nov 23, 2026): takes no space while Cloudflare checks quietly in the background;
   only when Cloudflare asks for a tick does its box show, right above the form's button. */
.form-turnstile:empty { display: none; }
.form-turnstile:not(.is-asking) { position: absolute; left: 0; bottom: 0; width: 300px; max-width: 100%; height: 0; overflow: hidden; }
.form-turnstile.is-asking { margin: 0 0 12px; contain: inline-size; }   /* never widens the form; site.js shrinks Cloudflare's 300px box to fit */
.sub-form .form-turnstile.is-asking { margin: 0; }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 860px; margin: 0 auto; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 20px 24px; }
.faq summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 10px; height: 10px; border: solid var(--teal); border-width: 0 2px 2px 0; transform: rotate(45deg); flex: none; margin-top: 4px; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 9px; }
.faq p { color: var(--text-2); margin-top: 12px; }

/* Footer */
.site-footer { background: var(--ink); color: #A9B6BE; padding: 80px 0 36px; font-size: 17px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.foot-grid h4 { color: var(--white); font-size: 17px; margin-bottom: 16px; }
.foot-grid ul { list-style: none; display: grid; gap: 10px; }
.foot-grid a:hover { color: var(--mint); }
.foot-brand img { height: 54px; width: auto; margin-bottom: 18px; }
.foot-brand p { max-width: 330px; }
.apps { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.apps img { height: 40px; width: auto; }
.socials { display: flex; gap: 14px; margin-top: 20px; font-size: 16px; font-weight: 700; }
.socials a { color: var(--white); border-bottom: 1px solid rgba(255,255,255,.25); padding-bottom: 2px; }
.socials a:hover { color: var(--mint); border-color: var(--mint); }
.foot-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 14px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .1s; } .reveal-d2 { transition-delay: .2s; } .reveal-d3 { transition-delay: .3s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .strip-track, .photo-hero .bg { animation: none; }
  * { scroll-behavior: auto !important; }
}

@media (max-width: 1000px) {
  .nav-toggle { display: block; }
  .nav-menu, .nav-cta { display: none; }
  .site-header.open .nav-menu { display: flex; position: absolute; top: 78px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--white); border-bottom: 1px solid var(--line); padding: 8px 24px 20px; box-shadow: var(--shadow); max-height: calc(100vh - 78px); overflow: auto; }
  .site-header.open .nav-menu > li > a { padding: 12px 0; }
  .site-header.open .nav-menu > li > a::after { display: none; }
  .site-header.open .mega { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0; width: auto; grid-template-columns: 1fr; }
  .site-header.open .mega a { grid-template-columns: 64px 1fr; }
  .site-header.open .mega img { width: 64px; height: 48px; }
  .site-header.open .mobile-only { display: flex; flex-direction: column; gap: 10px; padding-top: 16px; margin-top: 8px; border-top: 1px solid var(--line); }
  .site-header.open .nav-menu .mobile-only .btn { display: flex; justify-content: center; width: 100%; padding: 15px 24px; font-size: 18px; }
  .split, .sub-box { grid-template-columns: 1fr; gap: 44px; }
  .split.flip > :first-child { order: 0; }
  .cards, .cards-4 { grid-template-columns: 1fr 1fr; }
  .people { grid-template-columns: 1fr 1fr; }
  .who { grid-template-columns: 1fr 1fr; }
  .row { grid-template-columns: 60px 1fr; }
  .row > :last-child { grid-column: 2; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 80px 0; }
  .cta-photo .in { padding: 56px 32px; }
}
@media (max-width: 620px) {
  .wrap { padding: 0 16px; }
  .cards, .cards-2, .cards-4, .people, .who { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .photo-hero .wrap { padding-top: 84px; padding-bottom: 84px; }
  .photo-hero::after { background: linear-gradient(180deg, rgba(3,13,20,.86), rgba(3,13,20,.92)); }
  .hero-facts { gap: 24px; }
  .strip img { height: 170px; width: 240px; }
  .form-card, .sub-box { padding: 26px 20px; }
  .row { grid-template-columns: 1fr; gap: 10px; }
  .row > :last-child { grid-column: 1; }
}

/* Certificates + accreditation logos */
.certs { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; max-width: 1040px; margin: 0 auto; }
.certs figure { background: var(--white); border-radius: 16px; padding: 14px; box-shadow: var(--shadow-lg); transition: transform .3s; }
.certs figure:hover { }
.certs img { width: 100%; border-radius: 8px; }
.certs figcaption { text-align: center; font-size: 16px; font-weight: 700; color: var(--text-2); margin-top: 12px; }
.accred-logos { max-width: 640px; margin: 50px auto 0; background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 24px 28px; text-align: center; }
.accred-logos .logos { display: flex; justify-content: center; align-items: center; gap: 40px; padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 14px; flex-wrap: wrap; }
.accred-logos img { height: 44px; width: auto; }
.accred-logos p { font-size: 17px; font-weight: 600; }
@media (max-width: 620px) { .certs { grid-template-columns: 1fr; } .accred-logos .logos { gap: 22px; } }

/* Blog */
.blog-filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 36px; }
.blog-filters button { border: 1.5px solid var(--line); background: var(--white); border-radius: 999px; padding: 9px 18px; font-weight: 700; font-size: 16px; cursor: pointer; }
.blog-filters button.on, .blog-filters button:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.post-feature { display: grid; grid-template-columns: 1.2fr 1fr; border-radius: var(--radius); overflow: hidden; background: var(--ink); color: var(--white); margin-bottom: 40px; transition: transform .25s, box-shadow .25s; }
.post-feature:hover { box-shadow: var(--shadow-lg); }
.post-feature .img { min-height: 360px; }
.post-feature img { width: 100%; height: 100%; object-fit: cover; }
.post-feature .body { padding: 44px; display: flex; flex-direction: column; justify-content: center; }
.post-feature h2 { font-size: clamp(26px, 2.6vw, 36px); margin: 10px 0 14px; }
.post-feature p { color: #C3CDD3; margin-bottom: 20px; }
.post-meta { font-size: 14px; color: var(--text-3); font-weight: 600; }
.post-feature .post-meta { color: #8FA0AA; }
.post-cat { font-size: 14px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); }
.post-feature .post-cat { color: var(--mint); }
.pcard .post-meta { margin-top: 16px; }

.article-hero { background: var(--ink); color: var(--white); padding: 80px 0 0; }
.article-hero .wrap { max-width: 900px; }
.article-hero .crumbs { font-size: 16px; color: #8FA0AA; margin-bottom: 18px; }
.article-hero .crumbs a:hover { color: var(--mint); }
.article-hero h1 { font-size: clamp(34px, 4.6vw, 54px); margin: 12px 0 18px; }
.article-hero .dek { font-size: 20px; color: #C3CDD3; margin-bottom: 22px; }
.article-hero .post-meta { color: #8FA0AA; margin-bottom: 40px; }
.article-cover { max-width: 1100px; margin: 0 auto; padding: 0 24px; transform: translateY(0); }
.article-cover img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0; display: block; }
.article-wrap { display: grid; grid-template-columns: 220px minmax(0, 720px); gap: 60px; justify-content: center; padding: 70px 24px 90px; }
.toc { position: sticky; top: 110px; align-self: start; font-size: 16px; }
.toc b { display: block; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); margin-bottom: 12px; }
.toc a { display: block; padding: 6px 0 6px 12px; border-left: 2px solid var(--line); color: var(--text-2); }
.toc a:hover, .toc a.on { border-color: var(--teal); color: var(--teal); }
.prose { font-size: 20px; line-height: 1.75; color: #1F2D36; }
.prose > * + * { margin-top: 22px; }
.prose h2 { font-size: 30px; margin-top: 52px; color: var(--ink); scroll-margin-top: 100px; }
.prose h3 { font-size: 22px; margin-top: 34px; color: var(--ink); }
.prose ul, .prose ol { padding-left: 24px; }
.prose li + li { margin-top: 10px; }
.prose a { color: var(--teal); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote { border-left: 4px solid var(--teal-bright); padding: 6px 0 6px 22px; font-size: 21px; font-weight: 500; color: var(--ink); }
.prose .callout { background: var(--mint-soft); border-radius: 16px; padding: 24px 26px; font-size: 18px; }
.prose .callout b { display: block; color: var(--teal-dark); margin-bottom: 6px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 18px; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--gray-soft); }
.inline-cta { background: var(--ink); color: var(--white); border-radius: var(--radius); padding: 30px 32px; display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; }
.inline-cta h3 { color: var(--white); font-size: 22px; margin: 0 0 4px; }
.inline-cta p { color: #C3CDD3; font-size: 18px; margin: 0; }
/* Gametize box: Gametize logo color (#BC1954), so it reads as Gametize, not G ACADEMY (Ivy, Nov 15 2026) */
.inline-cta.gz { background: linear-gradient(120deg, #8E0F3E 0%, #BC1954 55%, #DC4A7C 100%); }
.inline-cta.gz p { color: #FBE3EC; }
.inline-cta.gz .btn { background: var(--white); color: #BC1954; }
.inline-cta.gz .btn:hover { background: #FBE3EC; }
.inline-cta.gz { grid-template-columns: auto 1fr auto; gap: 24px; }
.inline-cta.gz .gz-g { width: 44px; height: auto; display: block; }
@media (max-width: 1000px) {
  .inline-cta.gz { grid-template-columns: auto 1fr; gap: 18px 20px; }
  .inline-cta.gz .gz-g { width: 36px; align-self: start; margin-top: 4px; }
  .inline-cta.gz .btn { grid-column: 1 / -1; }
}
.share { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 50px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 16px; font-weight: 700; }
.share a { color: var(--teal); }
.author-box { display: flex; gap: 16px; align-items: center; margin-top: 30px; background: var(--gray-soft); border-radius: 16px; padding: 20px; }
.author-box img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: top; background: var(--white); }
.author-box p { font-size: 17px; color: var(--text-2); margin: 0; }
@media (max-width: 1000px) {
  .post-feature { grid-template-columns: 1fr; }
  .post-feature .img { min-height: 240px; }
  .article-wrap { grid-template-columns: 1fr; }
  .toc { display: none; }
  .inline-cta { grid-template-columns: 1fr; }
}
/* Small phones: article tables fit the screen (long words could push the page sideways at 320 wide) */
@media (max-width: 480px) {
  .article-wrap { grid-template-columns: minmax(0, 1fr); }
  /* 3-column tables: one stacked block per row, column name before each cell (make-blog.py adds .stack + data-label; same look as .lp-stack) */
  .prose table.stack, .prose .stack tbody, .prose .stack tr, .prose .stack td { display: block; }
  .prose .stack thead { display: none; }
  .prose .stack tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .prose .stack td { border: 0; padding: 2px 0; }
  .prose .stack td:first-child { color: var(--ink); font-weight: 700; padding-bottom: 4px; }
  .prose .stack td:not(:first-child)::before { content: attr(data-label) ": "; font-weight: 700; color: var(--ink); }
}

/* Price tables */
.ptable-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--white); }
.ptable { width: 100%; border-collapse: collapse; font-size: 17px; min-width: 720px; }
.ptable th, .ptable td { text-align: left; padding: 18px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
.ptable thead th { background: var(--ink); color: var(--white); font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.ptable tbody tr:last-child td { border-bottom: 0; }
.ptable td b { display: block; font-size: 18px; }
.ptable .amt { font-size: 22px; font-weight: 700; color: var(--teal); white-space: nowrap; }
.ptable .ticks { gap: 6px; font-size: 16px; color: var(--text-2); }
.ptable .ticks li { padding-left: 28px; }
.ptable .ticks li::before { width: 16px; height: 16px; top: 4px; }
.ptable .ticks li::after { left: 5px; top: 7px; width: 4px; height: 7px; }
.note-list { list-style: none; display: grid; gap: 8px; font-size: 16px; color: var(--text-2); margin-top: 20px; }
.plan .was { font-size: 16px; color: var(--text-3); text-decoration: line-through; margin-left: 6px; font-weight: 400; }

/* Logo chip inside dark hero facts */
.hero-facts .logo-chip { display: inline-flex; align-items: center; background: var(--white); border-radius: 10px; padding: 8px 14px; margin-bottom: 8px; }
.hero-facts .logo-chip img { height: 30px; width: auto; display: block; }

/* Form error message */
.form-error { color: #B42318; font-size: 16px; font-weight: 600; margin-top: 10px; min-height: 0; }
.form-error:empty { display: none; }
button[disabled] { opacity: .6; cursor: wait; }

/* Always respect the hidden attribute */
[hidden] { display: none !important; }

/* Article FAQ + read next */
.prose .article-faq { max-width: none; margin: 18px 0 0; }
.prose .article-faq p { margin-top: 10px; font-size: 18px; }
.prose .read-next { background: var(--gray-soft); border-radius: 14px; padding: 16px 20px; font-size: 18px; }
.prose .read-next a { font-weight: 700; }

/* ===== G Academy additions (course catalog and course pages) ===== */
.site-header .nav-menu { gap: 28px; }

/* Goal cards ("What brings you here?") */
.goals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.goal { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 380px; color: var(--white); display: flex; align-items: flex-end; background: var(--ink); transition: transform .25s, box-shadow .25s; }
.goal:hover { box-shadow: var(--shadow-lg); }
.goal img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.goal:hover img { transform: scale(1.06); }
.goal::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(3,13,20,.05) 20%, rgba(3,13,20,.92) 100%); }
.goal .in { position: relative; z-index: 1; padding: 28px; }
.goal .num { font-size: 14px; font-weight: 700; letter-spacing: .1em; color: var(--mint); }
.goal h3 { font-size: 26px; margin: 8px 0 8px; }
.goal p { color: #C3CDD3; font-size: 17px; }
.goal .go { display: inline-block; margin-top: 14px; font-weight: 700; color: var(--mint); }

/* Course cards */
.ccard .img { position: relative; }
.ccard .status { position: absolute; left: 14px; top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.ccard .track { font-size: 14px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); }
.ccard h3 { margin-top: 8px; }
.cmeta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; color: var(--text-3); font-weight: 600; margin-top: 14px; }
.cprice { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-weight: 700; }
.cprice .amt { color: var(--teal); font-size: 20px; }
.cprice .soon { color: var(--text-3); font-size: 16px; }
.cprice .go { font-size: 16px; color: var(--ink); }
.ccard.is-soon .img img { filter: grayscale(.35); }
.ccard.premium { border-color: var(--ink); }
.ccard.premium .body { background: var(--ink); color: var(--white); }
.ccard.premium p { color: #C3CDD3; }
.ccard.premium .track { color: var(--mint); }
.ccard.premium .cprice { border-color: rgba(255,255,255,.15); }
.ccard.premium .cprice .go { color: var(--mint); }
.track-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin: 64px 0 26px; }
.track-head:first-child { margin-top: 0; }
.track-head h3 { font-size: 28px; margin: 0; }
.track-head p { color: var(--text-2); margin-top: 6px; max-width: 640px; }

/* Course page */
.course-hero { background: var(--ink); color: var(--white); padding: 70px 0 60px; position: relative; overflow: hidden; }
.course-hero .bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .22; }
.course-hero .wrap { position: relative; }
.course-hero .crumbs { font-size: 16px; color: #8FA0AA; margin-bottom: 22px; }
.course-hero .crumbs a:hover { color: var(--mint); }
.course-hero h1 { font-size: clamp(36px, 4.8vw, 58px); max-width: 820px; margin: 10px 0 18px; }
.course-hero .lead { color: #C3CDD3; max-width: 700px; }
.instructors { display: flex; align-items: center; gap: 12px; margin-top: 26px; font-size: 17px; color: #C3CDD3; }
.instructors .faces { display: flex; }
.instructors .faces img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: top; background: var(--mint-soft); border: 2px solid var(--ink); margin-left: -10px; }
.instructors .faces img:first-child { margin-left: 0; }
.instructors .faces img.mark { object-fit: contain; padding: 6px; background: #0B1B24; border-color: rgba(255,255,255,.18); }   /* G ACADEMY mark instead of a person (Ivy, Nov 14, 2026) */
.instructors b { color: var(--white); }
.course-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 56px; align-items: start; }
.enroll-card { position: sticky; top: 100px; background: var(--white); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow-lg); overflow: hidden; margin-top: -180px; }
.enroll-card .img { aspect-ratio: 16 / 10; }
.enroll-card .img img { width: 100%; height: 100%; object-fit: cover; }
.enroll-card .in { padding: 26px; }
.enroll-card .price { font-size: 34px; font-weight: 700; color: var(--ink); line-height: 1; }
.enroll-card .price small { display: block; font-size: 16px; font-weight: 600; color: var(--text-3); margin-top: 6px; }
.enroll-card .btn { margin-top: 20px; }
.enroll-card .ticks { margin-top: 22px; font-size: 17px; color: var(--text-2); gap: 10px; }
.cblock { padding: 56px 0; border-bottom: 1px solid var(--line); }
.cblock:first-child { padding-top: 0; }
.cblock:last-child { border-bottom: 0; }
.cblock > h2 { font-size: 30px; margin-bottom: 22px; }
.learn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 30px; }
.skills { display: flex; flex-wrap: wrap; gap: 10px; }
.skills span { border: 1.5px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: 16px; font-weight: 600; }
.lessons { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.lesson { display: grid; grid-template-columns: 52px 1fr auto; gap: 16px; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.lesson:last-child { border-bottom: 0; }
.lesson .n { width: 40px; height: 40px; border-radius: 50%; background: var(--mint-soft); color: var(--teal-dark); font-weight: 700; display: grid; place-items: center; }
.lesson b { display: block; }
.lesson small { color: var(--text-3); font-size: 16px; }
.lesson .kind { font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.lesson .kind svg { width: 12px; height: 12px; fill: currentColor; flex: none; }
/* Format labels under each step: Video + what you do (Ivy, Nov 15, 2026) */
.lessons .lesson { grid-template-columns: 52px 1fr; }
.lesson .fmt { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.lesson .fmt span { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 700; line-height: 1; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--text-2); background: var(--white); white-space: nowrap; }
.lesson .fmt .vid { background: var(--mint-soft); border-color: transparent; color: var(--teal-dark); }
.lesson .fmt svg { width: 10px; height: 10px; fill: currentColor; flex: none; }
.lessons-sum { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 16px; color: var(--text-3); font-weight: 600; margin-bottom: 14px; }
.mini-people { display: grid; gap: 16px; }
.mini-person { display: grid; grid-template-columns: 72px 1fr; gap: 18px; align-items: start; }
.mini-person img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; object-position: top; background: var(--mint-soft); }
.mini-person small { color: var(--teal); font-weight: 700; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; }
.mini-person h3 { font-size: 20px; margin: 2px 0 6px; }
.mini-person p { color: var(--text-2); font-size: 17px; }

/* "Not built yet" note for draft links */
.soon-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60; background: var(--ink); color: var(--white); padding: 12px 18px; border-radius: 12px; font-size: 16px; box-shadow: var(--shadow-lg); }
.soon-toast b { color: var(--mint); }

@media (max-width: 1000px) {
  .goals { grid-template-columns: 1fr; }
  .goal { min-height: 300px; }
  .course-layout { grid-template-columns: 1fr; }
  .enroll-card { position: static; margin-top: 0; }
  .learn-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .lesson { grid-template-columns: 40px 1fr; }
  .lesson .kind { grid-column: 2; }
  .lessons .lesson { grid-template-columns: 40px 1fr; gap: 12px; padding: 16px; }
}

/* Four instructors in one row */
.people-4 { grid-template-columns: repeat(4, 1fr); gap: 22px; }
.people-4 .person div { padding: 22px 22px 26px; }
.people-4 .person h3 { font-size: 22px; }
.photo-ph { aspect-ratio: 1; background: var(--mint-soft); display: grid; place-content: center; text-align: center; font-weight: 700; color: var(--teal); padding: 20px !important; outline-offset: -10px !important; }
.photo-ph small { color: var(--text-3); font-weight: 600; letter-spacing: 0 !important; text-transform: none !important; }
@media (max-width: 1000px) { .people-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .people-4 { grid-template-columns: 1fr; } }

/* Footer social icons */
.socials { gap: 10px; }
.socials a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; padding: 0; border: 0; background: rgba(255,255,255,.08); color: var(--white); transition: background .2s, color .2s, transform .2s; }
/* No movement on hover: the icon stays centered and the button never slips off the mouse (it used to flicker, Nov 13). Only the color changes. */
.socials a:hover { background: var(--mint); color: var(--ink); }
.socials svg { width: 19px; height: 19px; }

/* Facilitators: one wide group photo above the bio cards */
.team-photo { background: var(--mint-soft); border-radius: var(--radius); overflow: hidden; padding: 30px 30px 0; margin-bottom: 22px; }
.team-photo img { display: block; width: 100%; max-width: 1100px; margin: 0 auto; }
/* Phones: the facilitators photo was too small; less padding so it uses the card's full width, white edges trimmed (Ivy, Nov 22, 2026) */
@media (max-width: 760px) {
  .team-photo { padding: 18px 0 0; }
  .team-photo img { width: 104%; max-width: none; margin: 0 -2%; }
}



/* Bigger main buttons in the hero */
.hero-ctas .btn { font-size: 20px; padding: 18px 38px; }
@media (max-width: 620px) { .hero-ctas .btn { font-size: 18px; padding: 16px 30px; } }

/* Community section: four small points in a 2x2 grid */
.comm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 28px; margin: 30px 0 34px; }
.comm-grid h3 { font-size: 20px; margin-bottom: 4px; padding-left: 16px; border-left: 3px solid var(--teal-bright); }
.comm-grid p { color: var(--text-2); font-size: 17px; padding-left: 19px; }
@media (max-width: 620px) { .comm-grid { grid-template-columns: 1fr; } }

/* Readability: brighter small label on the dark hero photo */
.photo-hero .kicker { color: var(--mint); }

/* More breathing room in headings (Ivy, Nov 1) */
h2 { line-height: 1.18; }
h3, h4 { line-height: 1.32; letter-spacing: -0.005em; }
.ccard h3 { margin-top: 10px; margin-bottom: 12px; }
.pcard p { line-height: 1.6; }

/* Hero with the AI image of the facilitators */
.photo-hero .ai-label { display: none; position: absolute; right: 16px; bottom: 14px; z-index: 2; font-size: 14px; font-weight: 600; color: #fff; background: rgba(3,13,20,.55); padding: 5px 11px; border-radius: 999px; letter-spacing: .02em; }
.photo-hero.has-ai .ai-label { display: inline-block; }
.photo-hero.has-ai .bg { background-position: right bottom; transform-origin: right bottom; }
/* Darker overlay on the AI hero image (Ivy, Nov 1) */
.photo-hero.has-ai::after { background: linear-gradient(90deg, rgba(3,13,20,.96) 0%, rgba(3,13,20,.85) 42%, rgba(3,13,20,.5) 100%); }

/* Back-to-top button */
.to-top { position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--teal); color: var(--white); display: grid; place-items: center; cursor: pointer; box-shadow: 0 10px 24px rgba(3,13,20,.22); opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .25s, transform .25s, visibility .25s, background .2s; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
body:has(.site-header.open) .to-top { opacity: 0; visibility: hidden; }   /* hidden while the phone menu is open (it covered "Sign in") */
body.ask-open .to-top { opacity: 0; visibility: hidden; }   /* hidden while Ask Genki is open (it covered the send button on phones; Ivy, Nov 22, 2026) */
.to-top:hover { background: var(--teal-dark); }   /* no movement on hover, icon stays centered */

/* "Coming soon" stands out more (Ivy, Nov 1) */
.ccard.is-soon .img::after { content: ""; position: absolute; inset: 0; background: rgba(3,13,20,.35); }
.ccard.is-soon .status { z-index: 1; }
.ccard.is-soon .status .tag { background: var(--mint); color: var(--ink); font-size: 15px; padding: 8px 16px; letter-spacing: .06em; text-transform: uppercase; box-shadow: 0 6px 18px rgba(3,13,20,.3); }
.ccard.is-soon .cprice .soon { color: var(--teal); font-weight: 700; }
/* "Free" label: solid teal so free classes stand out (Ivy, Nov 1) */
.ccard:not(.is-soon) .status .tag { background: var(--teal); color: var(--white); font-size: 15px; padding: 8px 16px; letter-spacing: .06em; text-transform: uppercase; box-shadow: 0 6px 18px rgba(3,13,20,.3); }
/* Prices always on the right of the card (Ivy, Nov 1) */
.cprice .amt, .cprice .soon { margin-left: auto; text-align: right; }
.ccard.is-soon .cprice .soon { font-size: 20px; }
.ccard.is-soon .status .tag-free { background: var(--teal); color: var(--white); border: 2px solid var(--white); }
.ccard.is-soon .cprice .go { color: var(--text-3); }
/* Free classes: teal border so they stand out */
.ccard.is-free { border: 3px solid var(--teal); }
.ccard:not(.is-soon) .status .tag { border: 2px solid var(--white); }

/* Hero: laptop showing a live online class (real photos of the facilitators) */
.hero-split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero-call .wrap { padding-top: 96px; padding-bottom: 96px; }
.hero-call h1 { font-size: clamp(38px, 4.6vw, 64px); }
.laptop { position: relative; }
.laptop-screen { background: #0B1A22; border: 12px solid #1C2830; border-bottom-width: 16px; border-radius: 18px 18px 6px 6px; box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.06); overflow: hidden; }
.laptop-base { height: 16px; margin: 0 -7%; background: linear-gradient(#3A4750, #1C2830); border-radius: 2px 2px 14px 14px; box-shadow: 0 18px 30px rgba(0,0,0,.45); }
.laptop-base::before { content: ""; display: block; width: 18%; height: 6px; margin: 0 auto; background: #2A3640; border-radius: 0 0 8px 8px; }
.call-bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; font-size: 14px; font-weight: 600; color: #C3CDD3; background: #0F222B; }
.call-bar .live { background: #E5484D; color: #fff; font-size: 14px; font-weight: 800; letter-spacing: .08em; padding: 3px 8px; border-radius: 6px; }
.call-bar .call-count { margin-left: auto; color: #8FA3AD; font-weight: 500; }
.call-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px; }
.call-tile { position: relative; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: radial-gradient(circle at 50% 30%, #2C5A5C 0%, #12303A 70%); border: 2px solid transparent; }
.call-tile img { position: absolute; left: 50%; bottom: 0; width: 82%; transform: translateX(-50%); object-fit: contain; }
.call-tile.speaking { border-color: var(--teal-bright); box-shadow: 0 0 0 3px rgba(27,176,170,.35); }
.call-name { position: absolute; left: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 5px; font-size: 14px; font-weight: 600; color: #fff; background: rgba(3,13,20,.65); padding: 3px 9px 3px 6px; border-radius: 6px; }
.call-name svg { width: 13px; height: 13px; }
.call-controls { display: flex; justify-content: center; gap: 10px; padding: 8px 0 12px; }
.call-controls span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #1E333D; color: #D3DCE0; }
.call-controls svg { width: 17px; height: 17px; }
.call-controls .leave { width: auto; padding: 0 14px; border-radius: 999px; background: #E5484D; color: #fff; font-size: 14px; font-weight: 700; }
@media (max-width: 1000px) { .hero-split { grid-template-columns: 1fr; } .laptop { max-width: 560px; } }
.call-bar .live { background: var(--teal-bright); color: var(--ink); }
.call-controls .leave { background: var(--teal); }
.hero-call h1 { font-size: clamp(36px, 4vw, 56px); }
.hero-call .hero-facts { gap: 18px 30px; margin-top: 44px; }
.hero-call .hero-facts b { font-size: 22px; }
.hero-call .hero-facts span { font-size: 15px; }

/* Hero: real laptop photo showing a live online class with the four facilitators */
.hero-call .bg { background-position: right center; }
.hero-call::after { background: linear-gradient(90deg, rgba(3,13,20,.95) 0%, rgba(3,13,20,.86) 38%, rgba(3,13,20,.45) 66%, rgba(3,13,20,.3) 100%); }
.hero-call .hero-text { max-width: 640px; }
@media (max-width: 1000px) { .hero-call::after { background: linear-gradient(180deg, rgba(3,13,20,.88), rgba(3,13,20,.78)); } }
/* Taller hero with more breathing room (Ivy, Nov 1) */
.hero-call .wrap { padding-top: 150px; padding-bottom: 150px; }
.hero-call { min-height: 760px; display: flex; align-items: center; }
.hero-call .wrap { width: 100%; }
.hero-call .lead { margin-bottom: 44px; }
.hero-call .hero-facts { margin-top: 64px; }
@media (max-width: 1000px) { .hero-call { min-height: 0; } .hero-call .wrap { padding-top: 96px; padding-bottom: 96px; } }

/* Mobile: more space between text and the screen edges (Ivy, Nov 1) */
@media (max-width: 620px) {
  .wrap { padding-left: 28px; padding-right: 28px; }
  .quote-band .wrap { padding-left: 28px; padding-right: 28px; }
  .hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
  .hero-ctas .btn { font-size: 16px; padding: 15px 24px; }
  .hero-call h1 { font-size: 34px; }
  .hero-call .hero-facts { gap: 18px 28px; margin-top: 48px; }
}
/* Hero slightly taller still (Ivy, Nov 1) */
.hero-call { min-height: 820px; }
.hero-call .wrap { padding-top: 170px; padding-bottom: 170px; }
@media (max-width: 1000px) { .hero-call { min-height: 0; } .hero-call .wrap { padding-top: 110px; padding-bottom: 110px; } }
/* Mobile: move hero content up so the buttons show on the first screen (Ivy, Nov 1) */
@media (max-width: 620px) {
  .hero-call .wrap { padding-top: 44px; padding-bottom: 72px; }
  .hero-call .kicker { margin-bottom: 10px; }
  .hero-call h1 { margin-bottom: 16px; }
  .hero-call .lead { font-size: 17px; line-height: 1.6; margin-bottom: 28px; }
}
/* Mobile hero: bigger headline, smaller description (Ivy, Nov 1) */
@media (max-width: 620px) {
  .hero-call h1 { font-size: 40px; line-height: 1.1; }
  .hero-call .lead { font-size: 16px; line-height: 1.55; margin-bottom: 26px; }
}

/* Hidden bot trap in the newsletter form */
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* Dark top bar, same as the footer (Ivy, Nov 1) */
.site-header { background: var(--ink); border-bottom-color: rgba(255,255,255,.08); }
.site-header.scrolled { box-shadow: 0 6px 24px rgba(0,0,0,.35); }
.nav-menu > li > a { color: #E6ECEF; }
.nav-menu > li > a:hover { color: var(--white); }
.nav-menu > li > a::after { background: var(--teal-bright); }
.site-header .btn-line { border-color: var(--mint); color: var(--mint); }
.site-header .btn-line:hover { background: var(--mint); color: var(--ink); }
.site-header .btn-teal { background: var(--teal-bright); color: var(--ink); }
.site-header .btn-teal:hover { background: var(--mint); }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { background: var(--white); }
/* Dropdown and mobile menu panels stay light for easy reading */
.mega a, .mega strong { color: var(--ink); }
@media (max-width: 1000px) {
  .site-header.open .nav-menu { background: var(--ink); border-bottom-color: rgba(255,255,255,.08); }
  .site-header.open .nav-menu > li > a { color: #E6ECEF; }
  .site-header.open .mega a, .site-header.open .mega strong { color: #E6ECEF; }
  .site-header.open .mega a:hover { background: rgba(255,255,255,.06); }
  .site-header.open .mega small { color: #9FB0B8; }
}

/* Top bar: dark at the top of the page, white once you scroll (Ivy, Nov 1) */
.site-header { transition: background .25s, box-shadow .25s, border-color .25s; }
.nav-logo .logo-on-light { display: none; }
.site-header.scrolled { background: var(--white); border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(3,13,20,.06); }
.site-header.scrolled .nav-logo .logo-on-dark { display: none; }
.site-header.scrolled .nav-logo .logo-on-light { display: inline-block; }
.site-header.scrolled .nav-menu > li > a { color: var(--ink); }
.site-header.scrolled .nav-menu > li > a::after { background: var(--teal); }
.site-header.scrolled .btn-line { border-color: var(--teal); color: var(--teal); }
.site-header.scrolled .btn-line:hover { background: var(--teal); color: var(--white); }
.site-header.scrolled .btn-teal { background: var(--teal); color: var(--white); }
.site-header.scrolled .btn-teal:hover { background: var(--teal-dark); }
.site-header.scrolled .nav-toggle span, .site-header.scrolled .nav-toggle span::before, .site-header.scrolled .nav-toggle span::after { background: var(--ink); }
@media (max-width: 1000px) {
  .site-header.scrolled.open .nav-menu { background: var(--white); border-bottom-color: var(--line); }
  .site-header.scrolled.open .nav-menu > li > a, .site-header.scrolled.open .mega a, .site-header.scrolled.open .mega strong { color: var(--ink); }
  .site-header.scrolled.open .mega small { color: var(--text-3); }
}

/* No top bar over the hero photo: menu floats on the photo, white bar appears on scroll (Ivy, Nov 1) */
body.over-hero .site-header { margin-bottom: -79px; }
body.over-hero .site-header:not(.scrolled):not(.open) { background: transparent; border-bottom-color: transparent; box-shadow: none; }
body.over-hero .site-header.open:not(.scrolled) { background: var(--ink); }
body.over-hero .photo-hero .wrap { padding-top: calc(var(--hero-top, 170px) + 79px); }
body.over-hero .course-hero { padding-top: calc(70px + 79px); }
body.over-hero .hero-call .wrap { --hero-top: 170px; }
@media (max-width: 1000px) { body.over-hero .hero-call .wrap { --hero-top: 110px; } }
@media (max-width: 620px) { body.over-hero .hero-call .wrap { --hero-top: 44px; } }

/* Softer page background instead of pure white (Ivy, Nov 1) */
:root { --page: #F6F7F4; --gray-soft: #ECEFEB; }
body { background: var(--page); }
.site-header.scrolled { background: var(--page); }
@media (max-width: 1000px) { .site-header.scrolled.open .nav-menu { background: var(--page); } }

/* Top-bar button only appears once you scroll past the hero (Ivy, Nov 1) */
.nav-cta-scroll { opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .25s, transform .25s, visibility .25s; }
.site-header.scrolled .nav-cta-scroll { opacity: 1; visibility: visible; transform: none; }

/* Explore dropdown: learning paths on top, "All classes" as its own strip below (Ivy, Nov 1) */
.mega { left: -200px; width: 900px; grid-template-columns: repeat(3, 1fr); padding: 18px; gap: 6px; }
.mega .mega-label { grid-column: 1 / -1; font-size: 14px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); padding: 4px 10px 6px; }
.mega a:not(.mega-all) { grid-template-columns: 1fr; gap: 10px; align-items: start; }
.mega a:not(.mega-all) img { width: 100%; height: 120px; }
.mega-all { grid-column: 1 / -1; display: flex !important; justify-content: space-between; align-items: center; margin-top: 10px; padding: 18px 20px !important; background: var(--ink); border-radius: 14px; }
.mega-all strong { color: var(--white) !important; }
.mega-all small { color: #A9B6BE !important; }
.mega-all .mega-go { font-weight: 700; color: var(--mint); white-space: nowrap; }
.mega-all:hover { background: #0B1E28 !important; }
@media (max-width: 1000px) {
  .mega { width: auto; grid-template-columns: 1fr; }
  .mega a:not(.mega-all) { grid-template-columns: 64px 1fr; align-items: center; }
  .mega a:not(.mega-all) img { width: 64px; height: 48px; }
  .mega-all { flex-direction: column; align-items: flex-start !important; gap: 6px; }
}
.mega a:not(.mega-all) { align-content: start; } .mega a:not(.mega-all) strong { line-height: 1.3; }

/* Mobile menu: Explore dropdown blends into the dark menu, everything on one left edge (Ivy, Nov 1) */
@media (max-width: 1000px) {
  .site-header.open .mega { background: transparent; box-shadow: none; border: 0; padding: 0 !important; margin: 2px 0 10px; gap: 2px; width: auto; }
  .site-header.open .mega .mega-label { padding: 6px 0 8px; color: var(--mint); }
  .site-header.open .mega a:not(.mega-all) { padding: 8px 0; border-radius: 10px; }
  .site-header.open .mega a:not(.mega-all) strong { color: var(--white); font-size: 16px; }
  .site-header.open .mega a:not(.mega-all) small { color: #9FB0B8; }
  .site-header.open .mega-all { margin-top: 10px; padding: 16px 18px !important; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); }
  .site-header.open .mega-all .mega-go { margin-top: 4px; }
  /* scrolled (white) version */
  .site-header.scrolled.open .mega .mega-label { color: var(--teal); }
  .site-header.scrolled.open .mega a:not(.mega-all) strong { color: var(--ink); }
  .site-header.scrolled.open .mega a:not(.mega-all) small { color: var(--text-3); }
  .site-header.scrolled.open .mega-all { background: var(--ink); border-color: var(--ink); }
}

/* ===== Mobile menu, clean version (Ivy, Nov 1): simple rows, one left edge, no photos ===== */
@media (max-width: 1000px) {
  .site-header.open .nav-menu { padding: 8px 28px 28px; max-height: calc(100vh - 78px); overflow: auto; }
  .site-header.open .nav-menu > li { border-bottom: 1px solid rgba(255,255,255,.1); }
  .site-header.open .nav-menu > li.mobile-only { border-bottom: 0; }
  .site-header.open .nav-menu > li > a { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; font-size: 19px; font-weight: 600; }
  /* Explore list inside the menu */
  .site-header.open .mega { display: block; margin: -4px 0 14px; padding: 0 !important; background: transparent; border: 0; box-shadow: none; }
  .site-header.open .mega .mega-label { display: none; }
  .site-header.open .mega a, .site-header.open .mega a:not(.mega-all) { display: block !important; padding: 10px 0 10px 16px !important; border-left: 2px solid rgba(255,255,255,.14); border-radius: 0; margin: 0; background: none !important; }
  .site-header.open .mega img { display: none !important; }
  .site-header.open .mega strong, .site-header.open .mega a:not(.mega-all) strong { font-size: 16px; font-weight: 500; color: #E6ECEF; line-height: 1.35; }
  .site-header.open .mega small, .site-header.open .mega a:not(.mega-all) small { display: none; }
  .site-header.open .mega-all { border-left-color: var(--teal-bright) !important; margin-top: 2px !important; }
  .site-header.open .mega-all strong { color: var(--mint) !important; }
  .site-header.open .mega-all small, .site-header.open .mega-all .mega-go { display: none !important; }
  .site-header.open .mobile-only { border-top: 0; padding-top: 22px; margin-top: 0; }
  /* white (scrolled) version */
  .site-header.scrolled.open .nav-menu > li { border-bottom-color: var(--line); }
  .site-header.scrolled.open .mega a { border-left-color: var(--line); }
  .site-header.scrolled.open .mega strong, .site-header.scrolled.open .mega a:not(.mega-all) strong { color: var(--ink); }
  .site-header.scrolled.open .mega-all { border-left-color: var(--teal) !important; }
  .site-header.scrolled.open .mega-all strong { color: var(--teal) !important; }
}
@media (max-width: 1000px) {
  .site-header.open .mega-all { border-top: 0 !important; border-right: 0 !important; border-bottom: 0 !important; background: none !important; padding: 10px 0 10px 16px !important; }
  .site-header.open:not(.scrolled) { background: var(--ink) !important; }
}
/* Dropdown closes right after a click, until the mouse leaves and comes back */
.has-mega.mega-closed .mega { opacity: 0 !important; visibility: hidden !important; transform: translateY(8px) !important; }
/* Jump targets land below the sticky top bar */
#classes, #community, #faq, #goals, #facilitators, #teams, .track-head { scroll-margin-top: 96px; }

/* Selected filter tab "pops" when you arrive from the menu (Ivy, Nov 1) */
@keyframes tab-pop {
  0%   { transform: scale(1);    box-shadow: 0 0 0 0 rgba(27,176,170,.55); }
  35%  { transform: scale(1.12); box-shadow: 0 0 0 10px rgba(27,176,170,.25); }
  65%  { transform: scale(.97);  box-shadow: 0 0 0 16px rgba(27,176,170,0); }
  100% { transform: scale(1);    box-shadow: 0 0 0 0 rgba(27,176,170,0); }
}
#catalog-filters button.pop { animation: tab-pop .9s ease-out 2; }
@media (prefers-reduced-motion: reduce) { #catalog-filters button.pop { animation: none; outline: 3px solid var(--teal-bright); outline-offset: 3px; } }

/* "Explore" is a menu opener, not a link (Ivy, Nov 1) */
.nav-explore { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 28px 0; display: inline-flex; align-items: center; gap: 4px; position: relative; }
.site-header .nav-explore { color: #E6ECEF; }
.site-header.scrolled .nav-explore { color: var(--ink); }
.has-mega.mega-open .mega { opacity: 1; visibility: visible; transform: none; }
.has-mega.mega-closed .mega { opacity: 0 !important; visibility: hidden !important; }
@media (max-width: 1000px) {
  .site-header.open .nav-explore { width: 100%; justify-content: space-between; padding: 18px 0; font-size: 19px; font-weight: 600; cursor: default; color: #E6ECEF; }
  .site-header.scrolled.open .nav-explore { color: var(--ink); }
}
.nav-explore { font-size: 17px; font-weight: 500; }
.site-header .nav-explore .caret { border-color: #9FB0B8; }
.site-header.scrolled .nav-explore .caret { border-color: var(--text-3); }

/* "All classes" strip in the Explore dropdown: soft mint instead of black (Ivy, Nov 1) */
.mega-all { background: var(--mint-soft) !important; border: 1px solid var(--mint) !important; }
.mega-all strong { color: var(--ink) !important; }
.mega-all small { color: var(--text-2) !important; }
.mega-all .mega-go { color: var(--teal) !important; }
.mega-all:hover { background: var(--mint) !important; }

/* Sign-up celebration (Ivy, Nov 1) */
.confetti-canvas { position: fixed; inset: 0; pointer-events: none; z-index: 200; }
.points-pop { display: inline-block; margin: 0 auto 14px; padding: 8px 18px; border-radius: 999px; background: var(--teal); color: var(--white); font-weight: 800; font-size: 20px; letter-spacing: .02em; box-shadow: 0 10px 24px rgba(2,131,124,.35); opacity: 0; transform: scale(.4); }
.points-pop.show { animation: points-pop .7s cubic-bezier(.2,1.6,.4,1) .15s forwards; }
@keyframes points-pop { 0% { opacity: 0; transform: scale(.4) translateY(10px); } 100% { opacity: 1; transform: scale(1) translateY(0); } }
@media (prefers-reduced-motion: reduce) { .points-pop.show { animation: none; opacity: 1; transform: none; } }

/* Waitlist pop-up */
body.wl-open { overflow: hidden; }
.wl-overlay { position: fixed; inset: 0; z-index: 70; background: rgba(3,13,20,.6); display: flex; align-items: center; justify-content: center; padding: 20px; }
.wl-box.team-box { max-width: 880px; padding: 0; display: grid; grid-template-columns: 290px 1fr; overflow: hidden; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); }   /* dvh = the height you can actually see (iPhone: without the address bar and toolbar; Ivy, Nov 22, 2026) */
.tf-side { background: radial-gradient(circle at 90% 0%, rgba(27,176,170,.4), transparent 60%), var(--ink); color: var(--white); padding: 34px 28px; }
.tf-side .kicker { color: var(--mint); }
.tf-side h3 { color: var(--white); font-size: 24px; margin-bottom: 16px; }
.tf-side p { color: rgba(255,255,255,.75); font-size: 15px; margin-top: 18px; }
.tf-help { list-style: none; display: grid; gap: 12px; }
.tf-help li { position: relative; padding-left: 26px; color: var(--white); font-size: 16px; line-height: 1.4; }
.tf-help li::before { content: ""; position: absolute; left: 4px; top: 3px; width: 7px; height: 12px; border: solid var(--mint); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.tf-main { padding: 30px 30px 26px; overflow-y: auto; }
.tf-main h3 { font-size: 24px; margin-bottom: 14px; }
.team-box .form-done { grid-column: 1 / -1; padding: 40px 30px; }
.tf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.team-box .field { margin-bottom: 10px; }
.team-box .field input, .team-box .field select { padding: 11px 12px; }
.tf-needs { border: 0; margin: 2px 0 10px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tf-needs legend { font-size: 14px; font-weight: 700; color: var(--text-2); margin-bottom: 8px; }
.tf-needs label { display: flex; gap: 8px; align-items: center; font-size: 15px; font-weight: 600; color: var(--ink); background: var(--gray-soft); border: 1.5px solid transparent; border-radius: 999px; padding: 8px 12px; cursor: pointer; }
.tf-needs label:has(input:checked) { background: var(--mint-soft); border-color: var(--teal-bright); }
.tf-needs input { width: 17px; height: 17px; accent-color: var(--teal); flex-shrink: 0; }
@media (max-width: 760px) {
  .wl-box.team-box { grid-template-columns: 1fr; overflow-y: auto; }
  .tf-needs { grid-template-columns: 1fr 1fr; }
  .tf-needs label { font-size: 14px; padding: 8px 10px; }
  .tf-side { padding: 22px 20px 16px; }
  .tf-side h3 { font-size: 20px; margin-bottom: 10px; }
  .tf-side p { display: none; }
  .tf-help { gap: 6px; } .tf-help li { font-size: 15px; }
  .tf-main { padding: 20px; overflow: visible; }
  .tf-row { grid-template-columns: 1fr; gap: 0; }
  /* Phones (Ivy, Nov 22, 2026: form top and × were cut off, couldn't close it): the form fits the visible screen and
     scrolls inside, and the × stays pinned top-right so it can always be closed. */
  .wl-overlay:has(.team-box) { padding: 12px; }
  .wl-box.team-box { max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
  .team-box .wl-close { position: fixed; top: 20px; right: 20px; z-index: 3; width: 40px; height: 40px; padding: 0; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 28px; background: rgba(255,255,255,.95); color: var(--ink); box-shadow: 0 2px 10px rgba(3,13,20,.3); }
}
.wl-box { position: relative; background: var(--white); border-radius: var(--radius); padding: 36px 32px 30px; width: 100%; max-width: 460px; box-shadow: var(--shadow-lg); }
.wl-box h3 { font-size: 24px; margin: 8px 0 10px; }
.wl-note { color: var(--text-2); margin-bottom: 20px; }
.wl-close { position: absolute; right: 14px; top: 10px; background: none; border: 0; font-size: 30px; line-height: 1; color: var(--text-3); cursor: pointer; padding: 4px 8px; }
.wl-close:hover { color: var(--ink); }
.wl-check { display: flex; align-items: center; gap: 10px; font-size: 16px; color: var(--text-2); margin: 4px 0 20px; cursor: pointer; }
.wl-check input { width: 18px; height: 18px; accent-color: var(--teal); }
.wl-submit { width: 100%; }

/* Certificate stack (home page): three sample certificates, fanned. Classic certificate layout: framed border, centered text, seal. */
.cert-stack { position: relative; aspect-ratio: 4 / 3.2; max-width: 580px; width: 100%; justify-self: center; }
.cert { position: absolute; left: 5%; top: 9%; width: 86%; aspect-ratio: 1.414; background: #FFFFFF; padding: 7px; box-shadow: var(--shadow-lg); transition: transform .45s ease;
  background-image: linear-gradient(135deg, #00837C, #28B2C1 55%, #03DBCF); }
.cert-inner { position: relative; height: 100%; background: #FFFFFF; outline: 1px solid #28B2C1; outline-offset: -8px; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 5% 9% 3%; overflow: hidden;
  background-image: radial-gradient(circle at 50% 120%, rgba(182,243,232,.55), transparent 55%); }
.cert-inner::before, .cert-inner::after { content: ""; position: absolute; width: 22px; height: 22px; border: 2px solid #28B2C1; }
.cert-inner::before { left: 12px; top: 12px; border-right: 0; border-bottom: 0; }
.cert-inner::after { right: 12px; bottom: 12px; border-left: 0; border-top: 0; }
/* Two logos on certificates (Ivy, Nov 13, 2026): Gametize | G ACADEMY (Gametize Academy) */
.cert-logos { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 4%; }
.cert-logo { height: 20px; width: auto; }
.cert-logo.cert-logo-gtz { height: 14px; }
.cert-logo-div { width: 1px; height: 18px; background: #C5D2D6; }
.cert-kind { font-size: clamp(18px, 2.3vw, 26px); font-weight: 800; letter-spacing: .32em; text-transform: uppercase; color: var(--ink); line-height: 1; padding-left: .32em; }
.cert-sub { font-size: 10px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: var(--teal); margin: 4px 0 4%; }
.cert-line { font-size: 10px; color: var(--text-3); font-style: italic; }
.cert-name { font-size: clamp(18px, 2.2vw, 25px); font-weight: 800; color: var(--ink); line-height: 1.2; margin: 2px 0 3px; padding: 0 16px 3px; border-bottom: 1.5px solid #28B2C1; }
.cert-class { font-size: clamp(11px, 1.25vw, 14px); font-weight: 700; color: var(--teal); line-height: 1.3; margin-top: 3px; }
.cert-path { font-size: 8.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); margin-top: 3px; }
.cert-foot { margin-top: auto; width: 100%; display: flex; justify-content: space-between; align-items: flex-end; }
.cert-sign { display: flex; flex-direction: column; align-items: center; width: 32%; }
.cert-val { font-size: 10px; font-weight: 700; color: var(--ink); padding-bottom: 3px; border-bottom: 1px solid var(--text-3); width: 100%; }
.cert-sig { display: block; height: 34px; width: auto; max-width: 80%; margin: 0 auto -4px; }
.cert-sign .cert-lbl { height: 3em; line-height: 1.5; }   /* same height both sides, so the two lines stay level */
.cert-signer { display: block; font-weight: 800; color: var(--ink); letter-spacing: .12em; }
.cert-lbl { font-size: 8px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); margin-top: 3px; }
.cert-seal { width: 46px; height: auto; margin-bottom: 0; filter: drop-shadow(0 3px 5px rgba(3,13,20,.25)); }
.cert-id { font-size: 8px; letter-spacing: .08em; color: var(--text-3); margin-top: 3px; }
/* Each certificate in the stack gets its own brand color: front teal, middle ink, back mint */
.cert.c2 { background-image: linear-gradient(135deg, #030D14, #0A1A24 55%, #02837C); }
.cert.c2 .cert-inner { outline-color: #030D14; }
.cert.c3 { background-image: linear-gradient(135deg, #B6F3E8, #E8FBF7 50%, #1BB0AA); }
.cert.c3 .cert-inner { outline-color: #1BB0AA; }
.cert.c3 { transform: translate(10%, -11%) rotate(6deg); }
.cert.c2 { transform: translate(5%, -5%) rotate(2.5deg); }
.cert.c1 { transform: translate(-3%, 5%) rotate(-2deg); }
.cert-stack:hover .c3 { transform: translate(16%, -16%) rotate(9deg); }
.cert-stack:hover .c2 { transform: translate(7%, -7%) rotate(4deg); }
.cert-stack:hover .c1 { transform: translate(-7%, 9%) rotate(-4deg); }
@media (max-width: 900px) { .cert-stack { max-width: 460px; margin: 20px auto 30px; } }
.wl-box .form-done { padding: 10px 0 0; }
.wl-box .form-done p { color: var(--text-2); }
.wl-done-news { font-size: 16px; margin-top: 8px; }
.wl-done-close { margin-top: 22px; }
.wl-done-points { font-size: 16px; margin-top: 10px; background: var(--mint); color: var(--ink) !important; border-radius: 12px; padding: 12px 14px; }

/* Admin page (/admin/) */
.admin { padding-top: 70px; min-height: 70vh; }
.adm-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin-top: 24px; overflow-x: auto; }
.adm-center { text-align: center; max-width: 560px; margin: 30px auto 0; padding: 40px 30px; }
.adm-center .lead { margin: 0 auto 22px; }
.adm-msg { margin-top: 14px; color: var(--text-3); font-size: 16px; }
.adm-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 18px; color: var(--text-2); font-size: 16px; flex-wrap: wrap; }
.adm-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 22px; }
.adm-stat { background: var(--ink); color: var(--white); border-radius: var(--radius); padding: 22px; }
.adm-stat b { display: block; font-size: 36px; color: var(--mint); line-height: 1.1; }
.adm-stat span { font-size: 15px; color: #C3CDD3; }
.adm-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.adm-head h2 { font-size: 22px; }
.adm-table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 16px; }
.adm-table th { text-align: left; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); padding: 10px 12px; border-bottom: 2px solid var(--line); }
.adm-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.adm-table .num { text-align: right; font-weight: 700; }
@media (max-width: 800px) { .adm-stats { grid-template-columns: 1fr 1fr; } }

/* Sign in (header, top right): learners only */
.nav-cta { align-items: center; }
.signin-btn { text-decoration: none; font: inherit; font-size: 17px; font-weight: 500; background: none; border: 0; cursor: pointer; color: #E6ECEF; display: inline-flex; align-items: center; gap: 8px; padding: 10px 6px; }
.signin-btn:hover { color: var(--white); }
.site-header.scrolled .signin-btn { color: var(--ink); }
.signin-ico { width: 18px; height: 18px; border: 1.8px solid currentColor; border-radius: 50%; position: relative; overflow: hidden; }
.signin-ico::before { content: ""; position: absolute; left: 50%; top: 3px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: currentColor; }
.signin-ico::after { content: ""; position: absolute; left: 50%; top: 11px; width: 12px; height: 10px; margin-left: -6px; border-radius: 50%; background: currentColor; }
@media (max-width: 1000px) {
  .site-header.open .mobile-signin { display: flex !important; flex-direction: row !important; align-items: center; gap: 18px; padding-top: 14px; }
  .site-header.open .mobile-signin a { font-size: 17px; font-weight: 600; color: #E6ECEF; }
  .site-header.scrolled.open .mobile-signin a { color: var(--ink); }
}

/* A single certificate (class pages), same design as the home page stack */
.split.cert-split { gap: 36px; grid-template-columns: 1fr 1fr; }
@media (max-width: 760px) { .split.cert-split { grid-template-columns: 1fr; gap: 20px; } }
.cert-solo { position: relative; width: 100%; aspect-ratio: 1.414; container-type: inline-size; }
.cert-stack .cert { container-type: inline-size; }   /* home page samples scale the same way as a single certificate */
/* Text sizes follow the certificate's width, so it looks the same at any size */
:is(.cert-single, .cert-stack .cert) .cert-logos { gap: 2.2cqw; }
:is(.cert-single, .cert-stack .cert) .cert-logo { height: 4.4cqw; }
:is(.cert-single, .cert-stack .cert) .cert-logo.cert-logo-gtz { height: 3.1cqw; }
:is(.cert-single, .cert-stack .cert) .cert-logo-div { height: 4cqw; }
:is(.cert-single, .cert-stack .cert) .cert-sig { height: 8.6cqw; }
:is(.cert-single, .cert-stack .cert) .cert-kind { font-size: 5.3cqw; }
:is(.cert-single, .cert-stack .cert) .cert-sub { font-size: 2cqw; }
:is(.cert-single, .cert-stack .cert) .cert-line { font-size: 2cqw; }
:is(.cert-single, .cert-stack .cert) .cert-name { font-size: 7.4cqw; }
:is(.cert-single, .cert-stack .cert) .cert-class { font-size: 2.9cqw; }
:is(.cert-single, .cert-stack .cert) .cert-path { font-size: 1.75cqw; }
:is(.cert-single, .cert-stack .cert) .cert-val { font-size: 2cqw; }
:is(.cert-single, .cert-stack .cert) :is(.cert-lbl, .cert-id) { font-size: 1.6cqw; }
:is(.cert-single, .cert-stack .cert) .cert-seal { width: 9.4cqw; }
/* Spacing also follows the width, so at small sizes (e.g. My Journey) the Certificate ID stays inside the frame line */
:is(.cert-single, .cert-stack .cert) .cert-inner { padding: 4.2cqw 9% 4.4cqw; }
:is(.cert-single, .cert-stack .cert) .cert-logos { margin-bottom: 2.6cqw; }
:is(.cert-single, .cert-stack .cert) .cert-sub { margin: .8cqw 0 2.6cqw; }
:is(.cert-single, .cert-stack .cert) .cert-id { margin-top: .4cqw; }
/* Single certificate: the frame, corner marks and small gaps shrink with it too (phones) */
.cert.cert-single { padding: 1.6cqw; }
.cert-single .cert-inner { outline-offset: -1.8cqw; }
.cert-single .cert-inner::before, .cert-single .cert-inner::after { width: 5cqw; height: 5cqw; }
.cert-single .cert-inner::before { left: 2.7cqw; top: 2.7cqw; }
.cert-single .cert-inner::after { right: 2.7cqw; bottom: 2.7cqw; }
.cert-single .cert-val { padding-bottom: .7cqw; }
.cert-single .cert-lbl { margin-top: .7cqw; }
.cert-single .cert-name { padding-bottom: .5cqw; margin: .5cqw 0 .7cqw; }
.cert.cert-single { position: absolute; inset: 0; left: 0; top: 0; width: 100%; transform: none; }

/* Learner's name on certificates: flowing script (free Google Font "Great Vibes") */
.cert-name { font-family: "Great Vibes", cursive; font-weight: 400; font-size: clamp(28px, 3.4vw, 38px); line-height: 1.05; color: #0A1A24; padding: 0 22px 2px; }
:is(.cert-single, .cert-stack .cert) .cert-name { font-size: 7.4cqw; }

/* Animated header logo: dots gather (0-0.9s), lines connect them (0.9-1.7s), lines turn into the G (1.7-2.6s), center lights up */
.nav-logo { display: inline-flex; color: var(--white); }
.site-header.scrolled .nav-logo { color: var(--ink); }
.logo-anim { height: 64px; width: auto; overflow: visible; display: block; }
@media (max-width: 1000px) { .logo-anim { height: 52px; } }
.site-header.scrolled .logo-anim .lg-glow { opacity: 0; }
.logo-anim .lg-dot { transform-box: fill-box; transform-origin: center;
  animation: lg-gather .7s cubic-bezier(.2,1.2,.4,1) both, lg-twinkle 6s ease-in-out infinite;
  animation-delay: calc(var(--i) * .1s), calc(3.2s + var(--i) * .5s); }
.logo-anim .lg-net { stroke-dasharray: 100; animation: lg-connect 1.8s ease-in-out .9s both; }
.logo-anim .lg-arc { stroke-dasharray: 100; animation: lg-draw .9s cubic-bezier(.6,0,.2,1) 1.7s both; }
.logo-anim .lg-core { transform-box: fill-box; transform-origin: center; animation: lg-pop .5s cubic-bezier(.2,1.6,.4,1) 2.4s both, lg-pulse 3s ease-in-out 3.2s infinite; }
.logo-anim .lg-glow { transform-box: fill-box; transform-origin: center; animation: lg-fade .6s ease 2.5s both, lg-breathe 3s ease-in-out 3.2s infinite; }
.logo-anim .lg-word { animation: lg-fade .8s ease .3s both; }
@keyframes lg-gather { from { transform: translate(var(--dx), var(--dy)) scale(0); opacity: 0; } 60% { opacity: 1; } to { transform: none; opacity: 1; } }
/* lines draw in, hold, then fade away as the G appears */
@keyframes lg-connect { 0% { stroke-dashoffset: 100; opacity: .9; } 45% { stroke-dashoffset: 0; opacity: .9; } 70% { stroke-dashoffset: 0; opacity: .6; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes lg-draw { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes lg-pop { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes lg-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes lg-twinkle { 0%, 88%, 100% { transform: scale(1); opacity: 1; } 94% { transform: scale(1.45); opacity: .75; } }
@keyframes lg-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.18); } }
@keyframes lg-breathe { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.35); opacity: .6; } }
@media (prefers-reduced-motion: reduce) { .logo-anim * { animation: none !important; } .logo-anim .lg-net { opacity: 0; } }

/* Signed-in photo in the header */
.signin-photo { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }

/* Sign-in page (/signin/) */
.auth-page { padding-top: 60px; }
.auth-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.auth-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 40px 36px; max-width: 480px; }
.auth-title { font-size: 30px; line-height: 1.2; margin: 8px 0 10px; }
.btn-google { width: 100%; margin-top: 24px; background: var(--white); color: var(--ink); border: 1.5px solid var(--line); }
.btn-google:hover { border-color: var(--teal); }
/* Google's own "Continue as <name>" button (Ivy, Nov 20, 2026): same place and width as the plain button it replaces */
.auth-gsi { margin-top: 24px; min-height: 44px; display: flex; justify-content: center; }
.auth-gsi[hidden] { display: none; }
@media (max-width: 760px), (max-height: 500px) and (orientation: landscape) { #si-form .auth-gsi { margin-top: 0; } }
/* Same height as Google's own sign-in button (Ivy, Nov 21, 2026, same as Certivate 2.0): Google's biggest button is
   40px tall and can't be made bigger, so the email box, code box, Continue / Sign in and the plain Google button match it. */
.auth-card .btn-google, .auth-card .auth-wide { box-sizing: border-box; height: 40px; min-height: 40px; padding: 0 24px; font-size: 15px; }
.auth-card .field input { box-sizing: border-box; height: 40px; padding: 0 14px; font-size: 15px; }
.auth-card .field input.code-input { font-size: 18px; }
.g-mark { width: 20px; height: 20px; border-radius: 50%; background: conic-gradient(#4285F4 0 25%, #34A853 0 50%, #FBBC05 0 75%, #EA4335 0); -webkit-mask: radial-gradient(circle, transparent 0 4px, #000 4.5px); mask: radial-gradient(circle, transparent 0 4px, #000 4.5px); }
.auth-or { display: flex; align-items: center; gap: 12px; color: var(--text-3); font-size: 14px; margin: 20px 0; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-wide { width: 100%; }
.auth-small { font-size: 15px; color: var(--text-3); margin-top: 16px; }
.auth-msg { margin-top: 12px; font-size: 15px; color: var(--teal); min-height: 1em; }
/* Sign-in: "Did you mean …?" question and the "I'm not a robot" box (Nov 20, 2026), same size as the other sign-in messages */
#si-suggest { color: var(--text); line-height: 1.6; }
#si-suggest b { word-break: break-all; }
.auth-turnstile { margin: 0 0 14px; }   /* right above the Continue button (Ivy, Nov 20, 2026) */
/* Code expired: same red warning as the proof box warnings (.ask-codewarn), so it can't be missed (Ivy, Nov 20, 2026) */
#si-expiry.is-expired { color: #B42318; font-weight: 600; }
/* "Please tick “Verify you are human” above." is a warning: same red (Ivy, Nov 20, 2026) */
.auth-msg.is-tick-warn { color: #B42318; font-weight: 600; }
/* No word or two left alone on the last line of a sentence, anywhere on the site (Ivy, Nov 20, 2026: "very bad habit") */
p, li, h1, h2, h3, .auth-msg { text-wrap: pretty; }
.auth-terms, .frame-badge, .my-badge small { text-wrap: balance; }   /* even lines on phones: not "Privacy Policy.", "included." or "earn it" alone (Ivy, Nov 20, 2026) */
.auth-turnstile:empty { display: none; }
.code-input { font-size: 26px; letter-spacing: .4em; text-align: center; font-weight: 700; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--teal); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link-btn:disabled { color: var(--text); opacity: .6; cursor: default; text-decoration: none; font-weight: 500; }
.auth-side img { width: 100%; border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; box-shadow: var(--shadow-lg); margin-bottom: 26px; }
.auth-side .ticks { gap: 10px; }
@media (max-width: 1000px) { .auth-wrap { grid-template-columns: 1fr; } .auth-side { display: none; } .auth-card { margin: 0 auto; padding: 32px 22px; } }

/* Learner page (/my/) */
.my-page { padding-top: 60px; }
.my-hero { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; background: var(--ink); color: var(--white); border-radius: var(--radius); padding: 30px 34px; }
.my-hero .muted { color: #A9B7BF; }
.my-hero .kicker { color: var(--mint); }
.my-who { display: flex; align-items: center; gap: 20px; }
.my-av { width: 72px; height: 72px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; background: var(--teal); color: var(--white); font-size: 30px; font-weight: 700; box-shadow: 0 0 0 3px var(--teal-bright); overflow: hidden; }
.my-av img { width: 100%; height: 100%; object-fit: cover; }
/* Header avatar without a Google photo: first letter in a teal circle, same as My Journey */
.signin-ico.signin-letter { width: 26px; height: 26px; border: 0; background: var(--teal); color: var(--white); display: grid; place-items: center; font-size: 14px; font-weight: 700; line-height: 1; overflow: visible; }
.signin-ico.signin-letter::before, .signin-ico.signin-letter::after { display: none; }
.my-hero h1 { color: var(--white); margin: 2px 0; }
.my-points { display: flex; align-items: center; gap: 26px; }
.my-pts b { display: block; font-size: 44px; line-height: 1; color: var(--mint); }
.my-pts span { color: #A9B7BF; font-size: 15px; }
.my-level { min-width: 240px; }
.my-level-top { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; margin-bottom: 8px; }
.my-level-top span { color: #A9B7BF; }
.my-bar { height: 10px; border-radius: 999px; background: rgba(182,243,232,.18); overflow: hidden; }
.my-bar span { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, #02837C, #1BB0AA, #B6F3E8); transition: width 1s ease; }
.my-resume { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 24px; padding: 26px 30px; border-radius: var(--radius); background: radial-gradient(circle at 90% 0%, rgba(27,176,170,.35), transparent 55%), var(--white); border: 2px solid var(--teal-bright); box-shadow: var(--shadow); color: var(--ink); transition: transform .2s, box-shadow .2s; }
.my-resume:hover { box-shadow: var(--shadow-lg); }
.my-resume > div { flex: 1; min-width: 0; }
.my-resume .kicker { margin-bottom: 6px; }
.my-resume h2 { font-size: 24px; margin-bottom: 6px; }
.my-resume-next { font-size: 18px; font-weight: 700; color: var(--teal-dark); margin-bottom: 12px; }
.my-resume .my-bar { background: var(--gray-soft); max-width: 420px; margin-bottom: 6px; }
.my-resume small { font-size: 15px; color: var(--text-3); }
.my-resume-go { flex-shrink: 0; }
@media (max-width: 700px) { .my-resume { flex-direction: column; align-items: stretch; padding: 22px 18px; } .my-resume-go { width: 100%; } }
.my-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; margin-top: 24px; align-items: start; }
.my-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin-bottom: 24px; }
.my-card h2 { font-size: 21px; margin-bottom: 6px; }
.my-sub { font-size: 16px; margin-bottom: 14px; }
.my-class { display: flex; align-items: center; gap: 16px; padding: 12px; border-radius: 14px; color: var(--ink); }
a.my-class:hover { background: var(--mint-soft); }
.my-class img { width: 84px; height: 60px; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
.my-class b { display: block; font-size: 16px; line-height: 1.3; }
.my-class small { color: var(--text-3); font-size: 14px; }
.my-go { margin-left: auto; font-weight: 700; color: var(--teal); font-size: 15px; white-space: nowrap; padding-left: 10px; }
.my-unlock .my-bar { background: var(--gray-soft); margin-bottom: 8px; }
.my-unlock span { font-size: 15px; color: var(--text-2); }
.my-unlock + .my-unlock { margin-top: 14px; }
.my-earn { list-style: none; }
.my-earn li { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.my-earn li > span:not(.earn-ico) { flex: 1; }
.earn-ico { flex-shrink: 0; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; }
.earn-ico svg { width: 19px; height: 19px; }
/* Same game colors as the class player */
.earn-ico.c1 { background: #E6F7F6; color: #02837C; }
.earn-ico.c2 { background: #E8F0FF; color: #1F63D1; }
.earn-ico.c3 { background: #F0ECFE; color: #6447D6; }
.earn-ico.c4 { background: #FFF0EE; color: #D9483B; }
.earn-ico.c5 { background: #E7F8EE; color: #1E8A52; }
.earn-ico.c6 { background: #FFF4D6; color: #C98A00; }
.earn-ico.c7 { background: #FCEBF6; color: #C2338F; }
.my-earn li:last-child { border-bottom: 0; }
.my-earn b { color: var(--teal); }
@media (max-width: 1000px) { .my-grid { grid-template-columns: 1fr; } .my-points { width: 100%; } .my-level { flex: 1; min-width: 0; } }
.my-name { margin: 0 auto; }
.si-email-locked { background: var(--gray-soft) !important; color: var(--text-3); }
.auth-small.center { text-align: center; }
.auth-card > div > .muted { margin-bottom: 20px; }
/* Learner page (/my/): no website menu, just the logo and the learner's photo */
.learner-app .nav-menu, .learner-app .nav-cta-scroll, .learner-app .nav-toggle { display: none !important; }
.learner-app .nav-cta { display: flex !important; }
.auth-help { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; color: var(--text-3); text-align: center; }
.auth-help a { color: var(--teal); font-weight: 600; }

/* Class player (/learn/<class>/): game-style, one card at a time. Brand palette only. */
.learn { padding: 28px 0 80px; background: var(--gray-soft); min-height: 80vh; }
.learn .learn-grid { display: grid; grid-template-columns: 290px 1fr; gap: 28px; align-items: start; }
.lp-side { position: sticky; top: 96px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 16px; }
.lp-back { font-size: 15px; color: var(--teal); font-weight: 600; display: block; margin-bottom: 14px; }
.lp-side .kicker { margin-bottom: 6px; }
.lp-class { font-size: 19px; line-height: 1.3; margin: 0 0 4px; }
.lp-mission-mini { display: block; width: 100%; text-align: left; font: inherit; background: var(--ink); color: var(--white); border: 0; border-radius: 12px; padding: 10px 12px; margin: 4px 0 10px; cursor: pointer; }
.lp-mission-mini span { display: block; font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mint); }
.lp-mission-mini b { display: block; font-size: 15px; line-height: 1.35; }
.lp-mission-mini:hover { background: var(--ink-2); }
.lp-prog-text { font-size: 15px; color: var(--text-3); }
.ico { display: inline-grid; place-items: center; width: 1em; height: 1em; flex-shrink: 0; }
.ico svg { width: 100%; height: 100%; display: block; }
/* Step map */
.lp-steps { list-style: none; margin: 14px 0 16px; }
.lp-node { position: relative; }
.lp-node:not(:last-child)::before { content: ""; position: absolute; left: 29px; top: 44px; height: calc(100% - 32px); width: 4px; margin-left: -2px; background: var(--line); border-radius: 2px; }
.lp-node.done:not(:last-child)::before { background: var(--teal-bright); }
.lp-node button { width: 100%; display: flex; gap: 12px; align-items: center; text-align: left; background: none; border: 0; padding: 7px 8px; border-radius: 14px; cursor: pointer; font: inherit; color: var(--ink); position: relative; margin-bottom: 4px; }
.lp-node button:hover:not(:disabled) { background: var(--mint-soft); }
.lp-node button:disabled { cursor: not-allowed; }
.lp-node.on button { background: var(--mint-soft); }
.lp-dot { flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 17px; background: var(--white); border: 3px solid var(--teal-bright); color: var(--teal); position: relative; z-index: 1; transition: transform .2s; }
.lp-dot .ico { width: 20px; height: 20px; }
.lp-node button:hover:not(:disabled) .lp-dot { transform: scale(1.08); }
.lp-node.done .lp-dot { background: var(--teal); border-color: var(--teal); color: var(--white); }
.lp-node.locked .lp-dot { background: var(--gray-soft); border-color: var(--line); color: #9AA5AB; }
.lp-node.on .lp-dot { animation: lp-ring 1.8s ease-in-out infinite; }
@keyframes lp-ring { 0%, 100% { box-shadow: 0 0 0 4px rgba(27,176,170,.28); } 50% { box-shadow: 0 0 0 10px rgba(27,176,170,.08); } }
.lp-trophy .lp-dot { border-radius: 14px; }
.lp-trophy.done .lp-dot { background: var(--ink); border-color: var(--ink); color: var(--mint); }
.lp-st { font-size: 15px; font-weight: 700; line-height: 1.3; }
.lp-st small { display: block; font-weight: 600; font-size: 15px; color: var(--text-3); margin-top: 2px; }
.lp-node.locked .lp-st { color: var(--text-2); }
.lp-node.locked .lp-st small { color: var(--text-3); }
.lp-node.done .lp-st small, .lp-node.open .lp-st small { color: var(--teal); }
/* Points and level */
.lp-level { background: var(--ink); color: var(--white); border-radius: 16px; padding: 16px; }
.lp-level-label { display: block; font-size: 14px; color: rgba(255,255,255,.72); margin-bottom: 4px; }
.lp-level-top { display: flex; justify-content: space-between; align-items: center; font-size: 15px; }
.lp-level-top b { font-size: 26px; color: var(--mint); margin-right: 4px; }
.lp-level .my-bar { margin: 10px 0 6px; }
.lp-level small { color: rgba(255,255,255,.7); font-size: 15px; }
#lp-lvl { font-weight: 800; font-size: 15px; background: rgba(182,243,232,.15); color: var(--mint); padding: 4px 10px; border-radius: 999px; }
/* Top bar: progress, streak and points, always on screen */
.lp-main { outline: none; min-width: 0; }
.lp-hud { position: sticky; top: 90px; z-index: 5; display: flex; align-items: center; gap: 14px; background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 8px 8px 8px 22px; margin-bottom: 20px; box-shadow: var(--shadow); }
/* Option 2 (Ivy, Nov 14, 2026): a solid band in the page color around the pinned bar, so content scrolls
   out of sight behind it instead of peeking out above and around the pill. A plain rectangle behind the pill (no layout change). */
.lp-hud { background: transparent; border-color: transparent; box-shadow: none; }
.lp-hud::before, .lp-hud::after { content: ""; position: absolute; z-index: -1; pointer-events: none; }
.lp-hud::before { left: -14px; right: -14px; top: -28px; bottom: -12px; background: #F2F4F4; }   /* the band: same grey as the class page background (.learn gradient ends in #F2F4F4) */
.lp-hud::after { inset: 0; background: var(--white); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow); }   /* the white pill, on top of the band */
@media (max-width: 1000px) {
  .lp-play .lp-hud::before, .lp-play .lp-hud::after { display: none; }
  .lp-play .lp-hud { background: var(--white); border-color: var(--line); box-shadow: 0 4px 14px rgba(3,13,20,.06); }
}   /* phones/tablets in class: the bar is already a flat strip at the top */
.lp-hud-label { font-size: 15px; font-weight: 700; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 38%; }
.lp-hud-bar { flex: 1; min-width: 60px; height: 14px; border-radius: 999px; background: var(--gray-soft); overflow: hidden; }
.lp-hud-bar span { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, #02837C, #1BB0AA, #B6F3E8); transition: width .6s cubic-bezier(.3,1.4,.5,1); }
.lp-mapbtn { display: none; align-items: center; gap: 6px; font: inherit; font-size: 15px; font-weight: 700; color: var(--ink); background: var(--gray-soft); border: 0; border-radius: 999px; padding: 7px 12px; cursor: pointer; white-space: nowrap; }
.lp-mapbtn .ico { width: 18px; height: 18px; color: var(--cd, #02837C); }
.lp-mapbtn[aria-expanded="true"] { background: var(--ink); color: var(--white); }
.lp-mapbtn[aria-expanded="true"] .ico { color: var(--mint); }
/* Looks tappable (Ivy, Nov 14, 2026: "how do I know the Steps icon can be clicked?"): white button with a step-color border,
   a press shadow like the other buttons, and a down arrow that flips up while the step list is open. Color/shadow only, no hover movement. */
.lp-mapbtn { background: var(--white); border: 2px solid color-mix(in srgb, var(--c, #1BB0AA) 55%, white); box-shadow: 0 3px 0 color-mix(in srgb, var(--c, #1BB0AA) 35%, white); padding: 6px 10px 6px 12px; }
.lp-mapbtn:active { box-shadow: 0 1px 0 color-mix(in srgb, var(--c, #1BB0AA) 35%, white); }
.lp-mapbtn-caret { width: 9px; height: 9px; margin: -3px 2px 0 4px; border: solid var(--cd, #02837C); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); transition: transform .2s; flex: none; }
.lp-mapbtn[aria-expanded="true"] { border-color: var(--ink); box-shadow: none; }
.lp-mapbtn[aria-expanded="true"] .lp-mapbtn-caret { border-color: var(--mint); transform: rotate(-135deg); margin-top: 3px; }
.lp-chip { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 7px 16px; font-weight: 800; font-size: 16px; white-space: nowrap; }
.lp-chip .ico { width: 20px; height: 20px; }
.lp-coin { background: var(--ink); color: var(--mint); }
.lp-streak { background: var(--mint); color: var(--teal-dark); }
.pulse { animation: lp-pulse .55s cubic-bezier(.3,1.6,.5,1); }
@keyframes lp-pulse { 40% { transform: scale(1.2); } }
/* Mission cards */
.lp-mission { background: radial-gradient(circle at 88% -10%, rgba(27,176,170,.45), transparent 55%), radial-gradient(circle at 0% 120%, rgba(182,243,232,.14), transparent 50%), var(--ink); color: var(--white); border-radius: var(--radius); padding: 44px 44px 40px; margin-bottom: 18px; }
.lp-mission .kicker { color: var(--mint); display: inline-flex; align-items: center; }
.lp-mission h2 { font-size: clamp(30px, 3.4vw, 44px); margin: 2px 0 12px; color: var(--white); }
.lp-mission p { color: rgba(255,255,255,.82); max-width: 600px; }
.lp-mission.center { text-align: center; }
.lp-mission.center p { margin: 0 auto; }
.lp-mission.center .lp-stats { justify-content: center; }
.lp-stats { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 28px; }
.lp-stat { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.07); border: 1px solid rgba(182,243,232,.28); border-radius: 999px; padding: 8px 16px; font-weight: 700; font-size: 15px; }
.lp-stat .ico { width: 18px; height: 18px; color: var(--mint); }
.lp-go { font-size: 20px; padding: 16px 44px; background: var(--teal-bright); box-shadow: 0 6px 0 var(--teal-dark); }
.lp-go:hover { background: var(--teal-bright); }
.lp-go:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--teal-dark); }
.lp-ghost { color: var(--white); border-color: rgba(255,255,255,.4); background: transparent; }
.lp-ghost:hover { border-color: var(--mint); color: var(--mint); }
.lp-btns { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.lp-center { justify-content: center; }
.lp-cleared { display: inline-flex; align-items: center; gap: 5px; background: var(--mint); color: var(--teal-dark); border-radius: 999px; padding: 3px 12px; font-size: 15px; margin-left: 12px; }
.lp-cleared .ico { width: 14px; height: 14px; }
/* Badge */
.lp-badge { width: 130px; height: 130px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(#1BB0AA, #B6F3E8, #02837C, #1BB0AA); box-shadow: 0 0 0 8px rgba(182,243,232,.12), 0 0 60px rgba(27,176,170,.55); animation: lp-badge 1s cubic-bezier(.2,1.4,.4,1); }
.lp-badge > span { width: 100px; height: 100px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; color: var(--mint); }
.lp-badge .ico { width: 50px; height: 50px; }
.lp-badge-sm { width: 96px; height: 96px; }
.lp-badge-sm > span { width: 72px; height: 72px; }
.lp-badge-sm .ico { width: 34px; height: 34px; }
@keyframes lp-badge { from { transform: scale(0) rotate(-200deg); } }
/* Cards */
.lp-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 30px; margin-bottom: 18px; box-shadow: var(--shadow); }
.lp-card.center { text-align: center; }
.lp-card h3 { font-size: 24px; margin-bottom: 12px; }
.lp-challenge { border: 2px solid var(--teal-bright); }
.lp-card-tag { display: inline-block; font-size: 15px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); background: var(--gray-soft); padding: 4px 12px; border-radius: 999px; margin-bottom: 12px; }
.lp-challenge .lp-card-tag { color: var(--white); background: var(--teal); }
.lp-in { animation: lp-in .45s cubic-bezier(.2,1.2,.4,1); }
@keyframes lp-in { from { opacity: 0; transform: translateY(18px) scale(.98); } }
.lp-nav { display: flex; align-items: center; gap: 12px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.lp-next { margin-left: auto; }
.lp-next:disabled { background: var(--gray-soft); color: var(--text-3); cursor: not-allowed; box-shadow: none; }
.lp-next.lp-ready { box-shadow: 0 5px 0 var(--teal-dark); }
.lp-next.lp-ready:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--teal-dark); }
.lp-body p { margin-bottom: 12px; color: var(--text-2); }
.lp-body p:last-child { margin-bottom: 0; }
.lp-key { background: var(--mint-soft); border-radius: 12px; padding: 12px 16px; color: var(--ink) !important; margin-top: 14px; font-weight: 600; }
.lp-note { font-size: 16px; }
.lp-small { font-size: 15px; color: var(--text-3); margin-bottom: 12px; }
.lp-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.lp-table th { text-align: left; background: var(--gray-soft); padding: 10px 12px; font-size: 15px; }
.lp-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--text-2); }
.lp-list { padding-left: 22px; display: grid; gap: 8px; color: var(--text-2); }
.lp-never li::marker { color: var(--teal); }
.lp-prompt-wrap { position: relative; margin: 12px 0; }
.lp-prompt { background: var(--ink); color: var(--mint); border-radius: 14px; padding: 18px 20px; padding-right: 86px; font-size: 17px; line-height: 1.55; margin: 10px 0 0; text-align: left; }
.lp-copy { position: absolute; top: 12px; right: 12px; background: var(--teal); color: var(--white); border: 0; border-radius: 8px; padding: 6px 12px; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.lp-text { width: 100%; border: 2px solid var(--line); border-radius: 14px; padding: 14px 16px; font: inherit; font-size: 17px; resize: vertical; margin: 4px 0 6px; }
.lp-text:focus { outline: none; border-color: var(--teal-bright); }
/* Game rounds */
.lp-dots { display: flex; gap: 6px; margin: 2px 0 14px; }
.lp-dots span { flex: 1; height: 8px; border-radius: 999px; background: var(--gray-soft); transition: background .3s; }
.lp-dots span.now { background: var(--mint); }
.lp-dots span.ok { background: var(--teal-bright); }
.lp-dots span.no { background: var(--gray); }
.lp-round { border: 2px solid var(--line); border-radius: 18px; padding: 28px 24px; text-align: center; transition: background .3s, border-color .3s; }
.lp-round.ok { background: var(--mint-soft); border-color: var(--teal-bright); }
.lp-round.no { background: var(--gray-soft); border-color: var(--gray); }
.lp-round.shake { animation: lp-shake .4s; }
@keyframes lp-shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.lp-round-n { font-size: 15px; font-weight: 800; color: var(--text-3); letter-spacing: .1em; text-transform: uppercase; }
.lp-round-q { font-size: clamp(20px, 2.2vw, 26px); font-weight: 700; line-height: 1.35; color: var(--ink); margin: 10px auto 22px; max-width: 640px; }
.lp-round-q.lp-left { text-align: left; margin: 4px 0 18px; font-size: clamp(19px, 2vw, 23px); }
.lp-big-choices { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.lp-big { font: inherit; font-size: 19px; font-weight: 800; min-width: 150px; padding: 16px 26px; border-radius: 16px; border: 2px solid var(--line); border-bottom-width: 6px; background: var(--white); color: var(--ink); cursor: pointer; transition: transform .1s, border-color .2s, background .2s; }
/* Answer hovers only with a real mouse: on phones the last tap "sticks" as hover, so the next question's answer
   under your finger looked already chosen (Ivy, Nov 14, 2026). */
@media (hover: hover) { .lp-big:hover { border-color: var(--teal-bright); } }
.lp-big:active { transform: translateY(3px); border-bottom-width: 3px; }
.lp-big.right { background: var(--teal); border-color: var(--teal-dark); color: var(--white); animation: lp-pulse .45s; }
.lp-big.wrong { background: var(--gray); border-color: var(--text-3); color: var(--text-2); text-decoration: line-through; }
.lp-big-choices.long { flex-direction: column; align-items: stretch; max-width: 620px; margin: 0 auto; }
.lp-big-choices.long .lp-big { text-align: left; font-size: 17px; font-weight: 700; }
.lp-round-fb { margin-top: 20px; animation: lp-in .35s; }
.lp-auto { display: block; height: 4px; max-width: 160px; margin: 12px auto 0; border-radius: 4px; background: var(--win, #2FBF71); transform-origin: left; animation: lp-auto 1.4s linear forwards; }
@keyframes lp-auto { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.lp-round-fb b { display: block; font-size: 24px; color: var(--teal-dark); }
.lp-round.no .lp-round-fb b { color: var(--ink); }
.lp-round-fb p { color: var(--text-2); margin: 6px auto 16px; max-width: 580px; font-size: 17px; }
.lp-score-n { display: block; font-size: 60px; font-weight: 800; color: var(--teal); line-height: 1.1; }
.lp-score-sub { color: var(--text-2); max-width: 460px; margin: 6px auto 16px; }
.lp-score-msg { font-size: 20px; font-weight: 700; color: var(--ink); }
/* Quest: I tried it */
.lp-tried { display: inline-flex; align-items: center; gap: 12px; margin-top: 16px; font: inherit; font-size: 17px; font-weight: 800; color: var(--ink); background: var(--white); border: 2px solid var(--line); border-bottom-width: 5px; border-radius: 14px; padding: 12px 20px; cursor: pointer; }
@media (hover: hover) { .lp-tried:hover { border-color: var(--teal-bright); } }
.lp-tried.on { background: var(--mint-soft); border-color: var(--teal-bright); cursor: default; }
.lp-reveal { width: 100%; font: inherit; font-size: 18px; font-weight: 800; color: var(--teal-dark); background: repeating-linear-gradient(135deg, var(--mint-soft) 0 14px, #DDF7F1 14px 28px); border: 2px dashed var(--teal-bright); border-radius: 14px; padding: 30px 20px; cursor: pointer; }
.lp-reveal:hover { background: var(--mint); }
/* Tick tiles */
.lp-tiles { display: grid; gap: 10px; }
.lp-tile { display: flex; gap: 14px; align-items: center; text-align: left; width: 100%; font: inherit; font-size: 16px; color: var(--text-2); background: var(--white); border: 2px solid var(--line); border-radius: 14px; padding: 14px 16px; cursor: pointer; transition: background .2s, border-color .2s; }
@media (hover: hover) { .lp-tile:hover { border-color: var(--teal-bright); } }
.lp-tile b { display: block; color: var(--ink); }
.lp-tile small { display: block; font-size: 15px; color: var(--text-3); font-style: italic; }
.lp-box { flex-shrink: 0; width: 28px; height: 28px; border-radius: 8px; border: 2px solid var(--line); display: grid; place-items: center; color: var(--white); background: var(--white); }
.lp-box .ico { width: 18px; height: 18px; opacity: 0; }
.lp-tile.on, .lp-review li.ok { background: var(--mint-soft); border-color: var(--teal-bright); color: var(--ink); }
.lp-tile.on .lp-box, .lp-tried.on .lp-box, .lp-review li.ok .lp-box { background: var(--teal); border-color: var(--teal); }
.lp-tile.on .lp-box, .lp-tried.on .lp-box { animation: lp-pulse .4s; }
.lp-tile.on .lp-box .ico, .lp-tried.on .lp-box .ico, .lp-review li.ok .lp-box .ico { opacity: 1; }
.lp-count { font-size: 15px; font-weight: 800; color: var(--teal); margin-top: 12px; }
/* Quiz */
.lp-opts { display: grid; gap: 10px; }
.lp-opts .lp-big { text-align: left; width: 100%; font-size: 17px; font-weight: 700; }
.lp-big.picked { border-color: var(--teal); background: var(--mint-soft); }
.lp-ring { --p: 0; width: 160px; height: 160px; border-radius: 50%; margin: 6px auto 16px; display: grid; place-items: center; background: conic-gradient(var(--teal-bright) calc(var(--p) * 1%), var(--gray-soft) 0); }
.lp-ring b { width: 126px; height: 126px; border-radius: 50%; background: var(--white); display: grid; place-items: center; font-size: 40px; font-weight: 800; color: var(--ink); }
.lp-review { list-style: none; display: grid; gap: 10px; margin-top: 24px; text-align: left; }
.lp-review li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--gray-soft); border: 2px solid transparent; font-size: 16px; font-weight: 600; }
.lp-review small { display: block; color: var(--text-3); font-weight: 500; font-size: 15px; margin-top: 2px; }   /* class rule: never under 15px */
.lp-review li:not(.ok) small { color: var(--teal-dark); font-weight: 700; }
/* Celebration */
.lp-ov { position: fixed; inset: 0; z-index: 200; background: rgba(3,13,20,.75); display: grid; place-items: center; padding: 20px; animation: lp-fade .25s; }
@keyframes lp-fade { from { opacity: 0; } }
.lp-ov-box { background: var(--white); border-radius: 28px; padding: 40px 36px 32px; max-width: 460px; width: 100%; text-align: center; animation: lp-boom .55s cubic-bezier(.2,1.5,.4,1); box-shadow: var(--shadow-lg); }
@keyframes lp-boom { from { transform: scale(.5); opacity: 0; } }
.lp-ov-box h2 { font-size: 36px; margin: 2px 0 16px; }
.lp-stars { display: flex; justify-content: center; align-items: flex-end; gap: 8px; margin-bottom: 16px; }
.lp-stars .ico { width: 56px; height: 56px; color: var(--gray); transform: scale(0); animation: lp-star .5s cubic-bezier(.2,1.8,.4,1) forwards; }
.lp-stars .ico:nth-child(2) { width: 72px; height: 72px; }
.lp-stars .ico.on { color: var(--teal-bright); filter: drop-shadow(0 4px 10px rgba(27,176,170,.45)); }
.lp-stars-sm .ico { width: 36px; height: 36px; }
.lp-stars-sm .ico:nth-child(2) { width: 46px; height: 46px; }
@keyframes lp-star { to { transform: scale(1); } }
.lp-ov-pts { display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: var(--mint); border-radius: 999px; padding: 10px 22px; font-size: 17px; font-weight: 700; margin-bottom: 16px; }
.lp-ov-pts .ico { width: 24px; height: 24px; }
.lp-ov-pts b { font-size: 28px; }
.lp-ov-note { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--text-2); margin-bottom: 22px; font-size: 16px; font-weight: 600; }
.lp-ov-note .ico { width: 18px; height: 18px; color: var(--teal); }
.lp-ov-tip { font-size: 15px; color: var(--text-3); margin: -8px 0 18px; }
.lp-ov .btn { width: 100%; box-shadow: 0 5px 0 var(--teal-dark); }
.lp-share { margin-top: 18px; }
/* Learning colors: a brighter game palette for the class player only (Ivy, Nov 2026).
   Built around the brand teal and ink. Each step has its own color (--c light, --cd dark, set by learn.js). */
.learn {
  --c: #1BB0AA; --cd: #02837C;
  --gold: #FFC23D; --gold-d: #C98A00;
  --win: #2FBF71; --win-d: #1E8A52; --win-soft: #E7F8EE;
  --miss: #FF7A6B; --miss-d: #D9483B; --miss-soft: #FFF0EE;
  background: linear-gradient(180deg, #EEF7F6 0%, #F2F4F4 400px);
}
.learn .lp-node .lp-dot { border-color: var(--c); color: var(--cd); }
.learn .lp-node.done .lp-dot { background: var(--win); border-color: var(--win); color: var(--white); }
.learn .lp-node.locked .lp-dot { background: var(--gray-soft); border-color: var(--line); color: #9AA5AB; }
.learn .lp-node.done:not(:last-child)::before { background: var(--win); }
.learn .lp-node.on button, .learn .lp-node button:hover:not(:disabled) { background: color-mix(in srgb, var(--c) 12%, white); }
.learn .lp-node.on .lp-dot { animation-name: lp-ring-c; }
@keyframes lp-ring-c { 0%, 100% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 30%, transparent); } 50% { box-shadow: 0 0 0 10px color-mix(in srgb, var(--c) 8%, transparent); } }
.learn .lp-node.open .lp-st small { color: var(--cd); }
.learn .lp-node.done .lp-st small { color: var(--win-d); font-weight: 700; }
/* Done (finished but not passed): gold circle with a redo arrow */
.learn .lp-node.redo .lp-dot { background: #FFF4D6; border-color: var(--gold); color: #9A6700; }
.learn .lp-node.redo .lp-st small { color: #9A6700; font-weight: 700; }
.learn .lp-node.redo:not(:last-child)::before { background: var(--gold); }
.lp-redo-tag { background: #FFF4D6 !important; color: #9A6700 !important; }
.lp-redo-note { margin-top: 12px; background: rgba(255,194,61,.14); border: 1px solid rgba(255,194,61,.5); border-radius: 12px; padding: 12px 14px; color: #FFE7A3 !important; font-size: 16px; }
.learn .lp-trophy.done .lp-dot { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.learn .lp-trophy.locked .lp-dot { color: var(--gold-d); }
.learn .lp-level { background: linear-gradient(135deg, #030D14, #14283A 60%, #1F2A5C); }
.learn .lp-level-top b { color: var(--gold); }
.learn .lp-level .my-bar span { background: linear-gradient(90deg, var(--gold), #FFE08A); }
.learn .lp-hud-bar span { background: linear-gradient(90deg, var(--cd), var(--c)); }
.learn .lp-hud-bar span.lp-hud-redo { background: linear-gradient(90deg, #E0A21B, #F5C451); }   /* done, needs a redo */
.learn .lp-coin { background: var(--ink); color: var(--gold); }
.learn .lp-streak { background: var(--miss-soft); color: var(--miss-d); }
.learn .lp-mission { background: radial-gradient(circle at 88% -10%, color-mix(in srgb, var(--c) 60%, transparent), transparent 55%), radial-gradient(circle at 0% 120%, color-mix(in srgb, var(--c) 22%, transparent), transparent 50%), var(--ink); }
.learn .lp-mission .kicker { color: color-mix(in srgb, var(--c) 55%, white); }
.learn .lp-stat .ico { color: color-mix(in srgb, var(--c) 55%, white); }
.learn .lp-stat .ico svg circle[fill="currentColor"] { fill: var(--gold); }
.learn .lp-go, .learn .lp-go:hover { background: var(--c); box-shadow: 0 6px 0 var(--cd); color: var(--white); text-shadow: 0 1px 2px rgba(0,0,0,.25); }
.learn .lp-go:hover { box-shadow: 0 8px 0 var(--cd); }
.learn .lp-go:active { box-shadow: 0 2px 0 var(--cd); }
.learn .lp-challenge { border-color: var(--c); }
.learn .lp-challenge .lp-card-tag { background: var(--cd); }
.learn .lp-next.lp-ready, .learn .lp-round-fb .btn-teal, .learn .lp-btns .btn-teal, .lp-ov .btn-teal { background: var(--cd); }
.learn .lp-next.lp-ready { box-shadow: 0 5px 0 color-mix(in srgb, var(--cd) 70%, black); }
.learn .lp-prompt { border-left: 6px solid var(--c); }
.learn .lp-copy { background: var(--cd); }
.learn .lp-key { background: color-mix(in srgb, var(--c) 12%, white); }
.learn .lp-dots span.now { background: color-mix(in srgb, var(--c) 40%, white); }
.learn .lp-dots span.ok { background: var(--win); }
.learn .lp-dots span.no { background: var(--miss); }
.learn .lp-round.ok { background: var(--win-soft); border-color: var(--win); }
.learn .lp-round.no { background: var(--miss-soft); border-color: var(--miss); }
.learn .lp-round-fb b { color: var(--win-d); }
.learn .lp-round.no .lp-round-fb b { color: var(--miss-d); }
@media (hover: hover) { .learn .lp-big:hover { border-color: var(--c); } }
.learn .lp-big.right { background: var(--win); border-color: var(--win-d); color: var(--white); }
.learn .lp-big.wrong { background: var(--miss-soft); border-color: var(--miss); color: var(--miss-d); }
.learn .lp-big.picked { border-color: var(--cd); background: color-mix(in srgb, var(--c) 14%, white); }
.learn .lp-score-n { color: var(--cd); }
.learn .lp-score.pass .lp-score-n { color: var(--win-d); }    /* passed: green, whatever the step color */
.learn .lp-score.fail .lp-score-n { color: var(--miss-d); }   /* under half: coral */
.learn .lp-tile.on, .learn .lp-tried.on, .learn .lp-review li.ok { background: var(--win-soft); border-color: var(--win); }
.learn .lp-tile.on .lp-box, .learn .lp-tried.on .lp-box, .learn .lp-review li.ok .lp-box { background: var(--win); border-color: var(--win); }
.learn .lp-review li:not(.ok) { background: var(--miss-soft); }
.learn .lp-review li:not(.ok) .lp-box { border-color: var(--miss); }
.learn .lp-count { color: var(--win-d); }
.learn .lp-reveal { color: var(--cd); border-color: var(--c); background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--c) 8%, white) 0 14px, color-mix(in srgb, var(--c) 15%, white) 14px 28px); }
.learn .lp-ring { background: conic-gradient(var(--win) calc(var(--p) * 1%), var(--gray-soft) 0); }
.lp-stars .ico.on { color: var(--gold, #FFC23D); filter: drop-shadow(0 4px 10px rgba(255,194,61,.5)); }
.lp-ov-pts { color: #FFC23D; }
.lp-ov-note .ico { color: var(--cd, #02837C); }
.learn .lp-badge { background: conic-gradient(#FFC23D, #FFE08A, #1BB0AA, #8B6CF6, #FFC23D); box-shadow: 0 0 0 8px rgba(255,194,61,.12), 0 0 60px rgba(255,194,61,.45); }
.learn .lp-badge > span { color: var(--gold); }
.learn .lp-cleared { background: var(--win-soft); color: var(--win-d); }
/* Quest: situation, how-to steps and proof box */
.lp-scene { background: color-mix(in srgb, var(--c, #1BB0AA) 10%, white); border-radius: 14px; padding: 14px 16px; color: var(--ink) !important; font-size: 17px; }
.lp-howto { list-style: none; counter-reset: hw; display: grid; gap: 8px; margin: 14px 0 6px; }
.lp-howto li { counter-increment: hw; position: relative; padding-left: 40px; min-height: 28px; color: var(--ink); font-size: 17px; }
.lp-howto li::before { content: counter(hw); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 15px; color: var(--white); background: var(--cd, #02837C); }
.lp-proof { margin: 18px 0 6px; border: 2px dashed var(--c, #1BB0AA); border-radius: 16px; padding: 14px 16px; transition: border-color .2s, background .2s; }
.lp-proof-label { display: block; font-weight: 800; color: var(--ink); margin-bottom: 8px; font-size: 17px; }
.lp-proof .lp-text { margin: 0; }
.lp-proof-status { font-size: 15px; color: var(--text-3); margin-top: 8px; display: flex; align-items: center; gap: 4px; }
.lp-proof-status .ico { width: 18px; height: 18px; }
.lp-proof.nudge { animation: lp-shake .35s; }
.lp-proof.ok { border-style: solid; border-color: var(--win, #2FBF71); background: var(--win-soft, #E7F8EE); }
.lp-proof.ok .lp-proof-status { color: var(--win-d, #1E8A52); font-weight: 700; }
/* Mystery box (surprise bonus): a big gift pops out of the top of the gold panel. Tap: the lid flies off. */
.lp-mystery { position: relative; display: flex; flex-direction: column; align-items: center; width: 100%; margin: 78px 0 18px; padding: 66px 16px 16px; font: inherit; font-size: 17px; font-weight: 800; color: var(--ink); background: linear-gradient(135deg, #FFF4D6, #FFE08A); border: 2px dashed #C98A00; border-radius: 18px; cursor: pointer; }
.lp-mystery:hover { background: linear-gradient(135deg, #FFF0C2, #FFD45C); }
.lp-gift { position: absolute; left: 50%; top: -92px; width: 150px; height: 150px; margin-left: -75px; cursor: pointer; }   /* the gift is part of the button, so tapping it opens the box too */
.lp-mystery.open .lp-gift { cursor: default; }
.lp-gift svg { width: 100%; height: 100%; overflow: visible; display: block; }
.lp-gift .gf-base, .lp-gift .gf-lid { transform-box: fill-box; transform-origin: 50% 100%; }
.lp-gift svg { animation: gf-bob 1.6s ease-in-out infinite; transform-origin: 50% 90%; }
.lp-gift .gf-glow { animation: gf-glow 1.6s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
.lp-gift .gf-spark path { animation: gf-twinkle 1.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.lp-gift .gf-spark path:nth-child(2) { animation-delay: .45s; } .lp-gift .gf-spark path:nth-child(3) { animation-delay: .9s; }
@keyframes gf-bob { 0%, 100% { transform: translateY(0) rotate(0); } 25% { transform: translateY(-6px) rotate(-4deg); } 50% { transform: translateY(0) rotate(0); } 75% { transform: translateY(-6px) rotate(4deg); } }
@keyframes gf-glow { 0%, 100% { transform: scale(.9); opacity: .7; } 50% { transform: scale(1.08); opacity: 1; } }
@keyframes gf-twinkle { 0%, 100% { transform: scale(.4); opacity: .3; } 50% { transform: scale(1.2); opacity: 1; } }
/* Opening */
.lp-mystery.open { cursor: default; border-style: solid; background: linear-gradient(135deg, #FFC23D, #FFE08A); }
.lp-mystery.open .lp-gift svg { animation: gf-jump .5s cubic-bezier(.2,1.6,.4,1); }
.lp-mystery.open .gf-lid { animation: gf-lid .7s cubic-bezier(.2,.8,.3,1) forwards; }
.lp-mystery.open .gf-rays { animation: gf-rays .8s ease-out .15s forwards; }
@keyframes gf-jump { 0% { transform: scale(1); } 40% { transform: scale(1.12, .9); } 70% { transform: scale(.95, 1.08) translateY(-8px); } 100% { transform: none; } }
@keyframes gf-lid { 0% { transform: none; opacity: 1; } 60% { transform: translate(-26px, -70px) rotate(-28deg); opacity: 1; } 100% { transform: translate(-40px, -96px) rotate(-40deg); opacity: 0; } }
@keyframes gf-rays { 0% { opacity: 0; } 30% { opacity: 1; } 100% { opacity: 0; } }
.lp-mystery-text { display: inline-flex; align-items: baseline; gap: 6px; }
.lp-mystery.open .lp-mystery-text { animation: lp-boom .5s cubic-bezier(.2,1.5,.4,1); }
.lp-mystery.open b { font-size: 26px; color: var(--ink); }
@media (prefers-reduced-motion: reduce) {
  .lp-in, .lp-ov, .lp-ov-box, .lp-badge, .lp-round.shake, .pulse, .lp-node.on .lp-dot, .lp-big.right, .lp-tile.on .lp-box, .lp-tried.on .lp-box, .lp-round-fb, .lp-mystery, .lp-gift svg, .lp-gift .gf-glow, .lp-gift .gf-spark path, .lp-mystery-text { animation: none !important; }
  .lp-mystery.open .gf-lid { animation: none !important; opacity: 0; }
  .lp-stars .ico { transform: none; animation: none; }
}
@media (max-width: 1000px) {
  .learn { padding: 16px 0 60px; }
  .learn .learn-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .learn .learn-grid > * { min-width: 0; }
  .lp-side { position: static; padding: 16px 14px; display: none; }
  .map-open .lp-side { display: block; animation: lp-in .3s; }
  .lp-mapbtn { display: inline-flex; }
  .lp-back { margin-bottom: 8px; }
  .lp-side .kicker { display: none; }
  .lp-class { font-size: 18px; }
  /* Step map becomes a row of circles you can swipe */
  .lp-steps { display: flex; justify-content: space-between; gap: 2px; overflow-x: auto; margin: 12px -4px; padding: 4px; scrollbar-width: none; }
  .lp-steps::-webkit-scrollbar { display: none; }
  .lp-node { flex-shrink: 0; }
  .lp-node::before { display: none; }
  .lp-node button { padding: 2px; margin: 0; border-radius: 50%; }
  .lp-steps .lp-dot { width: 40px; height: 40px; }   /* all steps + the certificate fit on one phone row (Nov 14, 2026) */
  .lp-node.on button { background: none; }
  .lp-st { display: none; }
  .lp-level { padding: 10px 14px; }
  .lp-level .my-bar { margin: 8px 0 4px; }
  .lp-level-top b { font-size: 22px; }
  .lp-hud { top: 86px; gap: 8px; padding: 6px; margin-bottom: 14px; }
  .lp-hud-label { display: none; }
  .lp-chip { padding: 6px 12px; font-size: 15px; }
  .lp-streak-words { display: none; }   /* phones: "⚡ 3" instead of "⚡ 3 in a row" */
  .lp-streak { padding-left: 10px; padding-right: 12px; gap: 4px; }
  .lp-mission { padding: 28px 20px; }
  .lp-mission h2 { font-size: 28px; }
  .lp-stats { gap: 8px; margin: 18px 0 22px; }
  .lp-stat { padding: 7px 12px; font-size: 15px; }
  .lp-go { width: 100%; padding: 16px 20px; }
  .lp-btns .btn { width: 100%; }
  .lp-card { padding: 20px 16px; }
  .lp-card h3 { font-size: 21px; }
  .lp-round { padding: 20px 14px; }
  .lp-big-choices { gap: 10px; }
  .lp-big-choices .lp-big { flex: 1 1 0; min-width: 0; padding: 14px 10px; font-size: 18px; }
  .lp-big-choices:has(> :nth-child(3)) { flex-direction: column; }
  .lp-prompt { padding: 46px 16px 16px; font-size: 16px; }
  .lp-table { font-size: 15px; display: block; overflow-x: auto; }
  .lp-table th, .lp-table td { padding: 8px; min-width: 120px; }
  /* 3-column tables: one stacked block per row, column name before each cell (learn.js adds .lp-stack + data-label) */
  .lp-table.lp-stack { display: block; overflow: visible; }
  .lp-stack thead { display: none; }
  .lp-stack tbody, .lp-stack tr, .lp-stack td { display: block; min-width: 0; }
  .lp-stack tr { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .lp-stack td { border: 0; padding: 2px 0; }
  .lp-stack td:first-child { color: var(--ink); font-weight: 700; font-size: 17px; padding-bottom: 4px; }
  .lp-stack td:not(:first-child)::before { content: attr(data-label) ": "; font-weight: 700; color: var(--ink); }
  .lp-nav { flex-wrap: wrap; }
  .lp-next { flex: 1 1 100%; order: -1; margin-left: 0; white-space: normal; text-align: center; }
  .lp-nav .btn-line { flex: 0 0 auto; }
  .lp-tried { width: 100%; justify-content: center; }
  .lp-ov-box { padding: 30px 20px 24px; border-radius: 22px; }
  .lp-ov-box h2 { font-size: 28px; }
  .lp-ov-note { display: block; }
  .lp-ov-note .ico { display: inline-grid; vertical-align: -3px; margin-right: 6px; }
  .lp-badge { width: 110px; height: 110px; } .lp-badge > span { width: 84px; height: 84px; }
  .my-refl-q { font-size: 16px; }
}
.my-refl { border: 1px solid var(--line); border-left: 5px solid var(--teal-bright); border-radius: 14px; padding: 14px 16px; margin-bottom: 12px; }
.my-refl-class { font-size: 14px; font-weight: 700; color: var(--teal); }
.my-refl-q { font-weight: 700; color: var(--ink); margin: 4px 0 6px; font-size: 17px; }
.my-refl-a { color: var(--text-2); font-style: italic; margin-bottom: 6px; }
.my-refl-edit { font-size: 15px; font-weight: 700; color: var(--teal); }
.signin-btn { white-space: nowrap; }
@media (max-width: 1000px) {
  .my-page { padding-top: 24px; }
  .my-grid { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 16px; }
  .my-grid > * { min-width: 0; }
  .my-card { padding: 20px 16px; margin-bottom: 16px; }
  .my-hero { padding: 24px 20px; gap: 20px; }
  .my-who { gap: 14px; }
  .my-av { width: 56px; height: 56px; font-size: 24px; }
  .my-hero h1 { font-size: 26px; }
  .my-hero .muted { word-break: break-all; }
  .my-points { width: 100%; gap: 18px; }
  .my-level { flex: 1; min-width: 0; }
  .my-class { flex-wrap: wrap; padding: 10px 4px; gap: 12px; }
  .my-class img { width: 72px; height: 54px; }
  .my-class > span:not(.my-go) { flex: 1; min-width: 0; }
  .my-go { flex-basis: 100%; margin-left: 84px; padding-left: 0; white-space: normal; }
  .my-class-bar { max-width: none; }
}
/* Phones: the class plays like an app. No website header or footer, progress bar fixed at the top,
   Back / Continue fixed at the bottom, so learners don't hunt for buttons. */
@media (max-width: 1000px) {
  .lp-play .site-header, .lp-play .site-footer { display: none; }
  .lp-play .learn { padding: 0 0 120px; min-height: 100vh; }
  .lp-play .learn-wrap { padding: 0 14px; }
  .lp-play .lp-hud { position: sticky; top: 0; z-index: 20; margin: 0 -14px 14px; border-radius: 0; border-width: 0 0 1px; padding: 10px 14px; box-shadow: 0 4px 14px rgba(3,13,20,.06); }
  /* Step map drops down under the top bar */
  .lp-play .map-open .lp-side { position: fixed; top: 58px; left: 0; right: 0; z-index: 25; border-radius: 0 0 22px 22px; border-width: 0 0 1px; box-shadow: 0 18px 40px rgba(3,13,20,.25); max-height: calc(100vh - 58px); overflow-y: auto; }
  .lp-play .map-open .lp-main::after { content: ""; position: fixed; inset: 0; z-index: 15; background: rgba(3,13,20,.35); }
  .lp-play #lp-stage > .lp-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; margin: 0; display: flex; flex-wrap: nowrap; gap: 10px; padding: 12px 14px calc(12px + env(safe-area-inset-bottom)); background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 -6px 18px rgba(3,13,20,.08); }
  .lp-play #lp-stage > .lp-nav .lp-next { flex: 1 1 auto; order: 2; margin: 0; min-height: 54px; }
  .lp-play #lp-stage > .lp-nav .btn-line { order: 1; flex: 0 0 auto; min-height: 54px; }
  .lp-play #lp-stage > .lp-nav .lp-next:disabled { font-size: 16px; line-height: 1.25; }   /* grey hint stays one line */
  .lp-play .lp-card { margin-bottom: 12px; }
  .lp-play .lp-mission { margin-top: 4px; }
}
@media (max-width: 420px) {   /* narrow phones: the thin progress bar steps aside while the streak shows, so the top bar fits */
  .lp-hud:has(.lp-streak:not([hidden])) .lp-hud-bar { display: none; }
}
@media (max-width: 380px) {   /* small phones: a slimmer Back button so the hint still fits on one line */
  .lp-play #lp-stage > .lp-nav .btn-line { padding-left: 14px; padding-right: 14px; }
  .lp-play #lp-stage > .lp-nav .lp-next:disabled { font-size: 15px; padding-left: 10px; padding-right: 10px; }
}
/* Account menu (header, signed in) */
.acct { position: relative; }
.acct-caret { width: 8px; height: 8px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-2px); margin-left: 2px; }
.acct-menu { position: absolute; right: 0; top: calc(100% + 10px); min-width: 240px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 8px; z-index: 60; }
.acct-who { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.acct-who b { display: block; color: var(--ink); font-size: 16px; }
.acct-who span { display: block; color: var(--text-3); font-size: 14px; word-break: break-all; }
/* iPhone Safari turns emails/names into links; keep them looking like plain text (Ivy, Nov 14, 2026: "C." and the email showed as big underlined links) */
.acct-who a, .acct-who a[x-apple-data-detectors] { color: inherit !important; text-decoration: none !important; font: inherit !important; display: inline !important; padding: 0 !important; pointer-events: none; }
.acct-menu > a, .acct-menu > button { display: block; width: 100%; text-align: left; font: inherit; font-size: 16px; font-weight: 600; color: var(--ink); background: none; border: 0; padding: 10px 12px; border-radius: 10px; cursor: pointer; }
.acct-menu a:hover, .acct-menu button:hover { background: var(--mint-soft); }
.mobile-signout { font: inherit; background: none; border: 0; padding: 0; color: inherit; cursor: pointer; }
.my-class-bar { height: 10px; margin-top: 4px; background: var(--gray-soft); }   /* same look as the "free classes finished" bar (Ivy, Nov 14, 2026) */
/* Class rows with a progress bar: the bar runs from under the title to the right end of the row (Ivy, Nov 14, 2026). */
.my-class.has-bar { display: grid; grid-template-columns: 84px 1fr auto; column-gap: 16px; }
.my-class.has-bar img { grid-row: 1 / 3; }
.my-class.has-bar > span:not(.my-go) { grid-column: 2; grid-row: 1; align-self: end; min-width: 0; }
.my-class.has-bar .my-go { grid-column: 3; grid-row: 1; align-self: end; padding-bottom: 2px; }
.my-class.has-bar .my-class-bar { grid-column: 2 / 4; grid-row: 2; align-self: start; }
@media (max-width: 1000px) {
  .my-class.has-bar { grid-template-columns: 72px 1fr; column-gap: 12px; }
  .my-class.has-bar img { grid-row: 1 / 3; }
  .my-class.has-bar .my-class-bar { grid-column: 2; grid-row: 2; }
  .my-class.has-bar .my-go { grid-column: 2; grid-row: 3; margin-left: 0; padding: 6px 0 0; }
}
.my-cert { display: block; margin-bottom: 14px; }
/* My badges (Nov 13, 2026): same gold ring as the class end screen; not earned = grey. Hover changes color only. */
.my-badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 18px 12px; }
.my-badge { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; color: inherit; text-decoration: none; }
.my-badge-ring { width: 84px; height: 84px; margin-bottom: 6px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(#FFC23D, #FFE08A, #1BB0AA, #8B6CF6, #FFC23D); box-shadow: 0 0 0 6px rgba(255,194,61,.14), 0 6px 22px rgba(255,194,61,.35); transition: box-shadow .2s; }
.my-badge-ring > span { width: 64px; height: 64px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; color: #FFC23D; }
.my-badge-ring svg { width: 30px; height: 30px; }
.my-badge b { font-size: 15px; line-height: 1.25; }
.my-badge small { font-size: 12.5px; line-height: 1.35; color: #5B6B70; }
a.my-badge:hover .my-badge-ring { box-shadow: 0 0 0 6px rgba(255,194,61,.28), 0 6px 26px rgba(255,194,61,.55); }
/* Founding member: crown with the year under it (Ivy, Nov 22, 2026) */
.my-badge-founder .my-badge-ring > span { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; }
.my-badge-founder .my-badge-ring svg { width: 26px; height: 26px; }
.my-badge-year { font-style: normal; font-size: 12px; font-weight: 700; line-height: 1; letter-spacing: .06em; color: #FFC23D; }
.my-badge.locked .my-badge-ring { background: #DDE3E4; box-shadow: none; }
.my-badge.locked .my-badge-ring > span { background: #F1F4F4; color: #A7B2B4; }
.my-badge.locked b { color: #7A888C; }
a.my-badge.locked:hover .my-badge-ring { background: #C9D1D3; }
.lp-nav [hidden] { display: none !important; }

/* Back / Continue sit under the card */
#lp-stage > .lp-nav { border-top: 0; margin-top: 4px; padding-top: 0; }
/* Footer item that isn't live yet (e.g. Verify a certificate, waiting for Certivate) */
.foot-soon { opacity: .75; }
a.foot-soon:hover { opacity: 1; }   /* links to start.certivate.com (Nov 13) */
.foot-soon em { font-style: italic; font-size: .9em; }
.certivate-row { display: inline; white-space: nowrap; }
.certivate-logo { display: inline-block; height: 19px; width: auto; vertical-align: -4px; margin: 0 2px 0 3px; }
.foot-soon .certivate-logo { opacity: 1; }
/* Legal pages (/terms/, /privacy/) */
.legal { padding-top: 70px; }
.legal-wrap { max-width: 820px; }
.legal-date { color: var(--text-3); font-size: 15px; margin: 6px 0 18px; }
.legal h2 { font-size: 24px; margin: 36px 0 10px; }
.legal p, .legal li { color: var(--text-2); font-size: 17px; }
.legal p { margin-bottom: 12px; }
.legal ul { padding-left: 22px; display: grid; gap: 8px; margin-bottom: 12px; }
.legal a { color: var(--teal); font-weight: 600; }
.legal-email { padding: 0 4px; font-weight: 700; color: var(--ink); }
.legal-see { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); }
.foot-bottom a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* Blog "network path" (What's New): posts hang off one glowing line, like the 8 dots of our logo connecting.
   Path colors use the brand teal family. */
.np-hero { background: radial-gradient(circle at 85% 0%, rgba(27,176,170,.35), transparent 55%), var(--ink); color: var(--white); padding: 150px 0 56px; }
.np-hero h1 { font-size: clamp(38px, 5vw, 62px); line-height: 1.08; margin: 8px 0 16px; color: var(--white); }
.np-hero h1 em { font-style: normal; color: var(--teal-bright); }
.np-hero p { color: rgba(255,255,255,.78); max-width: 620px; font-size: 18px; }
.np-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.np-chip { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-size: 15px; font-weight: 700; color: var(--white); background: rgba(255,255,255,.06); border: 1.5px solid rgba(182,243,232,.28); border-radius: 999px; padding: 9px 16px; cursor: pointer; transition: background .2s, border-color .2s; }
.np-chip span { width: 10px; height: 10px; border-radius: 50%; background: var(--np, var(--mint)); box-shadow: 0 0 0 3px rgba(255,255,255,.08); }
.np-chip:hover { border-color: var(--mint); }
.np-chip.on { background: var(--white); color: var(--ink); border-color: var(--white); }
.np-news { --np: #03DBCF; } .np-ai { --np: #1BB0AA; } .np-play { --np: #02837C; } .np-mind { --np: #B6F3E8; } .np-all { --np: var(--white); }
.np-chip.np-all.on span { background: var(--ink); }

.np-section { background: var(--white); padding-top: 70px; }
.np-path { list-style: none; position: relative; max-width: 980px; margin: 0 auto; padding-left: 0; }
.np-path::before { content: ""; position: absolute; left: 13px; top: 18px; bottom: 18px; width: 3px; border-radius: 3px; background: linear-gradient(180deg, #03DBCF, #1BB0AA 40%, #02837C); }
.np-item > a { display: grid; grid-template-columns: 30px 1fr 240px; gap: 26px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.np-item:last-of-type > a { border-bottom: 0; }
.np-dot { display: block; position: relative; z-index: 1; width: 22px; height: 22px; margin-left: 4px; border-radius: 50%; background: var(--np, var(--teal)); box-shadow: 0 0 0 5px var(--white), 0 0 0 7px color-mix(in srgb, var(--np, #1BB0AA) 35%, transparent); transition: transform .25s cubic-bezier(.3,1.6,.5,1), box-shadow .25s; align-self: start; margin-top: 6px; }
.np-item > a:hover .np-dot { transform: scale(1.25); box-shadow: 0 0 0 5px var(--white), 0 0 0 10px color-mix(in srgb, var(--np, #1BB0AA) 30%, transparent); }
.np-text { display: block; min-width: 0; }
.np-meta { display: block; font-size: 14px; color: var(--text-3); letter-spacing: .02em; }
.np-meta b { color: var(--teal); text-transform: uppercase; letter-spacing: .1em; font-size: 14px; }
.np-title { display: block; font-size: clamp(21px, 2.2vw, 26px); font-weight: 700; line-height: 1.25; margin: 6px 0 8px; transition: color .2s; }
.np-item > a:hover .np-title { color: var(--teal); }
.np-dek { display: block; color: var(--text-2); font-size: 17px; }
.np-img { display: block; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; }
.np-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.np-item > a:hover .np-img img { transform: scale(1.05); }
/* The newest post: a bigger glowing dot and a larger card */
.np-latest .np-dot { width: 30px; height: 30px; margin-left: 0; animation: np-glow 2.4s ease-in-out infinite; }
.np-latest > a { grid-template-columns: 30px 1fr 360px; padding: 10px 0 34px; }
.np-latest .np-title { font-size: clamp(28px, 3.2vw, 38px); }
@keyframes np-glow { 0%, 100% { box-shadow: 0 0 0 5px var(--white), 0 0 0 8px rgba(3,219,207,.35), 0 0 24px rgba(3,219,207,.6); } 50% { box-shadow: 0 0 0 5px var(--white), 0 0 0 12px rgba(3,219,207,.15), 0 0 36px rgba(3,219,207,.8); } }
.np-end { height: 22px; position: relative; }
.np-end .np-dot { display: block; width: 12px; height: 12px; margin-left: 9px; margin-top: 4px; background: var(--teal); box-shadow: none; }
/* Small version (More from What’s New on article pages) */
.np-small .np-item > a { grid-template-columns: 30px 1fr; padding: 14px 0; }
.np-small .np-dot { box-shadow: 0 0 0 4px color-mix(in srgb, var(--np, #1BB0AA) 30%, transparent); }
.np-small .np-item > a:hover .np-dot { box-shadow: 0 0 0 7px color-mix(in srgb, var(--np, #1BB0AA) 25%, transparent); }
.np-small .np-title { font-size: 19px; margin-bottom: 0; }
@media (max-width: 760px) {
  .np-hero { padding: 120px 0 40px; }
  .np-item > a, .np-latest > a { grid-template-columns: 30px 1fr; gap: 16px; }
  .np-img { grid-column: 2; max-width: 100%; }
  .np-latest .np-title { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) { .np-latest .np-dot { animation: none; } }

/* For Teams page */
.tm-hero { position: relative; color: var(--white); background: var(--ink); overflow: hidden; }
.tm-hero .bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .35; }
.tm-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3,13,20,.95) 30%, rgba(3,13,20,.4)); }
.tm-hero .wrap { position: relative; z-index: 1; padding-top: 160px; padding-bottom: 100px; }
.tm-hero h1 { font-size: clamp(38px, 5vw, 62px); line-height: 1.08; max-width: 760px; margin: 8px 0 20px; color: var(--white); }
.tm-hero h1 em { font-style: normal; color: var(--teal-bright); }
.tm-hero p { color: #D3DCE0; max-width: 620px; font-size: 19px; }
.tm-hero .kicker { color: var(--mint); }
.tm-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.tm-narrow { max-width: 860px; }
.tm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tm-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; }
.tm-card h3 { font-size: 21px; margin: 14px 0 8px; }
.tm-card p { color: var(--text-2); font-size: 17px; }
.tm-dot { display: block; width: 16px; height: 16px; border-radius: 50%; background: var(--teal-bright); box-shadow: 0 0 0 5px rgba(27,176,170,.18); }
@media (max-width: 900px) { .tm-grid { grid-template-columns: 1fr; } .tm-hero .wrap { padding-top: 120px; padding-bottom: 70px; } }
.tm-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 14px 36px; margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.15); }
.tm-facts b { display: block; font-size: 18px; color: var(--white); }
.tm-facts span { font-size: 15px; color: #A9B7BF; }
.tm-note { margin-top: 22px; color: var(--text-2); font-size: 17px; }
.tm-formats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tm-format { border: 1.5px solid var(--line); border-radius: var(--radius); padding: 24px 22px; background: var(--white); }
.tm-format.tm-hot { border-color: var(--teal-bright); box-shadow: 0 12px 30px rgba(27,176,170,.15); }
.tm-len { display: inline-block; font-size: 14px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); background: var(--mint-soft); border-radius: 999px; padding: 4px 12px; }
.tm-format h3 { font-size: 21px; margin: 14px 0 8px; }
.tm-format p { color: var(--text-2); font-size: 16px; margin-bottom: 12px; }
.tm-format ul { padding-left: 18px; color: var(--text-2); font-size: 15px; display: grid; gap: 4px; }
.tm-quote { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 24px; background: var(--mint-soft); border-radius: var(--radius); padding: 22px 26px; }
.tm-quote p { color: var(--ink); max-width: 640px; }
.tm-results { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.tm-result { background: rgba(255,255,255,.05); border: 1px solid rgba(182,243,232,.2); border-radius: var(--radius); padding: 26px; color: var(--white); }
.tm-tag { font-size: 14px; font-weight: 700; color: var(--mint); letter-spacing: .04em; }
.tm-result h3 { color: var(--white); font-size: 22px; margin: 8px 0 10px; }
.tm-result p { color: #C9D4D9; font-size: 16px; }
.tm-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.12); }
.tm-nums b { display: block; font-size: 28px; color: var(--teal-bright); line-height: 1.1; }
.tm-nums span { font-size: 14px; color: #A9B7BF; }
@media (max-width: 360px) {   /* smallest phones: the 3 numbers ran past the screen (Ivy, Nov 22, 2026) */
  .tm-result { padding: 22px 18px; }
  .tm-nums { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tm-nums b { font-size: 22px; }
  .tm-nums span { font-size: 13px; }
}
.tm-testi { margin: 30px auto 0; max-width: 760px; text-align: center; color: var(--white); font-size: 20px; font-style: italic; }
.tm-testi cite { display: block; margin-top: 10px; font-style: normal; font-size: 15px; color: var(--mint); }
@media (max-width: 1000px) { .tm-formats { grid-template-columns: 1fr 1fr; } .tm-results { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .tm-formats { grid-template-columns: 1fr; } }
/* Socialico sign-up (same look as the Talk to us form) */
.soc-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.soc-note { color: var(--text-2); font-size: 17px; max-width: 460px; }
.soc-note .socialico { font-size: 1.2em; }
.soc-box .tf-side h3 { margin-bottom: 14px; }
.soc-box .tf-side .socialico { font-size: 46px; line-height: 1.3; display: inline-block; }
.soc-pick input { accent-color: var(--teal); }
.soc-hint { font-size: 14px; color: var(--text-3); margin: -2px 0 10px; }
/* For Teams hero: full-width background video of a real live workshop */
.tm-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; filter: saturate(.9); }
.tm-dots { position: absolute; inset: 0; z-index: 0; background-image: radial-gradient(rgba(3,13,20,.55) 1px, transparent 1.2px); background-size: 4px 4px; }
.tm-hero::after { z-index: 0; }
@media (prefers-reduced-motion: reduce) { .tm-video { display: none; } }
/* HRD Corp logo (official logo is navy, so it sits on a white badge) */
.tm-hrd { display: flex; align-items: center; gap: 14px; }
.tm-hrd > span:last-child span { display: block; font-size: 15px; color: #A9B7BF; }
.tm-hrd-logo { display: inline-flex; align-items: center; background: var(--white); border-radius: 12px; padding: 8px 12px; }
.tm-hrd-logo img { display: block; height: 34px; width: auto; }
.tm-hrd-faq { display: block; height: 40px; width: auto; margin-bottom: 10px; }

/* For Teams page: it's for organizations, so the learner sign-in and "Continue learning" are hidden (Ivy, Nov 2) */
.teams-page .nav-cta { visibility: hidden !important; pointer-events: none; min-width: 200px; }   /* empty space keeps the menu centered */
@media (max-width: 1000px) { .teams-page .nav-cta { min-width: 0; } }   /* phones + tablets: no empty space, it pushed the ☰ menu off the screen (Ivy, Nov 22, 2026) */
.teams-page .nav-cta > *, .teams-page .site-header.scrolled .nav-cta-scroll { display: none !important; }   /* "Continue learning" appears on scroll elsewhere, never here */
.teams-page .mobile-signin, .teams-page .site-header .nav-menu .mobile-only { display: none !important; }
/* Sign-in page: one card, dark panel left + sign-in right (same look as the Talk to us form) */
.auth-page { padding: 70px 0 90px; background: var(--gray-soft); }
.auth-box { display: grid; grid-template-columns: 1fr 1fr; max-width: 900px; margin: 0 auto; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lg); background: var(--white); }
.auth-panel { background: radial-gradient(circle at 90% 0%, rgba(27,176,170,.4), transparent 60%), var(--ink); color: var(--white); padding: 48px 40px; display: flex; flex-direction: column; justify-content: center; }
.auth-panel .kicker { color: var(--mint); }
.auth-panel h2 { color: var(--white); font-size: 28px; line-height: 1.2; margin: 6px 0 24px; }
.auth-box .auth-card { border: 0; border-radius: 0; box-shadow: none; padding: 48px 40px; display: flex; flex-direction: column; justify-content: center; }
.auth-box .auth-title { margin-top: 0; }
@media (max-width: 760px) {
  .auth-page { padding: 24px 0 60px; }
  .auth-box { grid-template-columns: 1fr; }
  .auth-panel { padding: 28px 24px; }
  .auth-panel h2 { font-size: 22px; margin-bottom: 16px; }
  .auth-box .auth-card { padding: 28px 24px; }
}
/* Phones, upright or sideways (Ivy, Nov 14, 2026): only the Continue with Google button, no heading or line above it.
   The heading stays for screen readers. */
@media (max-width: 760px), (max-height: 500px) and (orientation: landscape) {
  #si-form > .auth-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  #si-form > .auth-title + .muted { display: none; }
  /* Card sits near the top (no big gap under the header), and the Google button is centered with even, smaller space around it */
  body .auth-page { align-items: flex-start; padding: 20px 0 32px; }
  #si-form .btn-google { margin-top: 0; padding-left: 12px; padding-right: 12px; }
  #si-form .auth-msg:empty { display: none; }
  .auth-box #si-form { padding: 4px 0; width: 100%; }
  .auth-box .auth-card { margin: 0; max-width: none; }   /* fill the card's full width, so the button is centered edge to edge */
}
/* Phones (Ivy, Nov 20, 2026): every sign-in step fits on one screen, and short lines stay on one line. */
@media (max-width: 760px) {
  .auth-page > .wrap { padding-left: 16px; padding-right: 16px; }
  .auth-panel { padding: 24px 20px; }
  .auth-box .auth-card { padding: 24px 20px; }
  .auth-panel .tf-help li { font-size: min(14px, 3.9vw); white-space: nowrap; }      /* each welcome line on one line */
  .auth-box:has(#si-form[hidden]) .auth-panel { display: none; }                     /* name + code steps: just the card */
  .auth-box .auth-title { font-size: 26px; }
  .auth-card .auth-small, #si-expiry { font-size: 14px; }
  .auth-card .link-dot { display: none; }                                             /* the two links on two tidy lines */
  #si-code-step .auth-small.center .link-btn { display: block; margin: 0 auto 10px; }
}
@media (max-width: 360px) {
  .auth-box .auth-card { padding-left: 16px; padding-right: 16px; }
  .auth-card .auth-small, #si-expiry { font-size: 13px; }   /* "This name goes on your certificates later." on one line */
  #si-form .btn-google { font-size: 16px; gap: 8px; white-space: nowrap; }   /* smallest phones: "Continue with Google" stays on one line */
}
body:not(.learner-app):has(.auth-page) .nav-cta > .signin-guest.signin-guest { display: none !important; }   /* no sign-in icon on the sign-in page itself */

/* "Ask G ACADEMY" AI assistant: sparkle button in the top bar, opens full page under it (like Coursera) */
.ask-btn { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 16px; font-weight: 600; color: inherit; background: rgba(27,176,170,.12); border: 1.5px solid rgba(27,176,170,.45); border-radius: 999px; padding: 7px 14px 7px 10px; cursor: pointer; margin-right: 6px; white-space: nowrap; }
.ask-btn svg { width: 20px; height: 20px; color: var(--teal-bright); }
.ask-btn:hover, .ask-btn.on { background: var(--teal-bright); border-color: var(--teal-bright); color: var(--white); }
.ask-btn:hover svg, .ask-btn.on svg { color: var(--white); }
.ask-panel { position: fixed; left: 0; right: 0; top: 78px; bottom: 0; z-index: 39; display: flex; flex-direction: column; background: var(--white); border-top: 1px solid var(--line); animation: lp-fade .2s; }
.ask-panel[hidden] { display: none; }
body.ask-open { overflow: hidden; }
.ask-inner { max-width: 780px; margin: 0 auto; padding: 0 24px; }
.ask-scroll { flex: 1; overflow-y: auto; padding: 0 0 20px; }
.ask-tools { position: absolute; top: 14px; right: 22px; display: flex; align-items: center; gap: 10px; z-index: 2; }
.ask-new { font: inherit; font-size: 15px; font-weight: 600; color: var(--ink); background: var(--white); border: 1.5px solid var(--line); border-radius: 999px; padding: 8px 14px; cursor: pointer; }
.ask-new:hover { border-color: var(--teal-bright); }
.ask-close { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--gray-soft); color: var(--ink); font-size: 26px; line-height: 1; cursor: pointer; }
.ask-close:hover { background: var(--line); }
/* The title stays pinned at the top while the chat scrolls under it. */
.ask-intro { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; position: sticky; top: 0; z-index: 1; background: var(--white); padding: 28px 0 12px; box-shadow: 0 10px 12px -12px rgba(0,0,0,.15); }
.ask-intro b { display: block; font-size: 22px; color: var(--ink); }
.ask-intro small { display: block; font-size: 16px; color: var(--text-3); }
/* Genki sticker (same look as LeadCRM): white die-cut edge + soft shadow, and a glint that sweeps across the sunglasses. */
.ask-genki { position: relative; width: 80px; height: 80px; flex-shrink: 0; filter: url(#ask-genki-outline) drop-shadow(0 2px 4px rgba(0,0,0,.18)); }
.ask-genki img { width: 100%; height: 100%; object-fit: contain; display: block; }
.ask-genki-shine { position: absolute; left: 24%; top: 45%; width: 56%; height: 22%; overflow: hidden; pointer-events: none; border-radius: 4px; }
.ask-genki-shine::after { content: ''; position: absolute; top: 0; left: -150%; width: 60%; height: 100%; background: linear-gradient(115deg, transparent 25%, rgba(255,255,255,.9) 50%, transparent 75%); animation: ask-genki-shine 4.5s ease-in-out infinite; }
@keyframes ask-genki-shine { 0%, 55% { left: -150%; } 85%, 100% { left: 150%; } }
@media (prefers-reduced-motion: reduce) { .ask-genki-shine::after { animation: none; } }
.ask-spark { display: inline-block; color: var(--teal); vertical-align: -2px; margin-left: 4px; }
.ask-spark svg { width: 22px; height: 22px; display: block; }
.ask-log { display: flex; flex-direction: column; gap: 14px; }
.ask-msg { max-width: 86%; padding: 12px 16px; border-radius: 18px; font-size: 17px; line-height: 1.55; white-space: pre-wrap; }
.ask-bot { background: var(--gray-soft); color: var(--ink); border-bottom-left-radius: 6px; align-self: flex-start; }
.ask-user { background: var(--teal); color: var(--white); border-bottom-right-radius: 6px; align-self: flex-end; }
.ask-wait { color: var(--text-3); font-style: italic; }
.ask-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ask-chip { font: inherit; font-size: 15px; color: var(--ink); background: var(--white); border: 1.5px solid var(--line); border-radius: 10px; padding: 8px 12px; cursor: pointer; text-align: left; }
.ask-chip:hover { border-color: var(--teal-bright); background: var(--mint-soft); }
.ask-bottom { border-top: 1px solid var(--line); background: var(--white); padding: 14px 0 12px; }
.ask-form { display: flex; gap: 10px; }
.ask-form input { flex: 1; min-width: 0; font: inherit; font-size: 17px; border: 1.5px solid var(--teal-bright); border-radius: 14px; padding: 14px 16px; }
.ask-form input:focus { outline: none; box-shadow: 0 0 0 4px rgba(27,176,170,.15); }
.ask-form button { width: 52px; border-radius: 14px; border: 0; background: var(--teal); color: var(--white); font-size: 22px; cursor: pointer; flex-shrink: 0; }
.ask-note { font-size: 14px; color: var(--text-3); margin-top: 8px; }
/* Phones: one slim pinned row (Genki + title on the left, New chat + close on the right) so the chat gets most of the screen.
   The description line is hidden (Genki's greeting says the same) and the small print is smaller. */
@media (max-width: 600px) {
  .ask-tools { top: 12px; right: 16px; gap: 8px; }
  .ask-new { font-size: 14px; padding: 6px 11px; }
  .ask-close { width: 36px; height: 36px; font-size: 22px; }
  .ask-intro { padding: 6px 0 8px; gap: 10px; margin-bottom: 14px; }
  .ask-genki { width: 46px; height: 46px; }
  .ask-intro b { font-size: 19px; }
  .ask-intro small { display: none; }
  .ask-inner { padding: 0 16px; }
  .ask-bottom { padding: 10px 0 8px; }
  .ask-note { font-size: 10px; line-height: 1.35; margin-top: 6px; }
}
@media (max-width: 1000px) { .ask-btn span { display: none; } .ask-btn { padding: 8px; margin-right: 8px; } .ask-panel { top: 70px; } }
/* On For Teams the sign-in area is hidden, but the assistant stays */
.teams-page .nav-cta { visibility: visible !important; pointer-events: auto; }
.teams-page .nav-cta > .ask-btn { display: inline-flex !important; }
.ask-links { display: flex; flex-wrap: wrap; gap: 8px; }
.ask-link { display: inline-flex; align-items: center; font-size: 15px; font-weight: 700; color: var(--white); background: var(--teal); border-radius: 999px; padding: 9px 14px; }
.ask-link:hover { background: var(--teal-dark); }
/* Phones: keep only the Ask AI button visible in the top bar (sign-in lives in the ☰ menu) */
@media (max-width: 1000px) {
  body:not(.learner-app) .nav-cta { display: flex !important; margin-left: auto; }
  body:not(.learner-app) .nav-cta > :not(.ask-btn) { display: none !important; }
  /* Burger menu sits right next to the Ask Genki star */
  body:not(.learner-app) .nav-cta > .ask-btn { margin-right: 0; }
  .nav-toggle { margin-left: -20px; }
  /* Signed in: the learner's photo shows in the phone top bar too (star · photo · menu); tap it for My Journey (Ivy, Nov 14, 2026).
     Just the round photo on phones (no name, no arrow) so it fits. */
  body:not(.learner-app) .nav-cta > .acct { display: block !important; order: 2; }
  body:not(.learner-app) .nav-cta > .ask-btn { order: 1; }
  .nav-cta .acct-btn { font-size: 0; gap: 0; padding: 6px; }
  .nav-cta .acct-btn .acct-caret { display: none; }
  .nav-cta .acct-btn { flex: none; }
  .nav-cta .acct-btn .signin-photo, .nav-cta .acct-btn .signin-ico { width: 34px; height: 34px; min-width: 34px; flex: none; aspect-ratio: 1; object-fit: cover; box-shadow: 0 0 0 2px var(--teal-bright); border-radius: 50%; }
  .nav-cta .acct-menu { right: -6px; }
  /* Signed out: the same round spot shows a person icon; tap it to sign in (Ivy, Nov 14, 2026) */
  body:not(.learner-app) .nav-cta > .signin-guest { display: inline-flex !important; order: 2; font-size: 0; gap: 0; padding: 6px; flex: none; }
  .nav-cta > .signin-guest .signin-ico { width: 34px; height: 34px; min-width: 34px; flex: none; border-width: 2px; box-shadow: 0 0 0 2px var(--teal-bright); }
  .nav-cta > .signin-guest .signin-ico::before { top: 6px; width: 11px; height: 11px; margin-left: -5.5px; }
  .nav-cta > .signin-guest .signin-ico::after { top: 19px; width: 22px; height: 18px; margin-left: -11px; }
}
/* Small phones, signed in (logo · star · photo · menu): a slightly smaller logo so everything fits on one line */
@media (max-width: 400px) {
  body:not(.learner-app):has(.nav-cta > :is(.acct, .signin-guest)) .logo-anim { height: 44px; }
  body:not(.learner-app):has(.nav-cta > :is(.acct, .signin-guest)) .nav-cta > .ask-btn { width: 40px; }
}
@media (max-width: 340px) {
  body:not(.learner-app) .nav-logo .logo-anim, body:not(.learner-app):has(.nav-cta > :is(.acct, .signin-guest)) .logo-anim { height: 36px; }   /* tiniest phones (320 wide), signed in or not */
  body:not(.learner-app):has(.nav-cta > :is(.acct, .signin-guest)) .nav-cta .acct-btn { padding: 4px; }
  body:not(.learner-app) .nav-cta > .ask-btn, body:not(.learner-app):has(.nav-cta > :is(.acct, .signin-guest)) .nav-cta > .ask-btn { width: 36px; }
  body:not(.learner-app):has(.nav-cta > :is(.acct, .signin-guest)) .nav-cta .acct-btn, body:not(.learner-app) .nav-cta > .signin-guest { padding: 2px; }
  .nav-toggle { width: 36px; }
  .nav-toggle span { left: 7px; }
}
@media (max-width: 1000px) {
  .nav-cta .acct-btn .signin-letter { font-size: 17px; }
  .nav-cta .acct-btn .signin-ico { border-width: 2px; }   /* no photo: a bigger person icon to match */
  .nav-cta .acct-btn .signin-ico::before { top: 6px; width: 11px; height: 11px; margin-left: -5.5px; }
  .nav-cta .acct-btn .signin-ico::after { top: 19px; width: 22px; height: 18px; margin-left: -11px; }
}
.ask-btn { color: #E6ECEF; }
.site-header.scrolled .ask-btn { color: var(--ink); }
.site-header .ask-btn:hover, .site-header .ask-btn.on { color: var(--white); }
.ask-contact { align-self: stretch; background: var(--mint-soft); border: 1.5px solid var(--mint); border-radius: 16px; padding: 14px 16px; }
.ask-contact b { display: block; color: var(--ink); font-size: 16px; }
.ask-contact p { color: var(--text-2); font-size: 15px; margin: 2px 0 10px; }
.ask-contact form { display: flex; flex-wrap: wrap; gap: 8px; }
.ask-contact input { flex: 1 1 160px; min-width: 0; font: inherit; font-size: 15px; border: 1.5px solid var(--line); border-radius: 10px; padding: 9px 12px; background: var(--white); }
.ask-contact-send { font: inherit; font-size: 15px; font-weight: 700; color: var(--white); background: var(--teal); border: 0; border-radius: 10px; padding: 9px 16px; cursor: pointer; }
.ask-contact-skip { font: inherit; font-size: 15px; color: var(--text-2); background: none; border: 0; padding: 9px 6px; cursor: pointer; text-decoration: underline; }
.ask-contact small { display: block; color: var(--text-2); margin-top: 6px; font-size: 14px; }
/* Ask AI: star only */
.ask-btn { width: 40px; height: 40px; padding: 0 !important; justify-content: center; border-radius: 50%; }
.ask-btn svg { width: 22px; height: 22px; }

/* Ask AI: just the star, no border or background (like Coursera) */
.site-header .ask-btn, .site-header .ask-btn:hover, .site-header .ask-btn.on { background: none !important; border: 0 !important; box-shadow: none !important; }   /* size is set once below (44px) and never changes on hover: it used to shrink to 36px and blink (Nov 13) */
.site-header .ask-btn svg { width: 24px; height: 24px; color: var(--teal-bright); transition: transform .2s; }
.site-header .ask-btn:hover svg, .site-header .ask-btn.on svg { color: var(--mint); transform: scale(1.15); }
.site-header.scrolled .ask-btn svg { color: var(--teal); }
.site-header .ask-btn { width: 44px; height: 44px; }
.site-header .ask-btn svg { width: 32px; height: 32px; }
/* Explore menu: clearer paths and a strong "See all classes" button */
.mega .mega-label em { font-style: normal; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--text-3); font-size: 15px; }
.mega-path { display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); background: var(--mint-soft); border-radius: 999px; padding: 2px 10px; margin-bottom: 6px; }
.mega-count { display: block; margin-top: 8px; font-size: 15px; font-weight: 700; color: var(--teal); }
.site-header .mega a.mega-all { background: var(--teal) !important; border: 0 !important; }
.site-header .mega a.mega-all:hover { background: var(--teal-dark) !important; }
.site-header .mega a.mega-all strong { color: var(--white) !important; font-size: 18px; }
.site-header .mega a.mega-all small { color: rgba(255,255,255,.85) !important; }
.site-header .mega a.mega-all .mega-go { color: var(--teal-dark); background: var(--white); border-radius: 999px; padding: 9px 16px; font-size: 15px; }
@media (max-width: 1000px) { .site-header.open .mega-path { color: var(--mint); background: rgba(182,243,232,.12); } .site-header.open .mega-count { color: var(--mint); } }
/* Phone menu after scrolling (light header): dark-on-light colors, and white text on the teal "See all" button (Ivy, Nov 14, 2026: pale mint was unreadable, the button text was teal on teal) */
@media (max-width: 1000px) {
  .site-header.scrolled.open .mega-path { color: var(--teal-dark); background: var(--mint-soft); }
  .site-header.scrolled.open .mega-count { color: var(--teal-dark); }
  .site-header.scrolled.open .mega a.mega-all strong { color: var(--white) !important; }
}

.soc-soon { font-size: 23px; color: var(--text-2); margin-bottom: 8px; }
.soc-soon .socialico { font-size: 1.3em; }
/* Thank-you message sits in the right half, next to the dark panel (not underneath it) */
.wl-box.team-box .form-done { grid-column: 2; grid-row: 1; align-self: center; padding: 40px 34px; }
@media (max-width: 760px) { .wl-box.team-box .form-done { grid-column: 1; grid-row: auto; } }
/* Form errors: red box and a short note */
.field.bad input, .field.bad select, .field.bad textarea { border-color: #D9483B !important; box-shadow: 0 0 0 3px rgba(217,72,59,.15) !important; background: #FFF6F5; }
fieldset.bad label { border-color: #D9483B !important; }
.field-err { color: #C0392B; font-size: 14px; font-weight: 600; margin-top: 4px; }
/* Sign-in page: no footer, the card fills the screen under the top bar */
.auth-page { min-height: calc(100vh - 78px); display: flex; align-items: center; }
.auth-page > .wrap { width: 100%; }
/* Sign-in page background: same dark teal glow as the admin login */
.auth-page { background: radial-gradient(circle at 20% 10%, #0E3A40, var(--ink) 60%) !important; }
.auth-box { box-shadow: 0 30px 80px rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.08); }
.soc-yes { color: var(--teal-dark) !important; font-weight: 600; font-size: 15px !important; margin: 0 0 10px !important; }
.soc-founder { display: flex; gap: 12px; align-items: flex-start; border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 14px; margin-bottom: 12px; cursor: pointer; }
.soc-founder:has(input:checked) { border-color: var(--teal-bright); background: var(--mint-soft); }
.soc-founder input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--teal); flex-shrink: 0; }
.soc-founder b { display: block; color: var(--ink); font-size: 16px; }
.soc-founder small { display: block; color: var(--text-3); font-size: 14px; }
/* Ask AI: your message bubble is dark, page buttons stay teal, so they never look alike */
.ask-user { background: var(--ink); color: var(--white); }
.ask-link { background: var(--white); color: var(--teal-dark); border: 2px solid var(--teal-bright); }
.ask-link:hover { background: var(--teal); color: var(--white); border-color: var(--teal); }
/* Ask AI page links: plain text links, not buttons */
.ask-links { gap: 6px 18px; }
.ask-link, .ask-link:hover { background: none !important; border: 0 !important; padding: 2px 0 !important; border-radius: 0; color: var(--teal-dark) !important; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.ask-link:hover { color: var(--teal) !important; }
.nowrap { white-space: nowrap; }

/* Ask Genki: no code in the question box (Nov 13, 2026) */
.ask-codewarn { margin: 8px 0 0; color: #B42318; font-size: 15px; font-weight: 600; }
.ask-form input.ask-bad { border-color: #D92D20; box-shadow: 0 0 0 4px rgba(217,45,32,.12); }

/* Instant tooltips (Ivy, Nov 13): shown by assets/js/tips.js the moment you hover anything with a title. */
.ga-tip { position: fixed; z-index: 10000; background: #1F2930; color: #fff; font-size: 13px; font-weight: 600; line-height: 1.3; padding: 7px 10px; border-radius: 7px; max-width: 280px; pointer-events: none; box-shadow: 0 4px 12px rgba(0,0,0,.25); font-family: inherit; }
.ga-tip[hidden] { display: none; }

/* My Journey, How to earn points: rows already earned (Nov 13) */
.my-earn .earn-done { flex: 0 0 auto !important; font-size: 14px; font-weight: 700; color: #1E8A52; background: #E7F8EE; border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
/* Narrow phones (Ivy, Nov 22, 2026: points stuck out past the card at 320): the ✓ Earned tag moves under the text */
@media (max-width: 400px) {
  .my-earn li.is-earned { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; column-gap: 12px; row-gap: 4px; align-items: center; }
  .my-earn li.is-earned .earn-ico { grid-row: 1 / span 2; }
  .my-earn li.is-earned > span:not(.earn-ico):not(.earn-done) { grid-column: 2; grid-row: 1; }
  .my-earn li.is-earned .earn-done { grid-column: 2; grid-row: 2; justify-self: start; font-size: 13px; padding: 2px 9px; }
  .my-earn li.is-earned > b { grid-column: 3; grid-row: 1 / span 2; }
}

/* Class top bar: sound on/off button (Nov 13) */
.lp-sound { border: 0; cursor: pointer; background: #EEF3F3; color: var(--ink); padding: 7px 11px; font: inherit; }
.lp-sound svg { width: 20px; height: 20px; display: block; }
.lp-sound:hover { background: #E1EBEB; }
.lp-sound .lp-mute { display: none; }
.lp-sound.off { color: var(--text-3); }
.lp-sound.off .lp-waves { display: none; }
.lp-sound.off .lp-mute { display: inline; }

/* Proof box warnings in red (Ivy, Nov 13): "That looks like the question…", "too short", "doesn't look like the answer" */
.lp-proof-status.bad { color: #D93025; font-weight: 600; }
.lp-text.bad, .bad > .lp-text, .bad .lp-text { border-color: #D93025 !important; }

/* Class: a finished game or task, shown again after leaving or refreshing (Nov 13) */
.lp-resume { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 14px; padding: 16px 18px; border-radius: 14px; background: #E7F8EE; color: #1E8A52; font-weight: 600; }
.lp-resume .ico, .lp-resume svg { width: 20px; height: 20px; flex-shrink: 0; }
.lp-resume { text-align: left; }
.lp-resume > span:not(.ico) { flex: 1; min-width: 180px; color: var(--ink); }
.lp-resume > .ico { flex: 0 0 auto; }

/* Gap between a step note (e.g. "Last try: 1 of 8") and the buttons under it (Nov 13) */
.lp-mission .lp-redo-note + .lp-btns { margin-top: 20px; }

/* Class review: 1 to 5 star picker (was missing its styles, Nov 13). Hover changes color only, never size. */
.lp-rate-stars { display: flex; gap: 6px; margin: 4px 0 14px; }
.lp-rate-stars button { background: none; border: 0; padding: 2px; cursor: pointer; color: #D5DDDD; line-height: 0; border-radius: 8px; }
.lp-rate-stars button svg { width: 36px; height: 36px; display: block; }
.lp-rate-stars button.on { color: #FFC23D; }
.lp-rate-stars button:focus-visible { outline: 3px solid var(--teal-bright); outline-offset: 2px; }

/* Certificate: Add to LinkedIn + Share a post on LinkedIn side by side (Nov 13) */
.lp-share-row { display: flex; flex-wrap: nowrap; gap: 10px; margin-top: 18px; }
.lp-share-row .lp-share { margin-top: 0 !important; flex: 1 1 0; min-width: 0; justify-content: center; text-align: center; font-size: 14px; line-height: 1.25; padding: 11px 12px; white-space: normal; }
@media (max-width: 760px) { .lp-share-row { flex-wrap: wrap; } .lp-share-row .lp-share { flex: 1 1 100%; } }   /* phones: stacked, full width */
/* Share quest on the class end screen (Nov 13, 2026): numbered tasks that tick off. Hover = color only. */
.lp-qtask { display: flex; gap: 14px; align-items: center; border: 2px solid var(--line); border-radius: 14px; padding: 14px 16px; margin-top: 12px; background: var(--white); transition: background .2s, border-color .2s; }
.lp-qnum { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--gray-soft); color: var(--ink); font-weight: 800; font-size: 18px; }
.lp-qnum .ico { display: none; width: 22px; height: 22px; }
.lp-qtext { flex: 1; min-width: 0; }
.lp-qtext b { display: block; color: var(--ink); font-size: 17px; }
.lp-qtext small { display: block; font-size: 15px; color: var(--text-3); margin-top: 2px; }
.lp-qgo { flex: none; white-space: nowrap; }
.lp-qacts { flex: none; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.lp-qagain { background: none; border: 0; padding: 2px 4px; font: inherit; font-size: 14px; font-weight: 600; color: var(--teal); text-decoration: underline; cursor: pointer; }
.lp-qtask.wait { border-color: var(--c, var(--teal-bright)); }
.lp-qtask.wait small { color: var(--ink); font-weight: 600; }
.lp-qtask.on { background: var(--win-soft, var(--mint-soft)); border-color: var(--win, var(--teal-bright)); }
.lp-qtask.on .lp-qnum { background: var(--win, var(--teal)); color: var(--white); }
.lp-qtask.on .lp-qn { display: none; }
.lp-qtask.on .lp-qnum .ico { display: block; }
.lp-quest-bar { height: 10px; border-radius: 999px; background: var(--gray-soft); overflow: hidden; margin-top: 16px; }
.lp-quest-bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--win, var(--teal)); transition: width .4s; }
.lp-earned { display: inline-block; margin: 2px 0 10px; padding: 4px 12px; border-radius: 999px; background: #E7F8EE; color: #1E8A52; font-size: 15px; font-weight: 700; text-wrap: pretty; }
.lp-earned[hidden] { display: none; }
.lp-quest-win { font-weight: 800; color: var(--win-d, var(--teal)); margin: 4px 0 0; }
.lp-quest-cv { margin-top: 14px; }
.lp-quest-cv a { color: var(--teal); font-weight: 700; text-decoration: underline; }
/* Phones: 3-step "how to post on LinkedIn" guide under the Share a post task (Nov 14, 2026). Paste step stands out. */
.lp-share-steps { margin-top: 8px; padding: 14px 16px; border-radius: 14px; background: var(--mint-soft, #E6F7F5); border: 2px solid var(--teal-bright, #1BB0AA); color: var(--ink); }
.lp-share-steps > b { display: block; font-size: 16px; margin-bottom: 6px; }
.lp-share-steps ol { margin: 0; padding-left: 22px; font-size: 15px; line-height: 1.5; }
.lp-share-steps li + li { margin-top: 4px; }
.lp-share-steps li:last-child { font-weight: 600; }
@media (max-width: 600px) { .lp-qtask { flex-wrap: wrap; } .lp-qacts { width: 100%; } .lp-qgo { width: 100%; justify-content: center; } }
/* Class review: an existing review shown back to the learner (Nov 13) */
.lp-rate-show span { line-height: 0; color: #D5DDDD; padding: 2px; }
.lp-rate-show span svg { width: 30px; height: 30px; display: block; }
.lp-rate-show span.on { color: #FFC23D; }
.lp-review-text { font-size: 17px; font-style: italic; color: var(--ink); margin: 2px 0 8px; }

/* Class page: learner reviews (was never styled; showed giant stars once the first review existed, Nov 13) */
.rv { display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: 36px; align-items: start; }
.rv h2 { font-size: 24px; margin-bottom: 12px; }
.rv svg { width: 100%; height: 100%; display: block; }
.rv-empty { color: var(--text-3); font-size: 16px; }
.rv-avg { display: flex; align-items: center; gap: 8px; color: #FFC23D; }
.rv-avg svg { width: 30px; height: 30px; }
.rv-avg b { font-size: 34px; line-height: 1; color: var(--ink); }
.rv-count { color: var(--text-3); font-size: 15px; margin: 4px 0 16px; }
.rv-bars { display: grid; gap: 8px; }
.rv-bar { display: grid; grid-template-columns: 58px 1fr 44px; align-items: center; gap: 10px; font-size: 14px; }
.rv-bar b { font-weight: 600; color: var(--text-2); }
.rv-track { height: 8px; border-radius: 99px; background: #E4EBEB; overflow: hidden; }
.rv-track span { display: block; height: 100%; background: #FFC23D; border-radius: 99px; }
.rv-pct { color: var(--text-3); text-align: right; }
.rv-showing { color: var(--text-3); font-size: 14px; margin-bottom: 10px; }
.rv-cards { display: grid; gap: 12px; }
.rv-card { display: flex; gap: 14px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.rv-ava { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--mint-soft); color: var(--teal-dark); font-weight: 800; }
.rv-body { flex: 1; min-width: 0; }
.rv-name { display: block; font-weight: 700; font-size: 15px; }
.rv-top { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 2px 0 6px; font-size: 14px; }
.rv-top b { font-weight: 700; }
.rv-date { color: var(--text-3); }
.rv-stars { display: inline-flex; gap: 2px; }
.rv-stars span { width: 16px; height: 16px; color: #D5DDDD; display: inline-block; }
.rv-stars span.on { color: #FFC23D; }
.rv-body p { font-size: 16px; color: var(--ink); }
.rv-more { margin-top: 12px; background: none; border: 0; color: var(--teal-dark); font: inherit; font-weight: 700; cursor: pointer; padding: 0; }
@media (max-width: 760px) { .rv { grid-template-columns: 1fr; gap: 20px; } }
.rv-ava { font-size: 14px; }
@media (max-width: 760px) { .rv-date { flex-basis: 100%; } }
.rv-ava { overflow: hidden; }
.rv-ava img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Name on the certificate (class end screen): learner types it once, with a live preview */
.lp-name-label { display: block; font-weight: 800; margin: 14px 0 6px; }
.lp-name-input { width: 100%; max-width: 460px; border: 2px solid var(--line); border-radius: 14px; padding: 12px 16px; font: inherit; font-size: 18px; }
.lp-name-input:focus { outline: none; border-color: var(--teal-bright); }
.lp-name-preview { max-width: 560px; margin: 18px 0 4px; }
.lp-namebox .lp-btns { margin-top: 20px; }
.lp-name-msg { color: #D93025; min-height: 1em; }

/* 7-day AI habit: Gametize project inside the last step, after the quiz is passed (Nov 14) */
.lp-habit-frame { display: block; width: 100%; height: 760px; border: 1px solid var(--line); border-radius: 14px; background: var(--gray-soft); margin: 14px 0 4px; }
@media (max-width: 600px) { .lp-habit-frame { height: 640px; } }
.lp-habit { scroll-margin-top: 170px; }   /* lands below the pinned class bar */

/* My Journey header: shorter, one row, and each learner picks a color or pattern (Ivy, Nov 14, 2026).
   Patterns are drawn with CSS/SVG so they stay sharp on every screen. Hover changes color only. */
.my-hero { position: relative; }
.my-theme-btn { font: inherit; font-size: 14px; font-weight: 700; padding: 4px 12px; border-radius: 999px; cursor: pointer; border: 1px solid currentColor; background: transparent; color: inherit; opacity: .85; transition: background .2s, opacity .2s; }
.my-theme-btn:hover { opacity: 1; background: rgba(255,255,255,.14); }
.my-theme-pop { position: absolute; bottom: 64px; right: 20px; z-index: 40; width: 236px; background: var(--white); color: var(--ink); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 14px 16px; }
.my-theme-pop b { display: block; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); margin-bottom: 8px; }
.my-theme-row { display: flex; gap: 12px; margin-bottom: 14px; }
.my-theme-row:last-child { margin-bottom: 0; }
.my-sw { width: 38px; height: 38px; border-radius: 50%; cursor: pointer; border: 1px solid rgba(3,13,20,.15); padding: 0; transition: box-shadow .2s; }
.my-sw:hover { box-shadow: 0 0 0 3px var(--mint); }
.my-sw[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--white), 0 0 0 5px var(--teal); }

/* The colors and patterns (used by the header and by the swatches) */
.theme-dark { background: var(--ink); }
.theme-mint { background: var(--mint-soft); }
.theme-teal { background: var(--teal); }
.theme-purple { background: #5B3FD6; }
.theme-dots { background: radial-gradient(rgba(2,131,124,.22) 1.6px, transparent 2.2px) 0 0 / 16px 16px, var(--mint-soft); }
.theme-confetti { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cg opacity='.38'%3E%3Ccircle cx='14' cy='18' r='4' fill='%231BB0AA'/%3E%3Crect x='62' y='12' width='9' height='9' rx='2' fill='%23FFC23D' transform='rotate(20 66 16)'/%3E%3Cpath d='M98 52l6 10h-12z' fill='%238B6CF6'/%3E%3Crect x='30' y='70' width='12' height='5' rx='2.5' fill='%23FF7A6B' transform='rotate(-30 36 72)'/%3E%3Ccircle cx='84' cy='98' r='3' fill='%2302837C'/%3E%3Crect x='8' y='100' width='8' height='8' rx='2' fill='%238B6CF6' transform='rotate(35 12 104)'/%3E%3Cpath d='M52 40l5 9h-10z' fill='%23FF7A6B'/%3E%3Ccircle cx='106' cy='16' r='3' fill='%23FFC23D'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 150px 150px, #FFFBF2; }
.theme-waves { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='40'%3E%3Cpath d='M0 20q20-14 40 0t40 0' fill='none' stroke='%23ffffff' stroke-opacity='.13' stroke-width='2'/%3E%3C/svg%3E") 0 0 / 80px 40px, linear-gradient(135deg, #02837C, #035E5A); }
.theme-grid { background: linear-gradient(rgba(27,176,170,.16) 1px, transparent 1px) 0 0 / 22px 22px, linear-gradient(90deg, rgba(27,176,170,.16) 1px, transparent 1px) 0 0 / 22px 22px, var(--ink); }

/* Light backgrounds: dark text */
.my-hero.theme-mint, .my-hero.theme-dots, .my-hero.theme-confetti { color: var(--ink); border: 1px solid var(--line); }
.my-hero.theme-mint h1, .my-hero.theme-dots h1, .my-hero.theme-confetti h1 { color: var(--ink); }
.my-hero.theme-mint .muted, .my-hero.theme-dots .muted, .my-hero.theme-confetti .muted,
.my-hero.theme-mint .my-pts span, .my-hero.theme-dots .my-pts span, .my-hero.theme-confetti .my-pts span,
.my-hero.theme-mint .my-level-top span, .my-hero.theme-dots .my-level-top span, .my-hero.theme-confetti .my-level-top span { color: var(--text-3); }
.my-hero.theme-mint .kicker, .my-hero.theme-dots .kicker, .my-hero.theme-confetti .kicker,
.my-hero.theme-mint .my-pts b, .my-hero.theme-dots .my-pts b, .my-hero.theme-confetti .my-pts b { color: var(--teal); }
.my-hero.theme-mint .my-bar, .my-hero.theme-dots .my-bar, .my-hero.theme-confetti .my-bar { background: rgba(2,131,124,.14); }
.my-hero.theme-mint .my-bar span, .my-hero.theme-dots .my-bar span, .my-hero.theme-confetti .my-bar span { background: linear-gradient(90deg, #02837C, #1BB0AA, #7FDCCF); }
.my-hero.theme-mint .my-theme-btn:hover, .my-hero.theme-dots .my-theme-btn:hover, .my-hero.theme-confetti .my-theme-btn:hover { background: rgba(2,131,124,.10); }
/* Teal backgrounds: the mint text needs a little more contrast */
.my-hero.theme-teal .muted, .my-hero.theme-waves .muted, .my-hero.theme-teal .my-pts span, .my-hero.theme-waves .my-pts span,
.my-hero.theme-teal .my-level-top span, .my-hero.theme-waves .my-level-top span,
.my-hero.theme-purple .muted, .my-hero.theme-purple .my-pts span, .my-hero.theme-purple .my-level-top span { color: rgba(255,255,255,.82); }
.my-hero.theme-teal .my-bar, .my-hero.theme-waves .my-bar, .my-hero.theme-purple .my-bar { background: rgba(255,255,255,.2); }
.my-hero.theme-teal .my-bar span, .my-hero.theme-waves .my-bar span, .my-hero.theme-purple .my-bar span { background: linear-gradient(90deg, #B6F3E8, #FFFFFF); }
.my-hero.theme-teal .my-av, .my-hero.theme-waves .my-av { background: var(--white); color: var(--teal); box-shadow: 0 0 0 3px var(--mint); }

/* Swatches: smaller pattern so each circle shows its pattern */
.my-sw.theme-dots { background-size: 8px 8px, auto; }
.my-sw.theme-confetti { background-size: 44px 44px, auto; }
.my-sw.theme-waves { background-size: 24px 12px, auto; }
.my-sw.theme-grid { background-size: 9px 9px, 9px 9px, auto; }
@media (max-width: 600px) {
  .my-hero .my-level-top b, .my-hero .my-level-top span { white-space: nowrap; }
  /* 320 wide: "80 points to Level 2" / "Top level reached" ran past the card edge (Ivy, Nov 22, 2026).
     It now drops under "Level 1" only when the row is too narrow; wider phones look the same. */
  .my-hero .my-level-top { flex-wrap: wrap; row-gap: 2px; }
}
/* "Customize" shows only while the mouse is over the header (Ivy, Nov 14, 2026). Fades in, never moves.
   Phones/tablets have no mouse, so it stays visible there. Keyboard users see it when it has focus. */
@media (hover: hover) {
  .my-theme-btn { opacity: 0; }
  .my-hero:hover .my-theme-btn, .my-theme-btn:focus-visible, .my-theme-btn[aria-expanded="true"] { opacity: .85; }
  .my-hero:hover .my-theme-btn:hover { opacity: 1; }
}
/* "Customize" sits in the bottom-right corner of the header (Ivy, Nov 14, 2026); its box opens upward. */
.my-theme-btn { position: absolute; right: 20px; bottom: 18px; }
@media (max-width: 1000px) {
  .my-theme-btn { position: static; margin-left: auto; }
  .my-theme-pop { bottom: 60px; }
}
/* Gradients (Ivy, Nov 14, 2026): the same "glow" style as the badge screen (.lp-mission): a soft light from the top-right
   and a faint one bottom-left, on the dark background. White text on all four. */
.theme-glow-teal { background: radial-gradient(circle at 88% -10%, rgba(27,176,170,.45), transparent 55%), radial-gradient(circle at 0% 120%, rgba(182,243,232,.14), transparent 50%), var(--ink); }
.theme-glow-purple { background: radial-gradient(circle at 88% -10%, rgba(139,108,246,.55), transparent 55%), radial-gradient(circle at 0% 120%, rgba(196,181,253,.16), transparent 50%), var(--ink); }
.theme-glow-gold { background: radial-gradient(circle at 88% -10%, rgba(255,194,61,.42), transparent 55%), radial-gradient(circle at 0% 120%, rgba(255,224,138,.14), transparent 50%), var(--ink); }
.theme-glow-pink { background: radial-gradient(circle at 88% -10%, rgba(255,107,157,.45), transparent 55%), radial-gradient(circle at 0% 120%, rgba(255,182,206,.14), transparent 50%), var(--ink); }
.my-sw.theme-glow-teal, .my-sw.theme-glow-purple, .my-sw.theme-glow-gold, .my-sw.theme-glow-pink { background-size: 160% 160%, 160% 160%, auto; background-position: 70% 0, 0 100%, 0 0; }
/* The box has three rows now, so it opens downward from the button (over the cards below) */
.my-theme-pop { bottom: auto; top: calc(100% - 12px); }
@media (max-width: 1000px) { .my-theme-pop { bottom: auto; top: calc(100% - 12px); } }

/* "Watch first" video on a step's start screen (Ivy, Nov 14, 2026) */
.lp-video { margin: 22px 0 18px; max-width: 720px; }
.lp-video-tag { display: inline-block; font-size: 15px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mint); margin-bottom: 8px; }
.lp-video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.lp-video-frame iframe, .lp-video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.lp-mission p.lp-video-note { font-size: 14px; color: rgba(255,255,255,.7); margin: 10px 0 0; }
.lp-video-tall { max-width: 300px; }
.lp-video-tall .lp-video-frame { aspect-ratio: 9 / 16; }

/* Animated "watch first" demo (assets/js/walkthrough.js). The scene is drawn at 800 × 450 and scaled to the box. */
.wk { border-radius: 14px; overflow: hidden; background: var(--ink-2); box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.wk-frame { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #E8FBF7; }
.wk-stage { position: absolute; left: 0; top: 0; width: 800px; height: 450px; transform-origin: 0 0; transform: scale(var(--s, 1)); font-family: var(--font); color: var(--ink); }
.wk-stage > * , .wk-win > * { position: absolute; }
.wk-bar { display: block; height: 14px; border-radius: 7px; background: currentColor; opacity: .35; margin: 0 0 12px; }
.wk-bar:last-child { margin-bottom: 0; }
/* Animation: pieces appear at --t and (with .x) leave at --t2 */
.wk .a { opacity: 0; }
.wk.playing .a { animation: wk-in .4s ease var(--t, 0s) both; }
.wk.playing .a.x { animation: wk-in .4s ease var(--t, 0s) both, wk-out .35s ease var(--t2) forwards; }
.wk.paused *, .wk.paused { animation-play-state: paused !important; }
@keyframes wk-in { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes wk-out { to { opacity: 0; visibility: hidden; } }
/* The two windows */
.wk-win { background: #fff; border-radius: 18px; box-shadow: 0 8px 24px rgba(3,13,20,.12); overflow: hidden; }
.wk-win-top { left: 0; right: 0; top: 0; height: 50px; display: flex; align-items: center; gap: 10px; padding: 0 18px; background: var(--ink); color: #fff; font-size: 22px; font-weight: 700; }
.wk-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--teal-bright); flex: none; }
.wk-task { left: 24px; top: 66px; font-size: 30px; font-weight: 800; }
.wk-prompt { left: 24px; top: 116px; width: 312px; height: 106px; padding: 22px; border-radius: 14px; background: var(--ink); color: #fff; }
.wk-btn { height: 46px; border-radius: 23px; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 700; color: #fff; background: var(--teal); }
.wk-btn > span { position: absolute; }
.wk-copy { left: 224px; top: 128px; width: 100px; height: 40px; border-radius: 10px; font-size: 20px; background: #1F63D1; }   /* inside the black box, top right, like the real lesson (Ivy, Nov 14, 2026) */
.wk-s-first-chat .wk-prompt { padding-right: 124px; border-left: 6px solid #3D8BFD; color: var(--mint); }   /* text stops before the Copy button; Step 2 blue edge, like the real box */
.wk-copy > span:last-child { white-space: nowrap; }
.wk-next { left: 24px; top: 342px; width: 312px; }
.wk-off { background: #C9D2D2; }
.wk-paste { left: 24px; top: 116px; width: 312px; height: 170px; border: 3px dashed var(--teal-bright); border-radius: 14px; background: var(--mint-soft); color: var(--teal-dark); }
.wk-paste > span { position: absolute; left: 0; right: 0; top: 0; bottom: 0; display: flex; align-items: center; justify-content: center; text-align: center; font-size: 22px; font-weight: 700; padding: 0 16px; }
.wk-paste > .wk-pasted { display: block; top: 26px; left: 22px; right: 22px; bottom: auto; text-align: left; color: var(--ink); }
.wk-bub { padding: 20px; border-radius: 18px; font-size: 24px; font-weight: 700; }
.wk-me { background: var(--teal); color: #fff; border-bottom-right-radius: 6px; }
.wk-ai { background: var(--gray-soft); color: var(--ink); border-bottom-left-radius: 6px; }
.wk.playing .wk-hl { animation: wk-in .4s ease var(--t) both, wk-hl .4s ease var(--t3) forwards; }
@keyframes wk-hl { to { box-shadow: 0 0 0 5px var(--teal-bright); } }
.wk-typing { display: flex; gap: 8px; padding: 18px 20px; border-radius: 18px; background: var(--gray-soft); }
.wk-typing i { width: 12px; height: 12px; border-radius: 50%; background: var(--text-3); }
.wk.playing .wk-typing i { animation: wk-dot 1s ease-in-out infinite; }
.wk.playing .wk-typing i:nth-child(2) { animation-delay: .15s; } .wk.playing .wk-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes wk-dot { 50% { transform: translateY(-6px); } }
.wk-tag { padding: 6px 14px; border-radius: 16px; background: var(--ink); color: #fff; font-size: 20px; font-weight: 700; white-space: nowrap; }
.wk-input { left: 16px; top: 342px; width: 232px; height: 50px; border: 2px solid var(--line); border-radius: 25px; padding: 16px 20px 0; color: var(--ink); }
.wk-send { left: 258px; top: 342px; width: 50px; height: 50px; border-radius: 50%; background: var(--ink); display: flex; align-items: center; justify-content: center; }
.wk-send svg { width: 26px; height: 26px; }
.wk-done { display: flex; align-items: center; gap: 14px; padding: 22px 36px; border-radius: 24px; background: var(--ink); color: var(--mint); box-shadow: 0 16px 40px rgba(3,13,20,.3); }
.wk-done svg { width: 54px; height: 54px; } .wk-done b { font-size: 46px; color: #fff; }
/* Pretend finger: a pointer that moves between the buttons, with a ripple on each tap */
.wk-cursor { left: 0; top: 0; width: 44px; height: 44px; opacity: 0; filter: drop-shadow(0 3px 4px rgba(0,0,0,.3)); }
.wk.started .wk-cursor { opacity: 1; }
.wk.playing .wk-cursor { animation: wk-cur 38s ease-in-out both, lg-fade .3s ease .5s both; }   /* cursor appears with the windows, after the title */
@keyframes wk-cur {
  /* Step 2 (38 s): tap the AI assistant app (2.4 s), rest, then Copy (9 s), paste + send, copy the answer, Next, paste, Continue */
  0% { transform: translate(620px, 300px); } 5%, 7.11% { transform: translate(566px, 195px); } 9.21%, 15.79% { transform: translate(620px, 300px); }
  22.61%, 25.26% { transform: translate(264px, 138px); }
  32.13%, 35.79% { transform: translate(532px, 382px); } 38.44%, 40.8% { transform: translate(694px, 382px); }
  57.89%, 64.74% { transform: translate(570px, 235px); } 69.47%, 72.11% { transform: translate(196px, 380px); }
  75.26%, 77.89% { transform: translate(196px, 180px); } 82.63%, 100% { transform: translate(196px, 380px); } }
.wk-a-app { color: var(--teal); }
.wk-a-app b { font-size: 22px; }
.wk-a-side { display: flex; align-items: center; gap: 10px; padding: 12px 18px; font-size: 20px; border-radius: 14px; }
.wk-a-side > * { position: static; } .wk-a-side svg { width: 28px; height: 28px; color: var(--teal-bright); }
/* Step 4 video "spot-mistakes" (Nov 14, 2026). .wk-bop = pops in with a bounce (paired with a pop sound). Not "wk-pp": that's the play button. */
.wk.playing .wk-bop.a { animation: wk-pop .55s cubic-bezier(.3,1.6,.5,1) var(--t) both; }
.wk.playing .wk-bop.a.x { animation: wk-pop .55s cubic-bezier(.3,1.6,.5,1) var(--t) both, wk-out .35s ease var(--t2) forwards; }
.wk-b-orb { color: #FF7A6B !important; }
.wk-b-way { width: 170px; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.wk-b-way > * { position: static; }
.wk-b-way span { width: 130px; height: 130px; border-radius: 50%; background: var(--ink); color: #FF9A8E; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 24px rgba(3,13,20,.2); }
.wk-b-way svg { width: 64px; height: 64px; }
.wk-b-way b { font-size: 24px; }
.wk-b-fix { width: 240px; padding: 22px 20px; border-radius: 20px; background: #fff; box-shadow: 0 10px 28px rgba(3,13,20,.14); border: 3px solid #2FBF71; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.wk-b-fix > * { position: static; }
.wk-b-fix svg { width: 56px; height: 56px; }
.wk-b-fix b { font-size: 26px; line-height: 1.2; }
.wk-b-head { display: flex; align-items: center; justify-content: center; gap: 14px; }
.wk-b-head > * { position: static; } .wk-b-head svg { width: 44px; height: 44px; color: var(--teal); }
.wk-b-row { width: 580px; height: 74px; border-radius: 18px; background: #fff; box-shadow: 0 8px 22px rgba(3,13,20,.1); display: flex; align-items: center; gap: 18px; padding: 0 20px; }
.wk-b-row > * { position: static; }
.wk-b-row span { width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--ink); color: var(--mint); display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 800; }
.wk-b-row b { font-size: 25px; }
.wk-b-game { width: 620px; height: 370px; border-radius: 22px; background: #fff; border: 3px solid #FF7A6B; box-shadow: 0 10px 28px rgba(3,13,20,.14); }
.wk-b-game > * { position: absolute; }
.wk-b-game small { left: 0; right: 0; top: 30px; text-align: center; font-size: 20px; font-weight: 800; letter-spacing: .1em; color: var(--text-3); text-transform: uppercase; }
.wk-b-game p { left: 40px; right: 40px; top: 90px; margin: 0; text-align: center; font-size: 30px; font-weight: 800; line-height: 1.3; max-width: none; }
.wk-b-opts { left: 24px; right: 24px; bottom: 30px; display: flex; gap: 12px; }
.wk-b-opts > span { position: relative; flex: 1; height: 70px; border-radius: 16px; border: 2px solid var(--line); border-bottom-width: 5px; background: #fff; display: flex; align-items: center; justify-content: center; text-align: center; font-size: 19px; font-weight: 800; line-height: 1.15; padding: 0 8px; }
.wk-b-ans { flex: 1.35 !important; }
.wk-b-ans em { position: absolute; inset: -2px -2px -5px; border-radius: 16px; background: #2FBF71; border-bottom: 5px solid #1E8A52; color: #fff; font-style: normal; display: flex; align-items: center; justify-content: center; }
/* Step 5 video "stay-safe" (Nov 14, 2026) */
.wk-c-post { width: 500px; height: 300px; border-radius: 14px; background: #FFFDF6; box-shadow: 0 12px 30px rgba(3,13,20,.16); transform: rotate(-3deg); }
.wk.playing .wk-c-post.a.x { animation: wk-pop .55s cubic-bezier(.3,1.6,.5,1) var(--t) both, wk-out .35s ease var(--t2) forwards; }
.wk-c-post > * { position: absolute; }
.wk-c-post::after { content: ""; position: absolute; left: 50%; top: 40px; bottom: 40px; width: 2px; background: #E2DDCC; }
.wk-c-msg { left: 30px; top: 70px; width: 190px; color: var(--ink); }
.wk-c-addr { left: 280px; top: 150px; width: 180px; color: var(--ink); }
.wk-c-addr .wk-bar { margin-bottom: 22px; }
.wk-c-stamp { right: 26px; top: 24px; width: 70px; height: 84px; border: 3px dashed #FF7A6B; border-radius: 6px; background: #FFE7E3; color: #E5484D; display: flex; align-items: center; justify-content: center; }
.wk-c-stamp svg { width: 40px; height: 40px; }
.wk-c-eye svg { color: #FFC23D; }
.wk-c-tile { color: #E5484D; }
.wk-c-tile b { font-size: 21px; text-align: center; line-height: 1.15; padding: 0 8px; }
.wk-c-tile b.wk-c-long { font-size: 18px; }
.wk-c-tile .wk-c-no { position: absolute; top: -16px; right: -16px; width: 52px; height: 52px; }
.wk-c-no svg { width: 100%; height: 100%; }
.wk.playing .wk-c-no.a { animation: wk-pop .45s cubic-bezier(.3,1.6,.5,1) var(--t) both; }
.wk-c-bub { width: 580px; font-size: 30px; line-height: 1.3; }
.wk.playing .wk-c-shake.a.x { animation: wk-in .4s ease var(--t) both, wk-shake .6s ease var(--t3) both, wk-out .35s ease var(--t2) forwards; }   /* the "not safe" version shakes with the wah-wah */
.wk-c-bub i { font-style: normal; background: #FF7A6B; border-radius: 6px; padding: 0 6px; }
.wk-c-bub em { font-style: normal; background: #fff; color: var(--teal-dark); border-radius: 6px; padding: 0 6px; }
.wk-c-ok { width: 250px; padding: 14px 18px; flex-direction: row; justify-content: center; }
.wk-c-ok svg { width: 40px; height: 40px; } .wk-c-ok b { font-size: 24px; white-space: nowrap; }
.wk-c-topic { display: flex; align-items: center; gap: 14px; }
.wk-c-topic > * { position: static; }
.wk-c-topic span { width: 96px; height: 96px; border-radius: 50%; background: var(--ink); color: var(--mint); display: flex; align-items: center; justify-content: center; }
.wk-c-topic svg { width: 50px; height: 50px; }
.wk-c-topic b { font-size: 24px; }
.wk-c-qs { width: 230px; padding: 22px 22px 26px; border-radius: 18px; background: #fff; box-shadow: 0 10px 28px rgba(3,13,20,.14); color: var(--ink); }
.wk-c-qs > * { position: static; }
.wk-c-qs b { display: block; font-size: 24px; margin-bottom: 18px; }
.wk-c-arrow { width: 56px; height: 56px; color: var(--teal); }
.wk-c-arrow svg { width: 100%; height: 100%; }
.wk-c-pro { width: 210px; }
.wk-c-proic { width: 84px; height: 84px; border-radius: 50%; background: var(--mint-soft); color: var(--teal); display: flex; align-items: center; justify-content: center; }
.wk-c-proic svg { width: 48px; height: 48px; }
.wk-c-pro > svg { width: 44px; height: 44px; }
.wk-c-phone { width: 300px; height: 402px; border-radius: 36px; background: #fff; border: 10px solid var(--ink); box-shadow: 0 12px 30px rgba(3,13,20,.2); }
.wk-c-phone > * { position: absolute; }
.wk-c-from { left: 0; right: 0; top: 0; height: 70px; display: flex; align-items: center; gap: 10px; padding: 0 18px; border-bottom: 2px solid var(--line); font-size: 24px; font-weight: 800; }
.wk-c-from > * { position: static; } .wk-c-from svg { width: 36px; height: 36px; padding: 6px; border-radius: 50%; background: var(--gray-soft); }
.wk-c-scam { width: 248px; font-size: 22px; line-height: 1.3; }
.wk-c-call { width: 260px; }
.wk-c-call > svg { width: 52px; height: 52px; color: #2FBF71; }
.wk-c-list { width: 620px; height: 380px; border-radius: 22px; background: #fff; border: 3px solid #2FBF71; box-shadow: 0 10px 28px rgba(3,13,20,.14); }
.wk-c-list > * { position: absolute; }
.wk-c-list > b { left: 28px; top: 24px; font-size: 28px; font-weight: 800; }
.wk-c-li { left: 24px; right: 24px; height: 70px; border-radius: 14px; border: 2px solid var(--line); display: flex; align-items: center; gap: 16px; padding: 0 16px; font-size: 21px; font-weight: 600; }
.wk-c-li > * { position: relative; }
.wk-c-box { width: 34px; height: 34px; flex: none; border-radius: 8px; border: 2px solid var(--line); }
.wk-c-box i { position: absolute; inset: -4px; display: block; }
.wk-c-box svg { width: 100%; height: 100%; }
/* Step 6 video "quiz-habit" (Nov 14, 2026). Step 6 color: indigo #5B6CF0 / #3A49C9, like the real quiz. */
.wk-d-orb { color: #F5C451 !important; }
.wk-d-quiz { width: 580px; height: 394px; border-radius: 22px; background: #fff; border: 3px solid #5B6CF0; box-shadow: 0 10px 28px rgba(3,13,20,.14); }
.wk-d-quiz > * { position: absolute; }
.wk-d-quiz small { left: 28px; top: 22px; font-size: 18px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.wk-d-dots { left: 28px; right: 28px; top: 58px; display: flex; gap: 6px; }
.wk-d-dots i { flex: 1; height: 8px; border-radius: 4px; background: var(--gray-soft); }
.wk-d-dots i.now { background: #5B6CF0; }
.wk-d-quiz p { left: 28px; right: 28px; top: 90px; margin: 0; font-size: 28px; font-weight: 800; line-height: 1.25; max-width: none; }
.wk-d-opt { left: 28px; right: 28px; height: 58px; border-radius: 14px; border: 2px solid var(--line); border-bottom-width: 5px; display: flex; align-items: center; padding: 0 18px; font-size: 20px; font-weight: 700; }
.wk-d-opt em { position: absolute; inset: -2px -2px -5px; border-radius: 14px; border: 2px solid #3A49C9; border-bottom-width: 5px; background: #E9EBFD; font-style: normal; display: flex; align-items: center; padding: 0 18px; }
@property --wkp { syntax: "<number>"; inherits: false; initial-value: 0; }
.wk-d-score { width: 300px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.wk-d-score > * { position: static; }
.wk-d-ring { --wkp: 0; width: 230px; height: 230px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(#5B6CF0 calc(var(--wkp) * 1%), #DCDFF5 0); }
.wk-d-ring b { width: 176px; height: 176px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 54px; font-weight: 800; }
.wk.playing .wk-d-ring { animation: wk-ring 1.4s ease 6.2s forwards; }
@keyframes wk-ring { to { --wkp: 75; } }
.wk-d-score small { font-size: 26px; font-weight: 800; color: #3A49C9; }
.wk-d-steps { display: flex; justify-content: center; gap: 14px; }
.wk-d-steps > span { position: relative; width: 74px; height: 74px; }
.wk-d-steps svg { width: 100%; height: 100%; }
.wk-d-steps b { position: absolute; right: -4px; bottom: -4px; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 17px; display: grid; place-items: center; }
.wk-d-day { width: 96px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.wk-d-day > * { position: relative; }
.wk-d-day > span { width: 80px; height: 80px; border-radius: 50%; background: #fff; border: 3px solid #DCDFF5; display: grid; place-items: center; font-size: 32px; font-weight: 800; color: #3A49C9; }
.wk-d-day > i { position: absolute; top: 0; left: 8px; width: 80px; height: 80px; }
.wk-d-day > i svg { width: 100%; height: 100%; }
.wk-d-day > b { font-size: 20px; }
.wk.playing .wk-a-side.a.x { animation: wk-pop .5s cubic-bezier(.3,1.6,.5,1) var(--t) both, wk-out .35s ease var(--t2) forwards; }
.wk-rip { width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: rgba(27,176,170,.55); opacity: 0; }
.wk.playing .wk-rip { animation: wk-rip .6s ease-out var(--t) forwards; }
@keyframes wk-rip { from { opacity: .95; transform: scale(.3); } to { opacity: 0; transform: scale(1.9); } }
/* Before play: a cover with a play button */
.wk-poster { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border: 0; cursor: pointer; font: inherit; color: #fff;
  background: radial-gradient(circle at 80% 0%, rgba(27,176,170,.55), transparent 60%), rgba(3,13,20,.82); }
.wk.started .wk-poster { display: none; }
.wk-play { width: 62px; height: 62px; border-radius: 50%; background: var(--teal-bright); display: flex; align-items: center; justify-content: center; margin: 4px 0 2px; transition: background .2s; }
.wk-poster:hover .wk-play { background: var(--teal); }
.wk-play svg { width: 30px; height: 30px; margin-left: 3px; }
.wk-poster b { font-size: 18px; } .wk-poster small { font-size: 14px; color: rgba(255,255,255,.75); }
/* Captions and controls under the scene */
.wk-caps { position: relative; min-height: 64px; background: var(--ink); }
.wk-caps p { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 8px 16px; margin: 0; font-size: 17px; font-weight: 600; line-height: 1.35; color: #fff; max-width: none; }
.wk:not(.started) .wk-caps p { opacity: 0; }
.wk-ctrl { display: flex; align-items: center; gap: 12px; padding: 4px 14px 12px; background: var(--ink); }
.wk-pp { width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; flex: none; transition: background .2s; }
.wk-pp:hover { background: rgba(255,255,255,.22); }
.wk-pp svg { width: 18px; height: 18px; }
.wk-track { flex: 1; height: 6px; border-radius: 3px; background: rgba(255,255,255,.18); overflow: hidden; }
.wk-fill { display: block; height: 100%; width: 0; background: var(--teal-bright); }
.wk-time { font-size: 14px; color: rgba(255,255,255,.7); font-variant-numeric: tabular-nums; }
@media (max-width: 600px) { .wk-caps { min-height: 72px; } .wk-caps p { font-size: 15px; } }
@media (max-width: 600px) {
  .wk-poster { gap: 2px; }
  .wk-play { width: 46px; height: 46px; } .wk-play svg { width: 22px; height: 22px; }
  .wk-poster b { font-size: 15px; } .wk-poster small { font-size: 12px; }
}
.wk-snd { width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; flex: none; transition: background .2s; }
.wk-snd:hover { background: rgba(255,255,255,.22); }
.wk-snd svg { width: 20px; height: 20px; }
/* Full screen player (real full screen, or .wk-full = fills the window on iPhone) */
.wk-fs { width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; flex: none; padding: 0; }
.wk-fs:hover { background: rgba(255,255,255,.22); }
.wk-fs svg { width: 20px; height: 20px; }
.wk:fullscreen, .wk.wk-full { position: fixed; inset: 0; z-index: 10000; border-radius: 0; box-shadow: none; display: flex; flex-direction: column; justify-content: center; background: #030D14; }
.wk:-webkit-full-screen { position: fixed; inset: 0; border-radius: 0; display: flex; flex-direction: column; justify-content: center; background: #030D14; }
.wk:fullscreen .wk-frame, .wk.wk-full .wk-frame { width: min(100vw, calc((100vh - 150px) * 16 / 9)); width: min(100vw, calc((100dvh - 150px) * 16 / 9)); margin: 0 auto; flex: none; }
.wk:fullscreen .wk-caps, .wk.wk-full .wk-caps { min-height: 80px; } .wk:fullscreen .wk-caps p, .wk.wk-full .wk-caps p { font-size: 22px; }
.wk:fullscreen .wk-ctrl, .wk.wk-full .wk-ctrl { padding-bottom: max(12px, env(safe-area-inset-bottom)); }
html.wk-lock, html.wk-lock body { overflow: hidden; }
/* Before play: show a still of the first scene under a see-through cover, so the player never looks empty (Ivy, Nov 14, 2026) */
.wk:not(.started) .wk-cv { opacity: 1; }
.wk:not(.started) .wk-caps p.wk-cap0 { opacity: 1; }
.wk.started .wk-cap0 { display: none; }
.wk .wk-poster { background: radial-gradient(circle at 50% 50%, rgba(3,13,20,.55), rgba(3,13,20,.25) 70%); }
.wk-poster b, .wk-poster small { text-shadow: 0 1px 6px rgba(0,0,0,.5); }
.lp-go:disabled { opacity: .5; cursor: not-allowed; }
.wk-hint { display: flex; align-items: center; gap: 10px; font-size: 26px; font-weight: 700; color: var(--teal-dark); }
.wk-hint svg { position: static; width: 30px; height: 30px; }
.wk.playing .wk-hint svg { animation: wk-bob 1.2s ease-in-out infinite; }
@keyframes wk-bob { 50% { transform: translateY(6px); } }
.lp-nudge { animation: lp-nudge 1.1s ease-out 2; }
@keyframes lp-nudge { 0% { box-shadow: 0 0 0 0 rgba(3,219,207,.75); } 100% { box-shadow: 0 0 0 18px rgba(3,219,207,0); } }
/* Watermark: G mark at the top right of every video, also in full screen (Ivy, Nov 14, 2026) */
.wk-mark { position: absolute; top: 2.2%; right: 1.4%; width: 6.5%; height: auto; opacity: .32; pointer-events: none; z-index: 2; filter: saturate(.6); }   /* soft (Ivy, Nov 14, 2026) */
.lp-btns-stack { flex-direction: column; align-items: flex-start; gap: 14px; }
.lp-textlink { border: 0; background: none; padding: 4px 0; font: inherit; font-size: 15px; color: rgba(255,255,255,.75); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.lp-textlink:hover { color: #fff; }
/* G ACADEMY logo on the last screen of each video (Ivy, Nov 14, 2026; small control-bar logo removed: "doesn't make sense") */
.wk-endlogo { width: 300px; height: auto; }
.wk-endlogo-anim { display: block; width: 300px; height: 80px; color: var(--ink); }   /* animated logo on video end screens */
.wk-endlogo-anim .logo-anim { height: 80px; width: auto; margin: 0 auto; }
.wk-endplate { width: 260px; padding: 16px 20px; border-radius: 18px; background: #fff; box-shadow: 0 10px 28px rgba(3,13,20,.18); }
.wk-endplate img { position: static; display: block; width: 100%; height: auto; }
.wk-end2 { left: 0; top: 0; width: 800px; height: 450px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 34px; background: #E8FBF7; z-index: 1; }
.wk-end2 > * { position: static; }
.wk-end2 .wk-endplate { box-shadow: none; background: none; padding: 0; width: 300px; }
.wk-time { white-space: nowrap; }
.wk-track { min-width: 24px; }
@media (max-width: 600px) { .wk-ctrl { gap: 8px; padding-left: 10px; padding-right: 10px; } .wk-time { font-size: 14px; } }
.wk.wk-has-cv .wk-poster { background: rgba(3,13,20,.04); }
.wk.wk-has-cv .wk-poster b, .wk.wk-has-cv .wk-poster small { display: none; }
.wk.wk-has-cv .wk-play { position: absolute; left: 50%; top: var(--py, 50%); margin: 0; transform: translate(-50%, -50%); width: 13%; height: auto; aspect-ratio: 1; box-shadow: 0 6px 18px rgba(3,13,20,.25); }
.wk.wk-has-cv .wk-play svg { width: 45%; height: 45%; }
.wk.wk-has-cv:not(.started) .wk-w-orb { visibility: hidden; }
/* Confetti (welcome scene) */
.wk-conf { top: -30px; border-radius: 2px; opacity: 0; }
.wk.playing .wk-conf { animation: wk-fall var(--d) cubic-bezier(.3,.6,.6,1) var(--t) forwards; }
@keyframes wk-fall { 0% { opacity: 1; transform: translate(0, 0) rotate(0); } 85% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--dx), 500px) rotate(var(--rot)); } }

/* Step 1 "welcome" scene */
.wk-w-hero { left: 0; right: 0; top: 96px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.wk-w-orb { position: static !important; width: 110px; height: 110px; border-radius: 50%; background: var(--ink); color: var(--teal-bright); display: flex; align-items: center; justify-content: center; margin-bottom: 22px; }
.wk-w-orb svg { width: 60px; height: 60px; }
.wk-w-hero b { position: static; font-size: 64px; font-weight: 800; letter-spacing: -.01em; }
.wk-w-hero small { position: static; font-size: 28px; font-weight: 600; color: var(--teal-dark); margin-top: 6px; }
.wk-w-txt { font-size: 24px; line-height: 1.3; }
.wk-w-head { text-align: center; font-size: 40px; font-weight: 800; }
.wk-w-tile { width: 160px; height: 190px; border-radius: 20px; background: #fff; box-shadow: 0 8px 24px rgba(3,13,20,.12); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; color: var(--teal); }
.wk-w-tile svg { width: 66px; height: 66px; }
.wk-w-tile b { font-size: 24px; color: var(--ink); }
.wk-w-warn { padding: 10px 18px; border-radius: 16px; background: #E8833A; color: #fff; font-size: 22px; font-weight: 800; white-space: nowrap; transform-origin: left bottom; }
.wk-w-charge b { font-size: 40px; }
.wk-w-step { width: 116px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.wk-w-step span { width: 84px; height: 84px; border-radius: 50%; background: var(--ink); color: var(--mint); display: flex; align-items: center; justify-content: center; font-size: 40px; font-weight: 800; }
.wk-w-step b { font-size: 20px; line-height: 1.2; }
.wk-w-step > * , .wk-w-tile > *, .wk-w-pts > *, .wk-w-cert > * { position: static; }
.wk-w-pts { display: flex; align-items: center; gap: 12px; padding: 14px 26px; border-radius: 40px; background: var(--ink); color: #F5C451; }
.wk-w-pts svg { width: 40px; height: 40px; } .wk-w-pts b { font-size: 34px; color: #fff; }
.wk-w-cert { width: 360px; height: 220px; padding: 26px 30px; border-radius: 16px; background: #fff; border: 4px solid var(--teal-bright); box-shadow: 0 10px 28px rgba(3,13,20,.14); color: var(--text-3); }
.wk-w-cert small { display: block; font-size: 18px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-dark); }
.wk-w-cert b { display: block; font-size: 34px; font-weight: 800; color: var(--ink); margin: 6px 0 22px; }
.wk-w-cert .wk-w-seal { position: absolute; right: 22px; bottom: 20px; width: 58px; height: 58px; border-radius: 50%; background: var(--teal-bright); color: #fff; display: flex; align-items: center; justify-content: center; }
.wk-w-seal svg { width: 32px; height: 32px; }
.wk-w-start { width: 220px; height: 64px; border-radius: 32px; font-size: 30px; }
.wk-w-unl > * { position: absolute; }
.wk-w-unl { width: 520px; height: 230px; border-radius: 18px; background: #fff; box-shadow: 0 10px 28px rgba(3,13,20,.14); }
.wk-w-unl > b { left: 28px; top: 24px; font-size: 28px; font-weight: 800; }
.wk-w-row { left: 28px; right: 28px; height: 54px; display: flex; flex-direction: column; gap: 10px; }
.wk-w-row > * { position: static; }
.wk-w-row > span:first-child { font-size: 19px; font-weight: 700; color: var(--teal-dark); }
.wk-w-trk { display: block; width: 100%; height: 14px; border-radius: 7px; background: var(--gray-soft); overflow: hidden; }
.wk-w-fill { display: block; height: 100%; width: 0; border-radius: 7px; background: var(--teal-bright); }
.wk.playing .wk-w-fill { animation: wk-grow 1.4s ease var(--t) forwards; }
@keyframes wk-grow { to { width: 100%; } }
.wk-w-lock { width: 130px; height: 130px; border-radius: 50%; background: var(--ink); color: #C9D2D2; display: flex; align-items: center; justify-content: center; }
.wk-w-lock svg { width: 64px; height: 64px; }
.wk-w-open { background: var(--teal-bright); color: #fff; box-shadow: 0 0 0 10px rgba(3,219,207,.25); }
.wk-w-chip { display: flex; align-items: center; gap: 14px; padding: 16px 24px 16px 16px; border-radius: 18px; background: #fff; box-shadow: 0 8px 24px rgba(3,13,20,.12); }
.wk-w-chip > * { position: static; }
.wk-w-chip b { font-size: 26px; }
.wk-w-in { width: 48px; height: 48px; border-radius: 10px; background: #0A66C2; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 800; font-family: Arial, sans-serif; }
.wk-w-doc { width: 48px; height: 48px; border-radius: 10px; background: var(--mint-soft); color: var(--teal-dark); display: flex; align-items: center; justify-content: center; }
.wk-w-doc svg { width: 30px; height: 30px; }

/* Step 3 video "ask-better" (walkthrough.js; Nov 14, 2026). Same building blocks as Steps 1 and 2. */
.wk-a-q { display: flex; align-items: center; gap: 10px; padding: 10px 20px 10px 12px; border-radius: 16px; background: #fff; border: 3px dashed var(--teal-bright); color: var(--teal-dark); font-size: 24px; font-weight: 800; white-space: nowrap; box-shadow: 0 8px 20px rgba(3,13,20,.1); }
.wk-a-q > * { position: static; }
/* Captions never clip (Ivy, Nov 14, 2026: long lines spilled over the picture in iPhone full screen).
   All caption lines share one grid cell, so the caption bar is always as tall as the longest line, on every screen size. */
.wk-caps { display: grid; min-height: 0; }
.wk-caps p { position: static; inset: auto; grid-area: 1 / 1; min-height: 64px; }
@media (orientation: portrait) and (max-width: 600px) {
  .wk:fullscreen .wk-caps p, .wk.wk-full .wk-caps p { font-size: 16px; }
}
/* Phone held sideways, full screen (short screen): smaller captions and controls so the picture gets the room (Ivy, Nov 14, 2026) */
@media (max-height: 500px) {
  .wk:fullscreen .wk-caps p, .wk.wk-full .wk-caps p { font-size: 16px; min-height: 0; padding: 4px 16px; }
  .wk:fullscreen .wk-caps, .wk.wk-full .wk-caps { min-height: 0; }
  .wk:fullscreen .wk-frame, .wk.wk-full .wk-frame { width: min(100vw, calc((100vh - 110px) * 16 / 9)); width: min(100vw, calc((100dvh - 110px) * 16 / 9)); }
  .wk:fullscreen .wk-ctrl, .wk.wk-full .wk-ctrl { padding-top: 2px; padding-bottom: max(6px, env(safe-area-inset-bottom)); }
}
.wk-a-q svg { width: 40px; height: 40px; padding: 7px; border-radius: 50%; background: var(--mint-soft); color: var(--teal); }
.wk-a-meh { display: flex; align-items: center; gap: 10px; padding: 10px 20px 10px 12px; }
.wk-a-meh > * { position: static; }
.wk-a-meh svg { width: 34px; height: 34px; }
/* Motion (with a sound in the soundtrack): question chips pop in and float; "So generic…" pops in and shakes */
.wk.playing .wk-a-q.a.x { animation: wk-pop .55s cubic-bezier(.3,1.6,.5,1) var(--t) both, wk-float 2.2s ease-in-out calc(var(--t) + .55s) infinite, wk-out .35s ease var(--t2) forwards; }
.wk.playing .wk-a-meh.a.x { animation: wk-pop .5s cubic-bezier(.3,1.6,.5,1) var(--t) both, wk-shake .6s ease calc(var(--t) + .5s) both, wk-out .35s ease var(--t2) forwards; }
@keyframes wk-pop { 0% { opacity: 0; transform: scale(.3) rotate(-8deg); } 70% { opacity: 1; transform: scale(1.12) rotate(3deg); } 100% { opacity: 1; transform: none; } }
@keyframes wk-float { 0%, 100% { transform: none; } 50% { transform: translateY(-8px); } }
@keyframes wk-shake { 0%, 100% { transform: none; } 20% { transform: translateX(-9px) rotate(-3deg); } 40% { transform: translateX(8px) rotate(2deg); } 60% { transform: translateX(-5px) rotate(-1deg); } 80% { transform: translateX(3px); } }
.wk-a-tile { color: var(--c); border-top: 10px solid var(--c); }
.wk-a-prompt { width: 400px; padding: 22px 24px; border-radius: 18px; background: var(--ink); color: #fff; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 10px 28px rgba(3,13,20,.2); }
.wk-a-prompt > * { position: relative; }
.wk-a-line { display: flex; flex-direction: column; gap: 2px; padding-left: 16px; border-left: 6px solid var(--c); }
.wk-a-line > * { position: static; }
.wk-a-line b { font-size: 19px; font-weight: 800; color: var(--c); text-transform: uppercase; letter-spacing: .06em; }
.wk-a-line span { font-size: 24px; font-weight: 700; }
.wk-a-table { left: 18px; right: 18px; top: 72px; display: flex; flex-direction: column; gap: 12px; }
.wk-a-table > div { position: relative; display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-radius: 12px; background: var(--gray-soft); }
.wk-a-table > div > * { position: static; }
.wk-a-table b { font-size: 20px; width: 48px; }
.wk-a-table .wk-bar { margin: 0; color: var(--ink); }
.wk-a-fit { padding: 14px 24px; gap: 10px; }
.wk-a-fit svg { width: 36px; height: 36px; } .wk-a-fit b { font-size: 30px; }
.wk-a-same { width: 500px; height: 370px; border-radius: 22px; background: #fff; box-shadow: 0 10px 28px rgba(3,13,20,.14); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; }
.wk-a-same > * { position: static; }
.wk-a-same > b { font-size: 32px; font-weight: 800; margin-top: 14px; }
.wk-a-same > small { font-size: 24px; font-weight: 700; color: var(--teal-dark); }
.wk-a-mini { display: flex; gap: 16px; }
.wk-a-mini > * { position: relative; }
.wk-a-mw { display: block; width: 170px; height: 150px; border-radius: 14px; background: var(--gray-soft); overflow: hidden; }
.wk-a-mw > i { position: absolute; display: block; }
.wk-a-mt { left: 0; right: 0; top: 0; height: 24px; background: var(--ink); }
.wk-a-mp { left: 14px; right: 14px; top: 38px; height: 48px; border-radius: 8px; background: var(--ink); }
.wk-a-mb { left: 14px; right: 14px; top: 104px; height: 26px; border-radius: 13px; background: var(--teal); }
.wk-a-mbub { left: 14px; right: 30px; top: 50px; height: 70px; border-radius: 12px; background: #fff; }
.wk-a-check { width: 92px; height: 92px; filter: drop-shadow(0 6px 14px rgba(47,191,113,.4)); }
.wk-a-check svg { width: 100%; height: 100%; }
.wk-a-opt { width: 440px; height: 68px; border-radius: 18px; background: #fff; border: 3px solid var(--line); display: flex; align-items: center; padding: 0 24px; font-size: 24px; font-weight: 800; box-shadow: 0 6px 16px rgba(3,13,20,.08); }
.wk-a-right { background: #2FBF71; border-color: #1E8A52; color: #fff; z-index: 1; }

/* Unsubscribe page (Nov 14, 2026) */
.unsub-page { padding: 110px 0 120px; background: var(--gray-soft); }
.unsub-card { max-width: 620px; margin: 0 auto; background: var(--white); border-radius: 24px; box-shadow: var(--shadow-lg); padding: 48px 40px; }
.unsub-card .lead { margin: 0 auto 30px; }
.unsub-ctas { justify-content: center; }
.unsub-help { margin-top: 26px; font-size: 15px; color: #5B6B72; }
.unsub-help a { color: var(--teal); font-weight: 700; }
@media (max-width: 600px) {
  .unsub-page { padding: 32px 0 60px; }
  .unsub-card { padding: 32px 20px; border-radius: 18px; }
  .unsub-ctas .btn { width: 100%; justify-content: center; }
}

/* Sign-in page (Ivy, Nov 15, 2026): no top bar, logo centered above the box, box sits higher, dotted background, Terms line */
body:has(.auth-page) .site-header { display: none !important; }
.auth-page { min-height: 100vh; align-items: flex-start; padding: 4vh 0 60px; background:
  radial-gradient(circle at 15% 15%, rgba(27,176,170,.28), transparent 45%),
  radial-gradient(circle at 85% 90%, rgba(27,176,170,.18), transparent 45%),
  radial-gradient(rgba(255,255,255,.07) 1.2px, transparent 1.3px) 0 0 / 26px 26px,
  var(--ink) !important; }
.auth-logo { display: block; width: max-content; margin: 0 auto 32px; color: var(--white); }
.auth-logo svg { display: block; }   /* same size as the top bar logo (Ivy, Nov 15) */
.auth-terms { font-size: 13px; color: var(--text-3); margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--line); text-align: center; }
.auth-terms a { color: var(--teal); font-weight: 600; }
@media (max-width: 760px), (max-height: 500px) and (orientation: landscape) {
  body .auth-page { padding: 20px 0 40px; }
  .auth-logo { margin-bottom: 20px; }
}

/* Sign-in page, new look (Ivy, Nov 22, 2026), like Socialico's: dark background with soft teal glows, the big animated
   logo, a short tagline, and one liquid glass box, all centered on the screen. The old welcome panel is gone. */
.auth-page { position: relative; overflow: hidden; min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 48px 0 !important; }   /* background: the old one above (ink, teal glows, dots), no blue (Ivy, Nov 22) */
.auth-page > .wrap { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.auth-page .auth-logo { margin: 0 auto 14px; }
.auth-page .auth-logo .logo-anim { height: 120px; }
.auth-tagline { color: #D6E4E6; font-size: 19px; font-weight: 600; text-align: center; margin: 0 0 28px; text-wrap: balance; }
.auth-page .auth-box { display: block; width: 100%; max-width: 440px; margin: 0 auto; border-radius: 24px; overflow: visible; }

/* Liquid glass (same recipe as Socialico): see-through frosted box, thin bright rim, soft shine on top */
.auth-box.glass { position: relative; isolation: isolate; color: #fff; background: linear-gradient(160deg, rgba(255,255,255,.16), rgba(255,255,255,.06)); border: 1px solid rgba(255,255,255,.22);
  -webkit-backdrop-filter: blur(28px) saturate(180%); backdrop-filter: blur(28px) saturate(180%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), inset 0 -1px 0 rgba(255,255,255,.08), inset 0 0 24px rgba(255,255,255,.05), 0 24px 60px rgba(0,0,0,.4); }
.auth-box.glass::before { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none;
  background: radial-gradient(120% 60% at 20% 0%, rgba(255,255,255,.22), transparent 60%), radial-gradient(80% 50% at 100% 100%, rgba(27,176,170,.16), transparent 70%); }
.auth-box.glass .auth-card { background: transparent; padding: 36px 34px; text-align: center; }
.auth-box.glass .auth-title { color: #fff; font-size: 26px; }
.auth-box.glass .muted, .auth-box.glass .auth-small, .auth-box.glass #si-expiry { color: #D6E4E6; }
.auth-box.glass .field { text-align: left; }
.auth-box.glass .field label { color: #E5EEEF; }
.auth-box.glass .link-btn { color: #fff; }
.auth-box.glass .link-btn:hover { color: var(--mint); }
.auth-box.glass .auth-or { color: #C9D6D8; }
.auth-box.glass .auth-or::before, .auth-box.glass .auth-or::after { background: rgba(255,255,255,.25); }
.auth-box.glass .btn-google { background: #fff; border-color: #fff; color: var(--ink); }
.auth-box.glass .btn-google:hover { background: #EEF3F3; }
/* Plain button looks like Google's own (same G, text weight, size and color), so the swap to "Continue as <name>" doesn't flicker (Ivy, Nov 22, 2026) */
.auth-box.glass .btn-google { font-family: Roboto, Arial, sans-serif; font-weight: 500; font-size: 14px !important; letter-spacing: .25px; color: #3C4043; gap: 8px; border: 1px solid #DADCE0; }
.auth-box.glass .btn-google .g-mark { width: 18px; height: 18px; border-radius: 0; -webkit-mask: none; mask: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath fill='%23EA4335' d='M24 9.5c3.54 0 6.71 1.22 9.21 3.6l6.85-6.85C35.9 2.38 30.47 0 24 0 14.62 0 6.51 5.38 2.56 13.22l7.98 6.19C12.43 13.72 17.74 9.5 24 9.5z'/%3E%3Cpath fill='%234285F4' d='M46.98 24.55c0-1.57-.15-3.09-.38-4.55H24v9.02h12.94c-.58 2.96-2.26 5.48-4.78 7.18l7.73 6c4.51-4.18 7.09-10.36 7.09-17.65z'/%3E%3Cpath fill='%23FBBC05' d='M10.53 28.59c-.48-1.45-.76-2.99-.76-4.59s.27-3.14.76-4.59l-7.98-6.19C.92 16.46 0 20.12 0 24c0 3.88.92 7.54 2.56 10.78l7.97-6.19z'/%3E%3Cpath fill='%2334A853' d='M24 48c6.48 0 11.93-2.13 15.89-5.81l-7.73-6c-2.15 1.45-4.92 2.3-8.16 2.3-6.26 0-11.57-4.22-13.47-9.91l-7.98 6.19C6.51 42.62 14.62 48 24 48z'/%3E%3C/svg%3E") center / contain no-repeat; }
/* Google's button can't be taller than 40px, so it is a bit narrower than the 50px email box and Continue, centered (Ivy, Nov 22, 2026).
   auth.js sizes Google's button to this box's width. */
.auth-box.glass .auth-gsi, .auth-box.glass #si-google { width: 80%; margin-left: auto; margin-right: auto; }
.auth-box.glass #si-google:not([hidden]) { display: flex; }   /* stays hidden once Google's own button shows */
/* Google's own button frame is 44px tall (40px button + 2px empty space top and bottom); keep its box 40px like the plain button,
   so swapping the two doesn't move the sign-in box (Ivy, Nov 22, 2026: no jump) */
.auth-box.glass .auth-gsi { height: 40px; min-height: 40px; align-items: center; overflow: visible; }
/* While Google draws its button: takes no space and can't be seen; the plain button shows meanwhile (auth.js swaps them) */
.auth-gsi.gsi-loading { position: absolute !important; opacity: 0; pointer-events: none; margin: 0 !important; }   /* see-through, over the plain button (Google only draws a button it thinks is on screen) */
@media (max-width: 760px) { .auth-box.glass .auth-gsi, .auth-box.glass #si-google { width: 100%; } }
/* Phones: show "Sign in to start learning" again (replaces the Nov 14 "no heading on phones" rule; Ivy, Nov 22, 2026). The line under it stays hidden. */
@media (max-width: 760px), (max-height: 500px) and (orientation: landscape) {
  .auth-box.glass #si-form > .auth-title { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; font-size: 24px; margin: 0 0 20px; }
}
@media (max-width: 340px) {   /* smallest phones: heading on one line, smaller logo, so the whole box fits */
  .auth-box.glass #si-form > .auth-title { font-size: 21px; white-space: nowrap; margin-bottom: 16px; }
  .auth-tagline { margin-bottom: 16px; }
}   /* phones (Samsung S20, 360 wide): same width as the email box and Continue (Ivy, Nov 22) */
.auth-box.glass .field input { color: var(--ink); background: #fff; border-color: #fff; border-radius: 999px; padding-left: 18px; padding-right: 18px; }   /* round ends like the Continue button (Ivy, Nov 22) */
.auth-box.glass .field input.code-input { text-align: center; }
/* Taller email/name/code boxes and Continue / Sign in buttons (Ivy, Nov 22, 2026) */
.auth-box.glass .field input, .auth-box.glass .auth-wide { height: 50px; min-height: 50px; font-size: 16px; }
/* Centered on iPad and computer screens (Ivy, Nov 22: "at the center like our Socialico").
   Phones and small screens: logo and box start at the TOP so the box is never cut off at the bottom (Ivy, Nov 22, 2026, iPhone 14 Plus). */
body .auth-page.auth-page { align-items: center; }
@media (max-width: 760px), (max-height: 500px) and (orientation: landscape) {
  body .auth-page.auth-page { align-items: flex-start; }
}
/* Short laptop screens: smaller logo and gaps so the whole box fits without scrolling */
@media (min-width: 761px) and (max-height: 760px) {
  .auth-page .auth-logo .logo-anim { height: 88px !important; }
  .auth-tagline { margin-bottom: 20px; }
  .auth-page { padding: 24px 0 !important; }
}
.auth-box.glass .btn-teal { background: #1BB0AA; border-color: #1BB0AA; color: #fff; }
.auth-box.glass .btn-teal:hover { background: #22C4BD; box-shadow: 0 8px 24px rgba(27,176,170,.45); }
.auth-box.glass .auth-msg { color: var(--mint); }
.auth-box.glass #si-suggest { color: #E5EEEF; }   /* "Did you mean ...?" readable on the glass (was dark grey; Ivy, Nov 22, 2026) */
.auth-box.glass #si-suggest b { color: #fff; }
/* Warnings stay RED (Ivy, Nov 20 rule, repeated Nov 22, 2026): bright red so it reads on the dark glass, semi-bold */
.auth-msg.is-warn { color: #B42318; font-weight: 600; }
.auth-box.glass .auth-msg.is-warn, .auth-box.glass .auth-msg.is-tick-warn, .auth-box.glass #si-expiry.is-expired { color: #FF6B6B; font-weight: 600; }
.auth-box.glass .auth-terms { color: #C9D6D8; border-top-color: rgba(255,255,255,.2); }
.auth-box.glass .auth-terms a { color: var(--mint); }
@media (max-width: 760px), (max-height: 500px) and (orientation: landscape) {
  .auth-page { padding: 28px 0 32px !important; }
  .auth-page .auth-logo .logo-anim { height: 84px !important; }   /* the phone top-bar rules shrink the logo to 36-44px otherwise */
  .auth-tagline { font-size: 16px; margin-bottom: 20px; }
  .auth-box.glass .auth-card { padding: 26px 20px; }
}

/* Sign-in logo: one size per screen, and its space is kept from the first moment (Ivy, Nov 22, 2026: the page jumped
   because the logo is drawn a split second after the page shows). Last in the file so the smallest-phone size wins. */
.auth-page { --lg-h: 120px; }
@media (min-width: 761px) and (max-height: 760px) { .auth-page { --lg-h: 88px; } }
@media (max-width: 760px), (max-height: 500px) and (orientation: landscape) { .auth-page { --lg-h: 84px; } }
@media (max-width: 340px) { .auth-page { --lg-h: 68px; } }
.auth-page .auth-logo { height: var(--lg-h); }
.auth-page .auth-logo .logo-anim { height: var(--lg-h) !important; }
/* Shown once the font is ready (site.js adds is-ready), so the tagline doesn't jump from 2 lines to 1 on phones.
   Safety net: shows by itself after 1 second even if the script never runs. */
.auth-page > .wrap { opacity: 0; animation: auth-show .25s ease 1s forwards; }
.auth-page.is-ready > .wrap { opacity: 1; animation: none; transition: opacity .25s ease; }
@keyframes auth-show { to { opacity: 1; } }

/* Phones: about 32px between the top bar and the first line of every page, no big empty space (Ivy, Nov 22, 2026).
   Top bar is 79px; on the home and class pages it sits over the photo, so their space counts from the very top.
   Phones only: iPad and computer keep their spacing. */
@media (max-width: 760px) {
  .photo-hero .wrap { padding-top: 104px !important; }
  .tm-hero .wrap { padding-top: 32px !important; }
  body.over-hero .course-hero, .course-hero { padding-top: 108px !important; }
  .np-hero { padding-top: 28px !important; }
  .legal { padding-top: 28px !important; }
  .nf-page { padding-top: 32px !important; }
  .article-hero { padding-top: 28px !important; }   /* What's New articles */
}
