/* MDR landing. No external fonts or libraries: system fonts only, so the page loads fast and sends nothing to third parties. */

:root {
  --bg: #f6f4ef;
  --surface: #ffffff;
  --surface-2: #eeebe3;
  --text: #1b1d1c;
  --muted: #5a605c;
  --line: #e1dcd1;
  --field-line: #7b817d;
  --accent: #1e4d43;
  --accent-hover: #163a33;
  --accent-ink: #ffffff;
  --accent-soft: #e2ebe7;
  --error: #9b2c2c;
  --error-soft: #f8e7e5;
  --ok-soft: #e2ebe7;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(20, 24, 22, 0.04), 0 10px 30px rgba(20, 24, 22, 0.06);
  --serif: "Palatino Linotype", Palatino, "PT Serif", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121413;
    --surface: #1a1e1c;
    --surface-2: #171a19;
    --text: #ebeae4;
    --muted: #a6aca8;
    --line: #2c322f;
    --field-line: #6c746f;
    --accent: #8cc7b3;
    --accent-hover: #a8d8c7;
    --accent-ink: #0f1a16;
    --accent-soft: #1f2d28;
    --error: #f0a39b;
    --error-soft: #3a2220;
    --ok-soft: #1f2d28;
    --shadow: none;
  }
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 16px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { color: var(--accent-hover); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

h1, h2, h3 { margin: 0; font-weight: 600; }
p { margin: 0; }

.wrap {
  width: min(100% - 32px, 1080px);
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  padding: 10px 14px;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: var(--radius-sm);
  z-index: 10;
}
.skip:focus { top: 12px; color: var(--accent-ink); }

/* Top bar */
.topbar { border-bottom: 1px solid var(--line); }
.topbar__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}
.brand {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}
.brand:hover { color: var(--text); }
.topnav { display: flex; align-items: center; gap: 24px; }
.topnav a:not(.btn) {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}
.topnav a:not(.btn):hover { color: var(--text); }
@media (max-width: 759px) {
  .topnav a:not(.btn) { display: none; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 12px 24px;
  border: 1.5px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font: 600 1rem/1.2 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-ink); }
.btn--ghost { background: transparent; color: var(--accent); }
.btn--ghost:hover { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }
.btn--small { min-height: 40px; padding: 8px 18px; font-size: 0.92rem; white-space: nowrap; }
@media (max-width: 420px) {
  .brand { font-size: 1.02rem; }
  .btn--small { padding: 8px 14px; font-size: 0.86rem; }
}
@media (max-width: 379px) {
  .topnav .btn { display: none; } /* the hero repeats this button */
}
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* Sections */
.section { padding-block: clamp(56px, 8vw, 100px); }
.section--alt { background: var(--surface-2); }
.section__head { max-width: 680px; margin-bottom: clamp(28px, 4vw, 44px); }
.section__head h2,
.hero h1 { font-family: var(--serif); letter-spacing: -0.01em; }
.section__head h2 { font-size: clamp(1.65rem, 1.15rem + 1.8vw, 2.3rem); line-height: 1.18; }
.section__head p { margin-top: 14px; color: var(--muted); font-size: 1.06rem; }
.kicker {
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Hero */
.hero { padding-block: clamp(48px, 9vw, 112px) clamp(56px, 8vw, 96px); }
.hero__grid { display: grid; gap: clamp(36px, 5vw, 56px); }
.hero h1 { font-size: clamp(2.05rem, 1.25rem + 3.4vw, 3.5rem); line-height: 1.1; }
.hero h1 span { display: block; }
.hero__lead { margin-top: 22px; max-width: 600px; color: var(--muted); font-size: clamp(1.06rem, 1rem + 0.35vw, 1.22rem); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.facts {
  margin: 0;
  padding: 8px 24px;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.facts li { padding-block: 16px; border-bottom: 1px solid var(--line); }
.facts li:last-child { border-bottom: 0; }
.facts strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.25;
}
.facts span { display: block; margin-top: 2px; color: var(--muted); font-size: 0.93rem; }
@media (min-width: 760px) {
  .facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 8px 0; }
  .facts li { padding: 14px 24px; border-bottom: 0; border-left: 1px solid var(--line); }
  .facts li:first-child { border-left: 0; }
}

/* "When" list */
.checklist {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 760px) { .checklist { grid-template-columns: 1fr 1fr; gap: 16px 24px; } }
.checklist li {
  position: relative;
  padding: 18px 20px 18px 50px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 27px;
  width: 16px;
  height: 2px;
  background: var(--accent);
}

/* Cards */
.cards { display: grid; gap: 16px; }
@media (min-width: 760px) { .cards--2 { grid-template-columns: 1fr 1fr; gap: 20px; } }
@media (min-width: 900px) { .cards--3 { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.card {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.card h3 { font-size: 1.08rem; line-height: 1.35; }
.card p { margin-top: 8px; color: var(--muted); }
.card__num {
  display: block;
  margin-bottom: 12px;
  color: var(--accent);
  font: 600 0.85rem/1 var(--sans);
  letter-spacing: 0.08em;
}
.note { margin-top: 24px; color: var(--muted); }

/* Steps */
.steps {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.steps li {
  counter-increment: step;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
}

/* FAQ */
.faq { max-width: 760px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative;
  padding: 20px 44px 20px 0;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
}
.faq details[open] summary::after { content: "−"; }
.faq details p { padding-bottom: 20px; color: var(--muted); max-width: 680px; }

/* Request form */
.request { display: grid; gap: 32px; }
@media (min-width: 900px) {
  .request { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
}
.request__aside p + p { margin-top: 14px; }
.request__aside .section__head { margin-bottom: 20px; }
.form {
  padding: clamp(20px, 4vw, 32px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.form__grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .form__grid { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; min-width: 0; }
.field--wide { grid-column: 1 / -1; }
.field label { font-size: 0.95rem; font-weight: 600; }
.field label .opt { color: var(--muted); font-weight: 400; }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid var(--field-line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font: 16px/1.4 var(--sans);
}
.field textarea { min-height: 132px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.field input::placeholder,
.field textarea::placeholder { color: var(--muted); opacity: 1; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.consent {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  margin-top: 20px;
  font-size: 0.93rem;
  color: var(--muted);
}
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); }
.form__submit { margin-top: 22px; width: 100%; }
@media (min-width: 640px) { .form__submit { width: auto; } }
.form__status {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
}
.form__status--ok { background: var(--ok-soft); color: var(--text); }
.form__status--error { background: var(--error-soft); color: var(--error); }
.form__status:focus { outline: none; }

/* Footer */
.footer { padding-block: 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.92rem; }
.footer__in { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.footer a { color: var(--muted); }
.footer a:hover { color: var(--text); }

/* Text pages (privacy, 404) */
.page { padding-block: clamp(40px, 7vw, 88px); }
.page__body { max-width: 720px; }
.page h1 { font-family: var(--serif); font-size: clamp(1.9rem, 1.3rem + 2.2vw, 2.6rem); line-height: 1.15; }
.page h2 { margin-top: 36px; font-family: var(--serif); font-size: 1.35rem; line-height: 1.3; }
.page p, .page ul { margin-top: 14px; }
.page ul { padding-left: 1.2em; }
.page li + li { margin-top: 6px; }
.page .muted { color: var(--muted); }
