/* =============================================================
   Yunite - the bank for couples
   Landing page styles. Pure CSS3, no frameworks.
   Layout DNA adopted from a Timon-style airy product page:
   light backgrounds, big rounded containers, pill buttons,
   alternating phone/text feature rows. Brand stays Yunite
   (magenta + Satoshi). Lives in /assets/css/ - asset urls
   are relative to here.

   Contents:
     1.  Fonts
     2.  Tokens
     3.  Reset & base
     4.  Layout helpers + buttons + badges
     5.  Nav
     6.  Hero
     7.  Marquee
     8.  Feature rows
     9.  Benefits (bento grid)
     10. Audience cards
     11. How it works (steps)
     12. Statement (magenta)
     13. Download CTA
     14. FAQ (accordion)
     15. Footer
     16. Motion / reveal
     17. Responsive
     18. Reduced motion
   ============================================================= */

/* ------------------------------------------------------------
   1. FONTS
   ------------------------------------------------------------ */
@font-face { font-family:'Satoshi'; src:url('../fonts/satoshi/Satoshi-Regular.ttf') format('truetype'); font-weight:400; font-style:normal; font-display:swap; }
@font-face { font-family:'Satoshi'; src:url('../fonts/satoshi/Satoshi-Medium.ttf') format('truetype'); font-weight:500; font-style:normal; font-display:swap; }
@font-face { font-family:'Satoshi'; src:url('../fonts/satoshi/Satoshi-Bold.ttf') format('truetype'); font-weight:700; font-style:normal; font-display:swap; }
@font-face { font-family:'Satoshi'; src:url('../fonts/satoshi/Satoshi-Black.ttf') format('truetype'); font-weight:900; font-style:normal; font-display:swap; }
@font-face { font-family:'Playfair Display'; src:url('../fonts/PlayfairDisplay-Italic.ttf') format('truetype'); font-weight:500; font-style:italic; font-display:swap; }
@font-face { font-family:'Playfair Display'; src:url('../fonts/PlayfairDisplay-BoldItalic.ttf') format('truetype'); font-weight:700; font-style:italic; font-display:swap; }

/* ------------------------------------------------------------
   2. TOKENS
   ------------------------------------------------------------ */
:root {
  /* Brand */
  --primary:        #9B1B6A;
  --primary-deep:   #7A1553;
  --primary-tint:   #FDF4FB;
  --primary-tint-2: #F7D6EB;
  --gold:           #C8860A;
  --teal:           #0D9488;

  /* Surfaces */
  --hero-dark:      #0E0D12;
  --dark-elevated:  #171520;
  --cream:          #FBFAF9;
  --white:          #FFFFFF;

  /* Text */
  --ink:            #141118;
  --muted:          #6B7280;
  --on-dark:        rgba(255,255,255,.92);
  --on-dark-soft:   rgba(255,255,255,.72);
  --on-dark-faint:  rgba(255,255,255,.55);

  /* Type */
  --font: 'Satoshi', -apple-system, BlinkMacSystemFont, system-ui, 'Segoe UI', sans-serif;
  --font-accent: 'Playfair Display', Georgia, serif;

  /* Spacing (8px base) */
  --sp-1: 8px; --sp-2: 16px; --sp-3: 24px; --sp-4: 40px; --sp-5: 64px; --sp-6: 96px;

  /* Layout */
  --maxw: 1160px;
  --gutter: clamp(20px, 5vw, 40px);
  --radius-pill: 999px;      /* buttons/badges - Timon-style pills */
  --radius-lg: 28px;         /* big rounded cards/panels */
  --radius-md: 18px;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --reveal-dur: .7s;

  --shadow-sm: 0 1px 2px rgba(20,17,24,.04), 0 6px 20px rgba(20,17,24,.06);
  --shadow-md: 0 20px 50px rgba(20,17,24,.10);
  --shadow-primary: 0 14px 30px rgba(155,27,106,.30);
}

/* ------------------------------------------------------------
   3. RESET & BASE
   ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--primary); text-decoration: none; }

h1, h2, h3, h4 { font-weight: 900; line-height: 1.06; letter-spacing: -0.02em; color: var(--ink); }

:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 6px; }
.on-dark :focus-visible { outline-color: #fff; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 1000;
  background: var(--primary); color: #fff; padding: 10px 18px;
  border-radius: 0 0 10px 0; font-weight: 700;
}
.skip-link:focus { left: 0; }

/* ------------------------------------------------------------
   4. LAYOUT HELPERS + BUTTONS + BADGES
   ------------------------------------------------------------ */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 820px; }

.section { padding-block: clamp(64px, 9vw, 112px); position: relative; }
.section--tint { background: var(--primary-tint); }
.section--white { background: var(--white); }
.section--cream { background: var(--cream); }

.section-head { max-width: 680px; }
.section-head--center { max-width: 720px; margin-inline: auto; text-align: center; }

.section-title { font-size: clamp(2rem, 4.6vw, 3.15rem); line-height: 1.07; }
.section-title em { font-family: var(--font-accent); font-style: italic; font-weight: 700; }

.lead { font-size: clamp(1.0625rem, 1.6vw, 1.25rem); line-height: 1.6; color: var(--muted); }
.center { text-align: center; }

/* Pill badge (eyebrow) with a small mark */
.badge {
  display: inline-flex; align-items: center;
  font-size: .8125rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-tint);   /* flat solid fill, no gradient */
  border: 1px solid var(--primary-tint-2);
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: var(--sp-3);
}
.badge--gold { color: var(--gold); background: rgba(200,134,10,.08); border-color: rgba(200,134,10,.18); }
.badge--on-dark { color: #fff; background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16); }

/* Buttons - our brand style: 14px radius (not pills) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--font); font-weight: 700; font-size: 1rem; line-height: 1;
  letter-spacing: .2px; border-radius: 14px; cursor: pointer;
  text-align: center; border: 0; white-space: nowrap;
}
.btn-primary {
  background: var(--primary); color: #fff; padding: 16px 32px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-primary); background: var(--primary-deep); }
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  background: transparent; color: var(--ink); padding: 15px 26px;
  border: 1.5px solid rgba(20,17,24,.16);
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.btn-outline:hover { border-color: var(--ink); background: rgba(20,17,24,.03); transform: translateY(-2px); }

.btn-ghost-dark { /* outline button on dark backgrounds */
  background: transparent; color: #fff; padding: 15px 26px;
  border: 1.5px solid rgba(255,255,255,.32);
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.btn-ghost-dark:hover { border-color: #fff; background: rgba(255,255,255,.06); transform: translateY(-2px); }

.btn-chevron { transition: transform .18s ease; }
.btn:hover .btn-chevron { transform: translateY(2px); }

.cta-row { display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: center; }
.cta-row--center { justify-content: center; }

/* App store badges */
.store-badges { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.store-badges--center { justify-content: center; }
.store-badge img { height: 54px; width: auto; }
.store-badge { transition: transform .18s ease, opacity .18s ease; border-radius: 15px; }
.store-badge:hover { transform: translateY(-2px); opacity: .92; }

/* Feature bullet list */
.ticks { list-style: none; padding: 0; margin: var(--sp-3) 0 0; display: grid; gap: 12px; }
.ticks li { display: flex; align-items: flex-start; gap: 12px; color: var(--ink); font-weight: 500; }
.ticks svg { flex-shrink: 0; margin-top: 3px; color: var(--primary); }

/* ------------------------------------------------------------
   5. NAV - light theme; dark logo/text, solid on scroll
   ------------------------------------------------------------ */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 100; transition: background .35s var(--ease), box-shadow .35s var(--ease); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }

.nav__logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.nav__logo-img { height: 30px; width: auto; display: block; }
.nav__logo-img--light { display: none; } /* light hero → use dark logo by default */
.nav__logo-img--dark { display: block; }

.nav__menu { display: flex; align-items: center; gap: var(--sp-4); }
.nav__links { display: flex; align-items: center; gap: var(--sp-3); list-style: none; margin: 0; padding: 0; }
.nav__links a {
  position: relative; color: var(--ink); font-weight: 500; font-size: .9375rem; padding: 4px 2px;
  transition: color .2s var(--ease);
}
.nav__links a::after {
  content:''; position: absolute; left: 0; bottom: -2px; width: 100%; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.nav__links a:hover, .nav__links a:focus-visible { color: var(--primary); }
.nav__links a:hover::after, .nav__links a:focus-visible::after { transform: scaleX(1); }

@media (min-width: 861px) {
  .nav__inner { position: relative; }
  .nav__links { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
}

.nav.is-scrolled {
  background: rgba(251,250,249,.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 rgba(20,17,24,.06), 0 8px 30px rgba(20,17,24,.06);
}

.nav__toggle {
  display: none; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 0; background: none; border: 0; cursor: pointer;
}
.nav__toggle span { display: block; width: 22px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .25s var(--ease), opacity .2s var(--ease); }
.nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav .btn-primary { padding: 12px 22px; font-size: .9375rem; }

/* Nav app-store icons: circular, white glyph on magenta (matches footer socials) */
.nav__stores { display: inline-flex; align-items: center; gap: 10px; }
.store-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .18s ease, background .18s ease;
}
.store-icon:hover { transform: translateY(-2px); background: var(--primary-deep); }
.store-icon svg { width: 20px; height: 20px; }

/* ------------------------------------------------------------
   6. HERO - light, centered, headline + app visual below
   ------------------------------------------------------------ */
.hero {
  background: var(--primary-tint);
  text-align: center;
  padding-block: clamp(130px, 17vh, 190px) clamp(48px, 8vw, 88px);
  overflow: hidden;
}
.hero__content { max-width: 860px; margin-inline: auto; }
.hero__title {
  font-weight: 900;
  font-size: clamp(2.6rem, 7.4vw, 5.25rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin-bottom: var(--sp-3);
}
.hero__title em { font-family: var(--font-accent); font-style: italic; font-weight: 700; color: var(--primary); letter-spacing: -0.01em; }
.hero__sub { font-size: clamp(1.0625rem, 2vw, 1.3125rem); line-height: 1.6; color: var(--muted); max-width: 620px; margin: 0 auto var(--sp-4); }
.hero .cta-row { margin-bottom: var(--sp-2); }
.hero__note { font-size: .875rem; color: var(--muted); margin-top: var(--sp-2); }
.hero__note b { color: var(--ink); font-weight: 700; }

/* App visual under the hero copy */
.hero__visual { margin-top: clamp(32px, 6vw, 64px); }
.hero__visual img { margin-inline: auto; width: min(680px, 100%); height: auto; }

/* ------------------------------------------------------------
   7. MARQUEE - infinite scrolling strip of couple-money phrases
   ------------------------------------------------------------ */
.marquee { background: var(--hero-dark); color: #fff; padding-block: 22px; overflow: hidden; }
.marquee__track {
  display: flex; align-items: center; gap: 0; width: max-content;
  animation: marquee 34s linear infinite;
}
.marquee__item { display: inline-flex; align-items: center; font-weight: 700; font-size: 1.0625rem; color: rgba(255,255,255,.9); padding-inline: 26px; }
.marquee__dot { color: var(--gold); font-size: 1.1rem; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee:hover .marquee__track { animation-play-state: paused; }

/* ------------------------------------------------------------
   8. FEATURE ROWS - alternating text / phone media
   ------------------------------------------------------------ */
.feature__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
}
.feature--reverse .feature__text { order: 2; }
.feature--reverse .feature__media { order: 1; }

.feature__title { font-size: clamp(1.75rem, 3.6vw, 2.6rem); line-height: 1.08; margin-bottom: var(--sp-2); }
.feature__body { color: var(--muted); font-size: 1.0625rem; max-width: 520px; }

/* Media panel - a soft rounded card so any screenshot sits consistently.
   Image is anchored to the bottom so it sits flush against the panel edge
   (no gap underneath); breathing room stays at the top and sides only. */
.feature__media {
  display: flex; align-items: flex-end; justify-content: center;
  background: var(--primary-tint);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 4vw, 44px);
  padding-bottom: 0;
  min-height: 300px;
  overflow: hidden;
}
.feature__media--tint2 { background: var(--primary-tint-2); }
.feature__media--dark { background: var(--hero-dark); }
.feature__media img { width: min(420px, 100%); height: auto; display: block; }

/* ------------------------------------------------------------
   9. BENEFITS - 2x2 bento grid
   ------------------------------------------------------------ */
.bento { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-3); margin-top: var(--sp-5); }
.bento__card {
  background: var(--white);
  border: 1px solid rgba(20,17,24,.07);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 38px);
  box-shadow: var(--shadow-sm);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease);
}
.bento__card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.bento__icon {
  width: 52px; height: 52px; border-radius: 15px;
  background: var(--primary-tint); color: var(--primary);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: var(--sp-3);
}
.bento__title { font-size: 1.375rem; font-weight: 900; margin-bottom: 6px; }
.bento__body { color: var(--muted); }

/* ------------------------------------------------------------
   10. AUDIENCE CARDS
   ------------------------------------------------------------ */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-2); margin-top: var(--sp-5); }

/* Tall image cards: photo background, dark scrim, white text at the bottom.
   Background image is set per-card inline in the markup (swap freely). */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  aspect-ratio: 3 / 4;
  min-height: 340px;
  padding: var(--sp-3);
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: #fff;
  background-color: #2a2530;   /* fallback while the photo loads */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
/* Scrim keeps white text readable over any photo (bottom-weighted) */
.card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(14,13,18,.92) 0%, rgba(14,13,18,.55) 42%, rgba(14,13,18,.10) 100%);
}
.card > * { position: relative; z-index: 1; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.card__num {
  position: absolute;
  top: var(--sp-3); left: var(--sp-3);
  z-index: 1;
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px;
  font-weight: 900; font-size: .95rem; color: #fff;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.28);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  margin: 0;
}
.card__title { font-size: 1.3125rem; font-weight: 900; color: #fff; margin-bottom: 6px; }
.card__body { color: rgba(255,255,255,.85); font-size: .95rem; }
.audience__close {
  margin-top: var(--sp-5); text-align: center; font-size: clamp(1.125rem, 2vw, 1.4375rem);
  font-weight: 500; color: var(--ink); max-width: 760px; margin-inline: auto;
}
.audience__close b { font-weight: 900; color: var(--primary); }

/* ------------------------------------------------------------
   11. HOW IT WORKS - numbered steps
   ------------------------------------------------------------ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); margin-top: var(--sp-5); }
.step { position: relative; }
.step__num {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--primary); color: #fff; font-weight: 900; font-size: 1.0625rem;
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: var(--sp-3);
}
.step__title { font-size: 1.375rem; font-weight: 900; margin-bottom: 6px; }
.step__body { color: var(--muted); }
/* connector line between steps on desktop */
.step:not(:last-child) .step__num::after {
  content: ''; position: absolute; top: 23px; left: 60px; right: -20px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--primary-tint-2) 0 8px, transparent 8px 16px);
}
.steps__cta { margin-top: var(--sp-5); text-align: center; }

/* ------------------------------------------------------------
   12. STATEMENT - full-bleed magenta moment
   ------------------------------------------------------------ */
.statement { background: var(--primary); color: #fff; text-align: center; }
.statement__title {
  font-weight: 900; font-size: clamp(2.25rem, 6.2vw, 4.5rem); line-height: 1.05;
  letter-spacing: -0.03em; color: #fff; max-width: 900px; margin-inline: auto;
}
.statement__title .split { display: block; }
.statement__sub { margin: var(--sp-3) auto 0; max-width: 620px; font-size: clamp(1.0625rem, 2vw, 1.3125rem); color: rgba(255,255,255,.85); }
.statement__sub b { color: #fff; font-weight: 700; }

/* ------------------------------------------------------------
   13. DOWNLOAD CTA - dark, badges + phones
   ------------------------------------------------------------ */
.download { background: var(--hero-dark); color: #fff; text-align: center; overflow: hidden; padding-bottom: 0; }
.download__title { font-size: clamp(2rem, 5vw, 3.4rem); color: #fff; line-height: 1.05; max-width: 720px; margin-inline: auto; }
.download__sub { margin: var(--sp-3) auto var(--sp-4); max-width: 540px; color: var(--on-dark-soft); font-size: clamp(1.0625rem, 2vw, 1.25rem); }
.download .store-badges { justify-content: center; }
.download__visual { margin-top: clamp(32px, 6vw, 60px); }
.download__visual img { display: block; margin-inline: auto; width: min(640px, 100%); height: auto; }

/* ------------------------------------------------------------
   14. FAQ - accordion via <details>
   ------------------------------------------------------------ */
.faq__list { max-width: 760px; margin: var(--sp-5) auto 0; }
.faq__item { border-bottom: 1px solid rgba(20,17,24,.1); }
.faq__item summary {
  list-style: none; cursor: pointer; padding: var(--sp-3) 0;
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3);
  font-weight: 700; font-size: 1.125rem; color: var(--ink);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__icon { position: relative; flex-shrink: 0; width: 22px; height: 22px; }
.faq__icon::before, .faq__icon::after {
  content: ''; position: absolute; background: var(--primary); border-radius: 2px;
  top: 50%; left: 50%; transition: transform .25s var(--ease);
}
.faq__icon::before { width: 14px; height: 2px; transform: translate(-50%, -50%); }
.faq__icon::after { width: 2px; height: 14px; transform: translate(-50%, -50%); }
.faq__item[open] .faq__icon::after { transform: translate(-50%, -50%) scaleY(0); }
.faq__answer { padding: 0 0 var(--sp-3); color: var(--muted); max-width: 640px; }

/* ------------------------------------------------------------
   15. FOOTER
   ------------------------------------------------------------ */
.footer { background: var(--hero-dark); color: var(--on-dark-soft); padding-block: var(--sp-6) var(--sp-4); }
.footer__grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr; gap: var(--sp-4); padding-bottom: var(--sp-5); border-bottom: 1px solid rgba(255,255,255,.1); }
.footer__logo { display: inline-block; }
.footer__logo img { height: 30px; width: auto; }
.footer__tag { margin-top: var(--sp-2); color: var(--on-dark-soft); font-size: 1rem; max-width: 280px; }
.footer__email { display: inline-block; margin-top: var(--sp-2); color: #fff; font-weight: 700; transition: color .18s ease; }
.footer__email:hover { color: var(--gold); }
.socials { display: flex; gap: 12px; margin-top: var(--sp-3); }
.social { width: 42px; height: 42px; border-radius: 50%; background: var(--primary); display: inline-flex; align-items: center; justify-content: center; color: #fff; transition: transform .18s ease, background .18s ease; }
.social:hover { transform: translateY(-3px); background: var(--primary-deep); }
.social svg { width: 18px; height: 18px; fill: currentColor; }
.footer__col-title { font-size: .8125rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-faint); margin-bottom: var(--sp-2); }
.footer__list { list-style: none; margin: 0; padding: 0; }
.footer__list li { margin-bottom: 10px; }
.footer__list a { color: var(--on-dark-soft); font-weight: 500; font-size: .9375rem; transition: color .18s ease; }
.footer__list a:hover { color: #fff; }
.footer__base { margin-top: var(--sp-4); display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-4); justify-content: space-between; align-items: flex-end; }
.footer__disclaimer { max-width: 720px; font-size: .8125rem; line-height: 1.6; color: var(--on-dark-faint); }
.footer__copy { font-size: .8125rem; color: var(--on-dark-faint); flex-shrink: 0; }

/* ------------------------------------------------------------
   16. MOTION / REVEAL
   ------------------------------------------------------------ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity var(--reveal-dur) var(--ease), transform var(--reveal-dur) var(--ease); will-change: opacity, transform; }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[style*="--i"] { transition-delay: calc(var(--i) * 80ms); }

.reveal-scale { opacity: 0; transform: translateY(24px) scale(.965); transition: opacity .9s var(--ease), transform .9s var(--ease); will-change: opacity, transform; }
.reveal-scale.is-visible { opacity: 1; transform: none; }

.hero__anim { opacity: 0; transform: translateY(20px); }
body.is-loaded .hero__anim { animation: hero-in .9s var(--ease) forwards; animation-delay: calc(var(--d, 0) * 110ms); }
@keyframes hero-in { to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------
   17. RESPONSIVE
   ------------------------------------------------------------ */
@media (max-width: 980px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .cards { grid-template-columns: repeat(2, 1fr); max-width: 560px; margin-inline: auto; }
  .steps { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; gap: var(--sp-3); }
  .step:not(:last-child) .step__num::after { display: none; }
}

/* Feature rows stack; media always above text for rhythm */
@media (max-width: 860px) {
  .feature__row { grid-template-columns: 1fr; gap: var(--sp-3); }
  .feature--reverse .feature__text,
  .feature__text { order: 2; }
  .feature--reverse .feature__media,
  .feature__media { order: 1; }
  .feature__body { max-width: none; }

  /* Mobile nav */
  .nav__toggle { display: flex; }
  .nav__menu {
    position: absolute; top: 100%; left: 0; right: 0; display: none;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); padding: 6px var(--gutter) 24px;
    border-top: 1px solid rgba(20,17,24,.06); box-shadow: 0 22px 40px rgba(20,17,24,.14);
  }
  .nav.is-open .nav__menu { display: flex; }
  .nav__links { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__links li { border-bottom: 1px solid rgba(20,17,24,.07); }
  .nav__links a { padding: 15px 2px; }
  .nav__links a::after { display: none; }
  .nav__menu .nav__stores { margin-top: 18px; }
  .nav.is-open { background: rgba(251,250,249,.98); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: 0 1px 0 rgba(20,17,24,.06); }
}

@media (max-width: 760px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__base { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 620px) {
  body { font-size: 1rem; }
  .bento { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; max-width: 320px; }
  .nav__inner { height: 66px; }
  .nav__logo-img { height: 26px; }
  .cta-row { flex-direction: column; align-items: stretch; }
  .cta-row .btn { width: 100%; }
  .store-badges { justify-content: center; }
}

/* ------------------------------------------------------------
   18. REDUCED MOTION
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
  .reveal, .reveal-scale, .hero__anim { opacity: 1 !important; transform: none !important; }
  .marquee__track { animation: none !important; }
}
