:root {
  color-scheme: light;
  --bg: #f4f5f7;
  --bg-2: #fbfbfd;
  --text: #17181c;
  --text-2: #50535c;
  --text-3: #81848d;
  --surface: rgba(255,255,255,.66);
  --surface-strong: rgba(255,255,255,.82);
  --surface-solid: rgba(255,255,255,.94);
  --line: rgba(255,255,255,.28);
  --line-soft: rgba(23,24,28,.08);
  --shadow-1: 0 20px 60px rgba(12,18,30,.10);
  --shadow-2: 0 28px 80px rgba(12,18,30,.16);
  --accent: #0a84ff;
  --accent-2: #7ac9ff;
  --red: #ff5d5d;
  --green: #28c76f;
  --yellow: #f4b740;
  --blue: #0a84ff;
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --pill: 999px;
  --gutter: clamp(18px, 3vw, 30px);
  --page-max: 1240px;
  --nav-h: 56px;
  --ease: cubic-bezier(.22,.61,.36,1);
  --page-bg-image: none;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
}

body.dark {
  color-scheme: dark;
  --bg: #06070a;
  --bg-2: #0c0d10;
  --text: #f5f7fb;
  --text-2: #d2d6dd;
  --text-3: #9499a3;
  --surface: rgba(14,16,22,.58);
  --surface-strong: rgba(16,18,24,.78);
  --surface-solid: rgba(18,21,28,.92);
  --line: rgba(255,255,255,.10);
  --line-soft: rgba(255,255,255,.08);
  --shadow-1: 0 20px 60px rgba(0,0,0,.34);
  --shadow-2: 0 28px 80px rgba(0,0,0,.48);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(900px 460px at 12% -10%, rgba(122,201,255,.20), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(255,91,91,.12), transparent 48%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background-image: var(--page-bg-image);
  background-size: cover;
  background-position: center;
  opacity: .18;
  filter: blur(14px) saturate(1.05);
  transform: scale(1.08);
  transition: background-image .45s ease, opacity .35s ease;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(248,249,252,.72), rgba(244,245,247,.82));
  pointer-events: none;
}
body.dark::after {
  background:
    linear-gradient(180deg, rgba(8,10,14,.72), rgba(6,7,10,.84));
}

a { color: inherit; }
button, input, textarea, select { font: inherit; }
button {
  appearance: none;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
img { max-width: 100%; display: block; }

.global-nav {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--nav-h);
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  background: color-mix(in srgb, var(--surface-strong) 76%, transparent);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  width: min(calc(100% - var(--gutter) * 2), var(--page-max));
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}
.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--text), color-mix(in srgb, var(--text) 50%, transparent));
  color: var(--bg);
  font-size: 14px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border-radius: var(--pill);
  background: rgba(128,128,128,.10);
  border: 1px solid var(--line);
}
.nav-links button {
  min-height: 34px;
  padding: 0 14px;
  border-radius: var(--pill);
  color: var(--text-2);
  transition: all .25s var(--ease);
}
.nav-links button:hover,
.nav-links button.is-active {
  background: var(--surface-solid);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.22);
}
.nav-actions { display: flex; gap: 8px; align-items: center; }
.nav-pill,
.icon-button {
  min-height: 34px;
  border-radius: var(--pill);
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 0 14px;
  backdrop-filter: blur(12px);
}
.icon-button {
  width: 36px;
  padding: 0;
  display: grid;
  place-items: center;
}

.app-root {
  width: min(calc(100% - var(--gutter) * 2), var(--page-max));
  margin: 0 auto;
  padding: clamp(24px, 4vw, 44px) 0 clamp(56px, 8vw, 96px);
}
.loading-panel {
  min-height: 60vh;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
}
.spinner {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid rgba(128,128,128,.20);
  border-top-color: var(--accent);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.page-shell { display: grid; gap: 30px; }
.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 560px);
  gap: clamp(24px, 4vw, 50px);
  align-items: center;
  min-height: min(74svh, 780px);
}
.home-hero { min-height: min(82svh, 880px); }
.hero-copy { position: relative; z-index: 1; }
.eyebrow,
.section-kicker,
.feature-kicker {
  margin: 0;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: -.01em;
  font-size: 15px;
}
.page-title {
  margin: 10px 0 0;
  font-size: clamp(42px, 7vw, 88px);
  line-height: .96;
  letter-spacing: -.06em;
  font-weight: 760;
}
.page-sub {
  margin: 18px 0 0;
  max-width: 48ch;
  color: var(--text-2);
  font-size: clamp(17px, 2.3vw, 22px);
  line-height: 1.42;
}
.hero-actions,
.toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 28px;
}
.hero-metrics {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.hero-metrics span,
.pill,
.badge {
  border-radius: var(--pill);
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-strong) 78%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.hero-metrics span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  color: var(--text-2);
  font-size: 14px;
}
.hero-metrics strong { color: var(--text); font-size: 15px; }

.btn {
  min-height: 46px;
  padding: 0 18px;
  border-radius: var(--pill);
  font-weight: 600;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn.primary {
  background: linear-gradient(135deg, var(--accent), #4db6ff);
  color: #fff;
  box-shadow: 0 16px 34px rgba(10,132,255,.24);
}
.btn.secondary {
  background: var(--surface-strong);
  color: var(--text);
  border: 1px solid var(--line);
}
.btn.danger,
.btn.red {
  background: rgba(255,95,95,.16);
  color: #c93333;
  border: 1px solid rgba(255,95,95,.22);
}

.glass-panel {
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface-strong) 90%, transparent), color-mix(in srgb, var(--surface) 92%, transparent));
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
}
.lift-panel {
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.lift-panel:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2);
  border-color: rgba(255,255,255,.26);
}
.hero-art-shell {
  padding: 18px;
  display: grid;
  gap: 12px;
}
.hero-art-note {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-2);
  font-size: 14px;
  padding: 0 4px 4px;
}
.hero-art-note strong { color: var(--text); font-weight: 600; }

.article-card h3,
.section-head h2,
.reader-card h3,
.metric-card strong {
  margin: 0;
  letter-spacing: -.03em;
}
.feature-meta,
.section-head p,
.metric-card em,
.empty-state p,
.reader-body p,
.list-card p,
.info-card,
.local-data-row,
.muted,
.article-card p {
  color: var(--text-2);
}
.article-card p,
.list-card p,
.reader-body p,
.local-data-row span { line-height: 1.6; }
.feature-meta {
  font-size: 13px;
  color: var(--text);
  font-weight: 600;
}

.section-block { display: grid; gap: 18px; }
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}
.compact-head { margin-top: -6px; }
.section-head h2 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.02;
}
.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.summary-grid.two-up { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.metric-card {
  min-height: 148px;
  padding: 22px;
  display: grid;
  align-content: start;
  gap: 10px;
}
.metric-card span { color: var(--text-2); font-size: 14px; }
.metric-card strong { font-size: clamp(34px, 4vw, 54px); }
.metric-card em { font-style: normal; font-size: 14px; }

.quiz-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
  gap: 18px;
}
.quiz-card,
.info-card,
.reader-card,
.empty-state,
.article-card,
.list-card,
.drawer,
.local-data-row {
  border-radius: var(--radius-xl);
}
.quiz-card,
.info-card,
.reader-card,
.empty-state,
.article-card,
.list-card { padding: clamp(20px, 3vw, 28px); }
.quiz-top,
.list-meta,
.drawer-head,
.local-data-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.pill { padding: 8px 12px; font-size: 13px; color: var(--text-2); }
.word-main {
  margin: 18px 0 0;
  font-size: clamp(42px, 6vw, 70px);
  line-height: .98;
  letter-spacing: -.05em;
}
.phonetic,
.phonetic-small { color: var(--text-3); }
.phonetic { margin: 8px 0 22px; font-size: 18px; }
.options-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.quiz-option {
  min-height: 92px;
  padding: 16px;
  text-align: left;
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--surface-solid) 92%, transparent);
  border: 1px solid var(--line-soft);
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.quiz-option:hover { transform: translateY(-2px); box-shadow: var(--shadow-1); }
.quiz-option.answer { border-color: rgba(40,199,111,.35); }
.quiz-option.good { background: rgba(40,199,111,.12); }
.quiz-option.bad { background: rgba(255,93,93,.12); }
.option-letter {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(128,128,128,.12);
  color: var(--text);
  font-weight: 700;
}
.feedback {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  font-size: 15px;
}
.feedback.good { background: rgba(40,199,111,.14); color: #15703f; }
.feedback.bad { background: rgba(255,93,93,.12); color: #b33c3c; }
body.dark .feedback.good { color: #7ee3aa; }
body.dark .feedback.bad { color: #ff9999; }
.wide-toolbar { justify-content: space-between; }
.info-card { display: grid; gap: 14px; align-content: start; }
.status-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
.status-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
}
.status-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.status-list span { color: var(--text-2); }
.mini-progress { display: grid; gap: 8px; }
.mini-progress label { color: var(--text-2); font-size: 14px; }
.track {
  height: 10px;
  border-radius: var(--pill);
  overflow: hidden;
  background: rgba(128,128,128,.14);
}
.track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #6dd3ff);
}
.segmented {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.segment-btn {
  min-height: 40px;
  padding: 0 14px;
  border-radius: var(--pill);
  background: rgba(128,128,128,.10);
  border: 1px solid var(--line);
  color: var(--text-2);
}
.segment-btn.is-active,
.segment-btn:hover {
  background: var(--surface-solid);
  color: var(--text);
}

.list-grid,
.article-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.list-grid.single-col { grid-template-columns: 1fr; }
.list-card h3,
.article-card h3 { font-size: 28px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  font-size: 12px;
  color: var(--text-2);
}
.badge.red { background: rgba(255,93,93,.12); color: #b33c3c; }
.badge.yellow { background: rgba(244,183,64,.14); color: #8a6504; }
.badge.green { background: rgba(40,199,111,.14); color: #117044; }
.badge.blue { background: rgba(10,132,255,.14); color: #0a5db7; }
body.dark .badge.red { color: #ffa4a4; }
body.dark .badge.yellow { color: #ffd36d; }
body.dark .badge.green { color: #80e7b1; }
body.dark .badge.blue { color: #90caff; }
.empty-state { text-align: center; }
.empty-state h3 { margin: 0 0 10px; font-size: 28px; }
.article-card {
  text-align: left;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface-strong) 90%, transparent), color-mix(in srgb, var(--surface) 94%, transparent));
}
.reader-card { padding-top: 24px; }
.reader-body {
  font-size: 18px;
  line-height: 1.9;
}
.reader-body p { margin: 0 0 1.2em; }
.vocab-token {
  display: inline;
  padding: 0;
  color: var(--accent);
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.vocab-token:hover { opacity: .82; }
.vocab-token.is-open {
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border-radius: 6px;
  text-decoration-thickness: 2px;
}
.inline-vocab-meaning {
  display: inline;
  margin: 0 .3em;
  padding: .14em .48em;
  border-radius: .6em;
  background: color-mix(in srgb, var(--accent) 10%, var(--surface-solid));
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  color: var(--text);
  font-size: .82em;
  line-height: 1.55;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.inline-vocab-phonetic {
  margin-right: .45em;
  color: var(--text-3);
  white-space: nowrap;
}
.inline-vocab-definition {
  color: var(--text-2);
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.28);
  z-index: 70;
  backdrop-filter: blur(8px);
}
.drawer {
  position: fixed;
  right: clamp(12px, 3vw, 28px);
  top: calc(var(--nav-h) + 18px);
  bottom: clamp(12px, 3vw, 28px);
  width: min(480px, calc(100vw - 24px));
  z-index: 80;
  padding: 22px;
  overflow: auto;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface-strong) 92%, transparent), color-mix(in srgb, var(--surface) 96%, transparent));
  border: 1px solid var(--line);
  box-shadow: var(--shadow-2);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
}
.drawer-head { align-items: flex-start; }
.close-button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(128,128,128,.12);
  display: grid;
  place-items: center;
  font-size: 22px;
}
.drawer-visual-shell { margin: 18px 0; }
.local-data-row {
  padding: 18px;
  margin-top: 12px;
  display: grid;
  gap: 10px;
  align-items: start;
  background: rgba(128,128,128,.08);
  border: 1px solid var(--line-soft);
}
.cloud-form { display: grid; gap: 10px; }
.cloud-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  background: var(--surface-strong);
}
.cloud-status.ok { color: #16a34a; }
.cloud-status.error { color: #dc2626; }

@media (max-width: 1080px) {
  .page-hero,
  .quiz-layout,
  .summary-grid { grid-template-columns: 1fr 1fr; }
  .page-hero { grid-template-columns: 1fr; }
  .hero-art-shell { order: -1; }
}

@media (max-width: 760px) {
  .nav-inner { gap: 10px; }
  .brand-text { display: none; }
  .nav-links { overflow: auto; max-width: 56vw; }
  .summary-grid,
  .list-grid,
  .article-grid,
  .summary-grid.two-up,
  .options-grid { grid-template-columns: 1fr; }
  .hero-metrics,
  .hero-actions,
  .toolbar,
  .section-head,
  .drawer-head,
  .quiz-top,
  .wide-toolbar { align-items: stretch; justify-content: flex-start; }
  .section-head { flex-direction: column; }
  .page-title { font-size: clamp(38px, 10vw, 58px); }
  .drawer { left: 12px; right: 12px; width: auto; }
}


/* Functional Lenis-style product UI integrated with the original trainer */
.app-root {
  width: 100%;
  max-width: none;
  padding: 0;
}

.global-nav {
  z-index: 50;
}

body::before {
  opacity: .12;
  filter: blur(10px) saturate(1.04);
}
body::after {
  background: linear-gradient(180deg, rgba(248,249,252,.22), rgba(244,245,247,.32));
}
body.dark::after {
  background: linear-gradient(180deg, rgba(6,8,12,.44), rgba(6,7,10,.55));
}

.page-shell {
  width: min(calc(100% - var(--gutter) * 2), var(--page-max));
  margin: 0 auto;
  padding: clamp(86px, 8vw, 116px) 0 clamp(56px, 8vw, 96px);
}

.lenis-home-shell {
  width: 100%;
  overflow: hidden;
}

.home-product-section {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: clamp(92px, 9vw, 130px) var(--gutter);
}

.section-bg {
  position: absolute;
  inset: -8vh -7vw;
  z-index: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.08);
  pointer-events: none;
}

.home-bg-layer {
  background-image:
    linear-gradient(rgba(245,246,248,.10), rgba(245,246,248,.10)),
    url("./assets/verstappen/verstappen-08.png");
}

.modules-bg-layer {
  background-image:
    linear-gradient(rgba(245,246,248,.10), rgba(245,246,248,.10)),
    url("./assets/verstappen/verstappen-07.png");
}

.cosmic-static-bg {
  background-image:
    linear-gradient(rgba(5,7,13,.44), rgba(5,7,13,.44)),
    url("./assets/cosmic/cosmic-10.png");
}

.final-bg-layer {
  background-image:
    linear-gradient(rgba(245,246,248,.10), rgba(245,246,248,.10)),
    url("./assets/cosmic/cosmic-14.png");
}

.home-product-grid,
.cosmic-content,
.final-layout {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
}

.home-product-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 430px);
  gap: clamp(28px, 4vw, 54px);
  align-items: center;
}

.home-product-copy,
.hero-copy {
  position: relative;
  z-index: 2;
}

.home-product-hero .page-title,
.cosmic-content h2 {
  font-size: clamp(54px, 7vw, 106px);
  line-height: .9;
  letter-spacing: -.075em;
}

.home-product-hero .page-sub,
.cosmic-content p {
  max-width: 48ch;
}

.visual-card,
.hero-art-shell {
  border-radius: 42px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.56);
  background: rgba(255,255,255,.72);
  box-shadow: 0 26px 82px rgba(0,0,0,.16);
}

.visual-image {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  border-radius: inherit;
}

.visual-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.04);
}

.hero-visual {
  min-height: clamp(430px, 48vw, 610px);
}

.hero-art-note {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border-radius: var(--pill);
  color: #fff;
  background: rgba(0,0,0,.34);
  backdrop-filter: blur(16px);
  z-index: 3;
}

.module-section {
  color: var(--text);
}

.module-section .section-head {
  position: relative;
  z-index: 2;
}

.cosmic-section {
  color: #fff;
}

.cosmic-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: clamp(28px, 4vw, 52px);
  align-items: center;
}

.cosmic-content .section-kicker,
.cosmic-content .page-sub,
.cosmic-content p {
  color: rgba(255,255,255,.76);
}

.cosmic-content h2 {
  margin: 0 0 18px;
  color: #fff;
}

.cosmic-preview-card {
  position: relative;
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.18);
}

.cosmic-preview-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,.46), rgba(0,0,0,.15) 56%, rgba(0,0,0,.08)),
    radial-gradient(circle at 30% 50%, rgba(0,0,0,.32), transparent 42%);
  pointer-events: none;
  z-index: 1;
}

.phone-stack {
  position: absolute;
  z-index: 2;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  gap: 12px;
  width: min(300px, calc(100% - 48px));
}

.mini-route {
  text-align: left;
  min-height: 78px;
  border-radius: 22px;
  padding: 16px 18px;
  background: rgba(12,18,32,.50);
  border-color: rgba(255,255,255,.22);
  color: #fff;
}

.mini-route strong {
  display: block;
  font-size: 22px;
  margin-bottom: 4px;
}

.mini-route span {
  color: rgba(255,255,255,.76);
}

.final-section {
  min-height: 96svh;
}

.final-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr);
  gap: 22px;
  align-items: stretch;
}

[data-motion] {
  opacity: 0;
  transform: translateY(42px);
  transition: opacity .65s var(--ease), transform .65s var(--ease);
}

[data-motion].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.page-hero {
  min-height: min(72svh, 760px);
}

.inner-hero .hero-visual {
  min-height: clamp(300px, 34vw, 480px);
}

.drawer-visual-shell .visual-image {
  min-height: 220px;
}




@media (max-width: 980px) {
  .home-product-grid,
  .cosmic-content,
  .final-layout,
  .page-hero {
    grid-template-columns: 1fr;
  }
  .home-product-section {
    padding-left: 18px;
    padding-right: 18px;
  }
  .phone-stack {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    width: 100%;
    margin-top: 18px;
  }
}

@media (max-width: 760px) {
  .hero-art-note {
    position: static;
    margin: 12px;
    color: var(--text);
    background: rgba(255,255,255,.72);
  }
  .home-product-hero .page-title,
  .cosmic-content h2 {
    font-size: clamp(42px, 14vw, 68px);
  }
}


.visual-card, .hero-art-shell { position: relative; }


/* v2 redesign: stronger readability and better product hierarchy on the first screen */
.home-product-hero {
  min-height: 100svh;
}

.home-product-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(4,9,18,.70) 0%, rgba(4,9,18,.58) 34%, rgba(4,9,18,.28) 58%, rgba(4,9,18,.08) 100%),
    linear-gradient(180deg, rgba(4,9,18,.18), rgba(4,9,18,.22));
}

.home-product-hero .home-product-grid {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: clamp(24px, 4vw, 46px);
}

.home-product-hero .home-product-copy {
  max-width: 760px;
  color: #fff;
}

.hero-copy-panel {
  padding: clamp(24px, 3vw, 34px);
  border-radius: 36px;
  background: linear-gradient(180deg, rgba(7,12,22,.52), rgba(7,12,22,.34));
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 28px 90px rgba(0,0,0,.22);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.home-product-hero .eyebrow {
  color: #4ea3ff;
}

.home-product-hero .page-title {
  font-size: clamp(48px, 6vw, 84px);
  line-height: .94;
  letter-spacing: -.06em;
  margin: 10px 0 18px;
  color: #fff;
  text-wrap: balance;
}

.home-product-hero .page-sub {
  max-width: 34ch;
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.62;
  color: rgba(255,255,255,.86);
  margin-bottom: 0;
}

.home-product-hero .hero-actions {
  margin-top: 26px;
}

.home-product-hero .btn.secondary {
  background: rgba(255,255,255,.92);
  color: #101418;
  border-color: rgba(255,255,255,.92);
}

.home-product-hero .hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
  max-width: 760px;
}

.home-product-hero .hero-metrics span {
  justify-content: flex-start;
  padding: 14px 16px;
  min-height: 58px;
  color: rgba(255,255,255,.82);
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.16);
}

.home-product-hero .hero-metrics strong {
  display: inline-block;
  color: #fff;
  font-size: 16px;
  margin-right: 2px;
}

.home-product-hero .hero-art-shell {
  max-width: 360px;
  justify-self: end;
  padding: 14px;
  background: rgba(255,255,255,.66);
  border-color: rgba(255,255,255,.34);
  box-shadow: 0 24px 72px rgba(0,0,0,.16);
}

.home-product-hero .hero-visual {
  min-height: clamp(360px, 42vw, 530px);
}

.home-product-hero .hero-art-note {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  color: #fff;
  font-size: 14px;
  background: rgba(8,10,16,.38);
  border-radius: 999px;
  z-index: 4;
}

.home-product-hero .hero-art-note strong {
  color: #fff;
}

@media (max-width: 980px) {
  .home-product-hero .hero-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .home-product-hero .home-product-grid {
    grid-template-columns: 1fr;
  }
  .home-product-hero .hero-art-shell {
    max-width: 420px;
    justify-self: start;
  }
}

@media (max-width: 760px) {
  .hero-copy-panel {
    padding: 22px 18px;
    border-radius: 28px;
  }
  .home-product-hero .page-title {
    font-size: clamp(40px, 12vw, 58px);
  }
  .home-product-hero .page-sub {
    font-size: 16px;
  }
  .home-product-hero .hero-metrics {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
}


/* v3: fix readability on busy backgrounds for MODULES and FINAL sections */
.module-section .section-head {
  max-width: 920px;
  padding: clamp(22px, 3vw, 34px);
  margin-bottom: 26px;
  border-radius: 34px;
  background: linear-gradient(180deg, rgba(7,12,22,.58), rgba(7,12,22,.38));
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 24px 80px rgba(0,0,0,.20);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.module-section .section-head h2 {
  max-width: 760px;
  font-size: clamp(38px, 5vw, 66px);
  line-height: .98;
  letter-spacing: -.06em;
  color: #fff;
  text-wrap: balance;
}

.module-section .section-head p {
  max-width: 54ch;
  color: rgba(255,255,255,.84);
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.58;
}

.module-section .section-kicker {
  color: #4ea3ff;
}

.module-section .summary-grid {
  margin-top: 22px;
}

.module-section .metric-card {
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(255,255,255,.66);
  box-shadow: 0 18px 58px rgba(0,0,0,.13);
}

.module-section .metric-card span,
.module-section .metric-card em {
  color: rgba(20,24,31,.72);
}

.module-section .metric-card strong {
  color: #111318;
}

.final-section .section-kicker {
  color: #4b5565;
}



@media (max-width: 760px) {
  .module-section .section-head {
    padding: 22px 18px;
    border-radius: 28px;
  }
  .module-section .section-head h2 {
    font-size: clamp(36px, 11vw, 54px);
  }
}


/* v4: move module metric cards away from the center eye-gaze focal point */
.module-section .summary-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(138px, auto));
  gap: 18px;
  align-items: stretch;
  margin-top: 24px;
  margin-bottom: 10px;
}

.module-section .summary-grid .metric-card {
  min-height: 138px;
  max-width: 290px;
  width: 100%;
}

.module-section .summary-grid .metric-card:nth-child(1) {
  grid-column: 1 / span 3;
  grid-row: 1;
  justify-self: start;
}

.module-section .summary-grid .metric-card:nth-child(2) {
  grid-column: 10 / span 3;
  grid-row: 1;
  justify-self: end;
}

.module-section .summary-grid .metric-card:nth-child(3) {
  grid-column: 1 / span 3;
  grid-row: 2;
  justify-self: start;
}

.module-section .summary-grid .metric-card:nth-child(4) {
  grid-column: 10 / span 3;
  grid-row: 2;
  justify-self: end;
}

@media (max-width: 1180px) {
  .module-section .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
  }
  .module-section .summary-grid .metric-card {
    max-width: none;
    justify-self: stretch;
  }
  .module-section .summary-grid .metric-card:nth-child(1),
  .module-section .summary-grid .metric-card:nth-child(2),
  .module-section .summary-grid .metric-card:nth-child(3),
  .module-section .summary-grid .metric-card:nth-child(4) {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 760px) {
  .module-section .summary-grid {
    grid-template-columns: 1fr;
  }
}


/* v7: approved module section based on the final preview */
.approved-modules-stage {
  min-height: 100svh;
  padding-top: clamp(94px, 10vw, 132px);
  padding-bottom: clamp(24px, 4vw, 46px);
  display: block;
}

.approved-modules-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(6,10,18,.18) 0%, rgba(6,10,18,.22) 34%, rgba(6,10,18,.14) 100%),
    linear-gradient(90deg, rgba(6,10,18,.08) 0%, rgba(6,10,18,.02) 38%, rgba(6,10,18,.02) 62%, rgba(6,10,18,.08) 100%);
}

.approved-home-inner {
  position: relative;
  z-index: 2;
  width: min(1080px, calc(100% - 48px));
  min-height: calc(100svh - 170px);
  margin: 0 auto;
}

.approved-home-hero {
  width: min(720px, 100%);
  margin: 0 auto;
  padding: 28px 30px 30px;
  border-radius: 30px;
  color: #fff;
  background: linear-gradient(180deg, rgba(10,18,30,.74), rgba(10,18,30,.56));
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 28px 80px rgba(0,0,0,.22);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.approved-home-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: start;
}

.approved-home-kicker {
  margin: 0 0 10px;
  color: rgba(255,255,255,.82);
  font-weight: 800;
  font-size: 14px;
}

.approved-home-hero h2 {
  margin: 0;
  max-width: 620px;
  font-size: clamp(40px, 4.4vw, 62px);
  line-height: .98;
  letter-spacing: -.058em;
  color: #fff;
  text-wrap: balance;
}

.approved-home-hero p:last-child {
  max-width: 54ch;
  margin: 4px 0 0;
  color: rgba(255,255,255,.84);
  font-size: 16.5px;
  line-height: 1.62;
}

.approved-home-cards {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(1080px, calc(100% - 48px));
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.approved-module-card {
  display: flex;
  flex-direction: column;
  height: 430px;
  text-align: left;
  overflow: hidden;
  border-radius: 30px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(255,255,255,.74);
  box-shadow: 0 22px 72px rgba(0,0,0,.17);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
}

.approved-module-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 88px rgba(0,0,0,.20);
  border-color: rgba(255,255,255,.92);
}

.approved-module-media {
  height: 301px;
  flex: 0 0 301px;
  overflow: hidden;
  background: #0b1321;
  border-radius: 30px 30px 0 0;
}

.approved-module-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.035);
}

.approved-module-copy {
  flex: 1 1 auto;
  min-height: 129px;
  display: flex;
  flex-direction: column;
  padding: 16px 18px 14px;
  background: linear-gradient(180deg, rgba(255,255,255,.99), rgba(255,255,255,.91));
}

.approved-module-kicker {
  display: block;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 6px;
}

.approved-module-copy h3 {
  margin: 0 0 10px;
  font-size: 26px;
  line-height: 1.04;
  letter-spacing: -.04em;
  color: #111318;
}

.approved-module-meta {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.approved-meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(10,18,30,.06);
  color: #222933;
  font-size: 11px;
  line-height: 1;
  white-space: nowrap;
}

.approved-meta-chip strong {
  font-size: 16px;
  line-height: 1;
  letter-spacing: -.04em;
  color: #111318;
}

@media (max-width: 980px) {
  .approved-modules-stage {
    min-height: auto;
  }

  .approved-home-inner {
    min-height: auto;
    width: min(100%, calc(100% - 28px));
  }

  .approved-home-cards {
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
    width: 100%;
    margin-top: 160px;
    grid-template-columns: 1fr;
  }

  .approved-module-card {
    height: auto;
  }

  .approved-module-media {
    height: 300px;
    flex: 0 0 auto;
  }
}

@media (max-width: 760px) {
  .approved-home-hero {
    padding: 22px 18px 22px;
    border-radius: 26px;
  }

  .approved-home-hero h2 {
    font-size: clamp(36px, 11.5vw, 54px);
  }

  .approved-home-hero p:last-child {
    font-size: 15px;
  }

  .approved-module-card {
    border-radius: 24px;
  }
}

/* fix: make REVIEW FLOW right preview image fill the whole card */
.cosmic-preview-card {
  position: relative;
  overflow: hidden;
  min-height: clamp(430px, 48vw, 610px);
}

/* force the image container to cover the full preview card */
.cosmic-preview-card .visual-image,
.cosmic-preview-card .hero-visual {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: inherit;
}

/* force the actual image to cover the full card */
.cosmic-preview-card .visual-image img,
.cosmic-preview-card .hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transform: scale(1.04);
}

/* keep the dark overlay above the image */
.cosmic-preview-card::after {
  z-index: 1;
}

/* keep the buttons above both image and overlay */
.cosmic-preview-card .phone-stack {
  position: absolute;
  z-index: 2;
}

/* fix: make the three approved module images fill the whole card */
.approved-module-card {
  position: relative;
  overflow: hidden;
  background: #0b1321;
}

/* fix: keep approved module images full-card but remove dark dimming */
.approved-module-card::after {
  display: none !important;
  content: none !important;
}

/* keep the image filling the whole module card */
.approved-module-card .approved-module-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  flex: none;
  border-radius: inherit;
  z-index: 0;
}

/* restore full brightness */
.approved-module-card .approved-module-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.035);
  filter: none !important;
  opacity: 1 !important;
}

/* remove the dark gradient behind text */
.approved-module-card .approved-module-copy {
  position: relative;
  z-index: 2;
  margin-top: auto;
  min-height: 132px;
  background: transparent !important;
  color: #fff;
}

/* keep text visible without dimming the whole image */
.approved-module-card .approved-module-copy h3 {
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,.45);
}

.approved-module-card .approved-module-kicker {
  color: rgba(255,255,255,.94);
  text-shadow: 0 1px 6px rgba(0,0,0,.45);
}

/* keep chips readable with only small local glass effect */
.approved-module-card .approved-meta-chip {
  background: rgba(255,255,255,.18);
  color: rgba(255,255,255,.94);
  border: 1px solid rgba(255,255,255,.24);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.approved-module-card .approved-meta-chip strong {
  color: #fff;
}

/* enlarge approved module bottom-left stats chips: text + glass capsule */
.approved-module-card .approved-module-meta {
  gap: 12px !important;
  flex-wrap: wrap !important;
}

.approved-module-card .approved-meta-chip {
  font-size: 22px !important;
  min-height: 56px !important;
  padding: 14px 22px !important;
  gap: 14px !important;
  border-radius: 999px !important;

  background: rgba(255,255,255,.22) !important;
  border: 1px solid rgba(255,255,255,.30) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;

  color: rgba(255,255,255,.94) !important;
}

.approved-module-card .approved-meta-chip strong {
  font-size: 32px !important;
  line-height: 1 !important;
  color: #fff !important;
}


/* final section: three separated module cards */
.final-bg-layer {
  filter: saturate(.82) contrast(1.06) brightness(.72);
}

.final-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(4,7,14,.68), rgba(4,7,14,.34), rgba(4,7,14,.58)),
    linear-gradient(180deg, rgba(4,7,14,.36), rgba(4,7,14,.64));
}

/* top text module: frosted glass */
.final-split-hero {
  width: min(720px, calc(100% - 32px));
  margin: 0 auto clamp(32px, 4vw, 48px);
  padding: clamp(24px, 3vw, 34px) clamp(22px, 3vw, 36px);
  border-radius: 28px;
  color: #fff;
  background: rgba(10, 18, 30, .72);
  border: 1px solid rgba(255, 255, 255, .18);
  box-shadow: 0 24px 64px rgba(0, 0, 0, .18);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  position: relative;
  z-index: 2;
}

.final-split-hero .section-kicker {
  color: rgba(255, 255, 255, .76);
}

.final-split-hero h2 {
  color: #fff;
  font-size: clamp(48px, 5.5vw, 76px);
  line-height: .96;
  letter-spacing: -.065em;
  margin: 0;
}

.final-split-hero p {
  color: rgba(255, 255, 255, .82);
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.5;
  margin: 12px 0 0;
}

/* three-card grid */
.final-module-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 20px);
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
}

/* single card: full-bleed image, no dimming */
.final-module-card {
  position: relative;
  overflow: hidden;
  height: clamp(380px, 42vw, 480px);
  border-radius: 28px;
  background: #0b1321;
  border: 1px solid rgba(255, 255, 255, .18);
  box-shadow: 0 18px 56px rgba(0, 0, 0, .22);
  cursor: pointer;
  text-align: left;
  color: #fff;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease);
}

.final-module-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 72px rgba(0, 0, 0, .28);
}

/* image layer fills entire card */
.final-module-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  border-radius: inherit;
  overflow: hidden;
}

.final-module-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  transform: scale(1.035);
  filter: none;
  opacity: 1;
}

/* text layer: floats at bottom with glass gradient strip */
.final-module-copy {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  padding: 22px 20px 18px;
  background: linear-gradient(180deg, transparent 0%, rgba(4, 8, 18, .50) 28%, rgba(4, 8, 18, .82) 100%);
  pointer-events: none;
}

.final-module-copy h3 {
  margin: 0;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.08;
  letter-spacing: -.04em;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .5);
}

.final-module-kicker {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, .86);
  text-shadow: 0 1px 4px rgba(0, 0, 0, .5);
  margin-bottom: 6px;
}

.final-module-copy p {
  margin: 6px 0 0;
  font-size: 14px;
  color: rgba(255, 255, 255, .82);
  text-shadow: 0 1px 4px rgba(0, 0, 0, .45);
  max-width: 28ch;
}

@media (max-width: 980px) {
  .final-module-grid {
    grid-template-columns: 1fr;
    width: min(100%, calc(100% - 28px));
    gap: 14px;
  }

  .final-module-card {
    height: clamp(340px, 60vw, 420px);
  }

  .final-split-hero {
    width: min(100%, calc(100% - 28px));
  }
}

@media (max-width: 760px) {
  .final-split-hero h2 {
    font-size: clamp(38px, 10vw, 54px);
  }

  .final-module-card {
    height: clamp(300px, 56vw, 380px);
  }
}

/* final page relative-position fix: match Verstappen module page layout */
.final-section {
  min-height: 100svh !important;
  display: block !important;
  padding-top: clamp(94px, 10vw, 132px) !important;
  padding-bottom: clamp(28px, 4vw, 52px) !important;
}

/* use the same logic as Verstappen page:
   parent is relative, title stays near top, cards are anchored at bottom */
.final-section .final-layout {
  position: relative !important;
  z-index: 2 !important;
  display: block !important;
  width: min(1080px, calc(100% - 48px)) !important;
  min-height: calc(100svh - 180px) !important;
  margin: 0 auto !important;
}

/* title panel: not too high, no negative upward pull */
.final-section .final-split-hero {
  position: relative !important;
  width: min(720px, 100%) !important;
  margin: 0 auto !important;
  transform: none !important;
  z-index: 3 !important;
}

/* cards: move to lower area like Verstappen cards */
.final-section .final-module-grid {
  position: absolute !important;
  left: 50% !important;
  bottom: 0 !important;
  transform: translateX(-50%) !important;

  width: min(1080px, 100%) !important;
  margin: 0 !important;

  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: clamp(18px, 2vw, 26px) !important;
  align-items: stretch !important;
  z-index: 3 !important;
}

/* keep cards normal and wide, not vertical strips */
.final-section .final-module-card {
  width: 100% !important;
  min-width: 0 !important;
  height: clamp(320px, 28vw, 390px) !important;
  border-radius: 30px !important;
}

/* image still fills full card */
.final-section .final-module-media {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  border-radius: inherit !important;
  overflow: hidden !important;
}

.final-section .final-module-media img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
}

/* text stays inside card */
.final-section .final-module-copy {
  position: absolute !important;
  inset: auto 0 0 0 !important;
  z-index: 2 !important;
  padding: 22px 20px 18px !important;
}

/* mobile: return to simple vertical flow */
@media (max-width: 980px) {
  .final-section {
    display: grid !important;
    padding-top: 84px !important;
    padding-bottom: 80px !important;
  }

  .final-section .final-layout {
    width: min(100%, calc(100% - 28px)) !important;
    min-height: auto !important;
    display: grid !important;
    gap: 28px !important;
  }

  .final-section .final-module-grid {
    position: relative !important;
    left: auto !important;
    bottom: auto !important;
    transform: none !important;
    width: 100% !important;
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .final-section .final-module-card {
    height: clamp(300px, 58vw, 400px) !important;
  }
}

/* first hero right card: make image fill the whole module and hide left note text */
.home-product-hero .hero-art-shell {
  position: relative !important;
  overflow: hidden !important;
  padding: 0 !important;
  border-radius: 42px !important;
}

/* make the image container fill the whole card */
.home-product-hero .hero-art-shell .visual-image,
.home-product-hero .hero-art-shell .hero-visual {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  border-radius: inherit !important;
}

/* make the actual image cover the full card */
.home-product-hero .hero-art-shell .visual-image img,
.home-product-hero .hero-art-shell .hero-visual img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
  transform: scale(1.035) !important;
}

/* keep the bottom note above the full image */
.home-product-hero .hero-art-note {
  position: absolute !important;
  left: 18px !important;
  right: 18px !important;
  bottom: 18px !important;
  z-index: 4 !important;
}

/* remove only the left-bottom small text: 今日建议 */
.home-product-hero .hero-art-note span {
  display: none !important;
}

/* keep the right-bottom text visible */
.home-product-hero .hero-art-note strong {
  margin-left: auto !important;
  color: #fff !important;
}

/* fix first hero right card collapse after absolute image fill */
.home-product-hero .hero-art-shell {
  position: relative !important;
  overflow: hidden !important;
  padding: 0 !important;

  max-width: 360px !important;
  width: min(360px, 100%) !important;

  height: clamp(420px, 42vw, 530px) !important;
  min-height: clamp(420px, 42vw, 530px) !important;

  border-radius: 42px !important;
  display: block !important;
}

/* image layer fills the whole card */
.home-product-hero .hero-art-shell .visual-image,
.home-product-hero .hero-art-shell .hero-visual {
  position: absolute !important;
  inset: 0 !important;

  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;

  border-radius: inherit !important;
  overflow: hidden !important;
}

/* actual image covers full card */
.home-product-hero .hero-art-shell .visual-image img,
.home-product-hero .hero-art-shell .hero-visual img {
  width: 100% !important;
  height: 100% !important;

  object-fit: cover !important;
  object-position: center center !important;

  display: block !important;
  transform: scale(1.035) !important;
}

/* bottom note becomes a small bottom-right pill, not a full-width empty bar */
.home-product-hero .hero-art-note {
  position: absolute !important;

  left: auto !important;
  right: 18px !important;
  bottom: 18px !important;

  width: auto !important;
  max-width: calc(100% - 36px) !important;

  z-index: 4 !important;
  padding: 10px 14px !important;
}

/* hide only the left text: 今日建议 */
.home-product-hero .hero-art-note span {
  display: none !important;
}

/* keep the right text */
.home-product-hero .hero-art-note strong {
  color: #fff !important;
  margin-left: 0 !important;
  white-space: nowrap !important;
}

/* hide the bottom-right text: 先主挑战，再复盘错题 */
.home-product-hero .hero-art-note strong {
  display: none !important;
}

/* hero copy compact text version: Simply, Lovely */
.home-product-hero .home-product-copy.hero-copy-panel {
  width: min(620px, 100%) !important;
  max-width: 620px !important;
  padding: clamp(24px, 3vw, 36px) clamp(24px, 3.2vw, 42px) !important;
  border-radius: 34px !important;
  justify-self: start !important;
}

/* make the new short title fit the smaller panel */
.home-product-hero .home-product-copy.hero-copy-panel .page-title {
  font-size: clamp(66px, 8vw, 112px) !important;
  line-height: .86 !important;
  letter-spacing: -.075em !important;
  margin: 12px 0 18px !important;
  max-width: 560px !important;
  text-wrap: balance !important;
}

/* shorter subtitle, less vertical space */
.home-product-hero .home-product-copy.hero-copy-panel .page-sub {
  max-width: 44ch !important;
  font-size: clamp(18px, 1.7vw, 23px) !important;
  line-height: 1.42 !important;
  margin: 0 !important;
}

/* reduce blank spacing between subtitle and buttons */
.home-product-hero .home-product-copy.hero-copy-panel .hero-actions {
  margin-top: 24px !important;
}

/* keep metric chips close to buttons */
.home-product-hero .home-product-copy.hero-copy-panel .hero-metrics {
  margin-top: 18px !important;
  max-width: 100% !important;
  gap: 10px !important;
}

/* compact metric chips so the smaller panel does not look empty */
.home-product-hero .home-product-copy.hero-copy-panel .hero-metrics span {
  min-height: 52px !important;
  padding: 12px 14px !important;
}

/* keep button area compact */
.home-product-hero .home-product-copy.hero-copy-panel .btn {
  min-height: 44px !important;
  padding: 0 18px !important;
}

/* mobile fallback */
@media (max-width: 760px) {
  .home-product-hero .home-product-copy.hero-copy-panel {
    width: 100% !important;
    max-width: none !important;
    padding: 22px 18px !important;
    border-radius: 28px !important;
  }

  .home-product-hero .home-product-copy.hero-copy-panel .page-title {
    font-size: clamp(52px, 16vw, 76px) !important;
    line-height: .88 !important;
  }

  .home-product-hero .home-product-copy.hero-copy-panel .page-sub {
    font-size: 16px !important;
  }
}

/* REVIEW FLOW mini-route hover lift: match other lift panels */
.cosmic-section .phone-stack .mini-route {
  transition:
    transform .28s var(--ease),
    box-shadow .28s var(--ease),
    border-color .28s var(--ease),
    background .28s var(--ease) !important;
  will-change: transform;
}

.cosmic-section .phone-stack .mini-route:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 18px 52px rgba(0,0,0,.26) !important;
  border-color: rgba(255,255,255,.36) !important;
  background: rgba(12,18,32,.62) !important;
}

.cosmic-section .phone-stack .mini-route:active {
  transform: translateY(-1px) scale(.992) !important;
}

/* REVIEW FLOW mini-route compact width */
.cosmic-section .phone-stack {
  width: min(250px, calc(100% - 64px)) !important;
  left: 28px !important;
  gap: 10px !important;
}

/* shorten the three small buttons */
.cosmic-section .phone-stack .mini-route {
  width: 100% !important;
  min-height: 66px !important;
  padding: 12px 15px !important;
  border-radius: 19px !important;

  transition:
    transform .28s var(--ease),
    box-shadow .28s var(--ease),
    border-color .28s var(--ease),
    background .28s var(--ease) !important;
}

/* slightly reduce text so shortened buttons do not look crowded */
.cosmic-section .phone-stack .mini-route strong {
  font-size: 20px !important;
  line-height: 1.05 !important;
  margin-bottom: 3px !important;
}

.cosmic-section .phone-stack .mini-route span {
  font-size: 13px !important;
  line-height: 1.25 !important;
}

/* keep hover lift effect */
.cosmic-section .phone-stack .mini-route:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 18px 52px rgba(0,0,0,.26) !important;
  border-color: rgba(255,255,255,.36) !important;
  background: rgba(12,18,32,.62) !important;
}

.cosmic-section .phone-stack .mini-route:active {
  transform: translateY(-1px) scale(.992) !important;
}

.vocab-panel-toolbar {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.vocab-panel-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.vocab-panel-hint {
  color: var(--text-3);
  font-size: 13px;
  line-height: 1.5;
}

.vocab-meaning-toggle {
  min-height: 40px;
}

.vocab-focus-list-toggle.is-active {
  color: var(--accent);
  border-color:
    color-mix(
      in srgb,
      var(--accent) 38%,
      transparent
    );
  background:
    color-mix(
      in srgb,
      var(--accent) 12%,
      var(--surface-strong)
    );
}

.article-focus-empty {
  padding: 28px 20px;
  text-align: center;
  border-radius: var(--radius-lg);
  border:
    1px dashed
    color-mix(
      in srgb,
      var(--accent) 24%,
      var(--line-soft)
    );
  background:
    color-mix(
      in srgb,
      var(--surface) 90%,
      transparent
    );
}

.article-focus-empty h3 {
  margin: 0 0 8px;
  font-size: 22px;
  color: var(--text);
}

.article-focus-empty p {
  margin: 0;
  color: var(--text-3);
  line-height: 1.6;
}

.article-vocab-card {
  transition:
    border-color .25s var(--ease),
    box-shadow .25s var(--ease),
    background .25s var(--ease);
}

.article-vocab-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.article-vocab-card-head h3 {
  margin: 0;
}

.article-vocab-actions {
  flex-wrap: wrap;
}

.article-vocab-card.is-focused {
  border-color:
    color-mix(
      in srgb,
      var(--accent) 46%,
      transparent
    );

  box-shadow:
    inset 0 0 0 1px
    color-mix(
      in srgb,
      var(--accent) 18%,
      transparent
    ),
    var(--shadow-1);

  background:
    linear-gradient(
      180deg,
      color-mix(
        in srgb,
        var(--accent) 8%,
        var(--surface-strong)
      ),
      color-mix(
        in srgb,
        var(--surface) 94%,
        transparent
      )
    );
}

.article-vocab-meaning[hidden] {
  display: none !important;
}

.article-focus-button.is-active {
  background:
    color-mix(
      in srgb,
      var(--accent) 20%,
      transparent
    );

  border-color:
    color-mix(
      in srgb,
      var(--accent) 38%,
      transparent
    );

  color: var(--accent);
}

.article-focus-status {
  flex: 0 0 auto;
}

.archive-button {
  color: #8a5912;
  background: color-mix(in srgb, #f5c66f 22%, var(--surface-strong));
  border-color: color-mix(in srgb, #d89725 38%, var(--line));
}

.archive-button.is-active {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 16%, var(--surface-strong));
  border-color: color-mix(in srgb, var(--accent) 38%, var(--line));
}

.archive-button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.archive-batch-list {
  display: grid;
  gap: 14px;
}

.archive-batch {
  padding: 18px;
}

.archive-batch-head,
.archive-day-group h4 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.archive-batch-head h3,
.archive-day-group h4 {
  margin: 0;
}

.archive-day-group {
  margin-top: 18px;
}

.archive-day-group h4 {
  color: var(--text-2);
  font-size: 14px;
}

.archive-word-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.archive-article-group + .archive-article-group {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}

.archive-article-group h5 {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
}

.archive-word-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "word phonetic"
    "meaning meaning";
  column-gap: 12px;
  row-gap: 4px;
  align-items: start;
  padding: 12px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
}

.archive-word-toggle {
  grid-area: word;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-weight: 700;
  text-align: left;
  overflow-wrap: anywhere;
}

.archive-word-item span,
.archive-word-item p { margin: 0; color: var(--text-2); }

.archive-word-item span {
  grid-area: phonetic;
  white-space: nowrap;
}

.archive-word-item p {
  grid-area: meaning;
  overflow-wrap: anywhere;
}

@media (max-width: 420px) {
  .archive-word-item { padding: 10px; }
}

@media (max-width: 760px) {
  .vocab-panel-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .vocab-meaning-toggle,
  .vocab-focus-list-toggle {
    width: 100%;
  }

  .article-vocab-card-head {
    align-items: flex-start;
  }

  .article-vocab-actions {
    align-items: stretch;
  }
}

.article-vocab-word-button {
  display: inline;
  padding: 0;
  border-radius: 8px;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  line-height: inherit;
  text-align: left;
  transition:
    color .2s var(--ease),
    background .2s var(--ease),
    opacity .2s var(--ease);
}

.article-vocab-panel.meanings-hidden
.article-vocab-word-button {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
}

.article-vocab-panel.meanings-hidden
.article-vocab-word-button:hover {
  background:
    color-mix(
      in srgb,
      var(--accent) 10%,
      transparent
    );
}

.article-vocab-panel.meanings-hidden
.article-vocab-word-button:focus-visible {
  outline:
    2px solid
    color-mix(
      in srgb,
      var(--accent) 58%,
      transparent
    );
  outline-offset: 4px;
}

.article-vocab-card.is-meaning-open
.article-vocab-meaning {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background:
    color-mix(
      in srgb,
      var(--accent) 8%,
      transparent
    );
  border:
    1px solid
    color-mix(
      in srgb,
      var(--accent) 16%,
      transparent
    );
}
