/* Shared chrome for the legacy marketing and legal pages.
   Matches the current homepage: script wordmark, sticky header, ember CTA,
   #0D0B0A / #171412 surfaces, and DM Serif Display + Inter.
   Those families are self-hosted here instead of loaded from a third-party font host.
   Licenses: assets/fonts/Inter-LICENSE.txt and assets/fonts/DMSerifDisplay-OFL.txt. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "DM Serif Display";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/dm-serif-display-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "DM Serif Display";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/dm-serif-display-latin-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #0D0B0A;
  --ivory: #F6F1E9;
  --muted: #A9A29A;
  --ember: #F76B3C;
  --line: #2A2522;
  --panel: #171412;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ivory);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}
img { max-width: 100%; }
a { color: inherit; }
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.wrap { width: min(1120px, calc(100% - 80px)); margin: 0 auto; }

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(13, 11, 10, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.nav-inner {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; line-height: 1; text-decoration: none; }
.brand-logo { display: block; width: 164px; max-width: 46vw; height: auto; }
.nav-actions { display: flex; align-items: center; gap: 22px; min-width: 0; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a,
.account-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: rgba(246, 241, 233, 0.88);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}
.nav-links a:hover,
.account-link:hover,
.nav-links a:focus-visible,
.account-link:focus-visible { color: var(--ivory); }
.nav-links .cta {
  width: 122px;
  min-height: 48px;
  justify-content: center;
  border-radius: 10px;
  background: var(--ember);
  color: #fff;
  font-weight: 800;
}
.nav-links .cta:hover,
.nav-links .cta:focus-visible { background: #ff7948; color: #fff; }
.nav-links a:focus-visible,
.account-link:focus-visible,
.button:focus-visible,
.app-store-link:focus-visible {
  outline: 2px solid rgba(247, 107, 60, 0.72);
  outline-offset: 3px;
}

footer {
  padding: 38px 0;
  background: rgba(15, 11, 9, 0.62);
  border-top: 1px solid var(--line);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
footer .brand-logo { width: 132px; }
.footer-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  color: rgba(234, 219, 200, 0.68);
  font-size: 14px;
  font-weight: 700;
}
.footer-links a { color: inherit; text-decoration: none; }
.footer-links a:hover,
.footer-links a:focus-visible { color: var(--ivory); }

.page-hero { padding: 64px 0 28px; }
.eyebrow {
  margin: 0;
  color: var(--ember);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.page-hero h1,
.story h2,
.note h2,
.closing h2,
.contact-hero h1,
.steps h2,
.page-legal h1,
.page-legal h2 {
  font-family: "DM Serif Display", Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.018em;
  color: var(--ivory);
}
.page-hero h1 {
  max-width: 760px;
  margin: 16px 0 0;
  font-size: clamp(52px, 6vw, 78px);
  line-height: 0.98;
}
.accent { color: var(--ember); }
.lead, .story p, .note p, .closing p, .contact-hero p {
  color: var(--muted);
}
.lead {
  max-width: 640px;
  margin: 22px 0 0;
  font-size: 20px;
  line-height: 1.45;
}
.store-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 28px; }
.app-store-link { display: inline-flex; align-items: center; min-height: 44px; }
.app-store-link:hover { filter: brightness(1.08); }
.app-store-badge { display: block; width: 180px; height: auto; }
.text-link {
  color: var(--ember);
  font-weight: 700;
  text-decoration: none;
}
.text-link:hover { text-decoration: underline; }

.guide {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 12px 0 36px;
}
.guide article {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  padding: 22px;
}
.guide strong { display: block; font-size: 22px; font-weight: 700; }
.guide span { display: block; margin-top: 8px; color: var(--muted); line-height: 1.45; }

.story, .note, .closing { padding: 8px 0 48px; }
.story h2, .note h2, .closing h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.05;
}
.story p, .note p, .closing p {
  max-width: 680px;
  margin: 14px 0 0;
  font-size: 18px;
  line-height: 1.55;
}
.note, .closing {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  padding: 28px 32px;
  margin-bottom: 48px;
}
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ivory);
  text-decoration: none;
  font-weight: 750;
}
.button.primary { border-color: transparent; background: var(--ember); color: #fff; }
.button.primary:hover { background: #ff7948; }
.button:hover { border-color: rgba(247, 107, 60, 0.45); }

.steps { padding: 8px 0 24px; }
.step {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  gap: 48px;
  align-items: center;
  padding: 36px 0;
  border-top: 1px solid var(--line);
}
.step.reverse .step-copy { order: 2; }
.step-number {
  margin: 0 0 8px;
  color: var(--ember);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.step h2 { margin: 0; font-size: clamp(32px, 4vw, 44px); line-height: 1; }
.step p { margin: 12px 0 0; max-width: 560px; color: var(--muted); font-size: 18px; line-height: 1.5; }
.step img {
  display: block;
  width: min(280px, 100%);
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
}

.contact-hero { padding: 64px 0 8px; text-align: left; }
.contact-hero h1 { margin: 0; font-size: clamp(48px, 6vw, 72px); line-height: 0.98; }
.contact-hero p { margin: 14px 0 0; font-size: 20px; }
.contact-list {
  display: grid;
  gap: 16px;
  max-width: 760px;
  padding: 28px 0 72px;
}
.contact-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  padding: 22px 24px;
}
.contact-card h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 8px;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  font-weight: 750;
}
.contact-card h2 svg { width: 22px; height: 22px; flex: 0 0 auto; }
.contact-card p { margin: 0 0 10px; color: var(--muted); }
.contact-card a { color: var(--ember); font-weight: 700; text-decoration: none; }
.contact-card a:hover { text-decoration: underline; }

.page-legal .hero { padding: 56px 0 8px; }
.page-legal .hero .eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border: 1px solid rgba(247, 107, 60, 0.35);
  border-radius: 999px;
  padding: 0 12px;
  letter-spacing: 0.12em;
}
.page-legal h1 {
  max-width: 860px;
  margin: 16px 0 0;
  font-size: clamp(46px, 6vw, 72px);
  line-height: 0.98;
}
.page-legal .hero-copy {
  max-width: 760px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}
.page-legal .updated { margin-top: 16px; color: rgba(169, 162, 154, 0.85); font-size: 14px; font-weight: 650; }
.legal-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 22px;
  align-items: start;
  padding: 28px 0 72px;
}
.legal-card,
.side-card,
.page-legal .content {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
}
.legal-card { padding: clamp(22px, 3vw, 40px); }
.page-legal .legal-card h2,
.page-legal .content h2 {
  margin: 32px 0 10px;
  font-size: 28px;
  line-height: 1.15;
}
.page-legal .legal-card h2:first-child,
.page-legal .content h2:first-of-type { margin-top: 8px; }
.legal-card p,
.legal-card li,
.page-legal .content p,
.page-legal .content li { color: var(--muted); }
.legal-card p,
.page-legal .content p { margin: 0 0 14px; }
.legal-card ul,
.page-legal .content ul { margin: 0 0 16px 1.2em; padding: 0; }
.legal-card li,
.page-legal .content li { margin: 0 0 8px; }
.legal-card a,
.side-card a,
.page-legal .content a { color: var(--ember); font-weight: 700; }
.legal-card a:hover,
.side-card a:hover,
.page-legal .content a:hover { text-decoration: underline; }
.side-card { position: sticky; top: 108px; padding: 22px; }
.side-card h2 { margin: 0 0 8px; font-size: 26px; }
.side-card p,
.side-list { color: var(--muted); font-size: 14px; }
.side-list { display: grid; gap: 12px; margin-top: 16px; }
.side-list div { border-top: 1px solid var(--line); padding-top: 12px; }
.side-list strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ivory);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.side-card a { text-decoration: none; }
.page-legal .content {
  width: min(760px, 100%);
  margin: 28px auto 72px;
  padding: clamp(22px, 4vw, 40px);
}
.page-legal .content h1 { margin-top: 0; }

@media (max-width: 1100px) {
  .wrap, .nav .wrap, footer .wrap { width: min(100% - 48px, 1100px); }
  .step, .step.reverse { grid-template-columns: 1fr; }
  .step.reverse .step-copy { order: 0; }
  .legal-shell { grid-template-columns: 1fr; }
  .side-card { position: static; }
}
@media (max-width: 800px) {
  .guide { grid-template-columns: 1fr; }
  .nav-links a:not(.cta) { display: none; }
  .nav-links { gap: 12px; }
  .page-hero h1, .page-legal h1, .contact-hero h1 { font-size: clamp(40px, 12vw, 52px); }
  .note, .closing { padding: 22px; }
}
@media (max-width: 640px) {
  .wrap, .nav .wrap, footer .wrap { width: min(100% - 32px, 640px); }
  .nav-inner { min-height: 72px; }
  .brand-logo { width: 132px; }
  footer .brand-logo { width: 120px; }
  .nav-links .cta { width: auto; min-height: 40px; padding: 0 14px; font-size: 13px; }
  .account-link { font-size: 14px; }
  .footer-inner { align-items: flex-start; }
  .footer-links { gap: 14px 18px; }
  .lead, .story p, .note p, .step p { font-size: 17px; }
}
