:root {
  --bg: #f7f5f1;
  --bg-deep: #efebe3;
  --text: rgba(0, 0, 0, 0.92);
  --muted: rgba(0, 0, 0, 0.55);
  --gold: #d4a84b;
  --gold-deep: #9e731f;
  --gold-soft: rgba(232, 213, 160, 0.55);
  --button: #111;
  --button-text: #fff;
  --max: 1120px;
  --font: ui-rounded, "SF Pro Rounded", "Hiragino Maru Gothic ProN", system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html,
body {
  margin: 0;
  min-height: 100%;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 520px at 18% 8%, rgba(232, 213, 160, 0.55), transparent 60%),
    radial-gradient(700px 480px at 88% 18%, rgba(212, 168, 75, 0.18), transparent 55%),
    linear-gradient(165deg, #faf8f4 0%, #f3f0ea 48%, #ebe6dc 100%);
}

/* —— Hero —— */
.hero {
  max-width: 720px;
  margin: 0 auto;
  min-height: 100svh;
  padding: clamp(40px, 8vw, 80px) clamp(20px, 4vw, 40px) 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  text-decoration: none;
  color: inherit;
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-logo img {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.hero-logo span {
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  letter-spacing: -0.03em;
  line-height: 1;
}

.hero .eyebrow { animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.06s both; }
.hero h1 { animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both; }
.hero .sub { animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.18s both; }
.hero .cta-row { animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.24s both; }

.eyebrow {
  margin: 0 0 10px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.hero h1 {
  font-weight: 800;
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  letter-spacing: -0.045em;
  line-height: 1.02;
  margin: 0 0 20px;
}

.sub {
  font-size: clamp(1.05rem, 1.7vw, 1.22rem);
  font-weight: 500;
  color: var(--muted);
  line-height: 1.5;
  margin: 0 auto 32px;
  max-width: 36ch;
}

.cta-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 28px;
  border-radius: 999px;
  background: var(--button);
  color: var(--button-text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
}

.cta-note {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
}

.device-wrap {
  position: relative;
  z-index: 1;
  animation: bob 6s ease-in-out infinite;
}

.phone-still {
  display: block;
  width: min(100%, 300px);
  height: auto;
  border-radius: 36px;
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.18),
    0 0 0 1px rgba(0, 0, 0, 0.04);
  object-fit: cover;
  object-position: top center;
}

/* —— Moments —— */
.moment {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(64px, 10vw, 120px) clamp(20px, 4vw, 40px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.moment.is-flip .moment-visual { order: -1; }

.moment-copy h2 {
  font-weight: 800;
  font-size: clamp(1.85rem, 3.4vw, 2.7rem);
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin: 0 0 16px;
}

.moment-copy p:not(.eyebrow) {
  margin: 0;
  max-width: 38ch;
  font-size: 1.08rem;
  font-weight: 500;
  line-height: 1.55;
  color: var(--muted);
}

.moment-visual {
  display: flex;
  justify-content: center;
}

/* —— Close —— */
.close {
  padding: clamp(72px, 12vw, 140px) 24px 80px;
  text-align: center;
}

.close-copy {
  max-width: 560px;
  margin: 0 auto;
}

.close-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  margin-bottom: 22px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.1);
}

.close h2 {
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.04em;
  margin: 0 0 12px;
}

.close p {
  margin: 0 auto 28px;
  max-width: 36ch;
  font-size: 1.12rem;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.5;
}

/* —— Reveal —— */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* —— Footer —— */
.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px clamp(20px, 4vw, 40px) 56px;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
  display: grid;
  gap: 14px;
}

.footer-brand {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  margin: 0;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}

.footer-nav a {
  color: var(--gold-deep);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.footer-nav a:hover { text-decoration: underline; }

.footer-note {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

/* —— Legal pages —— */
.legal-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.legal-wrap .brand-link {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: inherit;
  text-decoration: none;
}

.legal-wrap h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  letter-spacing: -0.02em;
  margin: 28px 0 8px;
}

.legal-wrap .muted {
  color: var(--muted);
  margin-bottom: 28px;
}

.legal-wrap h2 {
  font-size: 1.1rem;
  margin: 28px 0 8px;
}

.legal-wrap p,
.legal-wrap li {
  color: rgba(0, 0, 0, 0.78);
  line-height: 1.65;
}

.legal-wrap a {
  color: var(--gold-deep);
  font-weight: 600;
}

.legal-wrap .back { margin-top: 40px; }

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@media (max-width: 860px) {
  .hero {
    min-height: 100svh;
    min-height: 100dvh;
    justify-content: center;
    padding: max(32px, env(safe-area-inset-top)) 20px 48px;
  }

  .hero-logo,
  .hero .eyebrow,
  .hero h1,
  .hero .sub,
  .hero .cta-row {
    animation: none;
  }

  .btn-primary {
    width: min(100%, 340px);
  }

  .device-wrap {
    animation: none;
  }

  .moment,
  .moment.is-flip {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 48px 20px;
    gap: 28px;
  }

  .moment-copy {
    order: 1;
  }

  .moment-visual,
  .moment.is-flip .moment-visual {
    order: 2;
  }

  .moment-copy p:not(.eyebrow) {
    margin: 0 auto;
  }

  .phone-still {
    width: min(56vw, 230px);
    height: auto;
    border-radius: 28px;
  }

  .site-footer {
    padding: 36px 20px max(40px, env(safe-area-inset-bottom));
    justify-items: center;
    text-align: center;
  }

  .footer-nav { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .device-wrap,
  .hero-logo,
  .hero .eyebrow,
  .hero h1,
  .hero .sub,
  .hero .cta-row {
    animation: none;
    transition: none;
  }
}
