:root {
  color-scheme: light;
  --cream: #fff8ee;
  --cream-deep: #f5eadb;
  --paper: #fffdfa;
  --paper-warm: #fff4e3;
  --ink: #28211d;
  --soft-ink: #645a51;
  --muted: #85776a;
  --line: rgba(104, 82, 59, 0.16);
  --rose: #c76558;
  --rose-dark: #9e463d;
  --sage: #6f8f76;
  --gold: #d8a14d;
  --blue: #cfe0ea;
  --surface: rgba(255, 253, 250, 0.82);
  --surface-strong: #fffaf3;
  --shadow: 0 22px 58px rgba(85, 62, 38, 0.14);
  --max: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--cream);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 248, 238, 0) 420px),
    var(--cream);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  line-height: 1.56;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--rose-dark);
}

.site-header,
.site-footer,
main {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 0 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 800;
}

.brand-mark {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 11px;
  color: #fffaf3;
  background: var(--rose-dark);
  box-shadow: 0 12px 26px rgba(158, 70, 61, 0.2);
}

.nav-links,
.site-footer nav {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--soft-ink);
  font-size: 14px;
  font-weight: 700;
}

.nav-links a {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.46);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 410px);
  align-items: center;
  gap: 42px;
  min-height: 620px;
  padding: 28px 0 44px;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  margin: 0 0 14px;
  padding: 8px 13px;
  border: 1px solid rgba(199, 101, 88, 0.22);
  border-radius: 999px;
  color: var(--rose-dark);
  background: rgba(255, 245, 236, 0.78);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 650px;
  margin-bottom: 14px;
  font-size: clamp(42px, 6vw, 70px);
  line-height: 1.02;
  letter-spacing: 0;
}

.tagline {
  max-width: 560px;
  margin-bottom: 14px;
  color: var(--ink);
  font-size: clamp(21px, 2.6vw, 28px);
  font-weight: 750;
  line-height: 1.28;
  letter-spacing: 0;
}

.lede {
  max-width: 610px;
  margin-bottom: 24px;
  color: var(--soft-ink);
  font-size: 18px;
}

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

.app-store-button,
.support-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 800;
}

.app-store-button {
  color: #fffaf3;
  background: #211d1a;
  box-shadow: 0 16px 32px rgba(42, 35, 29, 0.18);
}

.support-pill {
  color: var(--rose-dark);
  border: 1px solid rgba(199, 101, 88, 0.18);
  background: rgba(255, 230, 219, 0.68);
}

.card-visual {
  display: grid;
  min-height: 520px;
  place-items: center;
}

.card-stack {
  position: relative;
  width: min(100%, 360px);
  min-height: 390px;
}

.postcard {
  position: absolute;
  border: 1px solid rgba(104, 82, 59, 0.16);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.back-card {
  inset: 32px 8px 20px 34px;
  background: var(--blue);
  transform: rotate(8deg);
}

.middle-card {
  inset: 18px 24px 28px 16px;
  background: var(--paper-warm);
  transform: rotate(-7deg);
}

.front-card {
  inset: 0 18px 34px 0;
  overflow: hidden;
  padding: 32px;
  background:
    linear-gradient(135deg, rgba(216, 161, 77, 0.12), rgba(199, 101, 88, 0.08)),
    var(--paper);
}

.front-card::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(104, 82, 59, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(104, 82, 59, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.44;
}

.stamp {
  position: absolute;
  top: 28px;
  right: 28px;
  width: 62px;
  height: 74px;
  border: 2px dashed rgba(158, 70, 61, 0.38);
  border-radius: 14px;
  background:
    radial-gradient(circle at 50% 38%, rgba(111, 143, 118, 0.32) 0 22px, transparent 23px),
    rgba(255, 244, 227, 0.74);
}

.script-line {
  position: relative;
  z-index: 1;
  max-width: 210px;
  margin: 122px 0 64px;
  color: var(--rose-dark);
  font-family: "Snell Roundhand", "Bradley Hand", "Segoe Print", cursive;
  font-size: 42px;
  line-height: 1.02;
}

.address-lines {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  width: min(100%, 230px);
}

.address-lines span {
  display: block;
  height: 9px;
  border-radius: 999px;
  background: rgba(100, 90, 81, 0.28);
}

.address-lines span:nth-child(2) {
  width: 82%;
}

.address-lines span:nth-child(3) {
  width: 68%;
}

.seal {
  position: absolute;
  right: 30px;
  bottom: 30px;
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  border-radius: 50%;
  color: #fffaf3;
  background: var(--sage);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.feature-band {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  padding: 6px 0 42px;
}

.feature-card,
.callout-card,
.legal-card {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 12px 36px rgba(89, 65, 48, 0.08);
  backdrop-filter: blur(14px);
}

.feature-card {
  min-height: 178px;
  padding: 18px;
  border-radius: 24px;
}

.feature-icon {
  display: block;
  margin-bottom: 24px;
  color: var(--rose-dark);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.feature-card h2 {
  margin-bottom: 8px;
  font-size: 19px;
  line-height: 1.12;
}

.feature-card p,
.callout-card p,
.legal-card p,
.legal-hero p,
.legal-card li {
  color: var(--soft-ink);
}

.feature-card p,
.callout-card p {
  margin-bottom: 0;
}

.callout-section {
  padding: 0 0 58px;
}

.callout-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.52fr);
  gap: 24px;
  align-items: end;
  padding: 28px;
  border-radius: 30px;
  background: var(--surface-strong);
}

.callout-card .eyebrow {
  margin-bottom: 12px;
}

.callout-card h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.06;
  letter-spacing: 0;
}

.callout-card > p {
  font-size: 18px;
}

.legal-page {
  max-width: 760px;
}

.legal-hero {
  padding: 48px 0 18px;
}

.legal-hero h1 {
  margin-bottom: 14px;
  font-size: clamp(36px, 7vw, 58px);
  line-height: 1.02;
}

.legal-hero p {
  max-width: 650px;
  font-size: 18px;
}

.legal-card {
  padding: clamp(22px, 4vw, 34px);
  margin-bottom: 58px;
  border-radius: 30px;
}

.legal-section {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.legal-section:first-child {
  padding-top: 0;
  border-top: 0;
}

.legal-section:last-child {
  padding-bottom: 0;
}

.legal-card h2 {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
}

.legal-card p {
  margin-bottom: 12px;
  font-size: 16px;
}

.legal-card p:last-child,
.legal-card ul:last-child {
  margin-bottom: 0;
}

.legal-card ul {
  margin: 0 0 12px;
  padding-left: 1.2rem;
}

.legal-card li {
  margin-bottom: 8px;
}

.legal-card a {
  color: var(--rose-dark);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.22em;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 0 30px;
  border-top: 1px solid var(--line);
  color: var(--soft-ink);
  font-size: 14px;
}

.site-footer p {
  margin-bottom: 0;
}

.site-footer a {
  padding: 4px 0;
  border-radius: 999px;
}

@media (max-width: 980px) {
  .feature-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .site-header,
  .site-footer,
  main {
    width: min(100% - 28px, var(--max));
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 24px;
    min-height: auto;
    padding-top: 18px;
  }

  .card-visual {
    min-height: 440px;
  }

  .callout-card {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .brand {
    align-items: flex-start;
  }

  .nav-links,
  .site-footer nav {
    flex-wrap: wrap;
    gap: 8px 10px;
  }

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

  .app-store-button,
  .support-pill {
    width: 100%;
  }

  .feature-band {
    grid-template-columns: 1fr;
  }

  .card-stack {
    width: min(100%, 326px);
    min-height: 360px;
  }

  .front-card {
    padding: 26px;
  }

  .script-line {
    margin-top: 118px;
    font-size: 36px;
  }

  .callout-card,
  .legal-card {
    border-radius: 24px;
  }
}
