:root {
  color-scheme: light;
  --paper: #fff5dd;
  --paper-strong: #f9e8bd;
  --ink: #151512;
  --muted: #716c5d;
  --border: #6c604a;
  --green: #5f7f58;
  --green-soft: #cfd9b8;
  --gold: #a36610;
  --red: #c85f56;
  --white: #fffaf0;
  --shadow: rgba(53, 45, 28, 0.18);
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(207, 217, 184, 0.65), transparent 28rem),
    linear-gradient(180deg, var(--paper) 0%, #fff9ea 46%, var(--paper) 100%);
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  line-height: 1.5;
  word-break: keep-all;
}

a {
  color: inherit;
}

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

.site-header,
.site-footer {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-header {
  min-height: 84px;
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: 0.02em;
  min-width: max-content;
}

.brand-mark img {
  border-radius: 10px;
  box-shadow: 0 8px 24px var(--shadow);
}

.nav-links,
.site-footer nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.nav-links a,
.site-footer a {
  text-decoration: none;
}

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

.hero {
  min-height: calc(100vh - 84px);
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(108, 96, 74, 0.25);
  background:
    linear-gradient(90deg, rgba(21, 21, 18, 0.82), rgba(21, 21, 18, 0.36), rgba(255, 245, 221, 0.2)),
    var(--paper-strong);
}

.hero-media {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center end;
  pointer-events: none;
}

.hero-media img {
  width: min(720px, 72vw);
  opacity: 0.78;
  filter: saturate(0.95) contrast(1.02);
  transform: translateX(5%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 48px));
  justify-self: stretch;
  color: var(--white);
  padding: 92px 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green-soft);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.hero h1 {
  max-width: 570px;
  margin: 0;
  font-size: clamp(2.6rem, 5vw, 4.9rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 560px;
  margin: 28px 0 0;
  color: rgba(255, 250, 240, 0.9);
  font-size: clamp(1rem, 1.6vw, 1.28rem);
  font-weight: 700;
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.store-badge {
  min-width: 222px;
  min-height: 64px;
  display: inline-flex;
  align-items: center;
  gap: 13px;
  padding: 12px 18px;
  border: 1px solid rgba(255, 250, 240, 0.72);
  background: rgba(255, 250, 240, 0.12);
  color: var(--white);
  text-decoration: none;
  font-weight: 900;
}

.store-badge.secondary {
  background: rgba(207, 217, 184, 0.16);
}

.store-badge small {
  display: block;
  color: rgba(255, 250, 240, 0.72);
  font-size: 0.72rem;
  font-weight: 800;
}

.store-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 250, 240, 0.72);
  font-weight: 900;
}

.proof-strip {
  width: min(var(--max), calc(100% - 32px));
  margin: 34px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
  background: rgba(255, 250, 240, 0.72);
}

.proof-strip div {
  padding: 24px;
  border-right: 1px solid rgba(108, 96, 74, 0.35);
}

.proof-strip div:last-child {
  border-right: 0;
}

.proof-strip strong {
  display: block;
  color: var(--green);
  font-size: 2rem;
  line-height: 1;
}

.proof-strip span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 800;
}

.section {
  width: min(var(--max), calc(100% - 32px));
  margin: 96px auto 0;
}

.two-column {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: start;
}

.section h2,
.legal-page h1 {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 4.2rem);
  line-height: 1;
  letter-spacing: 0;
}

.section-copy {
  color: var(--muted);
  font-size: 1.08rem;
  font-weight: 750;
}

.section-copy p:first-child {
  margin-top: 0;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.steps article,
.screen-card,
.callout,
.source-note,
.legal-page section {
  border: 1px solid var(--border);
  background: rgba(255, 250, 240, 0.72);
}

.steps article {
  padding: 26px;
}

.steps span {
  color: var(--gold);
  font-weight: 950;
}

.steps h3 {
  margin: 20px 0 10px;
  font-size: 1.35rem;
}

.steps p,
.screen-card span,
.feature-list p,
.source-note p,
.legal-page p,
.legal-page li {
  color: var(--muted);
  font-weight: 750;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 30px;
}

.screen-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
}

.screen-card {
  overflow: hidden;
}

.screen-card.featured {
  grid-row: span 2;
}

.screen-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
  border-bottom: 1px solid rgba(108, 96, 74, 0.45);
  background: var(--paper);
}

.screen-card figcaption {
  display: grid;
  gap: 7px;
  padding: 20px;
}

.screen-card strong {
  font-size: 1.1rem;
}

.callout {
  padding: clamp(28px, 5vw, 54px);
}

.callout h2 {
  max-width: 920px;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.feature-list p {
  margin: 0;
  padding: 18px;
  border: 1px solid rgba(108, 96, 74, 0.35);
  background: rgba(207, 217, 184, 0.22);
}

.source-note {
  padding: 32px;
}

.source-note h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.source-note p {
  max-width: 850px;
  margin-bottom: 0;
}

.source-note p + p {
  margin-top: 12px;
}

.source-note a {
  color: var(--green);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.site-footer {
  margin-top: 96px;
  padding: 32px 0 44px;
  border-top: 1px solid rgba(108, 96, 74, 0.32);
}

.site-footer div {
  display: grid;
  gap: 4px;
}

.site-footer span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.legal-page {
  width: min(820px, calc(100% - 32px));
  margin: 72px auto 0;
}

.legal-page .eyebrow {
  color: var(--green);
}

.updated {
  margin: 18px 0 42px;
}

.legal-page section {
  padding: 26px;
  margin-top: 18px;
}

.legal-page h2 {
  margin: 0 0 12px;
  font-size: 1.45rem;
}

.legal-page p {
  margin: 0;
}

.legal-page ul {
  margin: 0;
  padding-left: 22px;
}

.legal-page a {
  color: var(--green);
  font-weight: 900;
}

@media (max-width: 900px) {
  .site-header {
    position: static;
    align-items: flex-start;
    padding-top: 16px;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .hero {
    min-height: 760px;
  }

  .hero-media {
    place-items: end center;
  }

  .hero-media img {
    width: min(620px, 92vw);
    transform: translateY(12%);
    opacity: 0.42;
  }

  .hero-content {
    align-self: start;
    padding: 60px 0;
  }

  .proof-strip,
  .steps,
  .feature-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .two-column,
  .screen-grid {
    grid-template-columns: 1fr;
  }

  .screen-card.featured {
    grid-row: auto;
  }
}

@media (max-width: 620px) {
  .site-header,
  .site-footer {
    display: grid;
  }

  .nav-links,
  .site-footer nav {
    justify-content: flex-start;
  }

  .brand-mark {
    min-width: 0;
  }

  .hero {
    min-height: 720px;
  }

  .hero h1 {
    font-size: clamp(2.6rem, 15vw, 4.2rem);
  }

  .store-badge {
    width: 100%;
  }

  .proof-strip,
  .steps,
  .feature-list {
    grid-template-columns: 1fr;
  }

  .proof-strip div {
    border-right: 0;
    border-bottom: 1px solid rgba(108, 96, 74, 0.35);
  }

  .proof-strip div:last-child {
    border-bottom: 0;
  }

  .section {
    margin-top: 68px;
  }
}
