:root {
  --red: #d92b20;
  --red-dark: #a91914;
  --ink: #1f1d1b;
  --muted: #68615c;
  --line: #e7e2da;
  --paper: #fafaf8;
  --cream: #f4f1ea;
  --fresh: #f8d052;
  --mint: #dff2de;
  --aqua: #c7eef1;
  --blue: #1675b9;
  --yellow: #f4bc28;
  --green: #35a76d;
  --sky: #e8f4ff;
  --leaf: #ecf8ef;
  --sun: #fff4cf;
  --coral: #fff0eb;
  --radius: 16px;
  --radius-sm: 12px;
  --radius-lg: 22px;
  --shadow: 0 18px 44px rgba(42, 31, 21, 0.08);
  --shadow-soft: 0 8px 24px rgba(42, 31, 21, 0.06);
  --container: 1180px;
}

/* Batch 1 progressive UI refresh: keep existing product logic, refine the shell. */
body {
  background: var(--paper);
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid rgba(217, 43, 32, 0.28);
  outline-offset: 3px;
}

.site-header {
  justify-content: space-between;
  min-height: 70px;
  padding: 12px clamp(16px, 4vw, 42px);
  background: rgba(250, 250, 248, 0.9);
  border-bottom-color: rgba(231, 226, 218, 0.86);
}

.brand {
  margin-right: auto;
  color: var(--ink);
  font-size: clamp(1.22rem, 2vw, 1.52rem);
}

.brand img {
  width: 38px;
  height: 38px;
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.header-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 850;
}

.header-actions a:hover {
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
}

.header-actions .header-cta {
  color: #fff;
  background: var(--ink);
}

.menu-toggle {
  border-color: var(--line);
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.site-nav {
  width: min(328px, 88vw);
  padding: 18px 16px 24px;
  background: #fff;
  color: var(--ink);
  border-right: 1px solid var(--line);
  box-shadow: 24px 0 60px rgba(26, 21, 16, 0.18);
}

.drawer-brand {
  padding: 4px 8px 16px;
  color: var(--ink);
}

.site-nav > span {
  margin: 18px 10px 8px;
  color: #9a9088;
  font-size: 0.72rem;
}

.site-nav a {
  min-height: 42px;
  margin-bottom: 2px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: #393431;
  font-size: 0.94rem;
  font-weight: 800;
}

.site-nav a:hover {
  color: var(--ink);
  background: var(--paper);
  border-color: var(--line);
}

.site-nav a.is-active {
  color: var(--red-dark);
  background: #fff1ef;
  border-color: rgba(217, 43, 32, 0.18);
}

.drawer-scrim {
  background: rgba(31, 29, 27, 0.36);
  backdrop-filter: blur(3px);
}

.lab-hero {
  min-height: calc(100vh - 70px);
  padding: clamp(28px, 5vw, 58px) clamp(16px, 5vw, 56px);
  background:
    radial-gradient(circle at top left, rgba(217, 43, 32, 0.08), transparent 34%),
    linear-gradient(180deg, #fff 0%, var(--paper) 100%);
  border-bottom: 1px solid var(--line);
}

.dictionary-shell {
  width: min(100%, var(--container));
  margin: 0 auto;
}

.dictionary-hero-copy {
  max-width: 820px;
  margin-bottom: 22px;
}

.dictionary-hero-copy h1 {
  max-width: 820px;
  margin: 0 0 16px;
  font-size: clamp(2.35rem, 5.5vw, 5.1rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.dictionary-hero-copy .hero-text {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(1.04rem, 1.7vw, 1.22rem);
  line-height: 1.58;
}

.lab-hero .lab-search {
  width: min(100%, 940px);
  margin: 0;
  padding: 12px;
  border-radius: var(--radius-lg);
  background: #fff;
  border-color: var(--line);
  box-shadow: var(--shadow);
}

.lab-search label {
  margin-left: 4px;
  color: #827871;
}

.lab-search input,
.lab-search button {
  min-height: 58px;
  border-radius: var(--radius);
}

.lab-search input {
  padding: 0 18px;
  background: var(--paper);
  border-color: var(--line);
  color: var(--ink);
  font-size: 1.02rem;
}

.lab-search input::placeholder {
  color: #a79e96;
}

.lab-search button,
.button.primary {
  background: var(--red);
  box-shadow: 0 12px 26px rgba(217, 43, 32, 0.2);
}

.lab-search button:hover,
.button.primary:hover {
  background: var(--red-dark);
}

.button,
.wordbook-tools button,
.wordbook-tools a {
  border-radius: var(--radius-sm);
}

.button.secondary {
  background: #fff;
  border-color: var(--line);
  box-shadow: var(--shadow-soft);
}

.suggested-searches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  width: min(100%, 940px);
  margin: 14px 0 10px;
}

.suggested-searches span {
  color: #827871;
  font-size: 0.84rem;
  font-weight: 850;
}

.suggested-searches a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #393431;
  font-size: 0.9rem;
  font-weight: 850;
  box-shadow: var(--shadow-soft);
}

.suggested-searches a:hover {
  border-color: rgba(217, 43, 32, 0.3);
  color: var(--red-dark);
}

.search-difference {
  width: min(100%, 940px);
  margin: 10px 0 18px;
  color: var(--muted);
  font-weight: 650;
}

.word-results {
  width: min(100%, 940px);
  gap: 12px;
}

.home-support-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  width: min(100%, var(--container));
  margin-top: 26px;
}

.home-support-grid article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.home-support-grid span {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--red-dark);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.home-support-grid h2 {
  margin-bottom: 10px;
  font-size: clamp(1.22rem, 2vw, 1.65rem);
  line-height: 1.15;
}

.home-support-grid p {
  margin: 0;
  color: var(--muted);
}

.section,
.word-lab-layout,
.why-gogo,
.teacher-section,
.pricing,
.free-guide {
  padding-inline: clamp(16px, 5vw, 56px);
}

.section > *,
.word-lab-layout > *,
.why-gogo > *,
.teacher-section > *,
.pricing > *,
.free-guide > *,
.legal-section > * {
  width: min(100%, var(--container));
  margin-inline: auto;
}

.word-lab-layout {
  background: var(--paper);
}

.lab-sidebar,
.dictionary-result,
.search-welcome,
.preview-card,
.pack-card,
.word-card,
.teacher-card,
.price-card {
  border-color: var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.dictionary-result {
  overflow: clip;
}

.dictionary-result[open] {
  border-color: rgba(217, 43, 32, 0.24);
  box-shadow: 0 16px 36px rgba(42, 31, 21, 0.08);
}

.result-main strong,
.phrase-card strong {
  color: var(--red);
}

.site-footer {
  display: flex;
  background: #25211e;
}

.content-channel {
  background: var(--paper);
}

.channel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.channel-grid article {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 260px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.channel-grid span {
  color: var(--red-dark);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.channel-grid h3 {
  margin: 0;
  font-size: clamp(1.32rem, 2vw, 1.85rem);
}

.channel-grid p {
  margin: 0;
  color: var(--muted);
}

.channel-grid .button {
  justify-self: start;
  margin-top: 8px;
}

@media (max-width: 900px) {
  .home-support-grid,
  .channel-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-header {
    gap: 10px;
  }

  .brand span {
    font-size: 1.1rem;
  }

  .header-actions a:not(.header-cta) {
    display: none;
  }

  .header-actions .header-cta {
    min-height: 36px;
    padding: 0 10px;
    font-size: 0.82rem;
  }

  .lab-hero {
    min-height: auto;
    padding: 24px 16px 34px;
  }

  .dictionary-hero-copy h1 {
    font-size: clamp(2.1rem, 12vw, 3.1rem);
  }

  .lab-search {
    padding: 9px;
  }

  .lab-search div {
    gap: 8px;
  }

  .lab-search input,
  .lab-search button {
    min-height: 48px;
  }

  .suggested-searches {
    gap: 7px;
  }

  .home-support-grid article {
    padding: 18px;
  }

  .site-footer {
    display: grid;
  }
}

/* Batch 2/3 final overrides. Keep this block last. */
body.drawer-open {
  overflow: hidden;
}

.site-nav .parent-nav {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 10px;
  align-items: center;
  min-height: 72px;
  padding: 12px;
}

.parent-nav .nav-icon {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--paper);
  color: var(--red-dark);
  font-size: 1.15rem;
  font-weight: 900;
}

.parent-nav > span:last-child {
  display: grid;
  gap: 4px;
}

.parent-nav strong {
  color: inherit;
  font-size: 0.86rem;
  font-weight: 950;
  letter-spacing: 0.06em;
}

.parent-nav em {
  color: #827871;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 650;
  line-height: 1.28;
  pointer-events: none;
}

.site-nav .parent-nav.is-active .nav-icon {
  color: #fff;
  background: var(--red);
}

.site-nav .parent-nav.is-active em {
  color: #7d514c;
}

.hub-page,
.content-channel {
  background:
    radial-gradient(circle at top left, rgba(217, 43, 32, 0.05), transparent 34%),
    var(--paper);
}

.hub-grid,
.channel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.hub-grid article,
.channel-grid article {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 250px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.hub-grid article > span,
.channel-grid article > span {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff1ef;
  color: var(--red-dark);
  font-size: 0.75rem;
  font-weight: 950;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hub-grid h3,
.channel-grid h3 {
  margin: 0 0 10px;
  font-size: clamp(1.28rem, 2vw, 1.7rem);
  line-height: 1.12;
}

.hub-grid p,
.channel-grid p {
  margin: 0 0 18px;
  color: var(--muted);
}

.hub-grid .button,
.channel-grid .button {
  margin-top: auto;
}

.product-hub article:nth-child(3),
.hub-grid article:has(.button.primary) {
  border-color: rgba(217, 43, 32, 0.26);
}

.pricing-section-label {
  margin: 30px auto 12px;
  color: var(--red-dark);
  font-size: 0.8rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.waitlist-grid {
  margin-top: 0;
}

.price-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.price-card .button {
  margin-top: auto;
}

.product-features {
  display: grid;
  gap: 7px;
  margin: 4px 0 16px;
  padding: 0;
  list-style: none;
  color: #4a403a;
  font-weight: 750;
}

.product-features li::before {
  content: "✓";
  margin-right: 8px;
  color: var(--red);
  font-weight: 950;
}

.product-audience {
  color: #827871;
  font-size: 0.88rem;
  line-height: 1.5;
}

.waitlist-card {
  opacity: 0.92;
}

.waitlist-card strong {
  color: #5f5852;
}

@media (max-width: 980px) {
  .hub-grid,
  .channel-grid {
    grid-template-columns: 1fr;
  }

  .hub-grid article,
  .channel-grid article {
    min-height: auto;
  }
}

/* Batch 2/3 final overrides. Keep this block last. */
body.drawer-open {
  overflow: hidden;
}

.site-nav .parent-nav {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 10px;
  align-items: center;
  min-height: 72px;
  padding: 12px;
}

.parent-nav .nav-icon {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--paper);
  color: var(--red-dark);
  font-size: 1.15rem;
  font-weight: 900;
}

.parent-nav > span:last-child {
  display: grid;
  gap: 4px;
}

.parent-nav strong {
  color: inherit;
  font-size: 0.86rem;
  font-weight: 950;
  letter-spacing: 0.06em;
}

.parent-nav em {
  color: #827871;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 650;
  line-height: 1.28;
  pointer-events: none;
}

.site-nav .parent-nav.is-active .nav-icon {
  color: #fff;
  background: var(--red);
}

.site-nav .parent-nav.is-active em {
  color: #7d514c;
}

.hub-page,
.content-channel {
  background:
    radial-gradient(circle at top left, rgba(217, 43, 32, 0.05), transparent 34%),
    var(--paper);
}

.hub-grid,
.channel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.hub-grid article,
.channel-grid article {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 250px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.hub-grid article > span,
.channel-grid article > span {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff1ef;
  color: var(--red-dark);
  font-size: 0.75rem;
  font-weight: 950;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hub-grid h3,
.channel-grid h3 {
  margin: 0 0 10px;
  font-size: clamp(1.28rem, 2vw, 1.7rem);
  line-height: 1.12;
}

.hub-grid p,
.channel-grid p {
  margin: 0 0 18px;
  color: var(--muted);
}

.hub-grid .button,
.channel-grid .button {
  margin-top: auto;
}

.product-hub article:nth-child(3),
.hub-grid article:has(.button.primary) {
  border-color: rgba(217, 43, 32, 0.26);
}

.pricing-section-label {
  margin: 30px auto 12px;
  color: var(--red-dark);
  font-size: 0.8rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.waitlist-grid {
  margin-top: 0;
}

.price-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.price-card .button {
  margin-top: auto;
}

.product-features {
  display: grid;
  gap: 7px;
  margin: 4px 0 16px;
  padding: 0;
  list-style: none;
  color: #4a403a;
  font-weight: 750;
}

.product-features li::before {
  content: "✓";
  margin-right: 8px;
  color: var(--red);
  font-weight: 950;
}

.product-audience {
  color: #827871;
  font-size: 0.88rem;
  line-height: 1.5;
}

.waitlist-card {
  opacity: 0.92;
}

.waitlist-card strong {
  color: #5f5852;
}

@media (max-width: 980px) {
  .hub-grid,
  .channel-grid {
    grid-template-columns: 1fr;
  }

  .hub-grid article,
  .channel-grid article {
    min-height: auto;
  }
}

/* Batch 2/3 navigation and product display refinements. */
body.drawer-open {
  overflow: hidden;
}

.site-nav .parent-nav {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 10px;
  align-items: center;
  min-height: 72px;
  padding: 12px;
}

.parent-nav .nav-icon {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--paper);
  color: var(--red-dark);
  font-size: 1.15rem;
  font-weight: 900;
}

.parent-nav > span:last-child {
  display: grid;
  gap: 4px;
}

.parent-nav strong {
  color: inherit;
  font-size: 0.86rem;
  font-weight: 950;
  letter-spacing: 0.06em;
}

.parent-nav em {
  color: #827871;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 650;
  line-height: 1.28;
  pointer-events: none;
}

.site-nav .parent-nav.is-active .nav-icon {
  color: #fff;
  background: var(--red);
}

.site-nav .parent-nav.is-active em {
  color: #7d514c;
}

.hub-page,
.content-channel {
  background:
    radial-gradient(circle at top left, rgba(217, 43, 32, 0.05), transparent 34%),
    var(--paper);
}

.hub-grid,
.channel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.hub-grid article,
.channel-grid article {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 250px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.hub-grid article > span,
.channel-grid article > span {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff1ef;
  color: var(--red-dark);
  font-size: 0.75rem;
  font-weight: 950;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hub-grid h3,
.channel-grid h3 {
  margin: 0 0 10px;
  font-size: clamp(1.28rem, 2vw, 1.7rem);
  line-height: 1.12;
}

.hub-grid p,
.channel-grid p {
  margin: 0 0 18px;
  color: var(--muted);
}

.hub-grid .button,
.channel-grid .button {
  margin-top: auto;
}

.product-hub article:nth-child(3),
.hub-grid article:has(.button.primary) {
  border-color: rgba(217, 43, 32, 0.26);
}

.pricing-section-label {
  margin: 30px auto 12px;
  color: var(--red-dark);
  font-size: 0.8rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.waitlist-grid {
  margin-top: 0;
}

.price-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.price-card .button {
  margin-top: auto;
}

.product-features {
  display: grid;
  gap: 7px;
  margin: 4px 0 16px;
  padding: 0;
  list-style: none;
  color: #4a403a;
  font-weight: 750;
}

.product-features li::before {
  content: "✓";
  margin-right: 8px;
  color: var(--red);
  font-weight: 950;
}

.product-audience,
.billing-note {
  color: #827871;
  font-size: 0.88rem;
  line-height: 1.5;
}

.billing-note {
  margin-top: 0;
  font-size: 0.78rem;
  text-transform: capitalize;
}

.waitlist-card {
  opacity: 0.92;
}

.waitlist-card strong {
  color: #5f5852;
}

@media (max-width: 980px) {
  .hub-grid,
  .channel-grid {
    grid-template-columns: 1fr;
  }

  .hub-grid article,
  .channel-grid article {
    min-height: auto;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fffdf8;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  min-height: 64px;
  padding: 10px clamp(14px, 4vw, 42px);
  border-bottom: 1px solid rgba(234, 223, 219, 0.8);
  background: rgba(255, 253, 248, 0.94);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 10px;
  font-size: clamp(1.28rem, 2.2vw, 1.72rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
}

.brand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.site-nav {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  width: min(310px, 86vw);
  padding: 18px;
  overflow-y: auto;
  border-right: 1px solid rgba(234, 223, 219, 0.9);
  background: #283034;
  color: rgba(255, 255, 255, 0.92);
  box-shadow: 22px 0 48px rgba(0, 0, 0, 0.18);
  transform: translateX(-105%);
  transition: transform 0.22s ease;
}

.site-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.98rem;
  font-weight: 800;
}

.site-nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.site-nav a.is-active {
  color: #fff;
  background: var(--red);
}

.site-nav .nav-cta {
  color: #fff;
  background: var(--red);
  border-radius: var(--radius);
}

.site-nav.is-open {
  transform: translateX(0);
}

.site-nav > span {
  margin: 18px 8px 7px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.drawer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 6px 14px;
  color: #fff;
  font-size: 1.08rem;
  font-weight: 900;
}

.drawer-brand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.drawer-scrim {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  border: 0;
  background: rgba(0, 0, 0, 0.35);
}

.drawer-open .drawer-scrim {
  display: block;
}

.static-nav {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.menu-toggle {
  display: block;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.42fr);
  gap: clamp(22px, 4vw, 56px);
  align-items: center;
  min-height: auto;
  padding: clamp(34px, 5vw, 64px) clamp(18px, 6vw, 88px) clamp(28px, 4.4vw, 52px);
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(135deg, rgba(248, 208, 82, 0.3), transparent 36%),
    linear-gradient(120deg, rgba(223, 242, 222, 0.74), rgba(255, 253, 248, 0.95) 52%, rgba(199, 238, 241, 0.55));
}

.hero::after {
  position: absolute;
  right: -120px;
  bottom: -180px;
  width: 420px;
  height: 420px;
  content: "";
  border-radius: 999px;
  background: rgba(248, 208, 82, 0.28);
  z-index: 0;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--red-dark);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 900px;
  margin-bottom: 22px;
  font-size: clamp(2.6rem, 5.8vw, 5.6rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero h1 span {
  display: block;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 4.1rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.32rem;
  line-height: 1.15;
}

.hero-text {
  max-width: 720px;
  color: #4b4240;
  font-size: clamp(1.08rem, 1.55vw, 1.26rem);
  font-weight: 560;
}

.hero-actions,
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-search,
.lab-search {
  max-width: 760px;
  margin-top: 28px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 18px 42px rgba(43, 24, 18, 0.1);
}

.hero-side {
  padding: 22px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--red);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 42px rgba(43, 24, 18, 0.08);
}

.hero-side h2 {
  margin-bottom: 16px;
  font-size: clamp(1.6rem, 2.4vw, 2.5rem);
}

.hero-scene-list {
  display: grid;
  gap: 10px;
}

.hero-scene-list a {
  display: grid;
  gap: 2px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.hero-scene-list strong,
.hero-scene-list span {
  display: block;
}

.hero-scene-list span {
  color: var(--muted);
  font-size: 0.88rem;
}

.hero-search label,
.lab-search label {
  display: block;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-search div,
.lab-search div {
  display: flex;
  gap: 10px;
}

.hero-search input,
.hero-search button,
.lab-search input,
.lab-search button {
  min-height: 50px;
  border-radius: var(--radius);
  font: inherit;
}

.hero-search input,
.lab-search input {
  min-width: 0;
  flex: 1;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.hero-search button,
.lab-search button {
  border: 0;
  padding: 0 18px;
  color: #fff;
  background: var(--red);
  font-weight: 900;
  cursor: pointer;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-weight: 850;
}

.button.primary {
  color: #fff;
  background: var(--red);
  box-shadow: 0 12px 28px rgba(237, 16, 16, 0.22);
}

.button.secondary {
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.trust-row span {
  padding: 9px 12px;
  border: 2px solid rgba(21, 19, 19, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  color: #2f2927;
  font-size: 0.88rem;
  font-weight: 850;
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 480px;
}

.hero-visual::before {
  position: absolute;
  width: min(440px, 88%);
  aspect-ratio: 1;
  content: "";
  border-radius: 50%;
  background:
    radial-gradient(circle at 36% 30%, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.72) 52%, rgba(223, 242, 222, 0.82));
  box-shadow: 0 30px 80px rgba(43, 24, 18, 0.14);
}

.hero-visual img {
  position: relative;
  width: min(420px, 82vw);
  max-width: none;
  filter: drop-shadow(0 24px 34px rgba(155, 9, 13, 0.18));
}

.speech-card,
.phrase-card {
  position: absolute;
  z-index: 2;
  width: min(250px, 70vw);
  padding: 16px;
  border: 2px solid rgba(21, 19, 19, 0.08);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 42px rgba(43, 24, 18, 0.12);
}

.speech-card {
  top: 36px;
  left: 0;
}

.phrase-card {
  right: 0;
  bottom: 36px;
  border-top: 5px solid var(--red);
}

.speech-card strong,
.phrase-card strong {
  display: block;
  line-height: 1.15;
}

.tiny-label,
.phrase-card span,
.label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.phrase-card strong {
  color: var(--red);
  font-size: 2rem;
}

.culture-categories {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(14px, 2.6vw, 34px);
  padding: clamp(34px, 5vw, 56px) clamp(18px, 6vw, 88px);
  background: #fff;
  border-block: 1px solid var(--line);
}

.culture-categories a {
  display: grid;
  justify-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--ink);
  text-align: center;
}

.culture-categories span {
  display: grid;
  place-items: center;
  width: clamp(62px, 6.2vw, 92px);
  aspect-ratio: 1;
  border: 3px solid var(--ink);
  border-radius: 28% 72% 38% 62% / 62% 30% 70% 38%;
  background: #fff;
  font-size: clamp(1.9rem, 3.4vw, 3.4rem);
  font-weight: 900;
  line-height: 1;
}

.culture-categories a:nth-child(1) span {
  background: var(--sun);
}

.culture-categories a:nth-child(2) span {
  background: var(--coral);
}

.culture-categories a:nth-child(3) span {
  background: var(--sky);
}

.culture-categories a:nth-child(4) span {
  background: var(--mint);
}

.culture-categories a:nth-child(5) span {
  background: #fff;
}

.culture-categories a:nth-child(6) span {
  background: var(--aqua);
}

.culture-categories strong,
.culture-categories em {
  display: block;
}

.culture-categories strong {
  font-size: clamp(1rem, 1.35vw, 1.34rem);
  line-height: 1;
}

.culture-categories em {
  max-width: 140px;
  color: var(--muted);
  font-style: normal;
  font-size: 0.78rem;
  line-height: 1.25;
}

.phrase-card em {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-style: normal;
  font-size: 0.9rem;
}

.section {
  padding: clamp(54px, 8vw, 96px) clamp(18px, 6vw, 88px);
}

.app-view {
  display: none !important;
}

.app-view.is-active-view {
  display: grid !important;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 30px;
}

.section-heading p,
.intro-band p,
.feature-split p,
.free-guide p,
.about p {
  color: var(--muted);
  font-size: 1.05rem;
}

.intro-band {
  display: grid;
  grid-template-columns: minmax(250px, 0.72fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  background: #fff;
  border-block: 1px solid var(--line);
}

.intro-band p {
  max-width: 760px;
  margin-bottom: 0;
}

.dictionary-preview {
  background: #fff;
  border-block: 1px solid var(--line);
}

.preview-grid {
  display: grid;
  grid-template-columns: 0.85fr 1fr 1fr;
  gap: 16px;
}

.preview-card,
.pack-card,
.word-card,
.unlock-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 18px 38px rgba(43, 24, 18, 0.05);
}

.preview-card span,
.pack-card span,
.unlock-card span {
  display: block;
  margin-bottom: 14px;
  color: var(--red-dark);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.preview-card p,
.pack-card p,
.word-card p,
.unlock-card p,
.legal-note {
  color: var(--muted);
}

.preview-card a,
.pack-card a,
.hero-word-demo a {
  color: var(--ink);
  font-weight: 850;
  border-bottom: 2px solid currentColor;
}

.featured-preview {
  background: var(--cream);
}

.challenge-teaser,
.challenge-section,
.share-unlock,
.lab-hero,
.word-lab-layout {
  display: grid;
  gap: 24px;
}

.challenge-teaser {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.52fr);
  align-items: center;
  background: var(--paper);
}

.challenge-mini {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow);
}

.challenge-mini span {
  color: var(--yellow);
  font-weight: 900;
  text-transform: uppercase;
}

.challenge-mini strong {
  display: block;
  margin: 8px 0;
  font-size: 1.65rem;
}

.challenge-mini p {
  color: rgba(255, 255, 255, 0.76);
}

.lab-hero {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  padding: 12px clamp(14px, 5vw, 60px);
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.lab-hero > div {
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

.lab-hero h1 {
  max-width: 860px;
  margin: 12px 0 8px;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.02;
}

.lab-hero .hero-text {
  max-width: 760px;
  margin: 0;
  font-size: clamp(0.98rem, 1.15vw, 1.06rem);
}

.hero-positioning {
  max-width: 760px;
  margin: 2px 0 10px;
  color: var(--ink);
  font-size: clamp(1.05rem, 1.7vw, 1.55rem);
  font-weight: 950;
  line-height: 1.15;
}

.lab-hero .lab-search {
  width: 100%;
  max-width: 980px;
  margin-top: 0;
}

.search-difference {
  max-width: 980px;
  margin: 10px 0 14px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 750;
}

.app-tabs {
  display: flex;
  gap: 8px;
  width: 100%;
  max-width: 980px;
  margin-top: 10px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.app-tabs::-webkit-scrollbar {
  display: none;
}

.app-tabs a {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 850;
}

.app-tabs a.is-active {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}

.hero-value-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 940px;
  margin-top: 12px;
}

.hero-value-strip span {
  min-height: auto;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
  border-radius: 999px;
  background: #fff;
  color: #3a3331;
  font-size: 0.78rem;
  font-weight: 850;
  box-shadow: none;
}

.hero-value-strip span:nth-child(2) {
  border-left-color: var(--blue);
  background: var(--sky);
}

.hero-value-strip span:nth-child(3) {
  border-left-color: var(--yellow);
  background: var(--sun);
}

.hero-value-strip span:nth-child(4) {
  border-left-color: var(--green);
  background: var(--leaf);
}

.learning-funnel {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.learning-funnel span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.learning-funnel span:not(:last-child)::after {
  color: var(--red-dark);
  content: "→";
}

.founder-note {
  max-width: 880px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.hero-word-demo {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 14px 34px rgba(43, 24, 18, 0.08);
}

.hero-word-demo strong {
  display: block;
  color: var(--red);
  font-size: clamp(2.5rem, 4.5vw, 3.9rem);
  line-height: 1;
}

.hero-word-demo em {
  display: block;
  margin: 6px 0 12px;
  color: var(--muted);
  font-style: normal;
  font-weight: 750;
}

.hero-word-demo p {
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.word-lab-layout {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  padding-top: clamp(12px, 2vw, 20px);
  background: #fff;
  border-block: 1px solid var(--line);
}

.lab-sidebar {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(220px, 0.8fr) minmax(220px, 1fr) minmax(220px, 0.8fr);
  gap: 12px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.lab-sidebar h2 {
  margin-bottom: 0;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
}

.lab-sidebar > p:not(.eyebrow) {
  margin-bottom: 12px;
  font-size: 0.96rem;
}

.wordbook-summary {
  display: grid;
  gap: 6px;
}

.wordbook-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 0;
}

.wordbook-actions button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--muted);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 850;
  cursor: pointer;
}

.wordbook-actions button.is-active {
  color: #fff;
  background: var(--red);
  border-color: var(--red);
}

.category-filter {
  margin-top: 0;
}

.category-filter > span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

#categoryFilters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

#categoryFilters button {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 850;
  cursor: pointer;
}

#categoryFilters button.is-active {
  color: #fff;
  background: var(--red);
  border-color: var(--red);
}

.mini-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 0;
}

.mini-stats button {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--muted);
  text-align: left;
  font: inherit;
  font-size: 0.88rem;
  cursor: pointer;
}

.mini-stats button:hover {
  border-color: rgba(237, 16, 16, 0.35);
  color: var(--ink);
}

.mini-stats strong {
  display: block;
  color: var(--ink);
  font-size: 1.5rem;
  line-height: 1;
}

.wordbook-tools {
  display: grid;
  gap: 8px;
  margin-top: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.wordbook-tools span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.wordbook-tools button,
.wordbook-tools a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 10px;
  border-radius: var(--radius);
  font-size: 0.86rem;
  font-weight: 850;
}

.wordbook-tools button {
  border: 0;
  background: var(--blue);
  color: #fff;
  font: inherit;
  cursor: pointer;
}

.wordbook-tools button:disabled {
  background: #d8cfca;
  color: #706867;
  cursor: not-allowed;
}

.wordbook-tools a {
  border: 1px solid rgba(244, 188, 40, 0.5);
  background: var(--sun);
  color: #332b2a;
}

.dictionary-source {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.dictionary-source::before {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--green);
  content: "";
  vertical-align: 1px;
}

.word-results {
  display: grid;
  gap: 10px;
}

.search-welcome {
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.search-welcome span {
  display: block;
  margin-bottom: 8px;
  color: var(--red-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.search-welcome h1 {
  max-width: 780px;
  margin: 0 0 8px;
  font-size: clamp(1.45rem, 4vw, 2.3rem);
  line-height: 1.08;
}

.search-welcome p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
}

.dictionary-result {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 8px 20px rgba(43, 24, 18, 0.04);
  overflow: hidden;
}

.dictionary-result[open] {
  border-color: rgba(22, 117, 185, 0.28);
  box-shadow: 0 14px 34px rgba(22, 117, 185, 0.08);
}

.dictionary-result summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  list-style: none;
  cursor: pointer;
}

.dictionary-result summary::-webkit-details-marker {
  display: none;
}

.result-main {
  min-width: 0;
}

.result-main strong {
  display: inline-block;
  margin-right: 8px;
  color: var(--red);
  font-size: clamp(1.65rem, 4vw, 2.25rem);
  line-height: 1.05;
  vertical-align: baseline;
}

.cedict-result .result-main strong {
  color: #163fe0;
}

.result-main span {
  color: var(--ink);
  font-weight: 850;
}

.result-main p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-side {
  display: grid;
  justify-items: end;
  gap: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.result-side span {
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-side em {
  color: var(--blue);
  font-style: normal;
}

.result-detail {
  padding: 0 12px 12px;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.result-detail > .word-card {
  margin-top: 12px;
  box-shadow: none;
}

.search-note {
  padding: 10px 12px;
  border: 1px solid rgba(22, 117, 185, 0.2);
  border-radius: var(--radius);
  background: #f7fbff;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
}

.meaning-hit {
  padding: 0 2px;
  border-radius: 3px;
  background: #bfe4ff;
  color: inherit;
}

.related-results {
  border: 1px solid rgba(22, 117, 185, 0.24);
  border-radius: var(--radius);
  background: #f7fbff;
  box-shadow: 0 10px 26px rgba(22, 117, 185, 0.06);
}

.related-results summary {
  padding: 16px 18px;
  color: var(--blue);
  font-weight: 900;
  cursor: pointer;
}

.related-results summary::marker {
  color: var(--blue);
}

.related-results > div {
  display: grid;
  gap: 14px;
  padding: 0 14px 14px;
}

.related-results .word-card,
.related-results .cedict-card {
  box-shadow: none;
}

.related-request {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 4px 2px;
  color: var(--muted);
  font-size: 0.86rem;
}

.phrase-breakdown-card {
  border-color: rgba(22, 117, 185, 0.28);
  background: #fbfdff;
}

.phrase-breakdown-card h3 {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.phrase-breakdown-card > p {
  color: var(--muted);
  font-size: 1rem;
}

.phrase-parts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin: 16px 0 8px;
}

.phrase-parts button {
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid rgba(22, 117, 185, 0.25);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.phrase-parts button:hover {
  border-color: var(--blue);
  transform: translateY(-1px);
}

.phrase-parts button.is-unknown {
  border-style: dashed;
  color: var(--muted);
}

.phrase-parts strong {
  color: var(--red);
  font-size: 1.45rem;
}

.phrase-parts em {
  color: var(--muted);
  font-style: normal;
  font-weight: 800;
}

.phrase-parts span {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.35;
}

.phrase-parts ul,
.dictionary-senses ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.38;
}

.phrase-parts li,
.dictionary-senses li {
  margin: 3px 0;
}

.phrase-parts small,
.dictionary-senses em {
  color: var(--muted);
  font-size: 0.82rem;
  font-style: normal;
}

.dictionary-senses {
  margin: 18px 0;
  padding: 14px 16px;
  border: 1px dashed rgba(104, 91, 88, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.55);
}

.dictionary-senses > span {
  display: block;
  margin-bottom: 8px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.word-card {
  background: var(--paper);
}

.compact-preview {
  padding: 18px;
}

.compact-preview .word-card-head {
  margin-bottom: 12px;
}

.compact-preview .word-card h3,
.compact-preview h3 {
  font-size: clamp(2rem, 5vw, 2.8rem);
}

.preview-more {
  margin-top: 12px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.preview-more summary {
  color: var(--blue);
  font-weight: 900;
  cursor: pointer;
}

.preview-more > .word-card {
  margin-top: 12px;
  box-shadow: none;
}

.quick-searches {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}

.quick-searches span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.quick-searches button {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 850;
  cursor: pointer;
}

.quick-searches button:hover {
  border-color: rgba(22, 117, 185, 0.36);
  background: #f7fbff;
}

.word-card.is-saved {
  border-color: rgba(53, 167, 109, 0.55);
  box-shadow: 0 18px 38px rgba(53, 167, 109, 0.1);
}

.cedict-card {
  background: #fff;
}

.entry-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.quality-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.quality-badge.reviewed {
  border-color: rgba(53, 167, 109, 0.42);
  background: rgba(53, 167, 109, 0.08);
  color: #1f7650;
}

.quality-badge.basic {
  border-color: rgba(22, 117, 185, 0.26);
  background: rgba(22, 117, 185, 0.06);
  color: var(--blue);
}

.request-entry {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.request-entry:hover {
  color: var(--red-dark);
}

.word-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.word-card h3 {
  margin: 0 0 5px;
  color: var(--red);
  font-size: clamp(2rem, 4vw, 3rem);
}

.word-card.phrase-breakdown-card h3 {
  color: var(--ink);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.empty-result-card h3 {
  color: var(--ink);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.empty-result-card {
  border-color: rgba(22, 117, 185, 0.22);
  background: #fbfdff;
}

.listen-button {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-left: 8px;
  border: 1px solid rgba(237, 16, 16, 0.24);
  border-radius: 50%;
  background: #fff;
  color: var(--red);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 950;
  vertical-align: middle;
  cursor: pointer;
}

.listen-button:hover {
  border-color: var(--red);
  background: rgba(237, 16, 16, 0.06);
}

.word-card-head span {
  color: var(--muted);
  font-weight: 750;
}

.word-category {
  display: grid;
  gap: 4px;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.word-category span {
  color: var(--red-dark);
  font-size: 0.7rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.word-category strong {
  font-size: 1rem;
}

.word-category em {
  color: var(--muted);
  font-style: normal;
  font-size: 0.9rem;
}

.example-list {
  display: grid;
  gap: 10px;
  margin: 16px 0;
  padding: 14px;
  border: 1px solid rgba(43, 107, 214, 0.18);
  border-radius: var(--radius);
  background: #fff;
}

.example-list > span,
.related-words > span {
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.example-item {
  display: grid;
  gap: 4px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.example-item:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.example-item strong {
  color: var(--ink);
  font-size: 1.08rem;
}

.example-item .listen-button {
  width: 28px;
  height: 28px;
  font-size: 0.68rem;
}

.example-item em {
  color: var(--muted);
  font-style: normal;
  font-weight: 750;
}

.example-item p {
  margin: 0;
}

.pronunciation-section {
  display: grid;
  gap: 10px;
  margin: 14px 0;
  padding: 14px;
  border: 1px solid rgba(237, 16, 16, 0.16);
  border-left: 5px solid var(--red);
  border-radius: var(--radius);
  background: #fff;
}

.pronunciation-section:nth-of-type(even) {
  border-left-color: var(--blue);
}

.pronunciation-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.pronunciation-head strong {
  color: var(--ink);
  font-size: 1.1rem;
}

.pronunciation-head span {
  color: var(--muted);
  font-weight: 800;
}

.culture-note {
  margin: 16px 0;
  padding: 14px 14px 14px 16px;
  border: 1px solid rgba(237, 16, 16, 0.18);
  border-left: 5px solid var(--red);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(237, 16, 16, 0.06), transparent 46%),
    #fff;
}

.culture-note span {
  display: inline-flex;
  margin-bottom: 7px;
  padding: 5px 8px;
  border: 1px solid rgba(237, 16, 16, 0.28);
  border-radius: 4px;
  color: var(--red-dark);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.culture-note p {
  margin: 0;
}

.culture-echo {
  display: grid;
  gap: 7px;
  margin: 16px 0;
  padding: 15px;
  border: 1px solid rgba(244, 188, 40, 0.38);
  border-left: 5px solid var(--yellow);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(244, 188, 40, 0.13), transparent 46%),
    #fff;
}

.culture-echo span {
  color: #8c5b00;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.culture-echo strong {
  color: var(--ink);
  font-size: 1.05rem;
}

.culture-echo em {
  color: var(--muted);
  font-style: normal;
  font-weight: 750;
}

.culture-echo p {
  margin: 0;
  color: var(--muted);
}

.place-note {
  display: grid;
  gap: 7px;
  margin: 16px 0;
  padding: 15px;
  border: 1px solid rgba(52, 157, 105, 0.35);
  border-left: 5px solid var(--green);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(52, 157, 105, 0.09), transparent 46%),
    #fbfffc;
}

.place-note span {
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.place-note strong {
  color: var(--ink);
  font-size: 1.05rem;
}

.place-note p {
  margin: 0;
  color: var(--muted);
}

.basic-dictionary-note {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.basic-dictionary-note span {
  display: inline-flex;
  margin-bottom: 6px;
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.basic-dictionary-note p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.other-senses {
  display: grid;
  gap: 6px;
  margin: 12px 0;
  padding: 12px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.other-senses span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.other-senses ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.save-word,
.unlock-card button {
  min-height: 42px;
  border: 0;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.save-word {
  min-width: 84px;
  padding: 0 12px;
}

.dialogue-line {
  margin-top: 14px;
  padding: 14px;
  border-left: 4px solid var(--yellow);
  background: #fff;
  color: #342d2a;
  font-weight: 750;
}

.related-words {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}

.related-words span {
  width: 100%;
}

.related-words button {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
}

.related-words button:hover {
  border-color: rgba(237, 16, 16, 0.35);
  color: var(--red-dark);
}

.word-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.word-tags span {
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.usage-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid rgba(22, 117, 185, 0.18);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(22, 117, 185, 0.08), transparent 42%),
    #fff;
}

.usage-cta p {
  margin: 0;
  flex: 1 1 300px;
  color: var(--muted);
  font-size: 0.9rem;
}

.usage-cta strong {
  color: var(--ink);
}

.usage-cta div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.usage-cta a {
  min-height: 34px;
  padding: 7px 10px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 850;
}

.usage-cta a + a {
  border: 1px solid var(--line);
  background: var(--sun);
  color: var(--ink);
}

.word-packs {
  background: var(--paper);
}

.pack-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: -8px 0 22px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}

.pack-tabs button {
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.pack-tabs button.is-active {
  background: var(--red);
  color: #fff;
  box-shadow: 0 8px 22px rgba(237, 16, 16, 0.16);
}

.why-gogo {
  background: #fff;
  border-block: 1px solid var(--line);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.why-grid article {
  padding: 20px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--red);
  border-radius: var(--radius);
  background: var(--paper);
}

.why-grid article:nth-child(2) {
  border-top-color: var(--blue);
}

.why-grid article:nth-child(3) {
  border-top-color: var(--yellow);
}

.why-grid article:nth-child(4) {
  border-top-color: var(--green);
}

.why-grid span,
.research-grid span,
.teacher-card span {
  display: block;
  margin-bottom: 10px;
  color: var(--red-dark);
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.why-grid p,
.research-grid p,
.teacher-section p,
.comparison-row span {
  color: var(--muted);
}

.comparison-table {
  display: grid;
  margin-top: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.comparison-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(150px, 0.6fr) minmax(210px, 0.9fr);
  border-top: 1px solid var(--line);
}

.comparison-row:first-child {
  border-top: 0;
}

.comparison-row span {
  padding: 13px 14px;
  border-left: 1px solid var(--line);
  font-size: 0.94rem;
}

.comparison-row span:nth-child(3) {
  background: rgba(236, 248, 239, 0.72);
  color: #167143;
  font-weight: 950;
}

.comparison-row span:nth-child(2) {
  color: #6c6260;
}

.comparison-row span:first-child {
  border-left: 0;
  color: var(--ink);
  font-weight: 850;
}

.comparison-head {
  background:
    linear-gradient(90deg, rgba(237, 16, 16, 0.08), rgba(244, 188, 40, 0.14)),
    #fffaf4;
}

.comparison-head span,
.comparison-head span:first-child {
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.comparison-head span:nth-child(2),
.comparison-head span:nth-child(3) {
  color: var(--ink);
  background: transparent;
}

.comparison-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.comparison-brand img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.research-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.research-grid article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
}

.teacher-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 0.38fr);
  gap: 18px;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(22, 117, 185, 0.08), transparent 38%),
    var(--paper);
  border-bottom: 1px solid var(--line);
}

.teacher-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--blue);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 18px 38px rgba(43, 24, 18, 0.06);
}

.teacher-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1.8rem;
  line-height: 1;
}

.teacher-card .button {
  width: 100%;
  margin-top: 8px;
}

.diagnosis-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.diagnosis-steps span {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 850;
}

.diagnosis-steps span:nth-child(2) {
  border-left-color: var(--yellow);
  background: var(--sun);
}

.diagnosis-steps span:nth-child(3) {
  border-left-color: var(--green);
  background: var(--leaf);
}

.learning-path {
  background:
    linear-gradient(135deg, rgba(53, 167, 109, 0.08), transparent 32%),
    #fff;
  border-bottom: 1px solid var(--line);
}

.path-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.path-card {
  display: flex;
  min-height: 330px;
  flex-direction: column;
  align-items: flex-start;
  padding: 22px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--red);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 18px 38px rgba(43, 24, 18, 0.05);
}

.path-card span {
  display: block;
  margin-bottom: 10px;
  color: var(--red-dark);
  font-size: 0.75rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.path-card strong {
  display: block;
  margin: 2px 0 14px;
  font-size: 2rem;
  line-height: 1;
}

.path-card p {
  color: var(--muted);
}

.path-card .button {
  width: 100%;
  margin-top: auto;
}

.plus-path {
  border-top-color: var(--yellow);
  background:
    linear-gradient(135deg, rgba(244, 188, 40, 0.13), transparent 44%),
    #fff;
}

.coaching-path {
  border-top-color: var(--blue);
  background:
    linear-gradient(135deg, rgba(22, 117, 185, 0.1), transparent 44%),
    #fff;
}

.fulfillment-note {
  max-width: 900px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.fulfillment-note a {
  color: var(--ink);
  font-weight: 850;
  border-bottom: 2px solid currentColor;
}

.thank-you-hero {
  background:
    linear-gradient(135deg, rgba(237, 16, 16, 0.08), transparent 34%),
    var(--paper);
  border-bottom: 1px solid var(--line);
}

.thank-you-hero h1 {
  max-width: 820px;
  font-size: clamp(2.4rem, 6vw, 5rem);
}

.next-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  background: #fff;
}

.next-step-card {
  display: flex;
  min-height: 300px;
  flex-direction: column;
  align-items: flex-start;
  padding: 22px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--red);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 18px 38px rgba(43, 24, 18, 0.05);
}

.next-step-card:nth-child(2) {
  border-top-color: var(--blue);
}

.next-step-card:nth-child(3) {
  border-top-color: var(--green);
}

.next-step-card span {
  display: block;
  margin-bottom: 10px;
  color: var(--red-dark);
  font-size: 0.75rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.next-step-card h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.6rem);
}

.next-step-card p {
  color: var(--muted);
}

.next-step-card .button {
  width: 100%;
  margin-top: auto;
}

.contact-card a {
  color: var(--ink);
  font-weight: 850;
  border-bottom: 2px solid currentColor;
}

.pack-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.pack-card {
  display: flex;
  flex-direction: column;
  min-height: 230px;
}

.pack-card em {
  display: block;
  margin: -4px 0 12px;
  color: var(--muted);
  font-style: normal;
  font-size: 0.94rem;
}

.pack-card small {
  display: block;
  margin-top: auto;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.hsk-pack {
  border-top: 5px solid var(--green);
  background:
    linear-gradient(135deg, rgba(53, 167, 109, 0.09), transparent 38%),
    #fff;
}

.hsk-pack.locked-pack {
  border-top-color: var(--blue);
}

.locked-pack {
  background:
    linear-gradient(135deg, rgba(22, 117, 185, 0.08), transparent 38%),
    #fff;
}

.sensitive-pack {
  background:
    linear-gradient(135deg, rgba(244, 188, 40, 0.16), transparent 42%),
    #fffdf8;
  border-color: rgba(244, 188, 40, 0.52);
}

.sensitive-pack span {
  color: #8a5b00;
}

.sensitive-note {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

.sensitive-note summary {
  cursor: pointer;
  font-weight: 850;
  color: #8a5b00;
}

.sensitive-note p {
  margin: 10px 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.sensitive-note a {
  display: inline-flex;
  color: var(--ink);
  font-weight: 850;
  border-bottom: 2px solid currentColor;
}

.sensitive-result-note {
  margin: 18px 0;
  padding: 16px 18px;
  border: 1px solid rgba(244, 188, 40, 0.55);
  border-left: 6px solid var(--yellow);
  border-radius: var(--radius);
  background: #fffaf0;
}

.sensitive-result-note strong {
  display: block;
  color: #8a5b00;
}

.sensitive-result-note p {
  margin: 6px 0 0;
  color: var(--muted);
}

.platform-note {
  max-width: 900px;
  margin: 12px auto 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.challenge-section {
  grid-template-columns: minmax(0, 0.72fr) minmax(320px, 1fr);
  align-items: center;
  background: var(--cream);
}

.challenge-days {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.challenge-day {
  min-height: 92px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.challenge-day span,
.challenge-day strong {
  display: block;
}

.challenge-day span {
  color: var(--red-dark);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.challenge-day strong {
  margin-top: 8px;
  font-size: 1.05rem;
}

.challenge-day.is-done {
  color: #fff;
  background: var(--green);
  border-color: var(--green);
}

.challenge-day.is-done span {
  color: rgba(255, 255, 255, 0.8);
}

.share-unlock {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.48fr);
  align-items: center;
  background: #fff;
  border-block: 1px solid var(--line);
}

.legal-note {
  font-size: 0.92rem;
}

.unlock-card {
  background: var(--ink);
  color: #fff;
}

.unlock-card span {
  color: var(--yellow);
}

.unlock-card strong {
  display: block;
  font-size: 1.7rem;
  line-height: 1.05;
}

.unlock-card p {
  color: rgba(255, 255, 255, 0.74);
}

.unlock-card button,
.unlock-card .button {
  width: 100%;
  margin-top: 12px;
}

.unlock-card button {
  background: var(--red);
}

.free-lessons {
  background:
    linear-gradient(90deg, rgba(22, 117, 185, 0.08), transparent 30%),
    var(--paper);
}

.lesson-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.learner-paths {
  background: var(--paper);
}

.path-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.path-grid article {
  min-height: 280px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 18px 38px rgba(43, 24, 18, 0.05);
}

.path-grid span {
  display: inline-flex;
  margin-bottom: 24px;
  padding: 7px 9px;
  border-radius: 999px;
  color: #fff;
  background: var(--ink);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.path-grid p {
  color: var(--muted);
}

.path-grid a {
  display: inline-flex;
  margin-top: 8px;
  color: var(--ink);
  font-weight: 850;
  border-bottom: 2px solid currentColor;
}

.lesson-strip article {
  min-height: 220px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 18px 38px rgba(43, 24, 18, 0.05);
}

.lesson-strip span {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--blue);
  font-weight: 900;
}

.lesson-strip strong {
  display: block;
  margin-bottom: 8px;
  color: var(--red);
  font-size: 1.55rem;
}

.lesson-strip p {
  color: var(--muted);
}

.lesson-strip a {
  color: var(--ink);
  font-weight: 850;
  border-bottom: 2px solid currentColor;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.course-card {
  min-height: 310px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 18px 38px rgba(43, 24, 18, 0.06);
}

.course-card p:not(.label) {
  color: var(--muted);
}

.course-card a {
  display: inline-flex;
  margin-top: 8px;
  color: var(--ink);
  font-weight: 850;
  border-bottom: 2px solid currentColor;
}

.course-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 22px;
  border-radius: var(--radius);
  color: #fff;
  font-size: 1.7rem;
  font-weight: 850;
}

.accent-red .course-icon {
  background: var(--red);
}

.accent-yellow .course-icon {
  color: var(--ink);
  background: var(--yellow);
}

.accent-blue .course-icon {
  background: var(--blue);
}

.accent-green .course-icon {
  background: var(--green);
}

.method {
  background: var(--cream);
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.method-grid div {
  padding: 24px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.68);
}

.method-grid span {
  display: inline-flex;
  margin-bottom: 40px;
  color: var(--red);
  font-weight: 900;
}

.method-grid p,
.series-list span {
  color: var(--muted);
}

.feature-split {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1fr);
  gap: 24px;
  align-items: stretch;
}

.series-panel {
  padding: clamp(26px, 4vw, 44px);
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
}

.series-panel .eyebrow {
  color: var(--yellow);
}

.series-panel p {
  color: rgba(255, 255, 255, 0.78);
}

.social-links a {
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  font-weight: 800;
}

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

.series-list article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.series-list strong,
.series-list span {
  display: block;
}

.series-list strong {
  margin-bottom: 6px;
  font-size: 1.12rem;
}

.pricing {
  background: #fff;
  border-top: 1px solid var(--line);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.price-card {
  display: flex;
  flex-direction: column;
  min-height: 310px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.price-card.featured {
  background:
    linear-gradient(135deg, rgba(244, 188, 40, 0.28), transparent 44%),
    var(--sun);
  border-color: rgba(244, 188, 40, 0.72);
  box-shadow: 0 18px 38px rgba(244, 188, 40, 0.16);
}

.price-card.featured .label,
.price-card.featured p {
  color: #5f5343;
}

.price-card.featured .button.primary {
  color: #fff;
  background: var(--red);
  box-shadow: 0 12px 28px rgba(237, 16, 16, 0.18);
}

.price-card strong {
  display: block;
  margin: 6px 0 14px;
  font-size: 1.9rem;
  line-height: 1;
}

.price-card p:not(.label) {
  color: var(--muted);
}

.price-card .button {
  width: 100%;
  margin-top: auto;
}

.free-guide {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.72fr);
  gap: 24px;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(237, 16, 16, 0.1), transparent 34%),
    #fff;
  border-block: 1px solid var(--line);
}

.signup-form {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.signup-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 850;
}

.signup-form div {
  display: flex;
  gap: 10px;
}

.signup-form input,
.signup-form button {
  min-height: 48px;
  border-radius: var(--radius);
  font: inherit;
}

.signup-form input {
  min-width: 0;
  flex: 1;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: #fff;
}

.signup-form button {
  border: 0;
  padding: 0 15px;
  color: #fff;
  background: var(--red);
  font-weight: 850;
  cursor: pointer;
}

.signup-form p {
  margin: 12px 0 0;
  font-size: 0.9rem;
}

.purchase-box strong {
  display: block;
  margin-bottom: 8px;
  font-size: 2rem;
  line-height: 1;
}

.purchase-box .button {
  width: 100%;
  margin-top: 18px;
}

.about {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 58px);
  align-items: center;
}

.about-visual {
  position: relative;
  min-height: 430px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}

.about-logo {
  position: relative;
  z-index: 2;
  margin-top: 28px;
}

.teacher-parrot {
  position: absolute;
  right: -24px;
  bottom: -6px;
  z-index: 1;
  width: min(360px, 76%);
  opacity: 0.12;
}

.login-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--cream);
  border-top: 1px solid var(--line);
}

.login-band h2 {
  margin-bottom: 0;
}

.lesson-hero,
.course-hero {
  display: grid;
  gap: 24px;
  padding: clamp(52px, 9vw, 110px) clamp(18px, 6vw, 88px);
  background:
    radial-gradient(circle at 85% 20%, rgba(237, 16, 16, 0.12), transparent 30%),
    var(--paper);
}

.lesson-hero h1,
.course-hero h1 {
  font-size: clamp(3.2rem, 8vw, 7rem);
}

.lesson-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.38fr);
  gap: 22px;
  align-items: start;
}

.lesson-main,
.lesson-side,
.course-hero-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 18px 38px rgba(43, 24, 18, 0.06);
}

.lesson-main {
  padding: clamp(24px, 4vw, 44px);
}

.lesson-main h2 {
  margin-top: 28px;
  font-size: clamp(1.6rem, 2.5vw, 2.4rem);
}

.lesson-main h2:first-child {
  margin-top: 0;
}

.lesson-side {
  position: sticky;
  top: 98px;
  padding: 22px;
}

.lesson-side img {
  max-height: 220px;
  margin: 0 auto 18px;
  object-fit: contain;
}

.phrase-table {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.phrase-table div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.phrase-table span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.phrase-table strong {
  display: block;
}

.course-hero {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.38fr);
  align-items: center;
}

.course-hero-card {
  padding: 26px;
}

.course-hero-card img {
  max-height: 240px;
  margin: 0 auto 20px;
}

.course-hero-card strong,
.course-hero-card span {
  display: block;
}

.course-hero-card strong {
  margin-bottom: 8px;
  font-size: 1.4rem;
}

.course-hero-card span {
  color: var(--muted);
}

.syllabus {
  background: #fff;
  border-block: 1px solid var(--line);
}

.syllabus ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.syllabus li {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  font-weight: 750;
}

.waitlist {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.72fr);
  gap: 24px;
  align-items: center;
}

.legal-section {
  padding-block: clamp(34px, 5vw, 58px);
  background: #fff;
  border-top: 1px solid var(--line);
}

.legal-section div {
  max-width: 900px;
}

.legal-section h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.legal-section p {
  color: var(--muted);
  font-size: 1rem;
}

.legal-section a {
  color: var(--ink);
  font-weight: 850;
  border-bottom: 2px solid currentColor;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(150px, 0.7fr) minmax(0, 2.3fr) minmax(220px, 0.9fr);
  gap: clamp(20px, 4vw, 42px);
  align-items: start;
  padding: 32px clamp(18px, 6vw, 88px);
  color: #fff;
  background: var(--ink);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 950;
}

.site-footer img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.site-footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.footer-seo-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 18px 24px;
  justify-content: start;
}

.footer-seo-links div {
  display: grid;
  gap: 7px;
  align-content: start;
}

.footer-seo-links strong {
  margin-bottom: 3px;
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-seo-links a,
.site-footer .footer-legal a {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.92rem;
  font-weight: 800;
}

.footer-seo-links a:hover,
.site-footer .footer-legal a:hover {
  color: #fff;
}

.footer-legal {
  line-height: 1.7;
  text-align: right;
}

.seo-page {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
  padding: clamp(28px, 5vw, 64px) 0;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.breadcrumbs a {
  color: var(--red-dark);
}

.seo-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  gap: clamp(22px, 4vw, 46px);
  align-items: center;
  padding: clamp(26px, 5vw, 54px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at top right, rgba(217, 43, 32, 0.08), transparent 38%),
    #fff;
  box-shadow: var(--shadow-soft);
}

.seo-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(2.45rem, 6vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.phrase-pinyin {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  font-weight: 900;
}

.phrase-summary-card,
.seo-section {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.phrase-summary-card {
  padding: 24px;
}

.phrase-summary-card span,
.phrase-summary-card a {
  display: block;
}

.phrase-summary-card span {
  color: var(--red-dark);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.phrase-summary-card a {
  margin: 8px 0 12px;
  color: var(--ink);
  font-size: 1.3rem;
  font-weight: 950;
}

.seo-hero-image {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: var(--radius);
}

.seo-section {
  margin-top: 22px;
  padding: clamp(22px, 4vw, 34px);
}

.seo-section h2 {
  margin: 0 0 12px;
  font-size: clamp(1.45rem, 2.6vw, 2.2rem);
  line-height: 1.05;
}

.seo-section p {
  color: var(--muted);
  line-height: 1.65;
}

.two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.seo-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.example-list,
.learning-order {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.example-list li,
.learning-order li {
  display: grid;
  gap: 5px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.example-list strong {
  color: var(--red);
  font-size: 1.35rem;
}

.example-list span,
.learning-order span {
  color: var(--ink);
  font-weight: 800;
}

.example-list em,
.dialogue-card em {
  color: var(--muted);
  font-style: normal;
}

.dialogue-card p {
  display: grid;
  gap: 4px;
  margin: 0 0 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.dialogue-card p:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.dialogue-card b {
  color: var(--red-dark);
}

.dialogue-card span {
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 900;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.comparison-table th,
.comparison-table td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.comparison-table tr:last-child th,
.comparison-table tr:last-child td {
  border-bottom: 0;
}

.comparison-table th {
  width: 120px;
  color: var(--red);
  font-size: 1.12rem;
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.related-links a {
  display: inline-flex;
  gap: 8px;
  align-items: baseline;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-weight: 950;
}

.related-links small {
  color: var(--muted);
  font-size: 0.82rem;
}

.learning-actions {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

@media (max-width: 780px) {
  .site-footer {
    grid-template-columns: 1fr;
  }

  .footer-seo-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-legal {
    text-align: left;
  }

  .seo-hero,
  .two-column,
  .learning-actions {
    grid-template-columns: 1fr;
  }

  .learning-actions {
    display: grid;
  }

  .seo-hero {
    padding: 22px;
  }
}

.site-footer a {
  color: rgba(255, 255, 255, 0.86);
  font-weight: 800;
}

@media (max-width: 980px) {
  .hero,
  .intro-band,
  .feature-split,
  .free-guide,
  .about,
  .lesson-layout,
  .course-hero,
  .waitlist,
  .challenge-teaser,
  .lab-hero,
  .word-lab-layout,
  .teacher-section,
  .challenge-section,
  .share-unlock {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    background:
      linear-gradient(180deg, rgba(248, 208, 82, 0.92) 0%, rgba(248, 208, 82, 0.76) 38%, rgba(255, 253, 248, 0.96) 38%),
      linear-gradient(130deg, rgba(223, 242, 222, 0.85), rgba(199, 238, 241, 0.64));
  }

  .hero-visual {
    min-height: 430px;
  }

  .course-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lesson-strip,
  .pricing-grid,
  .why-grid,
  .research-grid,
  .path-grid,
  .path-cards,
  .culture-categories,
  .next-steps,
  .phrase-table,
  .syllabus ol,
  .preview-grid,
  .hero-value-strip,
  .pack-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lesson-side,
  .lab-sidebar {
    position: static;
  }
}

@media (max-width: 720px) {
  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: 0 auto 0 0;
    right: auto;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: min(310px, 86vw);
    padding: 18px;
    border: 0;
    border-right: 1px solid rgba(234, 223, 219, 0.9);
    border-radius: 0;
    background: #283034;
    box-shadow: 22px 0 48px rgba(0, 0, 0, 0.18);
    transform: translateX(-105%);
  }

  .site-nav.is-open {
    transform: translateX(0);
  }

  .site-nav.static-nav {
    position: fixed;
  }

  .site-header:has(.static-nav) {
    align-items: flex-start;
    flex-direction: column;
  }

  .static-nav a {
    padding: 8px 9px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
  }

  .site-nav .nav-cta {
    margin-left: 0;
    text-align: center;
  }

  .course-grid,
  .method-grid,
  .lesson-strip,
  .pricing-grid,
  .why-grid,
  .research-grid,
  .path-grid,
  .path-cards,
  .next-steps,
  .phrase-table,
  .syllabus ol,
  .preview-grid,
  .hero-value-strip,
  .pack-grid,
  .challenge-days {
    grid-template-columns: 1fr;
  }

  .comparison-table {
    gap: 12px;
    border: 0;
    background: transparent;
  }

  .comparison-row {
    grid-template-columns: 1fr;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
  }

  .comparison-row span {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .comparison-row span:first-child {
    border-top: 0;
    background: var(--paper);
  }

  .culture-categories {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-search div,
  .lab-search div,
  .word-card-head,
  .mini-stats,
  .wordbook-actions {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .hero-search button {
    width: 100%;
  }

  .lab-hero {
    gap: 10px;
    padding: 10px 10px 14px;
  }

  .lab-hero .eyebrow {
    margin-bottom: 4px;
  }

  .hero-positioning {
    margin-bottom: 8px;
    font-size: 1.05rem;
  }

  .lab-hero .lab-search {
    margin-top: 0;
  }

  .lab-search label {
    font-size: 0.72rem;
  }

  .lab-search {
    padding: 7px;
  }

  .lab-search div {
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .lab-search input,
  .lab-search button {
    min-height: 44px;
  }

  .lab-search button {
    width: 100%;
    padding: 0 12px;
  }

  .search-difference {
    margin: 8px 0 12px;
    font-size: 0.86rem;
  }

  .word-lab-layout {
    padding-top: 12px;
    gap: 12px;
  }

  .lab-sidebar {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .lab-sidebar h2 {
    font-size: 1.2rem;
  }

  .lab-sidebar > p:not(.eyebrow),
  .founder-note,
  .dictionary-source {
    font-size: 0.86rem;
  }

  .hero-value-strip {
    gap: 6px;
  }

  .hero-value-strip span,
  .learning-funnel,
  .diagnosis-steps span {
    font-size: 0.78rem;
  }

  .category-filter {
    margin-top: 12px;
  }

  #categoryFilters {
    max-height: 88px;
    overflow: auto;
  }

  .mini-stats button,
  .wordbook-tools {
    padding: 10px;
  }

  .dictionary-result summary {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 11px;
  }

  .result-main strong {
    font-size: 1.85rem;
  }

  .result-main span {
    display: block;
    font-size: 0.92rem;
  }

  .result-main p {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .result-side {
    display: flex;
    justify-content: space-between;
    justify-items: stretch;
  }

  .result-side span {
    max-width: 70%;
  }

  .result-detail {
    padding: 0 8px 8px;
  }

  .usage-cta {
    display: grid;
    gap: 8px;
    padding: 10px;
  }

  .usage-cta p {
    font-size: 0.84rem;
  }

  .usage-cta a {
    min-height: 32px;
    font-size: 0.8rem;
  }

  .teacher-section,
  .pricing,
  .why-gogo,
  .word-packs {
    padding-top: 34px;
    padding-bottom: 34px;
  }

  .teacher-card,
  .price-card {
    min-height: auto;
    padding: 16px;
  }

  .diagnosis-steps {
    gap: 6px;
  }

  .compact-preview {
    padding: 16px;
  }

  .word-card-head {
    align-items: stretch;
  }

  .save-word {
    width: 100%;
  }

  .hero-visual {
    min-height: 360px;
  }

  .speech-card,
  .phrase-card {
    position: relative;
    inset: auto;
    width: 100%;
    margin: 8px 0;
  }

  .hero-visual {
    display: flex;
    flex-direction: column;
  }

  .hero-visual::before {
    width: 250px;
  }

  .hero-visual img {
    width: 280px;
    order: -1;
  }

  .about-visual {
    min-height: 320px;
  }

  .teacher-parrot {
    width: 280px;
  }

  .signup-form div {
    flex-direction: column;
  }

  .login-band {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Batch 1 final overrides. Keep this block last. */
body {
  background: var(--paper);
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid rgba(217, 43, 32, 0.28);
  outline-offset: 3px;
}

.site-header {
  justify-content: space-between;
  min-height: 70px;
  padding: 12px clamp(16px, 4vw, 42px);
  background: rgba(250, 250, 248, 0.9);
  border-bottom-color: rgba(231, 226, 218, 0.86);
}

.brand {
  margin-right: auto;
  color: var(--ink);
  font-size: clamp(1.22rem, 2vw, 1.52rem);
}

.brand img {
  width: 38px;
  height: 38px;
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.header-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 850;
}

.header-actions a:hover {
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
}

.header-actions .header-cta {
  color: #fff;
  background: var(--ink);
}

.menu-toggle {
  border-color: var(--line);
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.site-nav {
  width: min(328px, 88vw);
  padding: 18px 16px 24px;
  background: #fff;
  color: var(--ink);
  border-right: 1px solid var(--line);
  box-shadow: 24px 0 60px rgba(26, 21, 16, 0.18);
}

.drawer-brand {
  padding: 4px 8px 16px;
  color: var(--ink);
}

.site-nav > span {
  margin: 18px 10px 8px;
  color: #9a9088;
  font-size: 0.72rem;
}

.site-nav a {
  min-height: 42px;
  margin-bottom: 2px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: #393431;
  font-size: 0.94rem;
  font-weight: 800;
}

.site-nav a:hover {
  color: var(--ink);
  background: var(--paper);
  border-color: var(--line);
}

.site-nav a.is-active {
  color: var(--red-dark);
  background: #fff1ef;
  border-color: rgba(217, 43, 32, 0.18);
}

.drawer-scrim {
  background: rgba(31, 29, 27, 0.36);
  backdrop-filter: blur(3px);
}

.lab-hero {
  min-height: calc(100vh - 70px);
  padding: clamp(28px, 5vw, 58px) clamp(16px, 5vw, 56px);
  background:
    radial-gradient(circle at top left, rgba(217, 43, 32, 0.08), transparent 34%),
    linear-gradient(180deg, #fff 0%, var(--paper) 100%);
  border-bottom: 1px solid var(--line);
}

.dictionary-shell {
  width: min(100%, var(--container));
  margin: 0 auto;
}

.dictionary-hero-copy {
  max-width: 820px;
  margin-bottom: 22px;
}

.dictionary-hero-copy h1 {
  max-width: 820px;
  margin: 0 0 16px;
  font-size: clamp(2.35rem, 5.5vw, 5.1rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.dictionary-hero-copy .hero-text {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(1.04rem, 1.7vw, 1.22rem);
  line-height: 1.58;
}

.lab-hero .lab-search {
  width: min(100%, 940px);
  margin: 0;
  padding: 12px;
  border-radius: var(--radius-lg);
  background: #fff;
  border-color: var(--line);
  box-shadow: var(--shadow);
}

.lab-search label {
  margin-left: 4px;
  color: #827871;
}

.lab-search input,
.lab-search button {
  min-height: 58px;
  border-radius: var(--radius);
}

.lab-search input {
  padding: 0 18px;
  background: var(--paper);
  border-color: var(--line);
  color: var(--ink);
  font-size: 1.02rem;
}

.lab-search input::placeholder {
  color: #a79e96;
}

.lab-search button,
.button.primary {
  background: var(--red);
  box-shadow: 0 12px 26px rgba(217, 43, 32, 0.2);
}

.lab-search button:hover,
.button.primary:hover {
  background: var(--red-dark);
}

.button,
.wordbook-tools button,
.wordbook-tools a {
  border-radius: var(--radius-sm);
}

.button.secondary {
  background: #fff;
  border-color: var(--line);
  box-shadow: var(--shadow-soft);
}

.suggested-searches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  width: min(100%, 940px);
  margin: 14px 0 10px;
}

.suggested-searches span {
  color: #827871;
  font-size: 0.84rem;
  font-weight: 850;
}

.suggested-searches a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #393431;
  font-size: 0.9rem;
  font-weight: 850;
  box-shadow: var(--shadow-soft);
}

.suggested-searches a:hover {
  border-color: rgba(217, 43, 32, 0.3);
  color: var(--red-dark);
}

.search-difference {
  width: min(100%, 940px);
  margin: 10px 0 18px;
  color: var(--muted);
  font-weight: 650;
}

.word-results {
  width: min(100%, 940px);
  gap: 12px;
}

.home-support-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  width: min(100%, var(--container));
  margin-top: 26px;
}

.home-support-grid article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.home-support-grid span {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--red-dark);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.home-support-grid h2 {
  margin-bottom: 10px;
  font-size: clamp(1.22rem, 2vw, 1.65rem);
  line-height: 1.15;
}

.home-support-grid p {
  margin: 0;
  color: var(--muted);
}

.section,
.word-lab-layout,
.why-gogo,
.teacher-section,
.pricing,
.free-guide {
  padding-inline: clamp(16px, 5vw, 56px);
}

.section > *,
.word-lab-layout > *,
.why-gogo > *,
.teacher-section > *,
.pricing > *,
.free-guide > *,
.legal-section > * {
  width: min(100%, var(--container));
  margin-inline: auto;
}

.word-lab-layout {
  background: var(--paper);
}

.lab-sidebar,
.dictionary-result,
.search-welcome,
.preview-card,
.pack-card,
.word-card,
.teacher-card,
.price-card {
  border-color: var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.dictionary-result {
  overflow: clip;
}

.dictionary-result[open] {
  border-color: rgba(217, 43, 32, 0.24);
  box-shadow: 0 16px 36px rgba(42, 31, 21, 0.08);
}

.result-main strong,
.phrase-card strong {
  color: var(--red);
}

.site-footer {
  display: flex;
  background: #25211e;
}

@media (max-width: 900px) {
  .home-support-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-header {
    gap: 10px;
  }

  .brand span {
    font-size: 1.1rem;
  }

  .header-actions a:not(.header-cta) {
    display: none;
  }

  .header-actions .header-cta {
    min-height: 36px;
    padding: 0 10px;
    font-size: 0.82rem;
  }

  .lab-hero {
    min-height: auto;
    padding: 24px 16px 34px;
  }

  .dictionary-hero-copy h1 {
    font-size: clamp(2.1rem, 12vw, 3.1rem);
  }

  .lab-search {
    padding: 9px;
  }

  .lab-search div {
    gap: 8px;
  }

  .lab-search input,
  .lab-search button {
    min-height: 48px;
  }

  .suggested-searches {
    gap: 7px;
  }

  .home-support-grid article {
    padding: 18px;
  }

  .site-footer {
    display: grid;
  }
}
