/* ============================================================
   Prismflow — Self-contained landing stylesheet
   Bundled: fonts + colour/type/spacing/radius/elevation tokens
   + base interaction + landing-specific layout.

   Design lens: Claude Design 'Institutional Letterhead'.
   Warm cream paper, deep warm ink, single vault-green accent,
   brass for seal detail. WCAG AA throughout.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;0,6..72,600;1,6..72,400;1,6..72,500&family=Libre+Franklin:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  /* ------------------------------------------------------------
     Colour
     ------------------------------------------------------------ */
  --cream-50:  #FBF9F3;
  --cream-100: #F5F1E7;
  --cream-200: #ECE6D8;
  --cream-300: #DFD8C6;
  --cream-400: #C9C0AA;

  --ink-900: #1A1916;
  --ink-800: #2A2823;
  --ink-700: #3C3A33;
  --ink-500: #57544B;
  --ink-400: #79756A;
  --ink-300: #9C9788;

  --green-900: #14271D;
  --green-800: #19311F;
  --green-700: #1F3A2C;
  --green-600: #2A4E3A;
  --green-300: #C9D6C9;
  --green-100: #E7EDE6;

  --brass-600: #876A3F;
  --brass-500: #9D7E4C;
  --brass-300: #C7AE82;

  --positive: #2F6B4A;
  --negative: #9B3B2E;
  --warning:  #9A7A33;

  --bg-page:    var(--cream-100);
  --bg-card:    var(--cream-50);
  --bg-inset:   var(--cream-200);
  --bg-dark:    var(--green-900);
  --bg-wash:    var(--green-100);

  --text-primary:   var(--ink-900);
  --text-secondary: var(--ink-500);
  --text-muted:     var(--ink-400);
  --text-faint:     var(--ink-300);
  --text-on-dark:   var(--cream-100);
  --text-on-accent: var(--cream-50);

  --border-hairline: var(--cream-300);
  --border-strong:   var(--cream-400);
  --border-on-dark:  rgba(245, 241, 231, 0.14);

  --accent:        var(--green-700);
  --accent-hover:  var(--green-900);
  --accent-text:   var(--green-700);
  --accent-fg:     var(--cream-50);
  --seal:          var(--brass-500);

  --focus-ring: rgba(31, 58, 44, 0.40);

  /* ------------------------------------------------------------
     Typography
     ------------------------------------------------------------ */
  --font-serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-sans:  'Libre Franklin', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:  'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --text-xs:   0.75rem;
  --text-sm:   0.8125rem;
  --text-base: 0.9375rem;
  --text-md:   1.0625rem;
  --text-lg:   1.25rem;
  --text-xl:   1.625rem;
  --text-2xl:  2.125rem;
  --text-3xl:  3rem;
  --text-4xl:  clamp(2.75rem, 6vw, 4.5rem);

  --weight-regular: 400;
  --weight-medium:  500;
  --weight-semibold:600;
  --weight-bold:    700;

  --leading-tight:  1.08;
  --leading-snug:   1.22;
  --leading-normal: 1.5;
  --leading-relaxed:1.62;

  --tracking-eyebrow: 0.14em;
  --tracking-label:   0.04em;
  --tracking-tight:  -0.02em;
  --tracking-normal:  0em;

  /* ------------------------------------------------------------
     Spacing / Layout
     ------------------------------------------------------------ */
  --space-0:   0;
  --space-1:   0.25rem;
  --space-2:   0.5rem;
  --space-3:   0.75rem;
  --space-4:   1rem;
  --space-5:   1.5rem;
  --space-6:   2rem;
  --space-7:   2.5rem;
  --space-8:   3rem;
  --space-9:   4rem;
  --space-10:  5rem;
  --space-11:  6.5rem;
  --space-12:  8rem;

  --container-max: 1200px;
  --container-text: 720px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --section-y: clamp(4rem, 9vw, 8rem);

  /* ------------------------------------------------------------
     Radius
     ------------------------------------------------------------ */
  --radius-0:  0;
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-full: 999px;

  /* ------------------------------------------------------------
     Elevation
     ------------------------------------------------------------ */
  --shadow-xs: 0 1px 2px rgba(40, 34, 22, 0.05);
  --shadow-sm: 0 1px 2px rgba(40, 34, 22, 0.06),
               0 2px 6px rgba(40, 34, 22, 0.05);
  --shadow-md: 0 2px 4px rgba(40, 34, 22, 0.05),
               0 8px 20px rgba(40, 34, 22, 0.07);
  --shadow-lg: 0 4px 8px rgba(40, 34, 22, 0.06),
               0 20px 44px rgba(40, 34, 22, 0.11);
  --shadow-modal: 0 24px 70px rgba(20, 20, 16, 0.24),
                  0 6px 16px rgba(20, 20, 16, 0.12);
  --ring-hairline: inset 0 0 0 1px var(--border-hairline);
}

/* ============================================================
   Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: var(--text-md);
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--accent); color: var(--accent-fg);
  padding: 10px 16px; border-radius: 0 0 var(--radius-md) 0;
  font-family: var(--font-mono); font-size: 13px;
}
.skip-link:focus { left: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: var(--text-xs); font-weight: 500;
  letter-spacing: var(--tracking-eyebrow); text-transform: uppercase;
  color: var(--text-muted);
}
.eyebrow-rule { width: 26px; height: 1px; background: var(--seal); flex: none; }
.eyebrow-dark { color: rgba(245,241,231,0.66); }
.eyebrow-dark .eyebrow-rule { background: var(--brass-300); }

.arr { font-family: var(--font-mono); font-weight: 400; }

.btn-sm { height: 38px; padding: 0 16px; font-size: 13px; }
.btn-lg { height: 52px; padding: 0 26px; font-size: 15px; }
.btn-md { height: 44px; padding: 0 20px; font-size: 14px; }

.pxh-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-sans); font-weight: 600; letter-spacing: 0.01em; line-height: 1;
  border-radius: var(--radius-md); border: 1px solid transparent; cursor: pointer;
  text-decoration: none; white-space: nowrap;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease, transform 60ms ease;
  -webkit-tap-highlight-color: transparent;
}
.pxh-btn--primary { background: var(--accent); color: var(--accent-fg); }
.pxh-btn--secondary { background: var(--bg-card); color: var(--text-primary); border-color: var(--border-strong); }
.pxh-btn--ghost { background: transparent; color: var(--text-primary); }
.pxh-btn--on-dark { background: var(--cream-50); color: var(--ink-900); }
.pxh-btn--on-dark-ghost {
  background: transparent; color: var(--cream-100);
  border-color: var(--border-on-dark);
}
.pxh-btn--primary:hover      { background: var(--accent-hover); }
.pxh-btn--primary:active     { transform: translateY(0.5px); }
.pxh-btn--secondary:hover    { border-color: var(--ink-400); background: var(--cream-100); }
.pxh-btn--ghost:hover        { color: var(--accent-text); }
.pxh-btn--on-dark:hover      { background: #fff; }
.pxh-btn--on-dark-ghost:hover{ border-color: var(--cream-100); color: #fff; }
.pxh-btn:disabled            { opacity: 0.55; cursor: wait; }
.pxh-btn:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.pxh-input, .pxh-select {
  width: 100%; box-sizing: border-box; height: 46px; padding: 0 14px;
  font-family: var(--font-sans); font-size: 15px; color: var(--text-primary);
  background: var(--bg-card); border: 1px solid var(--border-strong);
  border-radius: var(--radius-md); outline: none;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}
.pxh-input:hover, .pxh-select:hover { border-color: var(--ink-400); }
.pxh-input:focus, .pxh-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--focus-ring);
}
.pxh-input::placeholder { color: var(--text-faint); }
.pxh-input.invalid, .pxh-select.invalid {
  border-color: var(--negative);
  box-shadow: 0 0 0 3px rgba(155,59,46,0.14);
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--cream-100) 86%, transparent);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease, background 200ms ease;
}
.site-header.scrolled { border-bottom-color: var(--border-hairline); }
.hdr-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-word {
  font-family: var(--font-serif); font-weight: 500; font-size: 21px;
  letter-spacing: -0.01em; color: var(--text-primary);
}
.hdr-nav { display: none; gap: 32px; }
.hdr-nav a {
  font-size: 14px; color: var(--text-secondary); text-decoration: none;
  letter-spacing: 0.005em; transition: color 140ms ease;
}
.hdr-nav a:hover { color: var(--text-primary); }
.hdr-actions { display: flex; align-items: center; }
@media (min-width: 880px) {
  .hdr-nav { display: flex; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; overflow: hidden; padding-top: clamp(3rem, 7vw, 6rem); padding-bottom: var(--section-y); }
.hero-rules {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(to right, rgba(31,58,44,0.045) 1px, transparent 1px);
  background-size: 88px 100%;
  -webkit-mask-image: radial-gradient(120% 90% at 70% 8%, #000 30%, transparent 78%);
  mask-image: radial-gradient(120% 90% at 70% 8%, #000 30%, transparent 78%);
}
.hero-inner {
  position: relative;
  display: grid; grid-template-columns: 1fr; gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}
.hero-copy { max-width: 620px; }
.hero-copy .eyebrow { margin-bottom: 28px; }
.hero-h1 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: var(--text-4xl);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--text-primary);
  margin: 0 0 26px;
}
.hero-h1 em { font-style: italic; color: var(--accent-text); }
.hero-lede {
  font-size: var(--text-lg); line-height: var(--leading-relaxed);
  color: var(--text-secondary); max-width: 34em; margin: 0 0 36px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 30px; }
.hero-trust {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 12.5px; line-height: 1.5;
  color: var(--text-muted); margin: 0;
}
.hero-trust .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--positive); flex: none;
  box-shadow: 0 0 0 3px rgba(47,107,74,0.16);
}

/* ============================================================
   "Today's actions" card (was Settlement Ledger)
   ============================================================ */
.ledger {
  justify-self: stretch;
  background: var(--bg-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 24px 26px 22px;
  max-width: 440px;
  position: relative;
}
.ledger::before {
  content: ""; position: absolute; left: 0; top: 22px; bottom: 22px; width: 3px;
  background: var(--seal); border-radius: 3px;
}
.ledger-head {
  display: flex; align-items: baseline; justify-content: space-between;
  padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--border-hairline);
}
.ledger-title {
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-primary);
}
.ledger-tag {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em;
  color: var(--text-muted);
}
.ledger-rows { display: flex; flex-direction: column; gap: 13px; margin-bottom: 18px; }
.action-rows { gap: 14px; }
.action-row {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 12px;
  align-items: center;
  font-size: 14px; color: var(--text-secondary);
}
.action-tag {
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.08em; text-align: center;
  padding: 4px 7px; border-radius: var(--radius-xs);
  text-transform: uppercase;
  width: 64px;
}
.tag-scale   { background: var(--green-100); color: var(--green-800); }
.tag-pause   { background: rgba(155, 59, 46, 0.10); color: var(--negative); }
.tag-refresh { background: rgba(154, 122, 51, 0.12); color: var(--warning); }
.tag-renew   { background: rgba(135, 106, 63, 0.12); color: var(--brass-600); }
.action-body { color: var(--text-primary); font-size: 13.5px; }
.action-row .num {
  font-family: var(--font-mono); font-size: 12.5px;
  color: var(--text-secondary); font-weight: 500;
  text-align: right; white-space: nowrap;
}
.action-row .num.pos { color: var(--positive); }
.action-row .num.muted { color: var(--text-muted); font-weight: 400; }

.ledger-total {
  display: flex; align-items: baseline; justify-content: space-between;
  padding-top: 16px; border-top: 1px solid var(--border-strong);
}
.ledger-total > span:first-child {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-secondary);
}
.ledger-amt {
  font-family: var(--font-serif); font-weight: 600; font-size: 30px;
  letter-spacing: -0.01em; color: var(--accent-text);
}
.ledger-foot {
  font-family: var(--font-mono); font-size: 11px; color: var(--text-muted);
  margin: 14px 0 0; letter-spacing: 0.02em;
}

@media (min-width: 960px) {
  .hero-inner { grid-template-columns: 1.15fr 0.85fr; align-items: start; }
  .ledger { margin-top: 64px; justify-self: end; }
}

/* ============================================================
   Section common
   ============================================================ */
.section { padding-block: var(--section-y); }
.sec-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.sec-head .eyebrow { margin-bottom: 22px; }
.sec-h2 {
  font-family: var(--font-serif); font-weight: 500;
  font-size: var(--text-2xl); line-height: var(--leading-snug);
  letter-spacing: -0.015em; color: var(--text-primary); margin: 0; max-width: 18em;
}

/* ============================================================
   MODULES grid (3 equal-weight cards)
   ============================================================ */
.modules { background: var(--bg-card); border-block: 1px solid var(--border-hairline); }
.module-grid {
  display: grid; grid-template-columns: 1fr; gap: 28px;
}
@media (min-width: 880px) {
  .module-grid { grid-template-columns: repeat(3, 1fr); gap: 36px; }
}
.module-card {
  background: var(--bg-page);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 32px 30px 30px;
  display: flex; flex-direction: column;
  position: relative;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.module-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}
.module-no {
  display: inline-block; font-family: var(--font-mono); font-size: 12.5px; font-weight: 500;
  letter-spacing: 0.1em; color: var(--seal); margin-bottom: 16px;
}
.module-title {
  font-family: var(--font-serif); font-weight: 500; font-size: var(--text-xl);
  letter-spacing: -0.01em; color: var(--text-primary); margin: 0 0 6px;
}
.module-sub {
  font-family: var(--font-mono); font-size: 11.5px;
  color: var(--text-muted); letter-spacing: 0.04em;
  margin: 0 0 18px; line-height: 1.5;
}
.module-pain {
  font-size: 14.5px; line-height: var(--leading-relaxed);
  color: var(--text-secondary); margin: 0 0 22px;
}
.module-pain em { font-style: italic; color: var(--accent-text); font-weight: 500; }
.module-features {
  list-style: none; margin: 0; padding: 18px 0 0;
  border-top: 1px solid var(--border-hairline);
  display: flex; flex-direction: column; gap: 9px;
  font-size: 13.5px; line-height: 1.55;
  color: var(--text-secondary);
}
.module-features li {
  display: grid; grid-template-columns: 14px 1fr; gap: 8px;
}
.module-features li::before {
  content: "—";
  font-family: var(--font-mono);
  color: var(--seal);
  font-size: 12px;
  line-height: 1.55;
}

/* ============================================================
   PRICING
   ============================================================ */
.pricing { background: var(--bg-page); }
.pricing-grid {
  display: grid; grid-template-columns: 1fr; gap: 24px;
  max-width: 920px;
}
@media (min-width: 760px) {
  .pricing-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}
.tier-card {
  background: var(--bg-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 34px 32px 32px;
  display: flex; flex-direction: column; gap: 22px;
  position: relative;
}
.tier-card--featured {
  background: var(--bg-card);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(31,58,44,0.08), var(--shadow-md);
}
.tier-head { display: flex; align-items: baseline; gap: 12px; }
.tier-name {
  font-family: var(--font-serif); font-weight: 600;
  font-size: 26px; letter-spacing: -0.015em;
  color: var(--text-primary);
}
.tier-tag {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 9px; border-radius: var(--radius-xs);
  background: var(--bg-inset); color: var(--text-muted);
}
.tier-tag--accent { background: var(--green-100); color: var(--green-800); }
.tier-price { margin: 0; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.tier-price-figure {
  font-family: var(--font-serif); font-weight: 600; font-size: 48px;
  letter-spacing: -0.025em; color: var(--text-primary); line-height: 1;
}
.tier-price-unit {
  font-family: var(--font-mono); font-size: 12.5px;
  color: var(--text-muted); letter-spacing: 0.04em;
}
.tier-sub {
  font-size: 14.5px; line-height: var(--leading-relaxed);
  color: var(--text-secondary); margin: 0;
}
.tier-features {
  list-style: none; margin: 0; padding: 18px 0 0;
  border-top: 1px solid var(--border-hairline);
  display: flex; flex-direction: column; gap: 11px;
  font-size: 14px; line-height: 1.55;
  color: var(--text-secondary);
}
.tier-features li {
  display: grid; grid-template-columns: 16px 1fr; gap: 10px;
  color: var(--text-secondary);
}
.tier-features li::before {
  content: "✓";
  font-family: var(--font-mono);
  color: var(--accent-text);
  font-weight: 600;
  font-size: 13px;
}
.tier-cta { margin-top: 8px; align-self: stretch; width: 100%; }
.tier-card--featured .tier-cta { width: 100%; }
.pricing-foot {
  margin: 28px 0 0;
  font-family: var(--font-mono); font-size: 12px;
  color: var(--text-muted); letter-spacing: 0.02em;
  text-align: center;
}

/* ============================================================
   AUDIENCE (For brands / For agencies)
   ============================================================ */
.audience { background: var(--bg-card); border-block: 1px solid var(--border-hairline); }
.audience-grid {
  display: grid; grid-template-columns: 1fr; gap: 24px;
}
@media (min-width: 820px) {
  .audience-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}
.audience-card {
  background: var(--bg-page);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 32px 30px 30px;
}
.audience-eyebrow {
  font-family: var(--font-mono); font-size: 11.5px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--seal); margin: 0 0 14px;
}
.audience-h {
  font-family: var(--font-serif); font-weight: 500;
  font-size: var(--text-xl); letter-spacing: -0.015em;
  line-height: var(--leading-snug);
  color: var(--text-primary); margin: 0 0 22px;
}
.audience-points {
  list-style: none; margin: 0; padding: 18px 0 0;
  border-top: 1px solid var(--border-hairline);
  display: flex; flex-direction: column; gap: 16px;
  font-size: 14.5px; line-height: var(--leading-relaxed);
  color: var(--text-secondary);
}
.audience-points strong { color: var(--text-primary); font-weight: 600; }

/* ============================================================
   Why this exists
   ============================================================ */
.why { background: var(--bg-page); }
.why-inner { max-width: var(--container-text); }
.why-body { font-size: var(--text-lg); line-height: var(--leading-relaxed); color: var(--text-secondary); }
.why-body p { margin: 0 0 26px; }
.why-body p:last-child { margin-bottom: 0; }
.why-lead { color: var(--text-primary); }
.why-body em { font-style: italic; color: var(--accent-text); }
.why-fit {
  font-size: var(--text-base); color: var(--text-secondary);
  padding-top: 26px; border-top: 1px solid var(--border-hairline);
}

/* ============================================================
   FINAL CTA
   ============================================================ */
.cta-band { position: relative; overflow: hidden; background: var(--bg-dark); color: var(--text-on-dark); padding-block: clamp(4.5rem, 9vw, 8rem); }
.cta-rules {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(to right, rgba(245,241,231,0.04) 1px, transparent 1px);
  background-size: 88px 100%;
  -webkit-mask-image: radial-gradient(120% 100% at 50% 0%, #000 20%, transparent 72%);
  mask-image: radial-gradient(120% 100% at 50% 0%, #000 20%, transparent 72%);
}
.cta-inner { position: relative; max-width: 680px; }
.cta-inner .eyebrow { margin-bottom: 24px; }
.cta-h2 {
  font-family: var(--font-serif); font-weight: 500; font-size: var(--text-3xl);
  line-height: var(--leading-tight); letter-spacing: -0.02em;
  color: var(--cream-50); margin: 0 0 22px;
}
.cta-body { font-size: var(--text-lg); line-height: var(--leading-relaxed); color: rgba(245,241,231,0.74); margin: 0 0 34px; max-width: 32em; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--bg-page); border-top: 1px solid var(--border-hairline); padding-block: 40px; }
.footer-inner { display: flex; flex-direction: column; gap: 24px; justify-content: space-between; }
.footer-brand { display: flex; flex-direction: column; gap: 10px; }
.footer-op, .footer-copy { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); margin: 0; letter-spacing: 0.02em; }
.footer-meta { display: flex; flex-direction: column; gap: 8px; }
.footer-mail { font-size: 14px; color: var(--text-primary); text-decoration: none; border-bottom: 1px solid var(--border-strong); padding-bottom: 2px; align-self: flex-start; }
.footer-mail:hover { color: var(--accent-text); border-color: var(--accent); }
@media (min-width: 700px) {
  .footer-inner { flex-direction: row; align-items: flex-end; }
  .footer-meta { align-items: flex-end; }
}

/* ============================================================
   MODAL
   ============================================================ */
.modal-root { position: fixed; inset: 0; z-index: 100; display: grid; place-items: start center; padding: clamp(12px, 4vw, 48px); overflow-y: auto; }
.modal-scrim { position: fixed; inset: 0; background: rgba(20,20,16,0.46); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); animation: fade 180ms ease; }
.modal {
  position: relative; width: 100%; max-width: 600px;
  background: var(--bg-card); border: 1px solid var(--border-hairline);
  border-radius: var(--radius-xl); box-shadow: var(--shadow-modal);
  padding: clamp(24px, 4vw, 40px);
  animation: rise 220ms cubic-bezier(0.16, 0.84, 0.44, 1);
}
@media (max-width: 640px) {
  .modal { padding: 26px 22px; }
}
.modal-close {
  position: absolute; top: 18px; right: 18px; width: 34px; height: 34px;
  display: grid; place-items: center; border: 1px solid var(--border-hairline);
  background: var(--bg-card); border-radius: var(--radius-sm); cursor: pointer;
  font-size: 20px; line-height: 1; color: var(--text-muted); transition: all 140ms ease;
}
.modal-close:hover { color: var(--text-primary); border-color: var(--border-strong); background: var(--bg-inset); }
.modal-head { margin-bottom: 28px; padding-right: 36px; }
.modal-head .eyebrow { margin-bottom: 16px; }
.modal-title {
  font-family: var(--font-serif); font-weight: 500; font-size: var(--text-xl);
  letter-spacing: -0.01em; color: var(--text-primary); margin: 0 0 8px;
}
.modal-sub { font-size: var(--text-base); color: var(--text-secondary); margin: 0; }
.modal-form { display: flex; flex-direction: column; gap: 26px; }
.form-group { border: 0; margin: 0; padding: 0; }
.form-legend {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted);
  padding: 0 0 14px; margin: 0; width: 100%; border-bottom: 1px solid var(--border-hairline);
}
.form-grid { display: grid; grid-template-columns: 1fr; gap: 16px; padding-top: 16px; }
@media (min-width: 520px) { .form-grid { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; }
.field-wide { grid-column: 1 / -1; }
.field label {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--text-secondary); margin-bottom: 8px;
}
.select-wrap { position: relative; }
.pxh-select { appearance: none; -webkit-appearance: none; padding-right: 38px; cursor: pointer; }
.select-chev { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); }

.radio-row { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 16px; }
.radio-chip { position: relative; }
.radio-chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.radio-chip span {
  display: inline-flex; align-items: center; height: 40px; padding: 0 16px;
  font-size: 14px; color: var(--text-secondary);
  background: var(--bg-card); border: 1px solid var(--border-strong);
  border-radius: var(--radius-md); cursor: pointer; transition: all 140ms ease;
}
.radio-chip input:hover + span { border-color: var(--ink-400); }
.radio-chip input:checked + span { border-color: var(--accent); background: var(--green-100); color: var(--accent-text); font-weight: 500; }
.radio-chip input:focus-visible + span { box-shadow: 0 0 0 3px var(--focus-ring); }

.modal-foot { display: flex; flex-direction: column; gap: 16px; align-items: stretch; padding-top: 4px; }
.modal-foot-note { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); margin: 0; line-height: 1.5; }
.modal-foot .pxh-btn { width: 100%; }
@media (min-width: 520px) {
  .modal-foot { flex-direction: row; align-items: center; justify-content: space-between; }
  .modal-foot-note { max-width: 18em; }
  .modal-foot .pxh-btn { width: auto; }
}

.modal-success { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.modal-success .modal-title { margin-top: 6px; }
.modal-secondary {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  margin: 8px 0 4px;
  line-height: 1.6;
  letter-spacing: 0.02em;
}
.modal-secondary-link {
  color: var(--accent-text);
  text-decoration: none;
  border-bottom: 1px dashed var(--border-strong);
  padding-bottom: 1px;
  margin-left: 6px;
  transition: color 140ms ease, border-color 140ms ease;
}
.modal-secondary-link:hover {
  color: var(--accent-hover);
  border-bottom-color: var(--accent);
}

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .modal, .modal-scrim { animation: none; }
}
