/* Pinewright site styles
   Palette: Huon pine golds, myrtle greens, charcoal.
   Fonts: system stacks only (nothing fetched from third parties).
   Theming: light by default, dark via prefers-color-scheme, and a manual
   override through [data-theme] on <html> (set by the theme switch).
   Contrast pairs are checked by tools/check_contrast.py. */

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;
  --bg: #F6F1E6;
  --surface: #FFFCF5;
  --band: #EFE7D7;
  --text: #1E201B;
  --muted: #4B4E45;
  --border: #D6CBB4;
  --control: #7D725C;
  --gold: #845811;
  --gold-soft: #C9963F;
  --accent: #2D5640;
  --accent-strong: #1F4030;
  --on-accent: #FFFFFF;
  --link: #2D5640;
  --link-hover: #1F4030;
  --focus: #1F4030;
  --badge-bg: #E4EDE5;
  --badge-text: #1F4030;
  --notice-bg: #FBF0D9;
  --notice-border: #C9963F;
  --notice-text: #3D2A07;
  --shadow: 0 1px 2px rgb(30 32 27 / 0.05), 0 12px 32px -18px rgb(30 32 27 / 0.28);
  --footer-bg: #1E201B;
  --footer-text: #EEE8DB;
  --footer-muted: #B8B1A2;
  --footer-link: #E0B060;
  --footer-border: #3A3F35;

  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "URW Palladio L", P052, Georgia, serif;

  --step--1: clamp(0.875rem, 0.86rem + 0.08vw, 0.9375rem);
  --step-0: clamp(1rem, 0.97rem + 0.16vw, 1.0625rem);
  --step-1: clamp(1.15rem, 1.08rem + 0.35vw, 1.3125rem);
  --step-2: clamp(1.4rem, 1.25rem + 0.7vw, 1.8rem);
  --step-3: clamp(1.75rem, 1.5rem + 1.2vw, 2.5rem);
  --step-4: clamp(2.15rem, 1.7rem + 2.2vw, 3.6rem);

  --gutter: clamp(1rem, 4vw, 2rem);
  --radius: 14px;
  --radius-sm: 9px;
  --measure: 66ch;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #141612;
    --surface: #1C1F1A;
    --band: #191C17;
    --text: #EEE8DB;
    --muted: #B8B1A2;
    --border: #353A31;
    --control: #8A8676;
    --gold: #E0B060;
    --gold-soft: #C9963F;
    --accent: #9CCBAE;
    --accent-strong: #B8DCC6;
    --on-accent: #11140F;
    --link: #9CCBAE;
    --link-hover: #C4E3D0;
    --focus: #E0B060;
    --badge-bg: #23362B;
    --badge-text: #C4E3D0;
    --notice-bg: #2A2416;
    --notice-border: #8C6A2E;
    --notice-text: #F2DFB8;
    --shadow: none;
    --footer-bg: #0E100C;
    --footer-border: #2C3028;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #141612;
  --surface: #1C1F1A;
  --band: #191C17;
  --text: #EEE8DB;
  --muted: #B8B1A2;
  --border: #353A31;
  --control: #8A8676;
  --gold: #E0B060;
  --gold-soft: #C9963F;
  --accent: #9CCBAE;
  --accent-strong: #B8DCC6;
  --on-accent: #11140F;
  --link: #9CCBAE;
  --link-hover: #C4E3D0;
  --focus: #E0B060;
  --badge-bg: #23362B;
  --badge-text: #C4E3D0;
  --notice-bg: #2A2416;
  --notice-border: #8C6A2E;
  --notice-text: #F2DFB8;
  --shadow: none;
  --footer-bg: #0E100C;
  --footer-border: #2C3028;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

[hidden] { display: none !important; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.012em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); line-height: 1.3; }
h4 { font-size: var(--step-0); font-family: var(--font-sans); letter-spacing: 0; }

p, ul, ol, dl { margin: 0 0 1em; }
p { text-wrap: pretty; }
ul, ol { padding-left: 1.25em; }
li + li { margin-top: 0.35em; }
strong { font-weight: 650; }
small { font-size: var(--step--1); }
hr { border: 0; border-top: 1px solid var(--border); margin: 2.5rem 0; }

a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a:hover { color: var(--link-hover); text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

svg { display: block; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  background: var(--accent);
  color: var(--on-accent);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 0.75rem; }

.container {
  width: 100%;
  max-width: 74rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.prose { max-width: var(--measure); }
.prose h2 { font-size: var(--step-2); margin-top: 2.2em; scroll-margin-top: 1rem; }
.prose h3 { margin-top: 1.6em; }
.prose > :first-child { margin-top: 0; }
.eyebrow + h2, .eyebrow + h3 { margin-top: 0; }

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.header-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  min-height: 4.5rem;
  padding-block: 0.6rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  min-height: 44px;
  margin-right: auto;
}
.brand:hover { color: var(--text); }
.brand-mark { width: 32px; height: 32px; flex: none; }
.brand-mark .mark-bg { fill: var(--accent-mark, #2D5640); }
.brand-mark .mark-ring { fill: none; stroke: #E0B060; stroke-width: 1.8; }
.brand-mark .mark-pith { fill: #E0B060; }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}
.site-nav li + li { margin-top: 0; }
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  color: var(--text);
  text-decoration: none;
  font-weight: 550;
  font-size: 0.975rem;
}
.site-nav a:hover { background: var(--band); color: var(--text); }
.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--gold-soft);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.45em;
}
.site-nav .nav-cta {
  background: var(--accent);
  color: var(--on-accent);
  margin-left: 0.25rem;
  padding-inline: 1rem;
}
.site-nav .nav-cta:hover { background: var(--accent-strong); color: var(--on-accent); }
.site-nav .nav-cta[aria-current="page"] { text-decoration-color: currentColor; }

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-width: 44px;
  min-height: 44px;
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--control);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 550;
  cursor: pointer;
}
.icon-button:hover { background: var(--band); }
.icon-button svg { width: 20px; height: 20px; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle[aria-pressed="true"] .icon-sun { display: block; }
.theme-toggle[aria-pressed="true"] .icon-moon { display: none; }

.menu-toggle { display: none; }

/* Small screens: with JavaScript the nav collapses behind a Menu button.
   Without JavaScript it simply wraps under the brand. */
@media (max-width: 52.49em) {
  .site-nav { order: 3; flex-basis: 100%; }
  .js .menu-toggle:not([hidden]) { display: inline-flex; order: 2; }
  .js .site-nav:not(.is-open) { display: none; }
  .js .site-nav.is-open ul { flex-direction: column; padding: 0.25rem 0 0.75rem; }
  .js .site-nav.is-open a { width: 100%; }
  .js .site-nav.is-open .nav-cta { margin: 0.4rem 0 0; justify-content: center; }
  .theme-toggle { order: 1; }
}
@media (min-width: 52.5em) {
  .theme-toggle { order: 4; }
}

/* ---------- Layout blocks ---------- */
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section--band { background: var(--band); border-block: 1px solid var(--border); }
.section--tight { padding-block: clamp(2rem, 5vw, 3.5rem); }

.section-head { max-width: 46rem; margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }
.section-head p:not(.eyebrow) { color: var(--muted); font-size: var(--step-1); line-height: 1.55; }

.eyebrow {
  display: block;
  margin: 0 0 0.9rem;
  font-family: var(--font-sans);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.lead {
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--muted);
  max-width: 40rem;
}

.grid { display: grid; gap: clamp(1rem, 2.5vw, 1.5rem); }
@media (min-width: 40em) {
  .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 62em) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  box-shadow: var(--shadow);
}
.card > :last-child { margin-bottom: 0; }
.card h2, .h-card { font-size: var(--step-2); margin-bottom: 0.5em; }
.card h3 { margin-bottom: 0.4em; }
ul.grid { list-style: none; padding: 0; margin: 0; }
.grid > li { margin: 0; }
.card p:not(.eyebrow) { color: var(--muted); }
.card p.price { color: var(--text); }

.feature-icon {
  width: 40px; height: 40px;
  margin-bottom: 1rem;
  color: var(--gold);
}
.feature-icon svg { width: 40px; height: 40px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.3rem;
  border: 1.5px solid transparent;
  border-radius: 10px;
  font: inherit;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-strong); color: var(--on-accent); }
.btn--secondary { border-color: var(--accent); color: var(--accent); background: transparent; }
.btn--secondary:hover { background: var(--band); color: var(--accent-strong); border-color: var(--accent-strong); }
.btn:disabled, .btn[aria-disabled="true"] { cursor: not-allowed; opacity: 0.6; }
.button-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 8vw, 6.5rem) clamp(3rem, 7vw, 5.5rem);
}
.hero::before {
  content: "";
  position: absolute;
  inset: auto -18rem -14rem auto;
  width: 44rem;
  height: 44rem;
  background: url("/assets/img/rings.svg") no-repeat center / contain;
  opacity: 0.55;
  pointer-events: none;
}
.hero > .container { position: relative; }
.hero-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 60em) {
  .hero-grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
  .hero::before { inset: -6rem -12rem auto auto; width: 50rem; height: 50rem; }
}
.hero h1 { max-width: 15em; }
.hero h1 .h1-second { display: block; color: var(--accent); }
.hero .lead { margin-bottom: 0; }

.assurances {
  list-style: none;
  padding: 0;
  margin: 1.75rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-weight: 600;
  font-size: 0.95rem;
}
.assurances li { margin: 0; display: inline-flex; align-items: center; gap: 0.45rem; }
.assurances svg { width: 18px; height: 18px; color: var(--accent); flex: none; }

.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.75rem, 7vw, 5rem) clamp(2rem, 5vw, 3.5rem);
  border-bottom: 1px solid var(--border);
}
.page-hero::before {
  content: "";
  position: absolute;
  top: -10rem;
  right: -14rem;
  width: 34rem;
  height: 34rem;
  background: url("/assets/img/rings.svg") no-repeat center / contain;
  opacity: 0.4;
  pointer-events: none;
}
.page-hero > .container { position: relative; }
.page-hero h1 { max-width: 20ch; margin-bottom: 0.4em; }
.page-meta { color: var(--muted); font-size: var(--step--1); margin: 0.75rem 0 0; }

/* ---------- Price card ---------- */
.price-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1.5rem, 3.5vw, 2.25rem);
  overflow: hidden;
}
.price-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: linear-gradient(90deg, var(--gold-soft), #E0B060 55%, var(--gold-soft));
}
.price-label {
  font-family: var(--font-sans);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.75rem;
}
.price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.25rem 0.6rem;
  margin: 0 0 0.25rem;
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 2rem + 2.5vw, 3.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}
.price small {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--muted);
}
.price-note { font-weight: 650; margin: 0.5rem 0 1.25rem; }
.price-card .price-sub { color: var(--muted); margin-bottom: 1.25rem; }
.grid .price-card { padding: clamp(1.25rem, 3vw, 1.75rem); }

.checklist { list-style: none; padding: 0; margin: 0 0 1.25rem; }
.checklist li {
  position: relative;
  padding-left: 1.75rem;
  margin: 0;
}
.checklist li + li { margin-top: 0.55rem; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0.1rem;
  top: 0.45em;
  width: 0.95rem;
  height: 0.55rem;
  border-left: 2.5px solid var(--accent);
  border-bottom: 2.5px solid var(--accent);
  transform: rotate(-45deg);
}
.crosslist { list-style: none; padding: 0; margin: 0 0 1.25rem; }
.crosslist li { position: relative; padding-left: 1.75rem; margin: 0; }
.crosslist li + li { margin-top: 0.55rem; }
.crosslist li::before, .crosslist li::after {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.8em;
  width: 0.95rem;
  height: 2.5px;
  background: var(--gold);
  transform: rotate(45deg);
}
.crosslist li::after { transform: rotate(-45deg); }

/* ---------- Steps ---------- */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.5rem);
  counter-reset: step;
}
@media (min-width: 40em) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 66em) { .steps--four { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.steps > li {
  counter-increment: step;
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  box-shadow: var(--shadow);
}
.steps > li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
  color: var(--gold);
  margin-bottom: 0.9rem;
}
.steps h3 { margin-bottom: 0.4em; }
.steps p { color: var(--muted); margin-bottom: 0; }
.steps p + p { margin-top: 0.75em; }

.step-detail {
  display: grid;
  gap: 0.5rem 2.5rem;
  padding-block: clamp(1.75rem, 4vw, 2.5rem);
  border-top: 1px solid var(--border);
  counter-increment: detail;
}
.step-detail:last-child { border-bottom: 1px solid var(--border); }
@media (min-width: 52em) { .step-detail { grid-template-columns: 12rem minmax(0, 1fr); } }
.step-number {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 2rem + 2vw, 3.5rem);
  font-weight: 700;
  line-height: 1;
  color: var(--gold);
  margin: 0;
}
.step-detail h2 { font-size: var(--step-2); }
.step-detail .prose p:last-child, .step-detail .prose ul:last-child { margin-bottom: 0; }
.step-list { counter-reset: detail; }

/* ---------- Promise / disclosure ---------- */
.promise-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
@media (min-width: 52em) { .promise-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.promise-list li {
  margin: 0;
  padding: 1.25rem 1.25rem 1.25rem 1.4rem;
  border-left: 3px solid var(--gold-soft);
  background: var(--surface);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.promise-list strong { display: block; font-family: var(--font-serif); font-size: var(--step-1); margin-bottom: 0.3rem; }
.promise-list span { color: var(--muted); }

.disclosure {
  display: grid;
  gap: 1.25rem;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--shadow);
}
@media (min-width: 52em) { .disclosure { grid-template-columns: auto minmax(0, 1fr); gap: 2rem; } }
.disclosure-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: var(--badge-bg);
  color: var(--badge-text);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
}
.disclosure-statement {
  font-family: var(--font-serif);
  font-size: var(--step-2);
  line-height: 1.3;
  margin: 0 0 0.75rem;
  max-width: 34ch;
}
.disclosure p:not(.eyebrow) { color: var(--muted); max-width: 72ch; }
.disclosure p.disclosure-statement { color: var(--text); }
.disclosure > div > :last-child { margin-bottom: 0; }

.ai-line {
  margin: 0;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--accent);
  background: var(--surface);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--font-serif);
  font-size: var(--step-1);
  line-height: 1.45;
}

/* ---------- FAQ ---------- */
.faq { max-width: 50rem; border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 1.15rem 3rem 1.15rem 0;
  font-family: var(--font-serif);
  font-size: var(--step-1);
  font-weight: 700;
  line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 0.5rem;
  top: 50%;
  width: 0.7rem;
  height: 0.7rem;
  margin-top: -0.5rem;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(45deg);
}
.faq details[open] > summary::after { transform: rotate(-135deg); margin-top: -0.15rem; }
.faq summary:hover { color: var(--link-hover); }
.faq .answer { padding: 0 0 1.25rem; max-width: var(--measure); }
.faq .answer > :last-child { margin-bottom: 0; }

/* ---------- Notices, badges, tables ---------- */
.notice {
  border: 1px solid var(--notice-border);
  background: var(--notice-bg);
  color: var(--notice-text);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  margin: 0 0 1.5rem;
}
.notice a { color: inherit; }
.notice > :last-child { margin-bottom: 0; }
.notice strong { display: block; margin-bottom: 0.15rem; }

.badge {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: var(--badge-bg);
  color: var(--badge-text);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.table-wrap { overflow-x: auto; margin: 0 0 1.5rem; }
table { width: 100%; border-collapse: collapse; font-size: 0.975rem; }
caption { text-align: left; font-weight: 650; margin-bottom: 0.5rem; }
th, td { text-align: left; vertical-align: top; padding: 0.8rem 0.9rem 0.8rem 0; border-bottom: 1px solid var(--border); }
th { font-weight: 650; }
thead th { font-size: var(--step--1); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
td.amount { white-space: nowrap; font-weight: 650; }

/* Narrow screens: stack the stage table instead of scrolling it sideways.
   Explicit ARIA roles in the markup keep the table semantics when display changes. */
@media (max-width: 39.99em) {
  .table-stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .table-stack, .table-stack tbody, .table-stack tr, .table-stack th, .table-stack td { display: block; }
  .table-stack tr { padding: 0.9rem 0; border-bottom: 1px solid var(--border); }
  .table-stack tbody th, .table-stack td { border: 0; padding: 0.1rem 0; }
  .table-stack td.amount { white-space: normal; margin-top: 0.35rem; }
  .table-stack td.amount::before { content: "You pay: "; content: "You pay: " / ""; font-weight: 400; color: var(--muted); }
}

/* ---------- Concepts ---------- */
/* Gallery cards. The whole card is clickable through the stretched ::after of its one link. */
.concept { position: relative; display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.concept:hover { border-color: var(--control); }
.concept-frame {
  background: var(--band);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0.75rem 0;
}
.concept-frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
  border: 1px solid var(--border);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
}
.concept-body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: clamp(1.25rem, 3vw, 1.5rem); }
.concept-body .badge { margin-bottom: 0.8rem; }
.card p.concept-meta { margin-top: -0.2em; font-size: var(--step--1); font-weight: 600; color: var(--gold); }
.concept-link { margin-top: auto; font-weight: 650; }
.concept-link::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.concept-link:focus-visible { outline: none; }
.concept-link:focus-visible::after { outline: 3px solid var(--focus); outline-offset: -3px; }

/* ---------- Forms ---------- */
.form-card { max-width: 42rem; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; font-weight: 650; margin-bottom: 1rem; }
.field { margin-bottom: 1.15rem; }
.field label, .field .label { display: block; font-weight: 650; margin-bottom: 0.35rem; }
.field .hint { display: block; color: var(--muted); font-size: var(--step--1); margin: -0.15rem 0 0.4rem; }
.field input, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.85rem;
  font: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--control);
  border-radius: var(--radius-sm);
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:disabled, .field textarea:disabled, .check input:disabled + label { cursor: not-allowed; }
.field input:disabled, .field textarea:disabled { background: var(--band); color: var(--muted); }
.check { display: flex; gap: 0.75rem; align-items: flex-start; margin-bottom: 1.25rem; }
.check input { width: 1.4rem; height: 1.4rem; margin: 0.15rem 0 0; flex: none; accent-color: var(--accent); }
.hp-field { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.optional { font-weight: 400; color: var(--muted); }
.collection-notice { color: var(--muted); font-size: var(--step--1); margin-top: 1.25rem; }

.contact-email {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 1.1rem + 1.6vw, 2.1rem);
  font-weight: 700;
  word-break: break-word;
}

/* ---------- Legal pages ---------- */
.legal-layout { display: grid; gap: 2.5rem; }
@media (min-width: 62em) {
  .legal-layout { grid-template-columns: 15rem minmax(0, 1fr); gap: 4rem; }
  .toc { position: sticky; top: 1.5rem; align-self: start; max-height: calc(100vh - 3rem); overflow-y: auto; }
}
.toc { font-size: 0.95rem; }
.toc h2 {
  font-family: var(--font-sans);
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin: 0 0 0.75rem;
}
.toc ol { padding-left: 2.2em; margin: 0; }
.toc li { padding-block: 0.2rem; }
.toc li + li { margin-top: 0; }
.toc a { display: inline-block; color: var(--text); text-decoration-color: var(--border); } /* inline-block: full line-height tap target (WCAG 2.5.8) */
.toc a:hover { color: var(--link-hover); text-decoration-color: currentColor; }

.legal h2 { counter-increment: legal; }
.legal { counter-reset: legal; }
.legal h2::before { content: counter(legal) ". "; color: var(--gold); }
.legal .acl-statement {
  border-left: 3px solid var(--accent);
  padding: 0.75rem 0 0.75rem 1.1rem;
  margin: 0 0 1.25rem;
  background: transparent;
}

/* ---------- CTA band ---------- */
.cta-band { text-align: left; }
.cta-band .card { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 52em) { .cta-band .card { grid-template-columns: minmax(0, 1fr) auto; padding: 2.5rem; } }
.cta-band h2 { font-size: var(--step-2); margin-bottom: 0.3em; }
.cta-band p { margin: 0; }
.cta-band .button-row { margin-top: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  margin-top: 0;
  padding-block: clamp(2.5rem, 6vw, 4rem) 1.5rem;
  font-size: 0.95rem;
}
.site-footer a { color: var(--footer-link); }
.site-footer a:hover { color: #F0CC8A; }
.site-footer :focus-visible { outline-color: #E0B060; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 44em) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 66em) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2.5rem; } }
.footer-wordmark { font-family: var(--font-serif); font-weight: 700; font-size: 1.5rem; margin: 0 0 0.5rem; }
.footer-brand p { color: var(--footer-muted); max-width: 32rem; }
.footer-brand .footer-wordmark { color: var(--footer-text); }
.footer-brand .footer-ai { color: var(--footer-text); }
.footer-heading {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--footer-muted);
  margin: 0 0 0.75rem;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin: 0; }
.footer-links a { display: inline-flex; align-items: center; min-height: 36px; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-links a[aria-current="page"] { text-decoration: underline; }
.footer-contact p { color: var(--footer-muted); margin-bottom: 0.5rem; }
.footer-legal {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--footer-border);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  justify-content: space-between;
  color: var(--footer-muted);
  font-size: 0.875rem;
}
.footer-legal p { margin: 0; }

/* ---------- 404 ---------- */
.not-found-links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.not-found-links li { margin: 0; }

/* ---------- Motion & media ---------- */
@media (prefers-reduced-motion: no-preference) {
  html:focus-within { scroll-behavior: smooth; }
  .btn, .site-nav a, .icon-button, .faq summary::after { transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.2s ease; }
}

@media (forced-colors: active) {
  .btn, .site-nav .nav-cta, .badge { border: 1px solid CanvasText; }
  .checklist li::before, .crosslist li::before, .crosslist li::after { forced-color-adjust: none; border-color: CanvasText; }
  .hero::before, .page-hero::before { display: none; }
}

@media print {
  .site-header nav, .menu-toggle, .theme-toggle, .skip-link, .hero::before, .page-hero::before, .toc { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .site-footer { background: #fff; color: #000; }
  .site-footer a, a { color: #000; }
  .legal-layout { display: block; }
}
