@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Lora:wght@500;600&display=swap");

:root {
  --cream: #fbf7f1;
  --paper: #fffdf9;
  --ink: #432c21;
  --muted: #7c665b;
  --terracotta: #c95f3c;
  --terracotta-dark: #a9462b;
  --sand: #f1e4d7;
  --line: #e7d8ca;
  --shadow: 0 24px 70px rgba(85, 47, 29, 0.1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Inter", sans-serif;
  line-height: 1.65;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
.container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(231, 216, 202, 0.75);
  background: rgba(251, 247, 241, 0.88);
  backdrop-filter: blur(16px);
}
.nav { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand img { width: 42px; height: 42px; border-radius: 12px; }
.brand-name { font: 600 1.35rem/1 "Lora", serif; letter-spacing: -0.02em; }
.nav-links { display: flex; align-items: center; gap: 28px; color: var(--muted); font-size: 0.9rem; }
.nav-links a { text-decoration: none; }
.nav-links a:hover { color: var(--terracotta); }
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--terracotta);
  border-radius: 999px;
  padding: 0 22px;
  background: var(--terracotta);
  color: white;
  font-weight: 600;
  text-decoration: none;
  transition: 160ms ease;
}
.button:hover { transform: translateY(-2px); background: var(--terracotta-dark); border-color: var(--terracotta-dark); }
.button.secondary { background: transparent; color: var(--ink); border-color: var(--line); }
.button.secondary:hover { background: var(--paper); border-color: var(--terracotta); }

.hero { position: relative; overflow: hidden; padding: 92px 0 88px; }
.hero::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -190px;
  top: -210px;
  border: 1px solid var(--line);
  border-radius: 50%;
}
.hero-grid { display: grid; grid-template-columns: 1.08fr 0.92fr; align-items: center; gap: 76px; }
.eyebrow { margin: 0 0 18px; color: var(--terracotta); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.78rem; }
h1, h2, h3 { font-family: "Lora", serif; line-height: 1.12; letter-spacing: -0.035em; }
h1 { max-width: 720px; margin: 0; font-size: clamp(3.4rem, 7vw, 6.5rem); font-weight: 500; }
h1 em { color: var(--terracotta); font-style: normal; }
.hero-copy { max-width: 620px; margin: 28px 0 0; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.22rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.availability { display: flex; align-items: center; gap: 9px; margin-top: 24px; color: var(--muted); font-size: 0.88rem; }
.availability::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--terracotta); box-shadow: 0 0 0 5px rgba(201,95,60,.12); }

.phone-scene { position: relative; min-height: 560px; display: grid; place-items: center; }
.halo { position: absolute; width: 440px; height: 440px; border-radius: 50%; background: var(--sand); }
.phone {
  position: relative;
  width: min(325px, 82vw);
  min-height: 540px;
  padding: 18px;
  border: 9px solid #2f211b;
  border-radius: 48px;
  background: var(--cream);
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}
.notch { width: 96px; height: 24px; margin: -8px auto 20px; border-radius: 0 0 16px 16px; background: #2f211b; }
.mini-brand { display: flex; align-items: center; gap: 9px; font-family: "Lora", serif; font-size: 1.05rem; }
.mini-brand img { width: 34px; height: 34px; border-radius: 10px; }
.phone h3 { margin: 28px 2px 8px; font-size: 1.72rem; }
.phone-sub { margin: 0 2px 22px; color: var(--muted); font-size: .86rem; }
.moment-card { padding: 17px; border: 1px solid var(--line); border-radius: 22px; background: var(--paper); box-shadow: 0 12px 28px rgba(85,47,29,.07); }
.moment-top { display: flex; justify-content: space-between; gap: 14px; }
.avatar { width: 46px; height: 46px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: var(--sand); color: var(--terracotta-dark); font-weight: 600; }
.moment-card strong { display: block; font-family: "Lora", serif; }
.moment-card small { color: var(--muted); }
.message { margin-top: 14px; padding: 13px; border-radius: 14px; background: var(--sand); font-size: .82rem; color: #684b3d; }
.copy-action { margin-top: 12px; text-align: center; color: var(--terracotta-dark); font-size: .78rem; font-weight: 600; }
.next-title { margin: 24px 2px 10px; font-size: .82rem; font-weight: 600; }
.date-row { display: flex; align-items: center; gap: 12px; padding: 11px 3px; border-top: 1px solid var(--line); font-size: .78rem; }
.date-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--terracotta); }

.section { padding: 96px 0; }
.section-alt { background: var(--paper); border-block: 1px solid var(--line); }
.section-intro { max-width: 670px; margin-bottom: 48px; }
.section h2 { margin: 0; font-size: clamp(2.25rem, 4.8vw, 4rem); font-weight: 500; }
.section-intro p { color: var(--muted); font-size: 1.05rem; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { min-height: 240px; padding: 30px; border: 1px solid var(--line); border-radius: 28px; background: var(--cream); }
.feature-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; background: var(--sand); color: var(--terracotta); font-size: 1.2rem; }
.feature h3 { margin: 24px 0 10px; font-size: 1.45rem; }
.feature p { margin: 0; color: var(--muted); font-size: .94rem; }
.steps { counter-reset: steps; display: grid; grid-template-columns: repeat(3, 1fr); gap: 38px; }
.step { position: relative; padding-top: 72px; }
.step::before { counter-increment: steps; content: "0" counter(steps); position: absolute; top: 0; left: 0; font: 500 2.6rem/1 "Lora", serif; color: var(--terracotta); }
.step h3 { margin: 0 0 10px; font-size: 1.45rem; }
.step p { color: var(--muted); margin: 0; }
.cta-panel { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 40px; padding: 54px; border-radius: 36px; background: var(--ink); color: white; overflow: hidden; }
.cta-panel h2 { max-width: 700px; font-size: clamp(2.2rem, 5vw, 4.2rem); }
.cta-panel p { color: #dbcac0; }
.cta-panel .button { background: var(--paper); border-color: var(--paper); color: var(--ink); white-space: nowrap; }

.footer { padding: 36px 0 48px; }
.footer-grid { display: flex; justify-content: space-between; gap: 28px; align-items: flex-start; }
.footer p { margin: 10px 0 0; color: var(--muted); font-size: .86rem; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 16px 24px; font-size: .84rem; color: var(--muted); }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--terracotta); }

.legal-hero { padding: 74px 0 44px; }
.legal-hero h1 { font-size: clamp(2.7rem, 6vw, 5rem); }
.legal-layout { display: grid; grid-template-columns: 230px minmax(0, 720px); gap: 70px; align-items: start; padding-bottom: 96px; }
.legal-nav { position: sticky; top: 105px; display: grid; gap: 10px; font-size: .87rem; }
.legal-nav a { color: var(--muted); text-decoration: none; }
.legal-nav a:hover { color: var(--terracotta); }
.legal-content { padding: 34px; border: 1px solid var(--line); border-radius: 28px; background: var(--paper); }
.legal-content h2 { margin: 36px 0 10px; font-size: 1.55rem; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p, .legal-content li { color: var(--muted); }
.legal-content ul { padding-left: 20px; }
.notice { padding: 16px 18px; border-radius: 16px; background: var(--sand); color: #684b3d !important; }
.support-card { margin-top: 20px; padding: 24px; border: 1px solid var(--line); border-radius: 22px; background: var(--cream); }

.auth-page { min-height: 100vh; }
.auth-main { min-height: calc(100vh - 75px); display: grid; place-items: center; padding-block: 56px; }
.auth-card { width: min(100%, 560px); padding: 40px; border: 1px solid var(--line); border-radius: 28px; background: var(--paper); box-shadow: var(--shadow); }
.auth-card h1 { margin: 0; font-size: clamp(2.15rem, 7vw, 3.35rem); }
.auth-copy { margin: 20px 0 28px; color: var(--muted); }
.auth-state { margin-top: 28px; }
.auth-state[hidden], .auth-form[hidden] { display: none; }
.auth-form { display: grid; gap: 10px; margin-top: 24px; }
.auth-form label { margin-top: 8px; font-size: .9rem; font-weight: 600; }
.auth-form input { width: 100%; min-height: 52px; border: 1px solid var(--line); border-radius: 14px; padding: 0 16px; background: white; color: var(--ink); font: inherit; outline: none; }
.auth-form input:focus { border-color: var(--terracotta); box-shadow: 0 0 0 3px rgba(201, 95, 60, .13); }
.auth-submit { margin-top: 14px; cursor: pointer; }
.auth-submit:disabled { cursor: wait; opacity: .65; transform: none; }
.auth-alert { padding: 14px 16px; border-radius: 14px; font-size: .9rem; }
.auth-alert-error { background: #fbe9e3; color: #8b3524; }
.auth-alert-success { background: #e7f3ea; color: #315f3c; }
.auth-spinner { display: inline-block; width: 22px; height: 22px; border: 2px solid var(--line); border-top-color: var(--terracotta); border-radius: 50%; animation: auth-spin .8s linear infinite; }
@keyframes auth-spin { to { transform: rotate(360deg); } }

@media (max-width: 860px) {
  .nav-links a:not(.button) { display: none; }
  .hero { padding-top: 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .phone-scene { min-height: 520px; }
  .feature-grid, .steps { grid-template-columns: 1fr; }
  .feature { min-height: 0; }
  .cta-panel { grid-template-columns: 1fr; padding: 38px 28px; }
  .legal-layout { grid-template-columns: 1fr; gap: 20px; }
  .legal-nav { position: static; display: flex; flex-wrap: wrap; }
}
@media (max-width: 560px) {
  .container { width: min(100% - 28px, 1120px); }
  .nav { min-height: 66px; }
  .nav .button { min-height: 42px; padding-inline: 15px; font-size: .82rem; }
  h1 { font-size: 3.25rem; }
  .hero-actions { display: grid; }
  .phone-scene { min-height: 500px; }
  .halo { width: 340px; height: 340px; }
  .phone { transform: none; }
  .section { padding: 72px 0; }
  .footer-grid { flex-direction: column; }
  .footer-links { justify-content: flex-start; }
  .legal-content { padding: 24px 20px; }
  .auth-main { padding-block: 28px; }
  .auth-card { padding: 30px 22px; border-radius: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
