/* ═══════════════════════════════════════════════
   Vera — Wedding Planner Landing Page
   Design tokens from the Vera React Native app
   ═══════════════════════════════════════════════ */

html {
  scroll-behavior: smooth;
  /* Sections already include generous top padding for the nav pill to float over,
     so scrolling to a section snaps its outer top to the viewport top. */
  scroll-padding-top: 0;
  /* Lets width/height transitions interpolate from intrinsic keywords (max-content, auto) — Chrome 129+, Safari TP. Older browsers gracefully snap. */
  interpolate-size: allow-keywords;
  /* Custom scrollbar tinted with the brand accent (Firefox + WebKit) */
  scrollbar-color: #D48C6A rgba(212, 140, 106, 0.12);
  scrollbar-width: thin;
  /* `overflow-x: clip` clips horizontal overflow WITHOUT creating a scroll
     container — so `position: sticky` on .rw-pin keeps working.
     `overflow-x: hidden` here would break sticky. */
  overflow-x: clip;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: rgba(212, 140, 106, 0.08);
}
::-webkit-scrollbar-thumb {
  background: #D48C6A;
  border-radius: 999px;
  border: 2px solid var(--bg-app);
}
::-webkit-scrollbar-thumb:hover {
  background: #C57854;
}

section[id] {
  scroll-margin-top: 0;
}

:root {
  --bg-app: #F5F2EF;
  --bg-surface: #FFFFFF;
  --bg-surface-dark: #8C7E73;
  --text-primary: #453E38;
  --text-secondary: #A0978F;
  --text-placeholder: #D1CBC5;
  --text-inverse: #F5F2EF;
  --accent: #D48C6A;
  --accent-muted: rgba(212,140,106,0.10);
  --accent-soft: rgba(212,140,106,0.14);
  --border: rgba(160,151,143,0.12);
  --border-subtle: rgba(160,151,143,0.08);
  --shadow-tint: #8C7E73;
  --radius-card: 28px;
  --radius-card-sm: 16px;
  --radius-pill: 999px;

  --section-guests: #C4727F;
  --section-budget: #7BA38C;
  --section-tasks: #D4A24E;
  --section-vendors: #6B9EA8;
  --section-invitations: #9B7EAF;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--bg-app);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  width: 100%;
}

/* Safari < 16 fallback — `clip` is unsupported, so we degrade to `hidden`
   on body only (html stays untouched so sticky still works). */
@supports not (overflow-x: clip) {
  body { overflow-x: hidden; }
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px);
}

/* ── Scroll Reveal Engine (Apple-style) ─────── */
[data-scroll] {
  opacity: 0;
  will-change: transform, opacity, filter;
  transition-property: opacity, transform, filter;
  transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}
[data-scroll].is-visible {
  opacity: 1;
  transform: none !important;
  filter: none !important;
}

/* Animation types */
[data-scroll="fade-up"] { transform: translateY(60px); transition-duration: 1s; }
[data-scroll="fade-up-sm"] { transform: translateY(30px); transition-duration: 0.8s; }
[data-scroll="fade"] { transition-duration: 0.8s; }
[data-scroll="scale-up"] { transform: scale(0.88); transition-duration: 1.1s; }
[data-scroll="scale-fade"] { transform: scale(0.92) translateY(40px); filter: blur(4px); transition-duration: 1.2s; }
[data-scroll="slide-left"] { transform: translateX(-60px); transition-duration: 1s; }
[data-scroll="slide-right"] { transform: translateX(60px); transition-duration: 1s; }
[data-scroll="zoom"] { transform: scale(0.7); transition-duration: 1.3s; transition-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1); }

/* Stagger delays via data-delay */
[data-delay="1"] { transition-delay: 0.1s; }
[data-delay="2"] { transition-delay: 0.2s; }
[data-delay="3"] { transition-delay: 0.35s; }
[data-delay="4"] { transition-delay: 0.5s; }
[data-delay="5"] { transition-delay: 0.65s; }
[data-delay="6"] { transition-delay: 0.8s; }

/* Legacy compat */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ── Vera Icons (mask-based, inherit currentColor) ─ */
.vi {
  display: inline-block;
  width: 1em;
  height: 1em;
  background-color: currentColor;
  -webkit-mask-image: var(--vi);
  mask-image: var(--vi);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  vertical-align: -0.15em;
  flex-shrink: 0;
}
.vi-guests        { --vi: url('images/icons/fi-rr-users.svg'); }
.vi-budget        { --vi: url('images/icons/fi-rr-money-bills-simple.svg'); }
.vi-tasks         { --vi: url('images/icons/fi-rr-note.svg'); }
.vi-mail          { --vi: url('images/icons/fi-rr-envelope.svg'); }
.vi-vendors       { --vi: url('images/icons/fi-rr-shop.png'); }
.vi-circle-dashed { --vi: url('images/icons/fi-sr-circle-dashed.svg'); }

/* ── Navigation ─────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding: 16px 20px 0;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav--hidden { transform: translateY(calc(-100% - 16px)); }

.nav-bar {
  pointer-events: all;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 28px;
  background: var(--text-primary);
  border-radius: var(--radius-card);
  box-shadow: 0 8px 32px rgba(69,62,56,0.18);
  transition: padding 0.3s ease, box-shadow 0.3s ease;
  line-height: 1;
}
.nav--scrolled .nav-bar {
  padding: 10px 22px;
  box-shadow: 0 4px 20px rgba(69,62,56,0.22);
}

.nav-bar__head {
  display: contents;
}

.nav-logo {
  display: block;
  width: 46px;
  height: 18px;
  background-color: var(--text-inverse);
  -webkit-mask-image: url('images/vera-logo.png');
  mask-image: url('images/vera-logo.png');
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  font-size: 0;
  line-height: 0;
  color: transparent;
  text-decoration: none;
  overflow: hidden;
  flex-shrink: 0;
  align-self: center;
  transition: opacity 0.25s ease, width 0.3s ease, height 0.3s ease;
}
.nav-logo:hover {
  opacity: 0.85;
}
.nav--scrolled .nav-logo {
  width: 40px;
  height: 16px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  line-height: 1;
  transform: translateY(2px);
}
.nav-links a {
  font-size: 13.5px;
  font-weight: 400;
  color: rgba(245,242,239,0.5);
  text-decoration: none;
  transition: color 0.2s ease;
  white-space: nowrap;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}
.nav-links a:hover {
  color: var(--text-inverse);
}
.nav-links .nav-dl {
  color: var(--accent);
  font-weight: 500;
}
.nav-links .nav-dl:hover {
  color: #e8a882;
}

/* Mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px 8px;
  margin: -10px -8px -10px 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 10px;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.2s ease;
}
.nav-toggle:active {
  background: rgba(245, 242, 239, 0.08);
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--text-inverse);
  border-radius: 1px;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
}
.nav-toggle--open span:nth-child(1) { transform: translateY(3.25px) rotate(45deg); }
.nav-toggle--open span:nth-child(2) { transform: translateY(-3.25px) rotate(-45deg); }

/* ── Hero Entrance Animations ── */
.hero-anim {
  opacity: 0;
  will-change: transform, opacity;
}
.hero-anim[data-anim="fade-up"] {
  transform: translateY(40px);
}
.hero-anim[data-anim="fade"] {
  transform: none;
}
.hero-anim[data-anim="scale-x"] {
  transform: scaleX(0);
  transform-origin: center;
}
.hero-anim[data-anim="fly-left"] {
  transform: translateX(-80px) translateY(20px) rotate(-8deg) scale(0.85);
}
.hero-anim[data-anim="fly-right"] {
  transform: translateX(80px) translateY(20px) rotate(8deg) scale(0.85);
}
.hero-anim.anim-in {
  opacity: 1;
  transform: none;
}
.hero-anim.anim-in[data-anim="fly-left"],
.hero-anim.anim-in[data-anim="fly-right"] {
  opacity: 1;
}

/* ── Hero ───────────────────────────────────── */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(120px, 16vh, 160px) clamp(24px, 5vw, 48px) clamp(80px, 10vh, 100px);
  min-height: 100vh;
  justify-content: center;
  overflow: hidden;
}

.hero-text {
  position: relative;
  z-index: 5;
  max-width: 520px;
}
.hero-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.hero-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(38px, 5.5vw, 58px);
  line-height: 1.12;
  color: var(--text-primary);
  letter-spacing: -1.5px;
  margin-bottom: 0;
}
.hero-divider {
  width: 40px;
  height: 1.5px;
  background: var(--accent);
  margin: 24px auto;
  opacity: 0.6;
}
.hero-desc {
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}
.hero-cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.hero-meta {
  margin-top: 14px;
  font-size: 12.5px;
  letter-spacing: 0.6px;
  color: var(--text-secondary);
  opacity: 0.78;
}

/* ── Floating Cards (absolute around text) ── */
.hero-card {
  position: absolute;
  z-index: 2;
  background: var(--bg-surface);
  border-radius: var(--radius-card-sm);
  padding: 16px 18px;
  box-shadow: 0 8px 32px rgba(140,126,115,0.1), 0 2px 8px rgba(140,126,115,0.05);
  border: 1px solid var(--border-subtle);
  width: 200px;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}
.hero-card:hover {
  box-shadow: 0 16px 48px rgba(140,126,115,0.18), 0 4px 12px rgba(140,126,115,0.08);
}

.hero-card--tasks {
  top: 18%;
  left: 3%;
}
.hero-card--tasks.anim-in { transform: rotate(-2deg); }
.hero-card--tasks:hover { transform: translateY(-6px) rotate(0deg) !important; }

.hero-card--budget {
  top: 16%;
  right: 3%;
}
.hero-card--budget.anim-in { transform: rotate(1.5deg); }
.hero-card--budget:hover { transform: translateY(-6px) rotate(0deg) !important; }

.hero-card--guests {
  bottom: 18%;
  left: 5%;
}
.hero-card--guests.anim-in { transform: rotate(-1deg); }
.hero-card--guests:hover { transform: translateY(-6px) rotate(0deg) !important; }

.hero-card--seating {
  bottom: 16%;
  right: 5%;
}
.hero-card--seating.anim-in { transform: rotate(2deg); }
.hero-card--seating:hover { transform: translateY(-6px) rotate(0deg) !important; }

/* ── Real weddings — scroll-pinned cinematic slideshow ── */
.real-weddings {
  background: var(--bg-surface);
  position: relative;
  /* Total scroll length = (slides + 1) × 100vh: extra vh lets the last slide breathe before unpin */
  height: 360vh;
}
.rw-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  overflow: hidden;
}
.rw-pin__inner {
  display: grid;
  grid-template-rows: auto 1fr;
  align-content: center;
  gap: clamp(24px, 4vh, 44px);
  width: 100%;
  padding-top: clamp(96px, 12vh, 140px);
  padding-bottom: clamp(48px, 6vh, 72px);
}
.rw-header {
  margin: 0 auto;
  max-width: 720px;
  text-align: center;
}
.rw-stage {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: clamp(20px, 2.5vw, 32px);
  overflow: hidden;
  background: #161310;
  box-shadow:
    0 24px 60px rgba(54, 46, 38, 0.22),
    0 4px 14px rgba(54, 46, 38, 0.08);
  isolation: isolate;
}
.rw-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.08);
  transition:
    opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1),
    transform 1.6s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  will-change: opacity, transform;
}
.rw-slide.is-active {
  opacity: 1;
  transform: scale(1);
}
.rw-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}
/* Subtle gradient overlay so caption is readable on any photo */
.rw-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(20, 16, 12, 0.55) 0%,
    rgba(20, 16, 12, 0.18) 28%,
    rgba(20, 16, 12, 0) 55%
  );
  pointer-events: none;
}

/* Caption — slides in slightly later than the photo for storytelling rhythm */
.rw-caption {
  position: absolute;
  left: clamp(20px, 4vw, 48px);
  bottom: clamp(28px, 5vh, 56px);
  right: clamp(20px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #fff;
  z-index: 2;
  transform: translateY(20px);
  opacity: 0;
  transition:
    opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1) 0.15s,
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.15s;
  max-width: 520px;
}
.rw-slide.is-active .rw-caption {
  opacity: 1;
  transform: translateY(0);
}
.rw-caption__eyebrow {
  font-family: var(--font-display);
  font-size: clamp(11px, 1vw, 13px);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  opacity: 0.85;
}
.rw-caption__line {
  font-family: var(--font-display);
  font-size: clamp(22px, 3.4vw, 36px);
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

/* Counter — top-right, minimal */
.rw-counter {
  position: absolute;
  top: clamp(18px, 3vh, 28px);
  right: clamp(18px, 3vw, 28px);
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-display);
  font-size: clamp(12px, 1vw, 14px);
  letter-spacing: 0.18em;
  z-index: 3;
}
.rw-counter__current {
  font-variant-numeric: tabular-nums;
  min-width: 1.6em;
  text-align: right;
  transition: opacity 0.3s;
}
.rw-counter__sep { opacity: 0.5; }
.rw-counter__total { opacity: 0.6; }

/* Progress bars — bottom-center */
.rw-progress {
  position: absolute;
  bottom: clamp(14px, 2vh, 20px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 3;
}
.rw-bar {
  width: clamp(20px, 3vw, 32px);
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  transition: background 0.5s ease, width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.rw-bar.is-active {
  background: #fff;
  width: clamp(36px, 5vw, 52px);
}

/* Tablet/mobile: shorter pin, smaller header */
@media (max-width: 960px) {
  .real-weddings { height: 320vh; }
}
@media (max-width: 720px) {
  .real-weddings { height: 300vh; }
  /* Image dominates on phones: tiny top pad clears the floating nav pill,
     compact header, then the photo fills the rest of the viewport. */
  .rw-pin__inner {
    padding-top: 56px;
    padding-bottom: 24px;
    gap: 10px;
  }
  .rw-header {
    margin: 0;
    padding: 0 6px;
  }
  .rw-header .section-label {
    font-size: 10.5px;
    letter-spacing: 0.22em;
    margin-bottom: 4px;
  }
  .rw-header .section-title {
    font-size: 22px;
    line-height: 1.18;
    letter-spacing: -0.3px;
  }
  .rw-stage {
    border-radius: 18px;
  }
  .rw-slide img {
    object-position: center 25%;
  }
  .rw-caption {
    left: 18px;
    right: 18px;
    bottom: 22px;
    gap: 6px;
  }
  .rw-caption__line {
    font-size: 20px;
    line-height: 1.2;
  }
  .rw-counter { top: 14px; right: 14px; font-size: 11px; }
  .rw-progress { bottom: 14px; gap: 5px; }
}

/* Respect reduced motion: degrade to simple stacked gallery */
@media (prefers-reduced-motion: reduce) {
  .real-weddings { height: auto; padding: 80px 0; }
  .rw-pin { position: static; height: auto; display: block; }
  .rw-pin__inner { padding: 0 0; gap: 32px; }
  .rw-stage {
    aspect-ratio: 16 / 10;
    height: auto;
    margin-bottom: 16px;
  }
  .rw-slide {
    position: relative;
    opacity: 1;
    transform: none;
    transition: none;
  }
  .rw-slide + .rw-slide { margin-top: 16px; }
  .rw-counter, .rw-progress { display: none; }
}

.hf-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.hf-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--hf-bg);
  color: var(--hf-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}
.hf-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.2px;
}
.hf-badge {
  margin-left: auto;
  font-size: 10px;
  font-weight: 600;
  color: var(--section-tasks);
  background: rgba(212,162,78,0.1);
  padding: 2px 7px;
  border-radius: var(--radius-pill);
}

.hf-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.hf-checklist li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-primary);
  line-height: 1.3;
}
.hf-checklist li .ti,
.hf-checklist li .vi {
  font-size: 14px;
  color: var(--text-placeholder);
  flex-shrink: 0;
}
.hf-check--done {
  text-decoration: line-through;
  opacity: 0.5;
}
.hf-check--done .ti {
  color: var(--section-budget) !important;
}

.hf-budget-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.hf-budget-bar {
  flex: 1;
  height: 6px;
  background: rgba(123,163,140,0.15);
  border-radius: 3px;
  overflow: hidden;
}
.hf-budget-fill {
  height: 100%;
  background: var(--section-budget);
  border-radius: 3px;
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.hf-budget-pct {
  font-size: 11px;
  font-weight: 700;
  color: var(--section-budget);
  min-width: 28px;
  text-align: right;
}
.hf-budget-nums {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}
.hf-budget-nums small {
  font-weight: 400;
  font-size: 10px;
  color: var(--text-secondary);
}
.hf-budget-total {
  font-size: 10px;
  font-weight: 400;
  color: var(--text-secondary);
}

.hf-guests-stats {
  display: flex;
  align-items: center;
  gap: 12px;
}
.hf-guest-num {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.hf-guest-num strong {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  line-height: 1;
}
.hf-guest-num small {
  font-size: 9px;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.hf-guest-divider {
  width: 1px;
  height: 28px;
  background: var(--border);
}

.hf-tables {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.hf-table {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-app);
  border: 1px solid var(--border);
  font-size: 10px;
  font-weight: 600;
  color: var(--text-secondary);
}
.hf-table span {
  opacity: 0.6;
}
.hf-table--round {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin: 0 auto;
}
.hf-table--rect {
  width: 48px;
  height: 24px;
  border-radius: 6px;
  grid-column: 1 / -1;
  margin: 0 auto;
}
.hf-table--accent {
  border-color: var(--section-vendors);
  background: rgba(107,158,168,0.08);
}
.hf-table--accent span {
  color: var(--section-vendors);
  opacity: 1;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  padding: 16px 32px;
  border-radius: 22px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn .ti {
  font-size: 20px;
}
.btn--primary {
  color: var(--text-inverse);
  background: var(--accent);
  box-shadow: 0 8px 24px rgba(212,140,106,0.3);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(212,140,106,0.4);
}
.btn--ghost {
  color: var(--text-primary);
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--border);
}
.btn--ghost:hover {
  background: var(--bg-surface);
  box-shadow: inset 0 0 0 1.5px rgba(160,151,143,0.2), 0 4px 16px rgba(140,126,115,0.08);
  transform: translateY(-1px);
}
.btn--outline {
  display: block;
  text-align: center;
  color: var(--text-primary);
  background: transparent;
  box-shadow: inset 0 0 0 1.5px rgba(160,151,143,0.2);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  padding: 16px 32px;
  border-radius: 22px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn--outline:hover {
  background: var(--bg-app);
  transform: translateY(-1px);
}
.btn--full {
  display: block;
  text-align: center;
  width: 100%;
}

/* ── Section Headers ────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: clamp(48px, 6vw, 72px);
}
.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.15;
  color: var(--text-primary);
  letter-spacing: -1px;
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto;
}

/* ── Features ───────────────────────────────── */
.features {
  padding: clamp(80px, 12vh, 140px) 0;
  background: var(--bg-surface);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--bg-app);
  border-radius: var(--radius-card);
  padding: clamp(28px, 3vw, 40px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(140,126,115,0.12);
}
.feature-card--wide {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 28px;
}
.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: var(--feature-bg);
  color: var(--feature-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  flex-shrink: 0;
  font-size: 26px;
}
.feature-card--wide .feature-icon {
  margin-bottom: 0;
}
.feature-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: -0.2px;
}
.feature-desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-secondary);
}

/* ── How It Works ───────────────────────────── */
.how-it-works {
  padding: clamp(80px, 12vh, 140px) 0;
  background: var(--bg-app);
}
.steps {
  display: flex;
  flex-direction: column;
  gap: clamp(48px, 8vh, 80px);
}
.step {
  display: flex;
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
}
.step--reverse {
  flex-direction: row-reverse;
}
.step-number {
  font-family: var(--font-display);
  font-size: clamp(56px, 8vw, 80px);
  font-weight: 400;
  color: var(--border);
  letter-spacing: -3px;
  line-height: 1;
  flex-shrink: 0;
}
.step-content {
  flex: 1;
}
.step-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(24px, 3vw, 32px);
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}
.step-desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 380px;
}
.step-visual {
  flex-shrink: 0;
}
.step-card {
  background: var(--bg-surface);
  border-radius: var(--radius-card);
  padding: 32px;
  box-shadow: 0 12px 40px rgba(140,126,115,0.1);
  border: 1px solid var(--border);
  min-width: 200px;
  text-align: center;
}
.step-card-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 16px;
}
.step-card-names {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.step-card-names span {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 28px;
  font-weight: 500;
  color: var(--text-primary);
}
.step-card-amp {
  font-size: 20px !important;
  color: var(--accent) !important;
  font-style: italic !important;
}
.step-card--dashboard {
  display: flex;
  gap: 20px;
  text-align: left;
}
.step-mini-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.step-mini-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.step-mini-value {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -1px;
}
.step-card--final {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.step-mini-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--stat-bg);
  color: var(--stat-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  margin-bottom: 6px;
}
.step-card-check {
  font-size: 48px;
  color: var(--section-budget);
}
.step-card-done {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  color: var(--text-primary);
}

/* ── Invitation Showcase ────────────────────── */
.showcase {
  padding: clamp(80px, 12vh, 140px) 0;
  background: var(--bg-surface);
}
.invitation-gallery {
  display: flex;
  justify-content: center;
  gap: clamp(16px, 2.5vw, 28px);
  flex-wrap: wrap;
}
.invitation-card {
  width: clamp(200px, 22vw, 240px);
  flex-shrink: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.invitation-card:hover {
  transform: translateY(-8px) scale(1.02);
}
.invitation-inner {
  aspect-ratio: 170 / 240;
  background: linear-gradient(to bottom, var(--inv-bg1), var(--inv-bg2));
  border-radius: var(--radius-card-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  box-shadow:
    0 12px 40px rgba(0,0,0,0.12),
    0 4px 16px rgba(0,0,0,0.06);
  overflow: hidden;
}
.invitation-frame {
  position: absolute;
  inset: 10px;
  border: 0.5px solid var(--inv-accent);
  opacity: 0.4;
  border-radius: 2px;
}
.invitation-frame::before,
.invitation-frame::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border-color: var(--inv-accent);
  border-style: solid;
  opacity: 0.7;
}
.invitation-frame::before {
  top: -1px;
  left: -1px;
  border-width: 1px 0 0 1px;
}
.invitation-frame::after {
  bottom: -1px;
  right: -1px;
  border-width: 0 1px 1px 0;
}
.invitation-top-label {
  font-size: 6px;
  letter-spacing: 3px;
  font-weight: 600;
  color: var(--inv-accent);
  text-transform: uppercase;
  margin-bottom: 14px;
  position: relative;
}
.invitation-name {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 500;
  color: var(--inv-text);
  line-height: 1.2;
  position: relative;
}
.invitation-amp {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  color: var(--inv-accent);
  margin: 2px 0;
  position: relative;
}
.invitation-line {
  width: 36px;
  height: 1px;
  background: var(--inv-accent);
  opacity: 0.5;
  margin: 10px 0;
  position: relative;
}
.invitation-date {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 1.5px;
  color: var(--inv-text);
  opacity: 0.65;
  position: relative;
}
.invitation-style-name {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 16px;
}

/* ── FAQ ────────────────────────────────────── */
.faq {
  padding: clamp(80px, 12vh, 140px) 0;
  background: var(--bg-surface);
}
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.faq-item {
  border-bottom: 1px solid var(--border);
  transition: background 0.3s ease;
}
.faq-item:first-child {
  border-top: 1px solid var(--border);
}
.faq-question {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 4px;
  cursor: pointer;
  list-style: none;
  transition: opacity 0.2s ease;
}
.faq-question::-webkit-details-marker {
  display: none;
}
.faq-question:hover {
  opacity: 0.7;
}
.faq-text {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.2px;
  text-align: left;
}
.faq-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease;
}
.faq-icon .ti {
  font-size: 16px;
  color: var(--accent);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.faq-item[open] .faq-icon {
  background: var(--accent);
  transform: rotate(45deg);
}
.faq-item[open] .faq-icon .ti {
  color: var(--text-inverse);
}
.faq-answer-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}
.faq-item[open] .faq-answer-wrap {
  grid-template-rows: 1fr;
}
.faq-answer {
  min-height: 0;
  padding: 0 4px 0 4px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-secondary);
  overflow: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.3s ease 0.1s, transform 0.3s ease 0.1s, padding 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.faq-item[open] .faq-answer {
  padding-bottom: 24px;
  opacity: 1;
  transform: translateY(0);
}

/* ── Download CTA ───────────────────────────── */
.download {
  padding: clamp(80px, 12vh, 140px) 0;
  background: linear-gradient(165deg, var(--bg-app) 0%, #E5DED7 100%);
  position: relative;
  overflow: hidden;
}
.download::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.04;
}
.download::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.03;
}
.download-split {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(48px, 6vw, 80px);
}
.download-text {
  flex: 1;
  min-width: 0;
}
.download-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.download-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.1;
  color: var(--text-primary);
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}
.download-subtitle {
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 420px;
}
.download-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ── Phone mockup ── */
.download-phone {
  flex-shrink: 0;
  width: clamp(240px, 26vw, 300px);
  transform: rotate(2deg);
}
.phone-frame {
  position: relative;
  background: var(--text-primary);
  border-radius: 36px;
  padding: 12px;
  box-shadow:
    0 24px 64px rgba(69,62,56,0.18),
    0 8px 20px rgba(69,62,56,0.10),
    inset 0 0 0 1px rgba(255,255,255,0.06);
}
.phone-notch {
  width: 100px;
  height: 24px;
  background: var(--text-primary);
  border-radius: 0 0 16px 16px;
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.phone-screen {
  background: var(--bg-app);
  border-radius: 26px;
  padding: 40px 18px 24px;
  overflow: hidden;
  position: relative;
}
.mock-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 20px;
  padding: 0 4px;
}
.mock-status-icons {
  display: flex;
  gap: 4px;
  font-size: 13px;
}
.mock-greeting {
  margin-bottom: 18px;
  padding: 0 2px;
}
.mock-hello {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 2px;
}
.mock-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}
.mock-countdown {
  background: var(--bg-surface);
  border-radius: var(--radius-card);
  padding: 14px 16px;
  margin-bottom: 14px;
  border: 1px solid var(--border);
}
.mock-countdown-bar {
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  margin-bottom: 8px;
  overflow: hidden;
}
.mock-countdown-fill {
  height: 100%;
  width: 62%;
  background: var(--accent);
  border-radius: 3px;
}
.mock-countdown-text {
  font-size: 11px;
  color: var(--text-secondary);
}
.mock-countdown-text strong {
  color: var(--text-primary);
}
.mock-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.mock-card {
  background: var(--bg-surface);
  border-radius: 12px;
  padding: 12px 8px;
  text-align: center;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.mock-card .ti,
.mock-card .vi {
  font-size: 16px;
}
.mock-card--tasks .ti, .mock-card--tasks .vi { color: var(--section-tasks); }
.mock-card--budget .ti, .mock-card--budget .vi { color: var(--section-budget); }
.mock-card--guests .ti, .mock-card--guests .vi { color: var(--section-guests); }
.mock-card-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}
.mock-card-label {
  font-size: 9px;
  color: var(--text-secondary);
  letter-spacing: 0.2px;
}
.mock-task-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--bg-surface);
  border-radius: var(--radius-card);
  padding: 12px 14px;
  border: 1px solid var(--border);
}
.mock-task {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-primary);
}
.mock-task .ti,
.mock-task .vi {
  font-size: 16px;
  flex-shrink: 0;
}
.mock-task .ti-circle-check-filled {
  color: var(--section-budget);
}
.mock-task--pending {
  color: var(--text-secondary);
}
.mock-task--pending .ti,
.mock-task--pending .vi {
  color: var(--border);
}

/* ── Footer ─────────────────────────────────── */
.footer {
  padding: clamp(48px, 8vh, 80px) 0 clamp(28px, 4vh, 40px);
  background: var(--text-primary);
  color: var(--text-inverse);
}
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  padding-bottom: clamp(32px, 5vh, 48px);
  margin-bottom: 0;
  border-bottom: 1px solid rgba(245,242,239,0.08);
}
.footer-logo {
  display: inline-block;
  width: 80px;
  height: 32px;
  background-color: var(--text-inverse);
  -webkit-mask-image: url('images/vera-logo.png');
  mask-image: url('images/vera-logo.png');
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: left center;
  mask-position: left center;
  -webkit-mask-size: contain;
  mask-size: contain;
  font-size: 0;
  line-height: 0;
  color: transparent;
  text-decoration: none;
  margin-bottom: 14px;
}
.footer-tagline {
  font-size: 14px;
  color: rgba(245,242,239,0.5);
  max-width: 220px;
  margin-bottom: 20px;
}
.footer-social {
  display: flex;
  gap: 8px;
}
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(245,242,239,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(245,242,239,0.6);
  text-decoration: none;
  transition: all 0.25s ease;
}
.footer-social a:hover {
  background: rgba(245,242,239,0.1);
  border-color: rgba(245,242,239,0.3);
  color: var(--text-inverse);
  transform: translateY(-2px);
}
.footer-social a .ti {
  font-size: 18px;
}
.footer-links {
  display: flex;
  gap: clamp(32px, 5vw, 64px);
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(245,242,239,0.4);
  margin-bottom: 4px;
}
.footer-col a {
  font-size: 14px;
  color: rgba(245,242,239,0.7);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-col a:hover {
  color: var(--text-inverse);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: clamp(20px, 3vh, 28px);
}
.footer-bottom p {
  font-size: 13px;
  color: rgba(245,242,239,0.35);
}
.footer-email {
  font-size: 13px;
  color: rgba(245,242,239,0.5);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-email:hover {
  color: var(--accent);
}

/* ═══════════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════════ */
@media (max-width: 960px) {
  .hero {
    padding-top: 120px;
    padding-bottom: 60px;
    min-height: auto;
    overflow: visible;
  }
  .hero-card {
    position: static;
    width: calc(50% - 10px);
  }
  .hero-card--tasks,
  .hero-card--budget,
  .hero-card--guests,
  .hero-card--seating {
    top: auto; right: auto; bottom: auto; left: auto;
  }
  .hero .hero-text { margin-bottom: 40px; }
  .hero {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }
  .hero-text { width: 100%; }
  .hero-photo-strip img {
    height: 260px;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .feature-card--wide {
    flex-direction: column;
  }
  /* Steps — compact mobile layout via grid + display:contents trick.
     Number sits inline next to the title; description flows below; visual card fills row 3. */
  .step {
    display: grid !important;
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "num   title"
      "desc  desc"
      "visual visual";
    column-gap: 14px;
    row-gap: 12px;
    align-items: center;
    text-align: left;
  }
  .step-content {
    display: contents;
  }
  .step-number {
    grid-area: num;
    font-size: 30px;
    line-height: 1;
    letter-spacing: -1px;
    color: var(--accent);
    opacity: 0.6;
  }
  .step-title {
    grid-area: title;
    margin-bottom: 0;
    font-size: 22px;
    line-height: 1.15;
  }
  .step-desc {
    grid-area: desc;
    max-width: 100%;
    margin: 0;
    font-size: 14.5px;
    line-height: 1.6;
  }
  .step-visual {
    grid-area: visual;
    margin-top: 8px;
  }
}

/* ── Mobile hero redesign ───────────────────────── */
@media (max-width: 720px) {
  .hero {
    padding: clamp(110px, 16vh, 140px) 20px clamp(80px, 12vh, 120px);
    min-height: 100vh;
    justify-content: center;
  }

  /* Soft radial glow behind text for depth */
  .hero::before {
    content: '';
    position: absolute;
    top: 8%;
    left: 50%;
    width: 520px;
    height: 520px;
    transform: translateX(-50%);
    background:
      radial-gradient(circle at center,
        rgba(212, 140, 106, 0.10) 0%,
        rgba(212, 140, 106, 0.04) 35%,
        transparent 65%);
    z-index: 0;
    pointer-events: none;
  }

  .hero-text {
    width: 100%;
    max-width: 440px;
    margin: 0 auto 44px;
    padding: 0 4px;
  }
  .hero-eyebrow {
    font-size: 10.5px;
    letter-spacing: 2.6px;
    margin-bottom: 18px;
  }
  .hero-title {
    font-size: clamp(40px, 11vw, 52px);
    letter-spacing: -1.2px;
    line-height: 1.08;
  }
  .hero-divider {
    width: 32px;
    margin: 20px auto;
    opacity: 0.7;
  }
  .hero-desc {
    font-size: 15.5px;
    line-height: 1.7;
    margin-bottom: 28px;
    max-width: 340px;
  }

  /* CTAs stack vertically with intentional hierarchy */
  .hero-cta-row {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    margin-bottom: 22px;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-cta-row .btn--primary {
    width: 100%;
    justify-content: center;
    padding: 18px 24px;
    font-size: 16px;
  }
  /* Mobile: icons scatter around the hero text — no labels, just colorful badges.
     Hero is a relative container; cards are absolutely positioned. */
  .hero-text {
    position: relative;
    z-index: 2;
    max-width: 100%;
  }

  /* Strip card chrome - keep only the icon */
  .hero-card {
    position: absolute !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    z-index: 1;
    pointer-events: none;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
  }

  /* Hide ALL internal content (title, badges, lists, stats, tables) */
  .hero-card .hf-title,
  .hero-card .hf-badge,
  .hero-card .hf-checklist,
  .hero-card .hf-budget-row,
  .hero-card .hf-budget-nums,
  .hero-card .hf-budget-pct,
  .hero-card .hf-guests-stats,
  .hero-card .hf-tables {
    display: none !important;
  }
  .hero-card .hf-header {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 0 !important;
  }
  .hero-card .hf-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    font-size: 26px;
    box-shadow:
      0 14px 32px rgba(140, 126, 115, 0.16),
      0 3px 8px rgba(140, 126, 115, 0.08);
  }

  /* Scattered positions - all 4 icons frame the hero text organically.
     Top pair sits above the title; bottom pair near the CTA area. */
  .hero-card--tasks   { top: 13% !important; left: 16px !important; }
  .hero-card--budget  { top: 12% !important; right: 14px !important; }
  .hero-card--guests  { bottom: 12% !important; left: 22px !important; }
  .hero-card--seating { bottom: 22% !important; right: 16px !important; }

  /* Playful tilts on settle */
  .hero-card--tasks.anim-in   { transform: rotate(-10deg); }
  .hero-card--budget.anim-in  { transform: rotate(9deg); }
  .hero-card--guests.anim-in  { transform: rotate(-7deg); }
  .hero-card--seating.anim-in { transform: rotate(8deg); }
  .hero-card:hover { transform: none !important; }
}

/* Very small viewports (≤ 380px) — shrink icons a touch and tuck closer to edges */
@media (max-width: 380px) {
  .hero-card .hf-icon {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    font-size: 22px;
  }
  .hero-card--tasks   { left: 10px !important; }
  .hero-card--budget  { right: 10px !important; }
  .hero-card--guests  { left: 14px !important; }
  .hero-card--seating { right: 10px !important; }
}

@media (max-width: 768px) {
  .nav { padding: 12px 12px 0; }

  /* Pill is a morphing container that grows from compact pill to full menu card.
     Long, soft easings make the morph feel like a single fluid motion rather than
     three separate properties resolving in lockstep. */
  .nav-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 0fr;
    align-items: stretch;
    gap: 0;
    padding: 12px 12px 12px 18px;
    width: max-content;
    max-width: calc(100vw - 24px);
    overflow: hidden;
    transition:
      width 0.72s cubic-bezier(0.22, 1, 0.36, 1),
      padding 0.72s cubic-bezier(0.22, 1, 0.36, 1),
      grid-template-rows 0.72s cubic-bezier(0.22, 1, 0.36, 1),
      box-shadow 0.6s ease;
    will-change: width, grid-template-rows;
  }

  .nav-bar__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
    min-width: 110px;
  }

  .nav-toggle { display: flex; }

  /* Links live INSIDE the pill, collapsed by default via grid 0fr row */
  .nav-links {
    overflow: hidden;
    min-height: 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    opacity: 0;
    transform: translateY(0);
    transition: opacity 0.3s ease;
  }
  .nav-links a {
    font-size: 22px;
    font-weight: 400;
    color: var(--text-inverse);
    padding: 16px 4px;
    text-align: left;
    border-bottom: 1px solid rgba(245, 242, 239, 0.08);
    line-height: 1.15;
    letter-spacing: -0.2px;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(14px);
    transition:
      opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
      transform 0.65s cubic-bezier(0.22, 1, 0.36, 1),
      color 0.2s ease;
  }
  .nav-links a:active {
    color: var(--accent);
  }
  .nav-links .nav-dl {
    margin-top: 16px;
    background: var(--accent);
    color: var(--text-primary);
    text-align: center;
    padding: 16px 24px;
    border-radius: 999px;
    border-bottom: none;
    font-weight: 500;
    font-size: 17px;
    letter-spacing: -0.1px;
    white-space: nowrap;
  }

  /* OPEN STATE — pill morphs into full menu */
  body.menu-open .nav-bar {
    width: calc(100vw - 24px);
    padding: 22px 22px 28px 24px;
    grid-template-rows: auto 1fr;
    box-shadow: 0 28px 60px rgba(69, 62, 56, 0.34);
  }
  body.menu-open .nav-bar__head {
    padding-top: 4px;
  }
  body.menu-open .nav-links {
    opacity: 1;
    padding-top: 18px;
    transition: opacity 0.45s ease 0.25s;
  }
  body.menu-open .nav-links a {
    opacity: 1;
    transform: translateY(0);
  }
  /* Stagger: each link arrives ~80ms after the previous, so the menu unfurls
     like a curtain rather than appearing in one beat. */
  body.menu-open .nav-links a:nth-child(1) { transition-delay: 0.30s, 0.30s, 0s; }
  body.menu-open .nav-links a:nth-child(2) { transition-delay: 0.38s, 0.38s, 0s; }
  body.menu-open .nav-links a:nth-child(3) { transition-delay: 0.46s, 0.46s, 0s; }
  body.menu-open .nav-links a:nth-child(4) { transition-delay: 0.54s, 0.54s, 0s; }
  body.menu-open .nav-links a:nth-child(5) { transition-delay: 0.62s, 0.62s, 0s; }
  body.menu-open .nav-links a:nth-child(6) { transition-delay: 0.70s, 0.70s, 0s; }

  /* Body lock + soft blur scrim behind the pill */
  body.menu-open {
    overflow: hidden;
  }
  body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(69, 62, 56, 0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    z-index: 50;
    pointer-events: none;
    visibility: hidden;
    transition:
      background 0.6s cubic-bezier(0.22, 1, 0.36, 1),
      backdrop-filter 0.6s cubic-bezier(0.22, 1, 0.36, 1),
      -webkit-backdrop-filter 0.6s cubic-bezier(0.22, 1, 0.36, 1),
      visibility 0s linear 0.6s;
  }
  body.menu-open::before {
    background: rgba(69, 62, 56, 0.46);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    visibility: visible;
    transition:
      background 0.55s cubic-bezier(0.22, 1, 0.36, 1),
      backdrop-filter 0.55s cubic-bezier(0.22, 1, 0.36, 1),
      -webkit-backdrop-filter 0.55s cubic-bezier(0.22, 1, 0.36, 1),
      visibility 0s;
  }

  /* Step visual cards — tighter padding & sensible width on mobile */
  .step-card {
    padding: 18px 20px;
    min-width: 0;
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    text-align: left;
  }
  .step-card--final {
    padding: 22px 20px;
    flex-direction: row;
    justify-content: center;
    gap: 14px;
  }
  .step-card-check {
    font-size: 32px;
    line-height: 1;
  }
  .step-card-done {
    font-size: 17px;
  }
  /* Dashboard mini-stats — compact horizontal rows instead of tall vertical column */
  .step-card--dashboard {
    flex-direction: column;
    gap: 12px;
    padding: 16px 18px;
  }
  .step-mini-stat {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
  }
  .step-mini-icon {
    margin-bottom: 0;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    font-size: 15px;
  }
  .step-mini-label {
    font-size: 11px;
    letter-spacing: 1.2px;
    color: var(--text-secondary);
  }
  .step-mini-value {
    font-size: 18px;
    letter-spacing: -0.4px;
    font-variant-numeric: tabular-nums;
  }
  /* Names card on mobile — tighter, centered */
  .step-card:not(.step-card--dashboard):not(.step-card--final) {
    text-align: center;
  }
  .step-card-names span {
    font-size: 24px;
  }
  .download-split {
    flex-direction: column;
    text-align: center;
    gap: 0;
  }
  .download-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  .download-buttons {
    justify-content: center;
  }
  /* Hide the phone mockup on mobile — keep the CTA focused on the message + buttons */
  .download-phone {
    display: none;
  }
  .footer-top {
    flex-direction: column;
    gap: 36px;
  }
  .footer-links {
    gap: 28px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
  .invitation-gallery {
    gap: 12px;
  }
  .invitation-card {
    width: clamp(150px, 28vw, 200px);
  }
}

@media (max-width: 480px) {
  .btn {
    justify-content: center;
  }
  .hero {
    padding-left: 18px;
    padding-right: 18px;
  }
  /* Slightly tighter alternation offsets on the smallest screens */
  .hero-card--tasks   { margin-left: 10px;  }
  .hero-card--budget  { margin-right: 10px; }
  .hero-card--guests  { margin-left: 18px;  }
  .hero-card--seating { margin-right: 18px; }
  .hero-photo-strip img {
    height: 200px;
  }
  .footer-links {
    flex-direction: column;
    gap: 24px;
  }
  .download-buttons {
    flex-direction: column;
    align-items: center;
  }
  .invitation-gallery {
    flex-direction: column;
    align-items: center;
  }
  .invitation-card {
    width: 220px;
  }
}
