/* ==========================================================================
   Learn Polish with Weronika – design system
   1. Tokens   2. Base   3. Layout   4. Buttons   5. Header   6. Footer
   7. Sections & components   8. Pages   9. Blog   10. Utilities & motion
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  --red: #ec3a38;          /* logo red – decoration, large type */
  --red-strong: #d62b28;   /* buttons & red text (AA contrast) */
  --red-deep: #a81d1b;
  --yellow: #ffc83d;
  --yellow-soft: #fff1c7;
  --blush: #ffe4de;
  --cream: #fff7ec;
  --paper: #fffdf9;
  --white: #ffffff;
  --ink: #1c1528;
  --ink-2: #2a2238;
  --ink-soft: #4b4357;
  --muted: #6e6578;
  --on-ink-muted: #b9b1c4;
  --line: #efe3d2;
  --green: #1f8a4c;

  --font-display: "Bricolage Grotesque", "Arial Black", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 32px;
  --shadow-sm: 0 1px 2px rgba(28, 21, 40, .06), 0 4px 12px rgba(28, 21, 40, .06);
  --shadow: 0 2px 4px rgba(28, 21, 40, .05), 0 18px 40px -12px rgba(28, 21, 40, .18);
  --shadow-pop: 6px 6px 0 var(--ink);

  --container: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --section-y: clamp(48px, 6vw, 88px);
  --header-h: 76px;
}

/* 2. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--red-strong); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--red-deep); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { margin: 0 0 .5em; color: var(--ink); font-family: var(--font-display); font-weight: 800; line-height: 1.08; letter-spacing: -.02em; }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.6rem); line-height: 1.02; }
h2 { font-size: clamp(2rem, 3.8vw, 3.2rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); font-weight: 700; letter-spacing: -.01em; }
h4 { font-size: 1.125rem; font-weight: 700; letter-spacing: 0; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
strong, b { color: var(--ink); font-weight: 700; }
figure { margin: 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
.icon { width: 1em; height: 1em; flex: none; }

main { display: block; overflow-x: clip; } /* decorative shapes may extend past the screen edge */
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--ink); color: var(--white); font-weight: 700; }
.skip-link:focus { top: 12px; color: var(--white); }

/* 3. Layout ---------------------------------------------------------------- */
.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(820px + 2 * var(--gutter)); }
.section { position: relative; padding-block: var(--section-y); }
.section--tight { padding-block: clamp(32px, 4.5vw, 56px); }
/* two plain (same background) sections in a row share one gap instead of doubling it
   (a hidden section doesn't count – it isn't on screen) */
.section:not(.section--cream, .section--ink, .section--blush, .section--red, [hidden]) + .section:not(.section--cream, .section--ink, .section--blush, .section--red),
.section--cream:not([hidden]) + .section--cream { padding-top: 0; }
/* first section after an inner-page hero: the colour change already separates them */
.page-hero + .section, .page-hero + [hidden] + .section { padding-top: clamp(36px, 4.5vw, 60px); }
.section--cream { background: var(--cream); }
.section--blush { background: var(--blush); }
.section--ink { background: var(--ink); color: var(--on-ink-muted); }
.section--ink h2, .section--ink h3, .section--ink strong { color: var(--white); }
.section--red { background: var(--red-strong); color: #ffe9e6; }
.section--red h2, .section--red strong { color: var(--white); }

.section-head { max-width: 760px; margin: 0 auto clamp(28px, 4vw, 44px); text-align: center; }
.section-head--left { margin-left: 0; text-align: left; }
.section-head p { font-size: 1.15rem; }

.grid { display: grid; gap: clamp(20px, 3vw, 32px); }
.grid--4:has(> .course-card) { gap: clamp(14px, 1.6vw, 20px); } /* course cards sit a bit closer */
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.split--wide-text { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }

/* 4. Buttons --------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 52px; padding: .8em 1.5em;
  border: 2px solid transparent; border-radius: 999px;
  font: 700 1rem/1.2 var(--font-body); letter-spacing: .01em; text-decoration: none; text-align: center;
  cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease;
}
.btn .icon { width: .95em; height: .95em; transition: transform .18s ease; }
.btn:hover .icon { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--red-strong); color: var(--white); box-shadow: 0 10px 24px -10px rgba(214, 43, 40, .7); }
.btn--primary:hover { background: var(--red-deep); color: var(--white); transform: translateY(-2px); }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: var(--ink-2); color: var(--white); transform: translateY(-2px); }
.btn--yellow { background: var(--yellow); color: var(--ink); box-shadow: var(--shadow-pop); border-color: var(--ink); }
.btn--yellow:hover { color: var(--ink); transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--ink); }
.btn--ghost { border-color: currentColor; color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.btn--light { background: var(--white); color: var(--ink); }
.btn--light:hover { background: var(--yellow); color: var(--ink); transform: translateY(-2px); }
.btn--sm { min-height: 42px; padding: .55em 1.1em; font-size: .9rem; }
.btn--block { width: 100%; }
.btn[aria-disabled="true"] { pointer-events: none; opacity: .55; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.text-link { display: inline-flex; align-items: center; gap: .45em; font-weight: 700; color: var(--red-strong); text-decoration: none; }
.text-link .icon { width: .9em; height: .9em; transition: transform .18s ease; }
.text-link:hover .icon { transform: translateX(3px); }

/* 5. Header & navigation --------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 253, 249, .86);
  -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(28, 21, 40, .45); }
.site-header__inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand { display: block; flex: none; }
.brand img { width: 168px; }
.nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.nav__link {
  position: relative; display: block; padding: 8px 12px; border-radius: 999px;
  color: var(--ink); font-weight: 600; font-size: .95rem; text-decoration: none;
}
.nav__link:hover { background: var(--cream); color: var(--ink); }
.nav__link[aria-current="page"] { background: var(--ink); color: var(--white); }
.nav-toggle {
  display: none; margin-left: auto; width: 48px; height: 48px; border: 0; border-radius: 14px;
  background: var(--ink); color: var(--white); cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle .icon--close { display: none; }
.nav-toggle[aria-expanded="true"] .icon--open { display: none; }
.nav-toggle[aria-expanded="true"] .icon--close { display: block; }

@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; z-index: 49;
    flex-direction: column; align-items: stretch; gap: 20px;
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    padding: 20px var(--gutter) 28px;
    background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 30px 40px -24px rgba(28, 21, 40, .35);
    transform: translateY(-12px); opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .2s ease, transform .2s ease; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 4px; }
  .nav__link { padding: 14px 16px; border-radius: 14px; font-size: 1.15rem; font-family: var(--font-display); font-weight: 700; }
  .nav .btn { width: 100%; }
  body.nav-open { overflow: hidden; }
}

/* 6. Footer ---------------------------------------------------------------- */
.site-footer { position: relative; overflow: hidden; background: var(--ink); color: var(--on-ink-muted); padding: clamp(44px, 5.5vw, 72px) 0 24px; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { color: var(--yellow); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.footer-logo { display: inline-block; margin-bottom: 20px; padding: 14px 18px; border-radius: 18px; background: var(--white); }
.footer-logo img { width: 170px; }
.footer-brand p { max-width: 380px; font-size: .95rem; }
.footer-title { margin: 0 0 14px; color: var(--yellow); font: 700 .8rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; }
.footer-links { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; font-weight: 500; }
.social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ink-2); color: var(--white); transition: background .18s ease, transform .18s ease; }
.social a:hover { background: var(--red-strong); color: var(--white); transform: translateY(-3px); }
.social .icon { width: 18px; height: 18px; }
.footer-app img { width: 230px; margin: 4px 0 16px; border-radius: 8px; }
.trustpilot-link { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1.5px solid #3a3148; border-radius: 999px; font-weight: 600; font-size: .9rem; }
.trustpilot-link .icon { color: #00b67a; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 40px; padding-top: 24px; border-top: 1px solid #332a42; font-size: .875rem; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-word { position: absolute; right: -2vw; bottom: -0.32em; color: #241c33; font: 800 clamp(5rem, 16vw, 15rem)/1 var(--font-display); letter-spacing: -.04em; pointer-events: none; user-select: none; }
.site-footer .container { position: relative; }

/* 7. Sections & components ------------------------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px;
  color: var(--red-strong); font: 700 .8rem/1.2 var(--font-body); letter-spacing: .16em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: currentColor; box-shadow: 16px 0 0 var(--yellow); margin-right: 16px; }
.section--ink .eyebrow, .section--red .eyebrow { color: var(--yellow); }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.6; }
.hl { padding: 0 .12em; background: linear-gradient(transparent 60%, var(--yellow) 60%, var(--yellow) 92%, transparent 92%); color: inherit; border-radius: 2px; }
.hl--red { color: var(--red-strong); background: none; }

/* Hero (home) */
.hero { position: relative; overflow: hidden; padding: clamp(32px, 5vw, 64px) 0 clamp(56px, 7vw, 88px); background: var(--cream); }
.hero::before { content: ""; position: absolute; width: 640px; height: 640px; right: -180px; top: -200px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 200, 61, .45), rgba(255, 200, 61, 0) 65%); }
.hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(40px, 6vw, 80px); align-items: center; }
.hero h1 { margin-bottom: 22px; }
.hero__sub { max-width: 560px; margin-bottom: 30px; font-size: clamp(1.1rem, 1.6vw, 1.3rem); }
.hero__trust { margin: 22px 0 0; color: var(--ink-soft); font-size: .95rem; font-weight: 600; }
.hero__trust a { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; }
.hero__trust a:hover strong { text-decoration: underline; }
.hero__trust .stars { color: #00b67a; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; color: var(--ink); font-weight: 600; font-size: .95rem; }
.hero__meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero__meta .icon { color: var(--red-strong); }

/* Photo frames */
.frame { position: relative; isolation: isolate; }
.frame__img { position: relative; z-index: 1; overflow: hidden; border-radius: 999px 999px var(--radius-lg) var(--radius-lg); border: 6px solid var(--white); box-shadow: var(--shadow); background: var(--blush); }
.frame__img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.frame__blob { position: absolute; z-index: 0; inset: 8% -6% -5% 10%; border-radius: 46% 54% 40% 60% / 52% 38% 62% 48%; background: var(--red); transform: rotate(-6deg); }
.frame--rounded .frame__img { border-radius: var(--radius-lg); }
.frame--rounded .frame__img img { aspect-ratio: auto; }
.frame--yellow .frame__blob { background: var(--yellow); }
.frame__dots { position: absolute; z-index: 0; width: 120px; height: 120px; left: -26px; bottom: 40px; background-image: radial-gradient(var(--ink) 2px, transparent 2.5px); background-size: 16px 16px; opacity: .25; }

/* Stickers */
.sticker {
  position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border: 2px solid var(--ink); border-radius: 16px;
  background: var(--white); color: var(--ink); box-shadow: 4px 4px 0 var(--ink);
  font: 800 1rem/1.15 var(--font-display); white-space: nowrap;
}
.sticker small { display: block; color: var(--muted); font: 600 .72rem/1.2 var(--font-body); letter-spacing: .02em; }
.sticker--yellow { background: var(--yellow); }
.sticker--red { background: var(--red-strong); color: var(--white); }
.sticker--red small { color: var(--white); }
.sticker--blush { background: var(--blush); }
.sticker--big { font-size: 1.35rem; padding: 12px 20px; }
.tilt-l { transform: rotate(-6deg); }
.tilt-r { transform: rotate(5deg); }
.float { animation: float 6s ease-in-out infinite; }
.float--slow { animation-duration: 8s; animation-delay: -2s; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

/* Polish word ribbon */
.ribbon { position: relative; z-index: 2; overflow: hidden; padding: 18px 0; background: var(--red-strong); color: var(--white); transform: rotate(-1.4deg); margin: -26px -2vw 0; box-shadow: 0 16px 30px -18px rgba(168, 29, 27, .8); }
.ribbon__track { display: flex; width: max-content; gap: 0; animation: marquee 38s linear infinite; }
.ribbon__item { display: inline-flex; align-items: baseline; gap: 10px; padding: 0 28px; font: 800 clamp(1.15rem, 2vw, 1.5rem)/1 var(--font-display); white-space: nowrap; }
.ribbon__item small { color: var(--white); font: 500 .9rem/1 var(--font-body); }
.ribbon__item::after { content: "✦"; margin-left: 28px; color: var(--yellow); font-size: .9em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stat { padding: 26px 22px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.stat__num { display: block; margin-bottom: 6px; color: var(--ink); font: 800 clamp(2.3rem, 4vw, 3.3rem)/1 var(--font-display); letter-spacing: -.03em; }
.stat__num em { color: var(--red); font-style: normal; }
.stat__label { color: var(--muted); font-size: .92rem; font-weight: 600; line-height: 1.4; }

/* Cards */
.card { position: relative; padding: clamp(24px, 3vw, 36px); border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.card--cream { background: var(--cream); }
.card--ink { background: var(--ink); border-color: var(--ink); color: var(--on-ink-muted); }
.card--ink h3, .card--ink strong { color: var(--white); }
.card--pop { border: 2px solid var(--ink); box-shadow: var(--shadow-pop); }
.card h3 { margin-bottom: 12px; }
.card > :last-child { margin-bottom: 0; }

.icon-badge { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 18px; border-radius: 16px; background: var(--blush); color: var(--red-strong); }
.icon-badge .icon { width: 24px; height: 24px; }
.icon-badge--yellow { background: var(--yellow-soft); color: var(--ink); }
.icon-badge--ink { background: var(--ink); color: var(--yellow); }

/* Lists */
.ticks, .crosses { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.ticks li, .crosses li { position: relative; padding-left: 38px; }
.ticks li::before, .crosses li::before { content: ""; position: absolute; left: 0; top: .12em; width: 26px; height: 26px; border-radius: 50%; background: var(--green) no-repeat center / 14px; }
.ticks li::before { background-color: var(--green); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.crosses li::before { background-color: var(--red-strong); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 7l10 10M17 7L7 17' fill='none' stroke='white' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E"); }
.ticks--yellow li::before { background-color: var(--yellow); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%231c1528' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

.versus { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 28px 0 32px; }
.versus .card { padding: 24px; }
.versus h3 { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; }

/* Free PDFs */
.pdf-card { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease; }
.pdf-card:hover { transform: translateY(-6px) rotate(-.4deg); box-shadow: var(--shadow); }
.pdf-card__cover { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--cream); }
.pdf-card__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.pdf-card:hover .pdf-card__cover img { transform: scale(1.05); }
.pdf-card__cover .sticker { top: 16px; left: 16px; font-size: .85rem; padding: 6px 12px; box-shadow: 3px 3px 0 var(--ink); }
.pdf-card__body { display: flex; flex: 1; flex-direction: column; gap: 16px; padding: 22px 24px 26px; }
.pdf-card__body h3 { margin: 0; font-size: 1.3rem; }
.pdf-card__body .btn, .pdf-card__body > .badge { margin-top: auto; }
.pdf-card__body > .badge { justify-content: center; min-height: 52px; font-size: .85rem; } /* same size as the buttons in neighbouring cards */

/* Logos strip */
.logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: clamp(28px, 6vw, 72px); }
.logos img { height: 34px; width: auto; filter: grayscale(1); opacity: .7; transition: filter .2s ease, opacity .2s ease; }
.logos img:hover { filter: none; opacity: 1; }
.logos__title { margin: 0 0 26px; text-align: center; color: var(--muted); font-weight: 700; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; }

/* Testimonials */
.quote { display: flex; flex-direction: column; gap: 18px; height: 100%; }
.quote__mark { width: 38px; height: 38px; color: var(--red); }
.quote blockquote { margin: 0; color: var(--ink); font-size: 1.08rem; line-height: 1.6; }
.quote figcaption { margin-top: auto; display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .92rem; }
.quote figcaption strong { display: block; color: var(--ink); font-size: 1rem; }
.avatar { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--yellow); color: var(--ink); font: 800 1.1rem/1 var(--font-display); flex: none; }
.stars { display: inline-flex; gap: 3px; color: var(--yellow); }
.stars .icon { width: 16px; height: 16px; }

/* Video (click to play – nothing loads from YouTube/Wistia until clicked) */
.video { position: relative; display: block; width: 100%; overflow: hidden; border-radius: var(--radius); background: var(--ink); box-shadow: var(--shadow-sm); }
.video__btn { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; transition: opacity .35s ease; }
.video--portrait { aspect-ratio: 9 / 16; }
.video--wide { aspect-ratio: 16 / 9; }
.video img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease, opacity .3s ease; }
.video__btn:hover img { transform: scale(1.04); opacity: .9; }
.video__play { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 50%; background: var(--yellow); color: var(--ink); box-shadow: 0 0 0 10px rgba(255, 200, 61, .3); transition: transform .2s ease; }
.video__play .icon { width: 24px; height: 24px; margin-left: 4px; }
.video__btn:hover .video__play { transform: scale(1.08); }
.video__label { position: absolute; left: 14px; right: 14px; bottom: 14px; padding: 8px 12px; border-radius: 12px; background: rgba(28, 21, 40, .78); color: var(--white); font-weight: 700; font-size: .9rem; text-align: left; }
.video iframe { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; border: 0; opacity: 0; transition: opacity .35s ease; }
.video.is-playing iframe { opacity: 1; }
.video.is-playing .video__btn { opacity: 0; pointer-events: none; }
.video.is-loading .video__play .icon { display: none; }
.video.is-loading .video__play::after { content: ""; width: 26px; height: 26px; border: 3px solid rgba(28, 21, 40, .25); border-top-color: var(--ink); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* CTA band */
.cta-band { position: relative; overflow: hidden; padding: clamp(44px, 6vw, 80px) clamp(24px, 6vw, 80px); border-radius: var(--radius-lg); background: var(--ink); color: var(--on-ink-muted); text-align: center; isolation: isolate; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("../img/ijcyxhd98i5zbqe86i3msfrr.webp") center / cover; opacity: .16; }
.cta-band::after { content: ""; position: absolute; z-index: -1; width: 520px; height: 520px; left: -160px; bottom: -280px; border-radius: 50%; background: radial-gradient(circle, rgba(236, 58, 56, .55), rgba(236, 58, 56, 0) 65%); }
.cta-band h2 { color: var(--white); }
.cta-band p { max-width: 640px; margin-inline: auto; font-size: 1.12rem; }
.cta-band .btn-row { justify-content: center; margin-top: 30px; }

/* Newsletter */
.newsletter { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; padding: clamp(28px, 5vw, 56px); border-radius: var(--radius-lg); background: var(--yellow); color: var(--ink); border: 2px solid var(--ink); box-shadow: 10px 10px 0 var(--ink); }
.newsletter h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
.newsletter p { color: var(--ink-soft); font-weight: 500; }
.nl-form { display: grid; gap: 12px; }
.nl-form input[type="text"], .nl-form input[type="email"] {
  width: 100%; height: 54px; padding: 0 18px; border: 2px solid var(--ink); border-radius: 14px; background: var(--white); color: var(--ink);
  font: 500 1rem var(--font-body); outline: none; transition: box-shadow .15s ease;
}
.nl-form input::placeholder { color: #8a8195; }
.nl-form input:focus { box-shadow: 0 0 0 4px rgba(28, 21, 40, .18); }
.nl-form input.is-invalid { border-color: var(--red-strong); box-shadow: 0 0 0 4px rgba(214, 43, 40, .2); }
.nl-consent { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-soft); font-size: .82rem; line-height: 1.5; cursor: pointer; }
.nl-consent input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--ink); }
.nl-consent a { color: var(--ink); font-weight: 600; }
/* Waitlist on course cards (partials/waitlist-mini.njk) + pop-up (partials/waitlist-dialog.html) */
.waitlist-cta { margin-top: auto; padding-top: 16px; border-top: 1px dashed var(--line); }
.course-card__body > .waitlist-cta { margin-top: auto; }
.bestseller .waitlist-cta { margin-top: 20px; }
.waitlist-cta .btn .icon { width: 1em; height: 1em; }
/* "Opening soon" sticker on the image of every card that has a waitlist button */
.course-card__body:has([data-waitlist]), .bestseller:has([data-waitlist]) { position: relative; }
.course-card__body:has([data-waitlist]) { padding-top: 30px; }
.course-card__body:has([data-waitlist])::before, .bestseller:has([data-waitlist])::before {
  content: "Opening soon"; position: absolute; z-index: 2; top: -15px; left: 14px; transform: rotate(-3deg);
  padding: 6px 12px; border: 2px solid var(--ink); border-radius: 12px; background: var(--yellow); color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink); font: 800 .8rem/1 var(--font-display); letter-spacing: .02em;
}
.bestseller:has([data-waitlist])::before { top: 22px; left: auto; right: 22px; transform: rotate(3deg); font-size: .95rem; padding: 8px 14px; }
.waitlist-dialog { width: min(480px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: clamp(24px, 4vw, 34px); border: 2px solid var(--ink); border-radius: var(--radius-lg); background: var(--yellow); color: var(--ink); box-shadow: 10px 10px 0 var(--ink); }
.waitlist-dialog::backdrop { background: rgba(28, 21, 40, .55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.waitlist-dialog[open] { animation: lpw-in .3s cubic-bezier(.2, .8, .2, 1); }
.waitlist-dialog .eyebrow { color: var(--ink); margin-bottom: 10px; }
.waitlist-dialog h2 { margin: 0 34px 10px 0; }
.waitlist-dialog > p { color: var(--ink-soft); font-weight: 500; }
.waitlist-dialog__close { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 40px; height: 40px; border: 2px solid var(--ink); border-radius: 50%; background: var(--white); color: var(--ink); cursor: pointer; }
.waitlist-dialog__close:hover { background: var(--ink); color: var(--white); }
.waitlist-dialog__close .icon { width: 16px; height: 16px; }

/* Course cards: yellow "pop" button */
.course-card .waitlist-cta .btn { min-height: 46px; border-color: var(--ink); background: var(--yellow); color: var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.course-card .waitlist-cta .btn:hover { background: var(--yellow); color: var(--ink); transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.course-card .waitlist-cta .btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
/* Ringing bell on the "Get notified" buttons */
.icon--bell { transform-origin: 50% 8%; animation: bell-ring 5s ease-in-out infinite; }
.waitlist-cta .btn:hover .icon--bell, .waitlist-cta .btn:focus-visible .icon--bell { animation: bell-ring-now .9s ease-in-out; transform: none; }
@keyframes bell-ring { 0%, 84%, 100% { rotate: 0deg; } 86% { rotate: 16deg; } 88% { rotate: -14deg; } 90% { rotate: 11deg; } 92% { rotate: -8deg; } 94% { rotate: 4deg; } 96% { rotate: -2deg; } }
@keyframes bell-ring-now { 0%, 100% { rotate: 0deg; } 15% { rotate: 18deg; } 30% { rotate: -16deg; } 45% { rotate: 12deg; } 60% { rotate: -8deg; } 75% { rotate: 4deg; } }
.course-card:nth-child(2) .icon--bell { animation-delay: .4s; }
.course-card:nth-child(3) .icon--bell { animation-delay: .8s; }
.course-card:nth-child(4) .icon--bell { animation-delay: 1.2s; }
/* Bestseller: filled button */
.bestseller .waitlist-cta .btn { min-height: 52px; border-color: var(--red-strong); background: var(--red-strong); color: var(--white); font-size: 1rem; box-shadow: 0 10px 24px -10px rgba(214, 43, 40, .7); }
.bestseller .waitlist-cta .btn:hover { background: var(--red-deep); border-color: var(--red-deep); color: var(--white); transform: translateY(-2px); }
/* Pop-up: compact so it fits short screens without a scrollbar */
.waitlist-dialog { padding: clamp(20px, 3vw, 28px); overflow-y: auto; scrollbar-width: none; }
.waitlist-dialog::-webkit-scrollbar { display: none; }
.waitlist-dialog .eyebrow { margin-bottom: 8px; font-size: .72rem; }
.waitlist-dialog h2 { font-size: clamp(1.2rem, 2.2vw, 1.4rem); line-height: 1.2; }
.waitlist-dialog > p { margin-bottom: 16px; font-size: .95rem; line-height: 1.5; }
.waitlist-dialog .nl-form { gap: 10px; }
.waitlist-dialog .nl-form input[type="text"], .waitlist-dialog .nl-form input[type="email"] { height: 46px; }
.waitlist-dialog .nl-consent { font-size: .76rem; line-height: 1.45; }
.waitlist-dialog .btn { min-height: 48px; }
.waitlist-dialog .nl-msg:empty { display: none; }
.waitlist-dialog__close { top: 12px; right: 12px; width: 36px; height: 36px; }
.nl-msg { min-height: 1.4em; margin: 0; font-weight: 700; font-size: .95rem; }
.nl-msg.is-ok { color: var(--ink); }
.nl-msg.is-error { color: var(--red-deep); }

/* Page hero (inner pages) */
.page-hero { position: relative; overflow: hidden; padding: clamp(40px, 6vw, 80px) 0 clamp(40px, 5.5vw, 72px); background: var(--cream); }
.page-hero::after { content: ""; position: absolute; width: 520px; height: 520px; right: -200px; top: -220px; border-radius: 50%; background: radial-gradient(circle, rgba(236, 58, 56, .22), rgba(236, 58, 56, 0) 65%); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { max-width: 900px; }
.page-hero .lead { max-width: 720px; }
.page-hero--center { text-align: center; }
.page-hero--center h1, .page-hero--center .lead { margin-inline: auto; }
.page-hero__deco { position: absolute; z-index: 1; right: clamp(16px, 8vw, 120px); bottom: 28px; }

/* Features (icon cards) */
.feature h3 { font-size: 1.2rem; margin-bottom: 8px; }
.feature p { margin: 0; }

/* Steps */
.steps { counter-reset: step; display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.steps li { counter-increment: step; position: relative; padding: 22px 24px 22px 84px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.steps li::before { content: counter(step); position: absolute; left: 22px; top: 50%; display: grid; place-items: center; width: 44px; height: 44px; margin-top: -22px; border-radius: 14px; background: var(--ink); color: var(--yellow); font: 800 1.2rem/1 var(--font-display); }
.steps strong { display: block; color: var(--ink); font-size: 1.05rem; }

/* FAQ (accordion) */
.faq { display: grid; gap: 14px; }
.faq details { border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 26px; cursor: pointer; list-style: none; color: var(--ink); font: 700 1.12rem/1.35 var(--font-display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { width: 18px; height: 18px; color: var(--red-strong); transition: transform .2s ease; }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq .faq__body { padding: 0 26px 24px; }
.faq .faq__body > :last-child { margin-bottom: 0; }

/* Callout */
.callout { display: flex; gap: 16px; align-items: flex-start; padding: 20px 22px; border-radius: var(--radius); background: var(--yellow-soft); border: 1.5px dashed #e4b42f; color: var(--ink); }
.callout .icon { width: 22px; height: 22px; margin-top: 2px; color: #b8860b; }
.callout p { margin: 0; }

/* Contact cards */
.contact-card { display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: inherit; transition: transform .2s ease, box-shadow .2s ease; }
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: inherit; }
.contact-card h3 { margin: 0; font-size: 1.15rem; }
.contact-card .contact-card__value { color: var(--red-strong); font-weight: 700; word-break: break-word; }

/* Products */
.product { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.product + .product { margin-top: clamp(48px, 7vw, 88px); }
.product__cover { position: relative; }
.product__cover img { width: 100%; border-radius: 16px; box-shadow: 0 30px 50px -24px rgba(28, 21, 40, .45), 0 0 0 1px rgba(28, 21, 40, .06); transform: rotate(-2.5deg); transition: transform .3s ease; }
.product:hover .product__cover img { transform: rotate(0); }
.product__cover .sticker { top: -14px; right: -10px; }
.product__price { display: inline-block; margin-bottom: 14px; padding: 6px 14px; border-radius: 999px; background: var(--ink); color: var(--yellow); font: 800 1.1rem/1.2 var(--font-display); }
.product h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.badge { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; padding: 5px 12px; border-radius: 999px; background: var(--blush); color: var(--red-deep); font-weight: 700; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }
.badge--ink { background: var(--ink); color: var(--yellow); }
.badge--green { background: #dff3e6; color: #156b39; }

/* Courses */
.benefits { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin: 44px 0 0; padding: 0; list-style: none; text-align: left; }
.benefit { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 24px 22px 22px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.benefit:hover { transform: translateY(-5px); border-color: var(--ink); box-shadow: var(--shadow-pop); }
.benefit__icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 10px; border-radius: 16px; background: var(--blush); color: var(--red-strong); transform: rotate(-4deg); transition: transform .25s ease; }
.benefit:hover .benefit__icon { transform: rotate(0) scale(1.06); }
.benefit__icon .icon { width: 24px; height: 24px; }
.benefit--yellow .benefit__icon { background: var(--yellow); color: var(--ink); transform: rotate(4deg); }
.benefit--ink .benefit__icon { background: var(--ink); color: var(--yellow); }
.benefit__title { margin: 0; font-size: 1.15rem; line-height: 1.2; letter-spacing: -.01em; }
.benefit p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.55; }
.benefit small { font-size: .85em; white-space: nowrap; }
@media (max-width: 1100px) { .benefits { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .benefit { padding: 18px 16px; } }
@media (max-width: 420px) { .benefits { grid-template-columns: 1fr; } .benefit { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 14px; } .benefit__icon { margin: 0; } .benefit__title { flex: 1; } .benefit p { flex-basis: 100%; } }
.course-card { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.course-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.course-card__body { display: flex; flex: 1; flex-direction: column; gap: 6px; padding: 20px 22px 24px; }
.course-card__body h3 { margin: 0 0 4px; font-size: 1.2rem; }
.course-card__body p { margin: 0; font-size: .95rem; }
.course-card__body > p:last-of-type { margin-bottom: 14px; }
.course-card__body > .btn, .course-card__body > .badge, .course-card__body > .text-link { margin-top: auto; align-self: flex-start; } /* buttons/labels line up at the bottom of every card */
.bestseller { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(24px, 4vw, 48px); border-radius: var(--radius-lg); background: var(--white); border: 2px solid var(--ink); box-shadow: var(--shadow-pop); }
.bestseller img { width: 100%; border-radius: var(--radius); }
.currency-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 20px; }
.levels-img { padding: clamp(12px, 2vw, 24px); border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); }
.levels-img img { width: 100%; border-radius: var(--radius); }

/* Prose (legal pages, blog posts) */
.prose { color: var(--ink-soft); font-size: 1.08rem; line-height: 1.8; }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin: 2em 0 .6em; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.prose h3 { margin: 1.8em 0 .5em; font-size: clamp(1.2rem, 2vw, 1.45rem); }
.prose h4 { margin: 1.6em 0 .5em; }
.prose h2 + h3, .prose h3 + h4 { margin-top: .4em; }
.prose p, .prose ul, .prose ol { margin-bottom: 1.15em; }
.prose li { margin: .4em 0; padding-left: .2em; }
.prose li::marker { color: var(--red); font-weight: 700; }
.prose a { font-weight: 600; }
.prose img { border-radius: 16px; margin: 1.6em auto; width: auto; }
.prose table { width: 100%; margin: 1.8em 0; border-collapse: separate; border-spacing: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; font-size: .97rem; }
.prose td, .prose th { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose tr:last-child td { border-bottom: 0; }
.prose tr:nth-child(odd) td { background: var(--cream); }
.prose .btn { margin: .3em 0; color: var(--white); text-decoration: none; }
.pl-word { color: var(--red-strong); font-weight: 600; }
.legal { padding: clamp(28px, 5vw, 56px); border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); }

/* Company info */
.company { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px 32px; font-size: .95rem; }
.company dt { color: var(--muted); font-weight: 600; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.company dd { margin: 4px 0 0; color: var(--ink); font-weight: 600; }

/* 404 */
.notfound { padding: clamp(56px, 9vw, 120px) 0; text-align: center; background: var(--cream); }
.notfound__code { display: inline-block; margin-bottom: 18px; padding: 10px 26px; border: 3px solid var(--ink); border-radius: 24px; background: var(--yellow); box-shadow: 8px 8px 0 var(--ink); color: var(--ink); font: 800 clamp(4rem, 12vw, 8rem)/1 var(--font-display); transform: rotate(-4deg); }

/* 9. Blog ------------------------------------------------------------------ */
.post-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 32px); }
.post-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.post-card { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm); color: inherit; text-decoration: none; transition: transform .25s ease, box-shadow .25s ease; }
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); color: inherit; }
.post-card__img { aspect-ratio: 16 / 9; overflow: hidden; background: var(--cream); }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.post-card:hover .post-card__img img { transform: scale(1.04); }
.post-card__body { display: flex; flex: 1; flex-direction: column; gap: 12px; padding: 22px 24px 24px; }
.post-card__title { margin: 0; font-size: 1.3rem; line-height: 1.25; }
.post-card__excerpt { margin: 0; font-size: .97rem; }
.post-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 6px; color: var(--muted); font-size: .85rem; font-weight: 600; }
.post-card__read { display: inline-flex; align-items: center; gap: 6px; color: var(--red-strong); font-weight: 700; }
.post-card__read .icon { width: .85em; height: .85em; transition: transform .2s ease; }
.post-card:hover .post-card__read .icon { transform: translateX(3px); }
.post-card--featured { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); margin-bottom: clamp(20px, 3vw, 32px); }
.post-card--featured .post-card__img { aspect-ratio: auto; }
.post-card--featured .post-card__body { justify-content: center; padding: clamp(24px, 3vw, 40px); }
.post-card--featured .post-card__title { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.post-card--small .post-card__title { font-size: 1.1rem; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; color: var(--muted); font-size: .9rem; font-weight: 600; }
.post-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: currentColor; }

.post-hero { padding: clamp(48px, 7vw, 88px) 0 clamp(120px, 14vw, 170px); background: var(--cream); text-align: center; }
.post-hero h1 { max-width: 900px; margin: 0 auto 20px; font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
.post-hero .post-meta { justify-content: center; }
.crumbs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 22px; font-size: .88rem; font-weight: 600; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs span { color: var(--muted); }
.post-cover { margin: calc(-1 * clamp(100px, 12vw, 140px)) auto clamp(36px, 5vw, 56px); overflow: hidden; border-radius: var(--radius-lg); border: 6px solid var(--white); box-shadow: var(--shadow); }
.post-cover img { width: 100%; }
.post-end { margin-top: clamp(48px, 6vw, 72px); }

/* 10. Utilities & motion -------------------------------------------------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-l { margin-top: clamp(32px, 4vw, 48px); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .hero__grid, .split, .split--wide-text, .newsletter, .bestseller { grid-template-columns: 1fr; }
  .hero__media { max-width: 460px; margin: 0 auto; width: 100%; }
  .grid--3, .post-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--4, .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post-card--featured { grid-template-columns: 1fr; }
  .post-card--featured .post-card__img { aspect-ratio: 16 / 9; }
  .product { grid-template-columns: minmax(0, 220px) minmax(0, 1fr); }
}
@media (max-width: 640px) {
  :root { --header-h: 68px; }
  body { font-size: 1rem; }
  .brand img { width: 140px; }
  .grid--2, .grid--3, .grid--4, .post-grid, .post-grid--3, .versus { grid-template-columns: 1fr; }
  .grid--4.grid--mobile-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .stats { gap: 10px; }
  .stat { padding: 18px 16px; }
  .product { grid-template-columns: 1fr; }
  .product__cover { max-width: 240px; }
  .footer-grid { grid-template-columns: 1fr; }
  .sticker { font-size: .85rem; padding: 8px 12px; }
  .sticker--big { font-size: 1.05rem; }
  .currency-row { grid-template-columns: 1fr 1fr; }
  .newsletter { box-shadow: 6px 6px 0 var(--ink); }
  .steps li { padding: 70px 20px 20px; }
  .steps li::before { top: 18px; margin-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Additions: label colour, sticker positions on photo frames, chips */
.eyebrow--ink { color: var(--ink); }
.frame__sticker--a { top: 6%; left: -9%; }
.frame__sticker--b { top: 46%; right: -9%; }
.frame__sticker--c { bottom: 7%; left: -5%; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 0; padding: 0; list-style: none; }
.chips li { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: .92rem; }
@media (max-width: 640px) {
  .frame__sticker--a { left: -2%; }
  .frame__sticker--b { right: -2%; }
  .frame__sticker--c { left: 0; }
}
.frame__img img.pos-right { object-position: 64% center; }
.mx-auto { margin-inline: auto; }
.h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); font-weight: 700; letter-spacing: -.01em; }
.btn-row--center { justify-content: center; }
/* App store badges (footer) */
.store-badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 18px; }
.store-badge { display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px 9px 13px; border: 1.5px solid #4a405a; border-radius: 12px; background: var(--ink-2); color: var(--white); line-height: 1.1; font-weight: 700; font-size: 1rem; transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.store-badge:hover { border-color: var(--yellow); background: #322943; color: var(--white); transform: translateY(-2px); }
.store-badge .icon { width: 22px; height: 22px; }
.store-badge small { display: block; margin-bottom: 2px; color: var(--on-ink-muted); font-size: .68rem; font-weight: 600; letter-spacing: .02em; }
/* Polish flag (emoji flags don't render on Windows) */
.icon.flag { width: 1.25em; height: .8em; border-radius: 2px; vertical-align: -.05em; display: inline-block; }
.course-card img.contain { object-fit: contain; padding: 10px; background: var(--white); }
.post-card__body .badge, .course-card__body .badge { align-self: flex-start; }

/* Video consent notice (shown on a video when external media isn't allowed yet) */
.video__consent { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 18px; background: rgba(28, 21, 40, .94); color: var(--white); font-size: .88rem; line-height: 1.5; text-align: center; }
.video__consent p { margin: 0; }
.video__consent strong { color: var(--yellow); }
.video__consent a { color: var(--white); }
.video--portrait .video__consent .btn-row { flex-direction: column; }

/* Cookie consent */
.lpw-choice { position: fixed; z-index: 60; left: 20px; bottom: 20px; display: grid; gap: 16px; width: min(560px, calc(100% - 40px)); padding: 22px 24px; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--white); color: var(--ink-soft); box-shadow: var(--shadow-pop), 0 30px 60px -20px rgba(28, 21, 40, .35); font-size: .92rem; line-height: 1.55; }
.lpw-choice[hidden] { display: none; }
.lpw-choice:not([hidden]) { animation: lpw-in .5s cubic-bezier(.2, .8, .2, 1) .15s both; }
@keyframes lpw-in { from { opacity: 0; transform: translateY(24px); } }
.lpw-choice p { margin: 0; }
.lpw-choice__title { margin-bottom: 6px !important; color: var(--ink); font: 800 1.15rem/1.2 var(--font-display); }
.lpw-choice__actions, .lpw-prefs__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.lpw-choice__actions .btn { flex: 1 1 140px; }
.lpw-prefs { width: min(560px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--white); color: var(--ink-soft); box-shadow: var(--shadow-pop); }
.lpw-prefs::backdrop { background: rgba(28, 21, 40, .55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.lpw-prefs__inner { padding: clamp(22px, 4vw, 32px); }
.lpw-prefs__inner > p { font-size: .95rem; }
.lpw-prefs__cat { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 16px 0; border-top: 1px solid var(--line); cursor: pointer; }
.lpw-prefs__cat:first-of-type { cursor: default; }
.lpw-prefs__cat strong { display: block; margin-bottom: 2px; }
.lpw-prefs__cat p { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.5; }
.lpw-switch { appearance: none; -webkit-appearance: none; flex: none; position: relative; width: 48px; height: 28px; margin: 2px 0 0; border-radius: 999px; background: #d9d2c6; cursor: pointer; transition: background .2s ease; }
.lpw-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--white); box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s ease; }
.lpw-switch:checked { background: var(--green); }
.lpw-switch:checked::after { transform: translateX(20px); }
.lpw-prefs__actions { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.lpw-prefs__actions .btn { flex: 1 1 140px; }
.link-btn { padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.site-footer .link-btn { color: var(--white); }
.site-footer .link-btn:hover { color: var(--yellow); }
@media (max-width: 640px) {
  .lpw-choice { left: 10px; right: 10px; bottom: 10px; width: auto; padding: 18px; }
}

/* Journey (B1 exam page): numbered stops along a dashed road ------------------ */
.journey { position: relative; display: grid; gap: clamp(22px, 3vw, 32px); max-width: 980px; margin: 0 auto; padding: 0; list-style: none; }
.journey::before { content: ""; position: absolute; left: 31px; top: 34px; bottom: 34px; width: 4px; border-radius: 4px; background: repeating-linear-gradient(to bottom, var(--ink) 0 12px, transparent 12px 22px); opacity: .22; }
.journey__step { position: relative; padding-left: 92px; }
.journey__marker { position: absolute; left: 0; top: 18px; z-index: 1; display: grid; place-items: center; width: 66px; height: 66px; border: 3px solid var(--ink); border-radius: 20px; background: var(--yellow); color: var(--ink); box-shadow: 4px 4px 0 var(--ink); font: 800 1.6rem/1 var(--font-display); }
.journey__marker .icon { width: 26px; height: 26px; }
.journey__marker--ink { background: var(--ink); color: var(--yellow); }
.journey__marker--red { background: var(--red-strong); color: var(--white); }
.journey__card { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: clamp(18px, 3vw, 32px); align-items: start; }
.journey__card--text { grid-template-columns: minmax(0, 1fr); }
.journey__card > img { width: 100%; border-radius: 14px; box-shadow: var(--shadow-sm); }
.journey__card h3 { margin-bottom: 10px; }
.journey__card p { margin-bottom: 12px; }
.journey__meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; padding: 0; list-style: none; }
.journey__meta li { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--cream); color: var(--ink); font-weight: 700; font-size: .82rem; }
.journey__meta .icon { color: var(--red-strong); }
.journey__card details { margin-top: 6px; border-top: 1px dashed var(--line); }
.journey__card summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0 4px; cursor: pointer; list-style: none; color: var(--red-strong); font-weight: 700; }
.journey__card summary::-webkit-details-marker { display: none; }
.journey__card summary .icon { width: 14px; height: 14px; transition: transform .2s ease; }
.journey__card details[open] summary .icon { transform: rotate(180deg); }
.journey__card details ul { margin: 8px 0 0; font-size: .93rem; }
.journey__card details li { margin: 6px 0; }
.journey__card .badge { margin-top: 4px; }
.journey__step--finish .journey__card { background: var(--yellow-soft); border: 2px solid var(--ink); box-shadow: var(--shadow-pop); }
.journey-total { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; max-width: 980px; margin: 0 auto; }
.journey-total .stat { text-align: center; }
.journey-total .stat--sum { background: var(--ink); border-color: var(--ink); }
.journey-total .stat--sum .stat__num { color: var(--yellow); }
.journey-total .stat--sum .stat__label { color: var(--on-ink-muted); }
.exam-parts { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 0; padding: 0; list-style: none; }
.exam-parts li { padding: 8px 14px; border: 2px solid var(--ink); border-radius: 12px; background: var(--white); color: var(--ink); font-weight: 700; font-size: .92rem; }
@media (max-width: 760px) {
  .journey::before { left: 23px; }
  .journey__step { padding-left: 64px; }
  .journey__marker { width: 50px; height: 50px; border-radius: 15px; font-size: 1.25rem; box-shadow: 3px 3px 0 var(--ink); }
  .journey__card { grid-template-columns: 1fr; }
  .journey-total { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Trustpilot reviews carousel (partials/reviews-carousel.html) ----------------- */
.reviews { overflow: hidden; }
.reviews__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 32px; margin-bottom: clamp(24px, 3vw, 36px); }
.reviews__head h2 { margin-bottom: 14px; }
.reviews__score { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; color: var(--ink-soft); font-size: .95rem; text-decoration: none; }
.reviews__score:hover strong:first-child { text-decoration: underline; }
.tp-brand { display: inline-flex; align-items: center; gap: 3px; color: var(--ink); }
.tp-brand .icon { color: #00b67a; }
.tp-stars { display: inline-flex; gap: 2px; }
.tp-stars > span { display: grid; place-items: center; width: 22px; height: 22px; background: #00b67a; color: var(--white); }
.tp-stars .icon { width: 14px; height: 14px; }
.tp-stars--lg > span { width: 28px; height: 28px; }
.tp-stars--lg .icon { width: 18px; height: 18px; }
.reviews__nav { display: flex; gap: 10px; }
.reviews__btn { display: grid; place-items: center; width: 52px; height: 52px; border: 2px solid var(--ink); border-radius: 50%; background: var(--white); color: var(--ink); cursor: pointer; box-shadow: 3px 3px 0 var(--ink); transition: transform .15s ease, box-shadow .15s ease, opacity .2s ease, background .15s ease; }
.reviews__btn:hover { background: var(--yellow); transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.reviews__btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.reviews__btn:disabled { opacity: .35; cursor: default; transform: none; box-shadow: 3px 3px 0 var(--ink); background: var(--white); }
.reviews__btn .icon { width: 18px; height: 18px; }
.icon--flip { transform: scaleX(-1); }
.reviews__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * 24px) / 3); gap: 24px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  margin: 0 calc(-1 * var(--gutter)); padding: 6px var(--gutter) 22px; scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}
.reviews__track::-webkit-scrollbar { display: none; }
.reviews__track:focus-visible { outline: 3px solid var(--yellow); outline-offset: -3px; }
.review { display: flex; flex-direction: column; gap: 14px; padding: 26px 26px 22px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm); scroll-snap-align: start; transition: transform .25s ease, box-shadow .25s ease; }
.review:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.review__title { margin: 0; font-size: 1.15rem; line-height: 1.3; }
.review__text { margin: 0; color: var(--ink-soft); font-size: .97rem; line-height: 1.6; }
.review__text p { margin: 0; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6; line-clamp: 6; overflow: hidden; }
.review__more { display: inline-flex; align-items: center; gap: 6px; color: var(--red-strong); font-weight: 700; font-size: .9rem; text-decoration: none; }
.review__more .icon { width: .85em; height: .85em; transition: transform .18s ease; }
.review__more:hover .icon { transform: translateX(3px); }
.review__by { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 16px; border-top: 1px dashed var(--line); color: var(--muted); font-size: .85rem; line-height: 1.35; }
.review__by strong { display: block; color: var(--ink); font-size: .97rem; }
@media (max-width: 960px) { .reviews__track { grid-auto-columns: calc((100% - 24px) / 2); } }
@media (max-width: 640px) {
  .reviews__track { grid-auto-columns: 86%; gap: 14px; }
  .reviews__nav { display: none; }
  .review { padding: 22px 20px 18px; }
}
@media (prefers-reduced-motion: reduce) { .reviews__track { scroll-behavior: auto; } }
