/* ================================================================
   HABLA · marketing landing stylesheet
   Brand family: Bright Loop Media (sibling of stop.)
   ================================================================ */

/* -------- RESET -------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, video, svg { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }

/* -------- TOKENS (Chilean reskin) -------- */
:root {
  /* Canonical Chilean palette */
  --cielo:  #1E3A8C;
  --rojo:   #C8102E;
  --nieve:  #F8F6F0;
  --carbon: #1A1614;

  /* Legacy aliases — marketing.css body was already light-themed, so amber/teal
     swap cleanly into rojo/cielo. paper/ink keep their role as nieve/carbon. */
  --amber:      var(--rojo);
  --amber-deep: #9E0B23;
  --teal:       var(--cielo);
  --teal-deep:  #142966;
  --paper:      var(--nieve);
  --paper-2:    #EDE9DF;
  --paper-3:    #D9D4C6;
  --navy:       var(--carbon);
  --navy-2:     #1F1A18;
  --navy-3:     #2A2522;

  /* Ink on paper */
  --ink:   var(--carbon);
  --ink-2: #4A3F3A;
  --ink-3: #7A6F68;

  /* Type stack */
  --display: 'Fraunces', ui-serif, Georgia, 'Times New Roman', serif;
  --body: 'Inter Tight', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Rhythm */
  --shell-max: 1280px;
  --gutter: clamp(20px, 4vw, 48px);
  --section-pad-y: clamp(80px, 12vh, 160px);

  /* Motion */
  --ease-out: cubic-bezier(0.2, 0.6, 0.2, 1);
  --ease-io: cubic-bezier(0.77, 0, 0.175, 1);
}

/* -------- BASE -------- */
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: clamp(16px, 1.05vw, 18px);
  line-height: 1.5;
  font-feature-settings: 'ss01', 'ss02', 'cv11';
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Paper grain so nothing looks plastic */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(10,13,20,0.025) 0, transparent 40%),
    radial-gradient(circle at 85% 70%, rgba(40,168,200,0.035) 0, transparent 50%);
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 1;
}

/* Fine noise overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.32'/></svg>");
  opacity: 0.06;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 2;
}

.shell {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
  position: relative;
  z-index: 3;
}

.skip-link {
  position: absolute; top: -100px; left: 0;
  background: var(--ink); color: var(--paper);
  padding: 8px 12px; z-index: 999;
}
.skip-link:focus { top: 8px; }

/* -------- TYPE -------- */
.mono {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

.slug {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber-deep);
  display: inline-block;
  margin-bottom: clamp(24px, 3vh, 40px);
}

.display-wonk {
  font-family: var(--display);
  font-weight: 700;
  font-variation-settings: 'opsz' 144, 'wonk' 100, 'SOFT' 30;
  line-height: 0.92;
  letter-spacing: -0.035em;
}

.lede {
  font-family: var(--display);
  font-weight: 400;
  font-variation-settings: 'opsz' 40, 'wonk' 0, 'SOFT' 20;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  line-height: 1.3;
  max-width: 42ch;
  color: var(--ink-2);
}

.prose p {
  font-size: clamp(1rem, 1.25vw, 1.125rem);
  line-height: 1.55;
  max-width: 62ch;
  color: var(--ink-2);
  margin: 0 0 1em;
}

.prose p + p { margin-top: 0.75em; }

.prose em {
  font-style: italic;
  color: var(--amber-deep);
  font-family: var(--display);
  font-variation-settings: 'opsz' 40, 'wonk' 80, 'SOFT' 100;
}

/* -------- NAV -------- */
.nav {
  position: sticky; top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px var(--gutter);
  background: rgba(240, 237, 232, 0.82);
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  border-bottom: 1px solid rgba(10, 13, 20, 0.06);
}

.nav-mark {
  font-family: var(--display);
  font-weight: 700;
  font-variation-settings: 'opsz' 144, 'wght' 700, 'WONK' 35, 'SOFT' 30;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  color: var(--carbon);
}
.nav-mark .dot { color: var(--rojo); }
.nav-mark .bang-open  { color: var(--cielo); margin-right: 0.04em; }
.nav-mark .bang-close { color: var(--rojo);  margin-left: 0.04em; }
.home-title .bang-open,
.hero h1 .bang-open { color: var(--cielo); }
.home-title .bang-close,
.hero h1 .bang-close { color: var(--rojo); }

.nav-links {
  display: flex;
  gap: clamp(12px, 2vw, 28px);
  align-items: center;
}

.nav-links a {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-2);
  padding: 6px 0;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}
.nav-links a:hover::after { transform: scaleX(1); }

.nav-cta {
  background: var(--ink);
  color: var(--paper) !important;
  padding: 10px 18px !important;
  border-radius: 999px;
  transition: background 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.nav-cta:hover { background: var(--amber); transform: translateY(-1px); }
.nav-cta::after { display: none !important; }

@media (max-width: 640px) {
  .nav-links .nav-hide-mobile { display: none; }
}

/* -------- BUTTONS -------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--body);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 16px 28px;
  border-radius: 999px;
  transition: transform 0.35s var(--ease-out), background 0.35s var(--ease-out), color 0.35s var(--ease-out);
  will-change: transform;
  white-space: nowrap;
}

.btn .arrow {
  display: inline-block;
  transition: transform 0.35s var(--ease-out);
}
.btn:hover .arrow { transform: translateX(4px); }

.btn-primary {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 1px 0 rgba(255,255,255,0.1) inset, 0 14px 30px -18px rgba(10,13,20,0.45);
}
.btn-primary:hover {
  background: var(--amber);
  color: var(--navy);
}

.btn-ghost {
  color: var(--ink);
  border: 1px solid rgba(10, 13, 20, 0.2);
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.btn-install {
  background: var(--teal);
  color: var(--paper);
}
.btn-install:hover { background: var(--teal-deep); }

/* -------- HERO -------- */
.hero {
  position: relative;
  padding: clamp(60px, 10vh, 120px) 0 var(--section-pad-y);
  overflow: hidden;
}

/* ── Video background (Seedance 2.0 loop) ── */
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(26, 22, 20, 0.72) 0%,
    rgba(26, 22, 20, 0.55) 40%,
    rgba(26, 22, 20, 0.78) 100%
  );
}

.hero--video .shell {
  position: relative;
  z-index: 2;
}

.hero--video h1,
.hero--video .lede,
.hero--video .hero-masthead span,
.hero--video .hero-rail span {
  color: var(--nieve);
}

.hero--video .hero-masthead {
  border-bottom-color: rgba(248, 246, 240, 0.2);
}

.hero--video h1 .accent {
  color: var(--rojo);
}

/* Reduced motion: hide video, show poster only */
@media (prefers-reduced-motion: reduce) {
  .hero-bg { display: none; }
}

/* Mobile: poster only (save bandwidth) */
@media (max-width: 768px) {
  .hero-bg { display: none; }
  .hero--video {
    background: url('/assets/hero-poster.jpg') center / cover no-repeat;
  }
}

.hero-masthead {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(16px, 3vw, 32px);
  margin-bottom: clamp(32px, 5vh, 56px);
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(10, 13, 20, 0.1);
}

.hero-masthead span { font-variant-numeric: tabular-nums; }

.hero h1 {
  font-family: var(--display);
  font-weight: 700;
  font-variation-settings: 'opsz' 144, 'wonk' 100, 'SOFT' 30;
  font-size: clamp(3rem, 9vw, 8rem);
  line-height: 0.9;
  letter-spacing: -0.042em;
  margin: 0 0 clamp(24px, 4vh, 48px);
  max-width: 14ch;
  color: var(--ink);
}

.hero h1 .word { display: inline-block; overflow: hidden; padding-right: 0.06em; }
.hero h1 .word-inner {
  display: inline-block;
  transition: transform 1.1s var(--ease-io), opacity 0.8s var(--ease-io);
  transition-delay: var(--d, 0s);
}
html.js-ready .hero h1 .word-inner { transform: translateY(110%); opacity: 0; }
html.js-ready .hero h1.revealed .word-inner { transform: translateY(0); opacity: 1; }

/* Variable font weight shift on hero heading hover */
.hero h1 {
  transition: font-variation-settings 0.8s var(--ease-out);
}
.hero h1:hover {
  font-variation-settings: 'opsz' 144, 'wonk' 100, 'SOFT' 80;
}

.hero h1 .accent {
  color: var(--amber);
  font-variation-settings: 'opsz' 144, 'wonk' 100, 'SOFT' 100;
  font-style: italic;
}
.hero h1 .dot { color: var(--amber); }

.hero-sub {
  margin: 0 0 clamp(32px, 5vh, 48px);
  max-width: 40ch;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: clamp(32px, 5vh, 56px);
}

.hero-rail {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(10px, 2vw, 28px);
  padding-top: 24px;
  border-top: 1px solid rgba(10, 13, 20, 0.1);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.hero-rail span::before {
  content: '·  ';
  color: var(--amber);
}
.hero-rail span:first-child::before { content: ''; }

/* -------- SECTION SKELETON -------- */
section[data-section] {
  padding: var(--section-pad-y) 0;
  position: relative;
}

.section-header {
  max-width: 44ch;
  margin-bottom: clamp(48px, 8vh, 96px);
}

.section-header h2 {
  font-family: var(--display);
  font-weight: 700;
  font-variation-settings: 'opsz' 144, 'wonk' 60, 'SOFT' 40;
  font-size: clamp(2.25rem, 5.5vw, 4.5rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: 0 0 clamp(20px, 3vh, 32px);
  color: var(--ink);
}

.section-header h2 .tilt {
  display: inline-block;
  font-style: italic;
  color: var(--teal-deep);
  font-variation-settings: 'opsz' 144, 'wonk' 100, 'SOFT' 100;
}

/* -------- SECTION 02 · PROBLEM (dark inversion) -------- */
.problem {
  background: var(--navy);
  color: var(--paper);
  margin: 0 calc(-1 * var(--gutter));
  padding-inline: var(--gutter);
}

.problem .shell { color: var(--paper); }
.problem .slug { color: var(--amber); }
.problem .section-header h2 { color: var(--paper); }
.problem .section-header h2 .tilt { color: var(--teal); }
.problem .prose p { color: rgba(240, 237, 232, 0.78); }
.problem .prose em { color: var(--amber); }

.problem-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

@media (max-width: 900px) {
  .problem-grid { grid-template-columns: 1fr; }
}

.anti-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--navy-2);
  border-radius: 20px;
  padding: 8px;
  border: 1px solid rgba(255,255,255,0.06);
}

.anti-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
  padding: 18px 20px;
  border-radius: 14px;
  transition: background 0.35s var(--ease-out);
}
.anti-list li:hover { background: var(--navy-3); }

.anti-list .strike {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(240, 237, 232, 0.4);
  text-decoration: line-through;
  text-decoration-color: var(--amber);
  text-decoration-thickness: 1.5px;
  min-width: 14ch;
}

.anti-list .replace {
  font-family: var(--display);
  font-variation-settings: 'opsz' 40, 'wonk' 40, 'SOFT' 20;
  font-size: 1.05rem;
  color: var(--paper);
}

/* -------- SECTION 03 · PILLARS -------- */
.pillars {
  padding-top: calc(var(--section-pad-y) + 20px);
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 2vw, 24px);
}
/* Asymmetric layout: first pillar (Listen) spans full width for visual hierarchy break */
@media (min-width: 721px) {
  .pillar-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
  .pillar:first-child {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 1fr auto;
    gap: 0 clamp(32px, 4vw, 56px);
    min-height: 280px;
  }
  .pillar:first-child .pillar-num { grid-column: 1; }
  .pillar:first-child .pillar-title { grid-column: 1; font-size: clamp(2.25rem, 4vw, 3.25rem); }
  .pillar:first-child .pillar-body { grid-column: 2; grid-row: 1 / 3; align-self: center; max-width: none; }
  .pillar:first-child .pillar-meta { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .pillar-grid { grid-template-columns: 1fr; }
}

.pillar {
  position: relative;
  background: var(--paper-2);
  border: 1px solid rgba(10, 13, 20, 0.08);
  border-radius: 28px;
  padding: clamp(28px, 4vw, 44px);
  overflow: hidden;
  transition: transform 0.6s var(--ease-out), border-color 0.6s var(--ease-out);
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

.pillar::after {
  content: '';
  position: absolute;
  inset: auto -40% -80% auto;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--pillar-tint, var(--amber)) 0%, transparent 65%);
  opacity: 0.22;
  filter: blur(10px);
  pointer-events: none;
  transition: transform 1.2s var(--ease-out), opacity 0.6s var(--ease-out);
}

.pillar:hover { transform: translateY(-4px); border-color: var(--pillar-tint, var(--amber)); }
.pillar:hover::after { transform: scale(1.1); opacity: 0.35; }

.pillar[data-pillar="listen"] { --pillar-tint: var(--amber); }
.pillar[data-pillar="watch"] { --pillar-tint: var(--teal); }
.pillar[data-pillar="talk"] { --pillar-tint: var(--amber-deep); }
.pillar[data-pillar="review"] { --pillar-tint: var(--teal-deep); }

.pillar-num {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.pillar-title {
  font-family: var(--display);
  font-weight: 700;
  font-variation-settings: 'opsz' 144, 'wonk' 80, 'SOFT' 40;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 0;
  color: var(--ink);
}

.pillar-body {
  font-size: 1rem;
  color: var(--ink-2);
  line-height: 1.5;
  margin: 0;
  max-width: 36ch;
}

.pillar-meta {
  display: flex;
  gap: 16px;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pillar-tint, var(--amber));
  position: relative;
  z-index: 1;
}

/* -------- SECTION 04 · HOW IT FEELS (mockups) -------- */
.feels {
  background: var(--navy);
  color: var(--paper);
  margin: 0 calc(-1 * var(--gutter));
  padding-inline: var(--gutter);
  overflow: hidden;
}
.feels .slug { color: var(--teal); }
.feels .section-header h2 { color: var(--paper); }
.feels .section-header h2 .tilt { color: var(--amber); }

.mockup-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 2vw, 24px);
}

@media (max-width: 960px) { .mockup-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .mockup-row { grid-template-columns: 1fr; } }

.mockup {
  background: linear-gradient(180deg, var(--navy-3) 0%, var(--navy-2) 100%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  aspect-ratio: 9 / 16;
  position: relative;
  overflow: hidden;
  transition: transform 0.6s var(--ease-out), border-color 0.6s var(--ease-out);
}
.mockup:hover {
  transform: translateY(-6px);
  border-color: rgba(255,255,255,0.18);
}

.mockup-chrome {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(240,237,232,0.5);
}
.mockup-chrome .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--mockup-tint, var(--amber));
  display: inline-block;
  margin-right: 8px;
  vertical-align: middle;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--mockup-tint, var(--amber)) 25%, transparent);
  animation: pulse 3s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--mockup-tint, var(--amber)) 25%, transparent); }
  50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--mockup-tint, var(--amber)) 0%, transparent); }
}

.mockup[data-kind="listen"] { --mockup-tint: var(--amber); }
.mockup[data-kind="watch"] { --mockup-tint: var(--teal); }
.mockup[data-kind="talk"] { --mockup-tint: var(--amber-deep); }
.mockup[data-kind="review"] { --mockup-tint: var(--teal-deep); }

.mockup-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 6px 4px;
}

.mockup-kicker {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mockup-tint, var(--amber));
}

.mockup-line {
  font-family: var(--display);
  font-variation-settings: 'opsz' 40, 'wonk' 40, 'SOFT' 40;
  font-size: 1.1rem;
  line-height: 1.25;
  color: var(--paper);
}

.mockup-line.sm { font-size: 0.9rem; color: rgba(240,237,232,0.7); }

.mockup-waveform {
  height: 40px;
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 4px 0;
}
.mockup-waveform span {
  flex: 1;
  background: var(--mockup-tint, var(--amber));
  border-radius: 2px;
  opacity: 0.5;
  animation: wave 2.2s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.08s);
}
@keyframes wave {
  0%, 100% { height: 20%; opacity: 0.3; }
  50% { height: 100%; opacity: 0.85; }
}

.mockup-captions {
  background: rgba(10,13,20,0.45);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 0.78rem;
  color: rgba(240,237,232,0.82);
  border-left: 2px solid var(--mockup-tint);
}

.mockup-bars {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mockup-bar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.6rem;
  color: rgba(240,237,232,0.6);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.mockup-bar .track {
  height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}
.mockup-bar .fill {
  position: absolute; inset: 0 auto 0 0;
  width: var(--w, 60%);
  background: var(--mockup-tint);
  border-radius: 999px;
}

.mockup-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-family: var(--mono);
  font-size: 0.58rem;
  color: rgba(240,237,232,0.5);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.mockup-record {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--amber-deep);
  align-self: center;
  position: relative;
  box-shadow: 0 0 0 6px rgba(232,136,43,0.18);
  animation: recpulse 1.8s ease-in-out infinite;
}
.mockup-record::before {
  content: ''; position: absolute; inset: 10px;
  background: var(--paper); border-radius: 50%;
}
@keyframes recpulse {
  0%,100% { box-shadow: 0 0 0 6px rgba(232,136,43,0.18); }
  50% { box-shadow: 0 0 0 12px rgba(232,136,43,0); }
}

/* -------- SECTION 05 · PRICING -------- */
.pricing-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2vw, 32px);
}
@media (max-width: 760px) { .pricing-row { grid-template-columns: 1fr; } }

.tier {
  background: var(--paper-2);
  border: 1px solid rgba(10, 13, 20, 0.1);
  border-radius: 28px;
  padding: clamp(32px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tier.is-now {
  background: var(--ink);
  color: var(--paper);
  border-color: transparent;
}
.tier.is-now .tier-name,
.tier.is-now .tier-price,
.tier.is-now .tier-includes li { color: var(--paper); }
.tier.is-now .tier-note { color: rgba(240,237,232,0.55); }
.tier.is-now .tier-includes li::before { color: var(--amber); }

.tier-slug {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber-deep);
}
.tier.is-now .tier-slug { color: var(--amber); }

.tier-name {
  font-family: var(--display);
  font-weight: 700;
  font-variation-settings: 'opsz' 144, 'wonk' 80, 'SOFT' 40;
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 0;
}

.tier-price {
  font-family: var(--display);
  font-weight: 700;
  font-variation-settings: 'opsz' 144, 'wonk' 20, 'SOFT' 40;
  font-size: clamp(3rem, 5vw, 4.5rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.tier-price .currency {
  font-size: 0.5em;
  color: var(--amber);
  position: relative;
  top: -0.3em;
}
.tier-price .unit {
  font-family: var(--mono);
  font-size: 0.22em;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  align-self: center;
  position: relative;
  top: 0.1em;
}
.tier.is-now .tier-price .unit { color: rgba(240,237,232,0.55); }

.tier-note {
  font-size: 0.9rem;
  color: var(--ink-3);
  font-style: italic;
  max-width: 32ch;
  margin: 0;
}

.tier-includes li {
  display: flex;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(10,13,20,0.12);
  font-size: 0.95rem;
  color: var(--ink-2);
}
.tier.is-now .tier-includes li { border-color: rgba(255,255,255,0.1); }
.tier-includes li:last-child { border-bottom: 0; }
.tier-includes li::before {
  content: '+';
  font-family: var(--mono);
  font-weight: 500;
  color: var(--amber-deep);
  min-width: 14px;
}

/* -------- SECTION 06 · FINAL CTA -------- */
.final {
  padding: var(--section-pad-y) 0;
  text-align: center;
  position: relative;
}
.final h2 {
  font-family: var(--display);
  font-weight: 700;
  font-variation-settings: 'opsz' 144, 'wonk' 100, 'SOFT' 30;
  font-size: clamp(2.5rem, 7vw, 6rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  margin: 0 0 clamp(20px, 3vh, 32px);
  max-width: 16ch;
  margin-inline: auto;
}
.final h2 .dot { color: var(--amber); }
.final p {
  max-width: 44ch;
  margin: 0 auto clamp(32px, 4vh, 48px);
  color: var(--ink-2);
  font-size: 1.125rem;
}
.final-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* -------- FOOTER -------- */
.footer {
  background: var(--navy);
  color: rgba(240,237,232,0.7);
  padding: clamp(48px, 8vh, 96px) var(--gutter) clamp(32px, 4vh, 48px);
  position: relative;
  z-index: 3;
}

.footer-grid {
  max-width: var(--shell-max);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  padding-bottom: clamp(32px, 5vh, 56px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

.footer-brand .nav-mark {
  color: var(--paper);
  font-size: 1.75rem;
  display: inline-block;
  margin-bottom: 12px;
}
.footer-brand p { font-size: 0.9rem; max-width: 30ch; color: rgba(240,237,232,0.6); }

.footer-col h4 {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 16px;
  font-weight: 500;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 0.92rem;
  color: rgba(240,237,232,0.7);
  transition: color 0.3s var(--ease-out);
}
.footer-col a:hover { color: var(--amber); }

.footer-base {
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-top: clamp(24px, 3vh, 40px);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(240,237,232,0.45);
}

/* -------- INSTALL PROMPT BANNER -------- */
.install-banner {
  position: fixed;
  left: 50%; bottom: 20px;
  transform: translateX(-50%) translateY(120%);
  background: var(--ink);
  color: var(--paper);
  padding: 14px 20px;
  border-radius: 999px;
  display: none;
  align-items: center;
  gap: 16px;
  z-index: 200;
  box-shadow: 0 20px 40px -15px rgba(10,13,20,0.4);
  transition: transform 0.6s var(--ease-io);
}
.install-banner.is-visible {
  display: flex;
  transform: translateX(-50%) translateY(0);
}
.install-banner button {
  background: var(--amber);
  color: var(--navy);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
}
.install-banner .close {
  background: transparent;
  color: rgba(240,237,232,0.6);
  font-size: 1.1rem;
  padding: 4px 8px;
}

/* -------- SCROLL REVEALS (enhanced with scale + blur) -------- */
html.js-ready .reveal {
  opacity: 0;
  transform: translateY(32px) scale(0.98);
  filter: blur(2px);
  transition:
    opacity 0.9s var(--ease-out),
    transform 0.9s var(--ease-out),
    filter 0.7s var(--ease-out);
  transition-delay: var(--delay, 0s);
}
html.js-ready .reveal.in-view {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

html.js-ready .reveal-stagger > * {
  opacity: 0;
  transform: translateY(26px) scale(0.97);
  filter: blur(1.5px);
  transition:
    opacity 0.8s var(--ease-out),
    transform 0.8s var(--ease-out),
    filter 0.6s var(--ease-out);
}
html.js-ready .reveal-stagger.in-view > *:nth-child(1) { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); transition-delay: 0.06s; }
html.js-ready .reveal-stagger.in-view > *:nth-child(2) { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); transition-delay: 0.16s; }
html.js-ready .reveal-stagger.in-view > *:nth-child(3) { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); transition-delay: 0.28s; }
html.js-ready .reveal-stagger.in-view > *:nth-child(4) { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); transition-delay: 0.40s; }

/* -------- REDUCED MOTION -------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .reveal-stagger > * { opacity: 1 !important; transform: none !important; }
  .hero h1 .word-inner { transform: none !important; }
}

/* -------- MOCKUP 3D TILT -------- */
.mockup {
  transform-style: preserve-3d;
  perspective: 800px;
  transition:
    transform 0.7s var(--ease-out),
    border-color 0.6s var(--ease-out),
    box-shadow 0.7s var(--ease-out);
}
.mockup:hover {
  transform: translateY(-8px) rotateX(2deg) rotateY(-1.5deg);
  box-shadow:
    0 24px 48px -16px rgba(10, 13, 20, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.12);
}
/* Alternate tilt direction on even mockups */
.mockup:nth-child(even):hover {
  transform: translateY(-8px) rotateX(2deg) rotateY(1.5deg);
}

/* -------- ANTI-LIST STAGGER -------- */
.anti-list li {
  opacity: 0;
  transform: translateX(-12px);
  transition:
    opacity 0.5s var(--ease-out),
    transform 0.5s var(--ease-out),
    background 0.35s var(--ease-out);
}
html.js-ready .anti-list.in-view li,
.anti-list li {
  opacity: 1;
  transform: translateX(0);
}
/* Stagger via nth-child when parent is in view */
html.js-ready .anti-list li { opacity: 0; transform: translateX(-12px); }
html.js-ready .anti-list.in-view li:nth-child(1) { opacity: 1; transform: translateX(0); transition-delay: 0.05s; }
html.js-ready .anti-list.in-view li:nth-child(2) { opacity: 1; transform: translateX(0); transition-delay: 0.12s; }
html.js-ready .anti-list.in-view li:nth-child(3) { opacity: 1; transform: translateX(0); transition-delay: 0.19s; }
html.js-ready .anti-list.in-view li:nth-child(4) { opacity: 1; transform: translateX(0); transition-delay: 0.26s; }
html.js-ready .anti-list.in-view li:nth-child(5) { opacity: 1; transform: translateX(0); transition-delay: 0.33s; }
html.js-ready .anti-list.in-view li:nth-child(6) { opacity: 1; transform: translateX(0); transition-delay: 0.40s; }

/* -------- ENHANCED BUTTON HOVERS -------- */
.btn-primary {
  transition:
    transform 0.4s var(--ease-out),
    background 0.4s var(--ease-out),
    color 0.4s var(--ease-out),
    box-shadow 0.4s var(--ease-out);
}
.btn-primary:hover {
  box-shadow:
    0 1px 0 rgba(255,255,255,0.1) inset,
    0 18px 36px -16px rgba(200, 16, 46, 0.5);
  transform: translateY(-2px);
}
.btn-primary:active {
  transform: translateY(0) scale(0.98);
  transition-duration: 80ms;
}

.btn-ghost {
  transition:
    transform 0.4s var(--ease-out),
    background 0.4s var(--ease-out),
    color 0.4s var(--ease-out),
    border-color 0.4s var(--ease-out);
}
.btn-ghost:hover {
  transform: translateY(-2px);
}
.btn-ghost:active {
  transform: translateY(0) scale(0.98);
  transition-duration: 80ms;
}

/* -------- PRICING TIER HOVER LIFT -------- */
.tier {
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
.tier:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 44px -18px rgba(10, 13, 20, 0.2);
}
.tier.is-now:hover {
  box-shadow: 0 24px 48px -16px rgba(10, 13, 20, 0.45);
}

/* -------- HERO MASTHEAD ENTRANCE STAGGER -------- */
@keyframes heroMetaFade {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-masthead span {
  animation: heroMetaFade 0.6s var(--ease-out) both;
}
.hero-masthead span:nth-child(1) { animation-delay: 0.8s; }
.hero-masthead span:nth-child(2) { animation-delay: 0.9s; }
.hero-masthead span:nth-child(3) { animation-delay: 1.0s; }
.hero-masthead span:nth-child(4) { animation-delay: 1.1s; }

.hero-sub {
  animation: heroMetaFade 0.7s var(--ease-out) 0.6s both;
}
.hero-ctas {
  animation: heroMetaFade 0.7s var(--ease-out) 0.75s both;
}
.hero-rail {
  animation: heroMetaFade 0.6s var(--ease-out) 0.9s both;
}

/* -------- SECTION HEADER TYPOGRAPHY REFINEMENT -------- */
.section-header h2 {
  transition: font-variation-settings 0.6s var(--ease-out);
}
.section-header h2 .tilt {
  transition: font-variation-settings 0.8s var(--ease-out), color 0.4s var(--ease-out);
}

/* -------- PILLAR CARD STAGGER -------- */
html.js-ready .pillar {
  opacity: 0;
  transform: translateY(30px) scale(0.97);
  transition:
    opacity 0.7s var(--ease-out),
    transform 0.7s var(--ease-out),
    border-color 0.6s var(--ease-out);
}
html.js-ready .pillar-grid.in-view .pillar:nth-child(1) { opacity: 1; transform: translateY(0) scale(1); transition-delay: 0.05s; }
html.js-ready .pillar-grid.in-view .pillar:nth-child(2) { opacity: 1; transform: translateY(0) scale(1); transition-delay: 0.18s; }
html.js-ready .pillar-grid.in-view .pillar:nth-child(3) { opacity: 1; transform: translateY(0) scale(1); transition-delay: 0.31s; }
html.js-ready .pillar-grid.in-view .pillar:nth-child(4) { opacity: 1; transform: translateY(0) scale(1); transition-delay: 0.44s; }

/* -------- FOCUS -------- */
:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 4px;
  border-radius: 4px;
}

/* ================================================================
   PROOF SECTION · 3-card founder story
   Techniques: (01)/(02)/(03) serial numbering (playbook 4.2),
   clip-path sweep reveal on photos (techniques library #03).
   ================================================================ */
.proof {
  padding: clamp(96px, 14vh, 160px) 0 clamp(72px, 12vh, 120px);
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
  position: relative;
  z-index: 2;
  overflow: hidden;
}
.proof::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg,
      transparent 0 2px,
      rgba(26, 22, 20, 0.012) 2px 3px);
  pointer-events: none;
  z-index: 0;
}
.proof .shell {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
  z-index: 1;
}
.proof .section-header {
  text-align: center;
  max-width: 880px;
  margin: 0 auto clamp(56px, 9vh, 96px);
}
.proof .section-header h2 {
  font-family: var(--display);
  font-size: clamp(34px, 5.6vw, 64px);
  font-weight: 400;
  font-variation-settings: 'opsz' 144, 'SOFT' 30;
  line-height: 1.06;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0;
}
.proof .section-header h2 .tilt {
  display: inline-block;
  font-style: italic;
  font-variation-settings: 'opsz' 144, 'SOFT' 60, 'WONK' 1;
  color: var(--rojo);
  letter-spacing: -0.01em;
}

/* -------- 3-COLUMN GRID -------- */
.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(32px, 4.5vw, 72px);
  align-items: start;
  max-width: 1240px;
  margin: 0 auto;
}

.proof-card {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* -------- POLAROID FRAME -------- */
.proof-frame {
  position: relative;
  background: #fdfbf6;
  padding: 14px 14px 48px;
  box-shadow:
    0 1px 2px rgba(26, 22, 20, 0.05),
    0 18px 38px -14px rgba(26, 22, 20, 0.22),
    inset 0 0 0 1px rgba(26, 22, 20, 0.03);
  transition:
    transform 0.7s var(--ease-out),
    box-shadow 0.7s var(--ease-out);
}
.proof-card--tilt-l .proof-frame { transform: rotate(-1.4deg); }
.proof-card--tilt-r .proof-frame { transform: rotate(1.2deg); }
.proof-card:hover .proof-frame {
  transform: rotate(0) translateY(-5px);
  box-shadow:
    0 1px 2px rgba(26, 22, 20, 0.05),
    0 28px 52px -16px rgba(26, 22, 20, 0.3),
    inset 0 0 0 1px rgba(26, 22, 20, 0.03);
}

.proof-img {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #1a1614;
}
.proof-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 72%, rgba(0,0,0,0.1) 100%);
  pointer-events: none;
  z-index: 1;
}
.proof-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 2s var(--ease-out);
}
.proof-card:hover .proof-img img {
  transform: scale(1.035);
}

/* Tag = handwritten-ish caption beneath photo, inside polaroid margin */
.proof-tag {
  position: absolute;
  bottom: 14px;
  left: 22px;
  right: 22px;
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(14px, 1vw, 15.5px);
  font-variation-settings: 'opsz' 14, 'SOFT' 80, 'WONK' 1;
  color: var(--ink-2);
  letter-spacing: 0;
  line-height: 1;
}

/* -------- BODY COPY -------- */
.proof-body p {
  font-family: var(--display);
  font-size: clamp(16px, 1.15vw, 18.5px);
  font-weight: 400;
  font-variation-settings: 'opsz' 16;
  line-height: 1.6;
  color: var(--ink);
  margin: 0;
  max-width: 44ch;
}
.proof-body p::first-letter {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.35em;
  font-variation-settings: 'opsz' 72, 'SOFT' 60, 'WONK' 1;
  color: var(--cielo);
  padding-right: 2px;
}

.proof-sign {
  margin: clamp(60px, 9vh, 96px) auto 0;
  text-align: center;
  font-family: var(--display);
  font-style: italic;
  font-variation-settings: 'opsz' 144, 'SOFT' 100, 'WONK' 1;
  font-size: clamp(20px, 1.6vw, 26px);
  color: var(--ink-2);
  letter-spacing: 0.01em;
  position: relative;
  z-index: 2;
}
.proof-sign::before {
  content: '';
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, transparent, rgba(26,22,20,0.22), transparent);
  margin: 0 auto 24px;
}

/* -------- REVEAL · clip-path sweep (Beasty library #03) + stagger -------- */
html.js-ready .proof-img img {
  clip-path: inset(0 0 100% 0);
  transition:
    clip-path 1.4s cubic-bezier(0.77, 0, 0.175, 1),
    transform 2s var(--ease-out);
}
html.js-ready .proof-grid.in-view .proof-card:nth-child(1) .proof-img img { clip-path: inset(0 0 0 0); transition-delay: 0.1s, 0s; }
html.js-ready .proof-grid.in-view .proof-card:nth-child(2) .proof-img img { clip-path: inset(0 0 0 0); transition-delay: 0.25s, 0s; }
html.js-ready .proof-grid.in-view .proof-card:nth-child(3) .proof-img img { clip-path: inset(0 0 0 0); transition-delay: 0.4s, 0s; }

html.js-ready .proof-card {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.8s var(--ease-out),
    transform 0.8s var(--ease-out);
}
html.js-ready .proof-grid.in-view .proof-card:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0.05s; }
html.js-ready .proof-grid.in-view .proof-card:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.2s; }
html.js-ready .proof-grid.in-view .proof-card:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.35s; }

html.js-ready .proof-card--tilt-l { transform: translateY(26px) rotate(-1.4deg); }
html.js-ready .proof-card--tilt-r { transform: translateY(26px) rotate(1.2deg); }

/* -------- RESPONSIVE -------- */
@media (max-width: 900px) {
  .proof-grid {
    grid-template-columns: 1fr;
    gap: clamp(40px, 8vw, 64px);
    max-width: 460px;
  }
  .proof-card--tilt-l .proof-frame,
  .proof-card--tilt-r .proof-frame { transform: rotate(0); }
  html.js-ready .proof-card--tilt-l,
  html.js-ready .proof-card--tilt-r { transform: translateY(26px); }
}

@media (prefers-reduced-motion: reduce) {
  html.js-ready .proof-img img,
  html.js-ready .proof-card,
  html.js-ready .proof-card--tilt-l,
  html.js-ready .proof-card--tilt-r {
    clip-path: none !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .proof-card--tilt-l .proof-frame { transform: rotate(-1.4deg) !important; }
  .proof-card--tilt-r .proof-frame { transform: rotate(1.2deg) !important; }
  .proof-card:hover .proof-frame,
  .proof-card:hover .proof-img img {
    transform: none !important;
    transition: none !important;
  }
}
