/* Hallmark · pre-emit critique: P5 H4 E4 S4 R4 V3 · weakest: V, seven pages share one frame; each page opens at its own density and carries its own clauses */
/* Hallmark · dismissed 58 · the legal pages carry complete clauses, not marketing screens */

:root {
  --bg: #131315;
  --bg-deep: #0e0e10;
  --surface: #1b1b1d;
  --surface-2: #242429;
  --ink: #f4f4f6;
  --muted: #a6a6b0;
  --faint: #7d7d87;
  --gold: #d4af37;
  --gold-soft: #e5c378;
  --line: rgba(255, 255, 255, 0.1);
  --focus: #f2ca50;

  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  --sans: system-ui, -apple-system, "Segoe UI", sans-serif;

  --text-display: clamp(2.5rem, 4.6vw, 3.75rem);
  --text-section: clamp(2rem, 2.8vw, 2.5rem);
  --text-title: clamp(1.25rem, 1.8vw, 1.5rem);
  --text-body: 1.0625rem;
  --text-sm: 0.9375rem;
  --text-xs: 0.8125rem;

  --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: 6rem;
  --space-12: 8rem;

  --gutter: clamp(1.25rem, 5vw, 3.5rem);
  --page-max: 1120px;
  --measure: 64ch;
  --section-gap: clamp(5rem, 9vw, 8.5rem);
  --section-gap-tight: clamp(4rem, 7vw, 6rem);

  --radius-sm: 0.5rem;
  --radius-md: 1rem;
}

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

html,
body {
  overflow-x: clip;
}

html {
  background: var(--bg);
  color-scheme: dark;
}

body {
  margin: var(--space-0);
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--text-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--gold);
  color: var(--bg-deep);
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
h4 {
  margin: var(--space-0);
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.12;
  overflow-wrap: break-word;
  min-width: 0;
}

h1 {
  font-size: var(--text-display);
  line-height: 1.06;
}

h2 {
  font-size: var(--text-section);
  line-height: 1.14;
}

h3 {
  font-size: var(--text-title);
  line-height: 1.25;
}

p {
  margin: var(--space-0);
}

p + p {
  margin-top: var(--space-4);
}

a {
  color: var(--gold-soft);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--ink);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

ul,
ol {
  margin: var(--space-0);
  padding-left: var(--space-5);
}

li + li {
  margin-top: var(--space-2);
}

strong {
  font-weight: 600;
}

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

.skip {
  position: absolute;
  left: var(--space-4);
  top: -4rem;
  z-index: 20;
  padding: var(--space-3) var(--space-4);
  background: var(--surface-2);
  color: var(--ink);
  border-radius: var(--radius-sm);
}

.skip:focus-visible {
  top: var(--space-4);
}

.status-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  font-size: var(--text-sm);
  color: var(--muted);
}

.status-bar__inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-4);
  align-items: baseline;
  padding-block: var(--space-3);
}

.status-bar strong {
  color: var(--ink);
  font-weight: 600;
}

.site-head {
  padding-block: var(--space-6);
}

.site-head__inner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-5);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.25rem;
  text-decoration: none;
}

.brand img {
  width: 30px;
  height: 30px;
}

.brand:hover {
  color: var(--gold-soft);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  font-size: var(--text-sm);
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.hero {
  padding-block: var(--space-9) var(--space-10);
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--space-9);
  align-items: center;
}

.hero__copy {
  max-width: 38rem;
}

.hero__lede {
  margin-top: var(--space-5);
  max-width: 42ch;
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--ink);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4) var(--space-6);
  margin-top: var(--space-6);
}

.hero__status {
  margin-top: var(--space-6);
  max-width: 44ch;
  font-size: var(--text-sm);
  color: var(--muted);
}

.hero__mark {
  justify-self: center;
  width: min(21rem, 78%);
  opacity: 0.92;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding-inline: var(--space-5);
  border: 1px solid var(--gold);
  border-radius: var(--radius-sm);
  background: var(--bg-deep);
  color: var(--gold-soft);
  font-family: var(--sans);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  transition: background-color 140ms ease, color 140ms ease;
}

.button:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.text-link {
  font-size: var(--text-sm);
}

.section {
  padding-block: var(--section-gap);
}

.section--tight {
  padding-block: var(--section-gap-tight);
}

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

.section__head {
  max-width: var(--measure);
  margin-bottom: var(--space-7);
}

.section__head p {
  margin-top: var(--space-4);
  max-width: 55ch;
  color: var(--muted);
}

.letter {
  max-width: 62ch;
  font-family: var(--serif);
  font-size: 1.1875rem;
  line-height: 1.72;
}

.letter p + p {
  margin-top: var(--space-5);
}

.steps {
  display: grid;
  gap: var(--space-9);
}

.step {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: var(--space-7);
  align-items: start;
}

.step__body {
  max-width: 58ch;
}

.step__body p {
  color: var(--muted);
}

.exchange {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-5);
  margin-top: var(--space-5);
  padding: var(--space-5);
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.exchange h4 {
  font-family: var(--sans);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink);
}

.exchange p {
  margin-top: var(--space-2);
  font-size: var(--text-sm);
  color: var(--muted);
}

.illustrative {
  margin-top: var(--space-4);
  font-size: var(--text-xs);
  color: var(--faint);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
  line-height: 1.5;
}

.data-table caption {
  caption-side: top;
  text-align: left;
  padding-bottom: var(--space-3);
  color: var(--muted);
  font-size: var(--text-sm);
}

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

.data-table thead th {
  color: var(--ink);
  font-weight: 600;
}

.data-table tbody th {
  font-weight: 500;
  color: var(--ink);
}

.data-table td {
  color: var(--muted);
}

.data-table tr:last-child th,
.data-table tr:last-child td {
  border-bottom: 0;
}

.feature-table td:first-of-type {
  color: var(--ink);
}

.price-list {
  max-width: 44rem;
}

.price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-5);
  padding-block: var(--space-5);
}

.price-row + .price-row {
  border-top: 1px solid var(--line);
}

.price-row__name {
  font-family: var(--serif);
  font-size: var(--text-title);
  color: var(--ink);
}

.price-row__note {
  margin-top: var(--space-2);
  max-width: 36ch;
  font-size: var(--text-sm);
  color: var(--muted);
}

.price-row__amount {
  flex: none;
  font-family: var(--serif);
  font-size: 1.75rem;
  color: var(--gold-soft);
  text-align: right;
}

.price-row__period {
  display: block;
  margin-top: var(--space-1);
  font-family: var(--sans);
  font-size: var(--text-xs);
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-8);
}

.split h3 {
  margin-bottom: var(--space-4);
}

.split p,
.split li {
  color: var(--muted);
}

.faq {
  max-width: 52rem;
}

.faq details {
  padding-block: var(--space-4);
  border-bottom: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  font-family: var(--serif);
  font-size: var(--text-title);
  color: var(--ink);
  list-style-position: outside;
}

.faq details p {
  margin-top: var(--space-3);
  max-width: 62ch;
  color: var(--muted);
}

.faq details a {
  color: var(--gold-soft);
}

.contact-band {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--space-8);
  align-items: start;
}

.contact-band p {
  max-width: 34ch;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  line-height: 1.2;
}

.contact-band__links {
  display: grid;
  gap: var(--space-4);
  font-size: var(--text-sm);
  color: var(--muted);
}

.site-foot {
  padding-block: var(--space-9) var(--space-7);
  font-size: var(--text-xs);
  color: var(--faint);
}

.site-foot__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--space-5);
  align-items: baseline;
}

.site-foot nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2) var(--space-4);
}

.site-foot a {
  color: var(--muted);
  text-decoration: none;
}

.site-foot a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.site-foot__fine {
  text-align: right;
}

.doc-head {
  padding-block: var(--space-8) var(--space-6);
}

.doc-head h1 {
  max-width: 20ch;
}

.doc-head p {
  margin-top: var(--space-4);
  max-width: 56ch;
  color: var(--muted);
}

.draft-note {
  margin-top: var(--space-6);
  max-width: 62ch;
  padding: var(--space-5);
  background: var(--bg-deep);
  border: 1px solid var(--gold);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  color: var(--muted);
}

.draft-note strong {
  color: var(--gold-soft);
}

.doc {
  padding-block: var(--space-6) var(--section-gap);
}

.doc__body {
  max-width: 68ch;
}

.doc__toc {
  margin-bottom: var(--space-8);
  font-size: var(--text-sm);
}

.doc__toc h2 {
  font-family: var(--sans);
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-3);
}

.doc__toc ol {
  list-style: none;
  padding-left: var(--space-0);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
}

.doc__toc li + li {
  margin-top: var(--space-0);
}

.doc section + section {
  margin-top: var(--space-8);
}

.doc h2 {
  font-size: var(--text-title);
  margin-bottom: var(--space-4);
}

.doc h3 {
  margin-top: var(--space-5);
  margin-bottom: var(--space-3);
  font-size: 1.125rem;
}

.doc p,
.doc li {
  color: var(--muted);
}

.doc p + p,
.doc p + ul,
.doc ul + p,
.doc p + table {
  margin-top: var(--space-4);
}

.doc ul + h2 {
  margin-top: var(--space-8);
}

.doc .data-table {
  margin-top: var(--space-4);
}

.definition {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: var(--space-2) var(--space-5);
  margin-top: var(--space-4);
  font-size: var(--text-sm);
}

.definition dt {
  color: var(--ink);
}

.definition dd {
  margin: var(--space-0);
  color: var(--muted);
}

.todo {
  color: var(--gold-soft);
}

.callout {
  margin-top: var(--space-5);
  padding: var(--space-5);
  background: var(--surface);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  color: var(--muted);
}

.callout strong {
  color: var(--ink);
}

.plain-list {
  list-style: none;
  padding-left: var(--space-0);
}

.plain-list li {
  padding-block: var(--space-2);
}

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

.hero__copy > * {
  animation: rise 600ms ease-out both;
}

.hero__copy > *:nth-child(2) {
  animation-delay: 70ms;
}

.hero__copy > *:nth-child(3) {
  animation-delay: 140ms;
}

.hero__copy > *:nth-child(4) {
  animation-delay: 210ms;
}

@media (prefers-reduced-motion: reduce) {
  .hero__copy > * {
    animation: none;
  }

  .button {
    transition: none;
  }
}

@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-8);
  }

  .hero__mark {
    justify-self: start;
    width: min(15rem, 55%);
  }

  .step {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-4);
  }

  .split,
  .contact-band {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-6);
  }

  .site-foot__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .site-foot__fine {
    text-align: left;
  }

  .site-foot nav {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .site-head__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-4);
  }

  .site-nav {
    gap: var(--space-2) var(--space-4);
  }

  .hero {
    padding-block: var(--space-7) var(--space-8);
  }

  .hero__lede {
    font-size: var(--text-body);
  }

  .exchange {
    grid-template-columns: minmax(0, 1fr);
  }

  .data-table thead {
    display: none;
  }

  .data-table,
  .data-table tbody,
  .data-table tr,
  .data-table th,
  .data-table td {
    display: block;
    width: 100%;
  }

  .data-table tr {
    padding-block: var(--space-4);
    border-bottom: 1px solid var(--line);
  }

  .data-table th,
  .data-table td {
    border-bottom: 0;
    padding: var(--space-1) var(--space-0);
  }

  .data-table td::before {
    content: attr(data-label) ": ";
    color: var(--ink);
  }

  .doc .data-table td::before {
    color: var(--ink);
  }

  .price-row {
    display: block;
  }

  .price-row__amount {
    margin-top: var(--space-2);
    text-align: left;
  }

  .definition {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-1);
  }

  .definition dd {
    margin-bottom: var(--space-3);
  }
}
