/* ===== Lively home page (2026-11-10) ===== */
/* hero: soft colour glow behind, animated keyboard demo */
#view-home .hero { position: relative; }
#view-home .hero::before { content: ""; position: absolute; inset: -40px -10% auto; height: 420px; z-index: -1; pointer-events: none;
  background: radial-gradient(40% 60% at 15% 30%, rgba(79,70,229,.16), transparent 70%), radial-gradient(35% 55% at 85% 20%, rgba(236,72,153,.14), transparent 70%),
              radial-gradient(30% 50% at 60% 90%, rgba(34,197,94,.12), transparent 70%); }
.hero h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); line-height: 1.1; }
.hero .hl { background: linear-gradient(90deg, #4f46e5, #db2777, #f59e0b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-art { box-shadow: 0 20px 50px rgba(79,70,229,.15); }
.demo-line { font: 600 1.25rem "JetBrains Mono", monospace; min-height: 1.6em; margin-bottom: 14px; color: var(--text); text-align: left;
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px; white-space: nowrap; overflow: hidden; }
.demo-caret { display: inline-block; width: 2px; height: 1.1em; vertical-align: -3px; margin-left: 2px; background: var(--accent); animation: caretBlink 1s steps(1) infinite; }
@keyframes caretBlink { 50% { opacity: 0; } }
.demo-kb { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 12px; border-radius: 14px; background: var(--kb-bg); }
.dk-row { display: flex; gap: 5px; }
.dk-row:nth-child(2) { margin-left: 14px; }
.dk-row:nth-child(3) { margin-left: 34px; }
.dk { position: relative; display: grid; place-items: center; width: clamp(22px, 2.6vw, 32px); height: clamp(24px, 2.8vw, 34px); border-radius: 7px;
  font: 700 clamp(.65rem, 1vw, .85rem) "JetBrains Mono", monospace; color: var(--key-text); background: var(--key);
  border-bottom: 3px solid var(--fc); transition: transform .12s, background .12s, color .12s, box-shadow .12s; }
.dk i { position: absolute; bottom: 4px; width: 8px; height: 2px; border-radius: 1px; background: var(--muted); }
.dk.on { background: var(--fc); color: #fff; transform: translateY(2px) scale(.94); box-shadow: 0 0 0 4px color-mix(in srgb, var(--fc) 35%, transparent); }
.dk-space { width: clamp(130px, 16vw, 200px); }
.demo-hint { margin-top: 10px; min-height: 1.5em; color: var(--muted); font-weight: 600; }
.home-bumps { margin: 10px 0 0; color: var(--muted); }

/* stats strip */
.stats-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 26px 0 0; }
.stats-strip > div { text-align: center; padding: 16px 10px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.stats-strip b { display: block; font-size: clamp(1.8rem, 3.5vw, 2.6rem); line-height: 1.1; background: linear-gradient(90deg, #4f46e5, #db2777);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats-strip span { color: var(--muted); font-weight: 700; }

/* soft full-width colour bands behind some sections */
.band-soft { position: relative; padding: 40px 0; }
.band-soft::before { content: ""; position: absolute; inset: 0 calc(50% - 50vw); z-index: -1;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 7%, var(--bg)), var(--bg)); }
html, body { overflow-x: clip; } /* the full-width bands must not cause sideways scrolling; clip keeps the sticky header working */

/* level cards: colour, icon, goal bar */
.level-card { position: relative; overflow: hidden; padding-top: 22px; }
.level-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; background: var(--lc); }
.lc-beginner { --lc: #22c55e; }
.lc-intermediate { --lc: #06b6d4; }
.lc-advanced { --lc: #a855f7; }
.lc-expert { --lc: #ec4899; }
.lc-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; font-size: 1.7rem;
  background: color-mix(in srgb, var(--lc) 18%, var(--card)); transition: transform .25s; }
.level-card:hover .lc-icon { transform: rotate(-8deg) scale(1.1); }
.lc-bar { display: block; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; margin: 6px 0 2px; }
.lc-bar i { display: block; height: 100%; border-radius: 3px; background: var(--lc); }
.in .lc-bar i { animation: growBar 1.2s ease-out both; }
@keyframes growBar { from { width: 0; } }
.level-card .lv-link { color: var(--lc); }

/* how steps: illustration tiles */
.how-step { padding-top: 20px; transition: transform .2s; }
.how-step:hover { transform: translateY(-3px); }
.how-ill { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; font-size: 2rem; margin-bottom: 10px; }
.how-step:nth-child(1) .how-ill { background: #dcfce7; }
.how-step:nth-child(2) .how-ill { background: #fef3c7; }
.how-step:nth-child(3) .how-ill { background: #e0f2fe; }
.how-step:nth-child(4) .how-ill { background: #fce7f3; }
:root[data-theme="dark"] .how-ill { filter: saturate(.8) brightness(.55); }
.how-num { position: absolute; top: 16px; right: 16px; width: 30px; height: 30px; font-size: .9rem; }
.how-step:hover .how-ill { animation: wiggle .5s ease; }
@keyframes wiggle { 30% { transform: rotate(-10deg); } 60% { transform: rotate(8deg); } }

/* feature cards: a coloured top edge in the finger colours */
.features-6 .feature { border-top: 4px solid var(--fcol); transition: transform .2s, box-shadow .2s; }
.features-6 .feature:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0,0,0,.08); }
.features-6 .feature:nth-child(1) { --fcol: var(--c-lp); }
.features-6 .feature:nth-child(2) { --fcol: var(--c-lr); }
.features-6 .feature:nth-child(3) { --fcol: var(--c-lm); }
.features-6 .feature:nth-child(4) { --fcol: var(--c-li); }
.features-6 .feature:nth-child(5) { --fcol: var(--c-ri); }
.features-6 .feature:nth-child(6) { --fcol: var(--c-rm); }
.features-6 .feature:nth-child(7) { --fcol: var(--c-rr); }
.features-6 .feature:nth-child(8) { --fcol: var(--c-rp); }
.features-6 .feature:nth-child(9) { --fcol: var(--accent); }
.features-6 .feature h3 { font-size: 1.1rem; }

/* who cards: big emoji in a coloured bubble */
.who span { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--accent-soft); transition: transform .2s; }
.who:nth-child(2) span { background: #fef3c7; }
.who:nth-child(3) span { background: #e0f2fe; }
.who:nth-child(4) span { background: #dcfce7; }
.who:nth-child(5) span { background: #fce7f3; }
.who:nth-child(6) span { background: #ede9fe; }
:root[data-theme="dark"] .who span { filter: brightness(.6); }
.who { transition: transform .2s, border-color .15s; }
.who:hover { transform: translateY(-3px); }
.who:hover span { transform: scale(1.12) rotate(-6deg); }

/* offer band + final CTA: slowly moving gradient */
.offer-band, .final-cta { background-size: 200% 200%; animation: bandShift 12s ease-in-out infinite; }
.final-cta { background-image: linear-gradient(120deg, var(--accent-soft), color-mix(in srgb, #f59e0b 18%, var(--card)), var(--accent-soft)); }
@keyframes bandShift { 50% { background-position: 100% 50%; } }
.blog-pick a { transition: transform .2s, border-color .15s; }
.blog-pick a:hover { transform: translateY(-3px); }

/* fade up on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .demo-caret, .offer-band, .final-cta, .lc-bar i { animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}
@media (max-width: 760px) { .stats-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* launch offer pill under the hero buttons (2026-11-10) */
.promo-hero { margin-top: 16px; font-size: 1rem; padding: 8px 16px; box-shadow: 0 6px 18px rgba(245, 158, 11, .25); }
.promo-hero .promo-tag { font-size: .85rem; padding: 3px 10px; }

/* Lessons page: level tabs (2026-11-10). The row sticks under the header so every level stays in view. */
.lv-tabs-hint { margin: 18px 0 8px; font-weight: 900; font-size: 1.05rem; color: #000; }
:root[data-theme="dark"] .lv-tabs-hint { color: #fff; } /* black is invisible on the dark theme */
.lv-tabs { position: sticky; top: 64px; z-index: 5; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px;
  padding: 10px 0; margin-bottom: 14px; background: var(--bg); }
.lv-tab { position: relative; display: flex; align-items: center; gap: 10px; padding: 12px 14px 16px; border-radius: 14px; text-align: left; cursor: pointer;
  font: inherit; color: var(--text); background: var(--card); border: 2px solid var(--line); overflow: hidden; transition: border-color .15s, transform .15s, box-shadow .15s; }
.lv-tab:hover { transform: translateY(-2px); border-color: var(--ltc); }
.lv-tab.on { border-color: var(--ltc); box-shadow: 0 6px 18px color-mix(in srgb, var(--ltc) 30%, transparent); background: color-mix(in srgb, var(--ltc) 10%, var(--card)); }
.lt-beginner { --ltc: #22c55e; }
.lt-intermediate { --ltc: #06b6d4; }
.lt-advanced { --ltc: #a855f7; }
.lt-expert { --ltc: #ec4899; }
.lt-icon { display: grid; place-items: center; flex: 0 0 auto; width: 42px; height: 42px; border-radius: 12px; font-size: 1.4rem;
  background: color-mix(in srgb, var(--ltc) 18%, var(--card)); }
.lt-text { display: flex; flex-direction: column; min-width: 0; }
.lt-text b { font-size: 1.05rem; }
.lt-text small { color: var(--muted); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lt-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--line); }
.lt-bar i { display: block; height: 100%; background: var(--ltc); }
.lv-tab.on::after { content: ""; position: absolute; left: 50%; bottom: 5px; transform: translateX(-50%); border: 7px solid transparent; border-bottom-color: var(--ltc); }
@media (max-width: 860px) { .lv-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); position: static; } } /* the header wraps on small screens, so no sticking there */
@media (max-width: 420px) { .lt-icon { display: none; } }

/* Lessons page: "Now viewing" line, and every lesson card outlined in its level colour, locked ones too (2026-11-10) */
.lv-now { margin: 0 0 12px; font-weight: 800; font-size: 1.05rem; color: var(--ltc); text-transform: uppercase; letter-spacing: .04em; }
.lv-now b { font-weight: 900; }
.lv-panel[data-lv="beginner"] { --ltc: #22c55e; }
.lv-panel[data-lv="intermediate"] { --ltc: #06b6d4; }
.lv-panel[data-lv="advanced"] { --ltc: #a855f7; }
.lv-panel[data-lv="expert"] { --ltc: #ec4899; }
.lv-panel .lcard { border: 2px solid var(--ltc); }
.lv-panel .lcard:hover { border-color: var(--ltc); box-shadow: 0 8px 22px color-mix(in srgb, var(--ltc) 25%, transparent); }
.lv-panel .lcard.locked { filter: none; opacity: 1; background: color-mix(in srgb, var(--ltc) 5%, var(--card)); }
.lv-panel .lcard.locked > :not(.badge) { opacity: .55; }
.lv-panel .lcard.next { box-shadow: 0 0 0 3px color-mix(in srgb, var(--ltc) 35%, transparent); }

/* Home hero: centred in a narrower area so the text and the animated keyboard sit in from both edges (2026-11-10) */
#view-home .hero { max-width: 1200px; margin-left: auto; margin-right: auto; padding-left: clamp(0px, 2.5vw, 32px); padding-right: clamp(0px, 2.5vw, 32px); gap: clamp(24px, 3vw, 40px); grid-template-columns: 1.15fr 1fr; }
#view-home .hero h1 { font-size: clamp(2rem, 3.6vw, 2.8rem); }
.promo-hero { white-space: nowrap; }
@media (max-width: 760px) { #view-home .hero { grid-template-columns: 1fr; } .promo-hero { white-space: normal; } }
#view-home .hero .cta { gap: 8px; }
#view-home .hero .cta .btn { padding: 10px 14px; }

/* Terms tick box, consent window, delete-account note, Legal footer group (2026-11-10) */
.acct-terms { display: flex; align-items: flex-start; gap: 10px; text-align: left; margin: 4px 0 14px; padding: 10px 12px; border-radius: 10px;
  background: var(--accent-soft); font-size: .92rem; line-height: 1.45; cursor: pointer; }
.acct-terms input { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); }
.acct-terms a { color: var(--accent); font-weight: 700; }
.acct-agree { margin: 2px 0 12px; font-size: .8rem; line-height: 1.4; color: var(--muted); text-align: left; }
.acct-agree a { color: var(--accent); font-weight: 700; text-decoration: underline; }
.acct-back { display: block; margin: 0 0 8px; font-weight: 800; }
.modal.consent { width: min(520px, 100%); text-align: left; }
.modal.consent h2 { margin-top: 0; }
.consent-btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.acct-delete { margin-top: 16px; text-align: left; font-size: .9rem; }
.acct-delete summary { cursor: pointer; color: var(--bad); font-weight: 700; }
.acct-delete p { color: var(--muted); margin: 8px 0 0; }
.acct-delete a { color: var(--accent); }
.foot-grid { grid-template-columns: 1.3fr repeat(4, 1fr); }
@media (max-width: 980px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .foot-grid { grid-template-columns: 1fr; } }

/* Home: ambassador program band (2026-11-11) */
.amb-band { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; padding: 30px 32px; border-radius: 22px; color: #fff;
  background: linear-gradient(135deg, #15803d, #0e7490 60%, #4338ca); }
.amb-band-text { flex: 1 1 420px; }
.amb-band h2 { margin: 0 0 8px; font-size: clamp(1.5rem, 3vw, 2rem); }
.amb-band p { margin: 0 0 14px; opacity: .95; }
.amb-band-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.amb-band .btn.big-white { color: #15803d; }
.amb-band-steps { display: flex; gap: 12px; flex-wrap: wrap; }
.amb-band-steps div { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 104px; padding: 14px 8px; border-radius: 16px; background: rgba(255,255,255,.14); text-align: center; }
.amb-band-steps span { font-size: 1.8rem; }

/* "Built for a keyboard" notice on phones and tablets (2026-11-11) */
.modal.kb-notice { width: min(440px, 100%); }
.kb-ill { font-size: 2.6rem; margin-bottom: 6px; }
.modal.kb-notice h2 { margin: 0 0 8px; }
.modal.kb-notice p { margin: 0 0 10px; }
.kb-btns { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }

/* Lessons page: progress text and bar on the same row as the "Lessons" title (2026-11-11) */
.lessons-head { display: flex; align-items: center; gap: 18px 28px; flex-wrap: wrap; }
.lessons-head h1 { margin: 0; }
.lessons-progress { flex: 0 1 380px; min-width: 240px; }
.lessons-progress p { margin: 0 0 6px; }
.lessons-progress .bar { margin: 0; width: 100%; }

/* Pop-up windows fit the screen and scroll inside themselves; the page behind does not move (2026-11-12) */
.overlay { overflow-y: auto; overscroll-behavior: contain; }
.overlay > .modal { max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain; }
html:has(:is(#acct, #consent, #kb-notice, #cert-box):not([hidden])) { overflow: hidden; }
body:has(:is(#acct, #consent, #kb-notice, #cert-box):not([hidden])) { overflow: hidden; }
/* Compact sign-in / create account window */
.modal.acct { padding: 20px 24px; }
.modal.acct .acct-back { margin-bottom: 4px; }
.modal.acct .acct-why { margin: 0 0 8px; font-size: .9rem; }
.modal.acct .acct-agree { margin: 0 0 10px; }
.modal.acct .or { margin: 10px 0; }
.modal.acct #acct-form { gap: 8px; }
.modal.acct #acct-form input { padding: 8px 12px; }
.modal.acct .acct-switch { margin: 10px 0 0; }
.modal.acct h2 { font-size: 1.25rem; }
@media (max-height: 720px) {
  .modal.acct { padding: 14px 20px; }
  .modal.acct .acct-why { margin-bottom: 4px; font-size: .82rem; }
  .modal.acct .google-btn, .modal.acct #acct-form .btn.primary { padding-top: 8px; padding-bottom: 8px; }
}

/* Congratulations pop-up that stays, with the lesson numbers, Next lesson and ✕ (2026-11-12) */
.celebrate.stay { pointer-events: auto; }
.celebrate.stay .burst.big.win { animation: pop-in .5s cubic-bezier(.2, 1.6, .4, 1) both !important; width: min(640px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px); overflow-y: auto; padding: 34px 28px 24px; }
.win-x { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border-radius: 50%; border: 2px solid #7c2d12;
  background: #fff; color: #7c2d12; font: 900 1.05rem Nunito, sans-serif; cursor: pointer; z-index: 2; }
.win-x:hover { background: #7c2d12; color: #fff; }
.win-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px; margin: 18px 0 16px; }
.win-stats > div { background: #fff; border-radius: 14px; padding: 8px 6px; color: #1d2433; box-shadow: 0 3px 0 rgba(124, 45, 18, .35); }
.celebrate .win-stats small { display: block; margin: 0; padding: 0; background: none; color: #667085; font: 700 .78rem Nunito, sans-serif; border-radius: 0; }
.win-stats b { display: block; font: 900 1.45rem Nunito, sans-serif; }
.win-stats i { display: block; font: 600 .72rem Nunito, sans-serif; color: #667085; font-style: normal; }
.win-next { font-size: 1.1rem; padding: 12px 28px; }
.celebrate.show.stay:has(.burst.big) { animation: dim-in .3s ease both !important; background: rgba(20, 10, 40, .55); }
.win-stats > div { background: #fff7e0; border: 1px solid #fde68a; }
.celebrate.stay .burst.big.win { overflow-x: hidden; }
.celebrate .burst.big.win .win-stats small { display: block; margin: 0; padding: 0; background: none; color: #667085; font: 800 .78rem Nunito, sans-serif; }
/* all the numbers on one row */
.celebrate.stay .burst.big.win { width: min(820px, calc(100vw - 24px)); }
.win-stats { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; }
.win-stats > div { padding: 8px 4px; min-width: 0; }
.win-stats b { font-size: clamp(1rem, 3.2vw, 1.45rem); }
.celebrate .burst.big.win .win-stats small { font-size: clamp(.62rem, 1.7vw, .78rem); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win-stats i { font-size: clamp(.58rem, 1.5vw, .72rem); white-space: nowrap; }
.celebrate .burst.big.win::before { inset: 0; border-radius: 24px; }
.celebrate.stay .burst.big.win { overflow: hidden; } /* the spinning rays would otherwise add scrollbars */

/* Certificates (2026-11-12) */
#cert-box { z-index: 60; }
.modal.cert-modal { position: relative; width: min(980px, 100%); text-align: center; padding: 22px 24px; }
.cert-ask { max-width: 520px; margin: 0 auto; }
.cert-ask-ill { font-size: 3.4rem; line-height: 1; }
.cert-ask h2 { margin: 8px 0 4px; }
.cert-ask label { display: block; margin: 14px 0 6px; }
.cert-ask input { width: 100%; font: 800 1.3rem Nunito, sans-serif; text-align: center; padding: 12px 14px; border-radius: 12px;
  border: 2px solid var(--accent); background: var(--card); color: var(--text); }
.cert-hint { font-size: .85rem; margin: 8px 0 14px; }
.cert-title { margin: 0 0 12px; padding-right: 36px; }
.cert-img img { width: 100%; height: auto; display: block; border-radius: 8px; box-shadow: 0 6px 24px rgba(0, 0, 0, .18); }
.cert-btns { display: flex; gap: 10px; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 14px; }
.cert-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.cert-item { display: grid; justify-items: center; gap: 8px; padding: 16px 12px; border-radius: 14px; border: 2px solid var(--line); text-align: center; }
.cert-item.earned { border-color: #f59e0b; background: color-mix(in srgb, #fbbf24 12%, var(--card)); }
.cert-ico { font-size: 2rem; line-height: 1; }
.cert-bar { width: 100%; height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.cert-bar i { display: block; height: 100%; background: var(--accent); }
.cert-item small { color: var(--muted); font-weight: 700; }
.modal.cert-modal:has(.cert-ask) { width: min(580px, 100%); }

/* Account window: edit name + my certificates (2026-11-12) */
.acct-edit { display: inline-block; margin: -4px 0 10px; font-weight: 800; }
.acct-editform { display: grid; gap: 6px; margin: 0 0 12px; text-align: left; }
.acct-editform label { font-weight: 700; font-size: .9rem; }
.acct-editform input { font: 600 1rem Nunito, sans-serif; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--text); }
.acct-edit-btns { display: flex; gap: 8px; }
.acct-certs { margin: 0 0 12px; padding: 10px 12px; border-radius: 12px; border: 2px solid #fcd34d; background: color-mix(in srgb, #fbbf24 10%, var(--card)); text-align: left; }
.acct-certs > b { display: block; margin-bottom: 6px; }
#acct-certs { display: flex; flex-wrap: wrap; gap: 6px; }
#acct-certs p { margin: 0; font-size: .88rem; }

/* Account deletion request (2026-11-12) */
.acct-delete label { display: block; margin: 10px 0 4px; font-weight: 700; color: var(--text); }
.acct-delete input { width: 100%; font: 600 .95rem Nunito, sans-serif; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--text); margin-bottom: 8px; }
.acct-del-pending { margin-top: 14px; padding: 10px 12px; border-radius: 12px; border: 2px solid #fca5a5; background: color-mix(in srgb, #ef4444 8%, var(--card)); text-align: left; }
.acct-del-pending p { margin: 4px 0 8px; font-size: .9rem; }

/* "Get this level" buttons stand out: full width, filled with the level's colour (2026-11-13) */
.plan .plan-buy { width: 100%; justify-content: center; padding: 13px 16px; font-size: 1.05rem; font-weight: 900; color: #fff; border: 0;
  border-radius: 12px; box-shadow: 0 5px 0 rgba(0, 0, 0, .18); text-shadow: 0 1px 1px rgba(0, 0, 0, .25); transition: transform .12s, box-shadow .12s, filter .12s; }
.plan .plan-buy:hover { transform: translateY(-2px); box-shadow: 0 7px 0 rgba(0, 0, 0, .18); filter: brightness(1.05); }
.plan .plan-buy:active { transform: translateY(3px); box-shadow: 0 2px 0 rgba(0, 0, 0, .18); }
.plan-buy-beginner { background: #16a34a; }
.plan-buy-intermediate { background: #0284c7; }
.plan-buy-advanced { background: #7c3aed; }
.plan-buy-expert { background: #db2777; }

/* crossed-out "usual" price next to a price, set from the admin page (2026-11-14) */
.was-price { text-decoration: line-through; text-decoration-thickness: 2px; opacity: .65; font-weight: 700; font-size: .85em; margin-left: 4px; }
.was-price[hidden], [data-offer-label][hidden] { display: none !important; }
.offer-band .was-price { opacity: .8; }

/* home page: From (crossed out) row above the NOW price (2026-11-15) */
.band-from { font-size: 1.35rem; font-weight: 800; opacity: .85; margin: 0 0 2px; }
.band-from s { text-decoration-thickness: 3px; }
.was-price { margin: 0 4px 0 0; }

/* banner on one row: From $14.99 (crossed out) NOW at $4.99/week (2026-11-15) */

/* ===== Launch offer banner, redesigned (2026-11-15) =====
   One row: label | From $14.99 (crossed out)  Now $4.99/week | Start learning.
   "Now" is a word the same size as the price, in gold, with no badge behind it. */
.promo-cta { position: relative; overflow: hidden; display: flex; align-items: center; flex-wrap: wrap; gap: 10px 22px; width: 100%;
  margin-top: 4px; padding: 16px 18px 16px 24px; border-radius: 20px; color: #fff; text-decoration: none;
  background: linear-gradient(115deg, #1e1b4b 0%, #4c1d95 45%, #9d174d 100%);
  box-shadow: 0 14px 34px rgba(76, 29, 149, .35), inset 0 0 0 1px rgba(255, 255, 255, .08); transition: transform .15s, box-shadow .15s; }
.promo-cta::before { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .12) 45%, transparent 60%); background-size: 250% 100%; animation: pcShine 4.5s ease-in-out infinite; }
.promo-cta:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(76, 29, 149, .45), inset 0 0 0 1px rgba(255, 255, 255, .14); }
@keyframes pcShine { 0% { background-position: 120% 0; } 60%, 100% { background-position: -40% 0; } }
.pc-tag { position: relative; font-size: .78rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: #fcd34d;
  padding-right: 22px; border-right: 1px solid rgba(255, 255, 255, .22); white-space: nowrap; }
.pc-main { position: relative; flex: 1 1 auto; }
.pc-deal { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 18px; }
.pc-deal[hidden] { display: none !important; }
.pc-from { font-size: 1.15rem; font-weight: 700; color: rgba(255, 255, 255, .7); white-space: nowrap; }
.pc-from s { color: rgba(255, 255, 255, .85); text-decoration-color: #fb7185; text-decoration-thickness: 3px; font-weight: 800; }
.pc-now { white-space: nowrap; line-height: 1; }
.pc-now em, .pc-now b { font-style: normal; font-size: 2rem; font-weight: 900; letter-spacing: -.01em; }
.pc-now em { color: #fcd34d; margin-right: 4px; }
.pc-now b { color: #fff; }
.pc-now small { font-size: 1rem; font-weight: 700; color: rgba(255, 255, 255, .75); margin-left: 2px; }
.pc-go { position: relative; white-space: nowrap; font-weight: 900; font-size: .98rem; color: #4c1d95; background: #fff;
  padding: 11px 20px; border-radius: 999px; box-shadow: 0 6px 16px rgba(0, 0, 0, .2); }
.pc-go i { display: inline-block; font-style: normal; animation: nudge 1.2s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateX(5px); } }
#view-home .hero .promo-cta { grid-column: 1 / -1; }
#view-home .hero { row-gap: 14px; }
@media (max-width: 640px) {
  .promo-cta { padding: 16px; }
  .pc-tag { border-right: 0; padding-right: 0; width: 100%; }
  .pc-now em, .pc-now b { font-size: 1.7rem; }
  .pc-go { width: 100%; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { .promo-cta::before, .pc-go i { animation: none; } }
/* "Now" in the purple offer section: a gold word, same size as the heading */
.offer-band .now-word { color: #fcd34d; }
.offer-band .now-word[hidden] { display: none !important; }
.pc-go { letter-spacing: .04em; }
/* banner: one solid colour, no gradient or light sweep (2026-11-15) */
.promo-cta { background: #5b21b6; box-shadow: 0 12px 30px rgba(91, 33, 182, .35); }
.promo-cta:hover { box-shadow: 0 16px 36px rgba(91, 33, 182, .45); }
.promo-cta::before { display: none; }
.pc-go { color: #5b21b6; }
