/* ==========================================================================
   Persian Club — site styles
   Single hand-written stylesheet (no build step). Sections:
   1. Tokens & base   2. Layout helpers   3. Buttons   4. Header
   5. Hero            6. Marquee          7. Modes     8. Showcase
   9. How it works   10. FAQ             11. CTA      12. Footer
   13. Legal pages   14. Motion states   15. Reduced motion
   ========================================================================== */

/* 1. Tokens & base -------------------------------------------------------- */
:root {
  --ink: #0d0609;
  --ink-2: #170b10;
  --ink-3: #22111a;
  --paper: #fbf6f2;
  --paper-2: #f3e9e3;
  --text: #1d1013;
  --muted: #6b5a60;
  --on-dark: #f6ecef;
  --on-dark-muted: #b9a7ad;
  --line: rgba(255, 255, 255, 0.1);
  --line-dark: rgba(29, 16, 19, 0.12);

  --crimson: #d81e45;
  --crimson-deep: #9c1230;
  --amber: #ffa62b;
  --blue: #2f7fc8;
  --accent-dark: #ff6b85;


  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --font-fa: "Vazirmatn", "Noto Naskh Arabic", Tahoma, sans-serif;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 28px;
  --header-h: 76px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-x: clip;
}

::selection { background: var(--crimson); color: #fff; }

/* Farsi accents: always RTL, set in Vazirmatn */
.fa { font-family: var(--font-fa); font-style: normal; letter-spacing: 0; direction: rtl; unicode-bidi: isolate; }

img, picture { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10000;
  padding: 10px 16px;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  transform: translateY(-200%);
  transition: transform 0.25s var(--ease-out);
}
.skip-link:focus { transform: none; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* 2. Layout helpers ------------------------------------------------------- */
.container {
  width: min(1180px, 100% - 48px);
  margin-inline: auto;
}

.section { padding-block: clamp(72px, 11vw, 150px); }
.section--dark { background: var(--ink); color: var(--on-dark); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 13px 6px 11px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--crimson);
  background: color-mix(in srgb, currentColor 8%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 22%, transparent);
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 22%, transparent);
}
.section--dark .eyebrow,
.showcase .eyebrow { color: var(--amber); }

.display {
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.display--xl { font-size: clamp(2.7rem, 6.4vw, 5.6rem); }
.display--lg { font-size: clamp(2.2rem, 4.8vw, 3.9rem); }

.accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--crimson);
  padding-right: 0.06em;
}
.hero .accent,
.showcase .accent,
.cta .accent { color: var(--accent-dark); }

.lead {
  font-size: clamp(1.08rem, 1.5vw, 1.28rem);
  line-height: 1.6;
  color: var(--muted);
  text-wrap: pretty;
}
.section--dark .lead,
.hero .lead { color: var(--on-dark-muted); }

/* Word-masked reveal (JS wraps each word) */
.word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.32em; margin-bottom: -0.32em; }
.word > span { display: inline-block; will-change: transform; }

/* 3. Buttons -------------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 54px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 12px 30px -14px rgba(0, 0, 0, 0.6);
  transition: background-color 0.3s, color 0.3s, box-shadow 0.3s;
  will-change: transform;
}
.btn:hover { background: var(--crimson); color: #fff; box-shadow: 0 16px 36px -14px rgba(216, 30, 69, 0.8); }
.btn:active { scale: 0.97; }
.btn--sm { height: 42px; padding: 0 18px; font-size: 0.9rem; }
.btn--ghost {
  color: #fff;
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}
.btn--ghost:hover { color: #fff; background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45); }
.btn svg { width: 18px; height: 18px; flex: none; transition: transform 0.4s var(--ease-out); }
.btn:hover svg { transform: translateY(3px); }

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 212px;
  height: 64px;
  padding: 0 24px 0 20px;
  border-radius: 18px;
  text-decoration: none;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background-color 0.3s, color 0.3s, box-shadow 0.3s;
  will-change: transform;
}
.store-btn:hover { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px #fff, 0 18px 40px -16px rgba(0, 0, 0, 0.7); }
.store-btn svg { width: 28px; height: 28px; flex: none; }
.store-btn small { display: block; font-size: 0.7rem; line-height: 1.1; letter-spacing: 0.04em; opacity: 0.75; }
.store-btn strong { display: block; font-size: 1.15rem; line-height: 1.2; letter-spacing: -0.01em; }

/* 4. Header --------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 12px;
  left: 0;
  right: 0;
  z-index: 900;
  height: 60px;
  color: var(--on-dark);
  pointer-events: none;
  transition: transform 0.5s var(--ease-out);
}
.site-header .nav {
  pointer-events: auto;
  width: min(1180px, 100% - 24px);
  padding: 0 9px 0 20px;
  border-radius: 999px;
  background: rgba(20, 10, 14, 0.28);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  transition: background-color 0.4s, box-shadow 0.4s;
}
.site-header.is-scrolled .nav,
.site-header--solid .nav {
  background: rgba(16, 8, 12, 0.74);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 20px 40px -24px rgba(0, 0, 0, 0.7);
}
.site-header.is-hidden { transform: translateY(calc(-100% - 16px)); }
.nav { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.brand img { height: 24px; width: auto; }
.brand span { font-size: 1.12rem; font-weight: 700; letter-spacing: -0.035em; line-height: 1; }
.brand--footer img { height: 36px; }
.brand--footer span { font-size: 1.6rem; }
.brand--footer { margin-bottom: 18px; }
.nav__links { display: none; gap: 2px; }
.nav__links a {
  padding: 8px 15px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--on-dark-muted);
  transition: color 0.2s, background-color 0.2s;
}
.nav__links a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
@media (min-width: 820px) { .nav__links { display: flex; } }

.progress {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: 2px;
  background: var(--crimson);
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}

/* 5. Hero ----------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: calc(var(--header-h) + clamp(32px, 6vw, 80px)) 0 clamp(56px, 8vw, 110px);
  color: #fff;
  background: var(--ink);
}
.hero__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.42;
  will-change: transform;
}
.blob--1 { width: 56vw; height: 56vw; max-width: 760px; max-height: 760px; left: -14%; top: -22%; background: var(--crimson); animation: drift-a 16s ease-in-out infinite alternate; }
.blob--2 { width: 42vw; height: 42vw; max-width: 560px; max-height: 560px; right: -10%; top: 6%; background: var(--blue); opacity: 0.22; animation: drift-b 19s ease-in-out infinite alternate; }
.blob--3 { width: 36vw; height: 36vw; max-width: 480px; max-height: 480px; right: 22%; bottom: -26%; background: var(--amber); opacity: 0.22; animation: drift-c 14s ease-in-out infinite alternate; }
@keyframes drift-a { to { transform: translate(14vw, 10vh) scale(1.15); } }
@keyframes drift-b { to { transform: translate(-12vw, 14vh) scale(0.9); } }
@keyframes drift-c { to { transform: translate(-10vw, -12vh) scale(1.2); } }

.hero__grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1.2px);
  background-size: 34px 34px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
}
.hero__grain {
  position: absolute;
  inset: -50%;
  opacity: 0.1;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero__inner {
  display: grid;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.hero__copy { position: relative; z-index: 2; }
.hero .eyebrow { color: var(--amber); margin-bottom: 22px; }
.hero h1 { margin-bottom: 26px; }
.hero .lead { max-width: 34ch; margin-bottom: 36px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 36px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 0.9rem; font-weight: 600; color: var(--on-dark-muted); }
.hero__meta li { display: inline-flex; align-items: center; gap: 8px; }
.hero__meta li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 4px rgba(255, 166, 43, 0.18);
}
.hero__meta li:nth-child(2)::before { background: #ff5c7c; box-shadow: 0 0 0 4px rgba(255, 92, 124, 0.18); }
.hero__meta li:nth-child(3)::before { background: #5aa9f0; box-shadow: 0 0 0 4px rgba(90, 169, 240, 0.18); }

.hero__stage {
  position: relative;
  height: clamp(440px, 96vw, 700px);
  margin-top: 16px;
  perspective: 1400px;
}
.stage__inner { position: absolute; inset: 0; transform-style: preserve-3d; will-change: transform; }
.phone {
  position: absolute;
  left: 50%;
  top: 0;
  width: var(--w);
  filter: drop-shadow(0 40px 60px rgba(0, 0, 0, 0.55));
  will-change: transform;
}
.phone img { width: 100%; height: auto; }
/* Static placement uses the individual `translate`/`rotate` properties so GSAP can own `transform`. */
.phone--c { --w: clamp(190px, 50vw, 330px); z-index: 3; translate: -50% 0; }
.phone--l { --w: clamp(150px, 40vw, 270px); z-index: 2; top: 12%; translate: -112% 0; rotate: -7deg; }
.phone--r { --w: clamp(150px, 40vw, 270px); z-index: 1; top: 20%; translate: 12% 0; rotate: 7deg; }

/* Floating glass chips around the hero phones (decorative) */
.chip {
  position: absolute;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 10px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18), 0 20px 40px -18px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  will-change: transform;
}
.chip__icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--crimson); }
.chip__icon svg { width: 15px; height: 15px; }
.chip small { display: block; font-size: 0.72rem; font-weight: 500; color: rgba(255, 255, 255, 0.7); }
.chip--match { left: 2%; top: 58%; }
.chip--hello { right: 0; top: 6%; padding: 10px 18px; font-size: 1.05rem; }
.chip--hello .fa { font-weight: 700; }
@media (max-width: 959px) {
  .chip { font-size: 0.76rem; padding: 8px 12px 8px 8px; }
  .chip__icon { width: 24px; height: 24px; }
  .chip--match { left: 0; top: 64%; }
  .chip--hello { right: 2%; top: 2%; font-size: 0.92rem; padding: 8px 14px; }
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 22px;
  width: 24px;
  height: 40px;
  border-radius: 14px;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35);
  transform: translateX(-50%);
  display: none;
}
.scroll-hint::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: #fff;
  animation: wheel 1.8s ease-in-out infinite;
}
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

@media (min-width: 960px) {
  .hero__inner { grid-template-columns: 1.05fr 0.95fr; }
  .hero__stage { height: clamp(560px, 62vh, 720px); margin-top: 0; }
  .scroll-hint { display: block; }
}

/* 6. Marquee -------------------------------------------------------------- */
.marquee {
  position: relative;
  z-index: 2;
  overflow: hidden;
  padding: 30px 0;
  background: var(--ink);
  color: var(--on-dark);
  border-top: 1px solid var(--line);
}
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__group { display: flex; flex: none; align-items: center; }
.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: clamp(22px, 3vw, 48px);
  padding-right: clamp(22px, 3vw, 48px);
  font-size: clamp(1.7rem, 3.8vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  white-space: nowrap;
}
.marquee__item--serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--accent-dark);
}
.marquee__item::after {
  content: "";
  flex: none;
  width: 0.42em;
  height: 0.42em;
  background: var(--amber);
  /* eight-pointed star (shamseh) */
  clip-path: polygon(50% 0, 61% 26%, 85% 15%, 74% 39%, 100% 50%, 74% 61%, 85% 85%, 61% 74%, 50% 100%, 39% 74%, 15% 85%, 26% 61%, 0 50%, 26% 39%, 15% 15%, 39% 26%);
}
/* direction stays ltr so the star sits after the word like the others */
.marquee__item.fa { font-family: var(--font-fa); font-weight: 700; font-size: clamp(1.6rem, 3.5vw, 3rem); letter-spacing: 0; direction: ltr; color: var(--on-dark-muted); }

/* 7. Modes ---------------------------------------------------------------- */
.modes { padding-top: clamp(80px, 11vw, 150px); }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head .eyebrow { margin-bottom: 20px; }
.section-head .display { margin-bottom: 20px; }

.modes__grid { display: grid; gap: 16px; }
@media (min-width: 860px) { .modes__grid { grid-template-columns: 1.3fr 1fr 1fr; gap: 20px; } }

.mode {
  --c: var(--crimson);
  --tint: #f9e1e6;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  height: 580px;
  padding: 30px 30px 0;
  border-radius: 32px;
  background: var(--tint);
}
.mode--friend { --c: #2a6fb0; --tint: #e2ecf7; }
.mode--network { --c: #b36a00; --tint: #f8ead3; }
.mode__tag { margin-bottom: 18px; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--c); }
.mode h3 { margin-bottom: 10px; font-size: clamp(1.8rem, 2.6vw, 2.3rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1.05; }
.mode p { max-width: 32ch; color: #5d4b51; }
.mode__shot {
  flex: none;
  width: min(260px, 70%);
  margin: auto auto 0;
  padding-top: 28px;
  translate: 0 4%;
  filter: drop-shadow(0 30px 40px rgba(60, 20, 30, 0.22));
  transition: translate 0.9s var(--ease-out), rotate 0.9s var(--ease-out);
}
.mode:hover .mode__shot { translate: 0 -3%; rotate: -3deg; }
@media (min-width: 860px) {
  .modes__grid .mode:first-child .mode__shot { width: min(280px, 62%); }
}

/* 8. Showcase (pinned phone) --------------------------------------------- */
/* overflow: clip (not hidden) so the sticky child still sticks to the viewport */
.showcase { position: relative; background: var(--ink); color: var(--on-dark); overflow: clip; }
.showcase__glow {
  position: absolute;
  z-index: 0;
  width: 60vw;
  height: 60vw;
  max-width: 800px;
  max-height: 800px;
  right: -8%;
  top: 50%;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.3;
  background: var(--crimson);
  transform: translateY(-50%);
  transition: background 0.8s;
}
.showcase[data-active="1"] .showcase__glow { background: var(--blue); }
.showcase[data-active="2"] .showcase__glow { background: var(--amber); }
.showcase[data-active="3"] .showcase__glow { background: #b0245f; }

.showcase__sticky { position: relative; z-index: 1; padding-block: clamp(72px, 11vw, 140px); }
.showcase__grid { display: grid; gap: 40px; align-items: center; }
.showcase__head { margin-bottom: 40px; }
.showcase__head .eyebrow { margin-bottom: 18px; }

.steps { display: grid; gap: clamp(48px, 9vw, 80px); }
.step { position: relative; padding-left: 0; }
.step__num {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--amber);
}
.step h3 { margin-bottom: 12px; font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.08; text-wrap: balance; }
.step p { max-width: 42ch; color: var(--on-dark-muted); }
.step__img { width: min(260px, 70%); margin: 30px auto 0; filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.5)); }

.showcase__device { display: none; }

/* Pinned mode: enabled by JS on large screens */
@media (min-width: 960px) {
  .showcase__grid { grid-template-columns: 1fr 1fr; gap: 6vw; }
}
.showcase.is-pinned { height: 480vh; }
.showcase.is-pinned .showcase__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  padding-block: calc(var(--header-h) + 8px) 24px;
  display: flex;
  align-items: center;
}
.showcase.is-pinned .showcase__grid { width: min(1180px, 100% - 48px); }
.showcase.is-pinned .showcase__head { margin-bottom: 28px; }
.showcase.is-pinned .steps { gap: 0; position: relative; padding-left: 34px; }
.showcase.is-pinned .steps::before,
.showcase.is-pinned .steps::after {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.14);
}
.showcase.is-pinned .steps::after { background: var(--crimson); transform-origin: top; transform: scaleY(var(--p, 0)); }
.showcase.is-pinned .step { padding-block: 16px; opacity: 0.28; transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out); transform: translateX(-6px); }
.showcase.is-pinned .step.is-active { opacity: 1; transform: none; }
.showcase.is-pinned .step h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); margin-bottom: 0; transition: margin 0.5s var(--ease-out); }
.showcase.is-pinned .step.is-active h3 { margin-bottom: 10px; }
.showcase.is-pinned .step p { display: grid; grid-template-rows: 0fr; overflow: hidden; transition: grid-template-rows 0.6s var(--ease-out); }
.showcase.is-pinned .step p > span { min-height: 0; overflow: hidden; }
.showcase.is-pinned .step.is-active p { grid-template-rows: 1fr; }
.showcase.is-pinned .step__img { display: none; }
.showcase.is-pinned .showcase__device { display: block; position: relative; height: min(74vh, 700px); }

.device-stack { position: relative; height: 100%; display: grid; place-items: center; }
.device-stack picture {
  position: absolute;
  height: 100%;
  aspect-ratio: 720 / 1510;
  opacity: 0;
  transform: translateY(40px) scale(0.92) rotate(4deg);
  transition: opacity 0.7s var(--ease-out), transform 0.9s var(--ease-out);
  filter: drop-shadow(0 40px 70px rgba(0, 0, 0, 0.6));
}
.device-stack picture.is-active { opacity: 1; transform: none; }
.device-stack picture.is-past { transform: translateY(-40px) scale(0.92) rotate(-4deg); }
.device-stack img { width: 100%; height: 100%; object-fit: contain; }

/* 9. How it works --------------------------------------------------------- */
.how { background: var(--paper); }
.how__grid { display: grid; border-top: 1px solid var(--line-dark); }
.how__item { padding: 28px 0 32px; border-bottom: 1px solid var(--line-dark); }
.how__num {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 24px;
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--crimson);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--crimson) 35%, transparent);
  transition: background-color 0.4s, color 0.4s;
}
.how__item:hover .how__num { background: var(--crimson); color: #fff; }
.how__item h3 { margin-bottom: 10px; font-size: 1.5rem; font-weight: 700; letter-spacing: -0.03em; }
.how__item p { max-width: 34ch; color: var(--muted); }
@media (min-width: 860px) {
  .how__grid { grid-template-columns: repeat(3, 1fr); }
  .how__item { padding: 36px 40px 0 0; border-bottom: 0; }
  .how__item + .how__item { padding-left: 40px; border-left: 1px solid var(--line-dark); }
  .how__num { margin-bottom: 64px; }
}

/* 10. FAQ ----------------------------------------------------------------- */
.faq { background: var(--paper); padding-top: 0; }
.faq__wrap { display: grid; gap: 40px; }
@media (min-width: 900px) { .faq__wrap { grid-template-columns: 0.8fr 1.2fr; gap: 80px; } .faq .section-head { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; } }
.faq__list { border-top: 1px solid var(--line-dark); }
.faq details { border-bottom: 1px solid var(--line-dark); }
.faq summary {
  display: flex;
  transition: color 0.2s;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background:
    linear-gradient(var(--text), var(--text)) center / 13px 1.5px no-repeat,
    linear-gradient(var(--text), var(--text)) center / 1.5px 13px no-repeat,
    transparent;
  box-shadow: inset 0 0 0 1px var(--line-dark);
  transition: transform 0.5s var(--ease-out), background-color 0.3s;
}
.faq details[open] summary::after { transform: rotate(135deg); }
.faq summary:hover { color: var(--crimson); }
.faq .answer { padding: 0 64px 28px 0; color: var(--muted); max-width: 62ch; }
.faq details[open] .answer { animation: faq-in 0.5s var(--ease-out); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-8px); } }
.faq .answer a { color: var(--crimson); font-weight: 600; }

/* 11. CTA ----------------------------------------------------------------- */
.cta { position: relative; isolation: isolate; overflow: hidden; background: var(--ink); color: #fff; text-align: center; }
.cta .hero__bg { z-index: -1; }
.cta__inner { position: relative; display: grid; justify-items: center; gap: 28px; }
.cta h2 { max-width: 14ch; }
.cta .eyebrow { color: var(--amber); }
.cta .lead { color: var(--on-dark-muted); }
.cta .lead { max-width: 40ch; }
.cta__buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 8px; }
.cta__watermark {
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 46%;
  translate: -50% -50%;
  margin: 0;
  font-family: var(--font-fa);
  font-size: min(22rem, 19vw);
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  color: transparent;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0) 80%);
  -webkit-background-clip: text;
  background-clip: text;
  pointer-events: none;
  user-select: none;
}
.cta__phone { width: clamp(150px, 22vw, 230px); margin-top: 24px; filter: drop-shadow(0 40px 60px rgba(0, 0, 0, 0.55)); }

/* 12. Footer -------------------------------------------------------------- */
.site-footer { position: relative; overflow: hidden; background: var(--ink); color: var(--on-dark-muted); padding-top: 80px; border-top: 1px solid var(--line); }
.footer__top { display: grid; gap: 40px; padding-bottom: 56px; }
@media (min-width: 820px) { .footer__top { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer__brand p { max-width: 34ch; }
.footer__col h2 { margin-bottom: 16px; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: #fff; }
.footer__col li + li { margin-top: 10px; }
.footer__col a { text-decoration: none; transition: color 0.2s; }
.footer__col a:hover { color: #fff; }
.social { display: flex; gap: 12px; margin-top: 22px; }
.social a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
  transition: background-color 0.3s, box-shadow 0.3s;
}
.social a:hover { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px #fff; }
.social svg { width: 20px; height: 20px; }
.footer__bottom { padding: 22px 0; border-top: 1px solid var(--line); font-size: 0.88rem; }
.footer__bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.footer__bottom a { text-decoration: none; }
.footer__bottom a:hover { color: #fff; }
/* Big wordmark that bleeds off the bottom edge */
.footer__giant {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 0.2em;
  margin: 0 0 -0.14em;
  padding: 0.12em 12px 0;
  overflow: hidden;
  font-size: clamp(3.2rem, 15vw, 15.5rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.06em;
  white-space: nowrap;
  color: var(--on-dark);
  user-select: none;
}
.footer__giant em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--accent-dark);
}
.footer__giant .ch { display: inline-block; will-change: transform; }

/* 13. Legal pages --------------------------------------------------------- */
.legal-hero { padding: calc(var(--header-h) + 64px) 0 56px; background: var(--ink); color: #fff; position: relative; overflow: hidden; isolation: isolate; }
.legal-hero .blob--1 { opacity: 0.5; }
.legal-hero h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; }
.legal-hero p { margin-top: 14px; color: var(--on-dark-muted); }
.legal { padding: 64px 0 110px; }
.legal__body { max-width: 780px; margin-inline: auto; }
.legal__body > h1 { display: none; }
.legal__body h2 { margin: 48px 0 14px; font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; }
.legal__body h3 { margin: 36px 0 10px; font-size: 1.2rem; font-weight: 800; letter-spacing: -0.01em; }
.legal__body h4 { margin: 24px 0 8px; font-size: 1rem; font-weight: 700; }
.legal__body p { margin: 0 0 16px; color: #3d2d32; }
.legal__body ul, .legal__body ol { margin: 0 0 20px; padding-left: 1.3em; list-style: disc; }
.legal__body ol { list-style: decimal; }
.legal__body li { margin-bottom: 8px; color: #3d2d32; }
.legal__body li > p { margin-bottom: 6px; }
.legal__body a { color: var(--crimson); font-weight: 600; text-underline-offset: 3px; }
.legal__body > ul:first-of-type { list-style: none; padding: 20px 24px; border-radius: 18px; background: var(--paper-2); }
.legal__body > ul:first-of-type li { margin-bottom: 4px; }
.legal__body > ul:first-of-type a { text-decoration: none; font-size: 0.92rem; }
.legal__body .divider { display: flex; gap: 8px; justify-content: center; margin: 24px 0; }
.legal__body .divider span { width: 8px; height: 8px; border-radius: 50%; background: var(--crimson); opacity: 0.6; }

/* 14. Motion states ------------------------------------------------------ */
/* Hidden start states apply only while GSAP is going to animate them. */
.js:not(.no-anim) [data-fade] { opacity: 0; transform: translateY(32px); }
.js:not(.no-anim) .hero .phone--c,
.js:not(.no-anim) .hero .phone--l,
.js:not(.no-anim) .hero .phone--r { opacity: 0; }

/* If animation setup fails or is disabled, force everything visible. */
.no-anim [data-fade],
.no-anim .hero .phone,
.no-anim .word > span,
.no-anim .footer__giant .ch { opacity: 1 !important; transform: none !important; }

/* 15. Reduced motion ------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* 16. 404 page ------------------------------------------------------------ */
.notfound { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; text-align: center; }
.notfound__inner { display: grid; justify-items: center; gap: 24px; }
.notfound h1 { max-width: 12ch; }
.notfound .lead { max-width: 38ch; }
