/* ============================================================
   BASE.CSS — Reset, Fonts, Tokens, Typography
   Skymin Design System · skym.in
   ============================================================ */

/* --- CSS Reset (modern) ----------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100dvh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
  text-wrap: balance;
}

p {
  overflow-wrap: break-word;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* --- @font-face — Self-hosted .woff2 ---------------------- */
/*
  Strategy:
  - Display: Inter (700/800) — clean Apple-like geometric sans
  - Body: System font stack — SF Pro on Apple, Segoe UI on Windows, Roboto on Android
  - Mono: System mono stack — SF Mono, Menlo, Consolas
  - font-display: swap → system fonts paint instantly, Inter swaps in when ready
  - Blur-to-sharp transition hides the font swap
*/

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../assets/fonts/inter-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC,
    U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F,
    U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../assets/fonts/inter-800-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC,
    U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F,
    U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- Font Loading: blur-to-sharp transition --------------- */
/* html starts with .fonts-loading (set inline), removed when Inter loads */
.fonts-loading h1,
.fonts-loading h2,
.fonts-loading h3,
.fonts-loading .hero__title,
.fonts-loading .section__headline,
.fonts-loading .nav__logo {
  filter: blur(4px);
  opacity: 0.7;
}

.fonts-loaded h1,
.fonts-loaded h2,
.fonts-loaded h3,
.fonts-loaded .hero__title,
.fonts-loaded .section__headline,
.fonts-loaded .nav__logo {
  filter: blur(0);
  opacity: 1;
  transition: filter 400ms ease, opacity 400ms ease;
}

/* --- Design Tokens ---------------------------------------- */
:root {
  /* Base */
  --color-bg:            #080808;
  --color-surface:       #111111;
  --color-surface-2:     #1A1A1A;
  --color-border:        #2A2A2A;

  /* Text */
  --color-text-primary:  #F0EDE6;
  --color-text-secondary:#A09A8F;
  --color-text-tertiary: #88837C;

  /* Accent — Teal */
  --color-accent:        #14b8a6;
  --color-accent-dim:    #0f766e;
  --color-accent-glow:   rgba(20, 184, 166, 0.12);

  /* Semantic */
  --color-success:       #4CAF72;
  --color-danger:        #E05252;

  /* Gradients */
  --gradient-hero:   linear-gradient(160deg, #0D0D0D 0%, #0A0C10 100%);
  --gradient-accent: linear-gradient(90deg, #14b8a6, #0d9488);

  /* Typography — Apple-style system stack + Inter display */
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-body:    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono:    'SF Mono', SFMono-Regular, ui-monospace, Menlo, Consolas, 'Liberation Mono', monospace;

  /* Type Scale — mobile first */
  --text-xs:   0.75rem;     /* 12px */
  --text-sm:   0.875rem;    /* 14px */
  --text-base: 1rem;        /* 16px */
  --text-lg:   1.125rem;    /* 18px */
  --text-xl:   1.375rem;    /* 22px */
  --text-2xl:  1.75rem;     /* 28px */
  --text-3xl:  2.25rem;     /* 36px */
  --text-4xl:  3rem;        /* 48px */
  --text-5xl:  4rem;        /* 64px */
  --text-6xl:  5.5rem;      /* 88px */

  --leading-tight:   1.1;
  --leading-snug:    1.3;
  --leading-normal:  1.6;
  --leading-loose:   1.8;

  --tracking-tight:  -0.03em;
  --tracking-normal: -0.01em;
  --tracking-wide:   0.08em;
  --tracking-wider:  0.14em;

  /* Spacing */
  --space-1:   0.25rem;   /* 4px  */
  --space-2:   0.5rem;    /* 8px  */
  --space-3:   0.75rem;   /* 12px */
  --space-4:   1rem;      /* 16px */
  --space-5:   1.25rem;   /* 20px */
  --space-6:   1.5rem;    /* 24px */
  --space-8:   2rem;      /* 32px */
  --space-10:  2.5rem;    /* 40px */
  --space-12:  3rem;      /* 48px */
  --space-16:  4rem;      /* 64px */
  --space-20:  5rem;      /* 80px */
  --space-24:  6rem;      /* 96px */
  --space-32:  8rem;      /* 128px */

  /* Containers */
  --container-sm:  640px;
  --container-md:  768px;
  --container-lg:  1024px;
  --container-xl:  1280px;

  /* Radii */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-pill: 999px;

  /* Motion */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:   cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast:   150ms;
  --duration-base:   250ms;
  --duration-slow:   450ms;
  --duration-reveal:  700ms;
}

/* --- Base Element Styles ---------------------------------- */

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: var(--leading-normal);
  color: var(--color-text-primary);
  background-color: var(--color-bg);
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--color-text-primary);
}

h1 {
  font-size: var(--text-4xl);
}

h2 {
  font-size: var(--text-2xl);
}

h3 {
  font-size: var(--text-xl);
}

@media (min-width: 1024px) {
  h1 { font-size: var(--text-5xl); }
  h2 { font-size: var(--text-3xl); }
  h3 { font-size: var(--text-2xl); }
}

/* Selection */
::selection {
  background: var(--color-accent);
  color: #000;
}

/* Focus visible */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* Scrollbar (subtle) */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg);
}
::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: var(--radius-pill);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-text-tertiary);
}

/* Utilities */
.overflow-hidden {
  overflow: hidden !important;
}

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

/* Alpine.js cloak */
[x-cloak] { display: none !important; }
/* ============================================================
   LAYOUT.CSS — Grid, Containers, Section Spacing
   Skymin Design System · skym.in
   ============================================================ */

/* --- Container -------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-xl);
  margin-inline: auto;
  padding-inline: var(--space-5);
}

@media (min-width: 768px) {
  .container {
    padding-inline: var(--space-8);
  }
}

@media (min-width: 1024px) {
  .container {
    padding-inline: var(--space-12);
  }
}

/* Narrow container for text-heavy sections */
.container--narrow {
  max-width: var(--container-md);
}

/* --- Section ---------------------------------------------- */
.section {
  padding-block: var(--space-20);
}

@media (min-width: 1024px) {
  .section {
    padding-block: var(--space-24);
  }
}

/* Alternating section backgrounds */
.section--surface {
  background-color: var(--color-surface);
}

.section--dark {
  background-color: var(--color-bg);
}

/* --- Section Number Label --------------------------------- */
.section__number {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  display: block;
  margin-bottom: var(--space-4);
}

/* --- Section Header --------------------------------------- */
.section__header {
  margin-bottom: var(--space-12);
}

.section__headline {
  margin-bottom: var(--space-4);
}

.section__subheadline {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: var(--leading-normal);
  max-width: 56ch;
}

@media (min-width: 1024px) {
  .section__subheadline {
    font-size: var(--text-lg);
  }
}

/* --- Grid Utilities --------------------------------------- */
.grid {
  display: grid;
  gap: var(--space-6);
}

.grid--2 {
  grid-template-columns: 1fr;
}

.grid--3 {
  grid-template-columns: 1fr;
}

.grid--4 {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* --- Split Layout (text + visual, side by side) ----------- */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  align-items: center;
}

@media (min-width: 1024px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
  }
}

/* --- Flex Utilities --------------------------------------- */
.flex {
  display: flex;
}

.flex--wrap {
  flex-wrap: wrap;
}

.flex--col {
  flex-direction: column;
}

.flex--center {
  align-items: center;
  justify-content: center;
}

.flex--between {
  justify-content: space-between;
}

.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

/* --- Text Utilities --------------------------------------- */
.text-center { text-align: center; }
.text-accent { color: var(--color-accent); }
.text-secondary { color: var(--color-text-secondary); }
.text-tertiary { color: var(--color-text-tertiary); }
.text-sm { font-size: var(--text-sm); }
.text-mono { font-family: var(--font-mono); }

/* Max-width for readable text */
.max-prose {
  max-width: 64ch;
}
/* ============================================================
   COMPONENTS.CSS — All BEM Components
   Skymin Design System · skym.in
   ============================================================ */

/* ==========================================================
   BUTTONS
   ========================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all var(--duration-base) var(--ease-out-expo);
  white-space: nowrap;
  min-height: 44px; /* touch target */
}

/* App-like tactile press state */
.btn:active {
  transform: scale(0.96) !important;
  transition-duration: 50ms !important;
}

/* Primary — amber fill */
.btn--primary {
  background: var(--color-accent);
  color: #000;
}
.btn--primary:hover {
  background: var(--color-accent-dim);
  transform: translateY(-1px);
}

/* Outline — amber border, transparent fill */
.btn--outline {
  background: transparent;
  color: var(--color-accent);
  border: 1.5px solid var(--color-accent);
}
.btn--outline:hover {
  background: var(--color-accent-glow);
}

/* Ghost — subtle border, text only */
.btn--ghost {
  background: transparent;
  color: var(--color-text-secondary);
  border: 1.5px solid var(--color-border);
}
.btn--ghost:hover {
  color: var(--color-text-primary);
  border-color: var(--color-text-secondary);
}

/* WhatsApp */
.btn--whatsapp {
  background: #25D366;
  color: #000;
}
.btn--whatsapp:hover {
  background: #1FB857;
  transform: translateY(-1px);
}

/* Large size */
.btn--lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
}

/* Full-width on mobile */
@media (max-width: 639px) {
  .btn--block-mobile {
    width: 100%;
  }
}



/* ==========================================================
   NAVIGATION
   ========================================================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background var(--duration-base) var(--ease-in-out),
              border-color var(--duration-base) var(--ease-in-out);
}

.nav--scrolled {
  background: rgba(8, 8, 8, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
}

.nav--menu-open {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-bottom-color: transparent !important;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding-inline: var(--space-5);
  max-width: var(--container-xl);
  margin-inline: auto;
  position: relative;
  z-index: 55;
}

@media (min-width: 1024px) {
  .nav__inner {
    padding-inline: var(--space-12);
    height: 72px;
  }
}

/* Logo / Wordmark */
.nav__logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-xl);
  color: var(--color-text-primary);
  letter-spacing: var(--tracking-tight);
  text-decoration: none;
}

.nav__logo span {
  color: var(--color-accent);
}

/* Desktop links */
.nav__links {
  display: none;
  align-items: center;
  gap: var(--space-8);
}

@media (min-width: 1024px) {
  .nav__links {
    display: flex;
  }
}

.nav__link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  transition: color var(--duration-fast) ease;
}

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

/* Nav CTA */
.nav__cta {
  background: var(--color-accent);
  color: #000;
  font-weight: 700;
  font-size: var(--text-sm);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: background var(--duration-base) var(--ease-out-expo);
  display: none;
}

.nav__cta:hover {
  background: var(--color-accent-dim);
}

@media (min-width: 1024px) {
  .nav__cta {
    display: inline-flex;
  }
}

/* Hamburger */
.nav__hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

@media (min-width: 1024px) {
  .nav__hamburger {
    display: none;
  }
}

.nav__hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text-primary);
  border-radius: 1px;
  transition: all var(--duration-base) var(--ease-out-expo);
  transform-origin: center;
}

/* Hamburger → X animation */
.nav__hamburger[aria-expanded="true"] .nav__hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__hamburger[aria-expanded="true"] .nav__hamburger-line:nth-child(2) {
  opacity: 0;
}
.nav__hamburger[aria-expanded="true"] .nav__hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile overlay */
.nav__overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 8, 8, 0.98);
  z-index: 49;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  transition: opacity var(--duration-slow) var(--ease-out-expo);
}

.nav__overlay-link {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--color-text-primary);
  transition: color var(--duration-fast) ease;
}

.nav__overlay-link:hover {
  color: var(--color-accent);
}


/* ==========================================================
   HERO
   ========================================================== */

.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  background: var(--gradient-hero);
  padding-top: 80px; /* clear fixed nav */
  overflow: hidden;
}

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

@media (min-width: 1024px) {
  .hero__content {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
  }
}

.hero__eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-6);
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-4xl);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--color-text-primary);
  margin-bottom: var(--space-6);
}

.hero__title .accent {
  color: var(--color-accent);
}

@media (min-width: 1024px) {
  .hero__title {
    font-size: var(--text-5xl);
  }
}

.hero__subtitle {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: var(--leading-normal);
  max-width: 48ch;
  margin-bottom: var(--space-8);
}

@media (min-width: 1024px) {
  .hero__subtitle {
    font-size: var(--text-lg);
  }
}

.hero__ctas {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}

@media (min-width: 640px) {
  .hero__ctas {
    flex-direction: row;
    gap: var(--space-4);
  }
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.hero__trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.hero__trust-check {
  color: var(--color-accent);
  font-weight: 700;
}

/* Hero visual — CSS geometric fallback */
.hero__visual {
  position: relative;
  aspect-ratio: 1;
  max-height: 500px;
  background: var(--gradient-hero);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: none;
}

@media (min-width: 1024px) {
  .hero__visual {
    display: block;
  }
}

.hero__visual::before {
  content: '';
  position: absolute;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, var(--color-accent-glow) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  animation: pulse-glow 4s ease-in-out infinite;
}

.hero__visual::after {
  content: '';
  position: absolute;
  width: 160px;
  height: 200px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 60px var(--color-accent-glow);
}

/* Terminal nub */
.hero__visual-inner::before {
  content: '';
  position: absolute;
  width: 50px;
  height: 12px;
  background: var(--color-border);
  border-radius: 4px 4px 0 0;
  bottom: calc(100% + 23px);
  left: 50%;
  transform: translateX(-50%);
}

/* Segmented charge bars (full stack) */
.hero__visual-inner {
  position: absolute;
  width: 120px;
  height: 154px;
  background: repeating-linear-gradient(
    0deg,
    var(--color-accent) 0,
    var(--color-accent) 26px,
    transparent 26px,
    transparent 32px
  );
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 30px var(--color-accent-glow);
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.4; transform: translate(-50%, -50%) scale(1); }
  50%       { opacity: 0.7; transform: translate(-50%, -50%) scale(1.15); }
}


/* ==========================================================
   CARDS
   ========================================================== */

.card {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  position: relative;
  overflow: hidden;
  transition: border-color var(--duration-base) ease;
}

.card:hover {
  border-color: var(--color-accent);
}

/* Animated top accent line */
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-accent);
  transform: scaleX(0);
  transition: transform var(--duration-base) var(--ease-out-expo);
  transform-origin: left;
}

.card:hover::before {
  transform: scaleX(1);
}

.card__icon {
  width: 40px;
  height: 40px;
  margin-bottom: var(--space-4);
  color: var(--color-accent);
}

.card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}

.card__body {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--leading-normal);
  margin-bottom: var(--space-4);
}

.card__resolution {
  font-size: var(--text-xs);
  color: var(--color-accent);
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  font-style: italic;
}


/* ==========================================================
   BUNDLE CARDS (horizontal scroll on mobile)
   ========================================================== */

.bundles__scroll {
  display: flex;
  gap: var(--space-6);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: var(--space-4);
}

.bundles__scroll::-webkit-scrollbar {
  display: none;
}

@media (min-width: 1024px) {
  .bundles__scroll {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow-x: visible;
    scroll-snap-type: none;
    padding-bottom: 0;
  }
}

.bundle-card {
  flex: 0 0 85vw;
  scroll-snap-align: start;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color var(--duration-base) ease;
}

@media (min-width: 1024px) {
  .bundle-card {
    flex: 1;
  }
}

.bundle-card:hover {
  border-color: var(--color-accent);
}

.bundle-card__label {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  display: inline-block;
  margin-bottom: var(--space-4);
  align-self: flex-start;
}

.bundle-card__badge {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: #000;
  background: var(--color-accent);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
}

.bundle-card__headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
  line-height: var(--leading-snug);
}

.bundle-card__who {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-6);
  line-height: var(--leading-normal);
}

.bundle-card__includes {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-6);
  flex-grow: 1;
}

.bundle-card__includes li {
  padding-left: var(--space-5);
  position: relative;
  margin-bottom: var(--space-2);
}

.bundle-card__includes li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 700;
}

.bundle-card__price {
  font-family: var(--font-mono);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: var(--space-2);
}

.bundle-card__note {
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
  margin-bottom: var(--space-6);
}

/* Carousel dots */
.bundles__dots {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

@media (min-width: 1024px) {
  .bundles__dots {
    display: none;
  }
}

.bundles__dot {
  width: 48px;
  height: 48px;
  padding: 20px;
  background-clip: content-box;
  border-radius: 50%;
  background-color: var(--color-border);
  border: none;
  cursor: pointer;
  transition: background-color var(--duration-fast) ease;
}

.bundles__dot.is-active {
  background-color: var(--color-accent);
}


/* ==========================================================
   TCO RECEIPTS
   ========================================================== */

.tco-receipts {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}

@media (min-width: 768px) {
  .tco-receipts {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }
}

.tco-receipt {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-5);
  display: flex;
  flex-direction: column;
  min-width: 0;
  word-wrap: break-word;
}

.tco-receipt--danger {
  border-top: 4px solid var(--color-danger);
}

.tco-receipt--premium {
  background: var(--color-surface-2);
  border: 1px solid var(--color-accent);
  border-top: 4px solid var(--color-accent);
  box-shadow: 0 10px 40px var(--color-accent-glow);
}

.tco-receipt__header {
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-border);
}

.tco-receipt__header h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-1);
}

.tco-receipt__header p {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}

.tco-receipt__items {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
  flex-grow: 1;
}

.tco-receipt__item {
  display: flex;
  align-items: baseline;
  gap: var(--space-1);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.tco-receipt__item::after {
  content: "";
  flex: 1;
  border-bottom: 1px dotted var(--color-border);
  opacity: 0.2;
  margin-bottom: 4px; /* Align with text baseline */
}

.tco-receipt__item span:first-child {
  flex: 0 1 auto;
  order: 1;
}

.tco-receipt__item span:last-child {
  flex: 0 0 auto;
  order: 3;
  color: var(--color-text-primary);
  font-weight: 500;
  text-align: right;
}

.tco-receipt__item--bold {
  font-weight: 700;
  color: var(--color-text-primary);
}

.tco-receipt__item--bold span:last-child {
  font-weight: 700;
}

/* Highlighted lines (replacing inline styles) */
.tco-receipt__item--highlight {
  padding-bottom: var(--space-4);
  border-bottom: 1px dashed var(--color-border);
  margin-bottom: var(--space-2);
}

.tco-receipt--premium .tco-receipt__item--highlight {
  border-bottom-color: rgba(20, 184, 166, 0.3);
}

.tco-receipt__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: var(--space-5);
  border-top: 2px dashed var(--color-border);
  margin-top: auto;
}

.tco-receipt--premium .tco-receipt__total {
  border-top-color: rgba(20, 184, 166, 0.4);
}

.tco-receipt__total span {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-tertiary);
}

.tco-receipt__total strong {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--color-text-primary);
}

/* Savings callout */
.tco__savings {
  text-align: center;
  padding: var(--space-12) 0;
}

.tco__savings-amount {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-3xl);
}

.tco__savings-amount .amount {
  color: var(--color-accent);
}

.tco__savings-note {
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
  margin-top: var(--space-4);
  max-width: 48ch;
  margin-inline: auto;
}

/* Inline objection */
.tco__objection {
  border-left: 3px solid var(--color-accent);
  padding-left: var(--space-6);
  max-width: 56ch;
  margin: var(--space-8) 0;
}

.tco__objection-question {
  font-style: italic;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-3);
}

.tco__objection-answer {
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
}


/* ==========================================================
   SPEC LIST (Product section)
   ========================================================== */

.spec-list {
  display: grid;
  gap: 0;
}

.spec-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-border);
}

.spec-item__label {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.spec-item__value {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--color-text-primary);
  text-align: right;
}


/* ==========================================================
   FEATURE GRID (Product section — 6 items, 2 cols)
   ========================================================== */

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

.feature__accent {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-accent);
  margin-bottom: var(--space-3);
}

.feature__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-base);
  margin-bottom: var(--space-2);
}

.feature__body {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--leading-normal);
}


/* ==========================================================
   ACCORDION (FAQ)
   ========================================================== */

.accordion {
  border-bottom: 1px solid var(--color-border);
}

.accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) 0;
  text-align: left;
  color: var(--color-text-primary);
  min-height: 44px;
  cursor: pointer;
}

.accordion__question {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
}

@media (min-width: 1024px) {
  .accordion__question {
    font-size: var(--text-lg);
  }
}

.accordion__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--color-text-tertiary);
  transition: transform var(--duration-base) var(--ease-out-expo);
}

.accordion__icon.is-open {
  transform: rotate(180deg);
}

.accordion__body {
  overflow: hidden;
}

.accordion__answer {
  padding-bottom: var(--space-6);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--leading-normal);
  max-width: 64ch;
}


/* ==========================================================
   SOLAR STAT BLOCKS
   ========================================================== */

.stat-block {
  border-top: 3px solid var(--color-accent);
  padding-top: var(--space-6);
}

.stat-block__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  margin-bottom: var(--space-3);
}

.stat-block__body {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--leading-normal);
}


/* ==========================================================
   TRUST SECTION
   ========================================================== */

.trust-col__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}

.trust-col__subtitle {
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}

.trust-col__body {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--leading-normal);
}


/* ==========================================================
   CLOSING CTA
   ========================================================== */

.closing-cta {
  text-align: center;
  background:
    linear-gradient(180deg, rgba(245, 166, 35, 0.06) 0%, transparent 40%),
    var(--color-bg);
  padding-block: var(--space-24);
}

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

.closing-cta__body {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: var(--leading-normal);
  max-width: 50ch;
  margin-inline: auto;
  margin-bottom: var(--space-10);
}

.closing-cta__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  align-items: center;
  margin-bottom: var(--space-8);
}

@media (min-width: 640px) {
  .closing-cta__actions {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-4);
  }
}

.closing-cta__reassurance {
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
}


/* ==========================================================
   FOOTER
   ========================================================== */

.footer {
  background: #050505;
  padding-top: var(--space-16);
  padding-bottom: calc(var(--space-8) + 80px); /* Clear sticky mobile bar */
  border-top: 1px solid var(--color-border);
}

@media (min-width: 640px) {
  .footer {
    padding-bottom: var(--space-8);
  }
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}

@media (min-width: 768px) {
  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer__brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-xl);
  color: var(--color-text-primary);
  margin-bottom: var(--space-2);
}

.footer__brand-name span {
  color: var(--color-accent);
}

.footer__tagline {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-3);
  font-style: italic;
}

.footer__domain {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
}

.footer__heading {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-text-tertiary);
  margin-bottom: var(--space-4);
}

.footer__link {
  display: block;
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  padding: var(--space-1) 0;
  transition: color var(--duration-fast) ease;
}

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

.footer__bottom {
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
}

@media (min-width: 768px) {
  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}


/* ==========================================================
   MOBILE STICKY ACTION BAR -> Floating Pill
   ========================================================== */

.mobile-sticky-bar {
  position: fixed;
  bottom: var(--space-6);
  left: 50%;
  z-index: 45;
  background: rgba(12, 12, 12, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-pill);
  padding: var(--space-2) var(--space-2) var(--space-2) var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  box-shadow: 0 10px 40px rgba(0,0,0,0.6);
  transform: translateX(-50%) translateY(150%);
  transition: transform var(--duration-base) var(--ease-out-expo);
  width: max-content;
  max-width: 90vw;
}

.mobile-sticky-bar.is-visible {
  transform: translateX(-50%) translateY(0);
}

.mobile-sticky-bar__price {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.mobile-sticky-bar__price-label {
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
  font-weight: 500;
}

.mobile-sticky-bar__price-value {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text-primary);
}

.mobile-sticky-bar__btn {
  height: 38px;
  min-height: auto;
  padding: 0 var(--space-4);
  font-size: var(--text-xs);
  margin: 0;
}

@media (min-width: 640px) {
  .mobile-sticky-bar {
    display: none !important;
  }
}

/* ==========================================================
   BOTTOM SHEET (App-Like UI)
   ========================================================== */

.bottom-sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 60;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.bottom-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 61;
  background: var(--color-bg);
  border-radius: 20px 20px 0 0;
  max-height: 90dvh;
  overflow-y: auto;
  box-shadow: 0 -10px 40px rgba(0,0,0,0.5);
  padding: var(--space-6) var(--space-5) calc(var(--space-8) + env(safe-area-inset-bottom, 20px));
}

.bottom-sheet__drag-handle {
  width: 40px;
  height: 5px;
  background: var(--color-border);
  border-radius: var(--radius-pill);
  margin: 0 auto var(--space-4);
}

.bottom-sheet__close {
  position: absolute;
  top: var(--space-5);
  right: var(--space-5);
  z-index: 10;
  background: var(--color-surface-2);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-text-secondary);
}

@media (min-width: 768px) {
  .bottom-sheet {
    max-width: 600px;
    left: 50%;
    transform: translateX(-50%) !important;
    bottom: var(--space-10);
    border-radius: var(--radius-lg);
    max-height: 80vh;
  }
  .bottom-sheet__drag-handle {
    display: none;
  }
}



/* Calculator-specific styles */
    .calc-tabs {
      display: flex;
      gap: var(--space-1);
      margin-bottom: var(--space-8);
      border-bottom: 1px solid var(--color-border);
    }

    .calc-tab {
      padding: var(--space-3) var(--space-6);
      font-family: var(--font-body);
      font-size: var(--text-sm);
      font-weight: 600;
      letter-spacing: var(--tracking-wide);
      text-transform: uppercase;
      color: var(--color-text-tertiary);
      border: none;
      background: none;
      cursor: pointer;
      position: relative;
      transition: color var(--duration-base) ease;
      min-height: 44px;
    }

    .calc-tab:hover {
      color: var(--color-text-secondary);
    }

    .calc-tab.is-active {
      color: var(--color-accent);
    }

    .calc-tab.is-active::after {
      content: '';
      position: absolute;
      bottom: -1px;
      left: 0;
      right: 0;
      height: 2px;
      background: var(--color-accent);
    }

    /* Slider input group */
    .input-group {
      margin-bottom: var(--space-6);
    }

    .input-group__label {
      display: flex;
      justify-content: space-between;
      align-items: baseline;
      margin-bottom: var(--space-2);
    }

    .input-group__name {
      font-size: var(--text-sm);
      font-weight: 500;
      color: var(--color-text-secondary);
    }

    .input-group__value {
      font-family: var(--font-mono);
      font-size: var(--text-base);
      font-weight: 500;
      color: var(--color-accent);
    }

    .input-group__help {
      font-size: var(--text-xs);
      color: var(--color-text-tertiary);
      margin-top: var(--space-1);
    }

    /* Range slider styling */
    input[type="range"] {
      -webkit-appearance: none;
      appearance: none;
      width: 100%;
      height: 6px;
      background: var(--color-surface-2);
      border-radius: var(--radius-pill);
      outline: none;
      cursor: pointer;
    }

    input[type="range"]::-webkit-slider-thumb {
      -webkit-appearance: none;
      appearance: none;
      width: 22px;
      height: 22px;
      border-radius: 50%;
      background: var(--color-accent);
      border: 3px solid var(--color-bg);
      box-shadow: 0 0 10px var(--color-accent-glow);
      cursor: grab;
      transition: transform var(--duration-fast) ease;
    }

    input[type="range"]::-webkit-slider-thumb:active {
      cursor: grabbing;
      transform: scale(1.15);
    }

    input[type="range"]::-moz-range-thumb {
      width: 22px;
      height: 22px;
      border-radius: 50%;
      background: var(--color-accent);
      border: 3px solid var(--color-bg);
      box-shadow: 0 0 10px var(--color-accent-glow);
      cursor: grab;
    }

    /* Output section */
    .calc-output {
      background: var(--color-surface);
      border: 1px solid var(--color-border);
      border-radius: var(--radius-lg);
      padding: var(--space-8);
      margin-top: var(--space-8);
    }

    .calc-output__row {
      display: flex;
      justify-content: space-between;
      align-items: baseline;
      padding: var(--space-2) 0;
      border-bottom: 1px solid var(--color-border);
    }

    .calc-output__row:last-child {
      border-bottom: none;
    }

    .calc-output__label {
      font-size: var(--text-sm);
      color: var(--color-text-secondary);
    }

    .calc-output__value {
      font-family: var(--font-mono);
      font-size: var(--text-sm);
      color: var(--color-text-primary);
    }

    .calc-output__value--accent {
      color: var(--color-accent);
      font-weight: 500;
    }

    /* Savings hero */
    .calc-savings {
      text-align: center;
      padding: var(--space-8) var(--space-4);
      background: var(--color-surface-2);
      border: 1px solid var(--color-border);
      border-radius: var(--radius-lg);
      margin-top: var(--space-6);
    }

    .calc-savings__label {
      font-size: var(--text-xs);
      letter-spacing: var(--tracking-wider);
      text-transform: uppercase;
      color: var(--color-text-tertiary);
      margin-bottom: var(--space-2);
    }

    .calc-savings__amount {
      font-family: var(--font-display);
      font-weight: 800;
      font-size: var(--text-3xl);
      color: var(--color-accent);
    }

    .calc-savings__amount--negative {
      color: var(--color-danger);
    }

    .calc-savings__note {
      font-size: var(--text-xs);
      color: var(--color-text-tertiary);
      margin-top: var(--space-3);
      max-width: 40ch;
      margin-inline: auto;
    }

    /* Comparison columns */
    .calc-compare {
      display: grid;
      grid-template-columns: 1fr;
      gap: var(--space-4);
      margin-top: var(--space-6);
    }
    @media (min-width: 640px) {
      .calc-compare {
        grid-template-columns: 1fr 1fr;
      }
    }

    .calc-compare__col {
      padding: var(--space-6);
      border-radius: var(--radius-lg);
      border: 1px solid var(--color-border);
    }

    .calc-compare__col--lead {
      background: var(--color-surface);
    }

    .calc-compare__col--skymin {
      background: var(--color-surface-2);
      border-color: var(--color-accent);
    }

    .calc-compare__heading {
      font-size: var(--text-xs);
      font-weight: 600;
      letter-spacing: var(--tracking-wider);
      text-transform: uppercase;
      color: var(--color-text-tertiary);
      margin-bottom: var(--space-4);
    }

    .calc-compare__col--skymin .calc-compare__heading {
      color: var(--color-accent);
    }

    .calc-compare__total {
      font-family: var(--font-mono);
      font-size: var(--text-2xl);
      font-weight: 700;
      margin-top: var(--space-4);
      padding-top: var(--space-4);
      border-top: 1px solid var(--color-border);
    }

    /* Slab guide */
    .slab-guide {
      margin-top: var(--space-8);
    }

    .slab-table {
      width: 100%;
      margin-top: var(--space-4);
    }

    .slab-table th,
    .slab-table td {
      text-align: left;
      padding: var(--space-2) var(--space-3);
      border-bottom: 1px solid var(--color-border);
      font-size: var(--text-sm);
    }

    .slab-table th {
      font-weight: 500;
      color: var(--color-text-tertiary);
      font-size: var(--text-xs);
      letter-spacing: var(--tracking-wide);
      text-transform: uppercase;
    }

    .slab-table td {
      font-family: var(--font-mono);
      color: var(--color-text-secondary);
    }

    /* Bill offset output grid */
    .offset-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: var(--space-4);
      margin-top: var(--space-6);
    }

    @media (min-width: 640px) {
      .offset-grid {
        grid-template-columns: repeat(3, 1fr);
      }
    }

    .offset-stat {
      background: var(--color-surface);
      border: 1px solid var(--color-border);
      border-radius: var(--radius-lg);
      padding: var(--space-5);
    }

    .offset-stat__label {
      font-size: var(--text-xs);
      color: var(--color-text-tertiary);
      letter-spacing: var(--tracking-wide);
      text-transform: uppercase;
      margin-bottom: var(--space-2);
    }

    .offset-stat__value {
      font-family: var(--font-mono);
      font-size: var(--text-xl);
      font-weight: 700;
      color: var(--color-text-primary);
    }

    .offset-stat__value--accent {
      color: var(--color-accent);
    }

    .offset-stat--wide {
      grid-column: 1 / -1;
    }
/* ============================================================
   ANIMATIONS.CSS — Scroll reveals, hero stagger, font loading
   Skymin Design System · skym.in
   ============================================================ */

/* --- Scroll Reveal Base ----------------------------------- */

.js-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity var(--duration-reveal) var(--ease-out-expo),
    transform var(--duration-reveal) var(--ease-out-expo);
}

.js-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for children */
.js-reveal-stagger > .js-reveal:nth-child(1) { transition-delay: 0ms; }
.js-reveal-stagger > .js-reveal:nth-child(2) { transition-delay: 80ms; }
.js-reveal-stagger > .js-reveal:nth-child(3) { transition-delay: 160ms; }
.js-reveal-stagger > .js-reveal:nth-child(4) { transition-delay: 240ms; }
.js-reveal-stagger > .js-reveal:nth-child(5) { transition-delay: 320ms; }
.js-reveal-stagger > .js-reveal:nth-child(6) { transition-delay: 400ms; }

/* --- Hero Entrance — Premium Apple-style stagger ---------- */
/* Each element fades up sequentially with increasing delays */

.hero__eyebrow {
  opacity: 0;
  transform: translateY(16px);
  animation: heroReveal 800ms var(--ease-out-expo) 200ms forwards;
}

.hero__title {
  opacity: 0;
  transform: translateY(20px);
}

/* Each line staggers via span wrappers on <br> separated lines */
.hero__title .line {
  display: block;
  opacity: 0;
  transform: translateY(18px);
  animation: heroReveal 800ms var(--ease-out-expo) forwards;
}

.hero__title .line:nth-child(1) { animation-delay: 350ms; }
.hero__title .line:nth-child(2) { animation-delay: 500ms; }
.hero__title .line:nth-child(3) { animation-delay: 650ms; }

/* Fallback for unwrapped hero title */
.hero__title:not(:has(.line)) {
  animation: heroReveal 800ms var(--ease-out-expo) 350ms forwards;
}

.hero__subtitle {
  opacity: 0;
  transform: translateY(16px);
  animation: heroReveal 900ms var(--ease-out-expo) 800ms forwards;
}

.hero__ctas {
  opacity: 0;
  transform: translateY(16px);
  animation: heroReveal 800ms var(--ease-out-expo) 1000ms forwards;
}

.hero__trust {
  opacity: 0;
  transform: translateY(12px);
  animation: heroReveal 700ms var(--ease-out-expo) 1200ms forwards;
}

.hero__visual {
  opacity: 0;
  transform: scale(0.96);
  animation: heroVisualReveal 1200ms var(--ease-out-expo) 500ms forwards;
}

@keyframes heroReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroVisualReveal {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* --- Section Headlines — Stagger on scroll reveal --------- */
.section__header .section__number {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 600ms var(--ease-out-expo), transform 600ms var(--ease-out-expo);
  transition-delay: 0ms;
}

.section__header .section__headline {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 700ms var(--ease-out-expo), transform 700ms var(--ease-out-expo);
  transition-delay: 120ms;
}

.section__header .section__subheadline {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 700ms var(--ease-out-expo), transform 700ms var(--ease-out-expo);
  transition-delay: 240ms;
}

/* When parent .js-reveal gets .is-visible, cascade the children */
.js-reveal.is-visible .section__number,
.js-reveal.is-visible .section__headline,
.js-reveal.is-visible .section__subheadline {
  opacity: 1;
  transform: translateY(0);
}



/* --- Reduced Motion -------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .js-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero__eyebrow,
  .hero__title,
  .hero__title .line,
  .hero__subtitle,
  .hero__ctas,
  .hero__trust,
  .hero__visual {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .section__header .section__number,
  .section__header .section__headline,
  .section__header .section__subheadline {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .fonts-loading h1,
  .fonts-loading h2,
  .fonts-loading h3 {
    filter: none;
    opacity: 1;
  }
}
