/* The Analysis Room — Collegiate Green design system */

:root {
  --bg: #F6F3EB;
  --ink: #182420;
  --ink-2: #4E4A3C;
  --muted: #6E6A58;
  --muted-2: #8A8578;
  --muted-3: #9A937F;
  --green: #1F4B38;
  --green-hover: #143528;
  --gold: #A8842F;
  --gold-hover: #8F6F27;
  --card-bg: #FFFDF7;
  --card-border: #E0DAC6;
  --hairline: #D8D2BE;
  --band: #EFEBDD;
  --tab-bg: #EDE8D8;
  --tab-hover: #E2DCC8;
  --chip-bg: #E7EFE7;
  --nav-divider: #C9C2AA;
  --on-green-muted: #BDD3C4;
  --on-green-hairline: rgba(246, 243, 235, 0.25);
  --pdf-filled: #F1EEE2;
  --pdf-filled-hover: #EAE5D4;
  --pdf-glyph-border: #C7BFA2;
  --pdf-red: #93273A;
  --serif: 'Libre Caslon Text', Georgia, serif;
  --sans: 'Public Sans', system-ui, sans-serif;
  --maxw: 1240px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
}

img { display: block; }
a { color: inherit; }

/* Anchored sections clear the sticky header */
#background, #rates, #reviews, #faq,
#tuition, #essay-marking, #notes {
  scroll-margin-top: 130px;
}

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

.page-column {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.kicker {
  font: 600 12px var(--sans);
  letter-spacing: 0.22em;
  color: var(--gold);
  text-transform: uppercase;
}

/* ---------- Nav ---------- */
.nav {
  border-bottom: 1px solid var(--hairline);
  position: sticky;
  top: 0;
  background: rgba(246, 243, 235, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10;
}

.nav-row {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  row-gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 18px;
  text-decoration: none;
  color: var(--ink);
}

.monogram {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--green);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font: 700 21px var(--serif);
  flex: 0 0 auto;
}

.brand-text { display: flex; flex-direction: column; gap: 2px; }
.brand-name { font: 700 26px var(--serif); white-space: nowrap; }
.brand-sub {
  font: 500 13px var(--sans);
  letter-spacing: 0.14em;
  color: var(--muted);
  white-space: nowrap;
}

.tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--tab-bg);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 4px;
  white-space: nowrap;
  flex: 0 0 auto;
}

.tab {
  color: var(--ink-2);
  padding: 9px 18px;
  border-radius: 999px;
  font: 600 14px var(--sans);
  text-decoration: none;
  transition: background 0.2s ease;
}

.tab:hover { background: var(--tab-hover); }
.tab.active { background: var(--green); color: var(--bg); }
.tab.active:hover { background: var(--green); }

.nav-sec {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  row-gap: 8px;
  gap: 12px;
  font: 500 14px var(--sans);
  flex: 1 1 auto;
}

.nav-link {
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover { color: var(--green); }

.nav-divider { color: var(--nav-divider); }

/* ---------- Buttons ---------- */
.btn-primary {
  white-space: nowrap;
  background: var(--green);
  color: var(--bg);
  padding: 11px 22px;
  border-radius: 999px;
  font: 600 14px var(--sans);
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
  display: inline-block;
  margin-left: 4px;
}

.btn-primary:hover { background: var(--green-hover); }

.btn-primary.lg { padding: 16px 30px; font-size: 16px; margin-left: 0; }
.btn-primary.lg:hover { transform: translateY(-2px); }

.btn-primary.md { padding: 14px 26px; font-size: 15px; margin-left: 0; }
.btn-primary.md:hover { transform: translateY(-2px); }

.btn-cream {
  white-space: nowrap;
  background: var(--bg);
  color: var(--green);
  padding: 16px 30px;
  border-radius: 999px;
  font: 600 16px var(--sans);
  text-decoration: none;
  transition: transform 0.2s ease;
  display: inline-block;
}

.btn-cream:hover { transform: translateY(-2px); }

.btn-outline {
  white-space: nowrap;
  border: 1px solid #B9B29A;
  color: var(--ink);
  padding: 15px 30px;
  border-radius: 999px;
  font: 600 16px var(--sans);
  text-decoration: none;
  transition: border-color 0.2s ease;
  display: inline-block;
}

.btn-outline:hover { border-color: var(--green); }
.btn-outline.sm { padding: 13px 24px; font-size: 15px; }

/* ---------- Hero ---------- */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 80px 32px 72px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
  min-width: 0;
}

.hero-copy { display: flex; flex-direction: column; gap: 26px; }

.hero h1 {
  margin: 0;
  font: 400 50px/1.15 var(--serif);
  letter-spacing: -0.01em;
}

.hero .lede {
  margin: 0;
  font: 400 18px/1.65 var(--sans);
  color: var(--ink-2);
  max-width: 52ch;
}

.cta-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

.stars-line {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 500 14px var(--sans);
  color: var(--ink-2);
}

.stars { color: var(--gold); letter-spacing: 2px; }
.stars-line a { color: var(--green); font-weight: 600; }

.hero-photo { display: flex; justify-content: center; min-width: 0; }

.hero-photo img {
  width: min(420px, 100%);
  aspect-ratio: 420 / 520;
  object-fit: cover;
  clip-path: inset(0 round 210px 210px 18px 18px);
}

/* ---------- Stat band ---------- */
.stat-band { background: var(--green); color: var(--bg); }

.stat-band-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 44px 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-left: 1px solid var(--on-green-hairline);
  padding-left: 24px;
}

.stat-num { font: 400 38px var(--serif); }
.stat-label { font: 500 13px var(--sans); color: var(--on-green-muted); }

/* ---------- Two-col sections ---------- */
.two-col {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 88px 32px;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 64px;
}

.two-col.tight { padding: 0 32px 88px; }
.two-col.tight-72 { padding: 0 32px 72px; }

.section-intro { display: flex; flex-direction: column; gap: 16px; }
.section-intro h2 { margin: 0; font: 400 38px/1.2 var(--serif); }
.section-intro p { margin: 0; font: 400 16px/1.65 var(--sans); color: var(--ink-2); }
.section-intro .wide-copy { line-height: 1.7; }

.text-link {
  align-self: flex-start;
  font: 600 15px var(--sans);
  color: var(--green);
  text-decoration: none;
  border-bottom: 1px solid var(--green);
  padding-bottom: 2px;
}

/* ---------- Track record list ---------- */
.track-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }

.track-list li {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--hairline);
  font: 400 17px/1.5 var(--sans);
}

.track-list li:last-child { border-bottom: none; }
.track-list .glyph { color: var(--gold); }

/* ---------- Stacked sections ---------- */
.stack-section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px 88px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.stack-section.p72 { padding: 0 32px 72px; }
.stack-section .section-intro { max-width: 760px; }

/* ---------- Results ---------- */
.results-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.num-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.num-card .big { font: 400 44px var(--serif); color: var(--green); }
.num-card .label { font: 500 14px/1.45 var(--sans); color: var(--ink-2); }

/* ---------- Rates ---------- */
.rates-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

.rate-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-top: 4px solid var(--green);
  border-radius: 16px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rate-card .subject { font: 700 20px var(--serif); }
.rate-card .price { font: 400 44px var(--serif); color: var(--green); }
.rate-card .price .per { font-size: 18px; color: var(--ink-2); }
.rate-card .meta { font: 400 14px/1.5 var(--sans); color: var(--ink-2); }
.rate-card .res-link { font: 600 14px var(--sans); color: var(--green); text-decoration: none; }

.rate-crosslinks { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 10px; }

.rate-crosslinks .xline {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 400 14px/1.5 var(--sans);
  color: var(--ink-2);
}

.rate-crosslinks .glyph { color: var(--gold); }
.rate-crosslinks a { color: var(--green); font-weight: 600; text-decoration: none; }

/* ---------- Steps ---------- */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.step {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 1px solid var(--hairline);
  padding-top: 24px;
}

.step-num { font: 400 30px var(--serif); color: var(--gold); }
.step-title { font: 600 18px var(--sans); }
.step p { margin: 0; font: 400 15px/1.6 var(--sans); color: var(--ink-2); }

/* ---------- Testimonials ---------- */
.reviews-band { background: var(--band); }

.reviews-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 88px 32px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.reviews-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.masonry { columns: 3; column-gap: 24px; }

.review-card {
  break-inside: avoid;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.review-card .stars { letter-spacing: 3px; font-size: 14px; }

.review-card blockquote {
  margin: 0;
  font: 400 15px/1.65 var(--sans);
  color: #33301F;
}

.review-meta {
  display: flex;
  align-items: baseline;
  gap: 10px;
  border-top: 1px solid #EDE7D4;
  padding-top: 14px;
}

.review-meta .name { font: 600 14px var(--sans); }
.review-meta .subject { font: 500 12px var(--sans); color: var(--green); }
.review-meta .when { font: 400 12px var(--sans); color: var(--muted-2); margin-left: auto; }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; }

.faq-item {
  padding: 22px 0;
  border-bottom: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item:last-child { border-bottom: none; }
.faq-item .q { font: 600 17px var(--sans); }
.faq-item p { margin: 0; font: 400 15px/1.6 var(--sans); color: var(--ink-2); }

/* ---------- Footer CTA (big) ---------- */
.footer-cta { background: var(--green); color: var(--bg); }

.footer-cta-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 88px 32px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.footer-cta h2 { margin: 0; font: 400 42px/1.2 var(--serif); max-width: 24ch; }
.footer-cta .sub { margin: 0; font: 400 16px/1.6 var(--sans); color: var(--on-green-muted); max-width: 56ch; }

.footer-cta-buttons {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
}

.phone-link {
  white-space: nowrap;
  color: var(--bg);
  font: 600 16px var(--sans);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--on-green-hairline);
  width: 100%;
  justify-content: center;
  font: 400 13px var(--sans);
  color: var(--on-green-muted);
}

.footer-links a { color: var(--bg); }

/* ---------- Subpage header ---------- */
.page-head {
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
  padding: 72px 32px 56px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-head h1 { margin: 0; font: 400 48px/1.15 var(--serif); }
.page-head p { margin: 0; font: 400 17px/1.65 var(--sans); color: var(--ink-2); max-width: 64ch; }

/* ---------- Tuition card (subpages) ---------- */
.tuition-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-top: 4px solid var(--green);
  border-radius: 16px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tuition-card .card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.tuition-card .subject { font: 700 20px var(--serif); }
.tuition-card .price { font: 400 40px var(--serif); color: var(--green); }
.tuition-card .price .per { font-size: 17px; color: var(--ink-2); }
.tuition-card .meta { font: 400 14px/1.5 var(--sans); color: var(--ink-2); }

.feat-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }

.feat-list li {
  display: flex;
  gap: 10px;
  font: 400 14px/1.5 var(--sans);
  color: var(--ink-2);
}

.feat-list .glyph { color: var(--gold); }

/* ---------- Sample resource cards ---------- */
.sample-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.sample-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.sample-media {
  height: 220px;
  border-bottom: 1px solid var(--card-border);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font: 400 13px var(--sans);
  color: var(--muted-2);
}

.sample-media img { width: 100%; height: 100%; object-fit: cover; }

/* First-page PDF preview: hover reveals a "click to view full PDF" prompt */
a.sample-media.pdf-thumb {
  position: relative;
  overflow: hidden;
  text-decoration: none;
  cursor: pointer;
}

.pdf-thumb img { object-position: top center; transition: transform 0.3s ease; }
.pdf-thumb:hover img { transform: scale(1.02); }

.pdf-thumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(24, 36, 32, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.pdf-thumb:hover .pdf-thumb-overlay,
.pdf-thumb:focus-visible .pdf-thumb-overlay {
  background: rgba(24, 36, 32, 0.55);
}

.pdf-thumb-prompt {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  background: var(--bg);
  color: var(--green);
  font: 600 13px var(--sans);
  padding: 10px 18px;
  border-radius: 999px;
  white-space: nowrap;
}

.pdf-thumb:hover .pdf-thumb-prompt,
.pdf-thumb:focus-visible .pdf-thumb-prompt {
  opacity: 1;
  transform: translateY(0);
}

.sample-body {
  padding: 26px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.tag-chip {
  align-self: flex-start;
  font: 600 11px var(--sans);
  letter-spacing: 0.14em;
  color: var(--green);
  background: var(--chip-bg);
  border-radius: 999px;
  padding: 5px 12px;
}

.sample-title { font: 700 19px/1.3 var(--serif); }
.sample-desc { margin: 0; font: 400 14px/1.6 var(--sans); color: var(--ink-2); }

/* PDF preview media area (placeholder awaiting a committed PDF).
   To go live: replace the .pdf-preview <div> with
   <a class="pdf-preview filled" href="resources/history/model-essay.pdf" target="_blank" rel="noopener"> ... </a> */
.pdf-preview {
  height: 220px;
  border-bottom: 1px solid var(--card-border);
  background: var(--pdf-filled);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  transition: background 0.15s ease;
}

a.pdf-preview:hover { background: var(--pdf-filled-hover); }

.pdf-glyph {
  width: 52px;
  height: 64px;
  background: var(--card-bg);
  border: 1px solid var(--pdf-glyph-border);
  border-radius: 4px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font: 700 11px var(--sans);
  color: var(--pdf-red);
}

.pdf-caption { font: 600 13px var(--sans); color: var(--green); }
.pdf-sub { font: 400 12px var(--sans); color: var(--muted-2); }

/* ---------- Marking plans ---------- */
.marking-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.plan-card {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.plan-card.popular { border: 1px solid var(--gold); padding: 40px 32px 32px; }

.plan-card.best-value {
  background: var(--green);
  color: var(--bg);
  padding: 40px 32px 32px;
  box-shadow: 0 20px 40px rgba(31, 75, 56, 0.22);
}

.badge {
  position: absolute;
  top: -13px;
  left: 32px;
  font: 600 11px var(--sans);
  letter-spacing: 0.1em;
  padding: 5px 14px;
  border-radius: 999px;
}

.badge.gold { background: var(--gold); color: var(--card-bg); }
.badge.cream { background: var(--bg); color: var(--green); }

.plan-name { font: 700 20px var(--serif); }
.plan-price { font: 400 44px var(--serif); color: var(--green); }
.plan-price .per { font-size: 18px; color: var(--ink-2); }
.plan-card.best-value .plan-price { color: var(--bg); }
.plan-card.best-value .plan-price .per { color: var(--on-green-muted); }

.plan-feats { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; flex: 1; }

.plan-feats li {
  display: flex;
  gap: 10px;
  font: 400 14px/1.5 var(--sans);
  color: var(--ink-2);
}

.plan-feats .glyph { color: var(--gold); }
.plan-card.best-value .plan-feats li { color: var(--on-green-muted); }
.plan-card.best-value .plan-feats .glyph { color: var(--bg); }

.plan-btn {
  text-align: center;
  margin-top: 6px;
  padding: 13px 20px;
  border-radius: 999px;
  font: 600 15px var(--sans);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.plan-btn.outline { border: 1px solid var(--green); color: var(--green); }
.plan-btn.outline:hover { background: var(--green); color: var(--bg); }
.plan-btn.gold { background: var(--gold); color: var(--card-bg); }
.plan-btn.gold:hover { background: var(--gold-hover); }
.plan-btn.cream { background: var(--bg); color: var(--green); }
.plan-btn.cream:hover { transform: translateY(-2px); }

/* ---------- Info strip (add-on / please note) ---------- */
.info-strip {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  background: var(--band);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 18px 24px;
}

.info-strip .label {
  font: 600 12px var(--sans);
  letter-spacing: 0.1em;
  color: var(--green);
}

.info-strip .body { font: 400 14px/1.5 var(--sans); color: var(--ink-2); }

/* ---------- Notes ---------- */
.notes-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }

.notes-col { display: flex; flex-direction: column; gap: 2px; }

.notes-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 10px;
  margin-bottom: 6px;
}

.notes-head span { font: 700 20px var(--serif); }

.note-row {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--hairline);
  border-radius: 8px;
  transition: background 0.15s ease;
  text-align: left;
  background: none;
  border-left: none;
  border-right: none;
  border-top: none;
  width: 100%;
  font: inherit;
}

.note-row:hover { background: var(--band); }
.note-row:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

.note-title { font: 400 15px var(--sans); color: var(--ink); }

.note-right { display: flex; align-items: center; gap: 14px; white-space: nowrap; }
.note-preview-label { font: 500 12px var(--sans); color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.note-price { font: 600 15px var(--sans); color: var(--green); }

.notes-cta {
  align-self: flex-start;
  margin-top: 14px;
  border: 1px solid var(--green);
  color: var(--green);
  padding: 12px 22px;
  border-radius: 999px;
  font: 600 14px var(--sans);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.notes-cta:hover { background: var(--green); color: var(--bg); }

/* ---------- Preview modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(24, 36, 32, 0.55);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.modal-overlay[hidden] { display: none; }

.modal-panel {
  background: var(--card-bg);
  border-radius: 20px;
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  padding: 28px 28px 0;
  box-shadow: 0 32px 64px rgba(20, 30, 25, 0.3);
  display: flex;
  flex-direction: column;
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
  flex: 0 0 auto;
}

.modal-head .modal-title { display: flex; flex-direction: column; gap: 4px; }
.modal-head .modal-note-title { font: 700 24px var(--serif); }
.modal-head .modal-note-sub { font: 400 14px var(--sans); color: var(--ink-2); }

.modal-close {
  border: 1px solid var(--hairline);
  background: var(--card-bg);
  color: var(--ink);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font: 600 16px var(--sans);
  cursor: pointer;
  flex: 0 0 auto;
}

.modal-scroll {
  flex: 1 1 auto;
  overflow-y: auto;
  margin: 0 -28px;
  padding: 0 28px 28px;
}

.modal-preview-banner {
  position: sticky;
  top: 0;
  z-index: 10;
  margin: 0 -28px 16px;
  padding: 8px 28px;
  background: rgba(24, 36, 32, 0.9);
  color: var(--bg);
  font: 600 12px var(--sans);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
}

.modal-pages { position: relative; display: flex; flex-direction: column; gap: 20px; }

.modal-watermark {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  opacity: 0.55;
  background-repeat: repeat;
  background-size: 260px 170px;
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='170'%3E%3Ctext x='-10' y='95' font-family='sans-serif' font-size='22' font-weight='700' fill='rgba(24,36,32,0.10)' transform='rotate(-28 130 85)'%3EPREVIEW ONLY%3C/text%3E%3C/svg%3E");
}

.modal-page { display: flex; flex-direction: column; gap: 8px; }

.modal-page-img {
  background: var(--bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 400 12px var(--sans);
  color: var(--muted-2);
  text-align: center;
  padding: 8px;
  min-height: 160px;
}

.modal-page-img img { width: 100%; height: auto; display: block; border-radius: 7px; }
.modal-page-label { font: 500 12px var(--sans); color: var(--muted-2); text-align: center; }

/* ---------- CTA band (subpages) ---------- */
.cta-band-wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
  padding: 0 32px 88px;
}

.cta-band {
  background: var(--green);
  color: var(--bg);
  border-radius: 20px;
  padding: 48px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.cta-band h2 { margin: 0; font: 400 30px/1.25 var(--serif); }
.cta-band .sub { font: 400 15px var(--sans); color: var(--on-green-muted); }

/* ---------- Simple footer ---------- */
.simple-footer { border-top: 1px solid var(--hairline); margin-top: auto; }

.simple-footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  font: 400 13px var(--sans);
  color: var(--muted);
}

.simple-footer-inner .links { display: flex; gap: 24px; flex-wrap: wrap; }
.simple-footer-inner a { color: var(--green); font-weight: 600; }

/* ---------- Page fade transition ---------- */
#page-fade-root { transition: opacity 150ms ease-in; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding: 56px 32px; }
  .hero h1 { font-size: 40px; }
  .two-col, .two-col.tight, .two-col.tight-72 { grid-template-columns: 1fr; gap: 32px; }
  .stat-band-inner { grid-template-columns: repeat(2, 1fr); }
  .results-grid { grid-template-columns: repeat(2, 1fr); }
  .rates-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .sample-grid { grid-template-columns: 1fr; }
  .masonry { columns: 2; }
  .notes-cols { grid-template-columns: 1fr; gap: 40px; }
  .nav-row { justify-content: center; }
  .nav-sec { justify-content: center; }
}

@media (max-width: 640px) {
  .hero h1 { font-size: 34px; }
  .section-intro h2 { font-size: 30px; }
  .footer-cta h2 { font-size: 30px; }
  .page-head h1 { font-size: 36px; }
  .stat-band-inner { grid-template-columns: 1fr 1fr; gap: 24px; }
  .results-grid { grid-template-columns: 1fr; }
  .masonry { columns: 1; }
  .cta-band { padding: 36px 32px; }
  .marking-grid { grid-template-columns: 1fr; }
  .brand-name { font-size: 21px; }
  .monogram { width: 48px; height: 48px; font-size: 18px; }
}
