:root {
  --paper: #f3eee2;
  --paper-light: #faf7f0;
  --paper-deep: #e9dfca;
  --ink: #1a1611;
  --ink-soft: #4d463b;
  --ink-faint: #817866;
  --seal: #b23a28;
  --teal: #00a2af;
  --teal-dark: #087f89;
  --line: rgba(26, 22, 17, 0.16);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --body: "EB Garamond", Georgia, serif;
  --mono: "Space Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --shadow: 0 28px 70px rgba(35, 28, 18, 0.15);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(120% 100% at 50% -10%, #fffdf7 0%, transparent 58%),
    var(--paper);
  font: 19px/1.62 var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.38;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.045'/%3E%3C/svg%3E");
}

img { display: block; max-width: 100%; }
figure { margin: 0; }
a { color: inherit; }
.shell { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: fixed; left: 12px; top: -80px; z-index: 20; background: var(--ink); color: white; padding: 10px 14px; }
.skip-link:focus { top: 12px; }

.site-header { border-bottom: 1px solid var(--line); }
.site-header .shell { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.18em;
  color: var(--ink);
  font: 600 26px/1 var(--serif);
  text-decoration: none;
  white-space: nowrap;
}
.brand small { color: var(--ink-faint); font: 700 10px/1 var(--mono); letter-spacing: 0.18em; text-transform: uppercase; }
.brand-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(0, 162, 175, 0.14); }
.site-nav { display: flex; align-items: center; gap: clamp(16px, 2.6vw, 34px); }
.site-nav a { color: var(--ink-soft); font: 700 11px/1.2 var(--mono); letter-spacing: 0.1em; text-decoration: none; text-transform: uppercase; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-underline-offset: 6px; }
.site-nav .download-link { color: var(--teal-dark); }

.eyebrow { color: var(--teal-dark); font: 700 12px/1.3 var(--mono); letter-spacing: 0.22em; text-transform: uppercase; }
.eyebrow::before { content: ""; display: inline-block; width: 32px; height: 2px; margin-right: 14px; background: var(--teal); vertical-align: middle; }
.page-hero { padding-block: clamp(72px, 10vw, 132px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr); gap: clamp(48px, 8vw, 100px); align-items: center; }
.page-hero h1 { max-width: 12ch; margin: 20px 0 24px; font: 500 clamp(52px, 7vw, 92px)/0.94 var(--serif); letter-spacing: -0.025em; }
.page-hero h1 em { color: var(--teal-dark); font-style: italic; }
.lede { max-width: 640px; margin: 0; color: var(--ink-soft); font-size: clamp(21px, 2vw, 25px); line-height: 1.48; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; margin-top: 32px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 11px 22px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper-light); font: 600 18px/1 var(--serif); text-decoration: none; }
.button:hover { background: var(--seal); border-color: var(--seal); }
.text-link { color: var(--teal-dark); font: 700 12px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; text-underline-offset: 6px; }
.proof-frame { position: relative; padding: clamp(20px, 4vw, 42px); border: 1px solid var(--line); background: rgba(250, 247, 240, 0.7); box-shadow: var(--shadow); }
.proof-frame img { width: 100%; height: auto; border: 1px solid rgba(26, 22, 17, 0.1); }
.proof-caption { margin-top: 15px; color: var(--ink-faint); font: 400 11px/1.6 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; }
.device-frame img { max-height: 520px; margin-inline: auto; object-fit: contain; }

.trust-strip { border-block: 1px solid var(--line); background: rgba(250, 247, 240, 0.45); }
.trust-strip .shell { display: grid; grid-template-columns: repeat(3, 1fr); }
.trust-item { padding: 25px 28px; border-left: 1px solid var(--line); }
.trust-item:first-child { border-left: 0; }
.trust-item b { display: block; margin-bottom: 4px; font: 700 11px/1.4 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; }
.trust-item span { color: var(--ink-soft); }

.section { padding-block: clamp(72px, 9vw, 120px); border-bottom: 1px solid var(--line); }
.section-head { max-width: 800px; margin-bottom: clamp(38px, 6vw, 66px); }
.section h2 { max-width: 15ch; margin: 16px 0 18px; font: 500 clamp(40px, 5vw, 66px)/1 var(--serif); letter-spacing: -0.018em; }
.section-intro { max-width: 700px; margin: 0; color: var(--ink-soft); font-size: 22px; }
.content-grid { display: grid; grid-template-columns: minmax(0, 0.88fr) minmax(360px, 1.12fr); gap: clamp(48px, 8vw, 100px); align-items: start; }
.prose { max-width: 720px; }
.prose h2 { max-width: 18ch; }
.prose h3 { margin: 42px 0 10px; font: 600 30px/1.1 var(--serif); }
.prose p { color: var(--ink-soft); }
.prose strong { color: var(--ink); }
.prose ul { padding-left: 1.1em; color: var(--ink-soft); }
.prose li + li { margin-top: 9px; }
.ink-note { padding: 24px 26px; border-left: 4px solid var(--seal); background: rgba(178, 58, 40, 0.08); color: #6c392f; }
.ink-note strong { color: #54281f; }

.step-list { border-top: 2px solid var(--ink); }
.step-row { display: grid; grid-template-columns: 62px minmax(180px, 0.7fr) 1.3fr; gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--line); align-items: start; }
.step-number { color: var(--teal-dark); font: 700 12px/1 var(--mono); }
.step-row h3 { margin: 0; font: 600 27px/1.1 var(--serif); }
.step-row p { margin: 0; color: var(--ink-soft); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { min-height: 250px; padding: 28px; border: 1px solid var(--line); background: rgba(250, 247, 240, 0.5); }
.card .number { color: var(--teal-dark); font: 700 11px/1 var(--mono); letter-spacing: 0.1em; }
.card h3 { margin: 28px 0 12px; font: 600 29px/1.05 var(--serif); }
.card p { margin: 0; color: var(--ink-soft); }
.card.dark { background: var(--ink); color: white; }
.card.dark p { color: #d8d2c6; }

.fact-table { width: 100%; border-collapse: collapse; border-top: 2px solid var(--ink); }
.fact-table th, .fact-table td { padding: 20px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.fact-table th { width: 34%; padding-left: 0; font: 700 11px/1.5 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; }
.fact-table td { padding-right: 0; color: var(--ink-soft); }

.flow { display: grid; grid-template-columns: repeat(5, 1fr); border-block: 2px solid var(--ink); }
.flow-item { position: relative; padding: 30px 24px; border-left: 1px solid var(--line); }
.flow-item:first-child { border-left: 0; }
.flow-item:not(:last-child)::after { content: "→"; position: absolute; right: -11px; top: 28px; z-index: 2; color: var(--teal-dark); font: 700 20px/1 var(--mono); }
.flow-item b { display: block; margin-bottom: 9px; font: 700 11px/1.5 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; }
.flow-item span { color: var(--ink-soft); font-size: 17px; }

.faq { max-width: 900px; border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 23px 40px 23px 0; font: 600 24px/1.25 var(--serif); }
.faq p { max-width: 720px; margin: -5px 0 24px; color: var(--ink-soft); }

.related { padding-block: 64px 84px; }
.related h2 { margin: 0 0 24px; font: 600 32px/1.1 var(--serif); }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); }
.related a { min-height: 140px; padding: 24px; border-left: 1px solid var(--line); text-decoration: none; }
.related a:first-child { border-left: 0; }
.related a:hover { background: var(--paper-light); }
.related b { display: block; margin-bottom: 8px; font: 600 25px/1.1 var(--serif); }
.related span { color: var(--ink-soft); font-size: 17px; }

.cta-band { background: var(--ink); color: white; }
.cta-band .shell { display: grid; grid-template-columns: 1fr auto; gap: 42px; align-items: center; padding-block: 62px; }
.cta-band h2 { max-width: 16ch; margin: 0 0 8px; font: 500 clamp(38px, 5vw, 60px)/1 var(--serif); }
.cta-band p { margin: 0; color: #d8d2c6; }
.cta-band .button { border-color: var(--paper-light); background: var(--paper-light); color: var(--ink); }
.cta-band .button:hover { background: var(--teal); border-color: var(--teal); color: white; }

.site-footer { border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.2fr repeat(3, 0.8fr); gap: 42px; padding-block: 58px 42px; }
.footer-brand p { max-width: 25ch; color: var(--ink-soft); }
.footer-col h2 { margin: 0 0 16px; font: 700 11px/1.4 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; }
.footer-col a { display: block; margin: 7px 0; color: var(--ink-soft); text-decoration: none; }
.footer-col a:hover { color: var(--ink); text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; padding-block: 20px 32px; border-top: 1px solid var(--line); color: var(--ink-faint); font: 400 10px/1.5 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }

.not-found { min-height: calc(100vh - 180px); display: grid; place-items: center; text-align: center; }
.not-found h1 { margin: 0; font: 500 clamp(90px, 18vw, 210px)/0.8 var(--serif); color: var(--teal-dark); }
.not-found h2 { margin: 30px 0 8px; font: 500 clamp(34px, 5vw, 58px)/1 var(--serif); }
.not-found p { color: var(--ink-soft); }

@media (max-width: 900px) {
  .site-nav a:not(.download-link) { display: none; }
  .hero-grid, .content-grid { grid-template-columns: 1fr; }
  .page-hero h1 { max-width: 14ch; }
  .proof-frame { max-width: 760px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .flow { grid-template-columns: 1fr; }
  .flow-item { border-left: 0; border-top: 1px solid var(--line); }
  .flow-item:first-child { border-top: 0; }
  .flow-item:not(:last-child)::after { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 18px; }
  .shell { width: min(100% - 30px, 1160px); }
  .site-header .shell { min-height: 72px; }
  .brand { font-size: 23px; }
  .page-hero { padding-block: 62px 72px; }
  .page-hero h1 { font-size: clamp(46px, 14vw, 64px); }
  .trust-strip .shell, .cards, .related-grid { grid-template-columns: 1fr; }
  .trust-item { border-left: 0; border-top: 1px solid var(--line); padding-inline: 0; }
  .trust-item:first-child { border-top: 0; }
  .step-row { grid-template-columns: 42px 1fr; }
  .step-row p { grid-column: 2; }
  .fact-table th, .fact-table td { display: block; width: auto; padding: 12px 0; }
  .fact-table th { border-bottom: 0; padding-top: 20px; }
  .related a { border-left: 0; border-top: 1px solid var(--line); }
  .related a:first-child { border-top: 0; }
  .cta-band .shell { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
