:root {
  --blue: #017CF3;
  --blue-action: #0070E8;
  --blue-light: #35A2FC;
  --navy: #031C4C;
  --drip: #4AB7E1;
  --sky: #E3F6FE;
  --sky-deep: #C9EEFB;
  --lemon: #FFD93B;
  --text: #1B2A4A;
  --radius: 24px;
  --yt: #FF0000;
  --ig: #E1306C;
  --fb: #1877F2;
  --strip: 34px;
  --stack-overhang: 112px; /* 76px of panel offsets + 34px strip + slack */
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", "Noto Sans HK", system-ui, sans-serif;
  color: var(--text);
  background: #FFFFFF;
  line-height: 1.6;
  overflow-x: hidden;
  overflow-x: clip; /* decorative strip overhang must not create sideways scroll */
}

h1, h2 {
  font-family: "Poppins", "Noto Sans HK", system-ui, sans-serif;
  color: var(--navy);
  line-height: 1.2;
}

h1 { font-size: clamp(2rem, 5.5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); margin-bottom: 0.6em; }

img { max-width: 100%; height: auto; }

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.65rem 1rem;
  border-radius: 8px;
  background: var(--navy);
  color: #FFFFFF;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip-link:focus-visible { transform: translateY(0); }

a:any-link:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid #FFFFFF;
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--navy);
}

@media (forced-colors: active) {
  a:any-link:focus-visible, button:focus-visible, input:focus-visible {
    outline: 3px solid Highlight;
    box-shadow: none;
  }
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(0.9rem, 3vw, 2rem);
  padding: 0.6rem clamp(1rem, 4vw, 3rem);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(3, 28, 76, 0.08);
}

.brand img { height: 46px; width: auto; }

.site-header nav { display: flex; align-items: center; gap: clamp(0.65rem, 1.8vw, 1.55rem); margin-left: auto; }

.header-tools { display: flex; align-items: center; gap: clamp(0.7rem, 2vw, 1.5rem); }

.site-header nav a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  font-weight: 500;
  font-size: 0.94rem;
  white-space: nowrap;
  color: var(--navy);
  text-decoration: none;
}

.site-header nav a:hover { color: var(--blue-action); }
.site-header nav a[aria-current="page"] { color: var(--blue-action); font-weight: 700; }

/* Language toggle (中/EN pill, lives in the header tools) */

.lang-toggle {
  display: inline-flex;
  border: 1.5px solid var(--navy);
  border-radius: 999px;
  overflow: hidden;
}

.lang-toggle button {
  min-width: 32px;
  min-height: 28px;
  border: 0;
  background: transparent;
  color: var(--navy);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.82rem;
  line-height: 1.4;
  padding: 0.15rem 0.55rem;
  cursor: pointer;
}

.lang-toggle button[aria-pressed="true"] { background: var(--navy); color: #fff; }

/* Social badges in header (IG / YouTube subscribe / FB follow) */

.social-badges { display: inline-flex; align-items: center; gap: 0.4rem; }

.social-badge {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.social-badge svg { width: 15px; height: 15px; }

.badge-ig { background: linear-gradient(45deg, #FEDA75, #FA7E1E, #E1306C, #962FBF); }
.badge-yt { background: var(--yt); }
.badge-fb { background: var(--fb); }

.social-badge:hover { transform: translateY(-2px); box-shadow: 0 6px 12px rgba(3, 28, 76, 0.25); }

section { scroll-margin-top: 84px; }

/* Hero */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1rem, 5vw, 4rem);
  background: linear-gradient(180deg, var(--sky) 0%, #F4FBFF 100%);
}

.hero-text .sub {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  margin: 1rem 0 1.6rem;
  max-width: 34ch;
}

.hero-visual { position: relative; }

.drip-hero-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  isolation: isolate;
  pointer-events: none;
  z-index: 15;
}

#drip-stage-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.drip-hero-stage[data-drip-active="false"] #drip-stage-canvas {
  visibility: hidden;
}

.drip-html-fallback {
  display: none;
}

.drip-hero-stage[data-drip-plate="clean"] .drip-html-fallback {
  position: absolute;
  left: 50%;
  bottom: 20px;
  display: block;
  width: auto;
  height: min(260px, calc(100% - 48px));
  max-width: none;
  transform: translateX(-50%);
  z-index: 0;
}

.drip-hero-stage[data-drip-plate="clean"][data-drip-active="true"] .drip-html-fallback {
  visibility: hidden;
}

.drip-hit-target {
  position: absolute;
  left: 0;
  top: 0;
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  pointer-events: none;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  cursor: grab;
  z-index: 2;
}

.drip-hero-stage[data-drip-active="true"] .drip-hit-target[data-hit-available="true"] {
  display: block;
  pointer-events: auto;
}

.drip-hit-target[data-dragging="true"] {
  cursor: grabbing;
}

.visually-hidden {
  position: absolute !important;
  clip-path: inset(50%) !important;
  overflow: hidden !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  white-space: nowrap !important;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.hero-offers {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1rem;
}

.hero-offer { flex: 0 0 auto; }
.hero-upcoming-offer { margin-left: 1.25rem; }

.hero-preview-grade-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.38rem;
  width: 274px;
  margin: 0.45rem auto 0;
}

.hero-upcoming-pane[hidden] {
  display: none;
}

.hero-upcoming-stack {
  position: relative;
  width: 274px;
  height: 190px;
  margin-top: 0.35rem;
}

.hero-upcoming-poster {
  position: absolute;
  display: block;
  width: 118px;
  height: auto;
  padding: 0;
  background: #FFFFFF;
  border: 3px solid #FFFFFF;
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(3, 28, 76, 0.24);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.hero-upcoming-poster img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 5px;
}

.hero-upcoming-poster .freebie-zoom {
  right: -6px;
  bottom: -6px;
  width: 22px;
  height: 22px;
  z-index: 4;
}

.poster-one { left: 0; top: 12px; z-index: 1; transform: rotate(-7deg); }
.poster-two { left: 78px; top: 0; z-index: 2; }
.poster-three { left: 156px; top: 12px; z-index: 3; transform: rotate(7deg); }

.poster-one:hover,
.poster-one:focus-visible {
  z-index: 5;
  transform: translateY(-6px) rotate(-5deg) scale(1.03);
  box-shadow: 0 12px 24px rgba(3, 28, 76, 0.32);
}

.poster-two:hover,
.poster-two:focus-visible {
  z-index: 5;
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 12px 24px rgba(3, 28, 76, 0.32);
}

.poster-three:hover,
.poster-three:focus-visible {
  z-index: 5;
  transform: translateY(-6px) rotate(5deg) scale(1.03);
  box-shadow: 0 12px 24px rgba(3, 28, 76, 0.32);
}

.hero-upcoming-previews {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.34rem;
  max-width: 310px;
  margin: 0.45rem auto 0;
}

.hero-preview-grade {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.72rem;
  border: 1.5px solid rgba(3, 28, 76, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--navy);
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(3, 28, 76, 0.08);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.hero-preview-grade[aria-selected="true"] {
  border-color: #FFFFFF;
  background: var(--lemon);
  color: var(--navy);
  box-shadow: 0 3px 8px rgba(3, 28, 76, 0.18);
}

.hero-preview-grade:hover:not([aria-selected="true"]),
.hero-preview-grade:focus-visible:not([aria-selected="true"]) {
  background: #FFFFFF;
  border-color: var(--navy);
  transform: translateY(-1px);
}

.hero-preview-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.26rem;
  padding: 0.3rem 0.6rem;
  border: 1.5px solid rgba(3, 28, 76, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--navy);
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(3, 28, 76, 0.08);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.hero-preview-pill svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  color: var(--blue);
  transition: color 0.15s ease;
}

.hero-preview-pill:hover,
.hero-preview-pill:focus-visible {
  background: var(--navy);
  border-color: var(--navy);
  color: #FFFFFF;
  transform: translateY(-1px);
}

.hero-preview-pill:hover svg,
.hero-preview-pill:focus-visible svg {
  color: var(--lemon);
}

.hero-upcoming-summary {
  max-width: 274px;
  margin: 0.4rem auto 0;
  color: var(--navy);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
}

@media (max-width: 760px) {
  .hero-offers { justify-content: center; }
  .hero-upcoming-offer { margin-left: 0; }
  .hero-preview-grade-row { width: 240px; margin-top: 0.4rem; }
  .hero-upcoming-stack { width: 240px; height: 170px; margin-top: 0.3rem; margin-left: auto; margin-right: auto; }
  .hero-upcoming-poster { width: 104px; }
  .poster-two { left: 68px; }
  .poster-three { left: 136px; }
  .hero-upcoming-previews { max-width: 256px; gap: 0.3rem; }
  .hero-preview-pill { padding: 0.28rem 0.52rem; font-size: 0.73rem; }
  .hero-upcoming-summary { max-width: 240px; font-size: 0.75rem; }
}

/* Hero freebie: the merged 7-page booklet as a neat uniform page pile (4px
   page-edge steps; same visual language as the channel tab stack), sitting
   under the hero CTA button. Clicking it opens the preview lightbox directly. */

.hero-freebies {
  display: flex;
  align-items: flex-end;
  gap: 1.2rem;
  flex-wrap: wrap;
  row-gap: 1.2rem;
  margin-top: 1.8rem;
}

.freebie-item { display: flex; flex-direction: column; align-items: center; gap: 0.6rem; }

.freebie-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy);
  text-align: center;
  line-height: 1.35;
  max-width: 230px;
}

.freebie-stack {
  position: relative;
  width: 222px;
  height: 306px;
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
}

.freebie-stack .stack-pages,
.freebie-stack .sheet {
  position: absolute;
  left: 0;
  top: 0;
  width: 220px;
  border-radius: 5px;
}

.freebie-stack .stack-pages {
  z-index: 1;
  filter: drop-shadow(0 2px 3px rgba(3, 28, 76, 0.18));
}

.freebie-stack .sheet {
  width: 200px;
  z-index: 2;
  background: #FFFFFF;
  box-shadow: 0 2px 6px rgba(3, 28, 76, 0.18);
  transition: transform 0.18s ease;
}

.freebie-stack:hover .sheet { transform: translateY(-6px); }

.freebie-stack .freebie-zoom { right: 2px; bottom: 2px; z-index: 7; }

.freebie-zoom {
  position: absolute;
  right: -7px;
  bottom: -7px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--lemon);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(3, 28, 76, 0.3);
}

.freebie-zoom svg { width: 13px; height: 13px; fill: var(--navy); }

@media (max-width: 760px) {
  .hero-freebies { justify-content: center; gap: 0.9rem; flex-wrap: nowrap; margin-top: 1.4rem; }
  .freebie-zoom { width: 20px; height: 20px; }
  .freebie-stack { width: 148px; height: 212px; } /* sheet 135w*1.41 + 20px cascade */
  .freebie-stack .sheet { width: 135px; }
  .freebie-label { font-size: 0.75rem; max-width: 150px; min-height: 2.7em; }
}

/* Tab stack (deck of channel cards) */

.tab-stack {
  position: relative;
  width: calc(100% - var(--stack-overhang));
  aspect-ratio: 16 / 11;
}

.tab-panel {
  position: absolute;
  inset: 0;
  transition: transform 0.45s ease, box-shadow 0.45s ease;
}

.tab-panel.pos-0 { transform: translate(0, 0); z-index: 3; }
.tab-panel.pos-1 { transform: translate(38px, 8px); z-index: 2; }
.tab-panel.pos-2 { transform: translate(76px, 16px); z-index: 1; }

.panel-inner {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background: #FFFFFF;
  box-shadow: 0 18px 40px rgba(3, 28, 76, 0.18);
  text-decoration: none;
  color: inherit;
  transition: opacity 0.45s ease, box-shadow 0.45s ease;
}

.tab-panel.pos-0 .panel-inner { box-shadow: 0 22px 48px rgba(3, 28, 76, 0.26); }

/* Cards behind the front one fade back; the tab strips keep full opacity
   so they still read as the click target. */
.tab-panel.pos-1 .panel-inner { opacity: 0.6; }
.tab-panel.pos-2 .panel-inner { opacity: 0.35; }

.panel-link img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Tab strips: official logos, hanging off the right edge of every panel,
   including the front one (the coloured edge stays as the deck's spine) */

.tab-strip {
  position: absolute;
  left: 100%;
  top: 0;
  bottom: 0;
  width: var(--strip);
  border: 0;
  border-radius: 0 12px 12px 0;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 16px;
  box-shadow: 6px 8px 18px rgba(3, 28, 76, 0.18);
  transition: opacity 0.45s ease;
}

.tab-strip svg { width: 22px; height: 22px; }

/* Depth cue lives on the strips: they are almost the only visible part of
   the behind cards, so the graduation runs front (subtle) to back (most). */
.tab-panel.pos-0 .tab-strip { opacity: 0.92; }
.tab-panel.pos-1 .tab-strip { opacity: 0.7; }
.tab-panel.pos-2 .tab-strip { opacity: 0.5; }

.strip-yt { background: linear-gradient(180deg, var(--yt) 0%, #FF6B6B 55%, #FFF0F0 100%); }
.strip-ig { background: linear-gradient(180deg, #833AB4 0%, #C13584 30%, #E1306C 52%, #FD1D1D 78%, #FCB045 100%); }
.strip-fb { background: linear-gradient(180deg, var(--fb) 0%, #6FA8FF 55%, #EDF4FF 100%); }

/* Instagram panel: profile snapshot, hydratable via js (IG_FEED_ENDPOINT) */

.ig-panel { display: flex; flex-direction: column; padding: 14px 16px; gap: 8px; }

.ig-head { display: flex; align-items: center; gap: 12px; }

.ig-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--sky);
  padding: 4px;
  box-shadow: inset 0 0 0 2px #FFFFFF, 0 0 0 2px var(--blue-light);
}

.ig-handle { font-family: "Poppins", "Noto Sans HK", system-ui, sans-serif; font-weight: 700; color: var(--navy); font-size: 1.05rem; line-height: 1.2; }
.ig-name { font-size: 0.85rem; color: #5A6B8C; }
.ig-stats { font-size: 0.85rem; color: var(--text); }
.ig-stats b { color: var(--navy); }

.ig-bio { font-size: 0.85rem; line-height: 1.45; }

.ig-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  flex: 1;
  min-height: 0;
}

.ig-grid a { display: block; border-radius: 8px; overflow: hidden; }
.ig-grid img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ig-grid a:hover { opacity: 0.85; }

.btn.small { font-size: 0.9rem; padding: 0.55rem 1.3rem; align-self: center; }
/* Two-class selector required: plain .ig-cta loses to the later
   .btn / .btn:hover rules and the button falls back to blue. */
.btn.ig-cta {
  background: linear-gradient(45deg, #FEDA75 0%, #FA7E1E 30%, #E1306C 62%, #962FBF 100%);
  box-shadow: 0 8px 18px rgba(225, 48, 108, 0.30);
}
.btn.ig-cta:hover { background: linear-gradient(45deg, #FA7E1E 0%, #E1306C 45%, #962FBF 100%); }

/* Per-tab follow pills: FB header pill, IG header pill, YT subscribe pill
   pinned top-right of the image panel (outside the panel-link anchor, since
   nesting a link in a link is invalid). The YT pill only shows when its
   panel is front (pos-0), so a behind panel can't peek a live link out. */

.fb-follow, .ig-follow-top, .yt-follow {
  font-family: "Poppins", "Noto Sans HK", system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  color: #FFFFFF;
  text-decoration: none;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
}

.fb-follow, .ig-follow-top { margin-left: auto; }

.fb-follow {
  background: linear-gradient(45deg, #4E9CFF 0%, var(--fb) 55%, #0B5CC0 100%);
  box-shadow: 0 6px 14px rgba(24, 119, 242, 0.30);
}
.fb-follow:hover { background: linear-gradient(45deg, var(--fb) 0%, #0B5CC0 100%); }

.ig-follow-top {
  background: linear-gradient(45deg, #FEDA75 0%, #FA7E1E 30%, #E1306C 62%, #962FBF 100%);
  box-shadow: 0 6px 14px rgba(225, 48, 108, 0.30);
}
.ig-follow-top:hover { background: linear-gradient(45deg, #FA7E1E 0%, #E1306C 45%, #962FBF 100%); }

.yt-follow {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 4;
  background: linear-gradient(45deg, #FF4D4D 0%, var(--yt) 45%, #B30000 100%);
  box-shadow: 0 6px 14px rgba(255, 0, 0, 0.30);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
}
.tab-panel.pos-0 .yt-follow { opacity: 1; pointer-events: auto; }
.yt-follow:hover { background: linear-gradient(45deg, var(--yt) 0%, #B30000 100%); }

/* Facebook panel: our own header bar on top, Meta Page Plugin timeline below.
   The plugin's native header is clipped away (.fb-frame) because Meta renders
   it with a half-clipped follower-count line regardless of parameters. */

.fb-panel { position: relative; background: #F0F2F5; }

.fb-head {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  background: #FFFFFF;
  border-bottom: 1px solid #E4E6EB;
  z-index: 2;
}

.fb-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--sky);
  padding: 3px;
  box-shadow: inset 0 0 0 2px #FFFFFF, 0 0 0 2px var(--blue-light);
}

.fb-head-text { display: flex; flex-direction: column; line-height: 1.25; }
.fb-name { font-family: "Poppins", "Noto Sans HK", system-ui, sans-serif; font-weight: 700; color: var(--navy); font-size: 1rem; }
.fb-sub { font-size: 0.8rem; color: #5A6B8C; }

.fb-frame {
  position: absolute;
  top: 68px;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  display: flex;
  justify-content: center;
}

.fb-frame iframe {
  width: 100%;
  max-width: 500px; /* the Page Plugin's hard maximum width */
  height: calc(100% + 138px);
  margin-top: -138px; /* slides the plugin's own header out of view */
  border: 0;
  display: block;
  background: #FFFFFF;
}

.fb-note {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  color: #5A6B8C;
  font-size: 0.9rem;
}

/* Wave divider */

.wave { display: block; margin-top: -1px; background: #F4FBFF; }
.wave svg { display: block; width: 100%; height: 70px; }
.wave path { fill: #FFFFFF; }

/* Watch: unit rows */

.watch {
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1rem, 5vw, 4rem);
  background: #FFFFFF;
  text-align: center;
}

.watch-intro { max-width: 60ch; margin: 0 auto 2rem; }

.unit { max-width: 1080px; margin: 0 auto 2.5rem; text-align: left; }

.unit-head {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.unit-pill {
  font-family: "Poppins", "Noto Sans HK", system-ui, sans-serif;
  font-weight: 700;
  color: #FFFFFF;
  background: var(--navy);
  padding: 0.25rem 0.9rem;
  border-radius: 999px;
  font-size: 0.95rem;
  white-space: nowrap;
}

.unit-theme { font-family: "Poppins", "Noto Sans HK", system-ui, sans-serif; font-weight: 600; color: var(--text); font-size: 1.05rem; }

.unit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: clamp(0.6rem, 1.5vw, 1rem);
}

.card-ep {
  border-radius: 18px;
  background: #FFFFFF;
  box-shadow: 0 10px 26px rgba(3, 28, 76, 0.12);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card-ep .thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--sky);
  border: 0;
  padding: 0;
  cursor: pointer;
  display: block;
  width: 100%;
}

.card-ep .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.card-ep .thumb .play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-ep .thumb .play span {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 14px rgba(3, 28, 76, 0.25);
}

.card-ep .thumb .play svg { width: 18px; height: 18px; margin-left: 2px; }

.card-ep .thumb:hover .play span { background: var(--lemon); }

.card-ep .player { aspect-ratio: 16 / 9; }
.card-ep .player iframe { width: 100%; height: 100%; border: 0; display: block; }

.card-ep.soon .thumb { cursor: default; }

.card-ep.soon .thumb .ep-watermark {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Poppins", "Noto Sans HK", system-ui, sans-serif;
  font-weight: 700;
  font-size: 2rem;
  color: var(--blue-light);
}

.card-body { padding: 0.7rem 0.85rem 0.9rem; display: flex; flex-direction: column; gap: 0.35rem; flex: 1; }

.card-kicker { font-size: 0.78rem; font-weight: 500; color: #5A6B8C; letter-spacing: 0.02em; }
.card-title { font-family: "Poppins", "Noto Sans HK", system-ui, sans-serif; font-weight: 600; font-size: 0.98rem; color: var(--navy); line-height: 1.3; }

.pill {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.15rem 0.7rem;
  border-radius: 999px;
  margin-top: auto;
  align-self: flex-start;
}

.pill.live { background: var(--blue-action); color: #FFFFFF; }
.pill.soon { background: #FFFFFF; color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--blue-light); }

/* Unit companion shelf (locked Option A): horizontal bar under the episode
   grid — upright A4 cover left, title/subtitle centre, actions right. */

.unit-companion {
  margin-top: clamp(0.6rem, 1.5vw, 1rem);
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 1.8rem);
  background: #FFFFFF;
  border: 1.5px solid var(--sky-deep);
  border-radius: 18px;
  padding: 1.2rem 1.5rem;
  box-shadow: 0 10px 26px rgba(3, 28, 76, 0.10);
  scroll-margin-top: 110px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.unit-companion.is-highlighted {
  border-color: var(--blue-action);
  box-shadow: 0 0 0 4px rgba(1, 124, 243, 0.2), 0 14px 34px rgba(3, 28, 76, 0.16);
}

.comp-cover {
  position: relative;
  flex: 0 0 auto;
  width: 110px;
  margin-bottom: 16px; /* room for the preview chip */
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
}

.comp-cover img {
  display: block;
  width: 100%;
  border-radius: 4px 8px 8px 4px;
  /* layered right edge reads as page thickness on the upright cover */
  box-shadow: 3px 0 0 #FFFFFF, 5px 0 0 rgba(3, 28, 76, 0.14), 0 10px 22px rgba(3, 28, 76, 0.25);
  transition: transform 0.18s ease;
}

.comp-cover:hover img { transform: translateY(-4px); }

.comp-cover-chip {
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  white-space: nowrap;
  background: var(--lemon);
  color: var(--navy);
  font-family: "Poppins", "Noto Sans HK", system-ui, sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  box-shadow: 0 3px 8px rgba(3, 28, 76, 0.22);
}

.comp-cover-ph {
  flex: 0 0 auto;
  width: 110px;
  aspect-ratio: 5 / 7;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.5rem;
  background: var(--sky);
  border: 2px dashed var(--blue-light);
  border-radius: 8px;
  font-family: "Poppins", "Noto Sans HK", system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--navy);
}

.comp-text { flex: 1; min-width: 0; }

.comp-title {
  display: block;
  font-family: "Poppins", "Noto Sans HK", system-ui, sans-serif;
  font-weight: 600;
  font-size: 1.08rem;
  color: var(--navy);
  line-height: 1.4;
}

.comp-badge {
  display: inline-block;
  margin-left: 0.5rem;
  vertical-align: middle;
  background: var(--lemon);
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  box-shadow: 0 3px 8px rgba(3, 28, 76, 0.16);
}

.comp-sub { display: block; margin-top: 0.3rem; font-size: 0.88rem; color: #5A6B8C; }

.comp-actions { flex: 0 0 auto; display: flex; flex-direction: column; gap: 0.55rem; align-items: stretch; }

.btn-ghost {
  display: inline-block;
  font-family: "Poppins", "Noto Sans HK", system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--blue-action);
  background: #FFFFFF;
  border: 0;
  box-shadow: inset 0 0 0 1.5px var(--blue-light);
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  cursor: pointer;
  text-align: center;
  transition: box-shadow 0.15s ease, color 0.15s ease;
}

.btn-ghost:hover { color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--navy); }

.preview-link {
  display: inline-block;
  margin-top: 0.6rem;
  background: none;
  border: 0;
  padding: 0;
  color: var(--blue-action);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.preview-link:hover { text-decoration: underline; }

.preview-dialog {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  width: min(94vw, 680px);
  max-width: min(94vw, 680px);
  max-height: 96vh;
  max-height: 94dvh;
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: hidden;
  overscroll-behavior: contain;
}

.preview-dialog.is-guide {
  width: min(96vw, 1080px);
  max-width: min(96vw, 1080px);
}

.preview-dialog:not([open]) { display: none; }

.preview-dialog::backdrop {
  background: rgba(3, 28, 76, 0.76);
  overflow: hidden;
  overscroll-behavior: contain;
}

.preview-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin-bottom: 0.6rem;
}

.preview-guide-tabs {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.preview-guide-tabs[hidden] { display: none; }

.guide-grade-tabs {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 999px;
  padding: 0.2rem;
  box-shadow: 0 4px 12px rgba(3, 28, 76, 0.25);
}

.guide-grade-tab {
  font-family: "Poppins", "Noto Sans HK", system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.84rem;
  color: var(--navy);
  background: transparent;
  border: 0;
  border-radius: 999px;
  padding: 0.34rem 0.95rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.guide-grade-tab:hover {
  color: var(--blue-action);
}

.guide-grade-tab[aria-selected="true"] {
  background: var(--navy);
  color: #FFFFFF;
}

.preview-level-tabs {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 999px;
  padding: 0.2rem;
  box-shadow: 0 4px 12px rgba(3, 28, 76, 0.25);
}

.preview-level-tabs[hidden] {
  display: none;
}

.preview-pack-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.7rem;
  margin-left: 0.15rem;
  border: 1.5px solid transparent;
  border-radius: 999px;
  background: var(--sky);
  color: var(--navy);
  font-family: "Poppins", "Noto Sans HK", system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.preview-pack-badge.is-switch {
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.preview-pack-badge.is-switch[aria-pressed="true"] {
  background: var(--lemon);
  color: var(--navy);
  border-color: #FFFFFF;
  box-shadow: 0 2px 6px rgba(3, 28, 76, 0.16);
}

.preview-pack-badge.is-switch[aria-pressed="false"] {
  background: var(--sky);
  color: var(--navy);
  opacity: 0.85;
}

.preview-pack-badge.is-switch[aria-pressed="false"]:hover {
  opacity: 1;
  border-color: var(--blue-action);
  color: var(--blue-action);
}

.test-level-tab.level-l1[aria-selected="true"] {
  background: #1B4965;
  color: #FFFFFF;
}

.test-level-tab.level-l2[aria-selected="true"] {
  background: #1B5E3A;
  color: #FFFFFF;
}

.test-level-tab.level-l3[aria-selected="true"] {
  background: #B84A14;
  color: #FFFFFF;
}

.guide-unit-tabs {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 999px;
  padding: 0.2rem;
  box-shadow: 0 4px 12px rgba(3, 28, 76, 0.25);
}

.guide-unit-tab {
  font-family: "Poppins", "Noto Sans HK", system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--navy);
  background: transparent;
  border: 0;
  border-radius: 999px;
  padding: 0.34rem 0.88rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.guide-unit-tab[hidden] { display: none; }

.guide-unit-tab:hover {
  color: var(--blue-action);
}

.guide-unit-tab[aria-selected="true"] {
  background: var(--blue-action);
  color: #FFFFFF;
}

.guide-subtabs {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.guide-tab {
  font-family: "Poppins", "Noto Sans HK", system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid transparent;
  border-radius: 999px;
  padding: 0.4rem 1rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(3, 28, 76, 0.22);
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.guide-tab[hidden] { display: none; }

.guide-tab:hover {
  background: #FFFFFF;
  transform: translateY(-1px);
}

.guide-tab[aria-pressed="true"] {
  background: var(--lemon);
  color: var(--navy);
  border-color: #FFFFFF;
}

.preview-zoom-bar {
  display: inline-flex;
  align-items: center;
  margin-left: auto;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 999px;
  padding: 0.15rem 0.25rem;
  box-shadow: 0 4px 12px rgba(3, 28, 76, 0.25);
}

.zoom-btn {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--navy);
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.zoom-btn:hover:not(:disabled) {
  background: var(--sky);
  color: var(--blue-action);
}

.zoom-btn:disabled {
  opacity: 0.38;
  cursor: default;
}

.zoom-level {
  border: 0;
  background: transparent;
  color: var(--navy);
  font-family: "Poppins", "Noto Sans HK", system-ui, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  min-width: 52px;
  padding: 0.2rem 0.35rem;
  text-align: center;
  cursor: pointer;
}

.zoom-level:hover {
  color: var(--blue-action);
}

.preview-stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.preview-scroll {
  flex: 1 1 auto;
  min-height: 0;
  max-height: 79vh;
  overflow: auto;
  border-radius: 12px;
  background: #FFFFFF;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y pinch-zoom;
}

.preview-scroll img {
  display: block;
  width: 100%;
  max-width: none;
  max-height: 78vh;
  object-fit: contain;
  margin: 0 auto;
  background: #FFFFFF;
  cursor: zoom-in;
  transition: width 0.15s ease;
}

.preview-dialog.is-guide .preview-scroll img,
.preview-scroll.is-zoomed img {
  max-height: none;
  height: auto;
  object-fit: unset;
}

.preview-scroll.is-zoomed img {
  cursor: zoom-out;
}

.preview-close {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--navy);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(3, 28, 76, 0.28);
}

.preview-dialog .info-dialog-close {
  position: absolute;
}

.info-dialog .preview-close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  z-index: 2;
}

.preview-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--navy);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(3, 28, 76, 0.3);
}

.preview-nav.prev { left: 0.5rem; }
.preview-nav.next { right: 0.5rem; }

.preview-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.85rem;
}

#preview-counter { color: rgba(255, 255, 255, 0.85); font-size: 0.85rem; }

/* Learning resources section (#free-booklet): the merged booklet direct
   download sits beside the release-alert signup. */

.booklet h2 { text-align: center; }

.pack-format-note {
  max-width: 780px;
  margin: -0.35rem auto 1.15rem;
  padding: 0.52rem 1.15rem;
  background: #FFFFFF;
  border: 1.5px solid var(--sky-deep);
  border-radius: 999px;
  color: var(--navy);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
  box-shadow: 0 4px 14px rgba(3, 28, 76, 0.06);
}

.pack-format-note a {
  color: var(--navy);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.pack-format-note a:hover {
  color: var(--blue-action);
}

/* Upcoming products: 3-card shop window above the free booklet and release
   alerts. Cards carry cover + 即將推出 badge + notify CTA (scrolls to
   #release-alerts); paid-product previews stay at 2-3 watermarked samples
   when each launches. */
.upcoming { max-width: 1080px; margin: 0 auto 1.6rem; scroll-margin-top: 104px; text-align: center; }

.pack-grade-nav {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  margin: 0.15rem auto 1rem;
  padding: 0.32rem;
  background: #FFFFFF;
  border: 2px solid var(--sky-deep);
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(3, 28, 76, 0.08);
  flex-wrap: wrap;
}

.pack-grade-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 126px;
  font-family: "Poppins", "Noto Sans HK", system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--navy);
  background: transparent;
  border: 0;
  padding: 0.56rem 1.45rem;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.pack-grade-tab:hover {
  color: var(--blue-action);
}

.pack-grade-tab[aria-selected="true"] {
  background: var(--navy);
  color: #FFFFFF;
  box-shadow: 0 6px 16px rgba(3, 28, 76, 0.22);
}

.pack-grade-pane[hidden] {
  display: none;
}

.pack-unit-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  margin: 0.1rem auto 1.25rem;
  flex-wrap: wrap;
}

.pack-unit-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  font-family: "Poppins", "Noto Sans HK", system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  padding: 0.48rem 1.25rem;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.pack-unit-btn.unit1,
.pack-unit-btn.unit2,
.pack-unit-btn.unit3 {
  background: #FFFFFF;
  color: var(--navy);
  border: 2px solid rgba(3, 28, 76, 0.2);
  box-shadow: 0 4px 12px rgba(3, 28, 76, 0.08);
}

.pack-unit-btn.active,
.pack-unit-btn[aria-pressed="true"] {
  background: var(--navy);
  color: #FFFFFF;
  border-color: var(--navy);
  box-shadow: 0 8px 20px rgba(3, 28, 76, 0.18);
}

.pack-unit-btn.unit1:hover,
.pack-unit-btn.unit2:hover,
.pack-unit-btn.unit3:hover {
  background: var(--blue-action);
  color: #FFFFFF;
  border-color: var(--blue-action);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(1, 124, 243, 0.25);
}

.upcoming-grid[hidden] {
  display: none;
}

.pack-unit-kicker {
  position: absolute;
  top: -11px;
  right: -8px;
  background: var(--lemon);
  color: var(--navy);
  font-family: "Poppins", "Noto Sans HK", system-ui, sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.1;
  padding: 0.18rem 0.52rem;
  border-radius: 999px;
  box-shadow: 0 3px 8px rgba(3, 28, 76, 0.22);
  white-space: nowrap;
}

.upcoming-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  scroll-margin-top: 110px;
}

.upcoming-grid.single-card {
  grid-template-columns: 1fr;
  max-width: 380px;
  margin: 0.35rem auto 0;
}

.upcoming-grid.is-highlighted .up-card {
  box-shadow: 0 0 0 3px rgba(1, 124, 243, 0.22), 0 14px 32px rgba(3, 28, 76, 0.16);
}

.upcoming-grid .card { max-width: none; margin: 0; text-align: left; padding: 1.4rem; }

.up-card { display: flex; flex-direction: column; }

.up-card .badge-inline { align-self: flex-start; }

.up-cover-btn {
  position: relative;
  align-self: center;
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
  margin: 0.2rem 0 0.85rem;
}

.up-cover-btn .up-cover {
  display: block;
  margin: 0;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.up-cover-btn:hover .up-cover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(3, 28, 76, 0.24);
}

.up-cover-chip {
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  white-space: nowrap;
  background: var(--lemon);
  color: var(--navy);
  font-family: "Poppins", "Noto Sans HK", system-ui, sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.18rem 0.65rem;
  border-radius: 999px;
  box-shadow: 0 3px 8px rgba(3, 28, 76, 0.22);
  transition: background 0.15s ease, color 0.15s ease;
}

.up-cover-btn:hover .up-cover-chip {
  background: var(--blue-action);
  color: #FFFFFF;
}

.up-cover {
  width: 160px;
  align-self: center;
  border-radius: 8px;
  box-shadow: 0 10px 22px rgba(3, 28, 76, 0.18);
  margin: 0.2rem 0 0.6rem;
}

.up-card h3,
.up-card h4 {
  font-family: "Poppins", "Noto Sans HK", system-ui, sans-serif;
  color: var(--navy);
  font-size: 1.02rem;
  line-height: 1.35;
  margin: 0.1rem 0 0.35rem;
}

.up-card p { font-size: 0.92rem; margin-bottom: 0.8rem; }

.up-card .track-actions {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.up-card .up-preview-btn {
  font-size: 0.88rem;
  padding: 0.48rem 0.95rem;
}

/* Compact "選購前必看" (Before You Buy) block under the 3 upcoming product cards */
.before-buy-box {
  max-width: 440px;
  margin: 1.5rem auto 0;
  padding: 1.2rem 1.4rem 1.35rem;
  background: #FFFFFF;
  border: 2px solid var(--sky-deep);
  border-radius: 20px;
  box-shadow: 0 12px 28px rgba(3, 28, 76, 0.10);
  text-align: center;
  scroll-margin-top: 120px;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.before-buy-box:target,
.before-buy-box.is-highlighted {
  border-color: var(--blue-action);
  box-shadow: 0 0 0 4px var(--lemon), 0 14px 32px rgba(3, 28, 76, 0.18);
}

.before-buy-kicker {
  display: inline-block;
  font-family: "Poppins", "Noto Sans HK", system-ui, sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--navy);
  background: var(--lemon);
  padding: 0.25rem 1.1rem;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(3, 28, 76, 0.12);
}

.before-buy-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-width: 320px;
  margin: 0.9rem auto 0;
}

.btn-before-buy {
  display: block;
  width: 100%;
  font-family: "Poppins", "Noto Sans HK", system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.96rem;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.btn-before-buy.primary {
  background: var(--blue-action);
  color: #FFFFFF;
  border: 0;
  box-shadow: 0 6px 15px rgba(1, 124, 243, 0.28);
}

.btn-before-buy.primary:hover {
  background: var(--navy);
  transform: translateY(-2px);
}

.btn-before-buy.secondary {
  background: var(--sky);
  color: var(--navy);
  border: 1.5px solid var(--blue-light);
  box-shadow: 0 4px 10px rgba(3, 28, 76, 0.08);
}

.btn-before-buy.secondary:hover {
  background: #FFFFFF;
  border-color: var(--navy);
  transform: translateY(-2px);
}

/* Modal dialog for Compatible School Textbooks & Watermark Notice */
.info-dialog {
  position: fixed;
  inset: 0;
  width: min(94vw, 960px);
  max-width: min(94vw, 960px);
  max-height: 92vh;
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: auto;
  overscroll-behavior: contain;
}

.info-dialog:not([open]) { display: none; }

.info-dialog::backdrop {
  background: rgba(3, 28, 76, 0.72);
  overflow: hidden;
  overscroll-behavior: contain;
}

.info-dialog-card {
  position: relative;
  background: linear-gradient(180deg, #F4FBFF 0%, #EAF6FF 100%);
  border-radius: 22px;
  padding: clamp(1.2rem, 3vw, 1.8rem);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.35);
}

.info-dialog-close {
  top: 0.75rem;
  right: 0.75rem;
}

/* Pre-purchase textbook compatibility & personalised watermark notice (inside modal) */
.purchase-info-grid {
  max-width: 100%;
  margin: 0;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.2rem;
  align-items: stretch;
}

.purchase-info-grid .card {
  max-width: none;
  margin: 0;
  text-align: left;
  padding: 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
}

.tb-grade-tabs {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  align-self: flex-start;
  background: var(--sky);
  border: 1px solid var(--sky-deep);
  padding: 0.22rem;
  border-radius: 999px;
  margin-bottom: 0.65rem;
  flex-wrap: wrap;
}

.tb-grade-tab {
  font-family: "Poppins", "Noto Sans HK", system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.84rem;
  color: var(--navy);
  background: transparent;
  border: 0;
  border-radius: 999px;
  padding: 0.32rem 0.95rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.tb-grade-tab:hover {
  color: var(--blue-action);
}

.tb-grade-tab[aria-selected="true"] {
  background: var(--navy);
  color: #FFFFFF;
}

.tb-grade-pane {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.tb-grade-pane[hidden] {
  display: none;
}

.tb-unit-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.65rem;
}

.tb-unit-tab {
  font-family: "Poppins", "Noto Sans HK", system-ui, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy);
  background: #F4F9FD;
  border: 1px solid var(--sky-deep);
  border-radius: 999px;
  padding: 0.32rem 0.85rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.tb-unit-tab:hover {
  border-color: var(--blue-action);
  color: var(--blue-action);
}

.tb-unit-tab[aria-selected="true"] {
  background: var(--navy);
  color: #FFFFFF;
  border-color: var(--navy);
}

.tb-unit-pane {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.tb-unit-pane[hidden] {
  display: none;
}

.info-kicker {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--navy);
  background: var(--sky);
  border: 1px solid var(--sky-deep);
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.55rem;
}

.watermark-card .info-kicker {
  background: #FFF6CC;
  border-color: var(--lemon);
}

.info-card h3 {
  font-family: "Poppins", "Noto Sans HK", system-ui, sans-serif;
  color: var(--navy);
  font-size: 1.18rem;
  line-height: 1.35;
  margin-bottom: 0.55rem;
}

.info-lead {
  font-size: 0.92rem;
  margin-bottom: 0.8rem;
}

.textbook-list,
.watermark-list {
  list-style: none;
  padding: 0;
  margin: 0 0 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.textbook-list li,
.watermark-list li {
  background: #F7FBFF;
  border: 1px solid var(--sky-deep);
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  font-size: 0.88rem;
  line-height: 1.48;
}

.textbook-list li strong,
.watermark-list li strong {
  display: block;
  font-family: "Poppins", "Noto Sans HK", system-ui, sans-serif;
  color: var(--navy);
  font-size: 0.92rem;
  margin-bottom: 0.15rem;
}

.watermark-list [data-i18n="wm.item1.desc"] {
  font-weight: 700;
  color: var(--navy);
}

.textbook-other {
  font-size: 0.86rem;
  line-height: 1.5;
  background: var(--sky);
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  margin-bottom: 0.9rem;
}

.info-guide-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 0.85rem;
}

.info-guide-links .btn-ghost {
  font-size: 0.85rem;
  padding: 0.45rem 1rem;
}

.info-disclaimer {
  margin-top: auto;
  font-size: 0.78rem;
  line-height: 1.48;
  color: #4A5B7A;
}

.info-disclaimer a {
  color: var(--navy);
  font-weight: 600;
  text-underline-offset: 2px;
}

.tracks {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  scroll-margin-top: 104px;
}

.tracks .card { max-width: none; margin: 0; text-align: left; }

.track h3 {
  font-family: "Poppins", "Noto Sans HK", system-ui, sans-serif;
  color: var(--navy);
  font-size: 1.18rem;
  line-height: 1.35;
  margin-bottom: 0.5rem;
}

.track p { margin-bottom: 0.9rem; }

.track-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.2rem, 3vw, 2rem);
  align-items: start;
}

.release-alerts {
  background: var(--sky);
  border-radius: 16px;
  padding: 1.2rem 1.3rem;
}

#release-alerts { scroll-margin-top: 104px; }

.release-alerts .form-hint { font-size: 0.85rem; color: #5A6B8C; }

#mailerlite-form { margin: 0.6rem 0 0.9rem; }

/* Stable wrapper selectors outrank MailerLite's later injected styles. */
#mailerlite-form .ml-form-embedContent { display: none; }
#mailerlite-form .ml-form-embedContainer .ml-form-embedWrapper.embedForm { background: transparent; }

#mailerlite-form #release-alerts-email-label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--navy);
  font-family: "Inter", "Noto Sans HK", system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
}

#mailerlite-form #release-alerts-email-label .release-email-required { color: #5A6B8C; font-size: 0.8rem; font-weight: 400; }

#mailerlite-form .ml-form-embedContainer .ml-form-align-center .ml-form-embedWrapper .ml-form-embedBody input[type="email"] {
  display: block;
  width: 100% !important;
  min-height: 48px;
  padding: 0.75rem 0.9rem !important;
  border: 1.5px solid #6B7D99 !important;
  border-radius: 10px !important;
  background: #FFFFFF !important;
  color: var(--text) !important;
  font-family: "Inter", "Noto Sans HK", system-ui, sans-serif;
  font-size: 1rem !important;
  line-height: 1.4 !important;
}

#mailerlite-form input[type="email"]:user-invalid,
#mailerlite-form input[type="email"][aria-invalid="true"] {
  border-color: #A12824 !important;
  box-shadow: 0 0 0 1px #A12824;
}

#mailerlite-form .ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-embedSubmit button.primary,
#mailerlite-form .ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-embedSubmit button.loading {
  min-height: 48px;
  padding: 0.75rem 1.25rem !important;
  border: 1px solid var(--blue-action) !important;
  border-radius: 999px !important;
  background-color: var(--blue-action) !important;
  box-shadow: 0 6px 14px rgba(3, 28, 76, 0.16) !important;
  color: #FFFFFF !important;
  font-family: "Poppins", "Noto Sans HK", system-ui, sans-serif !important;
  font-size: 1rem !important;
  font-weight: 600;
  line-height: 1.4 !important;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

#mailerlite-form .ml-form-embedSubmit button.primary:hover:not(:disabled) {
  border-color: var(--navy) !important;
  background-color: var(--navy) !important;
}

#mailerlite-form .ml-form-embedSubmit button:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
}

#mailerlite-form .ml-form-embedSubmit button.primary:disabled,
#mailerlite-form .ml-form-embedSubmit button.loading:disabled {
  cursor: wait;
  opacity: 0.78;
}

#mailerlite-form .ml-form-embedSubmitLoad {
  border-color: rgba(255, 255, 255, 0.45) !important;
  border-top-color: #FFFFFF !important;
}

#mailerlite-form .ml-form-embedContainer .ml-form-align-center .ml-form-embedWrapper .ml-form-successBody .ml-form-successContent h4 {
  margin: 0 0 0.6rem;
  color: var(--navy);
  font-family: "Poppins", "Noto Sans HK", system-ui, sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.35;
}

#mailerlite-form .ml-form-embedContainer .ml-form-align-center .ml-form-embedWrapper .ml-form-successBody .ml-form-successContent p {
  color: var(--text);
  font-family: "Inter", "Noto Sans HK", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}

.release-alerts .form-error { margin: 0 0 0.9rem; color: #8F1D1D; font-size: 0.9rem; font-weight: 600; }
.release-alerts .fineprint a { color: var(--navy); font-weight: 600; text-underline-offset: 2px; }

@media (pointer: coarse) {
  #mailerlite-form .ml-form-embedContainer .ml-form-align-center .ml-form-embedWrapper .ml-form-embedBody input[type="email"],
  #mailerlite-form .ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-embedSubmit button.primary,
  #mailerlite-form .ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-embedSubmit button.loading { min-height: 52px; }
}

.track-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; align-items: center; }

/* Booklet */

.booklet {
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1rem, 5vw, 4rem);
  background: linear-gradient(180deg, #FFFFFF 0%, var(--sky) 100%);
}

.pack-format-note {
  max-width: 680px;
  margin: -0.35rem auto 1.15rem;
  padding: 0.48rem 1.1rem;
  background: #FFF9DB;
  border: 1.5px solid var(--lemon);
  border-radius: 999px;
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
  box-shadow: 0 4px 12px rgba(3, 28, 76, 0.08);
}

.card {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  background: #FFFFFF;
  border-radius: var(--radius);
  padding: clamp(1.8rem, 4vw, 2.8rem);
  box-shadow: 0 18px 40px rgba(3, 28, 76, 0.14);
}

.badge {
  position: absolute;
  top: -14px;
  right: 22px;
  font-family: "Comic Neue", "Poppins", "Noto Sans HK", cursive;
  font-weight: 700;
  color: var(--navy);
  background: var(--lemon);
  padding: 0.3rem 1rem;
  border-radius: 999px;
  transform: rotate(3deg);
  box-shadow: 0 6px 12px rgba(3, 28, 76, 0.16);
}

/* Inline variant: the 免費下載 badge belongs to the merged free booklet, so
   it sits inside the download column, never above the release-alert form
   (Christy: "free" wording near the form implies future booklets are free). */
.badge-inline { position: static; display: inline-block; margin-bottom: 0.7rem; }

.fineprint { font-size: 0.85rem; color: #5A6B8C; }

.privacy-content {
  max-width: 840px;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1rem, 5vw, 2rem);
}

.privacy-content section { scroll-margin-top: 100px; }
.privacy-content section + section { margin-top: 3rem; padding-top: 3rem; border-top: 2px solid var(--sky-deep); }
.privacy-content h1 { margin-bottom: 1rem; font-size: clamp(2rem, 5vw, 2.8rem); }
.privacy-content h2 { margin: 1.8rem 0 0.6rem; font-size: 1.25rem; }
.privacy-content p { margin-bottom: 1rem; }
.privacy-content ul { margin: 0 0 1rem; padding-left: 1.4rem; }
.privacy-content li { margin-bottom: 0.4rem; }
.privacy-content a { color: var(--blue-action); text-underline-offset: 2px; }
.privacy-content a:hover { color: var(--navy); }

@media (max-width: 760px) {
  #release-alerts, .privacy-content section, #upcoming, #before-you-buy, #free-download { scroll-margin-top: 140px; }
}

@media (forced-colors: active) {
  #mailerlite-form .ml-form-embedSubmit button:focus-visible { outline-color: Highlight; }
}

/* About / Ecosystem (產品特色) */

.about {
  text-align: center;
  padding: clamp(2.8rem, 6vw, 4.8rem) clamp(1rem, 5vw, 4rem);
  background: linear-gradient(180deg, #F0F9FF 0%, var(--sky) 100%);
  border-top: 1px solid var(--sky-deep);
  border-bottom: 1px solid var(--sky-deep);
}

.eco-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.eco-head {
  max-width: 1120px;
  margin: 0 auto 2rem;
}

.eco-head .info-kicker {
  background: var(--lemon);
  color: var(--navy);
  font-size: 0.92rem;
  font-weight: 700;
  padding: 0.35rem 1.05rem;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(255, 217, 59, 0.38);
}

.eco-head h2 {
  font-size: clamp(1.2rem, 2.35vw, 1.95rem);
  line-height: 1.32;
  margin: 0.45rem 0 0.65rem;
  color: var(--navy);
}

@media (min-width: 820px) {
  .eco-head h2 {
    white-space: nowrap;
  }
}

.eco-lead {
  max-width: 68ch;
  margin: 0 auto;
  font-size: 1.02rem;
  color: #354A6B;
  line-height: 1.6;
}

.eco-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.2vw, 1.4rem);
  margin-bottom: clamp(1rem, 2.2vw, 1.4rem);
  text-align: left;
}

.eco-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1rem, 2.2vw, 1.4rem);
  margin-bottom: clamp(1.2rem, 2.5vw, 1.6rem);
  text-align: left;
}

.eco-card,
.eco-channel-card {
  max-width: none;
  margin: 0;
  padding: 0;
  border: 1.5px solid var(--sky-deep);
  border-radius: 20px;
  background: #FFFFFF;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(3, 28, 76, 0.06);
}

.eco-card-body {
  padding: 1.2rem 1.35rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

/* Visual stage inside the 3 product cards */
.eco-media {
  position: relative;
  width: 100%;
  height: 228px;
  border: 0;
  border-bottom: 1px solid var(--sky-deep);
  background: radial-gradient(circle at 50% 35%, #FFFFFF 0%, #E3F5FF 100%);
  padding: 0.9rem 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-family: inherit;
}

.eco-media-test {
  background: radial-gradient(circle at 50% 35%, #FFFFFF 0%, #FFF3E6 100%);
}

.eco-sheet-stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.eco-sheet {
  height: 192px;
  width: auto;
  border-radius: 8px;
  background: #FFFFFF;
  border: 1px solid rgba(3, 28, 76, 0.14);
  box-shadow: 0 10px 22px rgba(3, 28, 76, 0.16);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.eco-sheet.back {
  position: absolute;
  transform: translateX(30px) translateY(4px) rotate(6deg) scale(0.93);
  opacity: 0.92;
}

.eco-sheet.front {
  position: relative;
  z-index: 2;
  transform: translateX(-18px) rotate(-3deg);
}

.eco-media:hover .eco-sheet.front {
  transform: translateX(-22px) rotate(-4deg) translateY(-4px) scale(1.03);
}

.eco-media:hover .eco-sheet.back {
  transform: translateX(36px) translateY(2px) rotate(8deg) scale(0.95);
}

/* Side-by-side Test Paper + Annotated Common-Mistake Answer Key */
.eco-sheet-stage.is-test-pair .eco-sheet.test-paper {
  position: relative;
  z-index: 1;
  transform: translateX(-34px) rotate(-4deg) scale(0.95);
}

.eco-sheet-stage.is-test-pair .eco-sheet.test-key {
  position: absolute;
  z-index: 2;
  transform: translateX(32px) rotate(3deg);
  border: 1.5px solid #D94343;
}

.eco-media:hover .eco-sheet-stage.is-test-pair .eco-sheet.test-key {
  transform: translateX(36px) rotate(4deg) translateY(-4px) scale(1.04);
}

.eco-annot-badge {
  position: absolute;
  top: 0.65rem;
  left: 0.75rem;
  z-index: 3;
  background: #D92B2B;
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(217, 43, 43, 0.28);
}

.eco-zoom-pill {
  position: absolute;
  bottom: 0.65rem;
  right: 0.75rem;
  z-index: 3;
  background: rgba(3, 28, 76, 0.86);
  color: #FFFFFF;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.24rem 0.68rem;
  border-radius: 999px;
  backdrop-filter: blur(4px);
  transition: background 0.15s ease, transform 0.15s ease;
}

.eco-media:hover .eco-zoom-pill {
  background: var(--blue-action);
  transform: translateY(-1px);
}

/* Visual stage inside the 2 channel cards (YouTube + Instagram) */
.eco-channel-media {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 210px;
  text-decoration: none;
  overflow: hidden;
  border-bottom: 1px solid rgba(3, 28, 76, 0.08);
}

.eco-channel-media.yt-media {
  background: #0B2545;
}

.eco-yt-banner {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transition: transform 0.28s ease;
}

.eco-channel-media.yt-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 28, 76, 0.05) 0%, rgba(3, 28, 76, 0.68) 100%);
}

.eco-channel-media.yt-media:hover .eco-yt-banner {
  transform: scale(1.04);
}

.eco-yt-thumbs {
  position: absolute;
  bottom: 0.65rem;
  left: 0.85rem;
  z-index: 2;
  display: flex;
  gap: 0.45rem;
}

.eco-yt-thumbs img {
  width: 82px;
  height: 46px;
  object-fit: cover;
  border-radius: 6px;
  border: 1.5px solid #FFFFFF;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.28);
}

.eco-channel-pill {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.22rem 0.68rem;
  border-radius: 999px;
  color: #FFFFFF;
}

.eco-channel-pill.yt {
  position: absolute;
  top: 0.7rem;
  right: 0.8rem;
  z-index: 2;
  background: #E62117;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.22);
}

.eco-channel-pill.ig {
  margin-left: auto;
  background: linear-gradient(45deg, #FEDA75, #FA7E1E, #E1306C, #962FBF);
}

.eco-channel-media.ig-media {
  background: linear-gradient(135deg, #FDF4FF 0%, #FFF5EC 100%);
  padding: 0.75rem 0.95rem 0.8rem;
}

.eco-ig-header {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: #FFFFFF;
  padding: 0.42rem 0.65rem;
  border-radius: 12px;
  border: 1px solid rgba(150, 47, 191, 0.16);
  box-shadow: 0 4px 10px rgba(3, 28, 76, 0.05);
}

.eco-ig-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #E1306C;
  flex-shrink: 0;
}

.eco-ig-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  text-align: left;
}

.eco-ig-meta strong {
  font-size: 0.84rem;
  color: var(--navy);
}

.eco-ig-meta span {
  font-size: 0.72rem;
  color: #5A6B8C;
}

.eco-ig-posts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-top: 0.55rem;
  flex: 1;
  min-height: 0;
}

.eco-ig-posts img {
  width: 100%;
  height: 118px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(3, 28, 76, 0.1);
  box-shadow: 0 4px 10px rgba(3, 28, 76, 0.08);
  transition: transform 0.2s ease;
}

.eco-channel-media.ig-media:hover .eco-ig-posts img {
  transform: translateY(-2px);
}

.eco-channel-card.yt-card {
  background: linear-gradient(135deg, #FFFFFF 0%, #FFF7F7 100%);
  border-color: #F4C7C7;
}

.eco-channel-card.ig-card {
  background: linear-gradient(135deg, #FFFFFF 0%, #FDF6FF 100%);
  border-color: #E8C7F4;
}

.eco-card-top {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.eco-icon {
  font-size: 1.45rem;
  line-height: 1;
}

.eco-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.22rem 0.68rem;
  border-radius: 999px;
  background: var(--sky);
  color: var(--navy);
}

.eco-tag-yt {
  background: #FFE8E8;
  color: #9E1C1C;
}

.eco-tag-ig {
  background: #F5E6FA;
  color: #6B1D80;
}

.eco-card h3,
.eco-channel-card h3 {
  font-size: 1.15rem;
  margin: 0;
  color: var(--navy);
}

.eco-card p,
.eco-channel-card p {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.62;
  color: var(--text);
  max-width: none;
}

.eco-channel-btn {
  margin-top: auto;
  padding-top: 0.35rem;
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--blue-action);
}

.eco-channel-btn.yt { color: #C62020; }
.eco-channel-btn.ig { color: #83259E; }
.eco-channel-btn:hover { color: var(--navy); text-decoration: underline; }

.eco-routine {
  background: linear-gradient(135deg, #DDF2FF 0%, #CBE9FF 100%);
  border: 1.5px solid #9ED4FA;
  color: var(--navy);
  border-radius: 20px;
  padding: clamp(1.35rem, 3vw, 1.85rem) clamp(1.2rem, 3vw, 2rem);
  box-shadow: 0 10px 24px rgba(3, 28, 76, 0.07);
}

.eco-routine-head {
  margin-bottom: 1.15rem;
}

.eco-routine-badge {
  display: inline-block;
  background: var(--lemon);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.86rem;
  padding: 0.28rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 0.45rem;
  box-shadow: 0 4px 10px rgba(255, 217, 59, 0.35);
}

.eco-routine-head h3 {
  color: var(--navy);
  font-size: clamp(1.15rem, 2.3vw, 1.4rem);
  margin: 0;
}

.eco-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.75rem, 2vw, 1.15rem);
}

.eco-step {
  background: #FFFFFF;
  border: 1.5px solid rgba(3, 28, 76, 0.1);
  border-radius: 16px;
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.3rem;
  box-shadow: 0 6px 16px rgba(3, 28, 76, 0.05);
}

.eco-step-badge {
  display: inline-block;
  background: var(--sky);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.76rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 0.15rem;
}

.eco-step-title {
  font-family: "Poppins", "Noto Sans HK", system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
}

.eco-step-sub {
  font-size: 0.88rem;
  color: #354A6B;
  line-height: 1.45;
}

@media (max-width: 900px) {
  .eco-grid-3 { grid-template-columns: 1fr; }
  .eco-grid-2 { grid-template-columns: 1fr; }
  .eco-steps { grid-template-columns: 1fr; }
}

/* FAQ & Contact */

.faq-contact {
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1rem, 5vw, 4rem);
  background: linear-gradient(180deg, #F4FBFF 0%, #FFFFFF 100%);
  scroll-margin-top: 96px;
}

.faq-contact-head {
  max-width: 760px;
  margin: 0 auto 2rem;
  text-align: center;
}

.faq-contact-head h1,
.faq-contact-head h2 {
  margin: 0.35rem 0 0.55rem;
}

.faq-contact-head h1 {
  font-size: clamp(1.9rem, 4.2vw, 2.55rem);
}

.faq-quick-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.05rem;
}

.faq-quick-links .btn-ghost {
  font-size: 0.86rem;
  padding: 0.45rem 1rem;
  text-decoration: none;
}

.faq-contact-lead {
  color: #4A5B7A;
  font-size: 0.98rem;
  max-width: 58ch;
  margin: 0 auto;
}

.faq-contact-grid {
  max-width: 780px;
  margin: 0 auto;
}

.faq-contact-grid.is-split {
  max-width: 1120px;
  display: grid;
  grid-template-columns: 0.94fr 1.06fr;
  gap: clamp(1.35rem, 2.8vw, 2.1rem);
  align-items: start;
}

.faq-col {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.faq-item {
  background: #FFFFFF;
  border: 1.5px solid var(--sky-deep);
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(3, 28, 76, 0.06);
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.faq-item[open] {
  border-color: var(--blue-light);
  box-shadow: 0 12px 26px rgba(3, 28, 76, 0.10);
}

.faq-contact-grid.is-split .faq-item.is-active {
  background: #F4FBFF;
  border-color: var(--blue-action);
  box-shadow: 0 10px 24px rgba(1, 124, 243, 0.12);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.95rem 1.15rem;
  font-family: "Poppins", "Noto Sans HK", system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(0.88rem, 1.48vw, 1.02rem);
  line-height: 1.4;
  color: var(--navy);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--sky);
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.faq-item[open] summary::after {
  content: "\2212";
  background: var(--navy);
  color: #FFFFFF;
}

.faq-contact-grid.is-split .faq-item summary::after {
  content: "\2192";
  font-size: 0.98rem;
  background: var(--sky);
  color: var(--navy);
}

.faq-contact-grid.is-split .faq-item.is-active summary::after {
  content: "\2192";
  background: var(--blue-action);
  color: #FFFFFF;
  transform: translateX(2px);
}

.faq-item summary:hover {
  color: var(--blue-action);
}

.faq-item summary:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: -3px;
  border-radius: 12px;
}

.faq-body {
  padding: 0 1.15rem 1.05rem;
  font-size: 0.92rem;
  line-height: 1.62;
  color: var(--text);
  border-top: 1px solid rgba(3, 28, 76, 0.07);
  padding-top: 0.8rem;
}

.faq-body p {
  margin: 0;
}

.faq-list {
  margin: 0.55rem 0 0;
  padding-left: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.faq-list li {
  line-height: 1.58;
}

.faq-list strong {
  color: var(--navy);
}

.faq-body a {
  color: var(--blue-action);
  font-weight: 600;
  text-underline-offset: 2px;
}

.faq-body a:hover {
  color: var(--navy);
}

.faq-answer-panel {
  position: sticky;
  top: 96px;
  max-width: none;
  margin: 0;
  padding: clamp(1.35rem, 2.8vw, 1.9rem);
  text-align: left;
  background: #FFFFFF;
  border: 1.5px solid var(--blue-light);
  border-radius: 18px;
  box-shadow: 0 14px 32px rgba(3, 28, 76, 0.09);
}

.faq-answer-head {
  padding-bottom: 0.95rem;
  margin-bottom: 1rem;
  border-bottom: 1.5px solid var(--sky-deep);
}

.faq-answer-title {
  font-family: "Poppins", "Noto Sans HK", system-ui, sans-serif;
  font-size: clamp(1.1rem, 1.85vw, 1.28rem);
  font-weight: 700;
  line-height: 1.4;
  color: var(--navy);
  margin: 0;
}

.faq-answer-slot .faq-body {
  padding: 0;
  border-top: 0;
  font-size: 0.95rem;
  line-height: 1.68;
}

.faq-item-contact {
  scroll-margin-top: 96px;
}

.faq-item-contact .faq-body {
  padding: 0.95rem 1.25rem 1.3rem;
}

.faq-answer-slot .faq-body {
  padding: 0;
}

.faq-body .contact-intro,
.contact-intro {
  font-size: 0.9rem;
  line-height: 1.55;
  color: #4A5B7A;
  margin: 0 0 1rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.contact-field-row {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 0.75rem;
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}

.contact-field label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
}

.contact-req,
.contact-opt {
  font-size: 0.78rem;
  font-weight: 400;
  color: #5A6B8C;
}

.contact-field input,
.contact-field select,
.contact-field textarea {
  width: 100%;
  min-height: 44px;
  padding: 0.62rem 0.8rem;
  border: 1.5px solid #6B7D99;
  border-radius: 10px;
  background: #FFFFFF;
  color: var(--text);
  font-family: "Inter", "Noto Sans HK", system-ui, sans-serif;
  font-size: 0.95rem;
  line-height: 1.45;
}

.contact-field textarea {
  min-height: 104px;
  resize: vertical;
}

.contact-field input:focus-visible,
.contact-field select:focus-visible,
.contact-field textarea:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 2px;
  border-color: var(--navy);
}

.contact-field [aria-invalid="true"] {
  border-color: #A12824;
  box-shadow: 0 0 0 1px #A12824;
}

.contact-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-boundary {
  margin: 0;
  padding: 0.6rem 0.8rem;
  background: #FFF9DB;
  border: 1px solid var(--lemon);
  border-radius: 10px;
  font-size: 0.82rem;
  line-height: 1.48;
  color: var(--navy);
  font-weight: 500;
}

.contact-status {
  margin: 0;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.45;
}

.contact-status.is-error {
  background: #FDF2F2;
  border: 1px solid #E5A3A3;
  color: #8F1D1D;
}

.contact-status.is-success {
  background: #EDF9F0;
  border: 1px solid #8AD19E;
  color: #155724;
}

.contact-status.is-info {
  background: #FFF9E6;
  border: 1px solid #E6C762;
  color: #5C4500;
}

.contact-noscript {
  margin: 0;
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  background: #FFF9E6;
  border: 1px solid #E6C762;
  color: #5C4500;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.5;
}

.contact-noscript a {
  color: var(--navy);
  font-weight: 700;
  text-underline-offset: 2px;
}

.contact-actions {
  display: flex;
  align-items: center;
}

.contact-submit {
  border: 0;
  cursor: pointer;
  width: 100%;
  text-align: center;
  font-size: 0.98rem;
  padding: 0.78rem 1.4rem;
}

.contact-submit:disabled {
  cursor: wait;
  opacity: 0.78;
}

.contact-fineprint {
  margin: 0;
  line-height: 1.48;
}

.contact-fineprint a {
  color: var(--navy);
  font-weight: 600;
  text-underline-offset: 2px;
}

/* Footer */

footer {
  text-align: center;
  padding: 2.5rem 1rem 2.2rem;
  background: var(--sky-deep);
  color: var(--navy);
}

.footer-mark { height: 44px; width: auto; margin-bottom: 0.9rem; }

footer a { color: var(--navy); }
footer a:hover { color: var(--blue-action); }

/* Buttons */

.btn {
  display: inline-block;
  font-family: "Poppins", "Noto Sans HK", system-ui, sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: #FFFFFF;
  background: var(--blue-action);
  padding: 0.85rem 1.9rem;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(1, 124, 243, 0.35);
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn:hover { background: var(--navy); transform: translateY(-2px); }

/* Mobile sticky buy bar & drawers (hidden on desktop) */
.mobile-buy-bar,
.mobile-drawer-toggle,
.mobile-desktop-hint {
  display: none;
}

/* Mobile */

@media (max-width: 980px) {
  .site-header { flex-wrap: wrap; gap: 0.4rem 0.9rem; padding: 0.5rem 1rem; }
  .site-header nav { order: 3; flex: 0 0 100%; flex-wrap: wrap; justify-content: center; gap: 0.35rem 0.9rem; margin-left: 0; }
  .header-tools { order: 2; margin-left: auto; }
  .faq-contact-grid { grid-template-columns: 1fr; max-width: 680px; }
}

@media (max-width: 900px) {
  .unit-grid { grid-template-columns: repeat(2, 1fr); }
  .track-cols { grid-template-columns: 1fr; }
  .upcoming-grid { grid-template-columns: 1fr; max-width: 460px; margin-left: auto; margin-right: auto; }
  .purchase-info-grid { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; }
  .up-cover { width: 190px; }
}

@media (max-width: 640px) {
  .unit-companion { flex-direction: column; text-align: center; }
  .comp-cover { margin-bottom: 26px; }
  .comp-actions { width: 100%; }
  .contact-field-row { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  :root { --stack-overhang: 112px; } /* 76px of panel offsets + 34px strip + slack */
  section { scroll-margin-top: 120px; }
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero-text .sub { margin-left: auto; margin-right: auto; }
  .hero-visual { margin-top: 1.5rem; }
  .brand img { height: 30px; }
  .site-header { flex-wrap: wrap; gap: 0.35rem 0.75rem; padding: 0.45rem 0.75rem; }
  .site-header nav { order: 3; flex: 0 0 100%; flex-wrap: wrap; justify-content: center; gap: 0.35rem 0.7rem; margin-left: 0; font-size: 0.76rem; }
  .site-header nav a { min-height: 32px; white-space: nowrap; }
  .header-tools { order: 2; margin-left: auto; gap: 0.6rem; }
  .site-header .social-badges { gap: 0.35rem; }
  .site-header .social-badge { width: 28px; height: 28px; }
  .site-header .social-badge svg { width: 14px; height: 14px; }
  .lang-toggle button { min-width: 32px; min-height: 32px; font-size: 0.75rem; padding: 0.2rem 0.4rem; }
  .tab-stack { aspect-ratio: 4 / 3; }
  .tab-panel.pos-1 { transform: translate(38px, 8px); }
  .tab-panel.pos-2 { transform: translate(76px, 16px); }
  .preview-close, .preview-nav { width: 44px; height: 44px; }
  .pack-grade-nav { gap: 0.3rem; padding: 0.26rem; margin-bottom: 0.9rem; }
  .pack-format-note { border-radius: 14px; font-size: 0.8rem; padding: 0.45rem 0.8rem; margin: -0.2rem auto 0.95rem; }
  .pack-grade-tab { min-width: 112px; font-size: 0.94rem; padding: 0.5rem 1.15rem; }
  .pack-unit-nav { gap: 0.5rem; margin-top: 0.35rem; margin-bottom: 1.1rem; }
  .pack-unit-btn { min-width: 0; flex: 1 1 calc(33.333% - 0.5rem); max-width: 142px; font-size: 0.82rem; padding: 0.46rem 0.55rem; white-space: nowrap; }
  .pack-unit-kicker { font-size: 0.62rem; top: -10px; right: 4px; padding: 0.14rem 0.42rem; }
  .preview-dialog, .preview-dialog.is-guide { width: 96vw; max-width: 96vw; max-height: 94dvh; padding: 0.65rem; }
  .preview-topbar { gap: 0.35rem; margin-bottom: 0.4rem; }
  .preview-guide-tabs { flex: 1 1 100%; order: 2; gap: 0.32rem; justify-content: center; }
  .preview-level-tabs { flex: 1 1 100%; flex-wrap: wrap; order: 2; justify-content: center; border-radius: 18px; padding: 0.2rem; gap: 0.18rem; }
  .preview-pack-badge { font-size: 0.72rem; padding: 0.22rem 0.56rem; margin-left: 0; }
  .guide-grade-tabs, .guide-unit-tabs { padding: 0.16rem; gap: 0.18rem; }
  .guide-grade-tab, .guide-unit-tab { font-size: 0.76rem; padding: 0.26rem 0.68rem; white-space: nowrap; }
  .guide-subtabs { width: 100%; justify-content: center; gap: 0.3rem; }
  .guide-tab { font-size: 0.74rem; padding: 0.32rem 0.64rem; white-space: nowrap; }
  .preview-zoom-bar { display: none; }
  .preview-scroll img { cursor: default; }
  .preview-dialog .preview-close { margin-left: auto; order: 1; width: 38px; height: 38px; }
  .preview-meta { margin-top: 0.5rem; }
  .info-dialog { width: 96vw; max-width: 96vw; max-height: 92dvh; }
  .info-dialog-card { padding: 0.95rem; }
  .purchase-info-grid .card { padding: 1.05rem 1rem; }
  .tb-unit-tabs { gap: 0.35rem; margin-bottom: 0.55rem; }
  .tb-unit-tab { flex: 1 1 auto; text-align: center; font-size: 0.76rem; padding: 0.32rem 0.6rem; }
  .info-guide-links { flex-direction: column; gap: 0.45rem; }
  .info-guide-links .btn-ghost { width: 100%; text-align: center; font-size: 0.8rem; padding: 0.48rem 0.75rem; }
  .ig-panel { padding: 10px; gap: 6px; }
  .ig-head { gap: 6px; }
  .ig-avatar { width: 36px; height: 36px; padding: 2px; }
  .ig-handle { font-size: 0.8rem; }
  .ig-name { display: none; }
  .ig-stats { font-size: 0.65rem; }
  .ig-follow-top, .fb-follow { display: inline-flex; align-items: center; justify-content: center; min-height: 32px; padding: 0.25rem 0.45rem; font-size: 0.65rem; }
  .fb-head { height: 56px; gap: 8px; padding: 0 10px; }
  .fb-avatar { width: 36px; height: 36px; }
  .fb-head-text { min-width: 0; }
  .fb-name { font-size: 0.75rem; }
  .fb-sub { font-size: 0.65rem; }
  .fb-frame { top: 56px; }
  .ig-bio { display: none; }

  /* 1. Make "購買教材" super easy to find on mobile:
        - Standout pill in top nav
        - DOM section order synced by js/main.js (#about & #free-booklet before #watch)
        - Sticky bottom quick-buy bar */
  .site-header nav a[href="#free-booklet"],
  .site-header nav a[href="index.html#free-booklet"] {
    background: var(--lemon);
    color: var(--navy);
    font-weight: 700;
    padding: 0.18rem 0.72rem;
    border-radius: 999px;
    box-shadow: 0 2px 6px rgba(3, 28, 76, 0.16);
  }
  footer {
    padding-bottom: 5.2rem;
  }
  .mobile-buy-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.55rem;
    padding: 0.55rem 0.85rem calc(0.55rem + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    border-top: 1.5px solid var(--sky-deep);
    box-shadow: 0 -6px 20px rgba(3, 28, 76, 0.14);
    transition: transform 0.22s ease, opacity 0.22s ease;
  }
  .mobile-buy-bar.is-hidden {
    transform: translateY(110%);
    opacity: 0;
    pointer-events: none;
  }
  .mobile-buy-cta {
    flex: 1 1 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    box-sizing: border-box;
    text-align: center;
    font-size: 0.9rem;
    padding: 0.55rem 0.9rem;
    box-shadow: 0 4px 12px rgba(1, 124, 243, 0.28);
  }
  .mobile-buy-free {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    box-sizing: border-box;
    font-family: "Poppins", "Noto Sans HK", system-ui, sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--navy);
    background: var(--sky);
    border: 1.5px solid var(--sky-deep);
    padding: 0.5rem 0.75rem;
    border-radius: 999px;
    text-decoration: none;
    white-space: nowrap;
  }

  /* 2. Simplify Hero on mobile: compact headline + 2 side-by-side CTA buttons, hide busy poster fans, social tabs & Drip stage */
  .hero { padding-top: 0.9rem; padding-bottom: 1.05rem; min-height: 0; }
  .hero h1 { font-size: 1.55rem; margin-bottom: 0.3rem; }
  .hero-text .sub { font-size: 0.88rem; line-height: 1.44; margin-bottom: 0.75rem; }
  .hero-offers {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    max-width: 390px;
    margin: 0 auto;
  }
  .hero-offer,
  .hero-upcoming-offer {
    width: 100%;
    margin: 0;
  }
  .hero-offer > .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    box-sizing: border-box;
    text-align: center;
    padding: 0.55rem 0.6rem;
    font-size: 0.84rem;
    white-space: nowrap;
  }
  .hero-freebies,
  .hero-preview-grade-row,
  .hero-upcoming-pane,
  .hero-upcoming-summary,
  .hero-visual,
  .drip-hero-stage {
    display: none !important;
  }

  /* 3. Collapsible drawers for #about (產品特色) & #watch (影片) on mobile (progressive enhancement: collapsed only when JS is enabled) */
  html.js-enabled .mobile-drawer-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    padding: 0.78rem 1rem;
    border-radius: 14px;
    border: 1.5px solid var(--sky-deep);
    background: #FFFFFF;
    color: var(--navy);
    font-family: "Poppins", "Noto Sans HK", system-ui, sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.35;
    text-align: left;
    box-shadow: 0 6px 16px rgba(3, 28, 76, 0.06);
    cursor: pointer;
  }
  .mobile-drawer-icon {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--sky);
    color: var(--navy);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1;
  }
  html.js-enabled .mobile-drawer-toggle[aria-expanded="true"] {
    border-color: var(--blue-light);
    margin-bottom: 0.9rem;
  }
  html.js-enabled .mobile-drawer-toggle[aria-expanded="true"] .mobile-drawer-icon {
    background: var(--navy);
    color: #FFFFFF;
  }
  html.js-enabled .about.is-mobile-collapsed,
  html.js-enabled .watch.is-mobile-collapsed {
    padding: 0.45rem 0.85rem;
  }
  html.js-enabled .is-mobile-collapsed .mobile-drawer-body {
    display: none;
  }
  .mobile-desktop-hint {
    display: block;
    max-width: 520px;
    margin: 0.65rem auto 0;
    font-size: 0.78rem;
    line-height: 1.45;
    color: #4A5B7A;
    text-align: center;
  }
  .about { padding: 0.85rem 0.85rem 1.2rem; }
  .eco-head { margin-bottom: 1rem; }
  .eco-head h2 { font-size: 1.15rem; margin: 0.35rem 0 0; }
  .eco-lead,
  .eco-grid-2 {
    display: none;
  }
  .eco-grid-3 {
    gap: 0.65rem;
    margin-bottom: 0.85rem;
  }
  .eco-card {
    display: grid;
    grid-template-columns: 106px 1fr;
    align-items: stretch;
    border-radius: 16px;
  }
  .eco-media {
    width: 106px;
    height: 100%;
    min-height: 118px;
    padding: 0.45rem;
    border-bottom: 0;
    border-right: 1px solid var(--sky-deep);
  }
  .eco-sheet { height: 84px; }
  .eco-sheet.back { transform: translateX(12px) translateY(2px) rotate(5deg) scale(0.9); }
  .eco-sheet.front { transform: translateX(-6px) rotate(-2deg); }
  .eco-sheet-stage.is-test-pair .eco-sheet.test-paper { transform: translateX(-14px) rotate(-3deg) scale(0.92); }
  .eco-sheet-stage.is-test-pair .eco-sheet.test-key { transform: translateX(14px) rotate(2deg); }
  .eco-annot-badge {
    top: 0.3rem;
    left: 0.3rem;
    font-size: 0.54rem;
    padding: 0.12rem 0.38rem;
  }
  .eco-zoom-pill {
    bottom: 0.3rem;
    right: 0.3rem;
    font-size: 0.58rem;
    padding: 0.14rem 0.44rem;
  }
  .eco-card-body {
    padding: 0.65rem 0.8rem;
    gap: 0.22rem;
    justify-content: center;
  }
  .eco-icon { font-size: 1.1rem; }
  .eco-tag { font-size: 0.68rem; padding: 0.14rem 0.5rem; }
  .eco-card h3 { font-size: 0.96rem; line-height: 1.28; }
  .eco-card p {
    font-size: 0.8rem;
    line-height: 1.38;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .eco-routine {
    padding: 0.9rem 0.85rem;
    border-radius: 16px;
  }
  .eco-routine-head { margin-bottom: 0.6rem; }
  .eco-routine-badge { font-size: 0.76rem; padding: 0.2rem 0.7rem; margin-bottom: 0.25rem; }
  .eco-routine-head h3 { font-size: 0.98rem; }
  .eco-steps { gap: 0.45rem; }
  .eco-step {
    flex-direction: row;
    justify-content: flex-start;
    text-align: left;
    padding: 0.5rem 0.7rem;
    gap: 0.5rem;
    border-radius: 12px;
  }
  .eco-step-badge { margin-bottom: 0; font-size: 0.68rem; padding: 0.16rem 0.5rem; white-space: nowrap; }
  .eco-step-title { font-size: 0.86rem; }
  .eco-step-sub { display: none; }

  /* 4. Compact horizontal product cards in #free-booklet (購買教材) on mobile */
  .booklet { padding: 1.15rem 0.85rem 1.2rem; }
  .booklet h2 { font-size: 1.38rem; margin-bottom: 0.45rem; }
  .upcoming-grid { gap: 0.6rem; max-width: 100%; }
  .upcoming-grid .card.up-card {
    display: grid;
    grid-template-columns: 80px 1fr;
    column-gap: 0.75rem;
    row-gap: 0.16rem;
    align-items: start;
    padding: 0.72rem 0.8rem;
    border-radius: 16px;
  }
  .up-card .up-cover-btn {
    grid-column: 1;
    grid-row: 1 / span 4;
    align-self: center;
    margin: 0 0 0.3rem;
  }
  .up-card .up-cover {
    width: 78px;
    margin: 0;
  }
  .up-card .up-cover-chip {
    font-size: 0.58rem;
    padding: 0.1rem 0.44rem;
    bottom: -7px;
  }
  .up-card .badge-inline {
    grid-column: 2;
    justify-self: start;
    margin-bottom: 0.05rem;
    font-size: 0.66rem;
    padding: 0.14rem 0.5rem;
  }
  .up-card h3 {
    grid-column: 2;
    font-size: 0.92rem;
    line-height: 1.28;
    margin: 0;
  }
  .up-card p:not(.track-actions) {
    grid-column: 2;
    font-size: 0.78rem;
    line-height: 1.32;
    margin: 0 0 0.28rem;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .up-card .track-actions {
    grid-column: 2;
    justify-content: flex-start;
    gap: 0.4rem;
    margin-top: 0.1rem;
  }
  .up-card .up-preview-btn,
  .up-card .btn.small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    box-sizing: border-box;
    font-size: 0.8rem;
    padding: 0.45rem 0.8rem;
  }

  /* 5. Compact #watch (9 videos) on mobile: horizontal swipe per unit + compact companion shelf */
  .watch { padding: 1.6rem 0.85rem; }
  .watch-intro { font-size: 0.88rem; margin-bottom: 1rem; }
  .unit { margin-bottom: 1.35rem; }
  .unit-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 0.75rem;
    padding: 0.1rem 0.1rem 0.55rem;
    -webkit-overflow-scrolling: touch;
  }
  .unit-grid .card-ep {
    flex: 0 0 72vw;
    max-width: 250px;
    margin: 0;
    scroll-snap-align: start;
  }
  .unit-companion {
    flex-direction: row;
    text-align: left;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0.85rem;
  }
  .comp-cover {
    width: 64px;
    margin-bottom: 0.35rem;
    flex-shrink: 0;
  }
  .comp-cover-ph {
    width: 64px;
    height: 90px;
    font-size: 0.75rem;
    flex-shrink: 0;
  }
  .comp-title { font-size: 0.92rem; line-height: 1.3; }
  .comp-sub { display: none; }
  .comp-actions {
    width: auto;
    flex-direction: column;
    gap: 0.4rem;
  }
  .comp-actions .btn.small,
  .comp-actions .btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    box-sizing: border-box;
    font-size: 0.78rem;
    padding: 0.42rem 0.75rem;
    white-space: nowrap;
  }
}

@media (max-width: 760px) and (pointer: coarse) {
  .site-header nav a { min-height: 44px; }
  .site-header .social-badge { width: 44px; height: 44px; }
  .site-header .social-badge svg { width: 18px; height: 18px; }
  .lang-toggle button { min-width: 40px; min-height: 44px; }
  .ig-follow-top, .fb-follow { min-width: 44px; min-height: 44px; }
}

@media (max-width: 420px) {
  .pack-unit-nav { gap: 0.38rem; }
  .pack-unit-btn { font-size: 0.76rem; padding: 0.42rem 0.35rem; }
  .pack-unit-kicker { font-size: 0.58rem; top: -9px; right: 2px; padding: 0.12rem 0.36rem; }
  .guide-grade-tab, .guide-unit-tab { font-size: 0.72rem; padding: 0.24rem 0.55rem; }
  .guide-tab { font-size: 0.7rem; padding: 0.28rem 0.52rem; }
  .tb-unit-tab { font-size: 0.72rem; padding: 0.28rem 0.45rem; }
}

@media (max-width: 360px) {
  :root { --stack-overhang: 80px; --strip: 24px; }
  .tab-panel.pos-1 { transform: translate(24px, 8px); }
  .tab-panel.pos-2 { transform: translate(48px, 16px); }
  .tab-strip { padding-top: 12px; }
  .ig-panel { padding: 8px; }
  .ig-head { gap: 4px; }
  .ig-stats { display: none; }
  .fb-head { gap: 4px; padding: 0 8px; }
  .upcoming-grid .card.up-card {
    grid-template-columns: 74px 1fr;
    column-gap: 0.6rem;
    padding: 0.7rem;
  }
  .up-card .up-cover { width: 72px; }
  .unit-companion { flex-wrap: wrap; }
  .comp-actions { width: 100%; flex-direction: row; flex-wrap: wrap; }
  .comp-actions .btn.small, .comp-actions .btn-ghost { flex: 1 1 auto; }
}
