:root {
  color-scheme: light;
  --bg: #f6f3ec;
  --paper: #fffdf8;
  --ink: #172928;
  --muted: #5f716f;
  --line: #c7ded9;
  --teal: #246f73;
  --teal-dark: #164f52;
  --mint: #9fddd1;
  --gold: #b66f12;
  --gold-soft: #f6e5c2;
  --shadow: 0 18px 48px rgba(23, 41, 40, 0.12);
  font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}

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

a {
  color: inherit;
}

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

.site-nav {
  padding: 18px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.nav-links,
.footer nav {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.nav-links a,
.footer a {
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  border: 1px solid var(--teal-dark);
  background: var(--teal);
  color: #fffdf8 !important;
  padding: 0 18px;
  font-weight: 800;
  text-decoration: none;
}

.button.secondary {
  background: transparent;
  color: var(--teal-dark) !important;
}

.hero,
.section,
.legal-main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  min-height: calc(100svh - 74px);
  display: grid;
  align-content: center;
  gap: 24px;
  padding: 28px 0 42px;
}

.hero-copy {
  max-width: 820px;
}

.eyebrow,
.kicker {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: "Alegreya", Georgia, serif;
  line-height: 0.98;
  margin: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(3.4rem, 12vw, 7.6rem);
}

h2 {
  font-size: clamp(2.3rem, 6vw, 4.5rem);
}

h3 {
  font-size: 1.55rem;
}

p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

.hero-lead {
  max-width: 650px;
  font-size: clamp(1.12rem, 2.6vw, 1.45rem);
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.trust-note {
  color: var(--muted);
  font-weight: 700;
}

.screenshot-strip {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(220px, 0.48fr);
  gap: 18px;
  align-items: end;
}

.screenshot-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.screenshot-card img {
  width: 100%;
  height: auto;
}

.screenshot-gallery {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 14px;
  align-items: start;
}

.gallery-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 10px 28px rgba(23, 41, 40, 0.07);
}

.gallery-card.tall {
  grid-row: span 2;
}

.gallery-card.wide {
  grid-column: span 2;
}

.gallery-card img {
  width: 100%;
  height: auto;
}

.gallery-card figcaption {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.35;
  padding: 12px 14px 14px;
}

.section {
  padding: 56px 0;
}

.section-head {
  max-width: 760px;
  margin-bottom: 24px;
}

.feature-grid,
.legal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.feature-card,
.legal-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 22px;
  box-shadow: 0 10px 28px rgba(23, 41, 40, 0.07);
}

.ladder {
  display: grid;
  gap: 12px;
}

.ladder-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 16px;
}

.string-lines {
  display: grid;
  gap: 7px;
}

.string-lines span {
  height: 4px;
  border-radius: 999px;
  background: #ccddd9;
}

.string-lines span.on {
  background: var(--teal);
}

.next-apps {
  padding-top: 36px;
}

.app-link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.app-link-card {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 14px;
  align-items: center;
  min-height: 132px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 18px;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(23, 41, 40, 0.07);
}

.app-link-card img {
  width: 58px;
  height: 58px;
  border-radius: 13px;
}

.app-link-card strong,
.app-link-card small {
  display: block;
}

.app-link-card strong {
  color: var(--ink);
  font-family: "Alegreya", Georgia, serif;
  font-size: 1.35rem;
  line-height: 1;
}

.app-link-card small {
  color: var(--muted);
  font-weight: 700;
  line-height: 1.35;
  margin-top: 6px;
}

.legal-main {
  padding: 42px 0 72px;
}

.legal-hero {
  max-width: 760px;
  margin-bottom: 28px;
}

.legal-card-wide {
  grid-column: span 2;
}

.legal-list {
  color: var(--muted);
  line-height: 1.55;
  padding-left: 18px;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 24px 0 34px;
  color: var(--muted);
  font-weight: 700;
}

@media (max-width: 780px) {
  .site-nav,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    gap: 12px;
  }

  .hero {
    min-height: auto;
  }

  .screenshot-strip,
  .screenshot-gallery,
  .app-link-grid,
  .feature-grid,
  .legal-grid {
    grid-template-columns: 1fr;
  }

  .gallery-card.tall,
  .gallery-card.wide {
    grid-column: auto;
    grid-row: auto;
  }

  .legal-card-wide {
    grid-column: auto;
  }

  .ladder-row {
    grid-template-columns: 1fr;
  }
}
