/* PAKT — landing page styles
   Brand: Firmament #0A0F23 • Autumn #FAE4CF
   Type: Solar Vesta Serif (display), Instrument Serif (italic accent), Outfit (UI) */

@font-face {
  font-family: 'Solar Vesta';
  src: url('assets/fonts/SolarVestaSerif.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('assets/fonts/InstrumentSerif-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('assets/fonts/InstrumentSerif-Italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Outfit';
  src: url('assets/fonts/Outfit-Variable.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Solar Vesta Script';
  src: url('assets/fonts/Solar Vesta Script.otf') format('opentype');
  font-weight: 400;
  font-display: swap;
}

:root {
  --firm: #0A0F23;
  --firm-2: #0d1330;
  --firm-3: #11173d;
  --autumn: #FAE4CF;
  --autumn-dim: #c9b4a0;
  --line: rgba(250, 228, 207, 0.12);
  --line-strong: rgba(250, 228, 207, 0.28);
  --muted: rgba(250, 228, 207, 0.62);
  --green: #2B4230;
  --display: 'Solar Vesta', 'Instrument Serif', Georgia, serif;
  --script: 'Solar Vesta Script', 'Instrument Serif', cursive;
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'Outfit', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body {
  background: var(--firm);
  color: var(--autumn);
  font-family: var(--sans);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body { overflow-x: hidden; }
body { font-size: 17px; line-height: 1.55; letter-spacing: -0.005em; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
::selection { background: var(--autumn); color: var(--firm); }

/* -------- typography utilities -------- */
.display { font-family: var(--display); font-weight: 400; letter-spacing: -0.022em; line-height: 0.95; }
.serif   { font-family: var(--serif); font-weight: 400; }
.italic  { font-family: var(--serif); font-style: italic; font-weight: 400; }
.script {
  font-family: var(--script);
  font-style: normal;
  font-weight: 400;
  color: var(--autumn);
  font-size: 0.62em;
  line-height: 0.9;
  letter-spacing: -0.005em;
  display: inline-block;
  transform: translateY(0.02em) rotate(-2deg);
  transform-origin: 30% 60%;
  padding: 0 0.06em;
}
.eyebrow {
  font-family: var(--sans);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--autumn-dim);
}
.h-display {
  font-family: var(--display);
  font-size: clamp(48px, 8.5vw, 140px);
  line-height: 0.9;
  letter-spacing: -0.028em;
  font-weight: 400;
}
.h-section {
  font-family: var(--display);
  font-size: clamp(36px, 5.5vw, 84px);
  line-height: 0.95;
  letter-spacing: -0.024em;
  font-weight: 400;
}
.h-card {
  font-family: var(--display);
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.05;
  letter-spacing: -0.015em;
}
.lede {
  font-family: var(--serif);
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.45;
  color: var(--muted);
  letter-spacing: 0.005em;
}

/* -------- layout -------- */
.wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 28px; }
@media (max-width: 600px) { .wrap { padding: 0 20px; } }
.section { padding: clamp(80px, 12vw, 160px) 0; position: relative; }
.divider { height: 1px; background: var(--line); width: 100%; }

/* -------- nav -------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: 18px 0;
  transition: backdrop-filter .3s ease, background .3s ease, padding .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10, 15, 35, 0.72);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  padding: 12px 0;
  border-bottom-color: var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand {
  font-family: var(--display);
  font-size: 26px;
  letter-spacing: -0.01em;
  display: inline-flex; align-items: center; gap: 10px;
}
.brand-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--autumn);
  box-shadow: 0 0 12px rgba(250,228,207,0.6);
}
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--muted);
  transition: color .2s ease;
}
.nav-links a:hover { color: var(--autumn); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px;
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.02em;
  background: var(--autumn);
  color: var(--firm);
  border-radius: 999px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(250,228,207,0.25); }
@media (max-width: 820px) { .nav-links { display: none; } }

/* -------- buttons -------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 24px;
  font-family: var(--sans);
  font-size: 15px; font-weight: 600;
  letter-spacing: 0.005em;
  border-radius: 999px;
  transition: transform .2s ease, box-shadow .25s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--autumn);
  color: var(--firm);
  box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 12px 36px -8px rgba(250,228,207,.35);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 18px 40px -8px rgba(250,228,207,.45); }
.btn-ghost {
  background: transparent;
  color: var(--autumn);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--autumn); background: rgba(250,228,207,0.04); }
.btn .arrow { transition: transform .25s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* -------- hero -------- */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding-top: 120px;
  padding-bottom: 80px;
}
.hero-bg {
  position: absolute; inset: -10% 0 0 0;
  z-index: 0;
  background: url('assets/pakt-wallpaper.webp') center/cover no-repeat;
  filter: saturate(1.05) brightness(0.85);
  will-change: transform;
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 20% 35%, rgba(10,15,35,0) 0%, rgba(10,15,35,0.85) 100%),
    linear-gradient(180deg, rgba(10,15,35,0.4) 0%, rgba(10,15,35,0.65) 55%, rgba(10,15,35,1) 100%);
}
.hero-grain {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}
.hero-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.15fr 0.85fr; align-items: center;
  gap: 80px;
  width: 100%;
}
@media (max-width: 980px) { .hero-inner { grid-template-columns: 1fr; gap: 56px; } }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 10px;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  border-radius: 999px;
  background: rgba(250,228,207,0.04);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--autumn-dim);
}
.hero-eyebrow .pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--autumn);
  box-shadow: 0 0 0 0 rgba(250,228,207,0.7);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(250,228,207,0.6); }
  70% { box-shadow: 0 0 0 8px rgba(250,228,207,0); }
  100% { box-shadow: 0 0 0 0 rgba(250,228,207,0); }
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(44px, 7.2vw, 92px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  font-weight: 400;
  margin-top: 28px;
}
.hero h1 .accent {
  font-family: var(--script);
  font-style: normal;
  font-weight: 400;
  color: var(--autumn);
  font-size: 1.18em;
  line-height: 0.85;
  letter-spacing: -0.01em;
  display: inline-block;
  transform: translateY(0.06em) rotate(-2deg);
  transform-origin: 30% 60%;
  padding: 0 0.04em;
}
.hero h1 .quiet { color: rgba(250,228,207,0.55); }
.hero-lede {
  margin-top: 28px;
  max-width: 540px;
  font-family: var(--serif);
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.45;
  color: var(--muted);
}
.hero-moat {
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(250,228,207,0.04), rgba(250,228,207,0.015));
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--autumn);
  text-transform: none;
}
.hero-moat em {
  font-family: var(--serif);
  font-style: italic;
  color: var(--autumn-dim);
  letter-spacing: 0.01em;
}
.hero-moat .moat-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--autumn);
  box-shadow: 0 0 0 4px rgba(250,228,207,0.08);
}
.hero-ctas {
  margin-top: 36px;
  display: flex; flex-wrap: wrap; gap: 12px;
}
.hero-meta {
  margin-top: 28px;
  display: flex; gap: 28px; flex-wrap: wrap;
  font-size: 13px; color: var(--autumn-dim);
}
.hero-meta .dot { display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: var(--autumn-dim); margin: 0 6px 2px; vertical-align: middle; }

/* phone frame */
.phone-stage {
  position: relative;
  display: grid; place-items: center;
  perspective: 1400px;
}
.phone {
  position: relative;
  width: min(360px, 78vw);
  aspect-ratio: 9 / 19.5;
  border-radius: 52px;
  background: linear-gradient(180deg, #16193a 0%, #0a0f23 100%);
  padding: 12px;
  box-shadow:
    0 50px 100px -30px rgba(0,0,0,0.7),
    0 30px 60px -20px rgba(20,30,80,0.4),
    inset 0 0 0 1px rgba(250,228,207,0.06),
    inset 0 1px 0 rgba(255,255,255,0.08);
  transform: rotateY(-8deg) rotateX(4deg);
  transition: transform .8s cubic-bezier(.2,.8,.2,1);
}
.phone:hover { transform: rotateY(-3deg) rotateX(1deg); }
.phone::before {
  content: ""; position: absolute; inset: -1px; border-radius: 53px;
  background: linear-gradient(160deg, rgba(250,228,207,0.18), transparent 30%, transparent 70%, rgba(250,228,207,0.08));
  z-index: -1;
  filter: blur(0.5px);
}
.phone-screen {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 42px;
  overflow: hidden;
  background: #000;
}
.phone-screen video, .phone-screen img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.phone-notch {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 110px; height: 28px; border-radius: 16px;
  background: #000;
  z-index: 3;
}
.phone-glow {
  position: absolute; inset: -40px;
  background: radial-gradient(50% 40% at 50% 50%, rgba(120, 150, 255, 0.18), transparent 70%);
  z-index: -2; pointer-events: none;
}

/* -------- marquee strip -------- */
.strip {
  position: relative;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
  overflow: hidden;
  background: rgba(250,228,207,0.015);
}
.strip-track {
  display: flex; gap: 64px;
  animation: scroll 38s linear infinite;
  width: max-content;
}
.strip-item {
  font-family: var(--display);
  font-size: clamp(22px, 2.2vw, 32px);
  letter-spacing: -0.01em;
  white-space: nowrap;
  color: var(--autumn);
  opacity: 0.92;
  display: inline-flex; align-items: center; gap: 64px;
}
.strip-item .sep {
  display: inline-block;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--autumn);
  opacity: 0.4;
}
.strip-item .italic { font-style: italic; font-family: var(--serif); color: var(--autumn-dim); }
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* -------- generic section heads -------- */
.section-head {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: end;
  margin-bottom: clamp(56px, 8vw, 96px);
}
@media (max-width: 820px) {
  .section-head { grid-template-columns: 1fr; gap: 24px; }
}
.section-head .title { font-family: var(--display); font-size: clamp(40px, 6vw, 88px); line-height: 0.95; letter-spacing: -0.025em; }
.section-head .title .italic { color: var(--autumn-dim); }
.section-head .sub { max-width: 460px; }

/* -------- four pillars -------- */
.pillars {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
}
@media (max-width: 760px) { .pillars { grid-template-columns: 1fr; } }
.pillar {
  background: var(--firm);
  padding: clamp(28px, 4vw, 48px);
  position: relative;
  min-height: 320px;
  display: flex; flex-direction: column;
  transition: background .35s ease;
}
.pillar:hover { background: var(--firm-2); }
.pillar .num {
  font-family: var(--display);
  font-size: 14px; font-weight: 400;
  color: var(--autumn-dim);
  letter-spacing: 0;
  margin-bottom: 28px;
  font-feature-settings: "tnum";
}
.pillar .quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.15;
  color: var(--autumn-dim);
  margin-bottom: 20px;
  position: relative;
  padding-left: 18px;
}
.pillar .quote::before {
  content: ""; position: absolute; left: 0; top: 12px;
  width: 2px; height: calc(100% - 24px);
  background: var(--autumn-dim);
  opacity: 0.4;
}
.pillar .answer {
  font-family: var(--display);
  font-size: clamp(24px, 2.8vw, 36px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--autumn);
  margin-top: auto;
}
.pillar .badge {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 16px;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--autumn);
}
.pillar .badge svg { width: 14px; height: 14px; }

/* -------- demo rows (alternating video + content) -------- */
.demo-row {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 80px; align-items: center;
  margin-bottom: clamp(120px, 16vw, 200px);
}
.demo-row:last-child { margin-bottom: 0; }
.demo-row.flip { grid-template-columns: 0.9fr 1.1fr; }
.demo-row.flip .demo-media { order: 2; }
.demo-row.flip .demo-copy { order: 1; }
@media (max-width: 920px) {
  .demo-row, .demo-row.flip { grid-template-columns: 1fr; gap: 56px; }
  .demo-row.flip .demo-media { order: 0; }
  .demo-row.flip .demo-copy { order: 0; }
}

.demo-copy .eyebrow { display: inline-flex; align-items: center; gap: 10px; }
.demo-copy .eyebrow .num {
  font-family: var(--display);
  font-size: 13px; letter-spacing: 0;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(250,228,207,0.08);
  color: var(--autumn);
}
.demo-copy h3 {
  font-family: var(--display);
  font-size: clamp(38px, 5vw, 64px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin: 22px 0 24px;
  font-weight: 400;
}
.demo-copy h3 .italic { color: var(--autumn-dim); }
.demo-copy p { color: var(--muted); font-size: clamp(16px, 1.2vw, 19px); max-width: 520px; line-height: 1.55; }
.demo-copy ul {
  list-style: none; margin-top: 28px;
  display: grid; gap: 14px;
}
.demo-copy li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 15px; color: var(--autumn); font-weight: 400;
}
.demo-copy li svg { flex-shrink: 0; margin-top: 4px; }

.demo-media .phone { transform: rotateY(0) rotateX(0); margin-inline: auto; }
.demo-media .phone:hover { transform: translateY(-4px); }

/* -------- 50 state block -------- */
.states {
  position: relative;
  padding: clamp(80px, 10vw, 140px) clamp(28px, 4vw, 72px);
  border-radius: 32px;
  background: linear-gradient(180deg, var(--firm-2) 0%, var(--firm) 100%);
  box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden;
}
.states::before {
  content: "";
  position: absolute; inset: 0;
  background: url('assets/pakt-wallpaper.webp') center/cover no-repeat;
  opacity: 0.18;
  mix-blend-mode: screen;
}
.states-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 880px) { .states-inner { grid-template-columns: 1fr; gap: 40px; } }
.state-counter {
  font-family: var(--display);
  font-size: clamp(96px, 18vw, 240px);
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: var(--autumn);
}
.state-counter .sub {
  display: block;
  font-size: clamp(20px, 2vw, 28px);
  margin-top: 14px;
  letter-spacing: -0.01em;
  color: var(--autumn-dim);
  font-style: italic;
  font-family: var(--serif);
}
.state-tiles {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px;
}
@media (max-width: 600px) { .state-tiles { grid-template-columns: repeat(4, 1fr); } }
.state-tile {
  aspect-ratio: 1;
  border-radius: 8px;
  background: rgba(250,228,207,0.05);
  color: var(--autumn-dim);
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.08em;
  display: grid; place-items: center;
  font-family: var(--sans);
  transition: background .25s ease, color .25s ease, transform .25s ease;
}
.state-tile:hover { background: var(--autumn); color: var(--firm); transform: translateY(-2px); }
.state-tile.tier-1 { background: rgba(250,228,207,0.16); color: var(--autumn); }
.state-tile.tier-2 { background: rgba(250,228,207,0.09); color: var(--autumn); }

/* -------- pricing -------- */
.pricing {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
@media (max-width: 820px) { .pricing { grid-template-columns: 1fr; } }
.plan {
  padding: clamp(32px, 4vw, 44px);
  border-radius: 24px;
  background: var(--firm-2);
  box-shadow: inset 0 0 0 1px var(--line);
  display: flex; flex-direction: column;
  min-height: 540px;
  position: relative;
  overflow: hidden;
}
.plan.featured {
  background: var(--autumn);
  color: var(--firm);
}
.plan.featured .muted { color: rgba(10,15,35,0.6); }
.plan.featured .price-num { color: var(--firm); }
.plan.featured .pl-divider { background: rgba(10,15,35,0.15); }
.plan.featured ul li { color: var(--firm); }
.plan.featured ul li svg circle { fill: var(--firm); }
.plan.featured ul li svg path { stroke: var(--autumn); }
.plan-tag {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--autumn-dim);
}
.plan.featured .plan-tag { color: rgba(10,15,35,0.55); }
.plan-name {
  font-family: var(--display);
  font-size: clamp(34px, 4vw, 48px);
  letter-spacing: -0.02em;
  margin: 8px 0 4px;
}
.plan-tagline { font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--autumn-dim); margin-bottom: 28px; }
.plan.featured .plan-tagline { color: rgba(10,15,35,0.7); }
.price {
  display: flex; align-items: baseline; gap: 10px;
  margin-bottom: 6px;
}
.price-num { font-family: var(--display); font-size: clamp(48px, 6vw, 72px); line-height: 1; letter-spacing: -0.03em; color: var(--autumn); }
.price-unit { font-size: 15px; color: var(--muted); }
.plan.featured .price-unit { color: rgba(10,15,35,0.6); }
.price-sub { font-size: 13px; color: var(--muted); }
.plan.featured .price-sub { color: rgba(10,15,35,0.6); }
.pl-divider { height: 1px; background: var(--line); margin: 28px 0; width: 100%; }
.plan ul { list-style: none; display: grid; gap: 12px; margin-bottom: 32px; }
.plan ul li { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; line-height: 1.4; color: var(--autumn); }
.plan ul li svg { flex-shrink: 0; margin-top: 3px; }
.plan .btn { margin-top: auto; }
.plan.featured .btn { background: var(--firm); color: var(--autumn); }
.plan.featured .btn:hover { background: var(--firm-3); }

/* -------- final CTA -------- */
.final {
  position: relative;
  padding: clamp(100px, 14vw, 180px) 0;
  text-align: center;
  overflow: hidden;
}
.final-bg {
  position: absolute; inset: 0; z-index: 0;
  background: url('assets/pakt-wallpaper.webp') center/cover no-repeat;
  opacity: 0.5;
}
.final-bg::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 60% at 50% 50%, rgba(10,15,35,0) 0%, rgba(10,15,35,0.95) 100%);
}
.final-inner { position: relative; z-index: 1; max-width: 1000px; margin: 0 auto; padding: 0 28px; }
.final h2 {
  font-family: var(--display);
  font-size: clamp(56px, 10vw, 160px);
  line-height: 0.88;
  letter-spacing: -0.032em;
  margin-bottom: 32px;
}
.final h2 .italic { color: var(--autumn-dim); }
.final-ctas {
  margin-top: 40px;
  display: inline-flex; flex-wrap: wrap; gap: 12px; justify-content: center;
}

/* -------- footer -------- */
footer { padding: 56px 0; border-top: 1px solid var(--line); }
.foot { display: flex; align-items: flex-start; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.foot-brand { max-width: 320px; }
.foot-brand .display { font-family: var(--display); font-size: 32px; margin-bottom: 12px; }
.foot-brand p { font-family: var(--serif); font-style: italic; color: var(--muted); }
.foot-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.foot-col h6 {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--autumn-dim);
  margin-bottom: 16px;
}
.foot-col a { display: block; font-size: 14px; color: var(--autumn); margin-bottom: 10px; transition: opacity .2s; }
.foot-col a:hover { opacity: 0.6; }
.foot-base { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; font-size: 12px; color: var(--autumn-dim); }

/* -------- reveal animations -------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s cubic-bezier(.2,.8,.2,1), transform 1s cubic-bezier(.2,.8,.2,1);
  transition-delay: var(--delay, 0ms);
}
.reveal.in { opacity: 1; transform: none; }

.split { display: inline-block; overflow: hidden; vertical-align: top; }
.split span {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  transition: transform 1.1s cubic-bezier(.2,.8,.2,1), opacity 1.1s ease;
  transition-delay: var(--d, 0ms);
}
.split.in span { transform: none; opacity: 1; }

/* -------- PREMIUM scroll micro-animations -------- */

/* scroll progress bar */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 2px; z-index: 100;
  background: linear-gradient(90deg,
    rgba(250,228,207,0) 0%,
    rgba(250,228,207,0.85) 40%,
    rgba(250,228,207,1) 100%);
  transform-origin: 0 50%;
  transform: scaleX(0);
  transition: transform .12s linear, opacity .3s ease;
  opacity: 0;
  box-shadow: 0 0 14px rgba(250,228,207,0.55);
  will-change: transform;
}
.scroll-progress.active { opacity: 1; }

/* word-level stagger reveal — wraps each word in a mask-clipped span.
   NOTE: do NOT set `display: inline` on .words — the JS adds .words to the
   <h2>/<h3> element itself, which would collapse the heading from block to inline
   and break centering, margins, and full-row layout. The .word children are
   already inline-block; the parent stays block. */
.words .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  /* clip slightly past the baseline to fit descenders */
  padding-bottom: 0.06em;
  margin-bottom: -0.06em;
}
.words .word > .inner {
  display: inline-block;
  transform: translateY(105%) rotate(2deg);
  opacity: 0;
  transition:
    transform 1s cubic-bezier(.2,.8,.2,1),
    opacity .9s cubic-bezier(.2,.8,.2,1);
  transition-delay: calc(var(--i, 0) * 55ms);
  will-change: transform, opacity;
}
.words.in .word > .inner { transform: none; opacity: 1; }
/* preserve the script word rotation */
.words .word .script { transform: translateY(0.02em) rotate(-2deg); }

/* list-item cascade for .demo-copy ul and .plan ul */
.demo-copy ul li,
.plan ul li {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity .7s cubic-bezier(.2,.8,.2,1),
    transform .7s cubic-bezier(.2,.8,.2,1);
  transition-delay: calc(var(--li-i, 0) * 80ms);
}
.demo-copy.lis-in ul li,
.plan.lis-in ul li { opacity: 1; transform: none; }

/* small icon tick: spring in slightly after row */
.demo-copy ul li svg,
.plan ul li svg {
  transform: scale(0.5);
  opacity: 0;
  transition: transform .55s cubic-bezier(.34,1.56,.64,1), opacity .4s ease;
  transition-delay: calc(var(--li-i, 0) * 80ms + 180ms);
}
.demo-copy.lis-in ul li svg,
.plan.lis-in ul li svg { transform: none; opacity: 1; }

/* pillar cascade — staggered slide+blur on enter */
.pillars .pillar {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(8px);
  transition:
    opacity .9s cubic-bezier(.2,.8,.2,1),
    transform .9s cubic-bezier(.2,.8,.2,1),
    filter .9s cubic-bezier(.2,.8,.2,1),
    background .35s ease;
  transition-delay: calc(var(--p-i, 0) * 110ms);
}
.pillars.in .pillar { opacity: 1; transform: none; filter: blur(0); }

/* pillar inner cascade for quote/answer/badge */
.pillar .num, .pillar .quote, .pillar .answer, .pillar .badge {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1);
}
.pillars.in .pillar .num     { transition-delay: calc(var(--p-i,0) * 110ms + 180ms); opacity: 1; transform: none; }
.pillars.in .pillar .quote   { transition-delay: calc(var(--p-i,0) * 110ms + 260ms); opacity: 1; transform: none; }
.pillars.in .pillar .answer  { transition-delay: calc(var(--p-i,0) * 110ms + 340ms); opacity: 1; transform: none; }
.pillars.in .pillar .badge   { transition-delay: calc(var(--p-i,0) * 110ms + 440ms); opacity: 1; transform: none; }

/* pillar quote left-bar draws in */
.pillar .quote::before {
  transform: scaleY(0);
  transform-origin: 0 0;
  transition: transform .9s cubic-bezier(.2,.8,.2,1);
  transition-delay: calc(var(--p-i,0) * 110ms + 380ms);
}
.pillars.in .pillar .quote::before { transform: scaleY(1); }

/* kicker line-draw */
.kicker::before {
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform .8s cubic-bezier(.2,.8,.2,1);
}
.reveal.in .kicker::before,
.kicker.in::before { transform: scaleX(1); }
.section-head.reveal.in .kicker::before { transition-delay: 250ms; }

/* state-counter: glow tick when it lands */
.state-counter.ticking { transform: scale(1.0); }
.state-counter {
  display: inline-block;
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), text-shadow .4s ease;
}
.state-counter.popped {
  transform: scale(1.04);
  text-shadow: 0 0 32px rgba(250,228,207,0.4);
}

/* state-tile pop on enter (subtle) */
.state-tile {
  transition:
    background .25s ease,
    color .25s ease,
    transform .55s cubic-bezier(.2,.8,.2,1),
    opacity .55s ease;
}

/* phone scroll-tilt — applies a CSS var driven transform */
.phone {
  --scroll-tilt-x: 0deg;
  --scroll-tilt-y: 0deg;
  --scroll-lift: 0px;
}
.demo-media .phone {
  transform:
    rotateX(var(--scroll-tilt-x))
    rotateY(var(--scroll-tilt-y))
    translateY(var(--scroll-lift));
  transition: transform .9s cubic-bezier(.2,.8,.2,1);
}

/* clip-path reveal for the demo phones — disabled. The aggressive inset(0 0 100% 0)
   starting state hides phones entirely until IntersectionObserver fires .in, and
   misses on direct nav-anchor scrolls leaving phones invisible. The .demo-media
   already inherits the opacity reveal from its parent .reveal element. */

/* badges in demo eyebrows: pill chip in */
.demo-copy .eyebrow .num {
  display: inline-block;
  transform: translateY(6px) scale(0.9);
  opacity: 0;
  transition: transform .6s cubic-bezier(.34,1.56,.64,1), opacity .5s ease;
}
.demo-copy.in .eyebrow .num { transform: none; opacity: 1; }

/* magnetic CTA */
.btn, .nav-cta {
  --mx: 0px;
  --my: 0px;
  transform: translate3d(var(--mx), var(--my), 0);
}
.btn:hover { transform: translate3d(var(--mx), calc(var(--my) - 1px), 0); }

/* pricing plans: scale + lift in */
.plan {
  opacity: 0;
  transform: translateY(36px) scale(0.985);
  transition:
    opacity 1s cubic-bezier(.2,.8,.2,1),
    transform 1s cubic-bezier(.2,.8,.2,1),
    box-shadow .35s ease;
  transition-delay: calc(var(--pl-i, 0) * 140ms);
}
.pricing.in .plan { opacity: 1; transform: none; }
.pricing.in .plan.featured {
  box-shadow: inset 0 0 0 1px rgba(250,228,207,0.4),
              0 30px 80px -20px rgba(250,228,207,0.18);
}

/* footer columns cascade */
.foot-col, .foot-brand {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1);
  transition-delay: calc(var(--f-i, 0) * 90ms);
}
footer.in .foot-col, footer.in .foot-brand { opacity: 1; transform: none; }

/* marquee gets a tiny skew under scroll velocity */
.strip-track {
  --vel-skew: 0deg;
  transition: filter .3s ease;
}
.strip-track.fast { filter: contrast(1.05); }
.strip-item { transform: skewX(var(--vel-skew)); transition: transform .25s ease; }

/* nav scroll-progress dot — small pulsing dot inside nav */
.nav .brand-dot { transition: box-shadow .35s ease, transform .35s ease; }
.nav.scrolled .brand-dot { transform: scale(1.05); }

/* hero phone gentle float — DISABLED. CSS animations cascade higher than inline
   styles, so a running float animation overrides the JS pointer-driven tilt set
   on mousemove (the user's "phone moves on hover" behavior). Keeping keyframes
   defined in case we re-enable it via a different mechanism (CSS var) later. */
@keyframes phoneFloat {
  0%, 100% { transform: rotateY(-8deg) rotateX(4deg) translateY(0); }
  50%      { transform: rotateY(-8deg) rotateX(4deg) translateY(-6px); }
}

/* hero eyebrow shimmer */
.hero-eyebrow {
  position: relative;
  overflow: hidden;
}
.hero-eyebrow::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(110deg,
    transparent 0%,
    transparent 35%,
    rgba(250,228,207,0.22) 50%,
    transparent 65%,
    transparent 100%);
  transform: translateX(-100%);
  animation: eyebrowShimmer 5.5s ease-in-out 2s infinite;
  pointer-events: none;
}
@keyframes eyebrowShimmer {
  0%, 60% { transform: translateX(-100%); }
  80%     { transform: translateX(100%); }
  100%    { transform: translateX(100%); }
}

/* link underline reveal on nav-links */
.nav-links a {
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: var(--autumn);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
.nav-links a:hover::after { transform: scaleX(1); }

/* pricing list item bullet pop */
.plan ul li svg circle { transition: fill-opacity .3s ease; }
.plan:hover ul li svg circle { fill-opacity: 0.25; }

/* -------- mini composition bits -------- */
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--autumn-dim);
  margin-bottom: 18px;
}
.kicker::before {
  content: ""; width: 24px; height: 1px; background: var(--autumn-dim);
}

/* tiny utilities */
.mt-sm { margin-top: 16px; }
.mt-md { margin-top: 32px; }
.mt-lg { margin-top: 64px; }
.flex { display: flex; }
.gap-12 { gap: 12px; }
.center { text-align: center; }
.muted { color: var(--muted); }

@media (max-width: 600px) {
  .hero h1 { font-size: clamp(38px, 11vw, 64px); }
}

/* -------- mobile width corrections --------
   The design tool injected fixed-width and oversized inline styles
   (e.g. width: 460px, width: 600px, font-size: 120px, margin: 40px)
   that look right on desktop but overflow the viewport on phones. Override
   them with viewport-relative values via !important since inline styles
   otherwise win the cascade. */
html { overflow-x: clip; }                 /* iOS Safari stricter than hidden */
body { overflow-x: clip; max-width: 100vw; }
@media (max-width: 720px) {
  /* Lede paragraphs in section heads that have an inline width / margin / huge
     font-size (e.g. the "PAKT closes the four objections..." lede with
     inline width: 460px, font-size: 45px, margin: 40px). */
  .section-head .lede,
  .section-head .lede.sub {
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    font-size: clamp(15px, 4.2vw, 19px) !important;
    line-height: 1.55 !important;
    letter-spacing: 0 !important;
    margin: 16px 0 0 !important;
    text-align: left !important;
  }
  /* Section h2 titles that have inline width: 600px etc. */
  .section-head .title {
    width: auto !important;
    max-width: 100% !important;
    font-size: clamp(40px, 11vw, 64px) !important;
    line-height: 0.98 !important;
  }
  /* Big script-font words inside headings with inline font-size 110-120px */
  .section-head .title .italic[style*="font-size"],
  .demo-copy h3 .script[style*="font-size"],
  .demo-copy h3 .italic[style*="font-size"] {
    font-size: clamp(44px, 13vw, 72px) !important;
  }
  /* Demo row h3s themselves (capped so MORTGAGE/NDA fit on phone). */
  .demo-copy h3 {
    font-size: clamp(32px, 8.5vw, 48px) !important;
  }
  /* Section-head's grid drops to one column on mobile (already in main CSS,
     but its margin-bottom collapses if .lede has !important margin reset). */
  .section-head { gap: 12px !important; }

  /* -------- 50-state tile grid: compress from 13 rows of squares (~1100px,
     three thumb-scrolls) into 9 rows of wider pill tiles (~330px, one
     screen). Same 50 abbreviations, just less vertical drag. Also tightens
     the .states block padding so the whole section feels punchier. -------- */
  .states {
    padding: 56px 22px !important;
  }
  .state-tiles {
    grid-template-columns: repeat(6, 1fr) !important;
    gap: 5px !important;
  }
  .state-tile {
    aspect-ratio: 1.55 / 1 !important;
    font-size: 10px !important;
    letter-spacing: 0.04em !important;
    border-radius: 6px !important;
  }
  /* Tier legend sits right after .state-tiles inside the same column. */
  .state-tiles + div {
    margin-top: 14px !important;
    gap: 10px 14px !important;
    font-size: 10px !important;
  }
  .state-tiles + div > span > span {
    width: 8px !important;
    height: 8px !important;
  }
}

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