/* ==========================================================================
   ESCORA — styles.css
   Palette, type and spacing follow the Escora brand guide.
   Sections are commented in page order. Edit tokens in :root first.
   ========================================================================== */

:root {
  --escora-cream: #FBF6F0;
  --escora-ivory: #FFFDFC;
  --escora-blush: #F7E2E4;
  --escora-rose: #ECC5C9;
  --escora-red: #D93B30;
  --escora-red-dark: #B92D28;
  --escora-ink: #1D2630;
  --escora-muted: #62686F;
  --escora-line: #E9DDD6;
  --radius-card: 24px;

  --radius-sm: 20px;
  --radius-pill: 999px;
  --shadow-soft: 0 8px 24px rgba(29, 38, 48, 0.06);
  --shadow-lift: 0 18px 40px rgba(29, 38, 48, 0.11);
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* 8px spacing scale */
  --s-1: 8px;  --s-2: 16px; --s-3: 24px; --s-4: 32px; --s-5: 40px;
  --s-6: 48px; --s-8: 64px; --s-10: 80px; --s-12: 96px; --s-16: 128px;

  --container: 1280px;
  --page-max: 1440px;
  --gutter: clamp(20px, 4vw, 56px);
  --nav-h: 76px;
  --phone-w: 300px;

  color-scheme: light;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0; background: var(--escora-cream); color: var(--escora-ink);
  font-family: var(--font-sans); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
h1, h2, h3, h4, p, figure, ul, ol, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--escora-ink); outline-offset: 3px; border-radius: 6px; }

.page { max-width: var(--page-max); margin: 0 auto; }
.container { max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); }
.container > * { min-width: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Type scale */
.display { font-size: clamp(44px, 6.2vw, 88px); line-height: 0.98; font-weight: 450; letter-spacing: -0.03em; text-wrap: balance; }
.h2 { font-size: clamp(32px, 4.2vw, 58px); line-height: 1.05; font-weight: 450; letter-spacing: -0.025em; text-wrap: balance; }
.h3 { font-size: clamp(24px, 2.6vw, 36px); line-height: 1.1; font-weight: 450; letter-spacing: -0.02em; text-wrap: balance; }
.card-title { font-size: clamp(20px, 1.6vw, 24px); line-height: 1.25; font-weight: 500; letter-spacing: -0.01em; text-wrap: balance; }
.lead { font-size: clamp(17px, 1.5vw, 21px); line-height: 1.5; font-weight: 400; letter-spacing: -0.01em; }
.body-lg { font-size: clamp(16px, 1.2vw, 18px); }
.muted { color: var(--escora-muted); }
.kicker { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--escora-muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px; border-radius: var(--radius-pill);
  font-size: 15px; font-weight: 500; letter-spacing: -0.005em; border: 1px solid transparent; white-space: nowrap;
  transition: transform .25s ease, background-color .25s ease, color .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--escora-red); color: #fff; }
.btn--primary:hover { background: var(--escora-red-dark); box-shadow: 0 10px 24px rgba(217, 59, 48, 0.22); }
.btn--secondary { background: transparent; color: var(--escora-ink); border-color: var(--escora-ink); }
.btn--secondary:hover { background: var(--escora-ink); color: var(--escora-ivory); }
.btn--ghost { background: var(--escora-ivory); color: var(--escora-ink); border-color: var(--escora-line); }
.btn--ghost:hover { border-color: var(--escora-ink); }
.btn--ink { background: var(--escora-ink); color: var(--escora-ivory); }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 14px; }
.btn--xs { min-height: 36px; padding: 0 14px; font-size: 13px; }
.btn .arrow { transition: transform .25s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* Section rhythm */
.section { padding-block: clamp(72px, 9vw, 136px); }
.section--blush { background: var(--escora-blush); }
.section--ivory { background: var(--escora-ivory); }
.section-head { display: grid; gap: var(--s-2); max-width: 820px; margin-bottom: clamp(40px, 5vw, 72px); }

/* --------------------------------------------------------------------------
   Art: generated editorial imagery (gradient + grain). Each .art can also hold a
   real <img>; when the file is missing the img removes itself and the art shows.
   Drop production photos into /images and they take over automatically.
   -------------------------------------------------------------------------- */
.art {
  position: relative; overflow: hidden; border-radius: var(--radius-card); isolation: isolate;
  --a: #F3D9C8; --b: #ECC5C9; --c: #FBF6F0; --sun: rgba(255,253,252,0.75); --horizon: rgba(29,38,48,0.10);
  background:
    radial-gradient(42% 42% at 68% 30%, var(--sun) 0%, transparent 70%),
    linear-gradient(180deg, transparent 62%, var(--horizon) 62.3%, transparent 63%),
    linear-gradient(160deg, var(--a) 0%, var(--b) 48%, var(--c) 100%);
}
.art::before {
  content: ""; position: absolute; inset: 0; z-index: 1; opacity: .18; mix-blend-mode: multiply; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.2 0 0 0 0 0.2 0 0 0 0 0.2 0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.art::after { content: ""; position: absolute; inset: 0; z-index: 1; background: radial-gradient(90% 70% at 90% 100%, rgba(29,38,48,0.14), transparent 60%); transition: transform .9s ease; }
.art > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.art--dinner  { --a: #E8B89A; --b: #D99A8C; --c: #F7E2E4; --sun: rgba(255,236,210,0.9); }
.art--yacht   { --a: #CFE0EA; --b: #9FBBD0; --c: #FBF6F0; --sun: rgba(255,253,252,0.9); --horizon: rgba(29,38,48,0.16); }
.art--tennis  { --a: #D6DEC8; --b: #A9B99A; --c: #F3E7D3; --sun: rgba(255,250,235,0.85); }
.art--concert { --a: #3A4652; --b: #6F5C6E; --c: #ECC5C9; --sun: rgba(236,197,201,0.55); --horizon: transparent; }
.art--shop    { --a: #F7E2E4; --b: #ECC5C9; --c: #FFFDFC; --sun: rgba(255,253,252,0.95); }
.art--travel  { --a: #E9D7C3; --b: #BFC9D6; --c: #FBF6F0; --sun: rgba(255,253,252,0.9); }
.art--gala    { --a: #2B3540; --b: #4D4A58; --c: #ECC5C9; --sun: rgba(236,197,201,0.4); --horizon: transparent; }
.art--golf    { --a: #C8D5BE; --b: #8FA585; --c: #F7E2E4; --sun: rgba(255,250,235,0.9); }
.art--city    { --a: #D9D2CB; --b: #9A9DA6; --c: #F7E2E4; --sun: rgba(255,245,230,0.8); }
.art--night   { --a: #1D2630; --b: #45414F; --c: #B98A8E; --sun: rgba(236,197,201,0.35); --horizon: transparent; }
.art--sport   { --a: #E4C9B8; --b: #B3C2C9; --c: #FBF6F0; --sun: rgba(255,253,252,0.85); }
.art--portrait { --a: #ECC5C9; --b: #D9A897; --c: #F7E2E4; --sun: rgba(255,253,252,0.8); --horizon: transparent; }
.art--ink     { --a: #1D2630; --b: #33404D; --c: #62686F; --sun: rgba(236,197,201,0.25); --horizon: transparent; }
.art__label { position: absolute; left: 18px; bottom: 16px; z-index: 2; font-size: 11.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--escora-ink); background: rgba(255,253,252,0.82); padding: 7px 12px; border-radius: var(--radius-pill); }

/* Pastel family: one consistent gradient language for the problem and experience cards */
.art--pastel { --sun: rgba(255,253,252,0.85); --horizon: transparent; }
.art--pastel.h1 { --a: #F7E2E4; --b: #ECC5C9; --c: #FBF6F0; }
.art--pastel.h2 { --a: #F3DCCB; --b: #E8C3B0; --c: #FBF6F0; }
.art--pastel.h3 { --a: #E6E0EF; --b: #D2C7E3; --c: #F7E2E4; }
.art--pastel.h4 { --a: #DDE8E2; --b: #BFD3C8; --c: #FBF6F0; }
.art--pastel.h5 { --a: #DCE6EE; --b: #BFD0DE; --c: #F7E2E4; }
.art--pastel.h6 { --a: #F3E6CF; --b: #E6D2A9; --c: #FBF6F0; }
.art--fluid {
  background:
    radial-gradient(60% 60% at 25% 25%, var(--a) 0%, transparent 70%),
    radial-gradient(55% 55% at 75% 45%, var(--b) 0%, transparent 70%),
    radial-gradient(70% 60% at 50% 95%, var(--sun) 0%, transparent 70%),
    linear-gradient(160deg, var(--c) 0%, var(--b) 100%);
  background-size: 170% 170%, 170% 170%, 170% 170%, 100% 100%;
  background-position: 0% 0%, 100% 50%, 50% 100%, 0 0;
}
@media (prefers-reduced-motion: no-preference) {
  .art--fluid { animation: fluid 10s ease-in-out infinite alternate; }
  .art--fluid.alt { animation-duration: 13s; animation-delay: -5s; }
  @keyframes fluid {
    0%   { background-position: 0% 0%, 100% 50%, 50% 100%, 0 0; }
    50%  { background-position: 100% 60%, 0% 100%, 100% 0%, 0 0; }
    100% { background-position: 60% 100%, 40% 0%, 0% 40%, 0 0; }
  }
}

/* Pills: small product chips laid over visuals */
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500; padding: 6px 11px; border-radius: var(--radius-pill); background: rgba(255,253,252,0.92); color: var(--escora-ink); border: 1px solid rgba(233,221,214,0.8); white-space: nowrap; }
.pill svg { width: 13px; height: 13px; color: var(--escora-red); flex: none; }
.pill--ink { background: var(--escora-ink); color: var(--escora-ivory); border-color: var(--escora-ink); }
.pill--ok { background: #EAF3EC; border-color: #D5E7DA; }
.pill--ok svg { color: #2E7D4F; }
.pill--red { background: var(--escora-red); color: #fff; border-color: var(--escora-red); }
.pill--red svg { color: #fff; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pills--float { position: absolute; z-index: 3; }

/* Avatars */
.avatar { width: 44px; height: 44px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 13px; font-weight: 600; color: var(--escora-ink); background: linear-gradient(135deg, var(--escora-rose), #D9B1A6); overflow: hidden; position: relative; }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.avatar--2 { background: linear-gradient(135deg, #E8C7B2, #C9A08E); }
.avatar--3 { background: linear-gradient(135deg, #D6DEC8, #A9B99A); }
.avatar--4 { background: linear-gradient(135deg, #CFE0EA, #9FBBD0); }
.avatar--5 { background: linear-gradient(135deg, #F7E2E4, #D9A897); }
.avatar--6 { background: linear-gradient(135deg, #E9D7C3, #BFC9D6); }
.avatar-stack { display: flex; align-items: center; }
.avatar-stack .avatar { width: 48px; height: 48px; border: 3px solid var(--escora-cream); margin-left: -14px; box-shadow: 0 2px 6px rgba(29,38,48,0.08); }
.avatar-stack .avatar:first-child { margin-left: 0; }
.avatar-stack .avatar--more { background: var(--escora-ink); color: var(--escora-ivory); font-size: 12px; }

/* Phone mockup */
.phone {
  position: relative; width: var(--phone-w); aspect-ratio: 9 / 19.2; border-radius: 46px; background: var(--escora-ink);
  padding: 10px; box-shadow: 0 30px 70px -24px rgba(29,38,48,0.45), inset 0 0 0 2px rgba(255,255,255,0.08); flex: none;
}
.phone__screen { position: relative; width: 100%; height: 100%; border-radius: 38px; background: var(--escora-cream); overflow: hidden; }
.phone__notch { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 92px; height: 26px; border-radius: 999px; background: var(--escora-ink); z-index: 5; }
.screen { position: absolute; inset: 0; display: grid; grid-template-rows: auto 1fr; padding: 48px 16px 16px; gap: 12px; opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility 0s linear .35s; pointer-events: none; }
.screen.is-on { opacity: 1; visibility: visible; transition: opacity .35s ease .1s, visibility 0s; }
.screen--static { position: relative; opacity: 1; visibility: visible; }
.screen__top { display: flex; align-items: center; justify-content: space-between; font-size: 12px; font-weight: 500; color: var(--escora-muted); }
.screen__hero { position: relative; aspect-ratio: 4 / 4.6; border-radius: 22px; }
.screen__hero .art { position: absolute; inset: 0; border-radius: 22px; }
.screen__hero .pills--float { left: 12px; top: 12px; }
.screen__hero .screen__name { position: absolute; left: 14px; bottom: 14px; z-index: 3; color: #fff; display: grid; gap: 2px; text-shadow: 0 1px 6px rgba(0,0,0,0.45); }
.screen__name b { font-size: 20px; font-weight: 500; letter-spacing: -0.01em; }
.screen__name span { font-size: 12.5px; color: rgba(255,255,255,0.88); }
.screen__body { display: grid; gap: 10px; align-content: start; }
.screen__row { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; padding: 10px 12px; background: var(--escora-ivory); border: 1px solid var(--escora-line); border-radius: 14px; }
.screen__row span:last-child { color: var(--escora-muted); }
.screen__title { font-size: 18px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.2; }
.screen__sub { font-size: 12.5px; color: var(--escora-muted); }
.screen .btn { min-height: 42px; font-size: 13px; }
.screen__label { font-size: 10.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--escora-muted); }
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.week div { text-align: center; font-size: 11px; padding: 8px 0; border-radius: 10px; border: 1px solid var(--escora-line); color: var(--escora-muted); background: var(--escora-ivory); }
.week div.on { background: var(--escora-ink); color: var(--escora-ivory); border-color: var(--escora-ink); }
.invite { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--escora-line); border-radius: 14px; background: var(--escora-ivory); }
.invite__t { font-size: 13.5px; font-weight: 500; }
.invite__m { font-size: 11.5px; color: var(--escora-muted); }
.decision { display: flex; gap: 6px; }
.decision .btn { flex: 1; min-height: 34px; font-size: 12px; padding: 0 10px; }
.screen__thumb { position: relative; height: 120px; border-radius: 16px; }
.screen__thumb .art { position: absolute; inset: 0; border-radius: 16px; }
.screen__thumb .pills--float { left: 10px; top: 10px; }

/* Floating UI cards */
.ui-card { position: absolute; background: var(--escora-ivory); border: 1px solid var(--escora-line); border-radius: var(--radius-sm); box-shadow: var(--shadow-lift); padding: 16px 18px; display: grid; gap: 8px; z-index: 4; }
.ui-card__title { font-size: 16px; font-weight: 500; letter-spacing: -0.01em; }
.ui-card__meta { font-size: 13px; color: var(--escora-muted); }

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.nav { position: sticky; top: 0; z-index: 50; transition: background-color .35s ease, border-color .35s ease; border-bottom: 1px solid transparent; }
.nav.is-scrolled { background: rgba(255, 253, 252, 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: var(--escora-line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); min-height: var(--nav-h); }
.wordmark { font-size: 20px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; }
.wordmark i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--escora-red); margin-left: 4px; vertical-align: 2px; }
.nav__links { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 36px); font-size: 14.5px; font-weight: 500; }
.nav__links a { padding: 6px 0; border-bottom: 1px solid transparent; transition: border-color .2s ease; }
.nav__links a:hover { border-bottom-color: var(--escora-ink); }
.nav__actions { display: flex; align-items: center; gap: var(--s-2); }
.nav__toggle { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--escora-line); background: var(--escora-ivory); align-items: center; justify-content: center; }
.nav__toggle svg { width: 20px; height: 20px; }
.nav__toggle .icon-close { display: none; }
.nav__toggle[aria-expanded="true"] .icon-open { display: none; }
.nav__toggle[aria-expanded="true"] .icon-close { display: block; }
.nav__mobile { display: none; border-top: 1px solid var(--escora-line); background: var(--escora-ivory); padding: var(--s-3) var(--gutter) var(--s-4); }
.nav__mobile[data-open="true"] { display: grid; gap: var(--s-1); }
.nav__mobile a { font-size: 18px; font-weight: 500; padding: 12px 0; border-bottom: 1px solid var(--escora-line); }
.nav__mobile .btn { margin-top: var(--s-2); justify-self: start; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero { padding-block: clamp(32px, 5vw, 80px) clamp(64px, 8vw, 120px); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero__copy { display: grid; gap: var(--s-4); }
.rotator { display: inline-grid; vertical-align: baseline; text-align: left; transition: width .55s cubic-bezier(.2,.7,.2,1); overflow: visible; }
.rotator__word { grid-area: 1 / 1; white-space: nowrap; color: var(--escora-red); opacity: 0; transform: translateY(0.3em); transition: opacity .38s ease, transform .38s ease; }
.rotator__word.is-active { opacity: 1; transform: translateY(0); }
.rotator__word.is-leaving { opacity: 0; transform: translateY(-0.3em); }
.hero__sub { max-width: 60ch; }
.trust-line { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; }
.trust-line svg { width: 18px; height: 18px; color: var(--escora-red); flex: none; }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.hero__proof { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding-top: var(--s-1); }
.hero__proof-row { display: flex; align-items: center; gap: var(--s-2); }
.pill--stat { white-space: normal; padding: 8px 14px; font-size: 13.5px; background: var(--escora-ivory); border-color: var(--escora-line); }
.pill--stat b { font-weight: 600; font-variant-numeric: tabular-nums; }
.hero__proof-text { display: grid; line-height: 1.25; }
.hero__proof-text b { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.hero__proof-text span { font-size: 14px; color: var(--escora-muted); }

.hero__visual { position: relative; display: grid; place-items: center; min-height: 640px; }
.hero__glow { position: absolute; inset: 8% 4%; border-radius: 40px; background: linear-gradient(160deg, var(--escora-blush), var(--escora-cream) 70%); z-index: 0; }
.hero__visual .phone { z-index: 2; }
.hero__visual .ui-card--invite { left: 0; top: 14%; width: min(250px, 60%); }
.hero__visual .ui-card--check { right: 0; bottom: 5%; width: min(220px, 56%); }

/* --------------------------------------------------------------------------
   Problem: pinned horizontal gallery (native horizontal scroll on small screens)
   -------------------------------------------------------------------------- */
.problem { overflow: hidden; }
.problem__pin { position: relative; }
/* Default: native horizontal scroll. With GSAP on wide screens, JS adds .is-pinned and the track is pinned and driven by vertical scroll. */
.problem__track { display: flex; gap: var(--s-3); padding-inline: max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter))); scroll-padding-inline: max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter))); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 8px; }
.problem__track::-webkit-scrollbar { display: none; }
.problem.is-pinned .problem__track { overflow: visible; width: max-content; scroll-snap-type: none; }
.problem-card {
  position: relative; width: clamp(300px, 28vw, 400px); min-height: 440px; border-radius: var(--radius-card); overflow: hidden;
  background: var(--escora-ivory); border: 1px solid var(--escora-line); display: grid; grid-template-rows: 200px 1fr;
  transition: transform .35s ease, box-shadow .35s ease;
}
.problem-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.problem-card .art { border-radius: 0; }
.problem-card__body { padding: 22px 24px 26px; display: grid; align-content: start; gap: 10px; }
.problem-card__num { position: absolute; top: 16px; left: 16px; z-index: 3; }
.problem-card p { color: var(--escora-muted); font-size: 15px; line-height: 1.55; }
.problem-card p strong { color: var(--escora-ink); font-weight: 500; }
.problem__hint { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--escora-muted); margin-top: var(--s-3); }
.problem__hint svg { width: 16px; height: 16px; }
.problem-card { scroll-snap-align: start; flex: 0 0 auto; }
@media (max-width: 1023px) { .problem-card { flex-basis: min(360px, 82vw); width: auto; min-height: 480px; } }

/* --------------------------------------------------------------------------
   Why Escora exists: sticky phone + story cards
   -------------------------------------------------------------------------- */
.why__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 112px); align-items: start; }
.why__phone { position: sticky; top: calc(var(--nav-h) + 32px); display: grid; place-items: center; }
.why__phone-wrap { position: relative; }
.story { display: grid; gap: var(--s-3); padding-block: 20px; }
.story-card {
  background: var(--escora-ivory); border: 1px solid var(--escora-line); border-radius: var(--radius-card); padding: clamp(24px, 3vw, 40px);
  display: grid; gap: 10px; min-height: 180px; align-content: center;
  transition: border-color .4s ease, box-shadow .4s ease, transform .4s ease;
}
.story-card.is-active { border-color: var(--escora-rose); box-shadow: var(--shadow-soft); }
.story-card p { font-size: clamp(17px, 1.5vw, 21px); line-height: 1.5; letter-spacing: -0.01em; font-weight: 400; max-width: 46ch; }
.story-card h3 { font-size: clamp(20px, 1.9vw, 26px); line-height: 1.25; letter-spacing: -0.015em; font-weight: 500; }
.story-card .kicker { color: var(--escora-red); }
.pullquote { margin-top: clamp(64px, 9vw, 140px); margin-bottom: clamp(24px, 5vw, 80px); max-width: 980px; margin-inline: auto; text-align: center; display: grid; gap: var(--s-3); justify-items: center; }
.pullquote blockquote { font-size: clamp(32px, 4.6vw, 68px); line-height: 1.04; letter-spacing: -0.03em; font-weight: 450; text-wrap: balance; }
.pullquote .lead { color: var(--escora-muted); }
/* Scroll-highlight: each word starts rose and fills to ink as you scroll (GSAP) */
.hl .w { color: var(--escora-muted); transition: color .3s ease; }
.hl .w.on, .no-js .hl .w { color: var(--escora-ink); }

/* --------------------------------------------------------------------------
   The word: dictionary entry + ticker
   -------------------------------------------------------------------------- */
.word { background: var(--escora-ivory); overflow: hidden; }
.word__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 112px); align-items: start; }
.word__copy { display: grid; gap: var(--s-3); }
.word__copy p { font-size: clamp(16px, 1.3vw, 19px); line-height: 1.6; max-width: 56ch; }
.dict { background: var(--escora-cream); border: 1px solid var(--escora-line); border-radius: var(--radius-card); padding: clamp(28px, 3.4vw, 48px); display: grid; gap: 18px; position: sticky; top: calc(var(--nav-h) + 32px); }
.dict__head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.dict__word { font-size: clamp(44px, 5vw, 72px); line-height: 1; letter-spacing: -0.03em; font-weight: 450; }
.dict__phon { font-size: 16px; color: var(--escora-muted); }
.dict__pos { font-size: 13px; font-style: italic; color: var(--escora-muted); }
.dict__defs { display: grid; gap: 14px; counter-reset: d; }
.dict__defs li { display: grid; grid-template-columns: 28px 1fr; gap: 8px; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.35; letter-spacing: -0.01em; counter-increment: d; }
.dict__defs li::before { content: counter(d) "."; color: var(--escora-red); font-weight: 500; }
.dict__narrow { padding-top: 14px; border-top: 1px solid var(--escora-line); display: grid; gap: 6px; }
.dict__narrow s { color: var(--escora-muted); text-decoration-color: var(--escora-red); font-size: 17px; }
.dict__narrow span { font-size: 14px; color: var(--escora-muted); }
.ticker { margin-top: clamp(40px, 5vw, 72px); display: grid; gap: 14px; }
.ticker__row { display: flex; width: max-content; }
.tick { display: flex; align-items: center; gap: 12px; margin-right: 14px; padding: 8px 18px 8px 8px; border-radius: var(--radius-pill); background: var(--escora-cream); border: 1px solid var(--escora-line); font-size: clamp(17px, 1.5vw, 22px); font-weight: 450; letter-spacing: -0.01em; white-space: nowrap; }
.tick .art { width: 44px; height: 44px; border-radius: 50%; flex: none; }
.word__center { text-align: center; max-width: 920px; margin: clamp(48px, 7vw, 112px) auto 0; padding: clamp(36px, 5vw, 72px) clamp(20px, 4vw, 56px); display: grid; gap: var(--s-3); justify-items: center; background: var(--escora-blush); border-radius: 32px; }
.word__statement { font-size: clamp(28px, 3.6vw, 52px); line-height: 1.08; letter-spacing: -0.03em; font-weight: 450; max-width: 18ch; }
.word__close { font-size: clamp(15px, 1.2vw, 18px); line-height: 1.6; max-width: 56ch; color: var(--escora-muted); }
.word__pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 720px; }
.word__pills .pill { padding: 7px 14px 7px 7px; gap: 9px; font-size: 13.5px; background: var(--escora-ivory); border-color: var(--escora-ivory); }
.word__pills .art { width: 22px; height: 22px; border-radius: 50%; flex: none; }

/* --------------------------------------------------------------------------
   How it works: stacking cards
   -------------------------------------------------------------------------- */
.stack { display: grid; gap: var(--s-3); }
.stack-card {
  position: sticky; top: calc(var(--nav-h) + 24px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 72px); align-items: center;
  background: var(--escora-ivory); border: 1px solid var(--escora-line); border-radius: 28px; padding: clamp(24px, 3.4vw, 48px);
  box-shadow: var(--shadow-soft); transform-origin: top center; min-height: min(520px, 70vh);
}
.stack-card:nth-child(2) { top: calc(var(--nav-h) + 36px); }
.stack-card:nth-child(3) { top: calc(var(--nav-h) + 48px); }
.stack-card:nth-child(4) { top: calc(var(--nav-h) + 60px); }
.stack-card:nth-child(5) { top: calc(var(--nav-h) + 72px); }
.stack-card:nth-child(even) { background: var(--escora-cream); }
.stack-card__copy { display: grid; gap: var(--s-2); max-width: 50ch; }
.stack-card__num { font-size: 13px; font-weight: 600; letter-spacing: 0.14em; color: var(--escora-red); }
.stack-card__copy p { color: var(--escora-muted); font-size: clamp(15px, 1.2vw, 17px); line-height: 1.6; }
.stack-card__visual { position: relative; min-height: 340px; border-radius: 22px; overflow: hidden; }
.stack-card__visual .art { position: absolute; inset: 0; border-radius: 22px; }
.stack-card__visual .pills--float { left: 16px; top: 16px; max-width: calc(100% - 32px); }
.stack-card__visual .ui-card { left: 16px; right: 16px; bottom: 16px; width: auto; }
.stack-card__visual .ui-card--right { left: auto; width: min(260px, 70%); }
.stack-card__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.stack-card__row > div { display: flex; align-items: center; gap: 10px; }

/* --------------------------------------------------------------------------
   Trust & Safety: animated phone + booking timeline
   -------------------------------------------------------------------------- */
.safety__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 96px); align-items: center; }
.safety__copy { display: grid; gap: var(--s-3); max-width: 56ch; }
.safety__copy .h3 { font-weight: 400; color: var(--escora-muted); }
.safety__points { display: grid; gap: 10px; }
.safety__points li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; font-size: clamp(15px, 1.2vw, 17px); align-items: start; }
.safety__points svg { width: 20px; height: 20px; color: var(--escora-red); margin-top: 2px; }
.safety__phone { display: grid; place-items: center; position: relative; }
.safety__phone .phone { --phone-w: 280px; }
.safety__phone .ui-card { right: 0; top: 18%; width: 200px; }
.safety__phone .ui-card--b { right: auto; left: 0; top: auto; bottom: 16%; }
.sos { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: var(--escora-red); color: #fff; font-weight: 600; letter-spacing: 0.08em; margin: 6px auto; font-size: 14px; position: relative; }
.sos::before, .sos::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 2px solid rgba(217,59,48,0.35); }
.sos::after { inset: -22px; border-color: rgba(217,59,48,0.18); }
@media (prefers-reduced-motion: no-preference) {
  .sos::before { animation: pulse 2.4s ease-out infinite; }
  .sos::after { animation: pulse 2.4s ease-out infinite .5s; }
  @keyframes pulse { 0% { transform: scale(.85); opacity: 1; } 100% { transform: scale(1.25); opacity: 0; } }
}
.timeline { margin-top: clamp(48px, 6vw, 88px); position: relative; }
.timeline__title { font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--escora-muted); margin-bottom: var(--s-3); }
.timeline__rail { position: absolute; left: 0; right: 0; top: calc(var(--s-3) + 14px + 7px); height: 1px; background: var(--escora-line); }
.timeline__fill { position: absolute; left: 0; top: 0; height: 100%; width: 100%; background: var(--escora-red); transform-origin: left; transform: scaleX(0); }
.timeline__items { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s-2); position: relative; }
.tl { display: grid; gap: 8px; align-content: start; }
.tl__dot { width: 15px; height: 15px; border-radius: 50%; background: var(--escora-ivory); border: 2px solid var(--escora-red); }
.tl__time { font-size: 12.5px; font-weight: 600; letter-spacing: 0.08em; color: var(--escora-red); font-variant-numeric: tabular-nums; }
.tl__t { font-size: 15.5px; font-weight: 500; letter-spacing: -0.01em; }
.tl__p { font-size: 13.5px; color: var(--escora-muted); }
.safety__close { font-size: clamp(28px, 3.6vw, 52px); line-height: 1.06; letter-spacing: -0.03em; font-weight: 450; margin-top: clamp(40px, 5vw, 72px); max-width: 900px; }

/* --------------------------------------------------------------------------
   For Escorians: phone left, invitation feed right
   -------------------------------------------------------------------------- */
.esc__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 96px); align-items: center; }
.esc__visual { position: relative; display: grid; place-items: center; min-height: 640px; }
.esc__glow { position: absolute; inset: 6% 0; border-radius: 40px; background: linear-gradient(200deg, var(--escora-blush), var(--escora-ivory) 75%); }
.esc__visual .phone { z-index: 2; }
.esc__visual .ui-card--a { left: 0; top: 40%; bottom: auto; width: min(200px, 50%); }
.esc__visual .ui-card--b { right: 0; top: 8%; bottom: auto; width: min(220px, 56%); }
.esc__copy { display: grid; gap: var(--s-3); }
.esc__copy .h3 { font-weight: 400; color: var(--escora-muted); }
.esc__copy p { max-width: 56ch; }
.feed { display: grid; gap: 10px; }
.feed__item { display: grid; grid-template-columns: 52px 1fr auto; gap: 14px; align-items: center; padding: 12px 14px 12px 12px; background: var(--escora-ivory); border: 1px solid var(--escora-line); border-radius: 18px; transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.feed__item:hover { transform: translateX(4px); box-shadow: var(--shadow-soft); border-color: var(--escora-rose); }
.feed__item .art { width: 52px; height: 52px; border-radius: 14px; }
.feed__t { font-size: 15px; font-weight: 500; letter-spacing: -0.01em; }
.feed__m { font-size: 13px; color: var(--escora-muted); }
.feed__act { display: flex; gap: 6px; }
.feed__act .pill { cursor: default; }
.feed__item { cursor: pointer; }
.feed__item.is-active { border-color: var(--escora-red); box-shadow: var(--shadow-soft); transform: translateX(6px); background: var(--escora-ivory); }
.feed__item.is-active .feed__t { color: var(--escora-ink); }
.feed__item.is-active .pill--red { background: var(--escora-red); color: #fff; }
.invite { transition: transform .3s ease, box-shadow .3s ease; }
.invite.is-swap { animation: inviteSwap .5s ease; }
@keyframes inviteSwap { 0% { opacity: 0; transform: translateY(14px) scale(.98); } 100% { opacity: 1; transform: none; } }
@media (min-width: 1024px) { .esc__visual { position: sticky; top: calc(var(--nav-h) + 24px); align-self: start; } .esc__grid { align-items: start; } }
.esc__statement { font-size: clamp(20px, 2vw, 28px); font-weight: 500; letter-spacing: -0.015em; }
.esc__facts { display: flex; flex-wrap: wrap; gap: var(--s-4); padding-block: var(--s-3); border-block: 1px solid var(--escora-line); }
.stat { display: grid; gap: 4px; }
.stat__num { font-size: clamp(32px, 3.4vw, 46px); line-height: 1; font-weight: 450; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat__label { font-size: 14px; color: var(--escora-muted); }
.footnote { font-size: 12.5px; color: var(--escora-muted); margin-top: var(--s-1); }

/* --------------------------------------------------------------------------
   Experiences (masonry)
   -------------------------------------------------------------------------- */
.xp__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: 130px; gap: var(--s-3); }
.xp-card { position: relative; display: block; border-radius: var(--radius-card); overflow: hidden; grid-column: span 4; grid-row: span 3; isolation: isolate; }
.xp-card .art { position: absolute; inset: 0; border-radius: 0; }
.xp-card:hover .art::after { transform: scale(1.06); }
.xp-card .pills--float { left: 16px; top: 16px; }
.xp-card__body { position: absolute; inset: auto 0 0 0; z-index: 2; padding: 22px 24px; display: grid; gap: 8px; background: linear-gradient(to top, rgba(255,253,252,0.96) 0%, rgba(255,253,252,0.86) 55%, rgba(255,253,252,0) 100%); }
.xp-card__k { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.xp-card__p { font-size: 15px; line-height: 1.45; color: var(--escora-muted); }
.xp-card:nth-child(1) { grid-column: span 7; grid-row: span 4; }
.xp-card:nth-child(2) { grid-column: span 5; grid-row: span 4; }
.xp-card:nth-child(6) { grid-column: span 5; }
.xp-card:nth-child(7) { grid-column: span 7; }
.xp-card:nth-child(11), .xp-card:nth-child(12) { grid-column: span 6; }

/* --------------------------------------------------------------------------
   Testimonials: continuous marquee
   -------------------------------------------------------------------------- */
.testi { overflow: hidden; }
.testi__track { display: flex; width: max-content; padding-block: 8px; }
.quote { flex: 0 0 min(420px, 80vw); margin-right: var(--s-3); border-radius: var(--radius-card); padding: clamp(24px, 2.6vw, 36px); display: grid; gap: var(--s-3); align-content: space-between; min-height: 280px; border: 1px solid var(--escora-line); background: var(--escora-ivory); }
.quote:nth-child(5n+3) { background: var(--escora-blush); border-color: transparent; }
.quote:nth-child(5n+5) { background: var(--escora-ink); color: var(--escora-ivory); border-color: transparent; }
.quote:nth-child(5n+5) .quote__who { color: var(--escora-rose); }
.quote blockquote { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.5; letter-spacing: -0.005em; }
.quote__who { display: flex; align-items: center; gap: 12px; }
.quote__who .avatar { width: 40px; height: 40px; font-size: 13px; background: var(--escora-blush); color: var(--escora-ink); }
.quote__who .avatar svg { width: 18px; height: 18px; }
.quote:nth-child(5n+5) .quote__who .avatar { background: rgba(255,253,252,0.14); color: var(--escora-ivory); }
.quote__name { font-size: 15px; font-weight: 500; display: block; }
.quote__role { font-size: 13px; color: var(--escora-muted); display: block; }
.quote:nth-child(5n+5) .quote__role { color: var(--escora-rose); }
@media (prefers-reduced-motion: no-preference) {
  .testi__track { animation: tick 120s linear infinite; }
  .ticker__row { animation: tick 40s linear infinite; }
  .ticker__row--rev { animation: tickRev 40s linear infinite; }
  .ticker:hover .ticker__row { animation-play-state: paused; }
  @keyframes tick {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
  }
  @keyframes tickRev {
    from { transform: translateX(-50%); }
    to   { transform: translateX(0); }
  }
}
@media (prefers-reduced-motion: reduce) {
  .testi__track { width: auto; overflow-x: auto; }
  .ticker__row { width: auto; overflow-x: auto; }
}

/* --------------------------------------------------------------------------
   Final CTA (centered)
   -------------------------------------------------------------------------- */
.final { background: linear-gradient(180deg, var(--escora-cream) 0%, var(--escora-blush) 100%); position: relative; overflow: hidden; }
.final__inner { position: relative; display: grid; gap: var(--s-3); max-width: 820px; margin-inline: auto; text-align: center; justify-items: center; }
.final__title { display: grid; }
.final__title span:last-child { color: var(--escora-muted); }
.final__cta { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; justify-content: center; }
.final .avatar-stack { justify-content: center; margin-bottom: var(--s-1); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer { background: var(--escora-ivory); border-top: 1px solid var(--escora-line); padding-block: clamp(48px, 6vw, 80px) var(--s-5); }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr); gap: var(--s-6); }
.footer__brand { display: grid; gap: var(--s-2); align-content: start; }
.footer__links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px var(--s-3); font-size: 15px; }
.footer__links a { padding-block: 4px; border-bottom: 1px solid transparent; }
.footer__links a:hover { border-bottom-color: var(--escora-ink); }
.footer__note { margin-top: var(--s-6); padding-top: var(--s-3); border-top: 1px solid var(--escora-line); display: grid; gap: var(--s-2); font-size: 13.5px; color: var(--escora-muted); max-width: 80ch; }

/* --------------------------------------------------------------------------
   Waitlist modal
   -------------------------------------------------------------------------- */
.modal { border: 0; padding: 0; background: transparent; max-width: min(560px, calc(100vw - 32px)); width: 100%; margin: auto; color: var(--escora-ink); }
.modal::backdrop { background: rgba(29, 38, 48, 0.42); backdrop-filter: blur(4px); }
.modal__panel { background: var(--escora-ivory); border-radius: 28px; padding: clamp(24px, 4vw, 40px); display: grid; gap: var(--s-3); box-shadow: var(--shadow-lift); }
.modal__head { display: flex; align-items: start; justify-content: space-between; gap: var(--s-2); }
.modal__close { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--escora-line); background: var(--escora-cream); display: grid; place-items: center; flex: none; }
.modal__close svg { width: 16px; height: 16px; }
.form { display: grid; gap: var(--s-2); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); }
.form__row > * { min-width: 0; }
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; font-weight: 500; color: var(--escora-muted); }
.field input { width: 100%; font: inherit; font-size: 16px; color: var(--escora-ink); background: var(--escora-cream); border: 1px solid var(--escora-line); border-radius: 14px; padding: 13px 14px; appearance: none; min-height: 50px; }
.field input:focus { outline: none; border-color: var(--escora-ink); }
.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; background: var(--escora-cream); border: 1px solid var(--escora-line); border-radius: 16px; }
.segmented label { position: relative; }
.segmented input { position: absolute; opacity: 0; inset: 0; }
.segmented span { display: block; text-align: center; padding: 11px 10px; border-radius: 11px; font-size: 15px; font-weight: 500; color: var(--escora-muted); cursor: pointer; transition: background .2s, color .2s; }
.segmented input:checked + span { background: var(--escora-ink); color: var(--escora-ivory); }
.segmented input:focus-visible + span { outline: 2px solid var(--escora-ink); outline-offset: 2px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--escora-muted); }
.check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--escora-red); flex: none; }
.form__error { font-size: 14px; color: var(--escora-red-dark); min-height: 1.2em; }
[hidden] { display: none !important; }
.form__success { display: grid; gap: 10px; padding: var(--s-2) 0; }
.form__success .h3 { font-size: clamp(28px, 3vw, 36px); }

[data-reveal] { will-change: transform, opacity; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .nav__links { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav__actions .btn { display: none; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { min-height: 600px; }
  .why__grid { grid-template-columns: 1fr; gap: var(--s-4); }
  .why__phone { position: sticky; top: var(--nav-h); z-index: 2; --phone-w: 170px; pointer-events: none; background: var(--escora-blush); padding: 12px 0 16px; margin-inline: calc(-1 * var(--gutter)); }
  .story-card { min-height: 0; }
  .word__grid { grid-template-columns: 1fr; }
  .dict { position: static; }
  .safety__grid { grid-template-columns: 1fr; }
  .timeline__items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timeline__rail { display: none; }
  .esc__grid { grid-template-columns: 1fr; }
  .esc__visual { min-height: 600px; }
  .xp__grid { grid-auto-rows: 110px; }
  .xp-card:nth-child(n) { grid-column: span 6; grid-row: span 3; }
  .xp-card:nth-child(1), .xp-card:nth-child(7) { grid-column: span 12; grid-row: span 4; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .stack-card { grid-template-columns: 1fr; min-height: 0; gap: var(--s-3); }
  .stack-card__visual { min-height: 280px; }
  .stack-card__row { flex-wrap: wrap; }
  .stack-card__row > div { flex: 1 1 100%; }
  .xp__grid { grid-auto-rows: 96px; gap: var(--s-2); }
  .xp-card:nth-child(n) { grid-column: span 12; grid-row: span 3; }
  .xp-card:nth-child(1), .xp-card:nth-child(7) { grid-row: span 4; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form__row { grid-template-columns: 1fr; }
  .hero__visual { min-height: 560px; }
  .hero__visual .ui-card--invite { top: 6%; }
  .hero__visual .ui-card--check { bottom: 6%; }
  .timeline__items { grid-template-columns: 1fr; }
  .feed__item { grid-template-columns: 44px 1fr; }
  .feed__act { grid-column: 2; }
  .feed__item .art { width: 44px; height: 44px; }
  .hero__proof-row { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 430px) {
  .display { font-size: clamp(44px, 13vw, 56px); }
  .hero__cta .btn, .final__cta .btn { width: 100%; }
  .hero__visual { --phone-w: 260px; }
}

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