/* Elie Margi — Health Check funnel
   Tokens: slate ink on pale stone, deep teal for action, saffron only for focus. */
:root {
  --stone: #F1F2EE;
  --paper: #FFFFFF;
  --ink: #17242B;
  --ink-soft: #4A5A62;
  --teal: #1D5A55;
  --teal-deep: #134440;
  --sage: #DDE5DF;
  --line: #CDD5D0;
  --saffron: #E0A532;
  --radius-lg: 18px;
  --radius-sm: 8px;
  --wrap: 1120px;
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --text: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
}

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

body {
  margin: 0;
  background: var(--stone);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--teal-deep); }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--paper); padding: 8px 12px; z-index: 10; }

/* Header */
.site-header { padding: 22px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { font-family: var(--display); font-weight: 700; font-size: 1.2rem; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.brand small { display: block; font-family: var(--text); font-weight: 400; font-size: 0.85rem; color: var(--ink-soft); letter-spacing: 0; }
.header-link { font-weight: 600; font-size: 1rem; }

/* Type */
h1, h2, h3 { font-family: var(--display); line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); font-weight: 650; }
h3 { font-size: 1.25rem; font-weight: 650; letter-spacing: -0.01em; }
p { margin: 0 0 1em; max-width: 64ch; }
.lead { font-size: 1.25rem; color: var(--ink-soft); }
.kicker { font-weight: 600; color: var(--teal); font-size: 1rem; margin-bottom: 14px; }

/* Hero */
.hero { padding: 28px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: start; }
.hero-copy h1 { max-width: 15ch; }
.hero-person { display: flex; align-items: center; gap: 14px; margin-top: 32px; }
.portrait { width: 64px; height: 64px; border-radius: 50%; background: var(--sage); display: grid; place-items: center; font-family: var(--display); font-weight: 700; color: var(--teal); overflow: hidden; flex: none; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.hero-person p { margin: 0; font-size: 1rem; color: var(--ink-soft); }
.hero-person strong { color: var(--ink); display: block; }

/* Form card */
.form-card { background: var(--paper); border-radius: var(--radius-lg); padding: 30px; box-shadow: 0 1px 0 var(--line), 0 18px 40px -24px rgba(23, 36, 43, 0.35); }
.form-card h2 { font-size: 1.45rem; margin-bottom: 4px; }
.form-card .sub { font-size: 1rem; color: var(--ink-soft); margin-bottom: 20px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 6px; }
.field input, .field select {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--paper);
}
.field input:focus, .field select:focus { border-color: var(--teal); outline: none; box-shadow: 0 0 0 3px rgba(29, 90, 85, 0.18); }
.field .hint { font-size: 0.85rem; color: var(--ink-soft); margin-top: 4px; }
fieldset.field { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
.choices legend { font-weight: 600; font-size: 0.95rem; padding: 0; }
.choices .hint { margin: 2px 0 8px; }
.choices label { font-weight: 400; display: flex; align-items: flex-start; gap: 10px; font-size: 1rem; padding: 9px 12px; margin-bottom: 6px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; line-height: 1.35; }
.choices label:has(input:checked) { border-color: var(--teal); background: #EEF4F1; }
.choices input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--teal); flex: none; }
.field.invalid label { border-color: #A3311F; }
.error { color: #A3311F; font-size: 0.9rem; margin-top: 4px; display: none; }
.field.invalid input, .field.invalid select { border-color: #A3311F; }
.field.invalid .error { display: block; }

.btn {
  display: inline-block; width: 100%; text-align: center; text-decoration: none;
  font-family: var(--display); font-weight: 650; font-size: 1.1rem;
  background: var(--teal); color: #fff; border: 0; border-radius: 999px; padding: 15px 24px; cursor: pointer;
  transition: background 0.15s ease;
}
.btn:hover { background: var(--teal-deep); color: #fff; }
.btn.inline { width: auto; }
.btn.ghost { background: transparent; color: var(--teal); border: 1.5px solid var(--teal); }
.btn.ghost:hover { background: var(--sage); color: var(--teal-deep); }
.microcopy { font-size: 0.9rem; color: var(--ink-soft); text-align: center; margin: 12px auto 0; }
.consent { font-size: 0.82rem; color: var(--ink-soft); margin: 12px 0 0; }

/* Proof strip */
.proof { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 0; }
.proof ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 36px; justify-content: center; }
.proof li { font-weight: 600; color: var(--ink-soft); font-size: 1rem; }

/* Sections */
section.block { padding: 88px 0; }
section.tinted { background: var(--paper); }

.problem-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: start; }
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { padding: 16px 0 16px 40px; border-bottom: 1px solid var(--line); position: relative; }
.checks li::before { content: ""; position: absolute; left: 4px; top: 22px; width: 18px; height: 18px; border: 2px solid var(--teal); border-radius: 5px; }
.verdict { margin-top: 24px; font-family: var(--display); font-size: 1.35rem; font-weight: 600; max-width: 30ch; }

/* 30-minute timeline: a real sequence, so it is numbered by minute */
.timeline { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 3px solid var(--teal); }
.timeline li { padding: 22px 22px 0 0; position: relative; }
.timeline li::before { content: ""; position: absolute; top: -10px; left: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); border: 3px solid var(--teal); }
.timeline .min { font-family: var(--display); font-weight: 700; color: var(--teal); font-size: 1rem; display: block; margin-bottom: 6px; }
.timeline p { font-size: 1rem; color: var(--ink-soft); }
.takeaway { margin-top: 36px; padding: 20px 24px; background: var(--sage); border-radius: var(--radius-sm); font-weight: 600; max-width: none; }

/* Fit check */
.fit { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 36px; }
.fit > div { border-radius: var(--radius-lg); padding: 28px; }
.fit .yes { background: var(--paper); border: 1.5px solid var(--teal); }
.fit .no { border: 1.5px dashed var(--line); }
.fit ul { margin: 0; padding-left: 20px; }
.fit li { margin-bottom: 10px; }

/* About */
.about { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: 56px; align-items: start; }
.about-photo { aspect-ratio: 4 / 5; border-radius: var(--radius-lg); background: var(--sage); display: grid; place-items: center; font-family: var(--display); font-size: 4rem; font-weight: 700; color: var(--teal); overflow: hidden; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.method { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 22px; padding: 0; list-style: none; }
.method li { background: var(--sage); color: var(--teal-deep); font-weight: 600; font-size: 0.95rem; padding: 6px 14px; border-radius: 999px; }
.signature { font-family: var(--display); font-size: 1.3rem; font-weight: 600; color: var(--teal); }

/* FAQ */
.faq { max-width: 780px; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { font-family: var(--display); font-weight: 600; font-size: 1.15rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--teal); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 12px 0 0; color: var(--ink-soft); }

/* Final CTA */
.final { text-align: center; }
.final h2 { max-width: 20ch; margin-left: auto; margin-right: auto; }
.final p { margin-left: auto; margin-right: auto; }
.final .btn { width: auto; padding: 16px 36px; }

/* Footer */
.site-footer { padding: 36px 0 48px; font-size: 0.95rem; color: var(--ink-soft); border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }

/* Simple pages (thank-you, booked, privacy) */
.page { padding: 40px 0 96px; }
.page .narrow { max-width: 760px; }
.calendar-slot { margin: 28px 0; min-height: 260px; border: 1.5px dashed var(--line); border-radius: var(--radius-lg); display: grid; place-items: center; text-align: center; padding: 28px; color: var(--ink-soft); background: var(--paper); }
.steps { padding-left: 22px; }
.steps li { margin-bottom: 12px; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.legal h2 { font-size: 1.4rem; margin-top: 2em; }
.legal p, .legal li { color: var(--ink-soft); }

/* Responsive */
@media (max-width: 900px) {
  .hero .wrap, .problem-grid, .about { grid-template-columns: 1fr; gap: 36px; }
  .timeline { grid-template-columns: 1fr 1fr; row-gap: 36px; border-top: 0; }
  .timeline li { border-top: 3px solid var(--teal); }
  .about-photo { max-width: 320px; }
}
@media (max-width: 600px) {
  body { font-size: 1.0625rem; }
  section.block { padding: 64px 0; }
  .form-card { padding: 22px; }
  .timeline, .fit { grid-template-columns: 1fr; }
  .header-link { display: none; }
}

/* Laptop fold fix (Nov 7, 2026): keep the submit button above the fold on 13-15" laptops */
@media (min-width: 901px) and (max-height: 900px) {
  .site-header { padding: 14px 0; }
  .form-card { padding: 22px 24px; }
  .form-card h2 { font-size: 1.3rem; }
  .form-card .sub { margin-bottom: 12px; font-size: 0.95rem; }
  .field { margin-bottom: 10px; }
  fieldset.field { margin-bottom: 12px; }
  .field label { margin-bottom: 4px; }
  .field input { padding: 9px 12px; }
  .choices .hint { margin: 0 0 6px; }
  .choices label { padding: 6px 10px; margin-bottom: 4px; font-size: 0.93rem; }
  .form-card .btn { padding: 12px 20px; }
}

/* Top banner (Nov 7, 2026): one headline, text only */
.site-header.on-dark { background: var(--teal-deep); }
.site-header.on-dark .brand { color: #fff; }
.site-header.on-dark .brand small { color: #B9CCC7; }
.site-header.on-dark .header-link { color: #fff; }
.site-header.on-dark .header-link:hover { color: var(--sage); }
.banner { background: var(--teal-deep); color: #fff; padding: 56px 0 88px; text-align: center; }
.banner-inner { display: flex; flex-direction: column; align-items: center; }
.banner h1 { color: #fff; max-width: none; font-size: clamp(2.2rem, 5vw, 4rem); text-wrap: balance; margin-bottom: 0.4em; }
.banner h1 .line { display: block; }
.banner .lead { color: #D3E1DD; max-width: 46ch; margin-left: auto; margin-right: auto; }
.btn.light { background: var(--paper); color: var(--teal-deep); margin-top: 12px; }
.btn.light:hover { background: var(--sage); color: var(--teal-deep); }
.banner-note { font-size: 0.95rem; color: #B9CCC7; margin: 14px auto 0; }

/* Proof breaker: big, imposing numbers */
.proof-numbers { background: var(--paper); border-bottom: 1px solid var(--line); padding: 64px 0; margin-bottom: 64px; }
.proof-numbers ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.proof-numbers li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 0 16px; }
.proof-numbers li + li { border-left: 1px solid var(--line); }
.proof-numbers strong { font-family: var(--display); font-weight: 700; font-size: clamp(3.2rem, 9vw, 7.5rem); line-height: 0.9; letter-spacing: -0.04em; color: var(--teal); }
.proof-numbers span { font-weight: 600; font-size: 1.1rem; color: var(--ink-soft); }

.hero-copy h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); max-width: 17ch; }
.kicker.dark { color: var(--teal); }
@media (max-width: 600px) {
  .banner { padding: 32px 0 56px; }
  .proof-numbers { padding: 40px 0; margin-bottom: 40px; }
  .proof-numbers li { padding: 0 6px; gap: 6px; }
  .proof-numbers span { font-size: 0.85rem; line-height: 1.3; }
}

/* Header socials (Nov 7, 2026) */
.header-social { display: flex; gap: 10px; }
.header-social a { font-weight: 600; font-size: 0.95rem; text-decoration: none; padding: 7px 16px; border-radius: 999px; border: 1.5px solid var(--teal); color: var(--teal); }
.header-social a:hover { background: var(--sage); color: var(--teal-deep); }
.site-header.on-dark .header-social a { border-color: rgba(255,255,255,0.45); color: #fff; }
.site-header.on-dark .header-social a:hover { background: rgba(255,255,255,0.12); color: #fff; }
@media (max-width: 600px) {
  .header-social { gap: 6px; }
  .header-social a { padding: 6px 11px; font-size: 0.85rem; }
}
