#premium-catalog[hidden] { display: none; }
.release-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.release-actions p { margin: 0; }
.desktop-nav a, .mobile-nav a { min-block-size: 24px; }
.desktop-nav a:focus-visible, .mobile-nav a:focus-visible, .release-actions a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}
.facts[hidden] { display: none; }
@media (max-width: 1120px) {
  .header-inner { grid-template-columns: 1fr auto; }
  .desktop-nav, .header-actions > .locale, .login-button { display: none; }
  .menu-button { display: grid; }
}

html .hero h1#hero-title {
  max-inline-size: 20ch;
  font-size: clamp(2.2rem, 5.2vw, 5rem);
  line-height: 1.06;
  letter-spacing: -.045em;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
.hero .hero-description { text-wrap: pretty; }
@media (max-width: 650px) {
  html .hero h1#hero-title {
    margin-inline: auto;
    font-size: clamp(1.85rem, 7.7vw, 3rem);
  }
}

/* ---------------------------------------------------------------------------
   Light Mode for the approved Mountain Hero.
   Every colour rule is scoped to the shared `tf_theme` cookie state. With
   data-theme="dark" (or no attribute) this file changes nothing: the original
   composition, mountain images, gradients and animations stay untouched.
   --------------------------------------------------------------------------- */
html[data-theme="light"] { color-scheme: light; }
html[data-theme="light"] body { background: #f4f8f6; color: #102824; }
html[data-theme="light"] .dark { background: #f4f8f6; color: #102824; }
html[data-theme="light"] .light { background: #eef4f1; color: #102824; }

/* Header and the single shared toggle */
html[data-theme="light"] .site-header {
  background: rgba(255, 255, 255, .94);
  color: #102824;
  border-bottom-color: #cbdcd5;
}
html[data-theme="light"] .desktop-nav { color: #355048; }
html[data-theme="light"] .desktop-nav a:hover,
html[data-theme="light"] .mobile-nav a:hover { color: #0f6f65; }
html[data-theme="light"] .locale,
html[data-theme="light"] .locale button { color: #355048; }
html[data-theme="light"] .locale button:hover { color: #0f6f65; }
html[data-theme="light"] .locale button[aria-pressed="true"] {
  color: #0f6f65;
  background: rgba(15, 118, 110, .08);
  border-color: rgba(15, 118, 110, .35);
}
html[data-theme="light"] .button-outline {
  border-color: #b8d0c8;
  color: #102824;
  background: #fff;
}
html[data-theme="light"] .button-outline:hover {
  border-color: #0f766e;
  background: #e9f5f1;
}
html[data-theme="light"] .button-mint,
html[data-theme="light"] .skip {
  background: #0f766e;
  border-color: #0f766e;
  color: #fff;
}
html[data-theme="light"] .button-mint:hover { background: #0b5f58; border-color: #0b5f58; }
html[data-theme="light"] .menu-button { border-color: #b8d0c8; color: #102824; }

.tf-theme-toggle {
  display: inline-grid;
  place-items: center;
  flex: none;
  inline-size: 40px;
  block-size: 38px;
  padding: 0;
  border: 1px solid #b8d0c8;
  border-radius: 9px;
  background: rgba(255, 255, 255, .82);
  color: #0f6f65;
  transition: background .24s, border-color .24s, color .24s;
}
.tf-theme-toggle:hover { border-color: #0f766e; background: #e9f5f1; }
html[data-theme="dark"] .tf-theme-toggle {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .28);
  color: var(--mint);
}
html[data-theme="dark"] .tf-theme-toggle:hover { background: rgba(128, 226, 209, .12); }
.tf-theme-toggle:focus-visible { outline: 2px solid #0f766e; outline-offset: 3px; }
@media (max-width: 1120px) {
  .tf-theme-toggle { inline-size: 44px; block-size: 44px; }
}

/* Hero: same mountains, light-safe layers instead of a new composition */
html[data-theme="light"] .hero { background: #dceae4; }
html[data-theme="light"] .hero::after {
  background:
    radial-gradient(ellipse 44% 49% at 50% 39%, rgba(244, 248, 246, .94) 3%, rgba(244, 248, 246, .72) 54%, rgba(244, 248, 246, .2) 100%),
    linear-gradient(180deg, rgba(244, 248, 246, .82) 0%, rgba(244, 248, 246, .45) 22%, rgba(244, 248, 246, .35) 61%, rgba(244, 248, 246, .9) 100%);
}
html[data-theme="light"] .hero-back img,
html[data-theme="light"] .hero-front { filter: saturate(.8) brightness(1.35); }
html[data-theme="light"] .hero-aurora { opacity: .35; }
html[data-theme="light"] .hero h1 {
  color: #0b2b26;
  text-shadow: 0 1px 12px rgba(255, 255, 255, .85);
}
html[data-theme="light"] .hero h1 .hero-accent { color: #0f766e; }
html[data-theme="light"] .hero-description { color: #25473f; text-shadow: none; }
html[data-theme="light"] .hero-tag {
  background: rgba(255, 255, 255, .88);
  border-color: #9cc9bd;
  color: #0f5f56;
}
html[data-theme="light"] .status-dot { background: #0f766e; }
html[data-theme="light"] .hero-note { color: #2b4c44; border-color: #9cbdb2; }
html[data-theme="light"] .hero-note .icon { color: #0f766e; }
html[data-theme="light"] .hero-panel {
  background: rgba(255, 255, 255, .9);
  border-color: #8fc2b6;
  box-shadow: 0 8px 24px rgba(16, 40, 36, .1);
}
html[data-theme="light"] .hero-panel strong { color: #102824; }
html[data-theme="light"] .hero-panel span { color: #426058; }
html[data-theme="light"] .hero-panel .icon { color: #0f766e; }

/* Shared sections, cards and controls */
html[data-theme="light"] .section-heading .eyebrow { color: #0f766e; }
html[data-theme="light"] .section-intro,
html[data-theme="light"] .platform-caption { color: #425c55; }
html[data-theme="light"] .challenges { background: #eef4f1; }
html[data-theme="light"] .catalog { background: #fff; border-color: #cbdcd5; }
html[data-theme="light"] .catalog-detail {
  background: linear-gradient(145deg, #e3f2ec, #d3e8df);
  color: #102824;
}
html[data-theme="light"] .catalog-detail :focus-visible { outline-color: #0f766e; }
html[data-theme="light"] .catalog-summary,
html[data-theme="light"] .account-details dt,
html[data-theme="light"] .catalog-demo { color: #425c55; }
html[data-theme="light"] .account-details div { border-bottom-color: #b9d2c8; }
html[data-theme="light"] .program-button,
html[data-theme="light"] .size-button { background: #fff; border-color: #cbdcd5; }
html[data-theme="light"] .program-button small { color: #425c55; }
html[data-theme="light"] .program-button[aria-pressed="true"],
html[data-theme="light"] .size-button[aria-pressed="true"] {
  background: #dff0ea;
  border-color: #78b7a9;
  color: #0b5f58;
}
html[data-theme="light"] .platform { background: #e8f0ec; }
html[data-theme="light"] .platform-controls {
  background: #fff;
  border-color: #cbdcd5;
}
html[data-theme="light"] .platform-controls button { color: #355048; }
html[data-theme="light"] .platform-controls button:hover { background: #eef4f1; }
html[data-theme="light"] .platform-controls button[aria-pressed="true"] {
  background: #dff0ea;
  border-color: #78b7a9;
  color: #0b5f58;
}
html[data-theme="light"] .dashboard { background: #fff; border-color: #cbdcd5; }
html[data-theme="light"] .dashboard-toolbar,
html[data-theme="light"] .dashboard-heading p,
html[data-theme="light"] .period { color: #425c55; border-color: #cbdcd5; }
html[data-theme="light"] .dashboard-heading h3 { color: #102824; }
html[data-theme="light"] .platform-view { background: #f7faf9; border-color: #cbdcd5; }
html[data-theme="light"] .metric-card {
  background: #fff;
  border-color: #d3e2dc;
  color: #102824;
}
html[data-theme="light"] .metric-card small { color: #425c55; }
html[data-theme="light"] .metric-card .icon,
html[data-theme="light"] .rule-line .icon { color: #0f766e; }
html[data-theme="light"] .rule-line { color: #102824; border-bottom-color: #d3e2dc; }
html[data-theme="light"] .rule-line small { color: #425c55; }
html[data-theme="light"] .feature-icon {
  background: #e9f5f1;
  border-color: #b8d0c8;
  color: #0f766e;
}
html[data-theme="light"] .why-card { background: #fff; border-color: #cbdcd5; }
html[data-theme="light"] .why-card:first-child {
  color: #0b2b26;
  border-color: #9cc9bd;
  background: radial-gradient(ellipse at 85% 15%, #d3ebe2, #eaf4ef 60%, #f4f8f6);
}
html[data-theme="light"] .why-card:first-child p { color: #355048; }
html[data-theme="light"] .why-card:first-child .feature-icon {
  background: #e9f5f1;
  border-color: #9cc9bd;
  color: #0f766e;
}
html[data-theme="light"] .text-button,
html[data-theme="light"] .text-button:hover { color: #0f766e; }
html[data-theme="light"] .rules { background: #eaf1ed; }
html[data-theme="light"] .rule-card { background: #fff; border-color: #cbdcd5; }
html[data-theme="light"] .faq { background: #f4f8f6; border-bottom-color: #cbdcd5; }
html[data-theme="light"] .faq-list,
html[data-theme="light"] .faq-item { border-color: #cbdcd5; }
html[data-theme="light"] .faq-item summary:hover { color: #0f766e; }
html[data-theme="light"] .faq-item .icon { border-color: #b8d0c8; color: #355048; }
html[data-theme="light"] .faq-item[open] .icon { color: #0f766e; }
html[data-theme="light"] .faq-item p { color: #425c55; }
html[data-theme="light"] .cta-panel {
  background: linear-gradient(113deg, #dcece6, #cfe6dd);
  border-color: #9cc9bd;
}
html[data-theme="light"] .cta-body h2 { color: #0b2b26; }
html[data-theme="light"] .cta-body p { color: #355048; }
html[data-theme="light"] .footer { background: #e8f0ec; color: #102824; }
html[data-theme="light"] .footer-column h2 { color: #102824; }
html[data-theme="light"] .footer-brand p,
html[data-theme="light"] .footer-column a,
html[data-theme="light"] .footer-column button,
html[data-theme="light"] .footer-bottom { color: #425c55; }
html[data-theme="light"] .footer-bottom { border-top-color: #cbdcd5; }
html[data-theme="light"] .mobile-menu { background: #f4f8f6; color: #102824; }
html[data-theme="light"] .mobile-nav a { border-bottom-color: #cbdcd5; }
html[data-theme="light"] .info-dialog { background: #fff; color: #102824; }

/* Owner-reported light-mode contrast fixes. Dark mode, mountain artwork,
   composition and animations are untouched. */
html[data-theme="light"] .site-header .brand img,
html[data-theme="light"] .mobile-menu .brand img,
html[data-theme="light"] .footer .brand img {
  content: url('/design-preview/assets/brand/logo-dark.svg');
}
html[data-theme="light"] .cta-panel::after {
  background: linear-gradient(180deg, rgba(244, 248, 246, .82), rgba(244, 248, 246, .58));
}
html[data-theme="light"] .cta-art { opacity: .16; }
html[data-theme="light"] .cta-body h2 { text-shadow: none; }
html[data-theme="light"] .cta-body p { color: #24453e; }

/* Light-mode contrast fixes for the step list and feature cards. Dark mode,
   the hero artwork and the approved composition are untouched. */
html[data-theme="light"] .step-button,
html[data-theme="light"] .step-button strong { color: #102824; }
html[data-theme="light"] .step-button small { color: #425c55; }
html[data-theme="light"] .step-number { color: #0f6f65; }
html[data-theme="light"] .step-button:hover { background: #e6f0ec; }
html[data-theme="light"] .why-card:not(:first-child) p { color: #425c55; }
html[data-theme="light"] [data-copy="demoPreview"] { color: #355048; }
