/* Your Italian Teacher — public theme (generated, see site-css.ts) */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('/assets/fonts/manrope-var-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/plex-mono-400-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/plex-mono-600-latin.woff2') format('woff2');
}

:root {
  --paper: #f4f6f7;
  --card: #ffffff;
  --ink: #1c2a2e;
  --ink-soft: #54676d;
  --line: #dce4e6;
  --brand: #19b7cc;
  --accent: #109fb4;
  --accent-deep: #0c7e8f;
  --footer-ground: #152a30;
  --footer-ink: #c6d4d8;
  --ok: #2e7d4f;
  --warn: #c08a00;
  --danger: #d8452e;
  --sans: 'Manrope', system-ui, -apple-system, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  /* Footer sits flush at the bottom even on short pages. */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
::selection { background: var(--brand); color: #fff; }
a { color: var(--accent); }
a:hover { color: var(--accent-deep); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
img { max-width: 100%; height: auto; }

.wrap { max-width: 1060px; margin-inline: auto; padding-inline: 20px; }

/* ---------- header ---------- */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; padding-block: 14px;
}
.site-logo {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--ink);
}
.site-logo img { width: 44px; height: 44px; border-radius: 50%; display: block; }
.site-logo .wordmark { font-weight: 800; font-size: 1.05rem; letter-spacing: -0.01em; }
.site-nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.site-nav a {
  color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: 0.95rem;
}
/* The signature stroke: a teal marker line under the live item. */
.site-nav a:hover, .site-nav a.is-current {
  color: var(--ink);
  text-decoration: underline; text-decoration-color: var(--brand);
  text-decoration-thickness: 3px; text-underline-offset: 7px;
}
.site-nav a.nav-cta, a.header-cta {
  background: var(--accent); color: #fff; border-radius: 999px;
  padding: 9px 18px; text-decoration: none; font-weight: 600; font-size: 0.95rem;
}
.site-nav a.nav-cta:hover, a.header-cta:hover {
  background: var(--accent-deep); color: #fff; text-decoration: none;
}
.site-header-end { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
/* Account: an "Accedi" link until the script hydrates it into an avatar+menu. */
/* Language selector (lingue 2026-07-13): quiet pills next to the nav. */
.lang-switch { display: flex; align-items: center; gap: 2px; font: 600 11.5px 'IBM Plex Mono', monospace; letter-spacing: 0.4px; }
.lang-switch a, .lang-switch .on { padding: 4px 7px; border-radius: 7px; text-decoration: none; }
.lang-switch a { color: var(--ink-soft); }
.lang-switch a:hover { color: var(--ink); background: #e8eef0; }
.lang-switch .on { color: var(--ink); background: #e8eef0; }
.site-account { position: relative; }
.account-signin { color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.account-signin:hover { color: var(--ink); }
.account-avatar {
  width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--ink); color: #fff; font: inherit; font-weight: 700; font-size: 0.85rem;
  display: grid; place-items: center;
}
.account-avatar:hover { filter: brightness(1.25); }
.account-menu {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 50;
  display: none; min-width: 210px; padding: 6px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 12px 34px rgba(20, 30, 33, 0.14);
}
.site-account.open .account-menu { display: block; }
.account-menu-head { padding: 8px 12px 10px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.account-menu-head strong { display: block; font-size: 0.92rem; color: var(--ink); }
.account-menu-head span { display: block; font-size: 0.78rem; color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; }
.account-menu a, .account-menu button {
  display: block; width: 100%; text-align: left; box-sizing: border-box;
  padding: 9px 12px; border: 0; border-radius: 8px; background: none; cursor: pointer;
  font: inherit; font-size: 0.92rem; color: var(--ink); text-decoration: none;
}
.account-menu a:hover, .account-menu button:hover { background: var(--paper); }
.account-menu .signout { color: var(--accent-deep); }
/* Mobile header (M10b): below 760px the menu collapses behind the hamburger;
   the primary CTA stays in the bar. Both extras are display:none on desktop. */
.nav-toggle, .header-cta { display: none; }
.nav-toggle {
  border: 0; background: none; color: var(--ink); cursor: pointer;
  width: 44px; height: 44px; place-items: center; border-radius: 10px;
  margin-left: 4px; flex: none;
}
.nav-toggle:hover { background: #e8eef0; }
@media (max-width: 760px) {
  .site-header .wrap { row-gap: 0; }
  .site-logo { margin-right: auto; }
  .header-cta { display: inline-block; padding: 8px 14px; font-size: 0.9rem; }
  .nav-toggle { display: grid; }
  /* The panel: hidden until the hamburger opens it, then an in-flow column
     under the bar (the sticky header grows, content shifts down honestly). */
  .site-header-end {
    display: none; flex-basis: 100%; flex-direction: column; align-items: stretch;
    gap: 0; padding: 6px 0 12px;
  }
  .site-header.menu-open .site-header-end { display: flex; }
  .site-nav { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav a {
    padding: 13px 6px; border-top: 1px solid var(--line); font-size: 1rem;
  }
  .site-nav a:hover, .site-nav a.is-current { text-underline-offset: 5px; }
  /* the CTA already sits in the bar — not repeated inside the panel */
  .site-nav a.nav-cta { display: none; }
  .lang-switch { padding: 12px 6px 0; }
  .site-account { padding: 10px 6px 0; }
}
@media (max-width: 560px) {
  /* Brand rule: on mobile the badge stands alone, no wordmark. */
  .site-logo .wordmark { display: none; }
  /* The avatar sits at the left on mobile; open the menu rightward so it
     stays on screen instead of spilling off the left edge. */
  .account-menu { right: auto; left: 0; }
}

/* ---------- content column ---------- */
main { padding-block: 48px 72px; width: 100%; }
main > * { max-width: 720px; margin: 0 auto 40px; padding-inline: 20px; }
/* wide sections: grids and side-by-side layouts breathe beyond article width
   (regression 0f4b1ef: the step-block paste fused into this rule and turned
   features/testimonials into flex rows — keep this rule ON ITS OWN) */
main > .blk-features, main > .blk-testimonials, main > .blk-text-image {
  max-width: 1020px;
}
main > *:last-child { margin-bottom: 0; }

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; }
h1 { font-weight: 800; font-size: clamp(2rem, 4.5vw, 3rem); }
h2 { font-weight: 800; font-size: 1.5rem; margin: 1.6em 0 0.5em; }
h3 { font-weight: 700; font-size: 1.15rem; margin: 1.4em 0 0.4em; }

/* ---------- blog: post header, index cards, pagination ---------- */
.post-header { margin-bottom: 8px; }
.post-header h1 { margin: 6px 0 0; }
.post-cover { border-radius: 10px; margin-top: 20px; display: block; }
.post-meta {
  font-family: var(--mono); font-size: 0.78rem; color: var(--ink-soft); margin: 0;
  display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline;
}
.post-meta .tag { color: var(--accent-deep); text-decoration: none; }
.post-meta .tag::before { content: '#'; color: var(--brand); }
.post-meta .tag:hover { text-decoration: underline; text-underline-offset: 3px; }
.index-header h1 { margin-bottom: 4px; }
/* card grid faithful to the legacy Materials page: cover, date, title, excerpt */
.post-grid {
  max-width: 1020px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px;
}
.post-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.post-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand);
  box-shadow: 0 2px 4px rgba(21, 42, 48, 0.06), 0 14px 32px rgba(21, 42, 48, 0.12);
}
.post-card .cover { display: block; background: var(--accent-soft, #e3f5f8); overflow: hidden; }
.post-card .cover img, .post-card .cover .cover-fallback {
  display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  transition: transform 0.25s ease;
}
.post-card:hover .cover img { transform: scale(1.04); }
.post-card .cover .cover-fallback {
  background: linear-gradient(135deg, var(--brand), var(--accent-deep));
}
.post-card .body { padding: 16px 20px 18px; flex: 1; }
.post-card h2 { margin: 6px 0 8px; font-size: 1.15rem; }
.post-card h2 a { color: var(--ink); text-decoration: none; }
.post-card h2 a:hover {
  text-decoration: underline; text-decoration-color: var(--brand);
  text-decoration-thickness: 3px; text-underline-offset: 6px;
}
.post-card .body p:last-child { margin-bottom: 0; color: var(--ink-soft); font-size: 0.95rem; }
.post-empty { color: var(--ink-soft); }
.pagination { display: flex; justify-content: space-between; gap: 16px; }
.pagination a { font-weight: 600; text-decoration: none; }
.pagination a[rel='next'] { margin-left: auto; }
.pagination a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- blocks ---------- */
.blk-hero { max-width: none; padding-block: 72px; text-align: center; }
.blk-hero h1 { margin: 0 auto; max-width: 17em; letter-spacing: -0.03em; }
.blk-hero .subtitle {
  color: var(--ink-soft); font-size: 1.2rem; max-width: 34em; margin: 16px auto 0;
}
.blk-hero[style] {
  background-size: cover; background-position: center; position: relative; color: #fff;
}
.blk-hero[style]::before {
  content: ''; position: absolute; inset: 0; background: rgba(15, 34, 39, 0.55);
}
.blk-hero[style] > * { position: relative; }
.blk-hero[style] .subtitle { color: rgba(255, 255, 255, 0.88); }

/* hero with the portrait beside the copy (the live site's hero) */
.blk-hero.hero-aside {
  max-width: 1020px; margin-inline: auto; padding-block: 56px 40px;
  display: flex; align-items: center; gap: 48px; text-align: left;
}
.hero-aside .copy { flex: 1; min-width: min(100%, 340px); }
.hero-aside .copy h1 { margin: 0; max-width: none; }
.hero-aside .copy .subtitle { margin: 16px 0 0; }
.hero-aside .ctas { margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-aside .ctas .cta { margin: 0; }
.hero-aside .portrait { flex: none; position: relative; width: min(380px, 74vw); }
.hero-aside .portrait img { display: block; width: 100%; position: relative; }
/* soft brand decorations behind the cutout: blob + dot grid, CSS only */
.hero-aside .portrait::before {
  content: ''; position: absolute; inset: 12% -4% -2% -6%;
  background: radial-gradient(80% 78% at 52% 58%, var(--accent-soft, #e3f5f8) 0%, transparent 72%);
  border-radius: 46% 54% 52% 48% / 52% 46% 54% 48%;
}
.hero-aside .portrait::after {
  content: ''; position: absolute; width: 92px; height: 72px; left: -26px; bottom: 8%;
  background-image: radial-gradient(var(--brand) 1.6px, transparent 1.7px);
  background-size: 12px 12px; opacity: 0.55;
}
@media (max-width: 760px) {
  .blk-hero.hero-aside { flex-direction: column-reverse; text-align: center; }
  .hero-aside .ctas { justify-content: center; }
}

.cta {
  display: inline-block; background: var(--accent); color: #fff;
  border-radius: 999px; padding: 13px 28px; margin-top: 28px;
  font-weight: 700; text-decoration: none;
}
.cta:hover { background: var(--accent-deep); color: #fff; }
.cta.cta-secondary {
  background: transparent; color: var(--accent-deep);
  box-shadow: inset 0 0 0 2px var(--accent); margin-left: 12px;
}
.cta.cta-secondary:hover { background: var(--accent); color: #fff; }
.blk-cta { text-align: center; }
.blk-cta .cta { margin-top: 0; }

.blk-rich-text a { text-underline-offset: 3px; }
.blk-rich-text blockquote {
  margin: 1.4em 0; padding: 2px 0 2px 18px;
  border-left: 3px solid var(--brand); color: var(--ink-soft);
}

figure.blk-image, figure.blk-video { margin-inline: auto; }
.blk-image img { border-radius: 10px; display: block; }
figcaption {
  font-family: var(--mono); font-size: 0.78rem; color: var(--ink-soft); margin-top: 10px;
}
.blk-video iframe {
  width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 10px; display: block;
}
.blk-pdf {
  /* margin-inline auto: this class outweighs the main>* centering — without
     it the card hugs the left while every other block sits centered
     (found by Marco in alpha, 2026-07-18) */
  margin: 16px auto; border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  background: var(--card); box-shadow: 0 1px 2px rgba(28, 42, 46, 0.05), 0 8px 24px rgba(28, 42, 46, 0.06);
}
.blk-pdf .pdf-bar {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}
.blk-pdf .pdf-name {
  font-family: var(--mono); font-size: 0.75rem; color: var(--ink-soft);
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-right: auto;
}
.blk-pdf .pdf-mini {
  display: inline-flex; align-items: center; gap: 5px; font-size: 0.8rem; font-weight: 600;
  padding: 7px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--card);
  color: inherit; text-decoration: none; white-space: nowrap;
}
.blk-pdf .pdf-mini:hover { border-color: var(--accent); }
.blk-pdf .pdf-view { width: 100%; height: 70vh; min-height: 420px; border: 0; display: block; background: #55606b; }

/* the product card: resolved against the REAL course/book at render time */
.blk-product {
  display: flex; gap: 24px; align-items: center;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 22px 26px;
  max-width: 640px; margin-inline: auto;
}
.blk-product .cover { flex: none; display: block; }
.blk-product .cover img {
  display: block; width: 150px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px;
}
.blk-product.is-book .cover img { width: 110px; aspect-ratio: 3 / 4; }
.blk-product .body { min-width: 0; flex: 1; }
.blk-product h3 { margin: 0 0 4px; font-size: 1.2rem; }
.blk-product .note { color: var(--ink-soft); margin: 0; font-size: 0.92rem; }
.blk-product .price {
  font-size: 1.5rem; font-weight: 800; color: var(--accent-deep);
  letter-spacing: -0.02em; margin: 10px 0 0;
}
.blk-product .price .was { color: var(--ink-soft); font-weight: 400; font-size: 1rem; margin-right: 6px; }
.blk-product .cta {
  display: inline-block; margin-top: 12px; background: var(--accent); color: #fff;
  font-weight: 700; text-decoration: none; border-radius: 999px; padding: 10px 22px;
}
.blk-product .cta:hover { background: var(--accent-deep); }
.blk-product .cta-closed {
  display: inline-block; margin: 12px 0 0; color: var(--ink-soft); font-weight: 700;
  border: 1px solid var(--line); border-radius: 999px; padding: 10px 22px;
}
.blk-product.is-placeholder {
  border-style: dashed; color: var(--ink-soft); text-align: center; display: block;
}
.blk-product.is-placeholder p { margin: 0; }
@media (max-width: 600px) {
  .blk-product { flex-direction: column; text-align: center; }
}

.blk-newsletter { padding: 24px; text-align: center; }
.blk-newsletter .badge {
  display: inline-grid; place-items: center; width: 56px; height: 56px;
  border-radius: 18px; background: var(--accent); margin-bottom: 16px;
}
.blk-newsletter .badge svg {
  width: 26px; height: 26px; stroke: #fff; stroke-width: 1.8; fill: none;
  stroke-linecap: round; stroke-linejoin: round;
}
.blk-newsletter h3 {
  margin: 0 auto; font-size: clamp(1.5rem, 3.4vw, 2rem); max-width: 18em; line-height: 1.15;
}
.blk-newsletter p { color: var(--ink-soft); margin: 12px 0 0; }
.blk-newsletter .row { margin-top: 22px; }
.blk-newsletter .privacy {
  font-size: 0.78rem; font-family: var(--mono); color: var(--ink-soft); margin-top: 14px;
}
.blk-newsletter input[type='email'] {
  font: inherit; padding: 11px 14px; border: 1px solid var(--line); border-radius: 8px;
  width: min(320px, 100%); margin-right: 8px; background: var(--paper);
}
.blk-newsletter button {
  font: inherit; font-weight: 700; color: #fff; background: var(--accent);
  border: 0; border-radius: 999px; padding: 11px 22px; cursor: pointer; margin-top: 8px;
}
.blk-newsletter button:hover { background: var(--accent-deep); }

.blk-countdown {
  font-family: var(--mono); font-weight: 600; text-align: center;
  color: var(--accent-deep);
}

.blk-testimonials > h2 { text-align: center; }
.blk-testimonials > .subtitle { text-align: center; color: var(--ink-soft); margin-top: 4px; }
/* horizontal carousel, CSS-only: swipe/scroll, snap per card */
.blk-testimonials .quotes {
  display: flex; gap: 20px; margin-top: 26px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 14px; scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.blk-testimonials blockquote {
  flex: 0 0 min(320px, 82vw); scroll-snap-align: start;
  display: flex; flex-direction: column;
  margin: 0; padding: 20px 20px 18px; background: var(--card);
  border: 1px solid var(--line); border-radius: 10px;
}
.blk-testimonials blockquote p { margin-top: 0; font-style: italic; flex: 1; }
.blk-testimonials .stars { display: flex; gap: 2px; margin-bottom: 12px; }
.blk-testimonials .stars svg { width: 15px; height: 15px; fill: #f5a623; stroke: none; }
.blk-testimonials footer { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.blk-testimonials .avatar {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 0.9rem;
}
.blk-testimonials cite { font-style: normal; font-weight: 700; font-size: 0.9rem; }

.blk-features > h2 { text-align: center; }
.blk-features .intro {
  text-align: center; color: var(--ink-soft); max-width: 44em; margin: 8px auto 0;
}
.blk-features .features {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px; margin-top: 30px;
}
.blk-features .feature {
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: 28px 22px 24px; text-align: center;
}
.blk-features .feature .icon {
  display: inline-grid; place-items: center; width: 54px; height: 54px;
  border-radius: 16px; background: var(--accent-soft, #e3f5f8); margin-bottom: 14px;
}
.blk-features .feature .icon svg {
  width: 26px; height: 26px; stroke: var(--accent-deep); stroke-width: 1.8;
  fill: none; stroke-linecap: round; stroke-linejoin: round;
}
.blk-features .feature h3 { margin: 0; }
.blk-features .feature p { color: var(--ink-soft); }
.blk-features .feature a { font-weight: 700; text-decoration: none; }
.blk-features .feature a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* numbered step: teal circle + heading, content indented under it */
.blk-step { display: flex; gap: 20px; align-items: flex-start; }
.blk-step .num {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; margin-top: 2px;
  background: var(--accent); color: #fff; font-weight: 800; font-size: 1.15rem;
}
.blk-step .body { flex: 1; min-width: 0; }
.blk-step .body h2 { margin: 4px 0 12px; }
.blk-step .cta { margin-top: 8px; }

/* pricing cards */
.blk-pricing {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px; align-items: stretch;
}
.blk-pricing .plan {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; padding: 26px 24px;
}
.blk-pricing .plan.highlighted { border: 2px solid var(--accent); }
.blk-pricing .badge {
  position: absolute; top: -12px; right: 18px;
  background: var(--accent); color: #fff; font-size: 0.72rem; font-weight: 700;
  padding: 4px 12px; border-radius: 999px; letter-spacing: 0.04em;
}
.blk-pricing h3 { margin: 0; }
.blk-pricing .price {
  font-size: 2.4rem; font-weight: 800; color: var(--accent-deep); margin: 10px 0 6px;
  letter-spacing: -0.02em;
}
.blk-pricing .price .period { font-size: 0.9rem; font-weight: 500; color: var(--ink-soft); letter-spacing: 0; }
.blk-pricing ul { list-style: none; margin: 14px 0 0; padding: 0; }
.blk-pricing li {
  padding: 7px 0 7px 26px; position: relative; color: var(--ink-soft);
  border-top: 1px solid var(--line-soft, #eef1f2);
}
.blk-pricing li::before {
  content: '✓'; position: absolute; left: 2px; color: var(--accent); font-weight: 800;
}

.blk-text-image {
  display: flex; gap: 40px; align-items: center; flex-wrap: wrap;
}
.blk-text-image.banded {
  background: var(--wash, #eef1f2); border-radius: 16px;
  padding: 40px clamp(20px, 4vw, 48px);
}
.blk-text-image img {
  width: min(380px, 100%); border-radius: 12px; flex: none; align-self: flex-start;
}
.blk-text-image.image-left { flex-direction: row; }
.blk-text-image.image-right { flex-direction: row-reverse; }
.blk-text-image .body { flex: 1; min-width: min(60%, 320px); }
.blk-text-image .body h2 { margin-top: 0; }
.blk-text-image .cta { margin-top: 10px; }

.blk-faq > h2 { text-align: center; }
.blk-faq > .subtitle { text-align: center; color: var(--ink-soft); margin: 4px 0 18px; }
.blk-faq details { border-bottom: 1px solid var(--line); padding-block: 12px; }
.blk-faq summary { font-weight: 700; cursor: pointer; }
.blk-faq p { color: var(--ink-soft); }

.blk-quiz { min-height: 1px; }
/* Editor preview: honest quiz summary (the interactive quiz lives in the
   student player only). */
.blk-quiz.preview {
  border: 1px dashed var(--line); border-radius: 10px; padding: 16px 18px;
  display: flex; flex-direction: column; gap: 4px; background: var(--card);
}
.blk-quiz.preview .quiz-tag {
  font-family: var(--mono); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent-deep);
}
.blk-quiz.preview .quiz-meta { font-size: 0.85rem; color: var(--ink-soft); }
.blk-quiz.preview.missing .quiz-tag, .blk-quiz.preview.missing strong { color: #d8452e; }
.blk-quiz.preview .q-desc { color: var(--ink-soft); margin: 2px 0 0; }
.blk-quiz.preview .q-list { margin: 10px 0 6px; padding-left: 22px; display: flex; flex-direction: column; gap: 14px; }
.blk-quiz.preview .q-prompt { font-weight: 600; margin: 0 0 6px; }
.blk-quiz.preview .q-hint {
  font-size: 0.82rem; color: #3f5560; background: #eef6f7; border: 1px solid #d6e7ea;
  border-radius: 9px; padding: 7px 10px; margin: 0 0 8px;
}
.blk-quiz.preview .q-image { max-width: 220px; border-radius: 8px; display: block; margin: 6px 0; }
.blk-quiz.preview .q-options { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.blk-quiz.preview .q-options li {
  border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; font-size: 0.92rem;
  display: flex; align-items: center; gap: 8px;
}
.blk-quiz.preview .q-options li img { max-width: 90px; border-radius: 6px; }
.blk-quiz.preview .q-options li.correct { border-color: #427a54; background: #e9f2ec; }
.blk-quiz.preview .q-options .ok { margin-left: auto; color: #427a54; font-weight: 700; }
.blk-quiz.preview .q-sequence { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.blk-quiz.preview .q-sequence .chip {
  border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; font-size: 0.88rem;
  background: #fff;
}
.blk-quiz.preview .q-sentence { margin: 0 0 4px; font-size: 0.95rem; }
.blk-quiz.preview .q-sentence mark { background: #e9f2ec; color: #2c5a3c; border-radius: 4px; padding: 1px 5px; font-weight: 600; }
.blk-quiz.preview .q-answers, .blk-quiz.preview .q-distractors {
  margin: 4px 0 0; font-size: 0.85rem; color: var(--ink-soft);
}

/* ---------- courses: /courses/ index and /courses/<slug> detail ---------- */
.index-header .eyebrow {
  font-family: var(--mono); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent-deep);
  margin: 0 0 6px;
}
.index-header .sub { color: var(--ink-soft); margin: 8px 0 0; max-width: 40em; }
.course-grid {
  max-width: 1020px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px;
}
.course-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.course-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand);
  box-shadow: 0 2px 4px rgba(21, 42, 48, 0.06), 0 14px 32px rgba(21, 42, 48, 0.12);
}
.course-card .cover { display: block; background: var(--accent-soft, #e3f5f8); overflow: hidden; }
.course-card .cover img, .course-card .cover .cover-fallback {
  display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  transition: transform 0.25s ease;
}
.course-card:hover .cover img { transform: scale(1.04); }
.course-card .cover .cover-fallback {
  background: linear-gradient(135deg, var(--brand), var(--accent-deep));
}
.course-card .body { padding: 18px 22px 6px; flex: 1; }
.course-card h2 { margin: 0 0 6px; font-size: 1.25rem; }
.course-card h2 a { color: var(--ink); text-decoration: none; }
.course-card h2 a:hover {
  text-decoration: underline; text-decoration-color: var(--brand);
  text-decoration-thickness: 3px; text-underline-offset: 6px;
}
.course-card .tagline { color: var(--ink-soft); margin: 0; font-size: 0.95rem; }
.course-meta {
  display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: baseline;
  border-top: 1px solid var(--line); margin: 16px 0 0; padding: 12px 22px 14px;
  font-family: var(--mono); font-size: 0.76rem; color: var(--ink-soft);
}
.course-meta .price { margin-left: auto; font-weight: 600; color: var(--accent-deep); }
/* on sale: the list price stays visible, struck out and quiet */
.price .was { color: var(--ink-soft); font-weight: 400; margin-right: 6px; }
.course-empty { color: var(--ink-soft); }
.badge-preview {
  background: #e5f3ea; color: var(--ok); border-radius: 999px;
  font-family: var(--mono); font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 10px; white-space: nowrap;
}

.course-hero {
  max-width: none; background: var(--footer-ground); color: #fff;
  padding-block: 48px; margin-top: -48px; /* flush under the header */
}
.course-hero .hero-grid {
  max-width: 1020px; margin-inline: auto; padding-inline: 20px;
  display: flex; gap: 48px; align-items: center;
}
/* the homepage's brand decoration, on the course cover: teal blob + dot grid */
.course-hero .hero-art { position: relative; flex: none; }
.course-hero .hero-art::before {
  content: ''; position: absolute; inset: -14% -10% -18% -14%;
  background: radial-gradient(75% 75% at 50% 55%, rgba(25, 183, 204, 0.28) 0%, transparent 72%);
  border-radius: 46% 54% 52% 48% / 52% 46% 54% 48%;
}
.course-hero .hero-art::after {
  content: ''; position: absolute; right: -22px; bottom: -18px; width: 84px; height: 60px;
  background-image: radial-gradient(rgba(25, 183, 204, 0.55) 1.6px, transparent 1.6px);
  background-size: 12px 12px;
}
.course-hero img, .course-hero .cover-fallback {
  position: relative; z-index: 1;
  width: min(300px, 60vw); aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: 12px; display: block;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.35);
}
.course-hero .cover-fallback { background: linear-gradient(135deg, var(--brand), var(--accent-deep)); }
.course-hero h1 { margin: 0; }
.course-hero .tagline { color: var(--brand); font-weight: 600; margin: 10px 0 0; }
.course-hero .desc { color: rgba(255, 255, 255, 0.85); margin: 12px 0 0; max-width: 46em; }

.course-layout {
  max-width: 1020px;
  display: flex; gap: 40px; align-items: flex-start;
}
.course-buy {
  flex: none; width: 264px; position: sticky; top: 20px;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 24px;
}
.course-buy .price {
  font-size: 2.2rem; font-weight: 800; color: var(--accent-deep);
  letter-spacing: -0.02em; margin: 0 0 14px; white-space: nowrap;
}
/* the struck list price sits small on its own line above the real price */
.course-buy .price .was {
  display: block; font-size: 1rem; letter-spacing: 0; margin: 0 0 2px;
}
.btn-buy {
  display: block; text-align: center; background: var(--accent); color: #fff;
  font-weight: 700; text-decoration: none; border-radius: 999px; padding: 12px 20px;
}
.btn-buy:hover { background: var(--accent-deep); color: #fff; }
.course-buy .counts {
  font-family: var(--mono); font-size: 0.76rem; color: var(--ink-soft);
  border-top: 1px solid var(--line); margin: 18px 0 0; padding-top: 14px;
}
.course-buy .preview-note, .course-buy .invite-note {
  color: var(--ink-soft); font-size: 0.88rem; margin: 10px 0 0;
}
.course-chapters { flex: 1; min-width: 0; }
.chapter { margin-bottom: 28px; }
.chapter h2 {
  margin: 0 0 10px; font-size: 1.1rem;
  display: flex; align-items: center; gap: 12px;
}
.chapter .chnum {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent); color: #fff; font-size: 0.85rem; font-weight: 800;
}
.chapter .chapter-count {
  font-family: var(--mono); font-size: 0.72rem; font-weight: 400; color: var(--ink-soft);
}
.chapter ul { list-style: none; margin: 0; padding: 0; }
.lesson-row {
  display: flex; align-items: center; gap: 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 16px; margin-bottom: 8px;
}
.lesson-row .ltype {
  flex: none; min-width: 3.4rem; font-family: var(--mono); font-size: 0.68rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-deep);
}
.lesson-row .ltitle { min-width: 0; flex: 1; font-size: 0.95rem; }
@media (max-width: 760px) {
  .course-hero .hero-grid { flex-direction: column; align-items: flex-start; gap: 24px; }
  .course-layout { flex-direction: column; }
  .course-buy { position: static; width: 100%; }
}

/* ---------- books: /books/ shop and /books/<slug> detail ---------- */
/* same card language as courses, but covers are portrait (real books) */
.book-grid {
  max-width: 1020px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px;
}
.book-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.book-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand);
  box-shadow: 0 2px 4px rgba(21, 42, 48, 0.06), 0 14px 32px rgba(21, 42, 48, 0.12);
}
.book-card .cover { display: block; background: var(--accent-soft, #e3f5f8); overflow: hidden; }
.book-card .cover img, .book-card .cover .cover-fallback {
  display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover;
  transition: transform 0.25s ease;
}
.book-card:hover .cover img { transform: scale(1.03); }
.book-card .cover .cover-fallback {
  background: linear-gradient(135deg, var(--brand), var(--accent-deep));
}
.book-card .body { padding: 18px 22px 6px; flex: 1; }
.book-card h2 { margin: 0 0 6px; font-size: 1.15rem; }
.book-card h2 a { color: var(--ink); text-decoration: none; }
.book-card h2 a:hover {
  text-decoration: underline; text-decoration-color: var(--brand);
  text-decoration-thickness: 3px; text-underline-offset: 6px;
}
.book-card .desc { color: var(--ink-soft); margin: 0; font-size: 0.9rem; }
.book-meta {
  display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: baseline;
  border-top: 1px solid var(--line); margin: 16px 0 0; padding: 12px 22px 14px;
  font-family: var(--mono); font-size: 0.76rem; color: var(--ink-soft);
}
.book-meta .price { margin-left: auto; font-weight: 600; color: var(--accent-deep); }
.book-empty { color: var(--ink-soft); }

.program-grid {
  max-width: 1020px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px;
}
.program-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  display: flex; flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.program-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand);
  box-shadow: 0 2px 4px rgba(21, 42, 48, 0.06), 0 14px 32px rgba(21, 42, 48, 0.12);
}
.program-card .body { padding: 20px 22px 22px; flex: 1; }
.program-card .edition {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent-deep); margin: 0 0 6px;
}
.program-card h2 { margin: 0 0 6px; font-size: 1.2rem; }
.program-card .desc { color: var(--ink-soft); margin: 0; font-size: 0.9rem; }
.program-card .final { color: var(--ink-soft); margin: 10px 0 0; font-size: 0.85rem; }
.program-card .price {
  font-size: 1.4rem; font-weight: 800; color: var(--accent-deep);
  letter-spacing: -0.02em; margin: 14px 0 0;
}
.program-card .btn-buy { margin-top: 14px; }
.program-card.is-closed .closed-note {
  display: inline-block; margin: 14px 0 0; color: var(--ink-soft); font-weight: 700;
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 18px; font-size: 0.9rem;
}
.program-waitlist { margin-top: 14px; }
.program-waitlist p { color: var(--ink-soft); margin: 0; font-size: 0.88rem; }
.program-waitlist .row { display: flex; gap: 8px; margin-top: 10px; }
.program-waitlist input[type='email'] {
  flex: 1; min-width: 0; font: inherit; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 8px; background: #fff;
}
.program-waitlist button {
  font: inherit; font-weight: 700; color: #fff; background: var(--accent);
  border: none; border-radius: 8px; padding: 10px 16px; cursor: pointer;
}
.program-waitlist button:hover { background: var(--accent-deep); }
.program-empty { color: var(--ink-soft); }

.book-hero {
  max-width: none; background: var(--footer-ground); color: #fff;
  padding-block: 48px; margin-top: -48px;
}
.book-hero .hero-grid {
  max-width: 1020px; margin-inline: auto; padding-inline: 20px;
  display: flex; gap: 48px; align-items: center;
}
.book-hero .hero-art { position: relative; flex: none; }
.book-hero .hero-art::before {
  content: ''; position: absolute; inset: -14% -10% -18% -14%;
  background: radial-gradient(75% 75% at 50% 55%, rgba(25, 183, 204, 0.28) 0%, transparent 72%);
  border-radius: 46% 54% 52% 48% / 52% 46% 54% 48%;
}
.book-hero .hero-art::after {
  content: ''; position: absolute; right: -22px; bottom: -18px; width: 84px; height: 60px;
  background-image: radial-gradient(rgba(25, 183, 204, 0.55) 1.6px, transparent 1.6px);
  background-size: 12px 12px;
}
.book-hero img, .book-hero .cover-fallback {
  position: relative; z-index: 1;
  width: min(220px, 55vw); aspect-ratio: 3 / 4; object-fit: cover;
  border-radius: 10px; display: block;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.35);
}
.book-hero .cover-fallback { background: linear-gradient(135deg, var(--brand), var(--accent-deep)); }
.book-hero h1 { margin: 0; }
.book-hero .tagline { color: var(--brand); font-weight: 600; margin: 10px 0 0; }
.book-hero .desc { color: rgba(255, 255, 255, 0.85); margin: 12px 0 0; max-width: 46em; }

.book-layout { max-width: 1020px; display: flex; gap: 40px; align-items: flex-start; }
.book-buy {
  flex: none; width: 264px;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 24px;
}
.book-buy .price {
  font-size: 2.2rem; font-weight: 800; color: var(--accent-deep);
  letter-spacing: -0.02em; margin: 0 0 14px; white-space: nowrap;
}
.book-buy .counts {
  font-family: var(--mono); font-size: 0.76rem; color: var(--ink-soft);
  border-top: 1px solid var(--line); margin: 18px 0 0; padding-top: 14px;
}
@media (max-width: 760px) {
  .book-hero .hero-grid { flex-direction: column; align-items: flex-start; gap: 24px; }
  .book-layout { flex-direction: column; }
  .book-buy { width: 100%; }
}

/* ---------- message pages (subscribe/unsubscribe form landings) ---------- */
.message-card {
  max-width: 520px; margin: 8vh auto 0; text-align: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 40px 32px;
}
.message-card h1 { margin: 0 0 10px; font-size: 1.7rem; }
.message-card p { color: var(--ink-soft); margin: 0 0 6px; }
.message-card .cta {
  display: inline-block; margin-top: 16px; background: var(--accent); color: #fff;
  font-weight: 700; text-decoration: none; border-radius: 999px; padding: 10px 22px;
}
.message-card .cta:hover { background: var(--accent-deep); }

/* ---------- footer ---------- */
.site-footer {
  background: var(--footer-ground); color: var(--footer-ink);
  font-size: 0.92rem;
}
.site-footer .wrap { padding-block: 48px 32px; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 40px 64px; }
.footer-brand { display: flex; align-items: center; gap: 12px; color: #fff; font-weight: 800; }
.footer-brand img { width: 40px; height: 40px; border-radius: 50%; }
.footer-col h2 {
  font-family: var(--mono); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand);
  margin: 0 0 12px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 8px; }
.site-footer a { color: var(--footer-ink); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--brand); text-underline-offset: 4px; }
.footer-meta {
  border-top: 1px solid rgba(255, 255, 255, 0.12); margin-top: 40px; padding-top: 20px;
  display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: baseline; justify-content: space-between;
}
.footer-social { list-style: none; display: flex; gap: 18px; margin: 0; padding: 0; }
.footer-legal { font-family: var(--mono); font-size: 0.74rem; color: rgba(198, 212, 216, 0.7); margin: 0; }

@media (prefers-reduced-motion: no-preference) {
  .site-nav a, .cta, .blk-newsletter button { transition: color 0.15s, background-color 0.15s; }
}
@media (prefers-reduced-motion: reduce) {
  .course-card, .course-card .cover img { transition: none; }
  .course-card:hover { transform: none; }
  .course-card:hover .cover img { transform: none; }
}

/* Sticky top: promo strip + header pin together on scroll. */
.site-top { position: sticky; top: 0; z-index: 50; }
.site-top .site-header { background: rgba(244,246,247,.92); backdrop-filter: saturate(1.4) blur(8px); }

/* Promo strip. Colours come from --promo-bg / --promo-fg (set per banner by
   the client); the default is the teal band with white text. The whole bar is
   the link; the countdown is gg:hh:mm:ss tiles derived from the text colour. */
.promo-banner {
  display: flex; align-items: center;
  background: var(--promo-bg, linear-gradient(100deg, var(--accent-deep), var(--accent) 72%, var(--brand)));
  color: var(--promo-fg, #fff);
  border-bottom: 1px solid rgba(255,255,255,.14);
}
.promo-banner__link {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 16px; justify-content: center;
  color: inherit; text-decoration: none; padding: 9px 16px; font-weight: 600; font-size: 14.5px;
}
.promo-banner__link:hover { color: inherit; background: rgba(0,0,0,.08); }
.promo-banner__text { letter-spacing: -.01em; }
.promo-banner__cd { display: inline-flex; align-items: center; gap: 5px; }
.promo-banner__cd[hidden] { display: none; }
.promo-banner .pu {
  display: inline-flex; flex-direction: column; align-items: center;
  background: color-mix(in srgb, currentColor 15%, transparent);
  border: 1px solid color-mix(in srgb, currentColor 22%, transparent);
  border-radius: 7px; padding: 2px 7px 3px; min-width: 32px;
}
.promo-banner .pu b { font-family: var(--mono); font-weight: 600; font-size: 14px; font-variant-numeric: tabular-nums; line-height: 1.1; }
.promo-banner .pu i { font-style: normal; font-size: 8.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: .72; }
.promo-banner .ps { font-family: var(--mono); opacity: .45; }
.promo-banner__x { flex: none; border: 0; background: none; color: inherit; opacity: .7; font-size: 20px; line-height: 1; cursor: pointer; padding: 6px 14px; }
.promo-banner__x:hover { opacity: 1; }
