:root {
  color-scheme: light;
  --background: #fbf5ec;
  --surface: #fffaf2;
  --surface-soft: #f3e6d6;
  --text: #2b2a25;
  --muted: #766f63;
  --primary: #8f9a80;
  --primary-dark: #707b63;
  --secondary: #d08a6c;
  --accent: #c9785d;
  --mustard: #e9b98e;
  --border: #e6d9c8;
  --shadow: 0 24px 60px rgba(143, 154, 128, 0.2);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(201, 120, 93, 0.18), transparent 32rem),
    radial-gradient(circle at top right, rgba(233, 185, 142, 0.22), transparent 28rem),
    var(--background);
  color: var(--text);
  font-family: "Avenir Next", Avenir, "Trebuchet MS", ui-rounded, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: var(--primary);
}

img,
svg {
  max-width: 100%;
}

img {
  display: block;
}

.site-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1120px;
  padding: 24px;
}

.brand {
  align-items: center;
  color: var(--text);
  display: inline-flex;
  font-weight: 800;
  gap: 12px;
  letter-spacing: 0;
  text-decoration: none;
}

.brand img {
  border-radius: 18px;
  height: 48px;
  width: 48px;
}

.nav {
  align-items: center;
  display: flex;
  gap: 18px;
}

.nav a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
}

.nav a:hover {
  color: var(--primary);
}

.page {
  margin: 0 auto;
  max-width: 1120px;
  padding: 32px 24px 72px;
}

.hero {
  align-items: center;
  display: grid;
  gap: 48px;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  padding: 56px 0 72px;
}

.eyebrow {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  margin: 0 0 14px;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  color: var(--text);
  line-height: 1.08;
  margin: 0;
}

h1 {
  font-size: clamp(3rem, 8vw, 6.25rem);
  letter-spacing: -0.018em;
}

h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: -0.012em;
}

h3 {
  font-size: 1.25rem;
  letter-spacing: 0;
}

.lede {
  color: var(--muted);
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  margin: 24px 0 0;
  max-width: 660px;
}

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

.button {
  align-items: center;
  background: var(--primary);
  border: 2px solid var(--primary);
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  font-weight: 900;
  gap: 10px;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  text-decoration: none;
}

.button:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.62);
  color: var(--primary);
}

.hero-card,
.card,
.legal-card {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 28px;
}

.photo-hero-card {
  overflow: hidden;
  padding: 0;
  position: relative;
}

.photo-hero-card > img {
  aspect-ratio: 4 / 5;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.photo-hero-card::after {
  background: linear-gradient(180deg, transparent 30%, rgba(43, 42, 37, 0.64));
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.hero-photo-note {
  align-items: center;
  background: rgba(255, 250, 242, 0.9);
  border: 1px solid rgba(255, 250, 242, 0.72);
  border-radius: 22px;
  bottom: 20px;
  box-shadow: 0 18px 42px rgba(43, 42, 37, 0.18);
  display: flex;
  gap: 14px;
  left: 20px;
  padding: 14px;
  position: absolute;
  right: 20px;
  z-index: 1;
}

.hero-photo-note strong,
.hero-photo-note span {
  display: block;
}

.hero-photo-note strong {
  color: var(--text);
  line-height: 1.25;
}

.hero-photo-note span {
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 2px;
}

.phone-preview {
  background: linear-gradient(160deg, var(--primary), #707b63);
  border-radius: 36px;
  color: #ffffff;
  min-height: 520px;
  overflow: hidden;
  padding: 26px;
  position: relative;
}

.phone-preview::after {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  content: "";
  height: 260px;
  position: absolute;
  right: -110px;
  top: -80px;
  width: 260px;
}

.phone-top {
  align-items: center;
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.mini-logo {
  border-radius: 14px;
  height: 44px;
  object-fit: cover;
  width: 44px;
}

.pill {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 8px 12px;
}

.phone-preview h2 {
  color: #ffffff;
  font-size: 2.6rem;
  margin-top: 54px;
  position: relative;
  z-index: 1;
}

.event-stack {
  display: grid;
  gap: 14px;
  margin-top: 32px;
  position: relative;
  z-index: 1;
}

.event-card {
  background: rgba(255, 255, 255, 0.94);
  border-radius: 22px;
  color: var(--text);
  padding: 18px;
}

.event-card strong {
  display: block;
  font-size: 1.05rem;
}

.event-card span {
  color: var(--muted);
  display: block;
  font-size: 0.92rem;
  margin-top: 4px;
}

.section {
  padding: 72px 0 0;
}

.section-header {
  max-width: 760px;
}

.section-header p {
  color: var(--muted);
  font-size: 1.12rem;
  margin: 18px 0 0;
}

.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 32px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  padding: 28px;
}

.icon-bubble {
  align-items: center;
  background: var(--surface-soft);
  border-radius: 18px;
  color: var(--primary);
  display: inline-flex;
  font-size: 1.5rem;
  font-weight: 900;
  height: 52px;
  justify-content: center;
  margin-bottom: 18px;
  width: 52px;
}

.card p {
  color: var(--muted);
  margin: 12px 0 0;
}

.source-note {
  color: var(--muted);
  font-size: 0.96rem;
  margin: 18px 0 0;
}

.source-note a,
.text-link {
  color: var(--primary-dark);
  font-weight: 900;
}

.quote-band {
  background: var(--primary);
  border-radius: 32px;
  color: #ffffff;
  margin-top: 32px;
  padding: 36px;
}

.quote-band p {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 4vw, 3rem);
  line-height: 1.18;
  margin: 0;
}

.photo-strip {
  display: grid;
  gap: 18px;
  grid-template-columns: 1.1fr 0.85fr 1.05fr;
}

.photo-strip figure,
.moment-grid article {
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow);
  margin: 0;
  overflow: hidden;
  position: relative;
}

.photo-strip img {
  aspect-ratio: 4 / 3;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.photo-strip figcaption,
.moment-grid span {
  background: rgba(255, 250, 242, 0.88);
  border-radius: 999px;
  bottom: 16px;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 900;
  left: 16px;
  padding: 8px 12px;
  position: absolute;
}

.moment-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 32px;
}

.moment-grid img {
  aspect-ratio: 1 / 1;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.research-panel {
  align-items: center;
  background: rgba(255, 250, 242, 0.82);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr auto;
  margin-top: 32px;
  padding: 28px;
}

.research-panel h3 {
  font-size: clamp(1.5rem, 3vw, 2.15rem);
}

.research-panel p:not(.eyebrow) {
  color: var(--muted);
  margin: 12px 0 0;
}

.text-link {
  border: 2px solid var(--border);
  border-radius: 999px;
  padding: 12px 16px;
  text-decoration: none;
  white-space: nowrap;
}

.text-link:hover {
  border-color: var(--primary);
}

.download-panel {
  align-items: center;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 32px;
  color: #ffffff;
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr auto;
  margin-top: 32px;
  padding: 36px;
}

.download-panel h2,
.download-panel p {
  color: #ffffff;
}

.download-panel p {
  margin: 14px 0 0;
  opacity: 0.86;
}

.store-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 220px;
}

.store-button {
  background: #111111;
  border-radius: 14px;
  color: #ffffff;
  font-weight: 900;
  padding: 14px 18px;
  text-align: center;
  text-decoration: none;
}

.store-button.is-disabled {
  cursor: not-allowed;
  opacity: 0.74;
}

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

.legal-card {
  margin-top: 28px;
  padding: 36px;
}

.legal-card h2 {
  font-size: 1.55rem;
  letter-spacing: -0.006em;
  margin-top: 34px;
}

.legal-card h2:first-child {
  margin-top: 0;
}

.legal-card p,
.legal-card li {
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  margin: 0 auto;
  max-width: 1120px;
  padding: 28px 24px 44px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 10px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

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

  .nav {
    flex-wrap: wrap;
  }

  .hero,
  .download-panel {
    grid-template-columns: 1fr;
  }

  .photo-strip,
  .moment-grid,
  .research-panel {
    grid-template-columns: 1fr;
  }

  .text-link {
    justify-self: start;
  }

  .photo-hero-card > img {
    aspect-ratio: 16 / 11;
  }

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

  .phone-preview {
    min-height: 460px;
  }
}

@media (max-width: 520px) {
  .page {
    padding-top: 8px;
  }

  .hero {
    padding-top: 28px;
  }

  .actions,
  .store-links {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-card,
  .card,
  .legal-card,
  .download-panel,
  .quote-band {
    border-radius: 22px;
    padding: 24px;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --background: #1a1f1e;
    --surface: #252e2c;
    --surface-soft: #2c3533;
    --text: #f2e9dd;
    --muted: #b9ad9c;
    --primary: #5fa89e;
    --primary-dark: #4c8e85;
    --secondary: #4a7a6c;
    --border: #38443f;
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  }

  .hero-card,
  .card,
  .research-panel,
  .legal-card {
    background: rgba(37, 46, 44, 0.84);
  }

  .source-note a,
  .text-link {
    color: var(--primary);
  }

  .hero-photo-note,
  .photo-strip figcaption,
  .moment-grid span {
    background: rgba(37, 46, 44, 0.88);
  }

  .button.secondary {
    background: rgba(37, 46, 44, 0.62);
  }
}
