/* ==========================================================================
   TANDEM — dating landing page
   --------------------------------------------------------------------------
   Design system (edit the tokens in :root to re-skin):

   Palette   cream #FBF5EE · blush #F4D8C9 · peach #F2C4AC (grounds)
             plum #3B1F2B (text) · deep plum #2A1220 → #4A2236 (dark bands)
             terracotta #D9644A (decorative accent), #BF5339 (button fill),
             #A3432B (accent text, AA on cream/blush) · sage #A8B5A0 / #4E5E47
   Type      "Instrument Serif" (display, italics for emotional words)
             "Manrope" (UI + body)
   Shapes    arches (rounded tops, via elliptical radii / container units),
             slowly turning blobs, pills, radii 22–44px, warm plum shadows
   Motion    cinematic but soft (--ease / --ease-out / --spring):
             line-by-line headline, dealt swipe deck with match burst,
             aurora mesh, arch clip-path reveals (scroll-driven where
             supported, IntersectionObserver fallback), word-lit statement,
             drawing timeline, shuffling story stack, price flips.
             Loops pause off-screen; everything is static and visible under
             prefers-reduced-motion or without JS.
   Options   Colour preset, dark mode, header, boxed layout, sans headings,
             sharp corners and motion are driven by data-td-* attributes on
             <html> (see "STYLE OPTIONS" below). The demo switcher
             (css/switcher.css + js/switcher.js + js/theme-init.js) only sets
             those attributes — remove it for production and bake the ones
             you want, e.g. <html lang="en" data-td-preset="sage">.
   ========================================================================== */

:root {
  /* Colour — surfaces & text (redefined by data-td-theme="dark") */
  --cream: #FBF5EE;          /* page background */
  --cream-2: #F4E9DD;        /* tracks, quiet fills */
  --white: #FFFDFB;          /* cards / raised surfaces */
  --ink: #3B1F2B;            /* body text */
  --muted: #6B5560;          /* secondary text */
  --line: rgba(59, 31, 43, 0.12);
  --line-strong: rgba(59, 31, 43, 0.24);
  --plum: #3B1F2B;           /* dark fills (bubbles, pills, chips) */
  --plum-fixed: #3B1F2B;     /* text that always sits on a light chip */
  --on-dark: #FBF5EE;        /* text on plum fills and dark bands */
  --shadow-c: #3B1F2B;       /* shadow tint */

  /* Colour — preset family (overridden by data-td-preset) */
  --accent: #D9644A;         /* decorative accent, rings, strokes */
  --accent-btn: #BF5339;     /* button fills (white text, AA) */
  --accent-ink: #A3432B;     /* accent text on light grounds (AA) */
  --accent-soft: #F2A88F;    /* soft accent, text on dark bands */
  --accent-on-dark: #F2A88F; /* accent text in dark mode (AA) */
  --blush: #F4D8C9;
  --blush-tint: #F8E7DC;
  --peach: #F2C4AC;
  --plum-2: #4A2236;         /* dark band, light end */
  --plum-3: #2A1220;         /* dark band, deep end + footer */
  --glow-peach: var(--peach);
  --glow-blush: var(--blush);

  --sage: #A8B5A0;
  --sage-tint: #E5EBE0;
  --sage-ink: #4E5E47;
  --error: #9E3322;
  --error-tint: #FBE6DF;
  --focus-ring: var(--accent-ink);

  /* Type */
  --font-serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --font-sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: var(--font-serif);
  --display-weight: 400;
  --fs-display: clamp(3.4rem, 1.6rem + 6.4vw, 7.6rem);
  --fs-h2: clamp(2.5rem, 1.5rem + 3.6vw, 4.8rem);
  --fs-h3: clamp(1.45rem, 1.3rem + 0.5vw, 1.8rem);
  --fs-lead: clamp(1.06rem, 1rem + 0.3vw, 1.22rem);
  --fs-body: 1.0625rem;
  --fs-sm: 0.94rem;
  --fs-xs: 0.78rem;

  /* Layout */
  --container: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --space-section: clamp(96px, 6vw + 56px, 168px);
  --scroll-offset: 84px;

  /* Shape (tightened by data-td-corners="sharp") */
  --r-sm: 14px;
  --r-md: 22px;
  --r-lg: 32px;
  --r-xl: 44px;
  --r-card: 28px;
  --r-inner: 20px;
  --r-pill: 999px;

  /* Depth */
  --shadow-sm: 0 1px 2px color-mix(in srgb, var(--shadow-c) 5%, transparent), 0 10px 30px -16px color-mix(in srgb, var(--shadow-c) 22%, transparent);
  --shadow-md: 0 24px 50px -28px color-mix(in srgb, var(--shadow-c) 38%, transparent), 0 6px 16px -10px color-mix(in srgb, var(--shadow-c) 16%, transparent);
  --shadow-lg: 0 50px 90px -40px color-mix(in srgb, var(--shadow-c) 50%, transparent), 0 16px 34px -20px color-mix(in srgb, var(--shadow-c) 28%, transparent);

  /* Motion */
  --ease: cubic-bezier(0.22, 0.8, 0.24, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ==========================================================================
   STYLE OPTIONS — data-td-* attributes on <html>
   --------------------------------------------------------------------------
   These work with or without the demo switcher: bake any of them into the
   page, e.g. <html lang="en" data-td-preset="sage" data-td-theme="dark">.
   To add a preset, copy one block below, give it a new name and set the
   accent family (keep --accent-btn and --accent-ink at 4.5:1 or better).
   ========================================================================== */

/* ---- Colour presets ------------------------------------------------------ */

:root[data-td-preset="rose"] {
  --accent: #C2577A;
  --accent-btn: #B0456A;
  --accent-ink: #9A3A5C;
  --accent-soft: #E9A3BA;
  --accent-on-dark: #F0A6BF;
  --blush: #F3D3DC;
  --blush-tint: #F9E8ED;
  --peach: #EDBFCC;
  --plum-2: #4A1F33;
  --plum-3: #2B1020;
}

:root[data-td-preset="sage"] {
  --accent: #6B8F5E;
  --accent-btn: #4F7346;
  --accent-ink: #456B3D;
  --accent-soft: #B5CDA8;
  --accent-on-dark: #B9D3A8;
  --blush: #DDE7D4;
  --blush-tint: #EEF3E9;
  --peach: #CFDDBF;
  --plum-2: #26382A;
  --plum-3: #142019;
}

:root[data-td-preset="ocean"] {
  --accent: #1F7A8C;
  --accent-btn: #17687A;
  --accent-ink: #145E6E;
  --accent-soft: #8FC3CC;
  --accent-on-dark: #8FD0DA;
  --blush: #D3E6E8;
  --blush-tint: #E8F2F3;
  --peach: #BFDCE0;
  --plum-2: #173847;
  --plum-3: #0D2029;
}

:root[data-td-preset="gold"] {
  --accent: #C98A2E;
  --accent-btn: #9C6514;
  --accent-ink: #8A5A12;
  --accent-soft: #EBC27E;
  --accent-on-dark: #F0C67C;
  --blush: #F3E2C4;
  --blush-tint: #F9F0DF;
  --peach: #EED3A6;
  --plum-2: #3E2A16;
  --plum-3: #24180C;
}

/* Vivid social-app blue: fills use #1877F2 exactly; text uses AA variants. */
:root[data-td-preset="blue"] {
  --accent: #1877F2;
  --accent-btn: #1877F2;
  --accent-ink: #0F5BC4;
  --accent-soft: #8DBBF9;
  --accent-on-dark: #5AA2FF;
  --blush: #D6E6FC;
  --blush-tint: #EBF3FE;
  --peach: #C3DAFB;
  --plum-2: #10264A;
  --plum-3: #0A1630;
}

/* ---- Colour mode: dark --------------------------------------------------- */

:root[data-td-theme="dark"] {
  color-scheme: dark;
  --cream: color-mix(in srgb, var(--plum-3) 55%, #0B0A0C);
  --cream-2: color-mix(in srgb, var(--cream) 86%, #FFFFFF);
  --white: color-mix(in srgb, var(--cream) 92%, #FFFFFF);
  --ink: #F6ECE4;
  --muted: #C7B3BC;
  --line: rgba(255, 236, 228, 0.12);
  --line-strong: rgba(255, 236, 228, 0.24);
  --plum: color-mix(in srgb, var(--plum-2) 90%, #FFFFFF);
  --shadow-c: #000000;
  --accent-ink: var(--accent-on-dark);
  --focus-ring: var(--accent-on-dark);
  --blush: color-mix(in srgb, var(--accent) 22%, var(--cream));
  --blush-tint: color-mix(in srgb, var(--accent) 10%, var(--cream));
  --peach: color-mix(in srgb, var(--accent) 32%, var(--cream));
  --glow-peach: color-mix(in srgb, var(--accent) 45%, transparent);
  --glow-blush: color-mix(in srgb, var(--accent) 30%, transparent);
  --sage-tint: #233024;
  --sage-ink: #B7CDAB;
  --error: #FF9C88;
  --error-tint: #3B1A17;
}

:root[data-td-theme="dark"] .site-footer {
  border-top: 1px solid var(--line);
}

:root[data-td-theme="dark"] .hero__blob-shape img,
:root[data-td-theme="dark"] .phone__photo img {
  opacity: 0.92;
}

/* ---- Header style -------------------------------------------------------- */

:root[data-td-header="solid"] .site-header {
  background: var(--cream);
  box-shadow: 0 1px 0 var(--line);
}

:root[data-td-header="floating"] .site-header {
  top: 12px;
  left: 12px;
  right: 12px;
  max-width: calc(var(--container) + 40px);
  margin-inline: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--cream) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.3) blur(16px);
  backdrop-filter: saturate(1.3) blur(16px);
  box-shadow: var(--shadow-md);
}

:root[data-td-header="floating"] .site-header__inner {
  height: 64px;
  padding-inline: clamp(14px, 2.4vw, 26px);
}

/* A fixed mobile menu must not be trapped by the header's backdrop filter. */
html.nav-locked .site-header,
html.nav-locked[data-td-header] .site-header {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

/* ---- Layout: boxed ------------------------------------------------------- */

@media (min-width: 1200px) {
  :root[data-td-layout="boxed"] {
    background:
      radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--accent) 22%, transparent) 1px, transparent 0) 0 0 / 22px 22px,
      color-mix(in srgb, var(--accent) 10%, var(--cream-2));
  }

  :root[data-td-layout="boxed"] body {
    max-width: 1320px;
    margin-inline: auto;
    box-shadow: 0 0 0 1px var(--line), 0 40px 120px -40px color-mix(in srgb, var(--shadow-c) 45%, transparent);
  }

  :root[data-td-layout="boxed"] .site-header {
    max-width: 1320px;
    margin-inline: auto;
  }

  :root[data-td-layout="boxed"][data-td-header="floating"] .site-header {
    max-width: 1290px;
  }
}

/* ---- Heading font: sans -------------------------------------------------- */

:root[data-td-font="sans"] {
  --font-display: var(--font-sans);
  --display-weight: 800;
  --fs-display: clamp(2.7rem, 1.4rem + 4.8vw, 5.8rem);
  --fs-h2: clamp(2rem, 1.3rem + 2.6vw, 3.6rem);
  --fs-h3: clamp(1.3rem, 1.2rem + 0.4vw, 1.55rem);
}

:root[data-td-font="sans"] :is(.hero__title, .h2, .article-hero__title, .statement__text, .site-footer__giant, .plan__amount, .stats dd, .how__counter span, .match__title, .moments__word) {
  letter-spacing: -0.04em;
}

:root[data-td-font="sans"] :is(.statement__text) {
  font-size: clamp(1.7rem, 1rem + 2.8vw, 3.6rem);
  line-height: 1.12;
}

:root[data-td-font="sans"] .article-hero__title {
  font-size: clamp(2.1rem, 1.2rem + 3.4vw, 4.2rem);
}

:root[data-td-font="sans"] :is(.pcard__name, .tstep__title, .post__title, .squote__text, .safety__list h3, .plan__name, .prose h2, .author-box__name, .phone__name, .logo__word) {
  letter-spacing: -0.025em;
  font-weight: 700;
}

:root[data-td-font="sans"] :is(.squote__text, .prose__lead, .pull-quote p) {
  font-size: 0.86em;
  font-weight: 600;
}

:root[data-td-font="sans"] :is(.squote__text) {
  font-size: clamp(1.3rem, 1.05rem + 1vw, 1.9rem);
}

:root[data-td-font="sans"] :is(.prose__lead) {
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
}

:root[data-td-font="sans"] :is(.pull-quote p) {
  font-size: clamp(1.4rem, 1.15rem + 1vw, 1.9rem);
}

:root[data-td-font="sans"] .moments__word {
  font-size: clamp(1.5rem, 1rem + 1.6vw, 2.4rem);
  font-weight: 700;
}

:root[data-td-font="sans"] :is(.hero__bubble em, .prose em, .join__caption em) {
  font-weight: 700;
  font-size: 1em;
}

/* ---- Corners: sharp ------------------------------------------------------- */

:root[data-td-corners="sharp"] {
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;
  --r-card: 12px;
  --r-inner: 8px;
  --r-pill: 10px;
}

/* Arches and blobs become gentle rounded rectangles. */
:root[data-td-corners="sharp"] :is(
  .pcard, .pcard__media, .matching__photo, .tstep__art, .sphoto, .join__photo,
  .post--featured .post__media, .post__media, .moment, .verify__frame,
  .phone__card, .phone__photo, .benefits__photo, .benefits__media::before,
  .hero__blob-shape, .hero__blob::after, .drift--1, .drift--blob,
  .app__visual::before, .story__photo, .article-cover, .prose__figure img
) {
  border-radius: var(--r-card);
}

:root[data-td-corners="sharp"] :is(.pcard__media, .phone__photo, .post__media, .prose__figure img) {
  border-radius: var(--r-inner);
}

:root[data-td-corners="sharp"] .hero__bubble {
  border-radius: var(--r-inner) var(--r-inner) var(--r-inner) 2px;
}

:root[data-td-corners="sharp"] .deck {
  border-radius: var(--r-card);
}

:root[data-td-corners="sharp"] .phone {
  border-radius: 28px;
}

:root[data-td-corners="sharp"] .phone__screen {
  border-radius: 20px;
}

/* ---- Base ---------------------------------------------------------------- */

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.65;
}

/* Fine film grain over the whole page. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection {
  background: var(--peach);
  color: var(--ink);
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: var(--space-section);
}

em {
  font-style: italic;
}

.muted {
  color: var(--muted);
}

/* Loops are paused while their section is off-screen (set by main.js). */
[data-loop].is-paused,
[data-loop].is-paused *,
[data-loop].is-paused *::before,
[data-loop].is-paused *::after {
  animation-play-state: paused !important;
}

/* ---- Typography ------------------------------------------------------------ */

.h2,
.hero__title {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  letter-spacing: -0.015em;
  line-height: 1;
  text-wrap: balance;
}

.h2 {
  font-size: var(--fs-h2);
  margin-bottom: 22px;
}

.h2 em,
.hero__title em {
  color: var(--accent-ink);
}

/* Headings rise with a slight skew instead of the default fade.
   (No clip-path here: a fully clipped target never intersects.) */
.js .h2[data-reveal] {
  transform: translate3d(0, 0.45em, 0) skewY(2.5deg);
  transform-origin: left bottom;
  transition:
    opacity 1s var(--ease-out),
    transform 1.1s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}

.js .section-head--center .h2[data-reveal] {
  transform-origin: center bottom;
}

.js .h2[data-reveal].is-visible {
  transform: none;
}

.lead {
  font-size: var(--fs-lead);
  color: var(--muted);
  max-width: 36rem;
  text-wrap: pretty;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

.eyebrow__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 0 0 4px rgba(168, 181, 160, 0.3);
}

.eyebrow--light {
  color: var(--accent-soft);
}

.section-head {
  margin-bottom: clamp(48px, 5vw, 72px);
}

.section-head--center {
  text-align: center;
}

.section-head--center .lead {
  margin-inline: auto;
}

/* ---- Buttons (fill-wipe + magnetic) ---------------------------------------- */

.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border: 1.5px solid transparent;
  border-radius: var(--r-pill);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.45s var(--ease), border-color 0.45s var(--ease), box-shadow 0.45s var(--ease), translate 0.5s var(--ease);
}

/* The wipe layer slides in from the left on hover, out to the right after. */
.btn::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: var(--wipe, var(--plum));
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.55s var(--ease);
}

.btn:hover::before,
.btn:focus-visible::before {
  transform: scaleX(1);
  transform-origin: left center;
}

.btn__icon {
  width: 18px;
  height: 18px;
  transition: transform 0.4s var(--ease);
}

.btn:hover .btn__icon {
  transform: translateX(4px);
}

.btn--primary {
  --wipe: var(--plum);
  background: var(--accent-btn);
  color: #fff;
  box-shadow: 0 14px 28px -14px color-mix(in srgb, var(--accent-btn) 80%, transparent);
}

.btn--primary:hover {
  box-shadow: 0 16px 30px -14px color-mix(in srgb, var(--shadow-c) 70%, transparent);
}

.btn--ghost {
  --wipe: var(--plum);
  border-color: var(--line-strong);
  color: var(--ink);
  background: transparent;
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  color: var(--on-dark);
  border-color: var(--ink);
}

.btn--light {
  --wipe: var(--accent-soft);
  background: var(--cream);
  color: var(--ink);
}

.btn--lg {
  min-height: 58px;
  padding: 0 32px;
  font-size: 1rem;
}

.btn--block {
  width: 100%;
}

.icon-btn {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--spring);
}

.icon-btn svg {
  width: 20px;
  height: 20px;
}

.icon-btn:hover {
  background: var(--plum);
  border-color: var(--ink);
  color: var(--on-dark);
}

.icon-btn:active {
  transform: scale(0.92);
}

/* ---- Logo ------------------------------------------------------------------ */

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  min-height: 44px;
}

.logo__mark {
  width: 40px;
  height: 28px;
  overflow: visible;
}

.logo__mark circle {
  transition: transform 0.6s var(--spring);
}

.logo:hover .logo__c1 { transform: translateX(3px); }
.logo:hover .logo__c2 { transform: translateX(-3px); }

.logo__word {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: 1.85rem;
  line-height: 1;
  letter-spacing: -0.01em;
}

.logo--light {
  color: var(--on-dark);
}

/* ==========================================================================
   HEADER + NAVIGATION
   ========================================================================== */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  transition: background-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.site-header.is-scrolled {
  background: color-mix(in srgb, var(--cream) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.3) blur(16px);
  backdrop-filter: saturate(1.3) blur(16px);
  box-shadow: 0 1px 0 var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}

.nav-toggle {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  width: 48px;
  height: 48px;
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
  background: var(--white);
}

.nav-toggle__bar {
  display: block;
  width: 18px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.45s var(--spring);
}

[data-nav].is-open .nav-toggle__bar:first-child { transform: translateY(3.75px) rotate(45deg); }
[data-nav].is-open .nav-toggle__bar:last-child { transform: translateY(-3.75px) rotate(-45deg); }

/* Mobile panel: opens with an arch-shaped clip from the top-right. */
.site-nav {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 110px var(--gutter) 40px;
  overflow-y: auto;
  background:
    radial-gradient(120% 60% at 100% 0%, var(--blush) 0%, transparent 60%),
    var(--cream);
  clip-path: circle(0% at calc(100% - 44px) 38px);
  visibility: hidden;
  transition: clip-path 0.7s var(--ease-out), visibility 0s linear 0.7s;
}

[data-nav].is-open .site-nav {
  clip-path: circle(150% at calc(100% - 44px) 38px);
  visibility: visible;
  transition: clip-path 0.8s var(--ease-out), visibility 0s;
}

.site-nav__list {
  display: grid;
}

.site-nav__list a {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: clamp(2.1rem, 8.5vw, 2.8rem);
  line-height: 1.15;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.3s, transform 0.4s var(--ease);
}

.site-nav__list a:hover {
  color: var(--accent-ink);
  font-style: italic;
  transform: translateX(6px);
}

.site-nav__list a[aria-current="true"] {
  color: var(--accent-ink);
  font-style: italic;
}

.site-nav__actions .btn {
  width: 100%;
  min-height: 56px;
}

.site-nav__note {
  margin-top: auto;
  font-size: var(--fs-sm);
  color: var(--muted);
}

.site-nav__note em {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: 1.15em;
  color: var(--accent-ink);
}

@media (min-width: 1080px) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 36px;
    padding: 0;
    overflow: visible;
    background: none;
    clip-path: none;
    visibility: visible;
    transition: none;
  }

  .site-nav__list {
    display: flex;
    gap: 6px;
  }

  .site-nav__list a {
    position: relative;
    padding: 10px 14px;
    border: 0;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
  }

  .site-nav__list a::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 6px;
    height: 1.5px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.45s var(--ease);
  }

  .site-nav__list a:hover {
    font-style: normal;
    transform: none;
  }

  .site-nav__list a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
  }

  .site-nav__list a[aria-current="true"] {
    color: var(--accent-ink);
  }

  .site-nav__list a[aria-current="true"]::after {
    transform: scaleX(1);
  }

  .site-nav__actions .btn {
    width: auto;
    min-height: 48px;
  }

  .site-nav__note {
    display: none;
  }
}

/* ==========================================================================
   HERO
   ========================================================================== */

.hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding: 112px 0 clamp(64px, 6vw, 104px);
}

/* Aurora mesh: four soft colour fields drifting on transform only. */
.hero__aurora {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.aurora {
  position: absolute;
  width: 70vmax;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, var(--c) 0%, transparent 62%);
  animation: aurora 24s ease-in-out infinite alternate;
  will-change: transform;
}

.aurora--1 { --c: color-mix(in srgb, var(--accent-soft) 55%, transparent); --ax: -8vw; --ay: 6vh; top: -40%; right: -30%; }
.aurora--2 { --c: rgba(168, 181, 160, 0.4); --ax: 10vw; --ay: -8vh; bottom: -55%; left: -30%; animation-duration: 30s; }
.aurora--3 { --c: color-mix(in srgb, var(--glow-blush) 85%, transparent); --ax: 6vw; --ay: 10vh; top: -30%; left: 5%; animation-duration: 20s; }
.aurora--4 { --c: rgba(160, 70, 100, 0.16); --ax: -10vw; --ay: -6vh; bottom: -50%; right: -15%; animation-duration: 34s; }

@keyframes aurora {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(var(--ax), var(--ay), 0) scale(1.18); }
  100% { transform: translate3d(calc(var(--ax) * -0.6), calc(var(--ay) * 0.8), 0) scale(0.92); }
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 48px;
}

.hero__copy {
  max-width: 660px;
}

/* Load sequence (pure CSS so it also plays without JS) */
@keyframes rise {
  from { opacity: 0; transform: translate3d(0, 105%, 0); }
  to { opacity: 1; transform: none; }
}

@keyframes fade-up {
  from { opacity: 0; transform: translate3d(0, 24px, 0); }
  to { opacity: 1; transform: none; }
}

@keyframes write {
  from { clip-path: inset(-10% 100% -30% 0); }
  to { clip-path: inset(-10% -8% -30% 0); }
}

@keyframes draw {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}

.hero__in {
  animation: fade-up 1s var(--ease-out) both;
  animation-delay: calc(0.2s + var(--d, 0) * 0.12s);
}

.hero__title {
  font-size: var(--fs-display);
  line-height: 0.92;
  margin-bottom: 28px;
}

.hero__title .line {
  display: block;
  overflow: hidden;
  padding: 0.04em 0.12em 0.06em 0;
  margin-bottom: -0.06em;
}

.hero__title .line > span {
  display: inline-block;
  animation: rise 1.1s var(--ease-out) both;
  animation-delay: calc(0.15s + var(--d, 0) * 0.13s);
}

.hero__title .line--em {
  padding-bottom: 0.22em;
}

.hero__em {
  position: relative;
  display: inline-block;
  padding-right: 0.06em;
  animation: write 1.4s var(--ease-out) 0.75s both;
}

.hero__swash {
  position: absolute;
  left: 0;
  right: 0.1em;
  bottom: -0.12em;
  width: calc(100% - 0.1em);
  height: 0.22em;
  overflow: visible;
}

.hero__swash path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
  animation: draw 1.1s var(--ease-out) 1.6s both;
}

.hero__lead {
  font-size: var(--fs-lead);
  color: var(--muted);
  max-width: 34rem;
  margin-bottom: 34px;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.hero__proof {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: var(--fs-sm);
  line-height: 1.5;
}

.hero__proof strong {
  font-weight: 800;
}

.stars {
  display: inline-block;
  vertical-align: -2px;
  color: var(--accent);
}

.stars svg {
  width: 15px;
  height: 15px;
}

.avatar-stack {
  display: flex;
  flex-shrink: 0;
}

.avatar-stack li + li {
  margin-left: -12px;
}

.avatar-stack img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--cream);
}

@media (max-width: 479.98px) {
  .hero__ctas {
    flex-direction: column;
  }

  .hero__ctas .btn {
    width: 100%;
  }
}

/* ---- Hero visual: morphing photo blob + swipe deck ------------------------- */

.hero__visual {
  --card-w: min(290px, 70vw);
  position: relative;
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
  height: calc(var(--card-w) * 1.25 + 300px);
}

.hero__layer {
  transition: translate 0.9s var(--ease-out);
}

.hero__blob {
  position: absolute;
  left: calc(50% - min(250px, 52%));
  top: 0;
  width: min(500px, 104%);
  aspect-ratio: 1;
  animation: fade-up 1.4s var(--ease-out) 0.1s both;
}

/* The mask turns one way while the photo counter-turns, so the shape seems
   to morph while the image stays upright — transform only. */
.hero__blob-shape {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 44% 56% 61% 39% / 42% 47% 53% 58%;
  animation: spin 30s linear infinite;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.hero__blob-shape img {
  position: absolute;
  inset: -12%;
  width: 124%;
  height: 124%;
  max-width: none;
  object-fit: cover;
  animation: spin 30s linear infinite reverse;
}

.hero__blob-shape::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, color-mix(in srgb, var(--cream) 5%, transparent) 30%, color-mix(in srgb, var(--cream) 65%, transparent) 100%);
}

.hero__blob::after {
  content: "";
  position: absolute;
  inset: -5%;
  border: 1.5px solid color-mix(in srgb, var(--accent) 45%, transparent);
  border-radius: 56% 44% 40% 60% / 52% 58% 42% 48%;
  animation: spin 40s linear infinite reverse;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.hero__doodle {
  position: absolute;
  inset: 4% -6% auto;
  width: 112%;
  max-width: none;
  color: var(--accent);
  opacity: 0.5;
}

.hero__doodle path {
  stroke-dasharray: 1;
  animation: draw 3s var(--ease-out) 1s both;
}

/* Deck */
.deck {
  position: absolute;
  left: 50%;
  top: 34px;
  width: var(--card-w);
  height: calc(var(--card-w) * 1.25 + 170px);
  transform: translateX(-50%);
  border-radius: 50cqi;
  outline-offset: 10px;
}

.deck:focus-visible {
  outline: 2px dashed var(--accent-ink);
}

.deck__card {
  --tx: 0;
  --ty: 0px;
  --tr: 0deg;
  --ts: 1;
  container-type: inline-size;
  position: absolute;
  inset: 0 0 auto 0;
  transform: translate(var(--tx), var(--ty)) rotate(var(--tr)) scale(var(--ts));
  transform-origin: 50% 85%;
  transition: transform 0.7s var(--ease-out);
  animation: deal 1s var(--ease-out) both;
  animation-delay: calc(0.55s + var(--i, 0) * 0.15s);
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
}

.deck__card[data-pos="0"] { z-index: 3; }
.deck__card[data-pos="1"] { --tx: 13%; --ty: 12px; --tr: 6deg; --ts: 0.93; z-index: 2; }
.deck__card[data-pos="2"] { --tx: -13%; --ty: 20px; --tr: -6deg; --ts: 0.87; z-index: 1; }

.deck__card.is-dragging {
  transition: none;
  cursor: grabbing;
}

@keyframes deal {
  from { opacity: 0; translate: 46vw 60px; rotate: 28deg; }
  to { opacity: 1; translate: 0 0; rotate: 0deg; }
}

.deck__card img {
  pointer-events: none;
}

.deck__card:not([data-pos="0"]) .pcard__body {
  opacity: 0;
}

.deck__card:not([data-pos="0"]) .pcard {
  box-shadow: var(--shadow-md);
}

.deck__card[data-pos="0"] .pcard {
  animation: float 7s ease-in-out 2s infinite;
}

.deck__card.is-dragging .pcard {
  animation-play-state: paused;
}

@keyframes float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -9px; }
}

/* Profile card */
.pcard {
  position: relative;
  padding: 10px;
  border-radius: 50cqi 50cqi 28px 28px;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}

.pcard__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: calc(50cqi - 10px) calc(50cqi - 10px) 20px 20px;
  background: var(--blush);
}

.pcard__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pcard__verified {
  position: absolute;
  left: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px 5px 6px;
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--white) 94%, transparent);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ink);
}

.pcard__verified svg {
  width: 16px;
  height: 16px;
  color: var(--sage-ink);
}

.stamp {
  position: absolute;
  top: 22%;
  padding: 6px 14px;
  border: 2.5px solid currentColor;
  border-radius: 12px;
  background: color-mix(in srgb, var(--white) 88%, transparent);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
}

.stamp--like {
  left: 14px;
  color: var(--sage-ink);
  transform: rotate(-12deg) scale(calc(0.8 + var(--like, 0) * 0.2));
  opacity: var(--like, 0);
}

.stamp--pass {
  right: 14px;
  color: var(--accent-ink);
  transform: rotate(12deg) scale(calc(0.8 + var(--pass, 0) * 0.2));
  opacity: var(--pass, 0);
}

.pcard__body {
  height: 148px;
  overflow: hidden;
  padding: 14px 8px 8px;
  transition: opacity 0.5s var(--ease);
}

.pcard__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.pcard__name {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: clamp(1.4rem, 9cqi, 1.85rem);
  line-height: 1;
  margin-bottom: 4px;
}

.pcard__meta {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
}

.pcard__meta svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chips li {
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--cream);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink);
}

@media (max-width: 419.98px) {
  .deck .chips li:nth-child(n+3) {
    display: none;
  }
}

/* Deck controls */
.deck__controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  animation: fade-up 1s var(--ease-out) 1.2s both;
}

.deck__btn {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border: 0;
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  transition: transform 0.4s var(--spring), box-shadow 0.4s var(--ease);
}

.deck__btn svg {
  width: 24px;
  height: 24px;
}

.deck__btn--pass {
  background: var(--white);
  color: var(--ink);
  border: 1.5px solid var(--line);
}

.deck__btn--like {
  background: var(--accent-btn);
  color: #fff;
}

.deck__btn:hover {
  transform: scale(1.08) rotate(-6deg);
}

.deck__btn--like:hover {
  transform: scale(1.08) rotate(12deg);
}

.deck__btn:active {
  transform: scale(0.92);
}

.deck__hint {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}

/* Floating companions */
.hero__float {
  position: absolute;
  z-index: 4;
  display: none;
}

.hero__bubble {
  width: 250px;
  padding: 16px 18px;
  border-radius: 22px 22px 22px 6px;
  background: var(--plum);
  color: var(--on-dark);
  box-shadow: var(--shadow-lg);
  animation: fade-up 1s var(--ease-out) 1.5s both, float 8s ease-in-out 2.5s infinite;
}

.hero__bubble-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-soft);
}

.hero__bubble-label svg {
  width: 15px;
  height: 15px;
}

.hero__bubble p {
  font-size: 0.88rem;
  line-height: 1.5;
}

.hero__bubble em {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: 1.12em;
}

.float-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px 10px 10px;
  border-radius: var(--r-pill);
  background: var(--white);
  box-shadow: var(--shadow-md);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
  animation: fade-up 1s var(--ease-out) 1.7s both, float 9s ease-in-out 3s infinite;
}

.float-chip svg {
  width: 22px;
  height: 22px;
  color: var(--sage-ink);
}

@media (min-width: 640px) {
  .hero__visual {
    --card-w: 300px;
  }

  .hero__float {
    display: block;
  }

  .hero__float--bubble {
    left: 0;
    top: 32%;
  }

  .hero__float--chip {
    right: 0;
    top: 8%;
  }
}

@media (min-width: 1080px) {
  .hero {
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding-top: 120px;
  }

  .hero__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(32px, 4vw, 72px);
  }

  .hero__visual {
    --card-w: 318px;
  }

  .hero__blob {
    left: calc(50% - 170px);
    top: -14px;
    width: 520px;
  }

  .hero__float--bubble {
    left: -4%;
    top: 40%;
  }
}

/* Match moment */
.match {
  position: absolute;
  inset: 0 0 80px;
  z-index: 10;
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0s linear 0.4s;
}

.match::before {
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--cream) 92%, transparent) 0%, color-mix(in srgb, var(--cream) 0%, transparent) 70%);
}

.match.is-on {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s var(--ease), visibility 0s;
}

.match__card {
  position: relative;
  padding: 22px 30px 24px;
  border-radius: var(--r-card);
  background: var(--plum);
  color: var(--on-dark);
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.match.is-on .match__card {
  animation: pop 0.7s var(--spring) both;
}

@keyframes pop {
  from { transform: scale(0.5) rotate(-6deg); opacity: 0; }
  to { transform: none; opacity: 1; }
}

.match__faces {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}

.match__faces img {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--plum);
}

.match__faces img + img {
  margin-left: -14px;
}

.match.is-on .match__faces img:first-child { animation: slide-l 0.8s var(--spring) 0.1s both; }
.match.is-on .match__faces img:last-child { animation: slide-r 0.8s var(--spring) 0.1s both; }

@keyframes slide-l { from { transform: translateX(-40px); opacity: 0; } }
@keyframes slide-r { from { transform: translateX(40px); opacity: 0; } }

.match__title {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: 2.4rem;
  line-height: 1;
}

.match__title em {
  color: var(--accent-soft);
}

.match__sub {
  margin-top: 6px;
  font-size: 0.84rem;
  color: color-mix(in srgb, var(--on-dark) 78%, transparent);
}

.match__burst,
.form__burst {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  pointer-events: none;
}

/* Soft-shape particles (created by main.js) */
.particle {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--s, 10px);
  height: var(--s, 10px);
  margin: calc(var(--s, 10px) / -2) 0 0 calc(var(--s, 10px) / -2);
  border-radius: 50%;
  background: var(--c, var(--accent));
  will-change: transform, opacity;
}

.particle--ring { background: none; border: 2px solid var(--c); }
.particle--pill { width: calc(var(--s) * 2.2); border-radius: var(--r-card); }
.particle--arch { border-radius: 99px 99px 3px 3px; height: calc(var(--s) * 1.3); }

/* ---- Compatibility ring ---------------------------------------------------- */

.ring {
  position: relative;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
}

.ring svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.ring circle {
  fill: none;
  stroke-width: 3.4;
}

.ring__track {
  stroke: var(--cream-2);
}

.ring__fill {
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: calc(100 - var(--p, 0));
  transition: stroke-dashoffset 1.6s var(--ease-out);
}

.js .ring:not(.is-filled) .ring__fill {
  stroke-dashoffset: 100;
}

.ring > span {
  position: relative;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.ring--sm {
  width: 44px;
  height: 44px;
}

.ring--sm > span {
  font-size: 0.68rem;
}

/* ==========================================================================
   REAL MOMENTS MARQUEE
   ========================================================================== */

.moments {
  overflow: hidden;
  padding: 26px 0;
  border-block: 1px solid var(--line);
  background: var(--white);
}

.moments__track {
  display: flex;
  width: max-content;
  animation: marquee 70s linear infinite;
}

.moments:hover .moments__track {
  animation-play-state: paused;
}

.moments__set {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 36px);
  padding-right: clamp(20px, 3vw, 36px);
}

.moment {
  flex-shrink: 0;
  width: clamp(104px, 11vw, 150px);
  aspect-ratio: 5 / 6;
  overflow: hidden;
  border-radius: 50% 50% 18px 18px / 42% 42% 18px 18px;
}

.moment--pill {
  width: clamp(150px, 15vw, 210px);
  aspect-ratio: 5 / 3;
  border-radius: var(--r-pill);
}

.moment img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.moment:nth-child(4n + 1) { rotate: -3deg; }
.moment:nth-child(4n + 3) { rotate: 3deg; }

.moments__word {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: clamp(1.8rem, 1.2rem + 2vw, 3rem);
  line-height: 1;
  white-space: nowrap;
  color: var(--ink);
}

.moments__word em {
  color: var(--accent-ink);
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ==========================================================================
   STATEMENT (words light up with scroll)
   ========================================================================== */

.statement {
  position: relative;
  overflow: clip;
  padding-block: clamp(110px, 12vw, 200px) clamp(40px, 5vw, 80px);
}

.statement .container {
  position: relative;
  z-index: 1;
}

.statement__text {
  max-width: 19em;
  margin-inline: auto;
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: clamp(2.1rem, 1.1rem + 3.8vw, 4.9rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-align: center;
  text-wrap: balance;
}

.statement__text em {
  color: var(--accent-ink);
}

.js .statement__text .w {
  opacity: 0.14;
  transition: opacity 0.5s var(--ease);
}

.js .statement__text .w.is-lit {
  opacity: 1;
}

/* Drifting soft shapes — scroll-driven where supported, JS parallax otherwise */
.drift {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  translate: 0 var(--parallax-y, 0);
}

.drift--1 {
  top: 12%;
  left: 5%;
  width: clamp(70px, 9vw, 130px);
  aspect-ratio: 3 / 4;
  border: 1.5px solid color-mix(in srgb, var(--accent) 50%, transparent);
  border-radius: 50% 50% 14px 14px / 38% 38% 14px 14px;
}

.drift--2 {
  bottom: 6%;
  right: 7%;
  width: clamp(60px, 8vw, 110px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--sage-tint);
}

.drift--3 {
  top: 16%;
  right: 14%;
  width: clamp(90px, 12vw, 170px);
  height: clamp(34px, 4vw, 56px);
  border-radius: var(--r-pill);
  background: var(--blush);
  rotate: -14deg;
}

.drift--blob {
  right: -4%;
  top: -6%;
  width: clamp(90px, 12vw, 160px);
  aspect-ratio: 1;
  border-radius: 44% 56% 61% 39% / 42% 47% 53% 58%;
  background: var(--peach);
  opacity: 0.7;
  z-index: -1;
}

/* ==========================================================================
   SCROLL-DRIVEN MOTION (with IntersectionObserver fallback)
   ========================================================================== */

@keyframes arch-open {
  from { clip-path: inset(38% 14% 0 14% round 240px 240px 24px 24px); }
  to { clip-path: inset(0 0 0 0 round 0); }
}

@keyframes img-settle {
  from { transform: scale(1.28); }
  to { transform: scale(1); }
}

@keyframes drift-y {
  from { transform: translate3d(0, 70px, 0) rotate(-10deg); }
  to { transform: translate3d(0, -70px, 0) rotate(10deg); }
}

@keyframes phone-in {
  from { transform: translate3d(0, 80px, 0) rotate(9deg); }
  to { transform: translate3d(0, 0, 0) rotate(-3deg); }
}

@supports (animation-timeline: view()) {
  .arch-reveal {
    animation: arch-open linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 42%;
  }

  .arch-reveal img {
    animation: img-settle linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 70%;
  }

  .drift {
    translate: none;
    animation: drift-y linear both;
    animation-timeline: view();
  }

  .app__visual .phone {
    animation: float 8s ease-in-out infinite, phone-in linear both;
    animation-timeline: auto, view();
    animation-range: normal, entry 0% cover 55%;
  }
}

@supports not (animation-timeline: view()) {
  .js .arch-reveal {
    clip-path: inset(38% 14% 0 14% round 240px 240px 24px 24px);
    transition: clip-path 1.5s var(--ease-out);
  }

  .js .arch-reveal img {
    transform: scale(1.22);
    transition: transform 2s var(--ease-out);
  }

  .js .arch-reveal.is-inview {
    clip-path: inset(0 0 0 0 round 0);
  }

  .js .arch-reveal.is-inview img {
    transform: none;
  }
}

/* ==========================================================================
   HOW IT WORKS — sticky intro + drawing timeline
   ========================================================================== */

.how {
  background:
    radial-gradient(50% 40% at 80% 10%, color-mix(in srgb, var(--glow-peach) 45%, transparent), transparent 70%),
    linear-gradient(180deg, var(--blush-tint) 0%, var(--cream) 100%);
}

.how__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 48px;
}

.how__counter {
  display: none;
}

.timeline {
  --art: 76px;
  position: relative;
  display: grid;
  gap: 22px;
}

.timeline__line {
  position: absolute;
  top: calc(var(--art) / 2);
  bottom: calc(var(--art) / 2);
  left: calc(var(--art) / 2 - 1px);
  width: 2px;
  overflow: hidden;
  border-radius: 2px;
  background: var(--line);
}

.timeline__fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--accent), var(--peach));
  transform: scaleY(var(--progress, 1));
  transform-origin: top;
}

.js .timeline__fill {
  transform: scaleY(var(--progress, 0));
}

.tstep {
  position: relative;
  display: grid;
  grid-template-columns: var(--art) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.tstep__art {
  display: grid;
  place-items: center;
  width: var(--art);
  aspect-ratio: 1 / 1.12;
  border: 1px solid var(--line-strong);
  border-radius: 50% 50% 18px 18px / 44% 44% 18px 18px;
  background: var(--cream);
  transition: background-color 0.6s var(--ease), border-color 0.6s var(--ease), transform 0.6s var(--spring);
}

.tstep__art svg {
  width: 66%;
}

.tstep__art svg * {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1.4s var(--ease-out);
}

.tstep__art svg .acc {
  stroke: var(--accent);
}

.tstep__body {
  padding: 20px 22px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: color-mix(in srgb, var(--white) 75%, transparent);
  box-shadow: var(--shadow-sm);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease-out), border-color 0.6s;
}

.tstep__num {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--accent-ink);
}

.tstep__title {
  margin-bottom: 6px;
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: var(--fs-h3);
  font-weight: var(--display-weight);
  line-height: 1.15;
}

.tstep p {
  font-size: var(--fs-sm);
  color: var(--muted);
}

/* Inactive state only exists with JS; it lights up as you scroll. */
.js .tstep:not(.is-active) .tstep__body {
  opacity: 0.4;
  transform: translateX(14px);
}

.js .tstep:not(.is-active) .tstep__art svg * {
  stroke-dashoffset: 1;
}

.tstep.is-active .tstep__art {
  border-color: var(--accent);
  background: var(--white);
  transform: scale(1.04);
}

.tstep.is-active .tstep__body {
  border-color: color-mix(in srgb, var(--accent) 25%, transparent);
}

@media (min-width: 768px) {
  .timeline {
    --art: 104px;
    gap: 30px;
  }

  .tstep {
    gap: 28px;
  }

  .tstep__body {
    padding: 26px 30px 28px;
  }
}

@media (min-width: 1080px) {
  .how__grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(48px, 6vw, 110px);
    align-items: start;
  }

  .how__intro {
    position: sticky;
    top: 130px;
  }

  .how__counter {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-top: 40px;
    font-family: var(--font-display);
    font-weight: var(--display-weight);
    line-height: 0.9;
    color: var(--accent-ink);
  }

  .how__counter span {
    display: inline-block;
    font-size: clamp(6rem, 9vw, 9rem);
    font-style: italic;
  }

  .how__counter span.is-flip {
    animation: num-flip 0.6s var(--ease-out);
  }

  .how__counter small {
    font-size: 1.6rem;
    color: var(--muted);
  }

  .timeline {
    gap: 40px;
  }
}

@keyframes num-flip {
  from { opacity: 0; transform: translateY(40%) rotate(-6deg); }
  to { opacity: 1; transform: none; }
}

/* ==========================================================================
   BENEFITS
   ========================================================================== */

.benefits {
  overflow: clip;
}

.benefits__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 64px;
}

.benefits__media {
  position: relative;
  max-width: 480px;
  width: 100%;
  margin-inline: auto;
}

.benefits__photo {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-md);
}

.benefits__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 46% 50%;
}

.benefits__media::before {
  content: "";
  position: absolute;
  inset: 8% -6% -4% 10%;
  z-index: -1;
  border-radius: var(--r-pill);
  background: var(--sage-tint);
}

.benefits__stat {
  position: absolute;
  right: 0;
  bottom: 9%;
  z-index: 1;
  display: grid;
  gap: 4px;
  max-width: 230px;
  padding: 20px 22px;
  border-radius: var(--r-card);
  background: var(--plum);
  color: var(--on-dark);
  box-shadow: var(--shadow-lg);
}

.benefits__stat strong {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: 2.8rem;
  font-weight: var(--display-weight);
  line-height: 1;
  color: var(--accent-soft);
}

.benefits__stat span {
  font-size: 0.86rem;
  line-height: 1.45;
}

.benefit-list {
  display: grid;
  gap: 28px 36px;
  margin-top: 40px;
}

.benefit-list li {
  display: flex;
  gap: 16px;
}

.benefit-list li > svg {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--accent-ink);
  transition: transform 0.6s var(--spring), background-color 0.4s, color 0.4s;
}

.benefit-list li:hover > svg {
  transform: rotate(-14deg) scale(1.08);
  background: var(--plum);
  color: var(--accent-soft);
}

.benefit-list h3 {
  margin-bottom: 4px;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.35;
}

.benefit-list p {
  font-size: 0.93rem;
  color: var(--muted);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--line-strong);
}

.stats div {
  display: flex;
  flex-direction: column-reverse;
  gap: 6px;
}

.stats dd {
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: clamp(2rem, 1.4rem + 2vw, 3.2rem);
  line-height: 1;
  color: var(--ink);
}

.stats dt {
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--muted);
}

@media (min-width: 640px) {
  .benefit-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1080px) {
  .benefits__grid {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    align-items: center;
    gap: clamp(48px, 6vw, 100px);
  }

  .benefits__stat {
    right: -8%;
  }
}

/* ==========================================================================
   SUCCESS STORIES — shuffling photo stack + crossfading quotes
   ========================================================================== */

.stories {
  overflow: clip;
  background:
    radial-gradient(40% 50% at 90% 10%, color-mix(in srgb, var(--glow-peach) 55%, transparent), transparent 70%),
    radial-gradient(35% 40% at 0% 90%, rgba(168, 181, 160, 0.22), transparent 70%),
    linear-gradient(180deg, var(--blush-tint) 0%, var(--blush-tint) 70%, var(--cream) 100%);
}

.stories__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 56px;
}

.stories__stack {
  position: relative;
  width: min(100%, 470px);
  margin-inline: auto;
  aspect-ratio: 4 / 4.7;
}

.sphoto {
  --sx: 0%;
  --sy: 0%;
  --sr: 0deg;
  --ss: 1;
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: 8px solid var(--white);
  border-radius: 50% 50% 34px 34px / 40% 40% 34px 34px;
  background: var(--blush);
  box-shadow: var(--shadow-lg);
  transform: translate(var(--sx), var(--sy)) rotate(var(--sr)) scale(var(--ss));
  transform-origin: 50% 100%;
  transition: transform 0.9s var(--ease-out), opacity 0.6s var(--ease);
}

.sphoto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sphoto::after {
  content: "";
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--shadow-c) 28%, transparent);
  transition: opacity 0.6s var(--ease);
}

.sphoto[data-spos="0"] { z-index: 4; }
.sphoto[data-spos="0"]::after { opacity: 0; }
.sphoto[data-spos="0"] img { animation: kenburns 9s ease-out both; }
.sphoto[data-spos="1"] { --sx: 7%; --sy: -1%; --sr: 5deg; --ss: 0.94; z-index: 3; }
.sphoto[data-spos="2"] { --sx: -7%; --sy: -2%; --sr: -5deg; --ss: 0.88; z-index: 2; }
.sphoto[data-spos="3"] { --ss: 0.8; z-index: 1; opacity: 0; }

@keyframes kenburns {
  from { transform: scale(1.14) translate3d(-2%, 1%, 0); }
  to { transform: scale(1) translate3d(0, 0, 0); }
}

.stories__panel .h2 {
  margin-bottom: 32px;
}

.stories__quotes {
  display: grid;
  gap: 40px;
}

.js .stories__quotes {
  gap: 0;
}

.js .stories__quotes .squote {
  grid-area: 1 / 1;
}

.js .squote:not(.is-active) {
  visibility: hidden;
  opacity: 0;
}

.squote.is-active > * {
  animation: fade-up 0.8s var(--ease-out) both;
}

.squote.is-active > :nth-child(2) { animation-delay: 0.08s; }
.squote.is-active > :nth-child(3) { animation-delay: 0.18s; }

.squote__tag {
  display: inline-block;
  margin-bottom: 18px;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  background: var(--sage-tint);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--sage-ink);
}

.squote__text {
  margin-bottom: 24px;
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.5rem);
  line-height: 1.16;
  text-wrap: pretty;
}

.squote__who {
  display: grid;
  font-size: 0.95rem;
  line-height: 1.5;
}

.squote__who span {
  color: var(--muted);
}

.stories__controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 36px;
}

.ico-play {
  display: none;
}

[data-stories].is-paused-user .ico-play { display: block; }
[data-stories].is-paused-user .ico-pause { display: none; }

.stories__progress {
  flex: 1;
  min-width: 0;
  margin-left: 10px;
}

.stories__count {
  margin-bottom: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.stories__count span {
  color: var(--ink);
}

.stories__bar {
  position: relative;
  display: block;
  height: 2px;
  overflow: hidden;
  border-radius: 2px;
  background: var(--line);
}

.stories__bar span {
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
}

@media (min-width: 1080px) {
  .stories__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(56px, 7vw, 120px);
  }
}

/* ==========================================================================
   MEMBERSHIP / PRICING
   ========================================================================== */

.membership {
  background:
    radial-gradient(40% 35% at 50% 0%, color-mix(in srgb, var(--glow-blush) 55%, transparent), transparent 70%),
    var(--cream);
}

.billing {
  position: relative;
  display: inline-flex;
  gap: 4px;
  margin-top: 32px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.billing__pill {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 0;
  width: var(--pill-w, 0);
  border-radius: var(--r-pill);
  background: var(--plum);
  transform: translateX(var(--pill-x, 0));
  transition: transform 0.55s var(--spring), width 0.4s var(--ease);
}

.billing__btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
  transition: color 0.35s var(--ease);
}

.billing__btn.is-active {
  background: var(--plum);
  color: var(--on-dark);
}

.billing.has-pill .billing__btn.is-active {
  background: transparent;
}

.billing__save {
  padding: 2px 8px;
  border-radius: var(--r-pill);
  background: var(--sage-tint);
  font-size: 0.72rem;
  color: var(--sage-ink);
}

.plans {
  display: grid;
  gap: 20px;
  max-width: 1120px;
  margin-inline: auto;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 3vw, 38px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: translate 0.5s var(--ease-out), box-shadow 0.5s var(--ease);
}

.plan:hover {
  translate: 0 -8px;
  box-shadow: var(--shadow-lg);
}

.plan__name {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: 2rem;
  font-weight: var(--display-weight);
  line-height: 1.1;
}

.plan__desc {
  margin-top: 4px;
  font-size: var(--fs-sm);
  color: var(--muted);
}

.plan__price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 26px;
  perspective: 400px;
}

.plan__amount {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: clamp(3.4rem, 2.6rem + 2.4vw, 4.4rem);
  line-height: 1;
  letter-spacing: -0.02em;
  transform-origin: 50% 60%;
}

.plan__per {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
}

.plan__billed {
  min-height: 1.6em;
  margin: 6px 0 24px;
  font-size: 0.84rem;
  color: var(--muted);
}

.plan__list {
  display: grid;
  gap: 12px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.94rem;
}

.plan__list li {
  display: flex;
  gap: 10px;
  line-height: 1.5;
}

.plan__list svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--sage-ink);
}

.plan--featured {
  overflow: hidden;
  border-color: transparent;
  background:
    radial-gradient(80% 60% at 100% 0%, color-mix(in srgb, var(--accent) 42%, transparent), transparent 70%),
    radial-gradient(60% 50% at 0% 100%, rgba(168, 181, 160, 0.16), transparent 70%),
    linear-gradient(160deg, var(--plum-2), var(--plum-3));
  color: var(--on-dark);
  box-shadow: var(--shadow-lg), 0 40px 90px -40px color-mix(in srgb, var(--accent) 60%, transparent);
}

/* Slow sheen across the featured plan */
.plan--featured::after {
  content: "";
  position: absolute;
  top: -20%;
  bottom: -20%;
  left: 0;
  width: 38%;
  background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, 0.11) 50%, transparent 100%);
  transform: translateX(-140%) rotate(10deg);
  animation: sheen 6s var(--ease) 1s infinite;
  pointer-events: none;
}

@keyframes sheen {
  0% { transform: translateX(-140%) rotate(10deg); }
  45%, 100% { transform: translateX(330%) rotate(10deg); }
}

.plan--featured .plan__desc,
.plan--featured .plan__per,
.plan--featured .plan__billed {
  color: color-mix(in srgb, var(--on-dark) 75%, transparent);
}

.plan--featured .plan__list {
  border-color: color-mix(in srgb, var(--on-dark) 16%, transparent);
}

.plan--featured .plan__list svg {
  color: var(--accent-soft);
}

.plan--featured .plan__name {
  font-style: italic;
}

.plan--featured .btn--primary {
  --wipe: var(--cream);
}

.plan--featured .btn--primary:hover {
  color: var(--ink);
}

.plan--featured :focus-visible {
  --focus-ring: var(--accent-soft);
}

.plan__badge {
  position: absolute;
  top: 26px;
  right: 26px;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--plum-fixed);
}

.plans__note {
  margin-top: 32px;
  text-align: center;
  font-size: 0.86rem;
  color: var(--muted);
}

@media (min-width: 900px) {
  .plans {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
  }

  .plan--featured {
    margin-block: -16px;
    padding-block: calc(clamp(28px, 3vw, 38px) + 16px);
  }
}

/* ==========================================================================
   TRUST & SAFETY (deep plum band)
   ========================================================================== */

.safety {
  --focus-ring: var(--accent-soft);
  isolation: isolate;
  overflow: clip;
  background:
    radial-gradient(50% 50% at 0% 0%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 70%),
    radial-gradient(40% 50% at 100% 100%, rgba(168, 181, 160, 0.16), transparent 70%),
    linear-gradient(170deg, var(--plum-2) 0%, var(--plum-3) 100%);
  color: var(--on-dark);
}

.safety__glow {
  position: absolute;
  top: 20%;
  left: 40%;
  z-index: -1;
  width: 50vmax;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent-soft) 14%, transparent), transparent 65%);
  --ax: -10vw;
  --ay: 8vh;
  animation: aurora 26s ease-in-out infinite alternate;
}

.safety .h2 em {
  color: var(--accent-soft);
}

.safety .lead {
  color: color-mix(in srgb, var(--on-dark) 78%, transparent);
}

.safety__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 56px;
}

.safety__demos {
  display: grid;
  gap: 16px;
  margin-top: 40px;
}

/* Verification sequence: scan → ticks → badge, 6s loop */
.verify {
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--on-dark) 14%, transparent);
  border-radius: var(--r-lg);
  background: rgba(255, 253, 251, 0.05);
}

.verify__frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border-radius: 50% 50% 20px 20px / 46% 46% 20px 20px;
}

.verify__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}

.verify__scan {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 28%;
  border-bottom: 2px solid var(--accent-soft);
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--accent-soft) 40%, transparent));
  transform: translateY(-110%);
  animation: scan 6s var(--ease) infinite;
}

@keyframes scan {
  0% { transform: translateY(-110%); opacity: 1; }
  40% { transform: translateY(360%); opacity: 1; }
  48%, 100% { transform: translateY(360%); opacity: 0; }
}

.verify__corners {
  position: absolute;
  inset: 16% 26% 26%;
  border: 1.5px dashed rgba(255, 253, 251, 0.75);
  border-radius: 50%;
  animation: face 6s var(--ease) infinite;
}

@keyframes face {
  0%, 38% { opacity: 0.9; transform: scale(1.06); border-color: rgba(255, 253, 251, 0.75); }
  46%, 92% { opacity: 1; transform: scale(1); border-color: #CFE3C4; }
  100% { opacity: 0.9; transform: scale(1.06); }
}

.verify__badge {
  position: absolute;
  left: 50%;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px 6px 8px;
  border-radius: var(--r-pill);
  background: #FFFDFB;
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--plum-fixed);
  white-space: nowrap;
  transform: translateX(-50%);
  animation: badge 6s var(--spring) infinite;
}

.verify__badge svg {
  width: 18px;
  height: 18px;
  color: var(--sage-ink);
}

@keyframes badge {
  0%, 68% { opacity: 0; transform: translate(-50%, 12px) scale(0.8); }
  76%, 94% { opacity: 1; transform: translate(-50%, 0) scale(1); }
  100% { opacity: 0; transform: translate(-50%, 0) scale(0.9); }
}

.verify__steps {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  font-size: 0.82rem;
  font-weight: 600;
}

.verify__steps li {
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0.4;
}

.verify__steps span {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--sage);
  color: var(--plum-fixed);
}

.verify__steps svg {
  width: 14px;
  height: 14px;
  transform: scale(0);
}

.verify__steps li:nth-child(1) { animation: step1 6s var(--ease) infinite; }
.verify__steps li:nth-child(2) { animation: step2 6s var(--ease) infinite; }
.verify__steps li:nth-child(3) { animation: step3 6s var(--ease) infinite; }
.verify__steps li:nth-child(1) svg { animation: tick1 6s var(--spring) infinite; }
.verify__steps li:nth-child(2) svg { animation: tick2 6s var(--spring) infinite; }
.verify__steps li:nth-child(3) svg { animation: tick3 6s var(--spring) infinite; }

@keyframes step1 { 0%, 42% { opacity: 0.4; } 46%, 96% { opacity: 1; } 100% { opacity: 0.4; } }
@keyframes step2 { 0%, 54% { opacity: 0.4; } 58%, 96% { opacity: 1; } 100% { opacity: 0.4; } }
@keyframes step3 { 0%, 66% { opacity: 0.4; } 70%, 96% { opacity: 1; } 100% { opacity: 0.4; } }
@keyframes tick1 { 0%, 42% { transform: scale(0); } 48%, 96% { transform: scale(1); } 100% { transform: scale(0); } }
@keyframes tick2 { 0%, 54% { transform: scale(0); } 60%, 96% { transform: scale(1); } 100% { transform: scale(0); } }
@keyframes tick3 { 0%, 66% { transform: scale(0); } 72%, 96% { transform: scale(1); } 100% { transform: scale(0); } }

.safety__list li {
  display: flex;
  gap: 20px;
  padding: 26px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--on-dark) 14%, transparent);
}

.safety__list li:first-child {
  padding-top: 0;
}

.safety__list li:last-child {
  border-bottom: 0;
}

.safety__icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 54px;
  height: 54px;
  border: 1px solid color-mix(in srgb, var(--on-dark) 24%, transparent);
  border-radius: 50%;
  color: var(--accent-soft);
  transition: background-color 0.4s var(--ease), color 0.4s, transform 0.6s var(--spring);
}

.safety__list li:hover .safety__icon {
  background: var(--accent-soft);
  color: var(--plum-fixed);
  transform: rotate(-10deg) scale(1.06);
}

.safety__icon svg {
  width: 24px;
  height: 24px;
}

.safety__list h3 {
  margin-bottom: 6px;
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: var(--fs-h3);
  font-weight: var(--display-weight);
  line-height: 1.15;
}

.safety__list p {
  font-size: var(--fs-sm);
  color: color-mix(in srgb, var(--on-dark) 74%, transparent);
}

/* Date check-in mock */
.checkin {
  position: relative;
  padding: 20px;
  border: 1px solid color-mix(in srgb, var(--on-dark) 14%, transparent);
  border-radius: var(--r-lg);
  background: rgba(255, 253, 251, 0.06);
  box-shadow: 0 40px 70px -40px rgba(0, 0, 0, 0.6);
}

.checkin__top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding-right: 54px;
}

.checkin__icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--sage);
  color: var(--plum-fixed);
}

.checkin__icon svg {
  width: 22px;
  height: 22px;
}

.checkin__title {
  font-weight: 700;
  line-height: 1.3;
}

.checkin__sub {
  font-size: 0.82rem;
  color: color-mix(in srgb, var(--on-dark) 72%, transparent);
}

.checkin__live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

.checkin__live {
  position: absolute;
  top: 20px;
  right: 18px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: rgba(168, 181, 160, 0.2);
  font-size: 0.72rem;
  font-weight: 700;
  color: #CFDAC8;
}

.checkin__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid color-mix(in srgb, var(--on-dark) 12%, transparent);
  font-size: 0.86rem;
}

.checkin__row span {
  color: color-mix(in srgb, var(--on-dark) 68%, transparent);
}

.checkin__row strong {
  font-weight: 600;
  text-align: right;
}

.checkin__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.checkin__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border: 1px solid color-mix(in srgb, var(--on-dark) 24%, transparent);
  border-radius: var(--r-pill);
  font-size: 0.82rem;
  font-weight: 700;
}

.checkin__btn svg {
  width: 16px;
  height: 16px;
}

.checkin__btn--ok {
  flex: 1;
  justify-content: center;
  border-color: transparent;
  background: var(--sage);
  color: var(--plum-fixed);
}

@media (min-width: 600px) {
  .safety__demos {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    align-items: start;
  }

  .checkin {
    margin-top: 48px;
  }
}

@media (min-width: 768px) {
  .safety {
    margin-inline: clamp(10px, 1.2vw, 20px);
    border-radius: clamp(28px, 3vw, 48px);
  }
}

@media (min-width: 1080px) {
  .safety__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: clamp(56px, 7vw, 120px);
    align-items: start;
  }

  .safety__list {
    padding-top: 12px;
  }
}

/* ==========================================================================
   JOURNAL / BLOG — featured post + filterable cards
   ========================================================================== */

.blog {
  overflow: clip;
  background:
    radial-gradient(45% 40% at 100% 0%, color-mix(in srgb, var(--glow-peach) 50%, transparent), transparent 70%),
    linear-gradient(180deg, var(--blush-tint) 0%, var(--cream) 100%);
}

.blog__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 48px;
  margin-bottom: 32px;
}

.blog__head .lead {
  margin-bottom: 0;
}

.blog__filters {
  display: flex;
  gap: 8px;
  margin: 0 -4px 36px;
  padding: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.blog__filters::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  flex-shrink: 0;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: var(--white);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.4s var(--spring);
}

.filter-chip:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}

.filter-chip[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--plum);
  color: var(--on-dark);
}

.blog__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}

/* Post card (also used by the article page's related posts) */
.post {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: translate 0.5s var(--ease-out), box-shadow 0.5s var(--ease);
}

.post:hover {
  translate: 0 -6px;
  box-shadow: var(--shadow-lg);
}

.post:has(.post__title a:focus-visible) {
  outline: 2px solid var(--focus-ring);
  outline-offset: 4px;
}

.post__media {
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  margin: 0;
  border-radius: var(--r-inner);
  background: var(--blush);
}

.post__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease-out);
}

/* The featured photo opens through an arch mask; its image is reserved for
   the hover zoom, so the scroll "settle" scale is switched off here. */
.post .arch-reveal img,
.js .post .arch-reveal img {
  animation: none;
  transform: none;
}

.blog .post:hover .post__media img,
.related .post:hover .post__media img {
  transform: scale(1.07);
}

.post__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px 14px 14px;
}

.post__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 14px;
  margin-bottom: 10px;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--muted);
}

.post__cat {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

.post__title {
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: clamp(1.4rem, 1.25rem + 0.5vw, 1.65rem);
  font-weight: var(--display-weight);
  line-height: 1.15;
  text-wrap: balance;
}

.post__title a {
  color: inherit;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.5s var(--ease);
}

.post:hover .post__title a {
  background-size: 100% 1px;
}

.post__title a:focus-visible {
  outline: none;
}

/* Whole card is clickable via the title link */
.post__title a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}

.post__excerpt {
  margin-bottom: 18px;
  font-size: 0.93rem;
  line-height: 1.6;
  color: var(--muted);
}

.post__author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}

.post__author p {
  display: grid;
  font-size: 0.86rem;
  line-height: 1.35;
}

.post__author strong {
  font-weight: 700;
}

.post__author span {
  font-size: 0.78rem;
  color: var(--muted);
}

.avatar {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--blush);
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ink);
}

.avatar--sage { background: var(--sage-tint); color: var(--sage-ink); }
.avatar--plum { background: var(--plum); color: var(--on-dark); }
.avatar--peach { background: var(--peach); color: var(--ink); }

.post--featured .post__media {
  aspect-ratio: 1 / 1;
  border-radius: 50% 50% 22px 22px / 46% 46% 22px 22px;
}

.post--featured .post__body {
  padding: 24px 18px 18px;
}

.post--featured .post__title {
  font-size: clamp(1.9rem, 1.3rem + 1.8vw, 2.8rem);
  line-height: 1.05;
}

.post--featured .post__excerpt {
  font-size: 1rem;
}

.post[hidden] {
  display: none !important;
}

/* Filter transitions */
.post.is-entering {
  animation: post-in 0.65s var(--ease-out) both;
  animation-delay: var(--stagger, 0s);
}

.post.is-leaving {
  animation: post-out 0.28s var(--ease) both;
  pointer-events: none;
}

@keyframes post-in {
  from { opacity: 0; transform: translate3d(0, 26px, 0) scale(0.97); }
  to { opacity: 1; transform: none; }
}

@keyframes post-out {
  to { opacity: 0; transform: scale(0.96); }
}

@media (min-width: 640px) {
  .blog__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .blog__grid:not(.is-filtered) .post--featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
  }

  .blog__grid:not(.is-filtered) .post--featured .post__body {
    padding: 24px 24px 24px 28px;
  }

  .is-filtered .post--featured .post__media {
    aspect-ratio: 4 / 3;
    border-radius: var(--r-inner);
  }

  .is-filtered .post--featured .post__title {
    font-size: clamp(1.4rem, 1.25rem + 0.5vw, 1.65rem);
  }
}

@media (min-width: 640px) and (max-width: 899.98px) {
  .blog__grid:not(.is-filtered) .post:last-child:not(.post--featured) {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
  }
}

@media (min-width: 900px) {
  .blog__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1080px) {
  .blog__grid:not(.is-filtered) {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 22px 28px;
  }

  .blog__grid:not(.is-filtered) .post--featured {
    grid-column: 1;
    grid-row: span 3;
    display: flex;
  }

  .blog__grid:not(.is-filtered) .post--featured .post__body {
    padding: 26px 22px 20px;
  }

  .blog__grid:not(.is-filtered) .post:not(.post--featured) {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 4px;
  }

  .blog__grid:not(.is-filtered) .post:not(.post--featured) .post__media {
    aspect-ratio: auto;
    height: 100%;
    min-height: 210px;
  }

  .blog__grid:not(.is-filtered) .post:not(.post--featured) .post__body {
    padding: 14px 14px 10px 18px;
  }

  .blog__grid:not(.is-filtered) .post:not(.post--featured) .post__excerpt {
    margin-bottom: 14px;
    font-size: 0.88rem;
  }
}

/* ==========================================================================
   SIGN-UP CTA + FORM (floating labels, soft shake, celebratory success)
   ========================================================================== */

.join {
  overflow: clip;
  background:
    radial-gradient(45% 50% at 100% 30%, color-mix(in srgb, var(--glow-peach) 55%, transparent), transparent 70%),
    radial-gradient(35% 40% at 0% 100%, rgba(168, 181, 160, 0.22), transparent 70%),
    var(--cream);
}

.join__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 56px;
}

.join__photo {
  position: relative;
  width: 100%;
  max-width: 440px;
  margin-inline: auto;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: 50% 50% 36px 36px / 40% 40% 36px 36px;
  box-shadow: var(--shadow-md);
}

.join__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.join__caption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: grid;
  padding: 16px 20px;
  border-radius: var(--r-inner);
  background: color-mix(in srgb, var(--cream) 92%, transparent);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.join__caption em {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: 1.55rem;
  line-height: 1.1;
}

.join__caption span {
  font-size: 0.82rem;
  color: var(--muted);
}

.form {
  position: relative;
  margin-top: 32px;
  padding: clamp(22px, 3.5vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.form__grid {
  display: grid;
  gap: 18px 20px;
  margin-bottom: 24px;
}

.field {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.field input:not([type="checkbox"]),
.field select {
  width: 100%;
  min-height: 60px;
  padding: 22px 18px 6px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-inner);
  background: var(--cream);
  font-size: 1rem;
  color: var(--ink);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s var(--ease);
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent-ink);
  background: var(--white);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
}

/* Floating label */
.field--float {
  position: relative;
}

.field--float label {
  position: absolute;
  left: 19px;
  top: 19px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--muted);
  pointer-events: none;
  transform-origin: left top;
  transition: transform 0.35s var(--ease-out), color 0.3s;
}

.field--float input:focus + label,
.field--float input:not(:placeholder-shown) + label,
.field--select label {
  transform: translateY(-11px) scale(0.76);
  color: var(--accent-ink);
}

.field--select label {
  color: var(--muted);
}

.field--select select:focus + label {
  color: var(--accent-ink);
}

.select {
  position: relative;
}

.select::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 1.75px solid var(--ink);
  border-bottom: 1.75px solid var(--ink);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.select select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 48px;
  cursor: pointer;
}

.field--check {
  grid-template-columns: auto 1fr;
  align-items: start;
  column-gap: 12px;
}

.field--check input {
  width: 24px;
  height: 24px;
  margin: 10px 0 0;
  accent-color: var(--accent-btn);
  cursor: pointer;
}

.field--check label {
  padding-block: 11px; /* label is the touch target for the checkbox (≥44px row) */
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.5;
  cursor: pointer;
}

.field--check label a {
  color: var(--accent-ink);
  font-weight: 700;
}

.field--check .field__error {
  grid-column: 2;
}

.field__error {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--error);
}

.field__error:not(:empty) {
  animation: fade-up 0.4s var(--ease-out);
}

.field__error:empty {
  display: none;
}

.field.is-invalid input:not([type="checkbox"]),
.field.is-invalid select {
  border-color: var(--error);
  background: var(--error-tint);
}

.field.is-invalid label {
  color: var(--error);
}

.field--check.is-invalid label {
  color: var(--ink);
}

.field.is-invalid input[type="checkbox"] {
  outline: 2px solid var(--error);
  outline-offset: 2px;
}

.field.is-valid input:not([type="checkbox"]),
.field.is-valid select {
  border-color: var(--sage-ink);
}

.field.is-shake {
  animation: shake 0.5s var(--ease);
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(2px); }
}

.form.is-loading [type="submit"] {
  opacity: 0.7;
  cursor: progress;
}

.form__status {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: var(--r-inner);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.5;
}

.form__status.is-success {
  background: var(--sage-tint);
  color: var(--sage-ink);
  animation: pop 0.6s var(--spring);
}

.form__status.is-success::before {
  content: "";
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--sage-ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat;
  animation: pop 0.7s var(--spring) 0.15s both;
}

.form__status.is-error {
  background: var(--error-tint);
  color: var(--error);
}

.form__fine {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 0.82rem;
  color: var(--muted);
}

.form__fine svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.form__burst {
  top: auto;
  bottom: 30%;
}

@media (min-width: 640px) {
  .form__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .field--full {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1080px) {
  .join__grid {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    align-items: center;
    gap: clamp(48px, 6vw, 96px);
  }

  .join__photo {
    max-width: none;
  }
}

/* ==========================================================================
   APP DOWNLOAD
   ========================================================================== */

.app {
  overflow: clip;
  background: linear-gradient(165deg, var(--blush) 0%, var(--blush-tint) 55%, var(--cream) 100%);
}

.app__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 56px;
}

.app__points {
  display: grid;
  gap: 12px;
  margin: 28px 0 36px;
}

.app__points li {
  display: flex;
  gap: 12px;
  font-weight: 600;
  line-height: 1.5;
}

.app__points svg {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  padding: 3px;
  border-radius: 50%;
  background: var(--plum);
  color: var(--on-dark);
}

.store {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.store__btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 0 24px 0 18px;
  border-radius: var(--r-inner);
  background: var(--plum);
  color: var(--on-dark);
  text-decoration: none;
  transition: transform 0.4s var(--spring), background-color 0.3s var(--ease);
}

.store__btn:hover {
  background: var(--plum-3);
  transform: translateY(-3px) rotate(-1.5deg);
}

.store__btn svg {
  width: 26px;
  height: 26px;
  color: var(--accent-soft);
}

.store__btn span {
  display: grid;
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.15;
}

.store__btn small {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  opacity: 0.75;
}

/* Phone mockup */
.app__visual {
  position: relative;
  display: grid;
  place-items: center;
  padding: 24px 0 40px;
}

.app__visual::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: 0;
  width: min(420px, 92%);
  transform: translateX(-50%);
  border-radius: 50% 50% 40px 40px / min(210px, 46vw) min(210px, 46vw) 40px 40px;
  background: color-mix(in srgb, var(--white) 55%, transparent);
  border: 1px solid color-mix(in srgb, var(--white) 90%, transparent);
}

/* Orbiting dot around the phone */
.app__orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 0;
  width: min(460px, 96%);
  aspect-ratio: 1;
  margin-left: calc(min(460px, 96%) / -2);
  margin-top: calc(min(460px, 96%) / -2);
  border: 1.5px dashed color-mix(in srgb, var(--shadow-c) 16%, transparent);
  border-radius: 50%;
  animation: spin 40s linear infinite;
}

.app__orbit::before {
  content: "";
  position: absolute;
  top: 12%;
  left: 12%;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 18%, transparent);
}

.phone {
  position: relative;
  z-index: 1;
  width: min(300px, 82vw);
  aspect-ratio: 9 / 18.6;
  padding: 10px;
  border-radius: var(--r-card);
  background: var(--plum-3);
  box-shadow: var(--shadow-lg), inset 0 0 0 1.5px rgba(255, 255, 255, 0.08);
  animation: float 8s ease-in-out infinite;
}

.phone__screen {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  padding: 12px 12px 14px;
  overflow: hidden;
  border-radius: var(--r-card);
  background: var(--cream);
}

.phone__status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  font-size: 0.72rem;
  font-weight: 700;
}

.phone__island {
  width: 78px;
  height: 22px;
  border-radius: var(--r-pill);
  background: var(--plum-3);
}

.phone__sig {
  display: flex;
  align-items: flex-end;
  gap: 2px;
}

.phone__sig i {
  width: 3px;
  border-radius: 1px;
  background: var(--ink);
}

.phone__sig i:nth-child(1) { height: 5px; }
.phone__sig i:nth-child(2) { height: 8px; }
.phone__sig i:nth-child(3) { height: 11px; }

.phone__bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 2px 6px 0;
}

.phone__logo {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: 1.35rem;
}

.phone__count {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--muted);
}

.phone__card {
  container-type: inline-size;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 7px;
  border-radius: 50cqi 50cqi 22px 22px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.phone__photo {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  border-radius: calc(50cqi - 7px) calc(50cqi - 7px) 16px 16px;
}

.phone__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 25%;
}

.phone__info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 6px;
}

.phone__name {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: 1.4rem;
  line-height: 1;
}

.phone__meta {
  font-size: 0.7rem;
  color: var(--muted);
}

.phone__prompt {
  padding: 9px 11px;
  border-radius: var(--r-inner);
  background: var(--blush-tint);
}

.phone__prompt small {
  display: block;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

.phone__prompt p {
  font-size: 0.72rem;
  line-height: 1.45;
}

.phone__prompt em {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: 1.15em;
}

.phone__actions {
  display: flex;
  gap: 8px;
}

.phone__pass {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--white);
}

.phone__pass svg {
  width: 18px;
  height: 18px;
}

.phone__say {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--r-pill);
  background: var(--accent-btn);
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
}

.phone__say svg {
  width: 17px;
  height: 17px;
}

.app__note {
  position: absolute;
  z-index: 2;
  left: 0;
  bottom: 70px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px 12px 12px;
  border-radius: var(--r-inner);
  background: var(--white);
  box-shadow: var(--shadow-md);
  animation: float 7s ease-in-out -3s infinite;
}

.app__note svg {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  padding: 9px;
  border-radius: 50%;
  background: var(--blush);
  color: var(--accent-ink);
  animation: spin 14s linear infinite;
}

.app__note span {
  display: grid;
  font-size: 0.76rem;
  line-height: 1.4;
  color: var(--muted);
}

.app__note strong {
  font-size: 0.86rem;
  color: var(--ink);
}

@media (max-width: 479.98px) {
  .app__visual {
    padding-bottom: 76px;
  }

  .app__note {
    left: 50%;
    bottom: 0;
    translate: -50% 0;
    animation: none;
    white-space: nowrap;
  }
}

@media (min-width: 1080px) {
  .app__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
  }

  .app__note {
    left: 0;
    top: 26%;
    bottom: auto;
  }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  --focus-ring: var(--accent-soft);
  overflow: clip;
  padding: clamp(64px, 7vw, 100px) 0 36px;
  background: var(--plum-3);
  color: var(--on-dark);
}

.site-footer__top {
  display: grid;
  gap: 48px;
  padding-bottom: 32px;
}

.site-footer__tag {
  margin: 18px 0 28px;
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.6rem);
  line-height: 1.1;
}

.site-footer__tag em {
  color: var(--accent-soft);
}

.site-footer__cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 24px;
}

.site-footer__h {
  margin-bottom: 8px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--on-dark) 62%, transparent);
}

.site-footer__cols a {
  display: inline-block;
  padding: 10px 0;
  font-size: 0.95rem;
  color: color-mix(in srgb, var(--on-dark) 90%, transparent);
  text-decoration: none;
  transition: color 0.25s var(--ease), transform 0.35s var(--ease);
}

.site-footer__cols a:hover {
  color: var(--accent-soft);
  transform: translateX(4px);
}

.site-footer__giant {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: clamp(4.5rem, 20vw, 17rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  white-space: nowrap;
  text-align: center;
  color: color-mix(in srgb, var(--on-dark) 7%, transparent);
}

.site-footer__giant em {
  color: color-mix(in srgb, var(--accent-soft) 22%, transparent);
}

.site-footer__legal {
  display: grid;
  gap: 10px;
  padding-top: 28px;
  border-top: 1px solid color-mix(in srgb, var(--on-dark) 12%, transparent);
  font-size: 0.82rem;
  line-height: 1.6;
  color: color-mix(in srgb, var(--on-dark) 66%, transparent);
}

@media (min-width: 640px) {
  .site-footer__cols {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .site-footer__top {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 64px;
  }

  .site-footer__legal {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 48px;
  }

  .site-footer__legal p:last-child {
    text-align: right;
  }
}

/* ==========================================================================
   ARTICLE (single post — article.html)
   ========================================================================== */

.read-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  height: 3px;
  pointer-events: none;
}

.read-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
  transform: scaleX(0);
  transform-origin: left;
}

.article-hero {
  position: relative;
  padding: 120px 0 clamp(40px, 5vw, 64px);
  background:
    radial-gradient(50% 70% at 85% 0%, color-mix(in srgb, var(--glow-peach) 60%, transparent), transparent 70%),
    radial-gradient(40% 60% at 0% 100%, rgba(168, 181, 160, 0.22), transparent 70%),
    var(--cream);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--muted);
}

.breadcrumb li + li::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 10px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
}

.breadcrumb a {
  display: inline-block;
  min-width: 44px;
  margin-inline: -6px;
  padding: 11px 6px; /* ≥44px touch target without shifting the text */
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 4px;
  transition: text-decoration-color 0.3s;
}

.breadcrumb a:hover {
  text-decoration-color: var(--accent);
}

.article-hero__inner {
  max-width: 900px;
  margin: clamp(28px, 4vw, 48px) auto 0;
  text-align: center;
}

.article-hero__meta {
  justify-content: center;
  margin-bottom: 18px;
}

.article-hero__title {
  margin-bottom: 24px;
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: clamp(2.6rem, 1.4rem + 4.6vw, 5.6rem);
  font-weight: var(--display-weight);
  line-height: 0.98;
  letter-spacing: -0.015em;
}

.article-hero__title em {
  color: var(--accent-ink);
}

.article-hero__title .line {
  display: block;
  overflow: hidden;
  padding: 0.04em 0.1em 0.08em;
  margin-bottom: -0.06em;
}

.article-hero__title .line > span {
  display: inline-block;
  animation: rise 1.1s var(--ease-out) both;
  animation-delay: calc(0.15s + var(--d, 0) * 0.13s);
}

.article-hero__dek {
  max-width: 40rem;
  margin: 0 auto 28px;
  font-size: var(--fs-lead);
  color: var(--muted);
}

.article-hero__author {
  justify-content: center;
  text-align: left;
}

.article-cover {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  margin: 0 auto;
  max-width: 1180px;
  border-radius: clamp(24px, 4vw, 48px);
  box-shadow: var(--shadow-lg);
}

.article-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Long-form typography */
.prose {
  max-width: 44rem;
  margin: clamp(48px, 6vw, 88px) auto var(--space-section);
  font-size: 1.125rem;
  line-height: 1.8;
}

.prose > * + * {
  margin-top: 1.25em;
}

.prose__lead {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: clamp(1.45rem, 1.2rem + 0.9vw, 1.85rem);
  line-height: 1.4;
  color: var(--ink);
}

.prose__lead::first-letter {
  float: left;
  margin: 0.04em 0.12em 0 0;
  font-size: 3.6em;
  line-height: 0.8;
  color: var(--accent-ink);
}

.prose h2 {
  margin-top: 2.2em;
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: clamp(1.8rem, 1.4rem + 1.3vw, 2.4rem);
  font-weight: var(--display-weight);
  line-height: 1.12;
  text-wrap: balance;
}

.prose h3 {
  margin-top: 2em;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.4;
}

.prose h2 + p,
.prose h3 + ul {
  margin-top: 0.7em;
}

.prose em {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: 1.1em;
  color: var(--accent-ink);
}

.prose ul {
  display: grid;
  gap: 12px;
  padding: 0;
  list-style: none;
}

.prose li {
  position: relative;
  padding-left: 30px;
}

.prose li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.55em;
  width: 12px;
  height: 14px;
  border: 1.5px solid var(--accent);
  border-radius: 50% 50% 3px 3px / 46% 46% 3px 3px;
}

.pull-quote {
  margin: 2.2em 0;
  padding: 1.4em 0;
  border-block: 1px solid var(--line-strong);
  text-align: center;
}

.pull-quote p {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-style: italic;
  font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.5rem);
  line-height: 1.18;
  color: var(--ink);
  text-wrap: balance;
}

.pull-quote cite {
  display: block;
  margin-top: 14px;
  font-size: 0.84rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

.prose__figure {
  margin-block: 2.2em;
}

.prose__figure img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--r-card);
}

.prose__figure figcaption {
  margin-top: 12px;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--muted);
  text-align: center;
}

.author-box {
  display: flex;
  gap: 18px;
  margin-top: 3em !important;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--white);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--muted);
}

.author-box__name {
  margin-bottom: 4px;
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: 1.45rem;
  line-height: 1.1;
  color: var(--ink);
}

.avatar--lg {
  width: 64px;
  height: 64px;
  font-size: 1.5rem;
}

/* Article CTA band */
.article-cta {
  padding-top: 0;
}

.article-cta__card {
  --focus-ring: var(--accent-soft);
  position: relative;
  overflow: hidden;
  padding: clamp(36px, 6vw, 80px) clamp(24px, 5vw, 72px);
  border-radius: clamp(28px, 4vw, 48px);
  background:
    radial-gradient(60% 80% at 100% 0%, color-mix(in srgb, var(--accent) 38%, transparent), transparent 70%),
    radial-gradient(50% 60% at 0% 100%, rgba(168, 181, 160, 0.18), transparent 70%),
    linear-gradient(160deg, var(--plum-2), var(--plum-3));
  color: var(--on-dark);
  text-align: center;
}

.article-cta__card .h2 em {
  color: var(--accent-soft);
}

.article-cta__card .lead {
  margin: 0 auto 32px;
  color: color-mix(in srgb, var(--on-dark) 78%, transparent);
}

.related {
  background: linear-gradient(180deg, var(--blush-tint) 0%, var(--cream) 100%);
}

.related__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}

@media (min-width: 640px) {
  .related__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .related__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 479.98px) {
  .author-box {
    flex-direction: column;
  }
}

/* ==========================================================================
   REDUCED MOTION — everything visible, static and in its final state
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
  }

  .hero__title .line > span,
  .article-hero__title .line > span,
  .hero__in,
  .deck__card,
  .hero__bubble,
  .float-chip,
  .deck__controls,
  .hero__blob {
    opacity: 1;
  }

  .hero__em,
  .arch-reveal,
  .js .arch-reveal {
    clip-path: none !important;
  }

  .js .h2[data-reveal] {
    transform: none !important;
  }

  .arch-reveal img,
  .js .arch-reveal img {
    transform: none !important;
  }

  .hero__swash path,
  .hero__doodle path,
  .js .tstep:not(.is-active) .tstep__art svg * {
    stroke-dashoffset: 0;
  }

  .drift {
    translate: none;
  }

  .verify__scan {
    opacity: 0;
  }

  .verify__corners {
    border-color: #CFE3C4;
  }

  .verify__badge {
    opacity: 1;
  }

  .verify__steps li {
    opacity: 1;
  }

  .verify__steps svg {
    transform: none;
  }

  .js .statement__text .w {
    opacity: 1;
  }

  .js .tstep:not(.is-active) .tstep__body {
    opacity: 1;
    transform: none;
  }
}

/* ---- Animations: off (data-td-motion="off") -------------------------------
   Mirrors prefers-reduced-motion (above) plus the shared base.css rules, so a
   visitor can switch motion off without changing their OS setting. main.js
   and theme-init.js stop the JS-driven motion as well. */

:root[data-td-motion="off"] {
  scroll-behavior: auto;
}

:root[data-td-motion="off"] *,
:root[data-td-motion="off"] *::before,
:root[data-td-motion="off"] *::after {
  transition-duration: 0.01ms !important;
  transition-delay: 0s !important;
  scroll-behavior: auto !important;
}

:root[data-td-motion="off"].js [data-reveal] {
  opacity: 1;
  transform: none;
}

:root[data-td-motion="off"] *,
:root[data-td-motion="off"] *::before,
:root[data-td-motion="off"] *::after {
  animation: none !important;
}

:root[data-td-motion="off"] .hero__title .line > span,
:root[data-td-motion="off"] .article-hero__title .line > span,
:root[data-td-motion="off"] .hero__in,
:root[data-td-motion="off"] .deck__card,
:root[data-td-motion="off"] .hero__bubble,
:root[data-td-motion="off"] .float-chip,
:root[data-td-motion="off"] .deck__controls,
:root[data-td-motion="off"] .hero__blob {
  opacity: 1;
}

:root[data-td-motion="off"] .hero__em,
:root[data-td-motion="off"] .arch-reveal,
:root[data-td-motion="off"].js .arch-reveal {
  clip-path: none !important;
}

:root[data-td-motion="off"].js .h2[data-reveal] {
  transform: none !important;
}

:root[data-td-motion="off"] .arch-reveal img,
:root[data-td-motion="off"].js .arch-reveal img {
  transform: none !important;
}

:root[data-td-motion="off"] .hero__swash path,
:root[data-td-motion="off"] .hero__doodle path,
:root[data-td-motion="off"].js .tstep:not(.is-active) .tstep__art svg * {
  stroke-dashoffset: 0;
}

:root[data-td-motion="off"] .drift {
  translate: none;
}

:root[data-td-motion="off"] .verify__scan {
  opacity: 0;
}

:root[data-td-motion="off"] .verify__corners {
  border-color: #CFE3C4;
}

:root[data-td-motion="off"] .verify__badge {
  opacity: 1;
}

:root[data-td-motion="off"] .verify__steps li {
  opacity: 1;
}

:root[data-td-motion="off"] .verify__steps svg {
  transform: none;
}

:root[data-td-motion="off"].js .statement__text .w {
  opacity: 1;
}

:root[data-td-motion="off"].js .tstep:not(.is-active) .tstep__body {
  opacity: 1;
  transform: none;
}
