/* ==========================================================================
   Koshtu Design System — Clean Borderless Layout + Colorful Feature Stages
   Built on landing-page-design (Part B) + Typewave Colorful Stage Reference
   ========================================================================== */

:root {
  /* 1. Brand Palette (Sky Blue Aesthetic) */
  --sky-ice: #E7FFFF;
  --sky-border: #CDD9D9;

  /* 2. Neutral Base */
  --text-dark: #111827;
  --text-secondary: #4B5563;
  --bg-primary: #FFFFFF;
  --bg-surface: #F3F4F6;

  /* 3. Colorful Feature Stage Backgrounds (from Koshtu App Color Picker & Cards) */
  --stage-mint: #A8F2D6;      /* "Продукти" card color */
  --stage-cyan: #B8F1FF;      /* "Хобі" card color */
  --stage-pink: #FFD1E3;      /* "Відпустка" card color */
  --stage-peach: #FFE0B5;     /* "Петро" debt card color */
  --stage-lime: #D4F78B;      /* "Міхал" debt card color */
  --stage-lavender: #E2D6FF;  /* App color picker lavender */

  /* Status & Functional Colors */
  --green-progress: #10B981;
  --error-text: #991B1B;
  --error-bg: #FEE2E2;
  --error-border: #FCA5A5;
  --success-text: #065F46;
  --success-bg: #D1FAE5;

  /* B1. Fonts — Manrope + Geist Mono for numeric UI */
  --font-sans: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, SFMono-Regular, monospace;

  /* B2. Strict Spacing Scale */
  --sp-0: 0px;
  --sp-25: 2px;
  --sp-50: 4px;
  --sp-75: 8px;
  --sp-100: 12px;
  --sp-200: 16px;
  --sp-300: 24px;
  --sp-400: 32px;
  --sp-500: 40px;
  --sp-600: 48px;
  --sp-700: 64px;
  --sp-800: 80px;
  --sp-900: 96px;

  /* B3. Corner Radius */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-2xl: 16px;
  --radius-3xl: 24px;
  --radius-full: 9999px;

  /* B7. Motion Base Curve */
  --ease-out-weighted: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-style: normal; /* B1: Never use italic fonts */
}

html {
  font-family: var(--font-sans);
  color: var(--text-dark);
  background-color: var(--bg-primary);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  background-color: var(--bg-primary);
  color: var(--text-dark);
  overflow-x: hidden;
}

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

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

button,
input,
select,
textarea {
  font-family: inherit;
  font-style: normal;
  color: inherit;
}

/* B1. Copy rules: No orphaned words */
h1, h2, h3, h4, h5, h6,
.heading-display, .heading-1, .heading-2, .heading-3, .heading-4, .heading-5, .heading-6,
.title-1, .title-2, .title-3 {
  text-wrap: balance;
}

p, li, dd, blockquote,
.body-1, .body-2, .body-3, .body-4, .body-5, .body-6,
.caption-1, .caption-2 {
  text-wrap: pretty;
}

.mono-num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

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

/* ==========================================================================
   B1. Named Text Styles (Tailwind scale steps, capped at Semibold 600)
   ========================================================================== */
.heading-display {
  font-size: 4.5rem;  /* 72px (text-7xl) */
  line-height: 1;     /* 72px */
  font-weight: 600;
  letter-spacing: -0.035em;
}

.heading-1 {
  font-size: 3.75rem; /* 60px (text-6xl) */
  line-height: 1;     /* 60px */
  font-weight: 600;
  letter-spacing: -0.03em;
}

.heading-2 {
  font-size: 3rem;    /* 48px (text-5xl) */
  line-height: 1;     /* 48px */
  font-weight: 600;
  letter-spacing: -0.025em;
}

.heading-3 {
  font-size: 2.25rem; /* 36px (text-4xl) */
  line-height: 2.5rem;/* 40px */
  font-weight: 600;
  letter-spacing: -0.02em;
}

.heading-4 {
  font-size: 1.875rem;/* 30px (text-3xl) */
  line-height: 2.25rem;/* 36px */
  font-weight: 600;
  letter-spacing: -0.015em;
}

.heading-5 {
  font-size: 1.5rem;  /* 24px (text-2xl) */
  line-height: 2rem;  /* 32px */
  font-weight: 600;
  letter-spacing: -0.01em;
}

.heading-6 {
  font-size: 1.25rem; /* 20px (text-xl) */
  line-height: 1.75rem;/* 28px */
  font-weight: 600;
}

.title-1 {
  font-size: 1.25rem; /* 20px */
  line-height: 1.75rem;/* 28px */
  font-weight: 500;
}

.title-2 {
  font-size: 1.125rem;/* 18px */
  line-height: 1.75rem;/* 28px */
  font-weight: 500;
}

.title-3 {
  font-size: 1rem;    /* 16px */
  line-height: 1.5rem;/* 24px */
  font-weight: 500;
}

.title-4 {
  font-size: 0.875rem;/* 14px */
  line-height: 1.25rem;/* 20px */
  font-weight: 500;
}

.title-5 {
  font-size: 0.75rem; /* 12px */
  line-height: 1rem;  /* 16px */
  font-weight: 500;
}

.body-1 {
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 600;
}

.body-2 {
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 500;
}

.body-3 {
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 400;
}

.body-4 {
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
}

.body-5 {
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
}

.body-6 {
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 400;
}

.button-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
  font-weight: 600;
}

.button-md {
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 600;
}

.button-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
}

.button-xsm {
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 600;
}

.caption-1 {
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
}

.caption-2 {
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 400;
}

.caption-3 {
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 600;
}

.caption-4 {
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 500;
}

.caption-5 {
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 400;
}

@media (max-width: 767px) {
  .heading-display,
  .heading-1 {
    font-size: 2.25rem; /* text-4xl: 36px */
    line-height: 2.5rem;/* 40px */
  }
  .heading-2 {
    font-size: 1.875rem;/* text-3xl: 30px */
    line-height: 2.25rem;/* 36px */
  }
  .heading-3 {
    font-size: 1.5rem;  /* text-2xl: 24px */
    line-height: 2rem;  /* 32px */
  }
  .heading-4 {
    font-size: 1.25rem; /* text-xl: 20px */
    line-height: 1.75rem;/* 28px */
  }
}

/* ==========================================================================
   Accessibility & Skip Link
   ========================================================================== */
.skip-link {
  position: fixed;
  top: var(--sp-100);
  left: var(--sp-200);
  z-index: 200;
  background-color: var(--text-dark);
  color: var(--bg-primary);
  padding: var(--sp-75) var(--sp-100);
  border-radius: var(--radius-lg);
  transform: translateY(-160%);
  transition: transform 300ms var(--ease-out-weighted);
}

.skip-link:focus {
  transform: translateY(0);
  outline: 2px solid var(--text-dark);
  outline-offset: 2px;
}

:focus-visible {
  outline: 2px solid var(--text-dark);
  outline-offset: 2px;
}

/* ==========================================================================
   Clean Borderless Layout Containers
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--sp-300);
  padding-right: var(--sp-300);
}

@media (max-width: 639px) {
  .container {
    padding-left: var(--sp-200);
    padding-right: var(--sp-200);
  }
}

.section-pad {
  padding-top: var(--sp-900);
  padding-bottom: var(--sp-900);
}

@media (max-width: 767px) {
  .section-pad {
    padding-top: var(--sp-700);
    padding-bottom: var(--sp-700);
  }
}

/* ==========================================================================
   B7. Floating Top Navigation Bar (with "Delete Account" button)
   ========================================================================== */
.nav-wrapper {
  position: fixed;
  top: var(--sp-200);
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding-left: var(--sp-200);
  padding-right: var(--sp-200);
  pointer-events: none;
}

.floating-nav {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: var(--sp-200);
  background-color: rgba(247, 254, 251, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid #0D4A35;
  border-radius: var(--radius-full);
  padding: 8px 12px 8px 16px;
  width: 100%;
  max-width: 1140px;
  box-shadow: 0 6px 24px rgba(13, 74, 53, 0.08);
  transform: translateY(0);
  transition: transform 350ms cubic-bezier(0.4, 0, 0.2, 1), background-color 300ms var(--ease-out-weighted), box-shadow 300ms var(--ease-out-weighted);
}

.nav-wrapper.is-hidden .floating-nav {
  transform: translateY(-150%);
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #0B3B2A;
  white-space: nowrap;
  flex-shrink: 0;
  margin-right: var(--sp-100);
}

.brand-link .title-3 {
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0B3B2A;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background-color: #D2F4FF;
  border: 1.5px solid #0D4A35;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
  box-shadow: 0 2px 0 rgba(13, 74, 53, 0.18);
  transform: perspective(360px) rotateX(var(--rot-x, 0deg)) rotateY(var(--rot-y, 0deg)) scale3d(var(--scale, 1), var(--scale, 1), 1);
  transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

.brand-mark::before {
  content: '';
  position: absolute;
  inset: -20%;
  z-index: 2;
  pointer-events: none;
  opacity: var(--glare-opacity, 0);
  background:
    radial-gradient(
      circle at var(--glare-x, 30%) var(--glare-y, 30%),
      rgba(255, 255, 255, 0.92) 0%,
      rgba(168, 242, 214, 0.55) 28%,
      rgba(184, 241, 255, 0.2) 55%,
      transparent 75%
    );
  mix-blend-mode: overlay;
  transition: opacity 250ms ease;
}

.brand-mark::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: 3;
  pointer-events: none;
  box-shadow: inset 0 1px 1.5px rgba(255, 255, 255, 0.85), inset 0 -1px 2px rgba(16, 185, 129, 0.25);
}

.brand-icon-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate3d(var(--img-x, 0px), var(--img-y, 0px), 0) scale(1.14);
  transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  flex-wrap: nowrap;
}

.nav-link {
  color: #165B43;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  transition: color 250ms var(--ease-out-weighted), background-color 250ms var(--ease-out-weighted);
}

.nav-link:hover {
  color: #0B3B2A;
  background-color: rgba(168, 242, 214, 0.5);
}

.nav-link[aria-current="page"] {
  color: #0B3B2A;
  background-color: var(--stage-mint);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  white-space: nowrap;
  margin-left: auto;
}

/* Circular Flag Language Toggle (Borderless, Shows Target Language Flag) */
.lang-circle-btn {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  border: none;
  background-color: transparent;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
  transition: transform 250ms var(--ease-out-weighted);
}

.lang-circle-btn:hover {
  transform: translateY(-1px) scale(1.07);
}

.lang-circle-btn:active {
  transform: translateY(0) scale(0.96);
}

.lang-circle-flag {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-full);
  overflow: hidden;
  display: none;
  border: none;
}

/* Show English flag when currently on Ukrainian, and Ukrainian flag when on English */
.lang-circle-btn[data-current-lang="uk"] .lang-circle-flag-en,
.lang-circle-btn[data-current-lang="en"] .lang-circle-flag-uk {
  display: block;
}

/* Illustrative Brand Mint CTA Pill Button */
.btn-nav-illustrative {
  background-color: #5CE6B5;
  color: #0B3B2A;
  border: 1.5px solid #0D4A35;
  border-radius: var(--radius-full);
  padding: 9px 22px;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
  transition: transform 250ms var(--ease-out-weighted), background-color 250ms var(--ease-out-weighted), box-shadow 250ms var(--ease-out-weighted);
}

.btn-nav-illustrative:hover {
  background-color: var(--stage-mint);
  transform: translateY(-1px);
  box-shadow: 0 3px 0 #0D4A35, inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.btn-nav-illustrative:active {
  transform: translateY(0);
  box-shadow: none;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  border: 1.5px solid #0D4A35;
  background-color: #FFFFFF;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
}

.menu-toggle-bar {
  position: absolute;
  width: 16px;
  height: 2px;
  background-color: #0B3B2A;
  border-radius: var(--radius-full);
  transition: transform 500ms var(--ease-out-weighted), opacity 300ms var(--ease-out-weighted);
}

.menu-toggle-bar:nth-child(1) {
  transform: translateY(-4px);
}

.menu-toggle-bar:nth-child(2) {
  transform: translateY(4px);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(1) {
  transform: translateY(0) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(2) {
  transform: translateY(0) rotate(-45deg);
}

/* Full-height Mobile Menu Panel */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 95;
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: var(--sp-900) var(--sp-300) var(--sp-500);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-16px);
  transition: opacity 500ms var(--ease-out-weighted), transform 500ms var(--ease-out-weighted);
}

.mobile-menu.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mobile-menu-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--sp-300);
}

.mobile-menu-item {
  opacity: 0;
  transform: translateY(var(--sp-300));
  transition: opacity 500ms var(--ease-out-weighted), transform 500ms var(--ease-out-weighted);
}

.mobile-menu.is-open .mobile-menu-item {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu.is-open .mobile-menu-item:nth-child(1) { transition-delay: 60ms; }
.mobile-menu.is-open .mobile-menu-item:nth-child(2) { transition-delay: 120ms; }
.mobile-menu.is-open .mobile-menu-item:nth-child(3) { transition-delay: 180ms; }
.mobile-menu.is-open .mobile-menu-item:nth-child(4) { transition-delay: 240ms; }
.mobile-menu.is-open .mobile-menu-item:nth-child(5) { transition-delay: 300ms; }
.mobile-menu.is-open .mobile-menu-item:nth-child(6) { transition-delay: 360ms; }

@media (max-width: 980px) {
  .nav-links,
  .nav-cta-desktop {
    display: none;
  }
  .menu-toggle {
    display: inline-flex;
  }
}

/* ==========================================================================
   Buttons & Store Badges (B2: 8px vertical, 12px horizontal)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-75);
  padding: var(--sp-75) var(--sp-100);
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 300ms var(--ease-out-weighted),
              background-color 300ms var(--ease-out-weighted),
              border-color 300ms var(--ease-out-weighted),
              opacity 300ms var(--ease-out-weighted);
}

.btn-primary {
  background-color: var(--text-dark);
  color: var(--bg-primary);
  border-color: var(--text-dark);
}

.btn-primary:hover {
  background-color: #1F2937;
  transform: translateY(-2px);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-secondary {
  background-color: var(--bg-primary);
  color: var(--text-dark);
  border-color: var(--sky-border);
}

.btn-secondary:hover {
  background-color: var(--sky-ice);
  transform: translateY(-2px);
}

.btn-secondary:active {
  transform: scale(0.98);
}

.btn-ghost-danger {
  background-color: var(--bg-surface);
  color: var(--text-dark);
}

.btn-ghost-danger:hover {
  background-color: var(--error-bg);
  color: var(--error-text);
  transform: translateY(-2px);
}

.btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.store-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-100);
  align-items: center;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-100);
  padding: var(--sp-75) var(--sp-200);
  border-radius: var(--radius-xl);
  background-color: var(--text-dark);
  color: var(--bg-primary);
  transition: transform 300ms var(--ease-out-weighted), background-color 300ms var(--ease-out-weighted);
}

.store-badge:hover {
  transform: translateY(-2px);
  background-color: #1F2937;
}

.store-badge:active {
  transform: scale(0.98);
}

.store-badge-meta {
  display: flex;
  flex-direction: column;
  text-align: left;
}

/* ==========================================================================
   Hero Section — Smooth Sky Ice to White Gradient Canvas
   ========================================================================== */
.hero-section {
  background: linear-gradient(
    180deg,
    var(--sky-ice) 0%,
    var(--sky-ice) 58%,
    #F3FFFF 82%,
    var(--bg-primary) 100%
  );
  padding-top: var(--sp-900);
  padding-bottom: var(--sp-900);
}

.hero-inner {
  padding-top: var(--sp-500);
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: var(--sp-600);
  align-items: start;
}

.hero-copy-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 0;
}

.hero-heading {
  margin-top: -0.08em; /* Optical top-edge alignment with the rounded video stage */
}

@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: var(--sp-600);
    padding-top: var(--sp-400);
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-75);
  padding: var(--sp-50) var(--sp-100);
  background-color: var(--bg-primary);
  border-radius: var(--radius-full);
  margin-bottom: var(--sp-300);
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background-color: var(--text-dark);
}

/* Hero Heading (Compatible with Typewave .compose-word / .compose-char animation) */
.hero-heading {
  max-width: 680px;
  color: var(--text-dark);
  margin-bottom: var(--sp-300);
}

.compose-word {
  display: inline-block;
  white-space: nowrap;
}

.compose-char {
  display: inline-block;
  will-change: opacity;
}

[data-parallax] {
  will-change: transform;
}

.hero-subheading {
  max-width: 680px;
  color: var(--text-secondary);
  margin-bottom: var(--sp-400);
}

/* Waitlist Card */
.waitlist-card {
  background-color: var(--bg-primary);
  border-radius: var(--radius-3xl);
  padding: var(--sp-300);
  max-width: 560px;
  box-shadow: 0 20px 40px rgba(17, 24, 39, 0.06);
}

.platform-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-75);
  margin-bottom: var(--sp-200);
}

.platform-pill {
  flex: 1;
  min-width: 140px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-75);
  padding: var(--sp-75) var(--sp-100);
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  background-color: var(--bg-surface);
  cursor: pointer;
  transition: background-color 300ms var(--ease-out-weighted), border-color 300ms var(--ease-out-weighted);
}

.platform-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.platform-pill.is-selected {
  background-color: var(--sky-ice);
  border-color: var(--text-dark);
}

.waitlist-form-row {
  display: flex;
  gap: var(--sp-75);
}

@media (max-width: 520px) {
  .waitlist-form-row {
    flex-direction: column;
  }
}

.input-field {
  flex: 1;
  width: 100%;
  padding: var(--sp-75) var(--sp-100);
  border: 1px solid var(--sky-border);
  border-radius: var(--radius-lg);
  background-color: var(--bg-primary);
  color: var(--text-dark);
  transition: border-color 300ms var(--ease-out-weighted), background-color 300ms var(--ease-out-weighted);
}

.input-field::placeholder {
  color: var(--text-secondary);
}

.input-field:focus {
  border-color: var(--text-dark);
  outline: none;
}

.input-field.has-error {
  border-color: var(--error-text);
  background-color: var(--error-bg);
}

.form-feedback {
  margin-top: var(--sp-100);
  padding: var(--sp-75) var(--sp-100);
  border-radius: var(--radius-lg);
  display: none;
}

.form-feedback.is-error {
  display: block;
  background-color: var(--error-bg);
  color: var(--error-text);
}

.form-feedback.is-success {
  display: block;
  background-color: var(--success-bg);
  color: var(--success-text);
}

.skeleton-loader {
  display: none;
  margin-top: var(--sp-100);
  height: 40px;
  border-radius: var(--radius-lg);
  background-color: var(--bg-surface);
  position: relative;
  overflow: hidden;
}

.skeleton-loader.is-active {
  display: block;
}

.skeleton-bar {
  width: 100%;
  height: 100%;
  background-color: var(--sky-ice);
  opacity: 0.6;
  animation: skeletonPulse 1.2s var(--ease-out-weighted) infinite alternate;
}

@keyframes skeletonPulse {
  0% { opacity: 0.25; }
  100% { opacity: 0.75; }
}

.hero-proof-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-200);
  margin-top: var(--sp-200);
  padding-top: var(--sp-200);
}

.proof-item {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-50);
  color: var(--text-secondary);
}

/* Hero 3D Promo Video Stage */
.showcase-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.hero-video-stage {
  width: 100%;
  max-width: 520px;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-3xl);
  overflow: hidden;
  background-color: #F3EFEA;
  box-shadow: 0 32px 64px rgba(17, 24, 39, 0.14);
  position: relative;
}

.hero-promo-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   Typewave-Style Borderless Colorful Showcase Stages & Sticky Cards
   ========================================================================== */
.story-block {
  padding-top: var(--sp-800);
  padding-bottom: var(--sp-800);
  display: flex;
  flex-direction: column;
  gap: var(--sp-500);
}

@media (max-width: 767px) {
  .story-block {
    padding-top: var(--sp-600);
    padding-bottom: var(--sp-600);
    gap: var(--sp-300);
  }
}

/* Centered Section Intro (per user request: вирівнювання тексту по центру) */
.story-intro {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: var(--sp-200);
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  align-self: center;
  gap: var(--sp-75);
  padding: var(--sp-50) var(--sp-100);
  background-color: var(--bg-surface);
  border-radius: var(--radius-full);
}

/* Typewave Sticky Stacking Cards Container (.how-it-works__cards) */
#user-journey {
  position: relative;
  z-index: 1;
}

.sticky-cards-stack {
  display: flex;
  flex-direction: column;
  gap: var(--sp-800);
  position: relative;
}

@media (max-width: 1024px) {
  .sticky-cards-stack {
    gap: var(--sp-400);
  }
}

.sticky-stage-card {
  position: sticky;
  transform-origin: top center;
}

.sticky-stage-card:nth-child(1) {
  z-index: 1;
}

.sticky-stage-card:nth-child(2) {
  z-index: 2;
}

.sticky-stage-card:nth-child(3) {
  position: relative;
  z-index: 3;
}

@media (min-width: 1025px) {
  .sticky-stage-card {
    will-change: transform;
    padding: var(--sp-400) var(--sp-500);
    gap: var(--sp-200);
    justify-content: space-between;
  }

  .sticky-stage-card .stage-window {
    max-width: 780px;
  }

  .sticky-stage-card .stage-window img {
    max-height: 44vh;
    width: 100%;
    object-fit: contain;
    background-color: #F4F2EE;
  }
}

@media (max-width: 1024px) {
  .sticky-stage-card {
    position: static;
    transform: none !important;
  }
}

.sticky-card-header {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: var(--sp-100);
}

/* The vibrant flat colored rectangle stage (no borders!) */
.color-stage {
  width: 100%;
  border-radius: var(--radius-3xl); /* 24px */
  padding: var(--sp-600);           /* 48px stage padding */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-300);
  position: relative;
  transform-origin: center center;
}

[data-scale-stage],
[data-scale-card] {
  transform-origin: center center;
  will-change: transform;
}

@media (max-width: 767px) {
  .color-stage {
    padding: var(--sp-300);         /* 24px on mobile */
  }
}

.color-stage.stage-mint {
  background-color: var(--stage-mint);
}

.color-stage.stage-cyan {
  background-color: var(--stage-cyan);
}

.color-stage.stage-pink {
  background-color: var(--stage-pink);
}

.color-stage.stage-peach {
  background-color: var(--stage-peach);
}

.color-stage.stage-lime {
  background-color: var(--stage-lime);
}

.color-stage.stage-lavender {
  background-color: var(--stage-lavender);
}

/* Floating UI window / mockup inside the colored stage (soft shadow, no border) */
.stage-window {
  width: 100%;
  max-width: 920px;
  border-radius: var(--radius-2xl); /* 16px */
  overflow: hidden;
  background-color: var(--bg-primary);
  box-shadow: 0 28px 60px rgba(17, 24, 39, 0.16);
  transition: transform 500ms var(--ease-out-weighted);
}

.stage-window:hover {
  transform: translateY(-4px);
}

.stage-window img {
  width: 100%;
  height: auto;
  display: block;
}

/* Interactive Calculator Window inside the Mint Stage */
.calc-window {
  width: 100%;
  max-width: 920px;
  background-color: var(--text-dark);
  color: var(--bg-primary);
  border-radius: var(--radius-2xl);
  padding: var(--sp-500);
  box-shadow: 0 28px 60px rgba(17, 24, 39, 0.22);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-500);
  align-items: center;
}

@media (max-width: 860px) {
  .calc-window {
    grid-template-columns: 1fr;
    padding: var(--sp-300);
    gap: var(--sp-300);
  }
}

.slider-group {
  display: flex;
  flex-direction: column;
  gap: var(--sp-100);
}

.slider-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.range-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: var(--radius-full);
  background-color: #374151;
  outline: none;
  cursor: pointer;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  background-color: var(--stage-mint);
  cursor: pointer;
  transition: transform 300ms var(--ease-out-weighted);
}

.range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.12);
}

.calc-live-card {
  background-color: #1F2937;
  border-radius: var(--radius-xl);
  padding: var(--sp-300);
  display: flex;
  flex-direction: column;
  gap: var(--sp-300);
}

.calc-subgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-200);
}

@media (max-width: 480px) {
  .calc-subgrid {
    grid-template-columns: 1fr;
  }
}

.calc-stat-box {
  background-color: #111827;
  border-radius: var(--radius-lg);
  padding: var(--sp-200);
}

/* ==========================================================================
   Colorful Borderless Bento Cards
   ========================================================================== */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--sp-300);
}

.bento-card {
  grid-column: span 4;
  background-color: var(--bg-surface);
  border-radius: var(--radius-3xl);
  padding: var(--sp-400);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--sp-300);
  transition: transform 500ms var(--ease-out-weighted);
}

.bento-card:hover {
  transform: translateY(-4px);
}

.bento-card.span-6 {
  grid-column: span 6;
}

.bento-card.span-8 {
  grid-column: span 8;
}

.bento-card.bg-mint {
  background-color: var(--stage-mint);
}

.bento-card.bg-peach {
  background-color: var(--stage-peach);
}

.bento-card.bg-cyan {
  background-color: var(--stage-cyan);
}

.bento-card.bg-pink {
  background-color: var(--stage-pink);
}

.bento-card.bg-lime {
  background-color: var(--stage-lime);
}

.bento-card.bg-lavender {
  background-color: var(--stage-lavender);
}

@media (max-width: 960px) {
  .bento-card,
  .bento-card.span-6,
  .bento-card.span-8 {
    grid-column: span 12;
  }
}

.icon-box {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-lg);
  background-color: var(--bg-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  margin-bottom: var(--sp-200);
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.06);
}

.bento-preview {
  background-color: var(--bg-primary);
  border-radius: var(--radius-xl);
  padding: var(--sp-200);
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.08);
}

.progress-track {
  width: 100%;
  height: 8px;
  background-color: var(--bg-surface);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-top: var(--sp-100);
  margin-bottom: var(--sp-100);
}

.progress-fill-green {
  height: 100%;
  width: 94%;
  background-color: var(--green-progress);
  border-radius: var(--radius-full);
  transition: width 500ms var(--ease-out-weighted);
}

.progress-fill-limit {
  height: 100%;
  width: 34%;
  background-color: var(--stage-mint);
  border-radius: var(--radius-full);
  transition: width 500ms var(--ease-out-weighted);
}

.currency-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-75);
}

.currency-tag {
  padding: var(--sp-50) var(--sp-100);
  border-radius: var(--radius-md);
  background-color: var(--bg-primary);
  box-shadow: 0 4px 12px rgba(17, 24, 39, 0.05);
}

.currency-tag.is-active {
  background-color: var(--text-dark);
  color: var(--bg-primary);
}

/* ==========================================================================
   B11. Mandatory Tagline Reveal Section (Centered + Typewave Scroll Compose)
   ========================================================================== */
.tagline-section {
  position: relative;
  z-index: 2;
  background-color: var(--bg-primary);
  padding-top: var(--sp-900);
  padding-bottom: var(--sp-900);
}

.tagline-container {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.tagline-text {
  text-align: center;
  color: var(--text-dark);
  line-height: 1.25;
}

/* ==========================================================================
   Proof & Privacy Grid (Borderless Cards on Colored Surface)
   ========================================================================== */
.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-300);
  width: 100%;
}

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

.proof-card {
  background-color: var(--bg-primary);
  border-radius: var(--radius-2xl);
  padding: var(--sp-300);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--sp-200);
  box-shadow: 0 16px 36px rgba(17, 24, 39, 0.08);
}

/* ==========================================================================
   FAQ Accordion (Centered Section & Clean Soft Cards)
   ========================================================================== */
.faq-section-centered .story-intro {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  align-items: center;
}

.faq-section-centered .section-eyebrow {
  align-self: center;
}

.faq-list {
  width: 100%;
  max-width: 768px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  gap: var(--sp-100);
}

.faq-item {
  background-color: var(--bg-surface);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  transition: background-color 300ms var(--ease-out-weighted);
}

.faq-item[open] {
  background-color: var(--sky-ice);
}

.faq-summary {
  list-style: none;
  cursor: pointer;
  padding: var(--sp-200) var(--sp-300);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-200);
}

.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 500ms var(--ease-out-weighted);
}

.faq-item[open] .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 var(--sp-300) var(--sp-300);
  color: var(--text-secondary);
}

/* ==========================================================================
   Final CTA & Footer
   ========================================================================== */
.final-cta-box {
  background-color: var(--stage-mint);
  border-radius: var(--radius-3xl);
  padding: var(--sp-700) var(--sp-400);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--sp-300);
}

.cta-app-icon {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background-color: #D2F4FF;
  box-shadow:
    0 22px 44px rgba(17, 24, 39, 0.16),
    0 4px 12px rgba(16, 185, 129, 0.15);
  flex-shrink: 0;
  transform: perspective(520px) rotateX(var(--rot-x, 0deg)) rotateY(var(--rot-y, 0deg)) scale3d(var(--scale, 1), var(--scale, 1), 1);
  transition:
    transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 320ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.cta-app-icon.is-tilting,
.brand-mark.is-tilting,
.footer-app-icon.is-tilting {
  transition: box-shadow 200ms ease;
}

.cta-app-icon:hover {
  box-shadow:
    0 28px 56px rgba(17, 24, 39, 0.22),
    0 0 28px rgba(184, 241, 255, 0.85),
    0 0 16px rgba(16, 185, 129, 0.35);
}

/* Prismatic Glass Refraction Beam */
.cta-app-icon::before {
  content: '';
  position: absolute;
  inset: -35%;
  z-index: 2;
  pointer-events: none;
  opacity: var(--glare-opacity, 0);
  background:
    radial-gradient(
      circle at var(--glare-x, 50%) var(--glare-y, 50%),
      rgba(255, 255, 255, 0.95) 0%,
      rgba(184, 241, 255, 0.72) 22%,
      rgba(168, 242, 214, 0.48) 42%,
      rgba(255, 209, 227, 0.28) 60%,
      transparent 76%
    ),
    linear-gradient(
      var(--refract-angle, 125deg),
      transparent 20%,
      rgba(255, 255, 255, 0.65) 46%,
      rgba(168, 242, 214, 0.7) 50%,
      rgba(226, 214, 255, 0.55) 54%,
      transparent 78%
    );
  mix-blend-mode: soft-light;
  transition: opacity 260ms ease;
}

/* Crystal Lens Edge & Inner Rim Refraction */
.cta-app-icon::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: 3;
  pointer-events: none;
  box-shadow:
    inset 0 2px 3px rgba(255, 255, 255, 0.92),
    inset 0 -3px 8px rgba(16, 185, 129, 0.28),
    inset 2px 0 4px rgba(184, 241, 255, 0.65),
    inset -2px 0 4px rgba(226, 214, 255, 0.5);
}

.cta-app-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate3d(var(--img-x, 0px), var(--img-y, 0px), 0) scale(1.14);
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1), filter 320ms ease;
  display: block;
}

.cta-app-icon.is-tilting img,
.brand-mark.is-tilting .brand-icon-img,
.footer-app-icon.is-tilting img {
  transition: filter 200ms ease;
  filter: saturate(1.1) contrast(1.04) brightness(1.03);
}

.footer-brand-copy {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-100);
}

.footer-app-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  background-color: #D2F4FF;
  box-shadow: 0 3px 10px rgba(17, 24, 39, 0.1);
  flex-shrink: 0;
  transform: perspective(300px) rotateX(var(--rot-x, 0deg)) rotateY(var(--rot-y, 0deg)) scale3d(var(--scale, 1), var(--scale, 1), 1);
  transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

.footer-app-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate3d(var(--img-x, 0px), var(--img-y, 0px), 0) scale(1.14);
  transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
  display: block;
}

@media (max-width: 639px) {
  .final-cta-box {
    padding: var(--sp-500) var(--sp-200);
  }
}

.site-footer {
  background-color: var(--bg-primary);
  padding-top: var(--sp-600);
  padding-bottom: var(--sp-600);
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-400);
  padding-bottom: var(--sp-400);
  margin-bottom: var(--sp-300);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-300);
}

.footer-socials {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.social-circle-link {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  border: 1.5px solid #0D4A35;
  color: #0D4A35;
  background-color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 250ms var(--ease-out-weighted), background-color 250ms var(--ease-out-weighted), color 250ms var(--ease-out-weighted), box-shadow 250ms var(--ease-out-weighted);
}

.social-circle-link:hover {
  transform: translateY(-2px);
  background-color: var(--stage-mint);
  color: #0B3B2A;
  box-shadow: 0 3px 0 #0D4A35;
}

.social-circle-link:active {
  transform: translateY(0);
  box-shadow: none;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-300);
  list-style: none;
}

.footer-link {
  color: var(--text-secondary);
  transition: color 300ms var(--ease-out-weighted);
}

.footer-link:hover {
  color: var(--text-dark);
}

/* Legal Document Pages */
.legal-header {
  background: linear-gradient(
    180deg,
    var(--sky-ice) 0%,
    var(--sky-ice) 55%,
    #F3FFFF 82%,
    var(--bg-primary) 100%
  );
  padding-top: var(--sp-900);
  padding-bottom: var(--sp-600);
}

.legal-content {
  max-width: 768px;
  margin-left: auto;
  margin-right: auto;
  padding-top: var(--sp-700);
  padding-bottom: var(--sp-800);
  display: flex;
  flex-direction: column;
  gap: var(--sp-400);
}

.legal-card {
  background-color: var(--bg-surface);
  border-radius: var(--radius-2xl);
  padding: var(--sp-400);
  display: flex;
  flex-direction: column;
  gap: var(--sp-200);
}

@media (max-width: 639px) {
  .legal-card {
    padding: var(--sp-300);
  }
}

.legal-list {
  padding-left: var(--sp-300);
  display: flex;
  flex-direction: column;
  gap: var(--sp-100);
  color: var(--text-secondary);
}

/* ==========================================================================
   Typewave Scroll Reveal & Reduced Motion
   ========================================================================== */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 700ms ease, transform 700ms ease;
  transition-delay: var(--reveal-delay, 0ms);
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
  }
  .tagline-word {
    opacity: 1 !important;
  }
}
