@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Nunito:wght@600;700;800&display=swap");

/* Medoxo v2 — design system rooted in the logo's DNA
   Plus Jakarta Sans (matches the wordmark) + rounded shapes +
   navy / mid-blue / sky palette pulled straight from the artwork.
   No serifs, no hairlines, no concept-store. */

:root {
  /* Pulled from the logo */
  --navy-900: #0F2A4D;
  --navy-800: #163C6F;
  --navy-700: #1F4F8C;   /* wordmark color */
  --navy-600: #2E68A8;
  --blue-500: #3E8BD4;
  --blue-400: #6BABE0;
  --blue-300: #9CC6EC;
  --blue-200: #BFDCF2;
  --blue-100: #E1EEF9;
  --blue-50:  #F0F7FD;

  /* Surfaces */
  --cream:    #FBF9F4;
  --paper:    #FFFFFF;
  --warm-50:  #FAF5EC;

  /* Warm accent — used sparingly */
  --sun-400:  #F4A93B;
  --sun-200:  #FCE3B0;

  /* Soft, sparse "ok green" for trust marks */
  --mint-500: #2EA678;

  /* Semantic */
  --bg:        var(--cream);
  --surface:   var(--paper);
  --surface-2: var(--blue-50);
  --fg:        var(--navy-900);
  --fg-soft:   color-mix(in oklab, var(--navy-900) 65%, transparent);
  --fg-mute:   color-mix(in oklab, var(--navy-900) 45%, transparent);
  --line:      color-mix(in oklab, var(--navy-700) 14%, transparent);
  --line-soft: color-mix(in oklab, var(--navy-700) 8%,  transparent);

  --accent:    var(--navy-700);
  --accent-2:  var(--blue-500);

  /* Density (mutable) */
  --d: 1;
  --s-1: calc(8px  * var(--d));
  --s-2: calc(16px * var(--d));
  --s-3: calc(24px * var(--d));
  --s-4: calc(40px * var(--d));
  --s-5: calc(64px * var(--d));
  --s-6: calc(96px * var(--d));
  --s-7: calc(140px * var(--d));

  --r-1: 12px;
  --r-2: 20px;
  --r-3: 28px;
  --r-4: 40px;

  /* Type */
  --font: "Plus Jakarta Sans", "Nunito", -apple-system, BlinkMacSystemFont,
          "Segoe UI", system-ui, sans-serif;

  /* Shadows tinted with brand blue */
  --shadow-sm: 0 2px 6px -2px color-mix(in oklab, var(--navy-700) 18%, transparent);
  --shadow:    0 18px 40px -22px color-mix(in oklab, var(--navy-700) 35%, transparent),
               0 2px 6px -3px color-mix(in oklab, var(--navy-700) 16%, transparent);
  --shadow-lg: 0 40px 80px -30px color-mix(in oklab, var(--navy-700) 45%, transparent),
               0 4px 12px -4px color-mix(in oklab, var(--navy-700) 18%, transparent);
}

[data-mode="dark"] {
  --cream:    #0B1A30;
  --paper:    #102544;
  --warm-50:  #142A4B;
  --bg:       var(--cream);
  --surface:  var(--paper);
  --surface-2:#0E2143;
  --fg:       #EEF5FC;
  --fg-soft:  color-mix(in oklab, #EEF5FC 78%, transparent);
  --fg-mute:  color-mix(in oklab, #EEF5FC 55%, transparent);
  --line:     color-mix(in oklab, #EEF5FC 14%, transparent);
  --line-soft:color-mix(in oklab, #EEF5FC 8%,  transparent);
  --accent:   #7AB3E8;
  --accent-2: #BFDCF2;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); }
body {
  font-family: var(--font);
  color: var(--fg);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* Layout */
.wrap {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}
.section { padding: var(--s-7) 0; }
.section-tight { padding: var(--s-6) 0; }

/* Typography */
.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-2);
}
.h1 {
  font-size: clamp(40px, 5.4vw, 76px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.0;
  color: var(--navy-900);
  text-wrap: balance;
  margin: 0;
}
.h2 {
  font-size: clamp(32px, 3.6vw, 52px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--navy-900);
  text-wrap: balance;
  margin: 0;
}
.h3 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
}
.lead {
  font-size: 19px;
  line-height: 1.55;
  color: var(--fg-soft);
  max-width: 56ch;
  margin: 0;
}
.muted { color: var(--fg-mute); }

[data-mode="dark"] .h1, [data-mode="dark"] .h2 { color: var(--fg); }

/* Pills & buttons */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  background: var(--surface);
  color: var(--navy-700);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.pill .dot {
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--blue-500);
}
.pill-list { display: flex; flex-wrap: wrap; gap: 8px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 24px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.005em;
  border: 0;
  cursor: pointer;
  transition: transform .15s, box-shadow .2s, background .2s;
  text-decoration: none;
}
.btn-primary {
  background: var(--navy-700);
  color: white;
  box-shadow: var(--shadow);
}
.btn-primary:hover { transform: translateY(-1px); background: var(--navy-800); }
.btn-ghost {
  background: var(--surface);
  color: var(--navy-700);
  border: 1px solid var(--line);
}
.btn-ghost:hover { background: var(--blue-50); }
.btn-sun {
  background: var(--sun-400);
  color: var(--navy-900);
}
.btn-arrow svg { transition: transform .15s; }
.btn-arrow:hover svg { transform: translateX(2px); }

/* Nav */
.nav-shell {
  position: sticky;
  top: 16px;
  z-index: 50;
  padding: 0 16px;
}
.nav {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 8px 14px 8px 12px;
  background: color-mix(in oklab, var(--surface) 90%, transparent);
  -webkit-backdrop-filter: saturate(120%) blur(14px);
  backdrop-filter: saturate(120%) blur(14px);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow);
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.03em;
  color: var(--navy-700);
}
.nav-brand img { width: 76px; height: 76px; object-fit: contain; flex-shrink: 0; margin: -10px 0; }
.nav-links {
  display: flex; gap: 4px;
  font-size: 14px;
  font-weight: 600;
}
.nav-links a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--fg-soft);
  transition: background .15s, color .15s;
}
.nav-links a:hover { background: var(--blue-50); color: var(--navy-700); }

/* Cards */
.card {
  background: var(--surface);
  border-radius: var(--r-3);
  padding: var(--s-4);
  border: 1px solid var(--line-soft);
}
.card-soft {
  background: var(--blue-50);
  border-radius: var(--r-3);
  padding: var(--s-4);
}
.card-accent {
  background: var(--navy-700);
  color: white;
  border-radius: var(--r-3);
  padding: var(--s-4);
}
.card-accent .h3, .card-accent h2 { color: white; }
.card-accent p { color: rgba(255,255,255,0.85); }

/* Hero */
.hero {
  position: relative;
  padding: calc(40px * var(--d)) 0 var(--s-6);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 60% at 78% 35%, var(--blue-100) 0%, transparent 60%),
    radial-gradient(40% 50% at 12% 85%, var(--blue-50) 0%, transparent 60%);
  z-index: 0;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: var(--s-5);
  align-items: center;
}
.hero-copy { display: flex; flex-direction: column; gap: var(--s-3); }
.hero-pills { margin-bottom: var(--s-2); }
.hero-ctas { display: flex; gap: 12px; margin-top: var(--s-3); flex-wrap: wrap; }
.hero-trust {
  display: flex; align-items: center; gap: 14px;
  margin-top: var(--s-3);
  font-size: 14px;
  color: var(--fg-mute);
  font-weight: 600;
}
.hero-trust .avatars {
  display: flex;
}
.hero-trust .avatar {
  width: 28px; height: 28px; border-radius: 999px;
  border: 2px solid var(--surface);
  margin-left: -8px;
}
.hero-trust .avatar:first-child { margin-left: 0; }

/* Hero visual: tilted card holding the demo */
.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1.05;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-card {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--paper);
  border-radius: var(--r-4);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line-soft);
  overflow: hidden;
  transform: rotate(-1.5deg);
}
.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 50% at 50% 0%, var(--blue-100) 0%, transparent 60%);
  pointer-events: none;
}
.hero-float {
  position: absolute;
  background: var(--paper);
  border-radius: var(--r-2);
  box-shadow: var(--shadow);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  z-index: 2;
  animation: float-bob 6s ease-in-out infinite;
}
.hero-float strong { color: var(--mint-500); font-weight: 800; }
.hero-float .ico {
  width: 32px; height: 32px;
  border-radius: 999px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.hero-float-1 { top: 8%; left: -4%; animation-delay: -1s; }
.hero-float-2 { bottom: 14%; right: -4%; animation-delay: -3s; }
@keyframes float-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

/* Logo strip / trust row */
.trustbar {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: var(--surface);
}
.trustbar-row {
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
  color: var(--fg-mute);
  font-size: 14px;
  font-weight: 600;
}
.trustbar-row .tb-item { display: flex; align-items: center; gap: 8px; }

.trustbar .wrap.trustbar-row {
  padding: 20px 32px;
}

/* Uses grid */
.uses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.use-card {
  border-radius: var(--r-3);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 360px;
  position: relative;
  overflow: hidden;
}
.use-card .ill {
  width: 96px; height: 96px;
  margin-bottom: 8px;
}
.use-card p { color: var(--fg-soft); font-size: 15px; line-height: 1.55; margin: 0; }
.use-card .tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-mute);
}
.use-1 { background: var(--blue-50); }
.use-2 { background: var(--navy-700); color: white; }
.use-2 .h3 { color: white; }
.use-2 p { color: rgba(255,255,255,0.82); }
.use-2 .tag { color: rgba(255,255,255,0.65); }
.use-3 { background: var(--warm-50); }

/* How */
.how-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.step {
  display: flex; flex-direction: column; gap: 16px;
  padding: 28px;
  background: var(--surface);
  border-radius: var(--r-3);
  border: 1px solid var(--line-soft);
  min-height: 280px;
}
.step .num {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 999px;
  background: var(--blue-100);
  color: var(--navy-700);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.step .ill { width: 64px; height: 64px; margin-top: auto; opacity: 0.9; }
.step p { color: var(--fg-soft); font-size: 14.5px; line-height: 1.55; margin: 0; }

/* Showcase */
.showcase {
  position: relative;
  border-radius: var(--r-4);
  padding: var(--s-6) var(--s-5);
  background:
    radial-gradient(80% 100% at 100% 0%, var(--blue-200) 0%, transparent 55%),
    linear-gradient(160deg, var(--blue-100) 0%, var(--blue-50) 100%);
  overflow: hidden;
}
.showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-5);
  align-items: center;
}
.showcase-grid .copy h2 { margin-bottom: 20px; }
.showcase-grid .copy p { margin-bottom: 28px; }
.showcase-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  margin-top: 28px;
}
.stat {
  background: rgba(255,255,255,0.6);
  border-radius: var(--r-2);
  padding: 18px;
}
.stat .big { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; color: var(--navy-800); }
.stat .lbl { font-size: 13px; color: var(--fg-mute); margin-top: 2px; font-weight: 600; }

/* Principles */
.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.principle {
  display: flex;
  gap: 16px;
  padding: 28px;
  background: var(--surface);
  border-radius: var(--r-3);
  border: 1px solid var(--line-soft);
}
.principle .check {
  width: 36px; height: 36px; border-radius: 999px;
  background: color-mix(in oklab, var(--mint-500) 18%, transparent);
  color: var(--mint-500);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.principle h3 { font-size: 17px; margin-bottom: 6px; }
.principle p { color: var(--fg-soft); font-size: 14.5px; line-height: 1.55; margin: 0; }

/* Install */
.install {
  position: relative;
  border-radius: var(--r-4);
  padding: var(--s-6);
  background:
    radial-gradient(70% 60% at 90% 10%, var(--blue-500) 0%, transparent 60%),
    linear-gradient(180deg, var(--navy-700) 0%, var(--navy-900) 100%);
  color: white;
  overflow: hidden;
}
.install h2 { color: white; max-width: 16ch; }
.install p { color: rgba(255,255,255,0.8); max-width: 50ch; }
.install-grid {
  display: grid; grid-template-columns: 1.4fr 1fr;
  gap: var(--s-5);
  align-items: center;
  position: relative;
  z-index: 1;
}
.install .stores {
  display: flex; flex-direction: column; gap: 12px;
  align-items: stretch;
}

.install .store-badge-grid {
  margin-top: 0;
}

.install .store-badge-link {
  display: inline-flex;
  justify-content: center;
  transition: transform .15s, filter .2s;
}

.install .store-badge-link:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.install .store-badge-link img {
  width: 100%;
  max-width: 220px;
  height: auto;
}

.store-btn {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px;
  background: white;
  color: var(--navy-900);
  border-radius: 16px;
  font-weight: 700;
}
.store-btn .small { display: block; font-size: 11px; font-weight: 600; color: var(--fg-mute); margin-bottom: 2px; }
.store-btn .big { font-size: 17px; letter-spacing: -0.015em; }

/* FAQ */
.faq-grid {
  display: grid; grid-template-columns: 1fr 2fr;
  gap: var(--s-5);
}
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--surface);
  border-radius: var(--r-2);
  border: 1px solid var(--line-soft);
  padding: 22px 24px;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.faq-item:hover { border-color: var(--blue-200); }
.faq-q {
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px;
}
.faq-q-title { font-size: 17px; font-weight: 700; letter-spacing: -0.015em; color: var(--navy-900); }
.faq-toggle {
  width: 32px; height: 32px;
  border-radius: 999px;
  background: var(--blue-50);
  color: var(--navy-700);
  display: grid; place-items: center;
  transition: transform .2s, background .2s;
  flex-shrink: 0;
}
.faq-item[data-open="true"] .faq-toggle {
  background: var(--navy-700);
  color: white;
  transform: rotate(45deg);
}
.faq-a {
  margin-top: 12px;
  color: var(--fg-soft);
  font-size: 15px;
  line-height: 1.6;
  max-width: 62ch;
}

[data-mode="dark"] .faq-q-title { color: var(--fg); }

/* Footer */
.footer {
  background: var(--navy-900);
  color: rgba(255,255,255,0.7);
  padding: var(--s-6) 0 var(--s-3);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer-col h4 {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin: 0 0 14px;
}
.footer-col a { display: block; padding: 4px 0; color: white; opacity: 0.78; font-size: 14.5px; }
.footer-col span { display: block; padding: 4px 0; color: white; opacity: 0.58; font-size: 14.5px; }
.footer-col a:hover { opacity: 1; }
.footer-brand { display: flex; flex-direction: column; gap: 14px; }
.footer-brand .row { display: flex; align-items: center; gap: 10px; }
.footer-brand .row img { width: 76px; height: 76px; }
.footer-brand .row span { font-weight: 800; font-size: 24px; color: white; letter-spacing: -0.03em; }
.footer-brand p { max-width: 36ch; font-size: 14px; line-height: 1.6; margin: 0; opacity: 0.75; }
.footer-bottom {
  margin-top: var(--s-4);
  padding-top: var(--s-3);
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; justify-content: space-between;
  font-size: 13px;
  opacity: 0.7;
}

/* Responsive guards */
@media (max-width: 920px) {
  .hero-grid, .showcase-grid, .install-grid, .faq-grid { grid-template-columns: 1fr; }
  .uses-grid { grid-template-columns: 1fr; }
  .how-grid { grid-template-columns: repeat(2, 1fr); }
  .principles { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  .nav-shell {
    top: 12px;
    padding: 0 14px;
  }

  .nav {
    border-radius: 32px;
    padding: 8px 14px 8px 12px;
  }

  .nav-brand img {
    width: 68px;
    height: 68px;
  }

  .nav-links,
  .nav > .btn-primary {
    display: none;
  }

  .wrap {
    padding: 0 24px;
  }

  .trustbar .wrap.trustbar-row {
    padding: 18px 24px;
  }
}

/* Section headers */
.section-head {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--s-5);
  align-items: end;
  margin-bottom: var(--s-5);
}
.section-head .right { display: flex; justify-content: flex-end; align-items: flex-end; }
@media (max-width: 920px) {
  .section-head { grid-template-columns: 1fr; }
  .section-head .right { justify-content: flex-start; }
}

/* Static page compatibility.
   The home uses the source classes above directly. These rules map the
   existing static pages to the same design system without changing their JS. */
html {
  overflow-x: clip;
}

body {
  overflow-x: clip;
}

body.menu-open {
  overflow: hidden;
}

.redirect-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.redirect-card {
  width: min(100%, 560px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(28px, 6vw, 48px);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-4);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.redirect-card h1 {
  font-size: clamp(32px, 6vw, 54px);
}

.redirect-card p {
  margin: 0;
  color: var(--fg-soft);
}

h1:not(.h1),
h2:not(.h2),
h3:not(.h3) {
  margin: 0;
  color: var(--navy-900);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  text-wrap: balance;
}

h1:not(.h1) {
  font-size: clamp(40px, 5.4vw, 76px);
  line-height: 1;
}

h2:not(.h2) {
  font-size: clamp(32px, 3.6vw, 52px);
}

h3:not(.h3) {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.page-shell {
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 50;
  padding: 0 16px;
}

.site-header-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 8px 14px 8px 12px;
  background: color-mix(in oklab, var(--surface) 90%, transparent);
  -webkit-backdrop-filter: saturate(120%) blur(14px);
  backdrop-filter: saturate(120%) blur(14px);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--navy-700);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.brand-mark {
  width: 76px;
  height: 76px;
  flex-shrink: 0;
  margin: -10px 0;
  background: url("./brand/medoxo-logo-icon.png") center / contain no-repeat;
}

.brand-mark img {
  opacity: 0;
}

.brand-copy strong {
  display: block;
}

.brand-copy span {
  display: none;
}

.menu-toggle {
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--navy-700);
  display: inline-grid;
  place-items: center;
  padding: 0;
  box-shadow: var(--shadow-sm);
}

.menu-toggle svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.site-nav {
  position: fixed;
  inset: 88px 16px auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  background: color-mix(in oklab, var(--surface) 96%, transparent);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity .15s, transform .15s;
}

.site-nav.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.site-nav[hidden] {
  display: none;
}

.site-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.site-nav a,
.header-install {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--fg-soft);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background .15s, color .15s, transform .15s;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: var(--blue-50);
  color: var(--navy-700);
}

.header-install {
  display: none;
  background: var(--navy-700);
  color: white;
  box-shadow: var(--shadow);
}

.header-install::after,
.button-primary::after,
.button-link::after {
  content: "→";
  margin-left: 8px;
}

.site-main {
  padding-top: 32px;
}

.page-shell .section {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: var(--s-7) 32px;
}

.page-shell .hero {
  position: relative;
  padding-top: calc(40px * var(--d));
  overflow: hidden;
}

.page-shell .hero-grid,
.split-grid,
.install-conversion-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: var(--s-5);
  align-items: center;
}

.page-shell .hero-grid > *,
.split-grid > *,
.install-conversion-grid > *,
.section-head > *,
.faq-layout > * {
  min-width: 0;
}

.hero-copy,
.support-contact-card,
.professional-note-card,
.legal-meta-card {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}

.hero-copy,
.hero-copy .lead,
.page-shell p {
  max-width: 100%;
  overflow-wrap: break-word;
}

.lead,
.intro-text {
  margin: 0;
  max-width: 56ch;
  color: var(--fg-soft);
  font-size: 19px;
  line-height: 1.55;
}

.hero-cta-row,
.cta-row,
.trust-inline,
.chip-row,
.install-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button-primary,
.button-secondary,
.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 54px;
  padding: 16px 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.005em;
  text-decoration: none;
  transition: transform .15s, box-shadow .2s, background .2s;
}

.button-primary {
  background: var(--navy-700);
  color: white;
  box-shadow: var(--shadow);
}

.button-primary:hover,
.header-install:hover {
  background: var(--navy-800);
  transform: translateY(-1px);
}

.button-secondary {
  background: var(--surface);
  color: var(--navy-700);
  border: 1px solid var(--line);
}

.button-secondary:hover {
  background: var(--blue-50);
}

.button-link {
  color: var(--navy-700);
  padding-inline: 0;
}

.trust-inline span,
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--navy-700);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  font-size: 13px;
  font-weight: 600;
}

.trust-inline span::before,
.chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--blue-500);
}

.page-shell .hero-visual,
.panel,
.trust-panel,
.support-card,
.legal-section,
.install-mini-card,
.faq-group {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-3);
  box-shadow: var(--shadow);
}

.page-shell .hero-visual {
  padding: var(--s-4);
  display: grid;
  gap: var(--s-3);
  align-items: center;
  justify-items: center;
  aspect-ratio: auto;
  min-height: 0;
}

.page-shell .hero-visual img {
  width: 100%;
  min-height: 260px;
  max-height: 320px;
  object-fit: contain;
}

.visual-note {
  margin: 0;
  padding: 16px 18px;
  border-radius: var(--r-2);
  color: var(--fg-soft);
  background: var(--blue-50);
  font-weight: 700;
}

.section-head {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--s-5);
  align-items: end;
  margin-bottom: var(--s-5);
  max-width: none;
}

.section-head p {
  margin: 0;
  color: var(--fg-soft);
  text-align: right;
}

.use-case-grid,
.card-grid,
.timeline,
.treatment-steps,
.support-grid,
.faq-layout {
  display: grid;
  gap: 20px;
}

.use-case-grid {
  grid-template-columns: repeat(3, 1fr);
}

.use-case-card {
  min-height: 320px;
  padding: 36px 32px;
  border-radius: var(--r-3);
  background: var(--blue-50);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.use-case-card:nth-child(2) {
  background: var(--navy-700);
  color: white;
}

.use-case-card:nth-child(2) h3,
.use-case-card:nth-child(2) p {
  color: white;
}

.use-case-card:nth-child(3) {
  background: var(--warm-50);
}

.use-case-number {
  color: var(--fg-mute);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.use-case-number::before {
  content: "0";
}

.card-grid,
.timeline,
.faq-layout {
  grid-template-columns: repeat(2, 1fr);
}

.card,
.timeline-step,
.faq-item,
.support-detail,
.support-bullet,
.treatment-step {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-2);
}

.card,
.timeline-step,
.support-card,
.legal-section,
.panel,
.trust-panel,
.faq-group,
.treatment-step,
.install-mini-card {
  padding: 28px;
}

.card p,
.timeline-step p,
.faq-item p,
.support-card p,
.legal-section p,
.legal-section li,
.panel p,
.trust-panel p,
.use-case-card p,
.treatment-step p,
.install-mini-card p {
  color: var(--fg-soft);
}

.card-media,
.timeline-media {
  width: 72px;
  height: 72px;
  margin-bottom: 16px;
  border-radius: var(--r-2);
  background: var(--blue-50);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.timeline-step {
  position: relative;
  min-height: 260px;
}

.timeline-step::before {
  content: attr(data-step);
  position: absolute;
  top: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--blue-100);
  color: var(--navy-700);
  font-weight: 800;
}

.trust-list,
.support-detail-list,
.support-bullet-list,
.support-actions,
.install-checklist,
.faq-items {
  display: grid;
  gap: 12px;
}

.trust-list-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line-soft);
}

.trust-list-item:first-child {
  border-top: 0;
}

.trust-icon {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: color-mix(in oklab, var(--mint-500) 18%, transparent);
  display: grid;
  place-items: center;
}

.trust-icon svg {
  width: 20px;
  height: 20px;
  fill: var(--mint-500);
}

.treatment-panel,
.cta-panel {
  border-radius: var(--r-4);
  padding: var(--s-6);
  overflow: hidden;
}

.treatment-panel {
  background:
    radial-gradient(80% 100% at 100% 0%, var(--blue-200) 0%, transparent 55%),
    linear-gradient(160deg, var(--blue-100) 0%, var(--blue-50) 100%);
}

.treatment-steps {
  grid-template-columns: repeat(3, 1fr);
}

.cta-panel {
  background:
    radial-gradient(70% 60% at 90% 10%, var(--blue-500) 0%, transparent 60%),
    linear-gradient(180deg, var(--navy-700) 0%, var(--navy-900) 100%);
  color: white;
}

.cta-panel h2,
.cta-panel p {
  color: white;
}

.cta-panel p {
  opacity: 0.8;
}

.cta-panel .button-secondary,
.cta-panel .chip {
  background: rgba(255,255,255,0.12);
  color: white;
  border-color: rgba(255,255,255,0.2);
}

.faq-item {
  padding: 0 20px;
}

.faq-item summary {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  list-style: none;
  color: var(--navy-900);
  font-weight: 700;
}

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

.faq-item summary::after {
  content: "+";
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--blue-50);
  color: var(--navy-700);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  background: var(--navy-700);
  color: white;
  transform: rotate(45deg);
}

.faq-item p {
  margin: 0 0 18px;
}

.install-page .site-main {
  padding-bottom: var(--s-5);
}

.install-conversion-grid {
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 1fr);
}

.install-store-panel {
  padding: var(--s-4);
  border-radius: var(--r-3);
  background: var(--surface);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow);
  text-align: center;
}

.store-badge-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
  justify-items: center;
}

.store-badge-link img {
  height: 64px;
}

.support-detail,
.support-bullet {
  padding: 16px 18px;
}

.support-detail strong {
  display: block;
  margin-bottom: 6px;
}

.legal-list {
  padding-left: 22px;
}

.site-footer {
  margin-top: var(--s-6);
  background: var(--navy-900);
  color: rgba(255,255,255,0.7);
  padding: var(--s-6) 32px var(--s-3);
}

.site-footer-inner {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
}

.site-footer strong {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.site-footer strong::before {
  content: "";
  width: 76px;
  height: 76px;
  background: url("./brand/medoxo-logo-icon.png") center / contain no-repeat;
}

.site-footer p {
  max-width: 56ch;
  color: rgba(255,255,255,0.7);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: var(--s-3) 0;
}

.footer-links a {
  color: white;
  font-weight: 700;
  opacity: 0.78;
}

.mobile-install-bar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  background: color-mix(in oklab, var(--surface) 94%, transparent);
  -webkit-backdrop-filter: saturate(120%) blur(14px);
  backdrop-filter: saturate(120%) blur(14px);
  box-shadow: var(--shadow-lg);
}

.mobile-install-bar-copy strong {
  display: block;
  line-height: 1.15;
}

.mobile-install-bar-copy span {
  display: block;
  color: var(--fg-mute);
  font-size: 13px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 701px) {
  .menu-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    inset: auto;
    padding: 0;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .site-nav-list {
    display: flex;
    align-items: center;
    gap: 4px;
  }

  .header-install {
    display: inline-flex;
  }

  .mobile-install-bar {
    display: none;
  }
}

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

  .site-header-inner {
    border-radius: 28px;
  }

  .page-shell .section,
  .page-shell .hero {
    padding: var(--s-6) 22px;
  }

  .page-shell .hero-grid,
  .split-grid,
  .install-conversion-grid,
  .section-head,
  .faq-layout {
    grid-template-columns: 1fr;
  }

  .section-head p {
    text-align: left;
  }

  .use-case-grid,
  .card-grid,
  .timeline,
  .treatment-steps,
  .support-grid,
  .store-badge-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  h1:not(.h1) {
    font-size: clamp(34px, 10vw, 42px);
  }

  .brand-mark {
    width: 60px;
    height: 60px;
  }

  .brand {
    font-size: 18px;
  }

  .hero-cta-row,
  .cta-row,
  .support-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button-primary,
  .button-secondary {
    width: 100%;
  }

  .mobile-install-bar-copy {
    min-width: 0;
    flex: 0 1 112px;
  }

  .mobile-install-bar .button-primary {
    width: auto;
    flex: 1 1 auto;
    min-width: 150px;
  }

  .menu-toggle {
    display: none;
  }
}
