/* GMC Prep / TPS — site styles
 * Design: conversion-first, no fluff, doctor-professional.
 * Constraints: readable, calm, high-trust. No marketing gloss.
 */

:root {
  --fg: #1f2328;
  --fg-muted: #57606a;
  --bg: #ffffff;
  --bg-alt: #f6f8fa;
  --bg-urgent: #fff5f5;
  --border: #d0d7de;
  --accent: #0a3d62;
  --accent-hover: #08304d;
  --danger: #cf222e;
  --warn: #9a6700;
  --ok: #1a7f37;
  --radius: 6px;
  --maxw: 820px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  color: var(--fg);
  background: var(--bg);
  line-height: 1.55;
  font-size: 17px;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---- Header ---- */
header.site {
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
}
header.site .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
header.site .brand {
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  color: var(--fg);
}
header.site nav a {
  color: var(--fg-muted);
  text-decoration: none;
  margin-left: 1.1rem;
  font-size: 0.95rem;
}
header.site nav a:hover { color: var(--accent); }

/* ---- Hero ---- */
.hero {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--border);
}
.hero h1 {
  font-size: 2.1rem;
  line-height: 1.25;
  margin: 0 0 0.75rem;
  letter-spacing: -0.01em;
}
.hero .sub {
  font-size: 1.15rem;
  color: var(--fg-muted);
  margin: 0 0 0.75rem;
}
.hero .micro {
  font-size: 0.95rem;
  color: var(--fg-muted);
  font-style: italic;
  margin: 0 0 1.5rem;
}

.hero.urgent {
  background: var(--bg-urgent);
  border-left: 4px solid var(--danger);
  padding-left: 1rem;
}

/* ---- CTAs ---- */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1rem 0;
}
.btn {
  display: inline-block;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1.5px solid var(--accent);
  transition: all 0.15s;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-secondary {
  background: transparent;
  color: var(--accent);
}
.btn-secondary:hover { background: var(--accent); color: #fff; }
.btn-urgent {
  background: var(--danger);
  border-color: var(--danger);
  color: #fff;
}
.btn-urgent:hover { background: #a40e19; border-color: #a40e19; }

/* ---- Sections ---- */
section.block { padding: 2.5rem 0; border-bottom: 1px solid var(--border); }
section.block:last-of-type { border-bottom: none; }
section h2 {
  font-size: 1.5rem;
  margin: 0 0 1rem;
  letter-spacing: -0.005em;
}
section h3 {
  font-size: 1.15rem;
  margin: 1.5rem 0 0.5rem;
  color: var(--accent);
}

/* ---- Lists ---- */
ul.clean, ol.clean {
  padding-left: 1.25rem;
  margin: 0.75rem 0;
}
ul.clean li, ol.clean li { margin-bottom: 0.35rem; }

/* ---- Callout blocks ---- */
.callout {
  background: var(--bg-alt);
  border-left: 4px solid var(--accent);
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin: 1.25rem 0;
}
.callout.warn {
  background: #fffbeb;
  border-left-color: var(--warn);
}
.callout.danger {
  background: var(--bg-urgent);
  border-left-color: var(--danger);
}
.callout.ok {
  background: #ecfdf0;
  border-left-color: var(--ok);
}
.callout .label {
  font-weight: 700;
  color: var(--fg);
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* ---- Two-column (problem vs solution) ---- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 1.5rem 0;
}
.two-col .col {
  background: var(--bg-alt);
  padding: 1.25rem;
  border-radius: var(--radius);
}
.two-col .col.bad { border-top: 3px solid var(--danger); }
.two-col .col.good { border-top: 3px solid var(--ok); }
.two-col h4 { margin: 0 0 0.75rem; font-size: 1rem; }
.two-col .flow {
  font-family: "SF Mono", Monaco, Consolas, monospace;
  font-size: 0.85rem;
  white-space: pre-line;
  color: var(--fg);
}

/* ---- Stage selector ---- */
.stage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.75rem;
  margin: 1.5rem 0;
}
.stage-grid a {
  display: block;
  padding: 1rem 1.1rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--fg);
  text-decoration: none;
  transition: all 0.15s;
}
.stage-grid a:hover {
  border-color: var(--accent);
  background: #fff;
}
.stage-grid a .title {
  display: block;
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.stage-grid a .note {
  font-size: 0.85rem;
  color: var(--fg-muted);
}
.stage-grid a.urgent { border-left: 3px solid var(--danger); }

/* ---- Pricing ---- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
.pricing-card {
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-alt);
}
.pricing-card .tier {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--fg-muted);
  margin-bottom: 0.5rem;
}
.pricing-card .name {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}
.pricing-card .fee {
  font-size: 1.3rem;
  color: var(--accent);
  font-weight: 600;
}

/* ---- FAQ ---- */
details.faq {
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}
details.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.02rem;
  list-style: none;
  padding-right: 1.5rem;
  position: relative;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  color: var(--fg-muted);
  font-weight: 400;
  font-size: 1.25rem;
}
details.faq[open] summary::after { content: "−"; }
details.faq p { margin: 0.75rem 0 0; color: var(--fg); }

/* ---- Tables ---- */
table.clean {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.95rem;
}
table.clean th, table.clean td {
  padding: 0.75rem 0.75rem;
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
table.clean th {
  background: var(--bg-alt);
  font-weight: 600;
}

/* ---- Testimonial ---- */
.testimonial {
  border-left: 4px solid var(--fg-muted);
  padding: 0.75rem 1.25rem;
  margin: 1.5rem 0;
  color: var(--fg);
  font-style: italic;
}
.testimonial cite {
  display: block;
  margin-top: 0.5rem;
  font-style: normal;
  color: var(--fg-muted);
  font-size: 0.9rem;
}

/* ---- Footer ---- */
footer.site {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  background: var(--bg-alt);
  color: var(--fg-muted);
  font-size: 0.9rem;
  margin-top: 2rem;
}
footer.site .disclaim {
  font-size: 0.82rem;
  margin-top: 0.75rem;
}
footer.site a { color: var(--accent-hover); }

/* ---- Breadcrumb ---- */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--fg-muted);
  padding: 0.75rem 0;
}
.breadcrumb a {
  color: var(--fg-muted);
  text-decoration: none;
}
.breadcrumb a:hover { text-decoration: underline; }

/* ---- Responsive ---- */
@media (max-width: 640px) {
  .hero h1 { font-size: 1.65rem; }
  .hero .sub { font-size: 1rem; }
  .two-col { grid-template-columns: 1fr; }
  header.site nav { display: none; }
  section.block { padding: 2rem 0; }
}

/* Print */
@media print {
  header.site, footer.site, .cta-row { display: none; }
  body { font-size: 12pt; }
}
