/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #F3F1E9;   /* soft cream page background */
  --white:     #FCFCF7;   /* warm soft white */
  --sand:      #E6E8DC;   /* sage-tinted section bg */
  --border:    #C6CBB6;   /* soft sage-gray border */
  --border-lt: #DBDECF;   /* lighter border */
  --ink:       #25291F;   /* deep olive ink */
  --muted:     #616954;   /* muted sage-gray */
  --faint:     #99A089;   /* placeholder / very muted */
  --tan:       #6E8467;   /* primary accent — eucalyptus sage */
  --tan-dk:    #55684F;   /* deeper sage for hover */
  --tan-lt:    #E4EAE0;   /* very light sage bg */
  --sage:      #3F6B53;   /* deeper green for 'attending' status */
  --sage-lt:   #DBE7DF;   /* very light sage */
  --amber:     #9A7B45;   /* warm gold for reminders */
  --amber-lt:  #EFE7D6;   /* very light gold bg */
  --radius:    10px;
  --shadow-sm: 0 1px 3px rgba(20,14,6,.07), 0 1px 2px rgba(20,14,6,.04);
  --shadow:    0 3px 12px rgba(20,14,6,.08);
  --shadow-lg: 0 8px 32px rgba(20,14,6,.12);
}

html {
  scroll-behavior: smooth;
  overflow-y: auto;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 400;
  line-height: 1.15;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ── Utilities ── */
.section-inner, .nav-inner, .footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 24px;
  border-radius: 7px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background .15s, color .15s, transform .1s, box-shadow .15s;
  border: none;
  letter-spacing: .01em;
}

.btn:active { transform: scale(.97); }

.btn-primary {
  background: var(--tan);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--tan-dk);
  box-shadow: 0 3px 12px rgba(160,120,80,.28);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { border-color: var(--tan); color: var(--tan); }

.btn-nav {
  background: var(--ink);
  color: var(--white);
  padding: 8px 18px;
  font-size: 0.85rem;
}
.btn-nav:hover { background: var(--tan-dk); }

/* ── Nav ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247,243,238,.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-lt);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
}

.logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--ink);
}

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

.nav-links a:not(.btn) {
  font-size: 0.88rem;
  color: var(--muted);
  transition: color .15s;
}
.nav-links a:not(.btn):hover { color: var(--ink); }

/* ── Hero ── */
.hero {
  display: flex;
  align-items: center;
  gap: 60px;
  padding: 90px 24px 100px;
  max-width: 1100px;
  margin: 0 auto;
}

.hero-inner {
  flex: 1 1 480px;
  padding: 0;
  max-width: 560px;
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--tan);
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  color: var(--ink);
  margin-bottom: 20px;
}

.hero h1 em { font-style: italic; color: var(--tan); }

.hero-sub {
  font-size: 1.02rem;
  color: var(--muted);
  max-width: 440px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.hero-note { font-size: 0.78rem; color: var(--faint); }

/* Wavy divider — brand accent that echoes the app icon's stamp edge */
.wavy-rule { display: block; color: var(--tan); }
.wavy-rule path {
  fill: none; stroke: currentColor;
  stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
}
.wavy-rule--hero { width: 165px; height: 11px; margin: -6px 0 26px; }

/* ── Card preview (landing) ── */
.hero-visual { flex: 0 0 auto; position: relative; width: 320px; }

.card-preview {
  background: var(--white);
  border: 1px solid var(--border-lt);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-lg);
}

.card-preview--sm {
  margin-top: 16px;
  margin-left: 32px;
  padding: 16px 20px;
  box-shadow: var(--shadow);
}

.card-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.card-tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 99px;
}

.card-tag.upcoming { background: var(--sage-lt); color: var(--sage); }
.card-tag.past     { background: var(--sand); color: var(--muted); }

.card-date { font-size: 0.8rem; color: var(--muted); }

.card-preview-couple {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.card-preview-venue {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 14px;
}

.card-preview-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }

.pill {
  font-size: 0.73rem;
  padding: 3px 9px;
  border-radius: 99px;
  background: var(--sand);
  border: 1px solid var(--border-lt);
  color: var(--ink);
}

.pill-alert { background: var(--amber-lt); border-color: #dbbf8a; color: var(--amber); }

.card-preview-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--muted);
  padding-top: 12px;
  border-top: 1px solid var(--border-lt);
}

.rsvp-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 99px;
}
.rsvp-badge.yes { background: var(--sage-lt); color: var(--sage); }

/* ── Section shared ── */
.section-label {
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--tan);
  margin-bottom: 10px;
}

section.features, section.how, section.proof, section.signup { padding: 90px 24px; }
section.features, section.proof { background: var(--white); }
section.features h2, section.how h2, section.signup h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin-bottom: 52px;
}

/* ── Features ── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg);
  border: 1px solid var(--border-lt);
  border-radius: var(--radius);
  padding: 28px;
  transition: box-shadow .2s, transform .2s;
}

.feature-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.feature-icon { font-size: 1.7rem; margin-bottom: 14px; }
.feature-card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.feature-card p { font-size: 0.88rem; color: var(--muted); line-height: 1.65; }

/* ── How it works ── */
.steps { display: flex; align-items: flex-start; flex-wrap: wrap; }

.step { flex: 1 1 200px; display: flex; gap: 16px; align-items: flex-start; }

.step-num {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--tan-lt);
  color: var(--tan);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-body h3 { font-size: 1.08rem; margin-bottom: 6px; margin-top: 6px; }
.step-body p  { font-size: 0.88rem; color: var(--muted); line-height: 1.65; }

.step-divider { flex: 0 0 40px; height: 1px; background: var(--border); align-self: center; }

/* ── Testimonials ── */
.proof { text-align: center; }

.quotes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

blockquote {
  background: var(--bg);
  border: 1px solid var(--border-lt);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: left;
}

blockquote p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  font-style: italic;
  margin-bottom: 14px;
  color: var(--ink);
  line-height: 1.6;
}

blockquote cite { font-size: 0.82rem; color: var(--muted); font-style: normal; }

/* ── Sign up ── */
.signup { background: linear-gradient(165deg, #7a9070 0%, var(--tan) 45%, var(--tan-dk) 100%); }
.signup-inner { max-width: 560px; text-align: center; }
.signup h2 { margin-bottom: 10px; }
section.signup h2 { color: #fff; margin-bottom: 14px; }
.signup .wavy-rule { width: 170px; height: 11px; margin: 0 auto 28px; color: rgba(255,255,255,.92); }
.signup > .section-inner > p { color: rgba(255,255,255,.9); margin-bottom: 32px; font-size: 1rem; }
.signup .btn-primary { background: var(--white); color: var(--tan-dk); }
.signup .btn-primary:hover { background: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.2); }

.signup-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 12px;
}

.signup-form input[type="email"] {
  flex: 1 1 240px;
  padding: 11px 16px;
  border: 1.5px solid var(--border);
  border-radius: 7px;
  font-size: 0.92rem;
  font-family: 'Inter', sans-serif;
  background: var(--white);
  color: var(--ink);
  outline: none;
  transition: border-color .15s;
}

.signup-form input[type="email"]:focus { border-color: var(--tan); }
.signup-note { font-size: 0.76rem; color: rgba(255,255,255,.78); }
.signup-success { margin-top: 16px; font-size: 1rem; color: #fff; font-weight: 500; }

/* ── Footer ── */
.footer { border-top: 1px solid var(--border-lt); padding: 24px; }

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy { font-size: 0.8rem; color: var(--faint); }

/* ── Responsive ── */
@media (max-width: 860px) {
  .hero { flex-direction: column; padding: 60px 24px 70px; gap: 48px; }
  .hero-visual { width: 100%; max-width: 360px; align-self: center; }
  .hero-inner { max-width: 100%; }
  .steps { flex-direction: column; gap: 24px; }
  .step-divider { display: none; }
}

@media (max-width: 560px) {
  .nav-links a:not(.btn) { display: none; }
  .hero h1 { font-size: 2.2rem; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .signup-form { flex-direction: column; }
  .signup-form .btn { width: 100%; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* iOS auto-zooms when a focused field is < 16px, which shifts the layout and
   makes forms/modals appear to overflow. Keep text controls at 16px on phones. */
@media (max-width: 560px) {
  input[type="text"], input[type="email"], input[type="password"], input[type="url"],
  input[type="search"], input[type="tel"], input[type="number"], input[type="date"],
  input[type="time"], input[type="datetime-local"], select, textarea {
    font-size: 16px;
  }
}
