/*
 * tws.css — The Welcome Site Marketing Design System
 * Source of truth: Framer prototype (April 2026)
 * Font: PP Mori (self-hosted, /fonts/)
 * Palette: 5 colors only
 * Motion: GSAP + Lenis (external), CSS transitions for micro-interactions
 *
 * TABLE OF CONTENTS
 * 00. Font face
 * 01. Tokens
 * 02. Reset
 * 03. Base
 * 04. Grain overlay (canvas, managed by JS)
 * 05. Layout
 * 06. Typography
 * 07. Skip link
 * 08. Navigation
 * 09. Buttons
 * 10. Cards
 * 11. Sections
 * 12. Hero
 * 13. How it works (pin indicator)
 * 14. Horizontal scroll (Acceso Inicial)
 * 15. Video / Lightbox
 * 16. Testimonial
 * 17. Footer
 * 18. Splash screen
 * 19. Page transition
 * 20. Utilities
 * 21. Reduced motion
 * 22. Responsive
 */


/* ── 00. FONT (self-hosted — no CDN dependency) ─────────────── */

@font-face {
  font-family: 'PP Mori';
  src: url('fonts/PPMori-Regular.woff2') format('woff2'),
       url('fonts/PPMori-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'PP Mori';
  src: url('fonts/PPMori-SemiBold.woff2') format('woff2'),
       url('fonts/PPMori-SemiBold.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'PP Mori';
  src: url('fonts/PPMori-Extralight.woff2') format('woff2'),
       url('fonts/PPMori-Extralight.otf') format('opentype');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}


/* ── 01. TOKENS ──────────────────────────────────────────────── */

:root {
  /* Palette — 5 colors only */
  --text:       #B9B8A8;
  --muted:      #67675C;
  --faint:      #2C2C2C;
  --surface:    #191919;
  --bg:         #0E100F;

  /* Semantic */
  --text-hi:    #D4D3C3;  /* text at higher emphasis — headings */

  /* Spacing scale (4pt base) */
  --space-1:    4px;
  --space-2:    8px;
  --space-3:    12px;
  --space-4:    16px;
  --space-5:    24px;
  --space-6:    32px;
  --space-7:    48px;
  --space-8:    64px;
  --space-9:    96px;
  --space-10:   128px;
  --space-11:   192px;

  /* Layout */
  --max-w:      1200px;
  --gutter:     clamp(20px, 5vw, 80px);
  --radius:     4px;

  /* Motion — cinematic */
  --ease:       cubic-bezier(0.19, 1, 0.22, 1);   /* expo.out */
  --ease-inout: cubic-bezier(0.87, 0, 0.13, 1);    /* expo.inOut */
  --dur:        1.6s;
  --dur-fast:   1.0s;
  --dur-micro:  0.5s;
}


/* ── 02. RESET ───────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; overscroll-behavior: none; }
body { overflow-x: hidden; overscroll-behavior-y: none; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font: inherit; }
ul, ol { list-style: none; }
::selection { background: rgba(185, 184, 168, 0.15); }


/* ── 03. BASE ────────────────────────────────────────────────── */

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'PP Mori', -apple-system, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}


/* ── 04. GRAIN ───────────────────────────────────────────────── */

#grain-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  mix-blend-mode: overlay;
  transition: opacity 0.6s ease;
}

#grain-canvas.grain-ready {
  opacity: 0.08;
}

/* Mobile: drop mix-blend-mode (GPU cost) and reduce opacity */
@media (max-width: 720px) {
  #grain-canvas.grain-ready {
    mix-blend-mode: normal;
    opacity: 0.03;
  }
}


/* ── 05. LAYOUT ──────────────────────────────────────────────── */

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: var(--space-11) 0;
}

.section--tight {
  padding: var(--space-9) 0;
}

.section--flush {
  padding: 0;
}


/* ── 06. TYPOGRAPHY ──────────────────────────────────────────── */

h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text);
}

.t-display {
  font-size: clamp(36px, 7vw, 72px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.t-heading {
  font-size: clamp(28px, 5vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.t-subheading {
  font-size: clamp(20px, 3vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.t-body {
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.6;
  color: var(--muted);
}

.t-body-sm {
  font-size: clamp(13px, 1.3vw, 15px);
  line-height: 1.55;
  color: var(--muted);
}

.t-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.t-step-number {
  font-size: clamp(64px, 10vw, 120px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--faint);
}

.t-accent {
  color: var(--text);
}


/* ── 07. SKIP LINK ───────────────────────────────────────────── */

.skip-link {
  position: fixed;
  top: -100%;
  left: var(--space-4);
  z-index: 10000;
  background: var(--text);
  color: var(--bg);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  transition: top 0.2s;
}

.skip-link:focus {
  top: var(--space-4);
}


/* ── 08. NAVIGATION ──────────────────────────────────────────── */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--space-5) 0;
  background: var(--bg);
  transition: padding var(--dur-fast) var(--ease);
}

.nav--scrolled {
  padding: var(--space-3) 0;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.nav__logo {
  display: flex;
  align-items: center;
}

.nav__logo svg,
.nav__logo img {
  height: 14px;
  width: auto;
}


/* ── 09. BUTTONS ─────────────────────────────────────────────── */

/* A1 — Primary: filled */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  background: var(--text);
  color: var(--bg);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: var(--radius);
  transition: opacity var(--dur-micro) ease;
  white-space: nowrap;
}

.btn:hover { opacity: 0.88; }

.btn .arrow {
  display: inline-block;
  font-style: normal;
  transition: transform var(--dur-micro) ease;
}

.btn:hover .arrow {
  transform: translateX(3px);
}

/* A2 — Text link: magnetic line + arrow awakening */
.btn-text {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  padding: var(--space-1) 0;
  background: none;
  border: none;
}

.btn-text::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--text);
  transition: width var(--dur-fast) var(--ease);
}

.btn-text:hover::after {
  width: 100%;
}

/* On mouse leave, line exits right */
.btn-text.exit-right::after {
  left: auto;
  right: 0;
}

.btn-text .arrow {
  display: inline-block;
  font-style: normal;
  opacity: 0.35;
  transition: opacity var(--dur-fast) var(--ease),
              transform var(--dur-fast) var(--ease);
}

.btn-text:hover .arrow {
  opacity: 1;
  transform: translateX(3px);
}


/* ── 10. CARDS ───────────────────────────────────────────────── */

.card {
  background: transparent;
  border-radius: var(--radius);
  padding: var(--space-7) 0;
}

.card__label {
  display: block;
  margin-bottom: var(--space-4);
}

.card__title {
  font-size: clamp(20px, 2.5vw, 24px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: var(--space-3);
}

.card__body {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}


/* ── 11. SECTIONS ────────────────────────────────────────────── */

.section-text {
  max-width: 640px;
}

.section-text--center {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.section-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: center;
}

.qr-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  margin: var(--space-7) auto 0;
}

.qr-block img {
  width: 140px;
  height: 140px;
  border-radius: var(--radius);
}

.section-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  max-width: 640px;
  margin: 0 auto;
}


/* ── 12. HERO ────────────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-10) 0 var(--space-9);
}

.hero__content {
  max-width: 720px;
}

.hero__overline {
  margin-bottom: var(--space-5);
}

.hero__title {
  margin-bottom: var(--space-6);
}

.hero__subtitle {
  max-width: 480px;
  margin-bottom: var(--space-7);
}

.hero__ctas {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  flex-wrap: wrap;
}

.hero__chevron {
  position: absolute;
  bottom: var(--space-7);
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.3;
}

.hero__chevron svg {
  width: 24px;
  height: 24px;
  stroke: var(--text);
  stroke-width: 1.5;
  fill: none;
}


/* ── 13. HOW IT WORKS (pin indicator) ────────────────────────── */

/* Pin section — centered vertically so pin begins at step 01 */
.pin-section {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pin-wrap {
  width: 100%;
  max-width: var(--max-w);
  padding: var(--space-9) var(--gutter);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.pin-header {
  width: 100%;
  max-width: 640px;
  margin-bottom: var(--space-8);
}

.pin-content {
  width: 100%;
  max-width: 720px;
  display: flex;
  gap: var(--space-7);
  position: relative;
  min-height: 240px;
  text-align: left;
}

.pin-left {
  display: flex;
  gap: var(--space-4);
  flex-shrink: 0;
}

.pin-fill-track {
  width: 1px;
  background: var(--faint);
  position: relative;
  flex-shrink: 0;
}

.pin-fill-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--text);
  transform-origin: top;
  transform: scaleY(0);
}

.pin-steps {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--space-1) 0;
}

.pin-step {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pin-step-num {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--faint);
  transition: color 0.6s var(--ease);
}

.pin-step-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--faint);
  transition: color 0.6s var(--ease);
  line-height: 1.3;
}

.pin-step.active .pin-step-num { color: var(--muted); }
.pin-step.active .pin-step-title { color: var(--text); }

.pin-right {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  position: relative;
  min-height: 200px;
  overflow: hidden;
}

.pin-phrase {
  position: absolute;
  right: 0;
  bottom: 0;
  text-align: right;
  opacity: 0;
  visibility: hidden;
  max-width: 280px;
}

.pin-phrase-text {
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--text);
}

.pin-phrase-sub {
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
  margin-top: var(--space-3);
  max-width: 320px;
  text-align: right;
}

.pin-phrase-list {
  list-style: none;
  margin: var(--space-4) 0 0;
  padding: 0;
  max-width: 320px;
  text-align: right;
}

.pin-phrase-list li {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  padding: 3px 0;
}

@media (max-width: 720px) {
  .pin-phrase-list {
    text-align: right;
  }
}

@media (max-width: 720px) {
  .pin-content {
    flex-direction: column;
    gap: var(--space-6);
    min-height: auto;
  }
  .pin-right {
    justify-content: flex-start;
    min-height: 120px;
  }
}

/* Legacy how-it-works classes (kept for compatibility, unused on homepage) */
.how-it-works {
  position: relative;
}

.how-it-works__pin-section {
  /* Height set by GSAP — enough for all steps */
}

.how-it-works__sticky {
  position: sticky;
  top: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--space-8);
  padding: 0 var(--gutter);
  max-width: var(--max-w);
  margin: 0 auto;
}

.how-it-works__left {
  display: flex;
  flex-direction: column;
}

.how-it-works__step-label {
  margin-bottom: var(--space-4);
}

.how-it-works__step-title {
  margin-bottom: var(--space-3);
}

.how-it-works__step-body {
  max-width: 400px;
}

/* Indicator dots */
.how-it-works__indicators {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-7);
}

.how-it-works__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--faint);
  transition: background var(--dur-fast) var(--ease),
              transform var(--dur-fast) var(--ease);
}

.how-it-works__dot.active {
  background: var(--text);
  transform: scale(1.25);
}

/* Right side — large crossfading text */
.how-it-works__right {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

.how-it-works__big-text {
  position: absolute;
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--faint);
  opacity: 0;
  transition: opacity 0.8s var(--ease);
  text-align: left;
  width: 100%;
}

.how-it-works__big-text.active {
  opacity: 1;
  color: var(--text-hi);
}


/* ── 14. HORIZONTAL SCROLL (Acceso Inicial) ──────────────────── */

.hscroll {
  overflow: hidden;
}

.hscroll__track {
  display: flex;
  width: max-content;
}

.hscroll__panel {
  width: 100vw;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8) var(--gutter);
  flex-shrink: 0;
}

.hscroll__panel-inner {
  max-width: 560px;
  width: 100%;
}

.hscroll__number {
  margin-bottom: var(--space-5);
}


/* ── 15. VIDEO / LIGHTBOX ────────────────────────────────────── */

.video-thumb {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 16 / 9;
  background: var(--surface);
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-fast) ease;
}

.video-thumb:hover img {
  transform: scale(1.02);
}

.video-thumb__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-thumb__play svg {
  width: 56px;
  height: 56px;
  fill: rgba(255, 255, 255, 0.9);
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
  transition: transform var(--dur-micro) ease;
}

.video-thumb:hover .video-thumb__play svg {
  transform: scale(1.08);
}

/* Lightbox overlay */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(14, 16, 15, 0.95);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-fast) var(--ease),
              visibility 0s var(--dur-fast);
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
  transition: opacity var(--dur-fast) var(--ease),
              visibility 0s 0s;
}

.lightbox__inner {
  width: 90vw;
  max-width: 960px;
  aspect-ratio: 16 / 9;
  transform: scale(0.94);
  transition: transform var(--dur) var(--ease);
}

.lightbox.open .lightbox__inner {
  transform: scale(1);
}

.lightbox__inner iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: var(--radius);
}

.lightbox__close {
  position: absolute;
  top: var(--space-5);
  right: var(--space-5);
  font-size: 20px;
  color: var(--muted);
  transition: color var(--dur-micro) ease;
  z-index: 1;
}

.lightbox__close:hover {
  color: var(--text);
}


/* ── 16. TESTIMONIAL ─────────────────────────────────────────── */

.testimonial {
  border-left: 1px solid var(--faint);
  padding-left: var(--space-6);
  max-width: 560px;
}

.testimonial__quote {
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 400;
  line-height: 1.5;
  color: var(--text);
  font-style: italic;
  margin-bottom: var(--space-5);
}

.testimonial__author {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-hi);
}

.testimonial__role {
  font-size: 13px;
  color: var(--muted);
}


/* ── 16a. INCLUIDO LIST (precios.html) ──────────────────────── */

.incl-list {
  max-width: 560px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.incl-list li {
  font-size: clamp(16px, 1.8vw, 20px);
  line-height: 1.4;
  color: var(--text);
  padding: var(--space-4) 0;
  border-top: 1px solid var(--faint);
}

.incl-list li:last-child {
  border-bottom: 1px solid var(--faint);
}


/* ── 16b. SECTION DIVIDER (scrub-drawn line) ────────────────── */

.divider {
  position: relative;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  pointer-events: none;
}

.divider__line {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--faint);
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}


/* ── 17. FOOTER ──────────────────────────────────────────────── */

.footer {
  border-top: 1px solid var(--faint);
  padding: var(--space-8) 0 var(--space-6);
  margin-top: var(--space-9);
}

.footer__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.footer__logo svg,
.footer__logo img {
  height: 14px;
  width: auto;
  opacity: 0.5;
  transition: opacity var(--dur-micro) ease;
}

.footer__logo:hover svg,
.footer__logo:hover img {
  opacity: 0.8;
}

.footer__links {
  display: flex;
  gap: var(--space-6);
}

.footer__link {
  font-size: 13px;
  color: var(--muted);
  transition: color var(--dur-micro) ease;
}

.footer__link:hover {
  color: var(--text);
}

.footer__bottom {
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid var(--faint);
  text-align: right;
}

.footer__copy {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.03em;
  opacity: 0.6;
}


/* ── 18. SPLASH SCREEN ───────────────────────────────────────── */

.splash {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: opacity, transform;
}

.splash-logo {
  width: 160px;          /* visually matches footer logo weight */
  opacity: 0;            /* GSAP fades this to 0.5 (footer opacity) */
}

.splash-logo svg,
.splash-logo img {
  width: 100%;
  height: auto;
  display: block;
}

.splash.done {
  pointer-events: none;
}


/* ── 19. PAGE TRANSITION ─────────────────────────────────────── */

.page-transition {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: var(--bg);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  /* GSAP drives the animation; CSS transition removed to avoid double timing */
}


/* Pre-hide elements that will be animated in — avoids FOUC / glitch after splash.
   JS removes these instantly via gsap.set before running the intro animation.
   Note: we hide CHILDREN of [data-reveal] and [data-stagger], not the wrappers,
   so the parent containers remain visible and only the animated items are masked. */
html.tws-intro [data-hero],
html.tws-intro [data-reveal] > *,
html.tws-intro [data-stagger] > * {
  opacity: 0;
}


/* ── 19b. MOBILE CAROUSELS (touch devices — class added by JS) ── */
/*
 * On touch devices, ScrollTrigger pin/scrub is replaced by native
 * CSS scroll-snap carousels. Swipe to advance, dot indicators for
 * position. All scroll is native — no GSAP scroll manipulation.
 */

/* --- Shared: dot indicators --- */
.carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-7) 0 var(--space-5);
}
.carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: var(--faint);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: width 0.6s var(--ease),
              background 0.6s var(--ease);
}
.carousel-dot.active {
  width: 24px;
  background: var(--text);
}

/* --- Pin section carousel --- */
.pin-section.pin-section--carousel {
  min-height: auto;
  align-items: stretch;
  justify-content: flex-start;
}
.pin-section--carousel .pin-content {
  flex-direction: column;
  min-height: auto;
}
.pin-section--carousel .pin-left {
  display: none;
}
.pin-section--carousel .pin-right {
  position: static;
  display: flex;
  flex-direction: row;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  min-height: auto;
  align-items: center;
  justify-content: flex-start;
}
.pin-section--carousel .pin-right::-webkit-scrollbar {
  display: none;
}
.pin-section--carousel .pin-phrase {
  flex: 0 0 100%;
  width: 100%;
  scroll-snap-align: start;
  position: relative;
  opacity: 1;
  visibility: visible;
  text-align: left;
  max-width: none;
  /* Card */
  background: var(--surface);
  border-radius: var(--radius);
  padding: var(--space-6) var(--space-6) var(--space-8);
  aspect-ratio: 4 / 5;
  display: flex;
  flex-direction: column;
}
.pin-section--carousel .pin-phrase::after {
  content: '→';
  position: absolute;
  bottom: var(--space-5);
  right: var(--space-6);
  color: var(--muted);
  font-size: 18px;
  font-style: normal;
  opacity: 0.5;
}
.pin-section--carousel .pin-phrase__info {
  margin-bottom: auto;
}
.pin-section--carousel .pin-phrase__step {
  font-size: clamp(64px, 10vw, 120px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--faint);
  margin-bottom: var(--space-5);
}
.pin-section--carousel .pin-phrase__title {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--muted);
}
.pin-section--carousel .pin-phrase-text {
  font-size: clamp(22px, 7vw, 28px);
}
.pin-section--carousel .pin-phrase-list {
  margin-top: var(--space-4);
  max-width: 100%;
  text-align: left;
}
.pin-section--carousel .pin-phrase-list li {
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  padding: 4px 0;
}

/* --- Horizontal scroll carousel --- */
.hscroll--carousel .hscroll__header {
  text-align: center;
  padding: var(--space-7) var(--gutter) var(--space-6);
  max-width: 640px;
  margin: 0 auto;
}
.hscroll--carousel .hscroll__track {
  width: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.hscroll--carousel .hscroll__track::-webkit-scrollbar {
  display: none;
}
.hscroll--carousel .hscroll__panel {
  scroll-snap-align: start;
  min-height: auto;
  padding: 0 var(--gutter);
}
.hscroll--carousel .hscroll__panel-inner {
  background: var(--surface);
  border-radius: var(--radius);
  padding: var(--space-6) var(--space-6) var(--space-8);
  aspect-ratio: 4 / 5;
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
}
/* Push heading + body to bottom of card (number/label stays top) */
.hscroll--carousel .hscroll__panel-inner .t-heading {
  margin-top: auto;
  color: var(--muted);
}
.hscroll--carousel .hscroll__panel-inner::after {
  content: '→';
  position: absolute;
  bottom: var(--space-5);
  right: var(--space-6);
  color: var(--muted);
  font-size: 18px;
  font-style: normal;
  opacity: 0.5;
}


/* ── 20. UTILITIES ───────────────────────────────────────────── */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-muted { color: var(--muted); }
.text-faint { color: var(--faint); }
.text-center { text-align: center; }

.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.mt-6 { margin-top: var(--space-6); }
.mt-7 { margin-top: var(--space-7); }
.mt-8 { margin-top: var(--space-8); }

.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-5 { margin-bottom: var(--space-5); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-7 { margin-bottom: var(--space-7); }


/* ── 21. REDUCED MOTION ──────────────────────────────────────── */

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

  .splash { display: none !important; }
  .hero__chevron { animation: none; }
}


/* ── 22. RESPONSIVE ──────────────────────────────────────────── */

@media (max-width: 900px) {
  .section-split {
    grid-template-columns: 1fr;
    gap: var(--space-7);
    text-align: center;
    justify-items: center;
  }

  .section-split > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .section-cards {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .how-it-works__sticky {
    grid-template-columns: 1fr;
    padding-top: var(--space-9);
  }

  .how-it-works__right {
    display: none;
  }

  /* ── Pin section — mobile carousel sizing ──────────────────── */
  .pin-section--carousel .pin-wrap {
    padding: var(--space-7) var(--gutter) 0;
  }
  .pin-section--carousel .pin-header {
    margin-bottom: var(--space-6);
  }

  /* Pin section (non-static fallback for desktop-only breakpoint) */
  .pin-section {
    min-height: 100svh;
    align-items: center;
  }
  .pin-wrap {
    padding: var(--space-4) var(--gutter) var(--space-6);
  }
  .pin-header {
    margin-bottom: var(--space-5);
  }
  .pin-header .t-heading {
    font-size: clamp(22px, 6vw, 28px);
  }
  .pin-header .t-body {
    font-size: 14px;
  }
  .pin-step-num {
    font-size: 10px;
  }
  .pin-step-title {
    font-size: 14px;
  }

  /* ── Horizontal scroll — mobile carousel sizing ──────────── */
  .hscroll--carousel .hscroll__panel {
    padding: 0 var(--gutter);
  }

  .hscroll__panel {
    padding: var(--space-7) var(--gutter);
  }
  .hscroll__panel-inner {
    max-width: 100%;
  }

  .footer__inner {
    flex-direction: column;
    gap: var(--space-5);
  }

  .footer__links {
    flex-direction: column;
    gap: var(--space-3);
  }

  .footer__bottom {
    text-align: left;
  }
}

@media (max-width: 600px) {
  .section {
    padding: var(--space-9) 0;
  }

  .hero {
    padding: var(--space-9) 0 var(--space-8);
  }

  .hero__ctas {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-4);
  }

  .card {
    padding: var(--space-6);
  }

  .hscroll__panel {
    padding: var(--space-7) var(--gutter);
  }

  .testimonial {
    padding-left: var(--space-5);
  }

  .nav {
    padding: var(--space-4) 0;
  }

  /* On mobile there's no hover — show the underline + arrow at full strength */
  .btn-text::after {
    width: 100%;
  }
  .btn-text .arrow {
    opacity: 1;
  }
}
