/* Layout: one centred 64rem column; sticky translucent header; hero with badge, headline, pill CTAs and a stats row;
   content in white rounded cards with hairline borders on a warm off-white page with a faint sage/peach glow.
   Deliberately light-only, like the reference: every colour is set explicitly. */
:root {
  --page: #fcfbf8;
  --ink: #171717;
  --body: #525252;
  --muted: #8a8a8a;
  --hairline: #ececec;
  --card: #ffffff;
  --green: #1d5b43;
  --green-dot: #22a35a;
  --amber: #b86e00;
  --glow-a: rgba(178, 214, 190, 0.45);
  --glow-b: rgba(250, 222, 205, 0.55);

  --font-display: "DM Sans", "Instrument Sans", system-ui, sans-serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-data: "DM Sans", "Instrument Sans", system-ui, sans-serif;

  --shadow-soft: 0 1px 2px rgba(0,0,0,.04), 0 10px 30px -14px rgba(0,0,0,.10);
  --shadow-hover: 0 1px 2px rgba(0,0,0,.05), 0 18px 40px -16px rgba(0,0,0,.16);

  --measure: 62ch;
  --wide: 64rem;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60rem 40rem at 95% -10%, var(--glow-a), transparent 60%),
    radial-gradient(50rem 40rem at -10% 110%, var(--glow-b), transparent 60%);
}
img { max-width: 100%; }
a { color: var(--ink); text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 1.5px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; color: var(--ink); margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.5rem); line-height: 1.06; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.6rem, 3vw, 1.9rem); line-height: 1.2; letter-spacing: -0.025em; }
h3 { font-size: 1.15rem; line-height: 1.3; letter-spacing: -0.01em; }
p { margin: 0; }

.wrap {
  max-width: var(--wide);
  margin-inline: auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}
@media (min-width: 640px) { .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); } }

.eyebrow { font-size: 0.82rem; color: var(--muted); letter-spacing: 0; }
.lede { font-size: 1.125rem; line-height: 1.65; color: var(--body); max-width: 36rem; }
.prose { max-width: var(--measure); display: grid; gap: 1.05rem; color: var(--body); }
.prose h2 { margin-top: 1.4rem; }
.prose h3 { margin-top: 0.4rem; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose ul, .prose ol { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.45rem; }
.muted { color: var(--body); }
.small { font-size: 0.875rem; }

/* Header */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(255,255,255,.7); }
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40;
  background: rgba(255,255,255,.55); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem 1.5rem; padding-block: 0.8rem; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none; color: var(--ink); }
.brand svg { width: 22px; height: 22px; flex: none; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1rem; letter-spacing: -0.01em; }
.nav { display: flex; gap: 0.25rem 1.6rem; font-size: 0.875rem; order: 3; width: 100%; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
@media (min-width: 820px) { .nav { order: 0; width: auto; } }
.nav a { color: var(--body); text-decoration: none; padding-block: 0.3rem; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--hairline); text-underline-offset: 0.5em; text-decoration-thickness: 2px; }
.nav .nav-cta { color: var(--body); font-weight: 400; }
.header-cta { font-size: 0.875rem; padding: 0.5rem 1rem; }

/* Buttons and links */
.btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font: 500 0.875rem/1.25 var(--font-body);
  padding: 0.8rem 1.25rem; border-radius: 999px;
  text-decoration: none; border: 1px solid var(--ink);
  background: var(--ink); color: #fff; cursor: pointer;
  transition: transform .15s ease, border-color .15s ease;
}
.btn:hover { transform: scale(1.03); }
.btn.ghost { background: rgba(255,255,255,.7); color: var(--ink); border-color: var(--hairline); }
.btn.ghost:hover { border-color: #cfcfcf; transform: none; }
.actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.text-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; font-size: 0.95rem; }
.text-links a { text-decoration: underline; text-decoration-color: var(--ink); }
.text-links a.dim { color: var(--muted); text-decoration-color: var(--muted); }

.badge {
  display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.78rem; color: var(--body);
  border: 1px solid var(--hairline); background: rgba(255,255,255,.7); border-radius: 999px; padding: 0.3rem 0.8rem;
}
.dot { position: relative; width: 8px; height: 8px; flex: none; }
.dot::before, .dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--green-dot); }
.dot::before { animation: ping 1.8s cubic-bezier(0,0,.2,1) infinite; opacity: .6; }
@keyframes ping { 75%, 100% { transform: scale(2.2); opacity: 0; } }

.chips { display: flex; flex-wrap: wrap; gap: 0.45rem; list-style: none; margin: 0; padding: 0; }
.chips li, .tag { font-size: 0.75rem; color: var(--muted); border: 1px solid var(--hairline); border-radius: 999px; padding: 0.2rem 0.7rem; display: inline-block; width: fit-content; background: rgba(255,255,255,.6); }

/* Sections */
.section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section-head { display: grid; gap: 0.7rem; margin-bottom: 2rem; max-width: 42rem; }
.section-head p.muted { line-height: 1.65; }

/* Card base */
.card, .service, .gate li, .deliverables li, .tier, .insight, .contact-card, .product-card, .table-wrap, .note, .cta-card {
  background: var(--card); border: 1px solid var(--hairline); border-radius: 16px; box-shadow: var(--shadow-soft);
  transition: box-shadow .2s ease;
}
.service:hover, .insight:hover, .tier:hover { box-shadow: var(--shadow-hover); }

/* Hero */
.hero { padding-block: clamp(2.5rem, 7vw, 4.5rem) clamp(1.5rem, 4vw, 2.5rem); }
.hero-grid { display: grid; gap: 2.5rem; align-items: end; }
.hero-grid.has-portrait { grid-template-columns: 1fr; }
@media (min-width: 900px) { .hero-grid.has-portrait { grid-template-columns: 1.35fr 1fr; } }
.hero-copy { display: grid; gap: 1.4rem; justify-items: start; }
.hero h1 { max-width: 15ch; }
.hero .or-email { font-size: 0.875rem; color: var(--muted); }
.hero .or-email a { color: var(--body); }
.portrait { display: block; width: 100%; max-width: 26rem; height: auto; justify-self: end; }

.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem 1.5rem; border-top: 1px solid var(--hairline); padding-top: 1.6rem; width: 100%; max-width: 40rem; margin-top: 0.4rem; }
@media (min-width: 640px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stats div { display: grid; gap: 0.15rem; min-width: 0; }
.stats .n { font-family: var(--font-display); font-size: 1.6rem; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.2; }
.stats .l { font-size: 0.82rem; color: var(--muted); line-height: 1.4; }

/* Flagship card */
.flagship { border-radius: 24px; padding: clamp(1.6rem, 4vw, 2.6rem); display: grid; gap: 1rem; }
.flagship p.muted { max-width: 38rem; line-height: 1.65; }
.flagship .price-line { font-family: var(--font-display); font-size: 1.1rem; }
.flagship .price-line small { color: var(--muted); font-size: 0.85rem; font-family: var(--font-body); }

/* Product card (fallback hero visual and elsewhere) */
.product-card { padding: 1.5rem; display: grid; gap: 0.8rem; border-radius: 20px; }
.product-card .price { font-family: var(--font-display); font-size: 1.6rem; letter-spacing: -0.02em; }
.product-card .price small { font-size: 0.85rem; color: var(--muted); font-family: var(--font-body); }

/* Fabric Gate */
.gate { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
@media (min-width: 820px) { .gate { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.gate li { padding: 1.5rem; display: grid; gap: 0.6rem; align-content: start; min-width: 0; }
.gate .grade { font-size: 0.78rem; color: var(--muted); display: flex; align-items: center; gap: 0.5rem; }
.gate .grade::before { content: ""; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--sev); flex: none; }
.gate .poor { --sev: var(--amber); }
.gate .adequate { --sev: #c9a227; }
.gate .strong { --sev: var(--green-dot); }
.gate p { color: var(--body); font-size: 0.95rem; }
.gate .rule { font-size: 0.85rem; color: var(--ink); border-top: 1px solid var(--hairline); padding-top: 0.7rem; margin-top: 0.2rem; }

/* Dates as stats */
.dates { display: grid; gap: 1.6rem 1.5rem; border-top: 1px solid var(--hairline); padding-top: 1.6rem; }
@media (min-width: 640px) { .dates { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .dates { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.dates div { display: grid; gap: 0.3rem; align-content: start; min-width: 0; }
.dates time, .dates .d { font-family: var(--font-display); font-size: 1.6rem; letter-spacing: -0.02em; line-height: 1.2; }
.dates .scope { font-size: 0.78rem; color: var(--muted); }
.dates p { color: var(--body); font-size: 0.9rem; line-height: 1.55; }

/* Services */
.services { display: grid; gap: 1rem; }
@media (min-width: 760px) { .services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.service { display: grid; gap: 0.7rem; align-content: start; padding: 1.6rem; text-decoration: none; color: inherit; border-radius: 20px; }
.service h3 { font-size: 1.3rem; letter-spacing: -0.02em; }
.service .who { font-size: 0.8rem; color: var(--muted); margin-top: 0.3rem; }
.service p { color: var(--body); min-width: 0; font-size: 0.95rem; }
.service .go { font-size: 0.9rem; text-decoration: underline; text-underline-offset: 0.22em; margin-top: 0.3rem; }
.service.lead h3::after { content: "Lead"; font-family: var(--font-body); font-size: 0.7rem; font-weight: 400; color: var(--muted); border: 1px solid var(--hairline); border-radius: 999px; padding: 0.1rem 0.55rem; margin-left: 0.5rem; vertical-align: 0.25em; }

/* Split layouts */
.split { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 1fr) 19rem; gap: 3.5rem; } }
.aside { display: grid; gap: 1.6rem; align-content: start; }
.aside-block { border-top: 1px solid var(--hairline); padding-top: 1rem; display: grid; gap: 0.55rem; }
.aside-block h3 { font-size: 0.95rem; }
.aside-block ul { margin: 0; padding-left: 1.1rem; display: grid; gap: 0.35rem; font-size: 0.95rem; }

.page-head { padding-block: clamp(2.5rem, 6vw, 4rem) clamp(1rem, 3vw, 1.5rem); display: grid; gap: 1rem; justify-items: start; }
.page-head h1 { font-size: clamp(2.1rem, 4.6vw, 3rem); max-width: 22ch; }

/* Deliverables */
.deliverables { display: grid; gap: 0.8rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .deliverables { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.deliverables li { padding: 1.2rem 1.3rem; display: grid; gap: 0.35rem; align-content: start; min-width: 0; box-shadow: none; }
.deliverables h3 { font-size: 1rem; }
.deliverables p { color: var(--body); font-size: 0.92rem; }

.process { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; counter-reset: p; color: var(--body); }
.process li { display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: 0.6rem; counter-increment: p; }
.process li::before { content: counter(p); font-family: var(--font-display); color: var(--muted); width: 1.6rem; height: 1.6rem; border: 1px solid var(--hairline); border-radius: 50%; display: grid; place-items: center; font-size: 0.8rem; background: #fff; }
.process strong { color: var(--ink); font-weight: 600; }

.note { padding: 1.1rem 1.25rem; font-size: 0.95rem; display: grid; gap: 0.35rem; color: var(--body); box-shadow: none; background: rgba(255,255,255,.7); }
.note strong { color: var(--ink); font-weight: 600; }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--hairline); display: grid; gap: 1rem; }
.timeline li { padding-left: 1.2rem; position: relative; display: grid; gap: 0.1rem; }
.timeline li::before { content: ""; position: absolute; left: -4px; top: 0.5rem; width: 7px; height: 7px; background: var(--ink); border-radius: 50%; }
.timeline time { font-family: var(--font-display); font-size: 0.9rem; color: var(--ink); font-weight: 500; }

/* Credentials */
.creds { list-style: none; margin: 0; padding: 0; display: grid; }
.creds li { display: grid; gap: 0.15rem; padding-block: 0.75rem; border-bottom: 1px solid var(--hairline); font-size: 0.95rem; }
.creds .k { font-size: 0.78rem; color: var(--muted); }

/* Insights */
.insight-list { display: grid; gap: 1rem; }
.insight { display: grid; gap: 0.5rem; padding: 1.6rem; text-decoration: none; color: inherit; border-radius: 20px; }
.insight time { font-size: 0.8rem; color: var(--muted); }
.insight h3 { font-size: 1.35rem; letter-spacing: -0.02em; }
.insight p { color: var(--body); max-width: var(--measure); }

/* Contact */
.contact-card { padding: 1.5rem; display: grid; gap: 0.8rem; max-width: 34rem; border-radius: 20px; }
.email-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
.email { font-family: var(--font-display); font-size: 1.35rem; letter-spacing: -0.01em; user-select: all; overflow-wrap: anywhere; }
.copy-btn { font: 500 0.85rem var(--font-body); padding: 0.45rem 0.9rem; border-radius: 999px; border: 1px solid var(--hairline); color: var(--ink); background: #fff; cursor: pointer; }
.copy-status { font-size: 0.85rem; color: var(--muted); min-height: 1.2em; }

/* CTA card */
.cta-band { padding-block: clamp(1.5rem, 4vw, 3rem); }
.cta-card { padding: clamp(1.4rem, 3vw, 2rem); display: grid; gap: 1.2rem; border-radius: 20px; }
@media (min-width: 760px) { .cta-card { grid-template-columns: 1fr auto; align-items: center; } }
.cta-card h2 { font-size: 1.4rem; }
.cta-card p { color: var(--body); margin-top: 0.35rem; max-width: 48ch; }

/* Footer */
.site-footer { border-top: 1px solid var(--hairline); font-size: 0.875rem; color: var(--body); margin-top: 2rem; }
.site-footer .wrap { padding-block: 2.2rem 2.6rem; display: grid; gap: 1.4rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; }
.footer-links a { color: var(--body); text-decoration: none; }
.footer-links a:hover { color: var(--ink); }
.legal { max-width: 70ch; line-height: 1.6; color: var(--muted); font-size: 0.8rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.6rem 1rem; color: var(--muted); font-size: 0.8rem; }
.todo { background: #fde7c2; color: #7a4a00; padding: 0 0.3rem; border-radius: 4px; font-weight: 600; }

.sources { font-size: 0.875rem; color: var(--muted); }
.sources ol { padding-left: 1.2rem; display: grid; gap: 0.35rem; }
.sources a { color: var(--body); }

/* Method */
.method { list-style: none; margin: 0; padding: 0; display: grid; counter-reset: m; }
.method li { counter-increment: m; display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: 0.6rem; padding-block: 0.75rem; border-bottom: 1px solid var(--hairline); color: var(--body); font-size: 0.95rem; }
.method li::before { content: counter(m); font-family: var(--font-display); color: var(--muted); }
.method li.last { color: var(--ink); }
.method strong { font-weight: 600; }
.quote-line { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 1.9rem); line-height: 1.25; letter-spacing: -0.025em; color: var(--ink); max-width: 26ch; text-wrap: balance; }

/* Table */
.table-wrap { overflow-x: auto; border-radius: 20px; }
.compare { width: 100%; border-collapse: collapse; font-size: 0.95rem; min-width: 32rem; }
.compare th, .compare td { text-align: left; padding: 0.85rem 1.2rem; border-bottom: 1px solid var(--hairline); vertical-align: top; }
.compare thead th { font-size: 0.78rem; color: var(--muted); font-weight: 400; }
.compare td.c { text-align: center; width: 7rem; font-family: var(--font-display); }
.compare td.yes { color: var(--ink); }
.compare td.no { color: #c4c4c4; }
.compare tr:last-child td { border-bottom: 0; }
.compare td small { display: block; color: var(--body); font-size: 0.86rem; margin-top: 0.15rem; }

/* Tiers */
.tiers { display: grid; gap: 1rem; }
@media (min-width: 820px) { .tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tier { padding: 1.7rem; display: grid; gap: 0.75rem; align-content: start; min-width: 0; border-radius: 24px; }
.tier.featured { border-color: #d9d9d9; }
.tier ul { margin: 0; padding-left: 1.1rem; display: grid; gap: 0.35rem; color: var(--body); font-size: 0.95rem; }
.price { font-family: var(--font-display); font-size: 1.6rem; letter-spacing: -0.02em; }

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