/* ============================================================
   Neurovizr MENA — inner pages (2026)
   Brings every content page onto the homepage's editorial,
   wellness-device language: left-aligned type, quiet surfaces,
   hairline structure, no glows. Loaded after legacy.css and
   site.css so the shared page vocabulary is restyled in place.
   Selectors use `html[data-theme] .legacy` to outrank legacy.
   ============================================================ */

html[data-theme] .legacy {
  --max: var(--wrap);
  --cyan: var(--accent);
  --blue: var(--accent-deep);
  --bg-0: var(--bg);
  --bg-1: var(--surface);
  --white: var(--ink);
  --text-dim: var(--ink-2);
  --text-mute: var(--muted);
  --glow-blue: none;
  --glow-cyan: none;
  --shadow-deep: var(--shadow);
  --t-base: 0.3s var(--ease);
  --line: rgba(143, 200, 255, 0.12);
  --line-strong: rgba(143, 200, 255, 0.22);
}
html[data-theme="light"] .legacy {
  --line: rgba(8, 22, 52, 0.09);
  --line-strong: rgba(8, 22, 52, 0.16);
}

/* ---------- Rhythm ---------- */
html[data-theme] .legacy section { padding: clamp(80px, 9vw, 128px) 0; }
html[data-theme] .legacy .section-tight { padding: clamp(56px, 6vw, 88px) 0; }
html[data-theme] .legacy .container { max-width: var(--wrap); padding: 0 20px; }
@media (min-width: 768px) { html[data-theme] .legacy .container { padding: 0 32px; } }

/* ---------- Type ---------- */
html[data-theme] .legacy h1 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(2.6rem, 6vw, 4.75rem); line-height: 1.02; letter-spacing: -0.035em;
  color: var(--ink); text-wrap: balance;
}
html[data-theme] .legacy h2 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.08; letter-spacing: -0.03em;
  color: var(--ink); text-wrap: balance; margin: 0 0 20px;
}
html[data-theme] .legacy h3 {
  font-family: var(--font-display); font-weight: 500;
  font-size: 1.2rem; line-height: 1.25; letter-spacing: -0.02em; color: var(--ink);
}
html[data-theme] .legacy p { color: var(--ink-2); line-height: 1.65; }
html[data-theme] .legacy .lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--ink-2); line-height: 1.6; max-width: 62ch; text-wrap: pretty; }
@media (max-width: 767px) {
  html[data-theme] .legacy h1 br,
  html[data-theme] .legacy h2 br { display: none; }
}

/* Two-tone headline accent: replaces the glowing cyan gradient */
html[data-theme] .legacy .gradient-text,
html[data-theme] .legacy .page-hero h1 em,
html[data-theme] .legacy .glow-text {
  background: none; -webkit-background-clip: border-box; background-clip: border-box;
  color: var(--muted); -webkit-text-fill-color: currentColor;
  filter: none; text-shadow: none; font-style: normal;
}

html[data-theme] .legacy .eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px;
  font-family: var(--font-body); font-size: 12px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
  background: none; border: 0; padding: 0; box-shadow: none;
}
html[data-theme] .legacy .eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0;
  background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft);
}
html[data-theme] .legacy .eyebrow::after { display: none; }

html[data-theme] .legacy :where(p, li, dd, td) > a:not([class]) { color: var(--accent); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
html[data-theme] .legacy :where(p, li, dd, td) > a:not([class]):hover { text-decoration-color: currentColor; }

/* ---------- Buttons ---------- */
html[data-theme] .legacy .btn {
  height: 52px; padding: 0 26px; border-radius: 999px; font-size: 15px; font-weight: 600;
  letter-spacing: -0.005em; box-shadow: none; text-transform: none;
}
html[data-theme] .legacy .btn-sm { height: 42px; padding: 0 18px; font-size: 14px; }
html[data-theme] .legacy .btn-primary { background: var(--btn-bg); color: var(--btn-ink); border: 1px solid transparent; }
html[data-theme] .legacy .btn-primary:hover { box-shadow: 0 10px 30px -12px var(--accent); transform: none; }
html[data-theme] .legacy .btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-strong); }
html[data-theme] .legacy .btn-ghost:hover { border-color: var(--ink); background: transparent; transform: none; }
html[data-theme] .legacy .btn::before,
html[data-theme] .legacy .btn::after { display: none; }
html[data-theme] .legacy .hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: flex-start; margin-top: 32px; }
html[data-theme] .legacy .mt-2 { margin-top: 28px; }

/* ---------- Page hero ---------- */
html[data-theme] .legacy .page-hero {
  text-align: left; overflow: visible;
  padding: clamp(56px, 8vw, 112px) 0 clamp(56px, 6vw, 88px);
  border-bottom: 1px solid var(--line);
}
html[data-theme] .legacy .page-hero::before,
html[data-theme] .legacy .page-hero::after { display: none; }
html[data-theme] .legacy .page-hero .container { display: flex; flex-direction: column; align-items: flex-start; }
html[data-theme] .legacy .page-hero .crumbs {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 28px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
html[data-theme] .legacy .page-hero .crumbs::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft);
}
html[data-theme] .legacy .page-hero h1 { margin: 0 0 24px; max-width: 17ch; }
html[data-theme] .legacy .page-hero p.lead,
html[data-theme] .legacy .page-hero .lead { margin: 0; max-width: 60ch; text-align: left; }
html[data-theme] .legacy .page-hero .hero-actions { justify-content: flex-start; }

/* ---------- Section heads ---------- */
html[data-theme] .legacy .section-head,
html[data-theme] .legacy .research-intro {
  text-align: left; max-width: 760px; margin: 0 0 56px;
  display: flex; flex-direction: column; align-items: flex-start;
}
html[data-theme] .legacy .section-head h2,
html[data-theme] .legacy .research-intro h2 { margin: 0 0 18px; }
html[data-theme] .legacy .section-head .lead,
html[data-theme] .legacy .section-head p,
html[data-theme] .legacy .research-intro p { margin: 0; }

/* ---------- Manifesto (two-column editorial) ---------- */
html[data-theme] .legacy .manifesto { overflow: visible; padding: clamp(80px, 10vw, 144px) 0; }
html[data-theme] .legacy .manifesto::before,
html[data-theme] .legacy .manifesto::after { display: none; }
html[data-theme] .legacy .manifesto-inner { max-width: none; margin: 0; text-align: left; }
html[data-theme] .legacy .manifesto h2 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); line-height: 1.05; margin: 0 0 32px; }
html[data-theme] .legacy .manifesto p {
  font-size: clamp(1.05rem, 1.3vw, 1.18rem); line-height: 1.7; color: var(--ink-2);
  max-width: 60ch; margin: 0 0 20px;
}
html[data-theme] .legacy .manifesto p:last-of-type { color: var(--ink); }
@media (min-width: 960px) {
  html[data-theme] .legacy .manifesto-inner {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 88px; row-gap: 0;
  }
  html[data-theme] .legacy .manifesto-inner > .eyebrow { grid-column: 1 / -1; grid-row: 1; justify-self: start; margin-bottom: 28px; }
  html[data-theme] .legacy .manifesto-inner > h2 { grid-column: 1; grid-row: 2 / span 30; align-self: start; position: sticky; top: 120px; margin: 0; font-size: clamp(2.2rem, 3.6vw, 3.2rem); }
  html[data-theme] .legacy .manifesto-inner > h2 br { display: none; }
  html[data-theme] .legacy .manifesto-inner > :not(.eyebrow):not(h2) { grid-column: 2; }
}
html[data-theme] .legacy .manifesto .sig { color: var(--muted); letter-spacing: 0.16em; font-size: 12px; margin-top: 20px; }
html[data-theme] .legacy .manifesto .sig::before,
html[data-theme] .legacy .manifesto .sig::after { background: var(--line-strong); box-shadow: none; width: 28px; }

/* ---------- Split ---------- */
html[data-theme] .legacy .split { gap: clamp(40px, 6vw, 88px); align-items: center; }
html[data-theme] .legacy .split h2 { margin: 0 0 20px; }
html[data-theme] .legacy .split p { max-width: 56ch; margin: 0 0 16px; }
html[data-theme] .legacy .split-media {
  border-radius: var(--radius-lg); border: 0; box-shadow: var(--shadow); background: var(--surface-2);
}
html[data-theme] .legacy .split-media video { object-fit: cover; background: #02112e; }

/* ---------- Tinted blocks ---------- */
html[data-theme] .legacy .research-block,
html[data-theme] .legacy .research-section {
  background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
html[data-theme] .legacy .research-block::before,
html[data-theme] .legacy .research-block::after { display: none; }

/* ---------- Cards (one quiet surface everywhere) ---------- */
html[data-theme] .legacy :is(.pillar, .tech-card, .sci-card, .why-card, .trust-card, .assurance-card, .inc-card,
  .step-card, .research-card, .clinic-card, .partner-card, .pricing-card, .try-step, .vstep, .trial-point, .waiver-card) {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none;
  transition: border-color 0.3s ease, transform 0.4s var(--ease);
}
html[data-theme] .legacy :is(.pillar, .tech-card, .sci-card, .why-card, .trust-card, .assurance-card, .inc-card,
  .step-card, .research-card, .clinic-card, .partner-card, .pricing-card):hover {
  border-color: var(--line-strong); box-shadow: none; transform: none;
}
html[data-theme] .legacy :is(.pillar, .tech-card, .partner-card)::before,
html[data-theme] .legacy :is(.pillar, .tech-card, .partner-card):hover::before { display: none; }
html[data-theme="light"] .legacy :is(.pillar, .tech-card, .sci-card, .why-card, .trust-card, .assurance-card, .inc-card,
  .step-card, .research-card, .clinic-card, .partner-card, .pricing-card) {
  box-shadow: 0 1px 2px rgba(8, 22, 52, 0.04);
}

html[data-theme] .legacy .pillars { gap: 16px; }
html[data-theme] .legacy .pillars.three { max-width: none; }
html[data-theme] .legacy .pillar { padding: 28px; display: flex; flex-direction: column; }
html[data-theme] .legacy :is(.pillar-icon, .why-icon, .inc-icon, .tc-icon, .region-icon, .icon.ic, .ic) {
  width: 44px; height: 44px; border-radius: 50%; margin-bottom: 36px;
  display: inline-grid; place-items: center; flex-shrink: 0;
  background: var(--accent-soft); color: var(--accent); border: 0; box-shadow: none;
}
html[data-theme] .legacy :is(.pillar-icon, .why-icon, .inc-icon, .tc-icon, .region-icon) svg { width: 20px; height: 20px; }
html[data-theme] .legacy .pillar h3 { font-size: 1.15rem; margin: 0 0 10px; }
html[data-theme] .legacy .pillar p { font-size: 15px; line-height: 1.6; color: var(--ink-2); margin: 0; }

html[data-theme] .legacy .tech-card { padding: 28px; }
html[data-theme] .legacy .tech-card .tech-num {
  font-family: var(--font-display); font-weight: 500; font-size: 13px; letter-spacing: 0.08em;
  color: var(--accent); background: none; -webkit-text-fill-color: currentColor; filter: none; text-shadow: none;
  margin-bottom: 36px; display: block;
}
html[data-theme] .legacy .tech-card h3 { margin: 0 0 10px; }
html[data-theme] .legacy .tech-card p { font-size: 15px; margin: 0; }

/* Pricing / packages */
html[data-theme] .legacy .pricing-card { padding: 32px; }
html[data-theme] .legacy .pricing-card.featured { border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 1px var(--accent); }
html[data-theme] .legacy .pricing-card.featured::before {
  background: var(--accent); color: var(--bg); left: 32px; transform: none;
  font-size: 10px; letter-spacing: 0.16em; padding: 5px 12px;
}
html[data-theme] .legacy .pricing-card .tier-label { color: var(--accent); letter-spacing: 0.14em; font-size: 11px; font-weight: 600; }
html[data-theme] .legacy .pricing-card .tier-name { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.02em; color: var(--ink); }
html[data-theme] .legacy .pricing-card .tier-range { color: var(--muted); }
html[data-theme] .legacy .pricing-card .tier-features li { color: var(--ink-2); border-color: var(--line); }
html[data-theme] .legacy :is(.ck, .check) { color: var(--accent); }
html[data-theme] .legacy .pkg-tag {
  background: transparent; border: 1px solid var(--line-strong); color: var(--ink-2);
  border-radius: 999px; box-shadow: none;
}
html[data-theme] .legacy .pkg-label { color: var(--muted); letter-spacing: 0.14em; }

/* Process steps */
html[data-theme] .legacy .process-steps { gap: 16px; margin-top: 0; }
html[data-theme] .legacy .process-step {
  text-align: left; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
}
html[data-theme] .legacy .process-step:not(:last-child)::after { display: none; }
html[data-theme] .legacy :is(.process-step, .step-card, .try-step, .vstep) .step-num,
html[data-theme] .legacy :is(.ts-num, .num) {
  width: 40px; height: 40px; margin: 0 0 32px; border-radius: 50%;
  display: inline-grid; place-items: center;
  font-family: var(--font-display); font-size: 15px; font-weight: 500; letter-spacing: 0;
  background: var(--accent-soft); color: var(--accent); border: 0; box-shadow: none;
  -webkit-text-fill-color: currentColor; filter: none;
}
html[data-theme] .legacy .process-step h3 { font-size: 1.15rem; margin: 0 0 10px; }
html[data-theme] .legacy .process-step p { font-size: 15px; line-height: 1.6; }
html[data-theme] .legacy .step-card { padding: 28px; text-align: left; }

/* Stat bar */
html[data-theme] .legacy .stat-bar {
  gap: 1px; background: var(--line); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: none;
}
html[data-theme] .legacy .stat-bar-item { background: var(--surface); padding: 28px 24px; text-align: left; border: 0; }
html[data-theme] .legacy .stat-bar-item .s-num {
  font-family: var(--font-display); font-weight: 500; letter-spacing: -0.04em; line-height: 1;
  font-size: clamp(2rem, 3.6vw, 2.8rem); color: var(--ink);
  background: none; -webkit-text-fill-color: currentColor; filter: none; text-shadow: none;
}
html[data-theme] .legacy .stat-bar-item .s-num span { color: var(--accent); -webkit-text-fill-color: currentColor; }
html[data-theme] .legacy .stat-bar-item .s-lbl { color: var(--ink-2); font-size: 14px; letter-spacing: 0; text-transform: none; }
html[data-theme] .legacy .stat-bar-item .s-src { color: var(--muted); font-size: 11px; letter-spacing: 0.1em; }

/* Spec table */
html[data-theme] .legacy .spec-table { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; box-shadow: none; }
html[data-theme] .legacy .spec-table .spec-row { border-color: var(--line); padding: 16px 22px; }
html[data-theme] .legacy .spec-table .spec-row .lbl { color: var(--muted); letter-spacing: 0.08em; }
html[data-theme] .legacy .spec-table .spec-row .val { color: var(--ink); }

/* ---------- CTA band (always deep, like the homepage) ---------- */
html[data-theme] .legacy .cta-banner {
  text-align: left; border: 0; border-radius: var(--radius-lg);
  padding: clamp(48px, 7vw, 96px) clamp(28px, 6vw, 88px);
  color: #eef3fb; box-shadow: none;
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(34, 175, 255, 0.22), transparent 60%),
    radial-gradient(60% 90% at 0% 100%, rgba(0, 87, 200, 0.4), transparent 60%),
    #031433;
}
html[data-theme] .legacy .cta-banner::before,
html[data-theme] .legacy .cta-banner::after { display: none; }
html[data-theme] .legacy .cta-banner h2 { color: #eef3fb; max-width: 18ch; margin: 0 0 18px; }
html[data-theme] .legacy .cta-banner .gradient-text { color: #8fa6cc; }
html[data-theme] .legacy .cta-banner .lead,
html[data-theme] .legacy .cta-banner p { color: #c2cce0; margin: 0; max-width: 56ch; }
html[data-theme] .legacy .cta-banner .eyebrow { color: #8fa6cc; }
html[data-theme] .legacy .cta-banner .hero-actions { justify-content: flex-start !important; margin-top: 32px !important; }
html[data-theme] .legacy .cta-banner .btn-primary { background: #eef3fb; color: #02112e; }
html[data-theme] .legacy .cta-banner .btn-ghost { color: #eef3fb; border-color: rgba(255, 255, 255, 0.28); }
html[data-theme] .legacy .cta-banner .btn-ghost:hover { border-color: #fff; }
html[data-theme] .legacy .cta-banner a:not(.btn) { color: #b9e6ff; }

/* ---------- FAQ ---------- */
html[data-theme] .legacy .faq { max-width: 880px; margin: 0; border-top: 1px solid var(--line); }
html[data-theme] .legacy .faq details,
html[data-theme] .legacy details { border-bottom: 1px solid var(--line); padding: 0; }
html[data-theme] .legacy details summary {
  cursor: pointer; list-style: none; padding: 24px 0;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 500; letter-spacing: -0.015em; color: var(--ink);
  transition: color 0.2s ease;
}
html[data-theme] .legacy details summary::-webkit-details-marker { display: none; }
html[data-theme] .legacy details summary:hover { color: var(--accent); }
html[data-theme] .legacy details summary::after,
html[data-theme] .legacy details[open] summary::after {
  content: ""; flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(var(--ink), var(--ink)) center / 10px 1.5px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 1.5px 10px no-repeat;
  transition: transform 0.3s var(--ease), background-size 0.3s var(--ease);
  font-size: 0;
}
html[data-theme] .legacy details[open] summary { color: var(--ink); }
html[data-theme] .legacy details[open] summary::after { transform: rotate(180deg); background-size: 10px 1.5px, 1.5px 0; }
html[data-theme] .legacy details > :not(summary) { margin: 0 0 24px; max-width: 68ch; font-size: 15.5px; color: var(--ink-2); line-height: 1.7; }
html[data-theme] .legacy details p + p { margin-top: -12px; }
html[data-theme] .legacy details a { color: var(--accent); }

/* ---------- Contact + forms ---------- */
html[data-theme] .legacy .contact-grid { gap: clamp(40px, 6vw, 80px); align-items: start; }
html[data-theme] .legacy .contact-info .info-row { padding: 20px 0; border-bottom: 1px solid var(--line); }
html[data-theme] .legacy .contact-info .info-row:first-of-type { border-top: 1px solid var(--line); }
html[data-theme] .legacy .contact-info .info-lbl { font-size: 11px; letter-spacing: 0.14em; color: var(--muted); margin-bottom: 6px; }
html[data-theme] .legacy .contact-info a { color: var(--ink); font-weight: 500; font-size: 1.1rem; text-decoration: none; }
html[data-theme] .legacy .contact-info a:hover { color: var(--accent); }
html[data-theme] .legacy .contact-grid:has(> :only-child) { display: block; }
@media (min-width: 820px) {
  html[data-theme] .legacy .contact-grid:has(> :only-child) > .contact-info {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px;
  }
  html[data-theme] .legacy .contact-grid:has(> :only-child) > .contact-info > :not(.info-row) { grid-column: 1 / -1; }
  html[data-theme] .legacy .contact-grid:has(> :only-child) > .contact-info > h2 { margin-bottom: 40px; }
  html[data-theme] .legacy .contact-grid:has(> :only-child) .info-row:nth-of-type(-n+2) { border-top: 1px solid var(--line); }
}
html[data-theme] .legacy .contact-form,
html[data-theme] .legacy form:not(.theme-switch) {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: none;
}
html[data-theme] .legacy .contact-form { padding: clamp(24px, 4vw, 40px); }
html[data-theme] .legacy .field label,
html[data-theme] .legacy form label {
  font-size: 13px; letter-spacing: 0; text-transform: none; font-weight: 500; color: var(--ink-2); margin-bottom: 8px; display: block;
}
html[data-theme] .legacy :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), select, textarea) {
  width: 100%; min-height: 50px; padding: 12px 16px; border-radius: 14px;
  font: inherit; font-size: 15.5px; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line-strong); box-shadow: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
html[data-theme] .legacy textarea { min-height: 140px; resize: vertical; }
html[data-theme] .legacy :is(input, select, textarea)::placeholder { color: var(--muted); opacity: 1; }
html[data-theme] .legacy :is(input, select, textarea):focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
html[data-theme] .legacy input[type="checkbox"] { accent-color: var(--accent); width: 18px; height: 18px; }

/* ---------- Long-form / legal ---------- */
html[data-theme] .legacy :is(.terms-box, .conditions-box, .warning-box, .waiver-note, .terms-intro, .waiver-intro) {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: none; color: var(--ink-2);
}
html[data-theme] .legacy .warning-box { border-color: color-mix(in srgb, var(--rouge) 45%, transparent); background: color-mix(in srgb, var(--rouge) 7%, var(--surface)); }
html[data-theme] .legacy .waiver-section { border-color: var(--line); }
html[data-theme] .legacy .waiver-section h3 { font-size: 1.15rem; margin-bottom: 10px; }

/* ---------- Partner cards ---------- */
html[data-theme] .legacy .partner-card { padding: 32px; }
html[data-theme] .legacy .partner-card h3 { font-size: 1.4rem; }
html[data-theme] .legacy .partner-badge,
html[data-theme] .legacy .guarantee-badge,
html[data-theme] .legacy .verify-badge,
html[data-theme] .legacy .try-badge {
  background: var(--accent-soft); color: var(--accent); border: 0; box-shadow: none; border-radius: 999px;
}

/* ---------- Trial locations ---------- */
html[data-theme] .legacy .try-hero {
  text-align: left;
  padding: clamp(48px, 6vw, 80px) 0 40px;
}
html[data-theme] .legacy .try-hero h1 { margin: 0 0 24px; }
html[data-theme] .legacy .try-hero .lead { margin: 0; max-width: 62ch; }
html[data-theme] .legacy .try-badge {
  max-width: 100%; padding: 10px 14px; gap: 10px; margin-bottom: 24px;
  font-size: 13px; line-height: 1.5; letter-spacing: 0;
}
/* The region badge uses an inline icon, not the shared 44px card icon. */
html[data-theme] .legacy .try-badge .region-icon {
  width: 18px; height: 18px; margin: 0; display: block;
  background: none; border-radius: 0;
}
html[data-theme] .legacy .try-badge .region-copy { flex-wrap: wrap; gap: 2px 10px; }
html[data-theme] .legacy .try-badge .region-source { color: var(--muted); font-size: 12px; }
html[data-theme] .legacy .map-section { padding: 0 0 48px; scroll-margin-top: 100px; }
html[data-theme] .legacy .map-shell {
  --map-sea: #081b38;
  --map-land: #14304d;
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(360px, 1fr);
  height: 600px; background: var(--surface); border-color: var(--line-strong);
}
html[data-theme="light"] .legacy .map-shell { --map-sea: #e3eff7; --map-land: #f6f8fb; }
html[data-theme] .legacy .map-pane { min-width: 0; min-height: 0; background: var(--map-sea); }
html[data-theme] .legacy .map-pane > svg { display: block; }
html[data-theme] .legacy .map-pane > svg > rect { fill: var(--map-sea); }
html[data-theme] .legacy .map-pane #land { fill: var(--map-land); }
html[data-theme] .legacy .map-pane #gridP path { stroke: var(--line); }
html[data-theme] .legacy .map-hud-corner { border-color: var(--line-strong); }
html[data-theme] .legacy .coast { stroke: var(--accent); opacity: 0.6; filter: none; }
html[data-theme] .legacy .sea-wave { stroke: var(--accent); opacity: 0.12; animation: none; }
html[data-theme] .legacy .district-label { fill: var(--muted); font-size: 15px; letter-spacing: 0.08em; }
html[data-theme] .legacy .sea-label { fill: var(--muted); font-size: 16px; letter-spacing: 0.2em; }
html[data-theme] .legacy .poi-label { fill: var(--muted); font-size: 12px; letter-spacing: 0.08em; }
html[data-theme] .legacy .rocks path { fill: var(--muted); }
html[data-theme] .legacy .river { stroke: var(--accent); opacity: 0.35; filter: none; }
html[data-theme] .legacy .corniche { stroke: var(--muted); opacity: 0.3; }
html[data-theme] .legacy .artery { stroke: var(--muted); opacity: 0.25; animation: none; }
html[data-theme] .legacy .compass circle,
html[data-theme] .legacy .map-scale path { stroke: var(--muted); }
html[data-theme] .legacy .compass path { fill: var(--muted); }
html[data-theme] .legacy .pin .pin-core { r: 14px; fill: var(--accent); stroke: var(--surface); stroke-width: 2; filter: none; }
html[data-theme] .legacy .pin .pin-num { fill: var(--bg); font-size: 13px; }
html[data-theme] .legacy .pin .pin-ring { stroke: var(--accent); opacity: 0.35; animation: none; }
html[data-theme] .legacy .pin .pin-ring.r2 { display: none; }
html[data-theme] .legacy .pin.active .pin-halo,
html[data-theme] .legacy .pin:focus-visible .pin-halo { fill: var(--accent-soft); }
html[data-theme] .legacy .pin .pin-label {
  font-size: 14px; paint-order: stroke; stroke: var(--map-land); stroke-width: 4px; stroke-linejoin: round;
  opacity: 0;
}
html[data-theme] .legacy .pin.active .pin-label,
html[data-theme] .legacy .pin:focus-visible .pin-label { fill: var(--ink); opacity: 1; }
html[data-theme] .legacy .loc-pane { min-width: 0; min-height: 0; background: var(--surface); overflow: hidden; }
html[data-theme] .legacy .loc-head { flex-shrink: 0; padding: 24px; }
html[data-theme] .legacy .loc-head .lh-eyebrow { color: var(--muted); letter-spacing: 0.14em; }
html[data-theme] .legacy .loc-head h3 { margin: 0; color: var(--ink); }
html[data-theme] .legacy .loc-list { flex: 1; min-height: 0; max-height: none; scrollbar-color: var(--line-strong) transparent; }
html[data-theme] .legacy .loc-card { padding: 20px 24px; }
html[data-theme] .legacy .loc-card:last-child { border-bottom: 0; }
html[data-theme] .legacy .loc-card:hover,
html[data-theme] .legacy .loc-card.active { background: var(--accent-soft); }
html[data-theme] .legacy .loc-card.active::before { background: var(--accent); box-shadow: none; }
html[data-theme] .legacy .loc-card .lc-row { gap: 12px; }
html[data-theme] .legacy .loc-card .lc-row > div { min-width: 0; }
html[data-theme] .legacy .loc-card .lc-num {
  flex: 0 0 28px; height: 28px; margin: 0;
  color: var(--accent); border-color: var(--line-strong); background: var(--accent-soft); box-shadow: none;
}
html[data-theme] .legacy .loc-card.active .lc-num { background: var(--accent); color: var(--bg); }
html[data-theme] .legacy .loc-card h4 {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px;
  color: var(--ink); font-size: 16px; font-weight: 600; line-height: 1.5; margin: 0 0 12px;
}
html[data-theme] .legacy .lc-tag { margin: 0; color: var(--accent); background: var(--accent-soft); border-color: var(--line-strong); letter-spacing: 0.04em; }
html[data-theme] .legacy .lc-actions { gap: 8px; }
html[data-theme] .legacy .lc-btn {
  min-height: 36px; padding: 8px 10px; gap: 6px; line-height: 1.2; font-size: 12px;
  color: var(--ink-2); background: var(--surface); border-color: var(--line-strong); box-shadow: none;
}
html[data-theme] .legacy .lc-btn:hover { color: var(--ink); border-color: var(--accent); }
html[data-theme] .legacy .lc-btn.primary { color: var(--btn-ink); background: var(--btn-bg); border-color: transparent; }
html[data-theme] .legacy .lc-btn svg { width: 13px; height: 13px; flex-shrink: 0; }
html[data-theme] .legacy .loc-card:focus-visible,
html[data-theme] .legacy .lc-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; }
@media (max-width: 980px) {
  html[data-theme] .legacy .map-shell { grid-template-columns: minmax(0, 1fr); height: auto; }
  html[data-theme] .legacy .map-pane { aspect-ratio: 1000 / 760; }
  html[data-theme] .legacy .loc-pane { border-left: 0; border-top: 1px solid var(--line); }
  html[data-theme] .legacy .loc-list { flex: auto; max-height: 480px; }
}
@media (max-width: 479px) {
  html[data-theme] .legacy .try-hero .hero-actions { align-items: stretch; flex-direction: column; }
  html[data-theme] .legacy .try-badge .region-copy { flex-direction: column; align-items: flex-start; }
  html[data-theme] .legacy .loc-head,
  html[data-theme] .legacy .loc-card { padding: 20px 16px; }
  html[data-theme] .legacy .lc-btn { min-height: 40px; }
}

/* ---------- Dictionary ---------- */
html[data-theme] .legacy .dictionary-item { border-color: var(--line); background: transparent; box-shadow: none; }

/* ---------- Science: research index + video stage ---------- */
html[data-theme] .legacy .research-intro p { font-size: 1.1rem; color: var(--ink-2); max-width: 62ch; margin: 0 0 14px; }
html[data-theme] .legacy .research-section {
  display: grid; gap: 16px 64px; grid-template-columns: 1fr;
  padding: 40px 0; margin: 0; border: 0; border-top: 1px solid var(--line); background: none;
}
html[data-theme] .legacy .research-section:last-of-type { border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { html[data-theme] .legacy .research-section { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
html[data-theme] .legacy .research-section .num {
  width: auto; height: auto; margin: 0 0 14px; display: block; background: none; border-radius: 0;
  font-family: var(--font-body); font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent);
}
html[data-theme] .legacy .research-section h3 { font-size: 1.45rem; line-height: 1.2; max-width: 22ch; }
html[data-theme] .legacy .research-section .body p { margin: 0 0 12px; font-size: 15.5px; max-width: 62ch; }
html[data-theme] .legacy .sci-stage { max-width: none; }
html[data-theme] .legacy .sci-stage .glow,
html[data-theme] .legacy .sci-stage .frame::after { display: none; }
html[data-theme] .legacy .sci-stage .frame { border: 0; border-radius: var(--radius-lg); box-shadow: var(--shadow); }

/* ---------- Product: showcase band + experience pack ---------- */
html[data-theme] .legacy .product-showcase {
  background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
html[data-theme] .legacy .product-showcase::before,
html[data-theme] .legacy .product-showcase::after { display: none; }
html[data-theme] .legacy .experience-pack {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: clamp(24px, 4vw, 48px); gap: clamp(28px, 5vw, 64px);
}
html[data-theme] .legacy .experience-pack::before { display: none; }
html[data-theme] .legacy .experience-pack .pack-media { border-radius: var(--radius); border: 0; box-shadow: none; overflow: hidden; }
html[data-theme] .legacy .experience-pack .pack-price .now {
  font-family: var(--font-display); font-weight: 500; letter-spacing: -0.04em; color: var(--ink);
  background: none; -webkit-text-fill-color: currentColor; filter: none; text-shadow: none;
}
html[data-theme] .legacy .experience-pack .pack-price .ccy { color: var(--muted); }
html[data-theme] .legacy .experience-pack :is(li, p) { color: var(--ink-2); }
html[data-theme] .legacy .experience-pack ul.included li { color: var(--ink-2); font-size: 1rem; }
html[data-theme] .legacy .experience-pack ul.included .check {
  font-size: 0; color: var(--accent); background: var(--accent-soft, color-mix(in oklab, var(--accent) 14%, transparent));
  border: 1px solid color-mix(in oklab, var(--accent) 30%, transparent);
}
html[data-theme] .legacy .experience-pack ul.included .check::before {
  content: ""; width: 11px; height: 11px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
html[data-theme] .legacy .experience-pack .pack-body h3 {
  font-family: var(--font-body); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 8px 0 16px;
}
html[data-theme] .legacy .n9-video-section { background: none; }
html[data-theme] .legacy .n9-video-section :is(.frame, .n9-video, video) { border-radius: var(--radius-lg); box-shadow: var(--shadow); border: 0; }

/* ---------- Verify: comparison table ---------- */
html[data-theme] .legacy .compare-table .cmp-ic { display: block; }
html[data-theme] .legacy .compare-table tbody td { color: var(--ink-2); }
html[data-theme] .legacy .compare-table tbody td:first-child { color: var(--ink); font-weight: 500; }
html[data-theme] .legacy .compare-table td.check { color: var(--accent); }
html[data-theme] .legacy .compare-table td.cross { color: var(--muted); opacity: .7; }

/* ---------- Wellness series ---------- */
html[data-theme] .wellness-page .legacy {
  --muted: var(--ink-2);
  --garnet-ember: var(--accent);
  --dim: var(--ink-2);
}
html[data-theme] .wellness-page .hero {
  min-height: auto; padding: clamp(64px, 8vw, 112px) 20px 64px;
}
html[data-theme] .wellness-page .hero h1 {
  background: none; color: var(--ink); text-shadow: none; max-width: 18ch;
}
html[data-theme] .wellness-page .hero .the { font-size: 20px; font-style: normal; color: var(--muted); }
html[data-theme] .wellness-page .hero .edition {
  background: none; border: 0; border-radius: 0; box-shadow: none; transform: none;
  flex-direction: row; flex-wrap: wrap; justify-content: center;
  font-size: 11px; line-height: 1.6; letter-spacing: .18em;
}
html[data-theme] .wellness-page .hero p { margin-bottom: 24px; }
html[data-theme] .wellness-page .hero .scroll-hint { margin-top: 8px; }
html[data-theme] .wellness-page .hero .scroll-hint .lbl { color: var(--muted); }
html[data-theme] .wellness-page .hero .scroll-hint .line { height: 32px; }
html[data-theme] .wellness-page .legacy :is(.intro-section, .section) {
  width: 100%; max-width: var(--wrap); margin: 0 auto; padding-left: 20px; padding-right: 20px;
}
html[data-theme] .wellness-page .intro-card { background: var(--surface); border-color: var(--line); box-shadow: none; }
html[data-theme] .wellness-page .intro-content { padding: clamp(24px, 4vw, 48px); }
html[data-theme] .wellness-page .intro-content h2 { color: var(--ink); }
html[data-theme] .wellness-page .intro-content p { color: var(--ink-2); }
html[data-theme] .wellness-page .intro-eyebrow { color: var(--accent); }
html[data-theme] .wellness-page .intro-note { width: fit-content; max-width: 100%; color: var(--ink); background: var(--accent-soft); border-color: var(--line-strong); }
html[data-theme] .wellness-page .card { --garnet-ember: #b9e6ff; --muted: #c2cce0; --dim: #a9b6d0; }
html[data-theme] .wellness-page .card .meta { z-index: 4; }
html[data-theme] .wellness-page .card .meta .title { color: #fff; font-weight: 500; }
html[data-theme] .wellness-page .lightbox { z-index: 200; padding: 72px 20px; overflow-y: auto; }
html[data-theme] .wellness-page .lightbox-stage { max-width: min(1100px, calc((100dvh - 200px) * 16 / 9)); overflow: visible; }
html[data-theme] .wellness-page .lightbox-stage::before { pointer-events: none; }
html[data-theme] .wellness-page .lightbox-stage video { border-radius: 16px; }
html[data-theme] .wellness-page .lightbox-close { z-index: 5; color: #fff; }
html[data-theme] .wellness-page .lightbox-caption { display: block; position: static; padding-top: 16px; }
html[data-theme] .wellness-page .lightbox-caption .t { font-size: 18px; line-height: 1.35; }
html[data-theme] .wellness-page .lightbox-caption .s { color: #c2cce0; letter-spacing: .08em; line-height: 1.5; }
html[data-theme] .wellness-page .lightbox-stage .media-error-message { height: auto; bottom: auto; aspect-ratio: 16 / 9; width: 100%; border-radius: 16px; }
@media (min-width: 768px) {
  html[data-theme] .wellness-page .legacy :is(.intro-section, .section) { padding-left: 32px; padding-right: 32px; }
}
@media (max-width: 600px) {
  html[data-theme] .wellness-page .hero .edition::before,
  html[data-theme] .wellness-page .hero .edition::after { display: none; }
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html[data-theme] .legacy .manifesto-inner > h2 { position: static; }
}
