/* ================================================================
   Marriage Evidence Packet Builder — pricing page
   Extends the app's "case file" system: desk, sheet, ink, oxblood.
   No JavaScript, no third-party requests, no decorative gradients.
   ================================================================ */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("./fonts/Archivo-Variable-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("./fonts/Newsreader-Variable-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
  src: url("./fonts/Newsreader-Italic-Variable-latin.woff2") format("woff2");
}

:root {
  --desk: #e8e3d6;
  --desk-deep: #d9d2c0;
  --sheet: #fbf9f2;
  --sheet-soft: #f5f1e4;
  --ink: #1c201c;
  --soft: #5f665d;
  --faint: #6b7268;
  --rule: #d3ccba;
  --rule-strong: #b7ac97;
  --oxblood: #6e2b2a;
  --oxblood-dark: #56201f;
  --oxblood-soft: #f1e5e1;
  --moss: #485c4b;
  --brass: #8f6c3c;
  --warning: #7a4a10;
  --warning-soft: #f7ecd7;
  --focus: #1f5a9c;
  --measure: 66ch;
}

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

html {
  background: var(--desk);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--desk);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
p,
dl,
dd,
figure {
  margin: 0;
}

a {
  color: inherit;
}

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

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

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 20;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--sheet);
  font-size: 14px;
  text-decoration: none;
}

.skip-link:focus {
  top: 16px;
}

.preview-banner {
  padding: 10px 18px;
  border-bottom: 1px solid #e2c9a0;
  background: var(--warning-soft);
  color: var(--warning);
  font-size: 12.5px;
  text-align: center;
}

.page {
  padding: clamp(12px, 2.5vw, 32px);
}

.sheet {
  max-width: 1160px;
  margin: 0 auto;
  border: 1px solid var(--rule);
  background: var(--sheet);
  box-shadow: 0 24px 60px rgb(28 32 28 / 10%);
}

.sheet__inner {
  padding: clamp(20px, 4.5vw, 64px);
}

/* Header ------------------------------------------------------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--rule);
}

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

.brand__mark {
  flex: none;
  width: 25px;
  height: 29px;
  margin-top: 2px;
  color: var(--oxblood);
}

.brand__text {
  font-family: "Newsreader", Georgia, serif;
  font-size: 18px;
  line-height: 1.06;
  letter-spacing: -0.01em;
}

.brand__descriptor {
  display: block;
  margin-top: 6px;
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-size: 12px;
  line-height: 1.3;
  letter-spacing: 0.01em;
  color: var(--soft);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding-bottom: 2px;
  color: var(--soft);
  font-size: 14px;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.nav-link:hover {
  color: var(--ink);
  border-bottom-color: var(--rule-strong);
}

/* Buttons and links -------------------------------------------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid var(--oxblood);
  border-radius: 2px;
  background: var(--oxblood);
  color: #fff;
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

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

.button--block {
  width: 100%;
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--oxblood);
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.text-link:hover {
  color: var(--oxblood-dark);
  text-decoration-thickness: 2px;
}

/* Hero --------------------------------------------------------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.75fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
  padding: clamp(40px, 7vw, 84px) 0 clamp(40px, 6vw, 72px);
}

.hero__kicker {
  margin-bottom: 18px;
  font-family: "Newsreader", Georgia, serif;
  font-style: italic;
  font-size: clamp(18px, 1.8vw, 21px);
  color: var(--oxblood);
}

.hero h1 {
  max-width: 15ch;
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(2.6rem, 5.6vw, 4.6rem);
  font-weight: 400;
  line-height: 0.99;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

.hero__lede {
  max-width: 54ch;
  margin-top: 24px;
  color: var(--soft);
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  line-height: 1.58;
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin-top: 30px;
}

.hero__note {
  margin-top: 18px;
  color: var(--faint);
  font-size: 13.5px;
}

/* Packet slip -------------------------------------------------- */

.slip {
  position: relative;
  padding: 26px 24px 24px;
  border: 1px solid var(--rule-strong);
  background: var(--sheet-soft);
  box-shadow: 0 10px 24px rgb(28 32 28 / 8%);
  transform: rotate(-0.5deg);
}

.slip__stub {
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--rule-strong);
  font-family: "Newsreader", Georgia, serif;
  font-style: italic;
  font-size: 17px;
  color: var(--oxblood);
}

.slip__price {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.slip__amount {
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(2.5rem, 4vw, 3.3rem);
  line-height: 1;
  letter-spacing: -0.03em;
}

.slip__term {
  color: var(--soft);
  font-size: 13px;
}

.launch {
  margin-top: 10px;
  color: var(--warning);
  font-size: 12.5px;
  line-height: 1.45;
}

.slip__list {
  margin: 20px 0;
  padding: 0;
  border-top: 1px solid var(--rule);
  list-style: none;
}

.slip__list li {
  position: relative;
  padding: 8px 0 8px 16px;
  border-bottom: 1px solid var(--rule);
  font-size: 13.5px;
  line-height: 1.4;
}

.slip__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15px;
  width: 5px;
  height: 5px;
  background: var(--brass);
}

.slip__fine {
  margin-top: 12px;
  color: var(--soft);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.slip__privacy {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--rule);
  color: var(--soft);
  font-size: 12px;
  line-height: 1.5;
}

/* Sections ----------------------------------------------------- */

.section {
  padding: clamp(36px, 5vw, 60px) 0;
  border-top: 1px solid var(--rule);
}

.section__head {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 18px 52px;
  align-items: end;
  margin-bottom: 34px;
}

.section__title {
  max-width: 19ch;
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.018em;
  text-wrap: balance;
}

.section__lede {
  max-width: 56ch;
  color: var(--soft);
  font-size: 16px;
  line-height: 1.6;
  text-wrap: pretty;
}

.section__lede a {
  color: var(--oxblood);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* Steps -------------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule-strong);
  list-style: none;
}

.step {
  padding: 22px 28px 0 0;
  border-right: 1px solid var(--rule);
}

.step + .step {
  padding-left: 28px;
}

.step:last-child {
  padding-right: 0;
  border-right: 0;
}

.step__number {
  display: block;
  margin-bottom: 12px;
  font-family: "Newsreader", Georgia, serif;
  font-style: italic;
  font-size: 28px;
  color: var(--oxblood);
}

.step h3 {
  margin-bottom: 6px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.005em;
}

.step p {
  color: var(--soft);
  font-size: 14.5px;
  line-height: 1.6;
  text-wrap: pretty;
}

/* Privacy ledger ----------------------------------------------- */

.privacy-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 48px);
}

.ledger-col {
  padding-top: 14px;
  border-top: 2px solid var(--ink);
}

.ledger-col--shared {
  border-top-color: var(--brass);
}

.ledger-col h3 {
  margin-bottom: 10px;
  font-family: "Newsreader", Georgia, serif;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.2;
}

.ledger-list div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
}

.ledger-list dt {
  font-size: 14px;
}

.ledger-list dd {
  max-width: 25ch;
  color: var(--soft);
  font-size: 13.5px;
  line-height: 1.45;
  text-align: right;
}

.privacy-note {
  margin-top: 26px;
  padding: 16px 0 0;
  border-top: 1px solid var(--rule);
  color: var(--soft);
  font-size: 13px;
  line-height: 1.6;
  max-width: 78ch;
}

/* Comparison --------------------------------------------------- */

.table-wrap {
  border-top: 2px solid var(--ink);
  overflow-x: auto;
}

.compare {
  width: 100%;
  min-width: 540px;
  border-collapse: collapse;
  font-size: 14.5px;
}

.compare th,
.compare td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
}

.compare thead th {
  border-bottom: 1px solid var(--rule-strong);
  background: var(--sheet-soft);
  font-family: "Newsreader", Georgia, serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.25;
}

.compare thead th:first-child {
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-size: 12px;
  color: var(--soft);
}

.compare thead th:last-child {
  position: relative;
  color: var(--oxblood);
}

.compare thead th:last-child::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: -1px;
  left: 12px;
  height: 2px;
  background: var(--oxblood);
}

.compare tbody th {
  font-weight: 400;
}

.compare tbody td {
  color: var(--soft);
}

.compare tbody tr:last-child th,
.compare tbody tr:last-child td {
  border-bottom: 0;
}

.compare-notes {
  display: grid;
  gap: 8px;
  max-width: 74ch;
  margin-top: 16px;
  color: var(--soft);
  font-size: 12.5px;
  line-height: 1.6;
}

/* Price -------------------------------------------------------- */

.price {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
  gap: 28px 52px;
  align-items: start;
}

.price__lede {
  max-width: 52ch;
  margin-top: 16px;
  color: var(--soft);
  font-size: 16px;
  line-height: 1.6;
  text-wrap: pretty;
}

.price__panel {
  padding: 24px;
  border: 1px solid var(--rule-strong);
  background: var(--sheet-soft);
}

.price__figure {
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(2.8rem, 5vw, 4rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
}

.price__figure small {
  display: block;
  margin-top: 8px;
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-size: 12.5px;
  letter-spacing: 0.01em;
  color: var(--soft);
}

.price__panel .button {
  margin-top: 22px;
}

.price__fine {
  margin-top: 12px;
  color: var(--soft);
  font-size: 12px;
  line-height: 1.55;
}

.price__existing {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
  color: var(--soft);
  font-size: 12.5px;
  line-height: 1.55;
}

.price__existing a {
  color: var(--oxblood);
  text-underline-offset: 3px;
}

.footnote {
  grid-column: 1 / -1;
  max-width: 82ch;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  color: var(--soft);
  font-size: 12.5px;
  line-height: 1.65;
}

.footnote strong {
  color: var(--ink);
  font-weight: 700;
}

.footnote a {
  color: var(--oxblood);
  text-underline-offset: 3px;
}

/* FAQ ---------------------------------------------------------- */

.faq {
  border-top: 2px solid var(--ink);
}

.faq__item {
  border-bottom: 1px solid var(--rule);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
  font-family: "Newsreader", Georgia, serif;
  font-size: 20px;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex: none;
  color: var(--oxblood);
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-size: 19px;
  line-height: 1.4;
}

.faq details[open] summary::after {
  content: "–";
}

.faq summary:hover {
  color: var(--oxblood);
}

.faq__answer {
  max-width: 70ch;
  padding: 0 0 18px;
  color: var(--soft);
  font-size: 14.5px;
  line-height: 1.65;
}

.faq__answer p + p {
  margin-top: 10px;
}

.faq__answer a {
  color: var(--oxblood);
  text-underline-offset: 3px;
}

.faq__answer strong {
  color: var(--ink);
  font-weight: 700;
}

/* Footer ------------------------------------------------------- */

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 24px 48px;
  margin-top: clamp(36px, 5vw, 56px);
  padding-top: 24px;
  border-top: 1px solid var(--rule-strong);
}

.footer-name {
  font-family: "Newsreader", Georgia, serif;
  font-size: 19px;
  line-height: 1.25;
}

.footer-line {
  max-width: 42ch;
  margin-top: 6px;
  color: var(--soft);
  font-size: 13px;
  line-height: 1.55;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 16px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  color: var(--soft);
  font-size: 13px;
  text-underline-offset: 3px;
}

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

.footer-note {
  color: var(--soft);
  font-size: 12.5px;
  line-height: 1.6;
}

.footer-note p + p {
  margin-top: 8px;
}

.legal {
  grid-column: 1 / -1;
  margin-top: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  color: var(--soft);
  font-size: 12px;
  line-height: 1.6;
  max-width: 90ch;
}

.legal a {
  color: var(--oxblood);
  text-underline-offset: 3px;
}

/* Responsive --------------------------------------------------- */

@media (max-width: 940px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .slip {
    max-width: 430px;
    transform: none;
  }

  .section__head {
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: start;
  }

  .steps {
    grid-template-columns: 1fr;
    border-top: 0;
  }

  .step,
  .step + .step {
    padding: 18px 0;
    border-top: 1px solid var(--rule);
    border-right: 0;
  }

  .privacy-split {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 760px) {
  .site-nav {
    gap: 16px;
  }

  .site-nav .nav-link {
    display: none;
  }

  .brand__descriptor {
    display: none;
  }

  .compare {
    min-width: 0;
    font-size: 13px;
  }

  .compare th,
  .compare td {
    padding: 9px 7px;
  }

  .compare thead th {
    font-size: 16px;
  }

  .compare thead th:first-child {
    font-size: 12px;
  }
}

@media (max-width: 460px) {
  .page {
    padding: 0;
  }

  .sheet {
    border-right: 0;
    border-left: 0;
    box-shadow: none;
  }

  .sheet__inner {
    padding: 18px 16px 26px;
  }

  .site-header {
    gap: 14px;
  }

  .brand__text {
    font-size: 16px;
  }

  .hero {
    padding-top: 34px;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__actions .button {
    width: 100%;
  }

  .hero__actions .text-link {
    text-align: center;
  }

  .slip {
    padding: 22px 18px 20px;
  }

  .ledger-list div {
    flex-direction: column;
    gap: 2px;
  }

  .ledger-list dd {
    max-width: none;
    text-align: left;
  }

  .price__panel {
    padding: 20px 16px;
  }
}

@media print {
  .page {
    padding: 0;
  }

  .sheet {
    max-width: none;
    border: 0;
    box-shadow: none;
  }

  .site-nav,
  .hero__actions,
  .slip .button,
  .price__panel .button,
  .preview-banner {
    display: none;
  }

  .hero,
  .section {
    break-inside: avoid;
  }
}

/* ================================================================
   Legal pages
   ================================================================ */

.legal-page {
  max-width: 72ch;
  margin: 0 auto;
  padding: 46px 0 22px;
}

.legal-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass);
}

.legal-page h1 {
  margin-top: 8px;
  font-family: "Newsreader", "Noto Sans", Georgia, serif;
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.legal-meta {
  margin-top: 12px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--rule);
  font-size: 13px;
  color: var(--soft);
}

.legal-prose {
  padding-top: 10px;
  font-size: 16px;
  line-height: 1.7;
}

.legal-prose h2 {
  margin: 34px 0 10px;
  font-family: "Newsreader", "Noto Sans", Georgia, serif;
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1.2;
}

.legal-prose p,
.legal-prose ul,
.legal-prose ol {
  margin-top: 12px;
}

.legal-prose ul,
.legal-prose ol {
  padding-left: 1.25rem;
}

.legal-prose li + li {
  margin-top: 6px;
}

.legal-prose a {
  color: var(--oxblood);
  text-underline-offset: 3px;
}

.legal-prose a:hover {
  color: var(--oxblood-dark);
}

.legal-callout {
  margin-top: 22px;
  padding: 14px 16px;
  border-left: 3px solid var(--brass);
  background: var(--sheet-soft);
  font-size: 14px;
  color: var(--soft);
}

.legal-draft {
  padding: 10px 16px;
  background: var(--warning-soft);
  color: var(--warning);
  border-bottom: 1px solid var(--rule);
  font-size: 13px;
  text-align: center;
}

@media (max-width: 720px) {
  .legal-page {
    padding-top: 28px;
  }

  .legal-prose {
    font-size: 15px;
  }

  .legal-prose h2 {
    margin-top: 28px;
    font-size: 1.3rem;
  }
}
