/* ============================================================
   The Second Opinion Clinic — Surgical Precision, Editorial Calm
   Design tokens
   ============================================================ */
:root {
  --paper: #FBFAF8;
  --ink: #12161C;
  --ink-soft: #2A3038;
  --primary: #0F4C4C;
  --primary-soft: #E4EDEB;
  --accent: #A8894B;
  --steel: #6E7B87;
  --hairline: #E5E2DB;
  --danger: #9B2C2C;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Instrument Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --reveal: 700ms;
  --radius: 4px;
  --container: 1160px;
}

/* ============================================================
   Reset
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; }

::selection { background: var(--primary); color: var(--paper); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ============================================================
   Typography
   ============================================================ */
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.12; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 5.2vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); }
h3 { font-size: 1.3rem; }
p.lede { font-size: 1.15rem; color: var(--ink-soft); }
.mono { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; }

/* ============================================================
   Incision rule — the signature motif (hairline + ◆ diamond)
   ============================================================ */
.incision {
  display: flex; align-items: center; gap: 16px;
  margin: 0 0 28px;
}
.incision::after {
  content: ""; flex: 1; height: 1px; background: var(--hairline);
}
.incision .index { color: var(--accent); font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; }
.incision .index::after { content: "◆"; margin-left: 8px; font-size: 0.6rem; vertical-align: 2px; }

/* ============================================================
   Nav — quiet rail, hairline, no blur
   ============================================================ */
.nav {
  border-bottom: 1px solid var(--hairline);
  background: var(--paper);
  position: sticky; top: 0; z-index: 50;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { font-family: var(--font-display); font-size: 1.15rem; letter-spacing: -0.01em; }
.brand::before { content: "◆"; color: var(--accent); margin-right: 10px; font-size: 0.8rem; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 0.92rem; color: var(--ink-soft); transition: color 200ms var(--ease); }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: none; }
@media (min-width: 900px) {
  .nav-cta { display: inline-block; }
}
.nav-toggle { display: none; background: none; border: none; font-size: 1.4rem; line-height: 1; }
@media (max-width: 899px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--hairline);
    flex-direction: column; align-items: flex-start; padding: 16px 24px 24px; gap: 18px;
  }
  .nav-links.open { display: flex; }
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-block; padding: 14px 28px; border-radius: var(--radius);
  font-size: 0.95rem; font-weight: 600; letter-spacing: 0.01em;
  transition: transform 200ms var(--ease), background-color 200ms var(--ease), color 200ms var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--ink); }
.btn-primary:hover { background: #97793f; }
.btn-outline { border: 1px solid var(--hairline); color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: var(--primary); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ============================================================
   Hero — asymmetric 7/5 editorial split
   ============================================================ */
.hero { padding: 96px 0 80px; }
.hero-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 64px; align-items: start; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }
.hero h1 { margin: 0 0 24px; }
.hero .lede { max-width: 44ch; margin-bottom: 36px; }
.spec-strip { margin-top: 56px; border-top: 1px solid var(--hairline); padding-top: 24px; }
.spec-strip ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 24px 32px; }
.spec-strip .mono { color: var(--steel); display: block; margin-bottom: 4px; }
.spec-strip .spec-value { font-family: var(--font-display); font-size: 1.05rem; }

/* Hero side panel — the "case file" card */
.casefile {
  border: 1px solid var(--hairline); border-radius: var(--radius);
  padding: 32px; background: #fff;
}
.casefile .cf-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--hairline); padding-bottom: 16px; margin-bottom: 20px; }
.casefile .cf-line { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed var(--hairline); font-size: 0.92rem; }
.casefile .cf-line .k { color: var(--steel); font-size: 0.85rem; }
.casefile .cf-total { margin-top: 20px; font-family: var(--font-display); font-size: 1.1rem; }
.casefile .btn { width: 100%; text-align: center; margin-top: 18px; }

/* ============================================================
   Sections
   ============================================================ */
.section { padding: 88px 0; }
.section-alt { background: #F3F1EB; }
.section-dark { background: var(--ink); color: var(--paper); }
.section-dark .incision::after { background: #2A3038; }
.section-dark p, .section-dark .lede { color: #C9CFD6; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 40px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px 64px; }
@media (max-width: 900px) { .grid-3, .grid-2 { grid-template-columns: 1fr; gap: 36px; } }

.panel h3 { margin-bottom: 12px; }
.panel .panel-num { font-family: var(--font-mono); font-size: 0.72rem; color: var(--accent); letter-spacing: 0.12em; display: block; margin-bottom: 10px; }
.panel p { color: var(--ink-soft); font-size: 0.96rem; }

/* ============================================================
   Spec list — the itemized promise
   ============================================================ */
.spec-list { border-top: 1px solid var(--hairline); }
.spec-list li { display: grid; grid-template-columns: 40px 1fr auto; gap: 16px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--hairline); }
.spec-list .n { font-family: var(--font-mono); font-size: 0.75rem; color: var(--accent); }
.spec-list .d { font-size: 0.98rem; }
.spec-list .d small { display: block; color: var(--steel); font-size: 0.85rem; margin-top: 2px; }
.spec-list .m { font-family: var(--font-mono); font-size: 0.8rem; color: var(--steel); white-space: nowrap; }

/* ============================================================
   Steps (how it works)
   ============================================================ */
.steps { counter-reset: step; }
.step { display: grid; grid-template-columns: 72px 1fr; gap: 28px; padding: 36px 0; border-bottom: 1px solid var(--hairline); }
.step:last-child { border-bottom: none; }
.step .step-num { font-family: var(--font-display); font-size: 2.6rem; color: var(--accent); line-height: 1; }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--ink-soft); max-width: 52ch; }
.step .step-time { font-family: var(--font-mono); font-size: 0.75rem; color: var(--steel); letter-spacing: 0.08em; text-transform: uppercase; }

/* ============================================================
   Pricing
   ============================================================ */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .price-grid { grid-template-columns: 1fr; } }
.price-card { border: 1px solid var(--hairline); border-radius: var(--radius); padding: 36px 32px; background: #fff; display: flex; flex-direction: column; }
.price-card.featured { border-color: var(--accent); position: relative; }
.price-card.featured::before { content: "Most common"; position: absolute; top: -11px; left: 32px; background: var(--accent); color: var(--ink); font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 4px 10px; border-radius: 2px; }
.price-card .tier { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--steel); }
.price-card .price { font-family: var(--font-display); font-size: 2.6rem; margin: 10px 0 4px; }
.price-card .per { font-size: 0.82rem; color: var(--steel); margin-bottom: 20px; }
.price-card ul { flex: 1; margin-bottom: 24px; }
.price-card ul li { padding: 7px 0; font-size: 0.9rem; color: var(--ink-soft); border-bottom: 1px dashed var(--hairline); }
.price-card ul li:last-child { border-bottom: none; }
.price-card ul li::before { content: "—"; color: var(--accent); margin-right: 10px; }
.price-card .btn { margin-top: auto; }

/* ============================================================
   FAQ
   ============================================================ */
.faq details { border-bottom: 1px solid var(--hairline); padding: 22px 0; }
.faq summary { font-family: var(--font-display); font-size: 1.12rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: baseline; gap: 20px; }
.faq summary::after { content: "+"; font-family: var(--font-mono); color: var(--accent); font-size: 1.2rem; }
.faq details[open] summary::after { content: "−"; }
.faq .faq-a { padding: 14px 40px 6px 0; color: var(--ink-soft); font-size: 0.95rem; max-width: 70ch; }

/* ============================================================
   CTA band + footer
   ============================================================ */
.cta-band { text-align: center; padding: 100px 0; }
.cta-band h2 { margin-bottom: 18px; }
.cta-band .lede { margin: 0 auto 36px; max-width: 46ch; }

.footer { background: var(--ink); color: #9AA3AC; padding: 72px 0 40px; font-size: 0.88rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer h4 { color: var(--paper); font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 16px; }
.footer ul li { margin-bottom: 10px; }
.footer a:hover { color: var(--paper); }
.footer .brand { color: var(--paper); display: block; margin-bottom: 14px; }
.footer-legal { border-top: 1px solid #2A3038; padding-top: 24px; font-size: 0.78rem; line-height: 1.7; }

/* ============================================================
   Forms
   ============================================================ */
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.85rem; color: var(--steel); margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--hairline); border-radius: var(--radius);
  background: #fff; font: inherit; font-size: 0.95rem; color: var(--ink);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--primary); outline-offset: 1px; border-color: var(--primary); }
.form-note { font-size: 0.8rem; color: var(--steel); margin-top: 14px; }

/* ============================================================
   Reveal animation — one signature motion, reduced-motion safe
   ============================================================ */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity var(--reveal) var(--ease), transform var(--reveal) var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   Utility
   ============================================================ */
.mt-1 { margin-top: 16px; } .mt-2 { margin-top: 32px; } .mt-3 { margin-top: 48px; }
.mb-2 { margin-bottom: 32px; }
.small { font-size: 0.85rem; color: var(--steel); }
.center { text-align: center; }
.warning { border-left: 2px solid var(--danger); background: #FBF3F1; padding: 16px 20px; font-size: 0.9rem; color: #5A2A24; border-radius: 0 var(--radius) var(--radius) 0; }
