:root {
  /* Magni Health platform palette (from magni-frontend globals.css) */
  --paper: #f3f6f7;
  --surface: #ffffff;
  --ink: #2b2b2b;
  --ink-dim: rgba(43, 43, 43, 0.62);
  --teal: #0b4f5c;
  --teal-deep: #083c46;
  --gold: #d4a24e;
  --sage: #a7c4bc;
  --line: #e2e8ea;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Geist", "Inter", -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}

.bg-grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(167, 196, 188, 0.35), transparent),
    radial-gradient(ellipse 60% 40% at 85% 110%, rgba(212, 162, 78, 0.12), transparent),
    var(--paper);
}

.nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.5rem clamp(1.5rem, 6vw, 5rem);
}
.nav-logo { height: 40px; width: auto; }

.btn {
  display: inline-block; padding: 0.8rem 1.9rem; border-radius: 999px;
  font-family: var(--sans); font-size: 0.9rem; font-weight: 500;
  letter-spacing: 0.04em; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: all 0.25s ease;
}
.btn-solid { background: var(--teal); color: #f7f5f1; }
.btn-solid:hover { background: var(--gold); color: var(--ink); }
.btn-outline { border-color: var(--teal); color: var(--teal); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-ghost { border-color: var(--teal); color: var(--teal); padding: 0.55rem 1.3rem; font-size: 0.82rem; }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-full { width: 100%; margin-top: 0.5rem; font-size: 0.95rem; }
.btn[disabled] { opacity: 0.5; cursor: wait; }

.eyebrow {
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 1.4rem;
}
.hero {
  max-width: 900px; margin: 0 auto; text-align: center;
  padding: clamp(5rem, 14vh, 9rem) 1.5rem clamp(4rem, 9vh, 7rem);
}
.hero h1 {
  font-family: var(--serif); font-weight: 500; color: var(--teal);
  font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.08;
  letter-spacing: -0.015em; margin-bottom: 1.8rem;
}
.hero h1 em { font-style: italic; color: var(--gold); }
.lede {
  max-width: 600px; margin: 0 auto 2.6rem;
  font-size: 1.08rem; color: var(--ink-dim);
}
.hero-cta { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; }

/* ── Image band (single, restrained) ─── */
.band {
  position: relative; max-width: 1240px; margin: 0 auto 5.5rem;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
}
.band img {
  width: 100%; height: clamp(240px, 38vh, 380px); object-fit: cover;
  object-position: center 30%; border-radius: 22px; display: block;
  border: 1px solid var(--line);
}
.band p {
  position: absolute; left: clamp(2.5rem, 6vw, 4.5rem); bottom: 2rem;
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(1.05rem, 2vw, 1.4rem); color: #ffffff;
  text-shadow: 0 2px 14px rgba(8, 60, 70, 0.55);
  max-width: 480px;
}

/* ── Two doors: Clinics & Brands ─────── */
.doors {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.6rem; max-width: 1240px; margin: 0 auto;
  padding: 1rem clamp(1.5rem, 4vw, 3rem) 5rem;
}
.door {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 22px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(11, 79, 92, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.door:hover { transform: translateY(-5px); box-shadow: 0 18px 48px rgba(11, 79, 92, 0.12); }
.door-body { padding: 2.4rem 2.2rem 2.5rem; }
.door-body h3 {
  font-family: var(--serif); font-weight: 500; color: var(--teal);
  font-size: 1.55rem; line-height: 1.2; margin-bottom: 1.1rem;
}
.door-body ul { list-style: none; margin-bottom: 1.8rem; }
.door-body li {
  position: relative; padding-left: 1.5rem; margin-bottom: 0.65rem;
  font-size: 0.94rem; color: var(--ink-dim);
}
.door-body li::before {
  content: ""; position: absolute; left: 0; top: 0.52em;
  width: 8px; height: 8px; border-radius: 50%; background: var(--gold);
}

/* ── Trust strip ─────────────────────── */
.trust {
  max-width: 1240px; margin: 0 auto; padding: 0 clamp(1.5rem, 4vw, 3rem) 5.5rem;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.2rem;
}
.trust-item {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 1.4rem 1.6rem; display: flex; flex-direction: column; gap: 0.2rem;
  border-top: 3px solid var(--sage);
}
.trust-item strong { font-family: var(--serif); font-weight: 500; font-size: 1.25rem; color: var(--teal); }
.trust-item span { font-size: 0.88rem; color: var(--ink-dim); }

.journey { max-width: 880px; margin: 0 auto; padding: 4rem 1.5rem 6rem; text-align: center; }
.journey h2 {
  font-family: var(--serif); font-weight: 500; color: var(--teal);
  font-size: clamp(1.8rem, 3.6vw, 2.7rem); line-height: 1.2; margin-bottom: 3.5rem;
}
.steps { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 2rem; text-align: left; }
.steps span {
  font-family: var(--serif); font-size: 0.95rem; font-style: italic;
  color: var(--gold); display: block; margin-bottom: 0.6rem;
}
.steps h4 { font-weight: 500; font-size: 1.02rem; color: var(--teal); margin-bottom: 0.35rem; }
.steps p { font-size: 0.88rem; color: var(--ink-dim); }
.steps li { border-top: 1px solid var(--sage); padding-top: 1.2rem; }

.contact { border-top: 1px solid var(--line); background: var(--surface); }
.contact-inner {
  max-width: 1080px; margin: 0 auto; padding: 5.5rem 1.5rem;
  display: grid; grid-template-columns: 1fr 1.15fr; gap: 4rem; align-items: start;
}
.contact-copy h2 { font-family: var(--serif); font-weight: 500; color: var(--teal); font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1.2rem; }
.contact-copy p { color: var(--ink-dim); max-width: 380px; }

.contact-form { display: flex; flex-direction: column; gap: 1.1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.contact-form label {
  display: flex; flex-direction: column; gap: 0.45rem;
  font-size: 0.8rem; font-weight: 500; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--ink-dim);
}
.contact-form input, .contact-form select, .contact-form textarea {
  background: var(--paper); border: 1px solid var(--line); border-radius: 10px;
  padding: 0.85rem 1rem; color: var(--ink); font-family: var(--sans);
  font-size: 0.95rem; font-weight: 300; outline: none; resize: vertical;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  border-color: var(--teal); box-shadow: 0 0 0 3px rgba(11, 79, 92, 0.12);
}
.form-status { font-size: 0.9rem; min-height: 1.3em; text-align: center; }
.form-status.ok { color: var(--teal); }
.form-status.err { color: #c0453d; }
.recaptcha-note { font-size: 0.72rem; color: rgba(43, 43, 43, 0.45); text-align: center; }
.recaptcha-note a { color: rgba(43, 43, 43, 0.6); }

.footer {
  display: flex; flex-direction: column; align-items: center; gap: 0.9rem;
  padding: 3.5rem 1.5rem; border-top: 1px solid var(--line);
  font-size: 0.82rem; color: var(--ink-dim);
}
.footer-logo { height: 30px; opacity: 0.9; }

.reveal { opacity: 0; transform: translateY(18px); animation: rise 0.9s ease forwards; }
.d1 { animation-delay: 0.12s; } .d2 { animation-delay: 0.24s; } .d3 { animation-delay: 0.36s; }
@keyframes rise { to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .contact-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-copy p { max-width: none; }
}
@media (max-width: 520px) {
  .field-row { grid-template-columns: 1fr; }
  .grecaptcha-badge { visibility: hidden; }
}
