@import url("https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,340;0,9..144,420;0,9..144,500;0,9..144,600;1,9..144,420;1,9..144,500&family=Inter:wght@400;500;600;700&display=swap");

/* =====================================================================
   Bearings — Elevated Warm-Editorial skin
   Fraunces (display) + Inter (body). Warm greyed paper, cedar as the
   single brand colour for marks / rules / links, copper as a
   hairline-only accent. Refined type scale, generous whitespace.
   Drop-in replacement: every original selector is covered, no HTML
   changes. Calm, premium, trustworthy — never fear-driven, never the
   wellness/therapy register. WCAG AA, responsive, no JavaScript.
   ===================================================================== */

:root {
  /* Type — Fraunces display, Inter text. Mono variable retired but kept
     alive (points at tracked-out Inter) so any old mono selector resolves. */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Grounds — warm, cooled, greyed paper. */
  --canvas: #f4f1ea;        /* warm paper */
  --surface: #faf8f2;       /* lifted card ground */
  --surface-soft: #f0ece1;  /* recessed panel ground */
  --fill: #ece7db;          /* quiet section fill */
  --paper: #f7f4ec;         /* report / featured ground */
  --paper-deep: #e8e3d6;    /* stacked-paper shadow ground */

  /* Ink + text — all AA on the grounds above. */
  --ink: #19211e;           /* near-black, warm */
  --text: #3a3f39;          /* body text */
  --muted: #585d56;         /* secondary / captions */
  --quiet: #63685f;         /* fine print — AA on every ground */
  --line: #d7d1c4;          /* hairline rule */
  --line-strong: #cbc4b4;
  --line-soft: #e2ddd1;

  /* The one brand colour — cedar — marks, rules, links; never big fills. */
  --cedar: #2e4a42;
  --cedar-dark: #21382f;    /* AA cedar for text */
  --lichen: #e7ede8;        /* faint cedar tint for chip grounds */

  /* Copper — hairline + decorative accent only. */
  --copper: #8a4e33;
  --copper-soft: #efe4dc;

  /* Aliases kept so every original token still resolves. These point at
     cedar so the palette stays single-brand-colour, with copper reserved
     for hairlines/marks only. */
  --teal: #2e4a42;
  --teal-deep: #21382f;
  --teal-soft: #e7ede8;
  --source-blue: #45605c;
  --source-blue-soft: #e7ede9;
  --plum: #4b3f58;
  --plum-soft: #ece6f0;

  /* Status — calm, warm; the only place a slightly alerting tone appears. */
  --warning: #8a4e33;
  --warning-soft: #efe4dc;
  --emergency: #8f3434;
  --emergency-soft: #f6e8e6;

  --focus: #8a4e33;

  /* Editorial radii — near-square, kills the SaaS pill on big shapes. */
  --radius-card: 3px;
  --radius-control: 2px;

  /* Restrained shadows — editorial relies on rules + air, not elevation. */
  --shadow-soft: 0 1px 0 rgba(25, 33, 30, 0.02);
  --shadow-report: 0 18px 48px -28px rgba(25, 33, 30, 0.4);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--canvas);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: 0;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  overflow-wrap: break-word;
}

a {
  color: var(--cedar-dark);
}

img,
svg {
  max-width: 100%;
}

::selection {
  background: var(--lichen);
  color: var(--ink);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
.option:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 1px;
}

/* ---------- layout shells ---------- */
.container {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 40px;
}

.narrow {
  width: 100%;
  max-width: 760px;
  margin-inline: auto;
  padding-inline: 40px;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: var(--canvas);
}

@supports ((backdrop-filter: blur(8px)) or (-webkit-backdrop-filter: blur(8px))) {
  .site-header {
    background: rgba(244, 241, 234, 0.86);
    -webkit-backdrop-filter: saturate(140%) blur(12px);
    backdrop-filter: saturate(140%) blur(12px);
  }
}

.site-header__inner {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand-mark {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark strong {
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 420;
  line-height: 1;
  letter-spacing: 0.01em;
  font-optical-sizing: auto;
}

.brand-mark span {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cedar-dark);
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.16s ease;
}

.nav a:not(.button):hover {
  color: var(--cedar-dark);
}

/* ---------- buttons ---------- editorial: flat, near-square, cedar ---------- */
.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-control);
  border: 1px solid transparent;
  padding: 0 26px;
  font: 500 15px/20px var(--font-sans);
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.button-primary {
  background: var(--cedar);
  border-color: var(--cedar);
  color: var(--canvas);
}

.button-primary:hover {
  background: var(--cedar-dark);
  border-color: var(--cedar-dark);
}

.button-secondary {
  border-color: var(--cedar);
  background: transparent;
  color: var(--cedar-dark);
}

.button-secondary:hover {
  background: var(--cedar);
  border-color: var(--cedar);
  color: var(--canvas);
}

.button-dark {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--canvas);
}

.button-dark:hover {
  background: #000;
  border-color: #000;
}

/* ---------- hero ---------- one idea, doubled whitespace ---------- */
.hero {
  padding: 92px 0 100px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 0.86fr;
  gap: 72px;
  align-items: center;
}

.hero-grid > *,
.two-col > *,
.section-header > *,
.quiz-shell > *,
.card,
.artefact,
.price-card,
.memo {
  min-width: 0;
}

/* ---------- tracked-out small-caps sans eyebrow (replaces mono labels) ---------- */
.eyebrow {
  margin: 0 0 24px;
  color: var(--cedar-dark);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* ---------- display headings ---------- Fraunces, optical, light, generous ---------- */
.hero-title,
.page-title {
  max-width: 18ch;
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.2vw, 4rem);
  font-weight: 340;
  line-height: 1.06;
  letter-spacing: -0.012em;
  font-optical-sizing: auto;
}

.hero-title em,
.page-title em {
  font-style: italic;
  font-weight: 420;
}

.page-title {
  max-width: 22ch;
  font-size: clamp(2.1rem, 3.6vw, 3rem);
  line-height: 1.1;
}

.hero-lede,
.page-lede {
  max-width: 46ch;
  margin: 26px 0 0;
  color: var(--text);
  font-size: 1.22rem;
  line-height: 1.62;
}

.hero-lede em,
.page-lede em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 420;
  color: var(--ink);
}

.page-lede {
  max-width: 56ch;
  font-size: 1.12rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 38px;
}

/* ---------- trust chips ---------- hairline-quiet ---------- */
.trust-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 42px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 13px;
  background: transparent;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 18px;
  max-width: 100%;
  white-space: normal;
}

.chip svg {
  display: block;
}

.chip-green {
  border-color: var(--cedar);
  background: var(--lichen);
  color: var(--cedar-dark);
}

.chip-copper {
  border-color: var(--copper);
  background: transparent;
  color: var(--copper);
}

.chip-plum {
  border-color: var(--line);
  background: var(--plum-soft);
  color: var(--plum);
}

.chip-quiet {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--quiet);
}

/* ---------- hero specimen / report card ---------- */
.artefact {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.report-stack {
  position: relative;
  min-width: 0;
}

/* Subtle stacked-paper depth — restrained, warm. */
.report-stack::before,
.report-stack::after {
  content: "";
  position: absolute;
  inset: 22px -16px -16px 26px;
  z-index: -1;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--paper-deep);
  transform: rotate(1.4deg);
}

.report-stack::after {
  inset: 44px 16px -32px -12px;
  background: #e3ddcf;
  transform: rotate(-1.1deg);
}

.report {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--paper);
  box-shadow: var(--shadow-report);
  overflow: hidden;
}

/* Single cedar hairline header — no rainbow gradient bar. */
.report::before {
  content: "";
  display: block;
  height: 3px;
  background: var(--cedar);
}

.report__body {
  padding: 34px;
}

.report__folio {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
  color: var(--muted);
  font: 500 11px/18px var(--font-sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.report__title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
  padding: 24px 0 20px;
}

.report__title h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 420;
  line-height: 1.1;
  letter-spacing: -0.01em;
  font-optical-sizing: auto;
}

.report-stamp {
  display: grid;
  width: 96px;
  height: 96px;
  place-items: center;
  border: 1px solid var(--copper);
  border-radius: 50%;
  color: var(--copper);
  font: 500 10px/15px var(--font-sans);
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(-6deg);
}

.priority-strip {
  display: grid;
  border-top: 1px solid var(--line);
}

.priority-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 92px;
  gap: 18px;
  align-items: start;
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}

.priority-row:last-child {
  border-bottom: 0;
}

.priority-row b {
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
}

.priority-row span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 14px;
  line-height: 22px;
}

.priority-index {
  color: var(--copper);
  font: italic 420 1.6rem/1 var(--font-display);
}

.priority-time {
  color: var(--cedar-dark);
  font: 500 11px/18px var(--font-sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ---------- source rail ---------- */
.source-rule {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.source-rule span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 11px;
  color: var(--cedar-dark);
  font: 500 11px/18px var(--font-sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- principle band ---------- cedar as the one full ground ---------- */
.principle-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--cedar);
  color: #fbf9f3;
  padding: 0;
}

.principle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.principle {
  background: transparent;
  border-left: 1px solid rgba(251, 249, 243, 0.16);
  padding: 44px 36px;
}

.principle:first-child {
  border-left: 0;
  padding-left: 0;
}

.principle strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 420;
  line-height: 1.18;
  letter-spacing: -0.005em;
  color: #fbf9f3;
}

.principle span {
  display: block;
  margin-top: 12px;
  color: rgba(251, 249, 243, 0.82);
  font-size: 0.98rem;
  line-height: 1.55;
}

/* ---------- editorial layout ---------- */
.editorial-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.8fr);
  gap: 76px;
  align-items: start;
}

.editorial-lead {
  max-width: 22ch;
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3vw, 2.55rem);
  font-weight: 340;
  line-height: 1.14;
  letter-spacing: -0.01em;
  font-optical-sizing: auto;
}

.editorial-lead em {
  font-style: italic;
  font-weight: 420;
}

/* ---------- artefact menu (hairline rows, no cards) ---------- */
.artefact-menu {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.artefact-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 24px;
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
}

.artefact-row .code {
  color: var(--cedar-dark);
  font: 500 11px/18px var(--font-sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.artefact-row h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 420;
  line-height: 1.22;
  letter-spacing: -0.005em;
}

.artefact-row p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.6;
}

/* ---------- proof panel ---------- copper hairline pull-quote ---------- */
.proof-panel {
  border-left: 2px solid var(--copper);
  background: transparent;
  padding: 8px 0 8px 32px;
}

.proof-panel p {
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 340;
  font-style: italic;
  line-height: 1.5;
}

/* ---------- answer / FAQ list ---------- */
.answer-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.answer-row {
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
  gap: 40px;
  border-bottom: 1px solid var(--line);
  padding: 32px 0;
}

.answer-row h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 420;
  line-height: 1.24;
  letter-spacing: -0.005em;
}

.answer-row p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.62;
}

/* ---------- artefact card body ---------- single cedar hairline ---------- */
.artefact::before {
  content: "";
  display: block;
  height: 3px;
  background: var(--cedar);
}

.artefact__body {
  padding: 30px;
}

.artefact__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.artefact h2,
.artefact h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 420;
  line-height: 1.16;
  letter-spacing: -0.008em;
  font-optical-sizing: auto;
}

.artefact h3 {
  font-size: 1.32rem;
  line-height: 1.22;
}

.artefact p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

/* ---------- action list ---------- hairline rows, cedar marks ---------- */
.action-list {
  display: grid;
  gap: 0;
  margin-top: 24px;
  border-top: 1px solid var(--line);
}

.action-item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  padding: 18px 0;
  align-items: start;
}

.action-item:last-child {
  border-bottom: 0;
}

.action-item > * {
  min-width: 0;
}

.action-number {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--cedar);
  border-radius: 50%;
  background: transparent;
  color: var(--cedar-dark);
  font: italic 420 16px/1 var(--font-display);
}

.action-item strong {
  display: block;
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  line-height: 22px;
  overflow-wrap: anywhere;
}

.action-item span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
  line-height: 21px;
  overflow-wrap: anywhere;
}

/* ---------- generic sections ---------- generous air, hairline separation ---------- */
.section {
  border-top: 1px solid var(--line);
  padding: 92px 0;
}

.section-soft {
  background: var(--surface-soft);
}

.section-header {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(280px, 0.68fr);
  gap: 56px;
  align-items: end;
  margin-bottom: 48px;
}

.section-title {
  max-width: 24ch;
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.6vw, 2.3rem);
  font-weight: 340;
  line-height: 1.16;
  letter-spacing: -0.01em;
  font-optical-sizing: auto;
}

.section-title em {
  font-style: italic;
  font-weight: 420;
}

.section-kicker {
  max-width: 46ch;
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.62;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 440px);
  gap: 56px;
  align-items: start;
}

.three-col,
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.two-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

/* ---------- cards ---------- quietly framed, hairline only ---------- */
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  padding: 28px;
}

.card h3 {
  margin: 0 0 12px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 420;
  line-height: 1.22;
  letter-spacing: -0.005em;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.62;
  overflow-wrap: anywhere;
}

.card .fine {
  margin-top: 16px;
}

.fine {
  color: var(--quiet);
  font-size: 13px;
  line-height: 1.55;
  letter-spacing: 0.01em;
}

/* ---------- feature table ---------- editorial ledger ---------- */
.feature-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
}

.feature-table th,
.feature-table td {
  border-bottom: 1px solid var(--line);
  padding: 16px 20px;
  text-align: left;
  vertical-align: top;
}

.feature-table th {
  color: var(--cedar-dark);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.feature-table td {
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.55;
}

.feature-table tr:last-child td {
  border-bottom: 0;
}

/* ---------- pricing ---------- three quietly-framed columns, hairline only ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) repeat(2, minmax(0, 0.9fr));
  gap: 0;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--paper);
}

.price-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  padding: 40px 32px 36px;
}

.price-card:first-child {
  border-left: 0;
}

.price-card.featured {
  background: var(--surface-soft);
  box-shadow: none;
}

.price-card h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 420;
  line-height: 1.16;
  letter-spacing: -0.008em;
}

.price {
  margin: 20px 0 8px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 340;
  line-height: 1;
  letter-spacing: -0.01em;
  font-optical-sizing: auto;
}

.price small {
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
}

.price-card ul {
  display: grid;
  gap: 0;
  margin: 24px 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.price-card li {
  position: relative;
  border-bottom: 1px solid var(--line);
  padding: 11px 0 11px 24px;
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.5;
}

.price-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95em;
  width: 13px;
  height: 1px;
  background: var(--copper);
}

.price-card .button {
  margin-top: auto;
}

.pricing-note {
  display: grid;
  grid-template-columns: minmax(0, 0.55fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
  border-top: 1px solid var(--line);
  padding-top: 40px;
  margin-bottom: 40px;
}

.pricing-note h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 2.8vw, 2.4rem);
  font-weight: 340;
  line-height: 1.14;
  letter-spacing: -0.01em;
  font-optical-sizing: auto;
}

/* ---------- memo ---------- cedar hairline block ---------- */
.memo {
  border-left: 2px solid var(--cedar);
  background: transparent;
  padding: 4px 0 4px 30px;
}

.memo h2,
.memo h3 {
  margin: 0 0 14px;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 420;
  font-size: 1.3rem;
  line-height: 1.22;
  letter-spacing: -0.005em;
}

.memo p {
  margin: 0 0 14px;
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.62;
}

.memo p:last-child {
  margin-bottom: 0;
}

/* ---------- source list ---------- */
.source-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 18px;
}

/* ---------- page hero ---------- */
.page-hero {
  padding: 84px 0 72px;
}

.page-hero .trust-rail {
  max-width: 780px;
}

/* ---------- quiz ---------- */
.quiz-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 48px;
  align-items: start;
}

.progress {
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--line);
}

.progress span {
  display: block;
  width: 38%;
  height: 100%;
  background: var(--cedar);
  transition: width 0.3s ease;
}

.option-list {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.option {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--surface);
  padding: 16px 18px;
  color: var(--ink);
  font: 500 16px/23px var(--font-sans);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.option:hover {
  border-color: var(--cedar);
  background: var(--lichen);
}

/* ---------- forms ---------- */
.form-row {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

label {
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--surface);
  padding: 14px 15px;
  color: var(--ink);
  font: 16px/24px var(--font-sans);
}

input::placeholder,
textarea::placeholder {
  color: var(--quiet);
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--cedar);
}

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 72px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: start;
}

.footer p {
  margin: 0;
  max-width: 64ch;
}

.footer a {
  color: var(--cedar-dark);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.footer a:hover {
  border-bottom-color: var(--cedar);
}

/* ---------- emergency ---------- only place a warmer alert tone appears ---------- */
.emergency-band {
  border-top: 1px solid #e3c4c0;
  border-bottom: 1px solid #e3c4c0;
  background: var(--emergency-soft);
  padding: 18px 0;
  color: #6a2424;
  font-weight: 600;
}

.emergency-card {
  border: 1px solid #e3c4c0;
  border-left: 3px solid var(--emergency);
  border-radius: var(--radius-card);
  background: var(--surface);
  padding: 28px;
}

.emergency-card h3 {
  margin: 0 0 12px;
  color: var(--emergency);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 420;
  line-height: 1.22;
  letter-spacing: -0.005em;
}

/* ---------- legal ---------- */
.legal-content {
  display: grid;
  gap: 44px;
  padding-bottom: 96px;
}

.legal-content h2 {
  margin: 0 0 16px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 420;
  line-height: 1.18;
  letter-spacing: -0.008em;
}

.legal-content p,
.legal-content li {
  max-width: 70ch;
  color: var(--text);
}

/* ---------- mockup index ---------- */
.mockup-index {
  padding: 84px 0 96px;
}

.mockup-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin-top: 48px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.mockup-link {
  display: block;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 28px;
  text-decoration: none;
  transition: background 0.16s ease;
}

.mockup-link:hover {
  background: var(--surface);
}

.mockup-link strong {
  display: block;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 420;
  letter-spacing: -0.005em;
}

.mockup-link span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

/* ---------- utility ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition-duration: 0.001ms !important;
  }
}

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 920px) {
  .container,
  .narrow {
    padding-inline: 32px;
  }

  .site-header__inner {
    min-height: 70px;
  }

  .nav {
    gap: 18px;
  }

  .hero-grid,
  .two-col,
  .section-header,
  .quiz-shell,
  .editorial-layout,
  .pricing-note {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-title {
    max-width: none;
  }

  .principle-grid {
    grid-template-columns: 1fr;
  }

  .principle,
  .principle:first-child {
    border-left: 0;
    border-top: 1px solid rgba(251, 249, 243, 0.16);
    padding: 34px 0;
  }

  .principle:first-child {
    border-top: 0;
  }

  .three-col,
  .card-grid {
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .price-card {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .price-card:first-child {
    border-top: 0;
  }

  .two-card-grid,
  .mockup-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  html {
    font-size: 16px;
  }

  .container,
  .narrow {
    padding-inline: 22px;
  }

  .site-header__inner {
    min-height: 62px;
  }

  .brand-mark span {
    display: none;
  }

  .nav a:not(.button) {
    display: none;
  }

  .nav {
    gap: 12px;
  }

  .nav .button {
    min-height: 44px;
    padding-inline: 16px;
    font-size: 14px;
  }

  .hero {
    padding: 56px 0 64px;
  }

  .section {
    padding: 64px 0;
  }

  .page-hero {
    padding: 56px 0 48px;
  }

  .section-header {
    margin-bottom: 36px;
  }

  .report-stack::before,
  .report-stack::after {
    display: none;
  }

  .report__body {
    padding: 24px;
  }

  .report__folio {
    display: grid;
  }

  .report__title {
    grid-template-columns: 1fr;
  }

  .report-stamp {
    width: auto;
    height: auto;
    justify-self: start;
    border-radius: 999px;
    padding: 8px 14px;
    transform: none;
  }

  .priority-row {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 14px;
  }

  .priority-time {
    grid-column: 2;
  }

  .principle {
    padding: 30px 0;
  }

  .proof-panel {
    padding-left: 24px;
  }

  .memo {
    padding-left: 24px;
  }

  .artefact-row,
  .answer-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .artefact__body,
  .card,
  .price-card {
    padding: 24px;
  }

  .feature-table,
  .feature-table thead,
  .feature-table tbody,
  .feature-table tr,
  .feature-table th,
  .feature-table td {
    display: block;
  }

  .feature-table {
    border: 0;
    background: transparent;
  }

  .feature-table thead {
    display: none;
  }

  .feature-table tbody {
    display: grid;
    gap: 14px;
  }

  .feature-table tr {
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: var(--surface);
    padding: 16px 18px;
  }

  .feature-table td {
    display: grid;
    grid-template-columns: minmax(94px, 0.34fr) minmax(0, 1fr);
    gap: 12px;
    border: 0;
    border-bottom: 1px solid var(--line);
    padding: 10px 0;
    overflow-wrap: anywhere;
  }

  .feature-table td:last-child {
    border-bottom: 0;
  }

  .feature-table td::before {
    content: attr(data-label);
    color: var(--cedar-dark);
    font: 600 11px/18px var(--font-sans);
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }
}