/* ─── CUSTOM FONTS ───────────────────────────────────────────────── */
@font-face {
  font-family: 'Recht';
  src: url('./assets/fonts/Fontspring-DEMO-recht-bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Recht';
  src: url('./assets/fonts/Fontspring-DEMO-recht-extrabold.otf') format('opentype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'GruntGrotesk';
  src: url('./assets/fonts/GruntGrotesk-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'GruntGrotesk';
  src: url('./assets/fonts/GruntGrotesk-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ─── TOKENS ─────────────────────────────────────────────────────── */
:root {
  --bg:            #1a1c23;
  --bg-deep:       #13141a;
  --card:          #252833;
  --card-soft:     rgba(37, 40, 51, 0.72);
  --accent:        #ff801f;
  --accent-soft:   rgba(255, 128, 31, 0.14);
  --accent-glow:   rgba(255, 128, 31, 0.22);
  --text:          #f0ece4;
  --text-soft:     rgba(240, 236, 228, 0.68);
  --muted:         #7a8494;
  --sand:          #dbd8d3;
  --stone:         #c0bbb7;
  --border:        rgba(255, 255, 255, 0.07);
  --border-accent: rgba(255, 128, 31, 0.28);
  --shadow-sm:     0 4px 24px rgba(0, 0, 0, 0.28);
  --shadow:        0 18px 80px rgba(0, 0, 0, 0.42);
  --radius-xl:     40px;
  --radius-lg:     32px;
  --radius-md:     24px;
  --radius-sm:     16px;
  --container:     1180px;
  --container-narrow: 820px;
  --t:             260ms ease;
  --t-spring:      700ms cubic-bezier(0.22, 1, 0.36, 1);
  --font:          'Space Grotesk', Inter, "SF Pro Display", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading:  "SF Pro Display", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-mono:     'Space Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* ─── RESET ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  background-color: var(--bg-deep);
  background-image:
    radial-gradient(ellipse 70% 50% at 80% 0%, rgba(255, 128, 31, 0.09) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 10% 20%, rgba(255, 255, 255, 0.03) 0%, transparent 50%),
    radial-gradient(ellipse 60% 60% at 50% 100%, rgba(26, 28, 35, 0.8) 0%, transparent 70%);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
p { margin: 0; }

/* ─── UTILITY ────────────────────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ─── SHELL + GRAIN ──────────────────────────────────────────────── */
.site-shell {
  position: relative;
  overflow: clip;
}

/* Ambient glow orbs */
.site-shell::before,
.site-shell::after {
  content: "";
  position: fixed;
  inset: auto;
  z-index: -1;
  width: 480px; height: 480px;
  border-radius: 50%;
  filter: blur(110px);
  pointer-events: none;
}

.site-shell::before {
  top: 8%; right: -14%;
  background: rgba(255, 128, 31, 0.14);
  animation: orbDrift 18s ease-in-out infinite;
}

.site-shell::after {
  bottom: 10%; left: -16%;
  background: rgba(255, 255, 255, 0.05);
  animation: orbDrift 22s ease-in-out infinite reverse;
}

/* ─── LAYOUT ─────────────────────────────────────────────────────── */
.container {
  width: min(calc(100% - 40px), var(--container));
  margin: 0 auto;
}

.narrow {
  width: min(calc(100% - 40px), var(--container-narrow));
}

.section {
  padding: 100px 0;
}

.section-tight {
  padding-top: 0;
}

.page-hero .section-heading {
  margin-bottom: 0;
}

.page-hero {
  padding-top: 72px;
  padding-bottom: 0;
}

.page-hero::after {
  content: none;
}

.page-hero-layout {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  max-width: none;
}

.page-hero-copy {
  flex: 1;
  max-width: 720px;
}

.page-hero-copy > p {
  margin: 14px 0 0;
}

.page-hero-mascot {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 300px;
  position: relative;
  isolation: isolate;
  overflow: visible;
}

.page-hero-mascot::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 50%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 128, 31, 0.34) 0%, rgba(255, 128, 31, 0.18) 40%, rgba(255, 128, 31, 0.08) 62%, transparent 78%);
  transform: translate(-50%, -50%);
  filter: blur(42px);
  pointer-events: none;
  animation: contentAuraPulse 3.8s ease-in-out infinite;
  will-change: transform, opacity, filter;
}

.page-hero-float {
  display: block;
  width: 300px;
  height: auto;
  position: relative;
  z-index: 1;
  animation: mascotFloat 5s ease-in-out infinite;
  will-change: transform;
}

.page-hero .section-heading h1 {
  white-space: nowrap;
  font-size: clamp(2.1rem, 4vw, 3rem);
}

@media (max-width: 640px) {
  .page-hero-layout {
    gap: 12px;
  }

  .page-hero-mascot {
    width: 160px;
  }

  .page-hero-mascot::before {
    width: 220px;
    height: 220px;
    filter: blur(32px);
  }

  .page-hero-float {
    width: 160px;
  }

  .page-hero .section-heading h1 {
    white-space: nowrap;
  }
}

/* ─── HEADER ─────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  padding-top: env(safe-area-inset-top, 0px);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  background: rgba(19, 20, 26, 0.68);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t), background var(--t);
}

.site-header.is-scrolled {
  border-bottom-color: var(--border);
  background: rgba(13, 14, 18, 0.88);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 96px;
  transition: min-height var(--t-spring);
}

.site-header.is-scrolled .header-inner {
  min-height: 76px;
}

/* ─── LOGO ───────────────────────────────────────────────────────── */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.03em;
  transition: font-size var(--t-spring), gap var(--t-spring);
}

.site-header.is-scrolled .logo {
  font-size: 1.05rem;
  gap: 12px;
}

.logo-mark {
  display: inline-block;
  width: 52px; height: 52px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  transition: width var(--t-spring), height var(--t-spring), border-radius var(--t-spring);
}

.site-header.is-scrolled .logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

/* ─── NAV ────────────────────────────────────────────────────────── */
.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 1.05rem;
  color: var(--text-soft);
}

.site-nav a {
  transition: color var(--t);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
}

/* Hamburger icon */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  border-radius: 999px;
  transition: transform var(--t), opacity var(--t);
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ─── BUTTONS ────────────────────────────────────────────────────── */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent) 0%, #ffa84d 100%);
  color: #14151b;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  box-shadow:
    0 8px 28px rgba(255, 128, 31, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition:
    transform var(--t),
    box-shadow var(--t),
    filter var(--t);
  white-space: nowrap;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  box-shadow:
    0 14px 40px rgba(255, 128, 31, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  filter: brightness(1.05);
}

.button:active {
  transform: translateY(0);
  filter: brightness(0.98);
}

.button-small {
  padding: 10px 18px;
  font-size: 1.05rem;
}

/* ─── EYEBROW ────────────────────────────────────────────────────── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 24px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 128, 31, 0.22);
  background: rgba(255, 128, 31, 0.07);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ─── SECTION LABEL ──────────────────────────────────────────────── */
.section-label {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 16px;
}

/* ─── HEADING FONT ───────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
}

/* ─── SECTION HEADING ────────────────────────────────────────────── */
.section-heading {
  max-width: 720px;
  margin-bottom: 48px;
}

.section-heading.compact {
  max-width: 580px;
}

.section-heading h1,
.section-heading h2,
.cta-panel h2 {
  margin: 0;
  letter-spacing: -0.04em;
  line-height: 0.97;
  font-weight: 700;
}

.section-heading h1,
.section-heading h2,
.cta-panel h2 {
  font-size: clamp(2.1rem, 4vw, 3.8rem);
}

.section-heading p {
  max-width: 560px;
  margin: 18px 0 0;
  font-size: 1.05rem;
  color: var(--text-soft);
  line-height: 1.6;
}

/* ─── TYPO SCALE FOR CORE SECTIONS ──────────────────────────────── */
:root {
  --core-section-title-size: clamp(1.3rem, 3.2vw, 3rem);
  --core-section-subtitle-size: 1.26rem;
  --core-section-body-size: 1.05rem;
}

#banks .section-heading h2,
#how-it-works .section-heading h2,
#scenarios .section-heading h2,
#features .section-heading h2,
#privacy .section-heading h2,
#faq .section-heading h2,
#academy-faq .section-heading h2 {
  font-size: var(--core-section-title-size);
  line-height: 1.02;
}

#banks .section-heading p,
#how-it-works .how-body h3,
#features .feature-slide h3,
#privacy .privacy-tile h3,
#faq .faq-item summary,
#academy-faq .faq-item summary {
  font-size: var(--core-section-subtitle-size);
}

#how-it-works .how-body p,
#scenarios .chat-bubble p,
#features .feature-slide p,
#privacy .privacy-tile p,
#faq .faq-item p {
  font-size: var(--core-section-body-size);
}

#scenarios .section-heading,
#features .section-heading {
  max-width: none;
}

#scenarios .section-heading h2,
#features .section-heading h2 {
  white-space: nowrap;
}

/* ─── HERO ───────────────────────────────────────────────────────── */
.hero-section {
  padding-top: 72px;
  padding-bottom: 122px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(280px, 0.72fr);
  gap: 52px;
  align-items: center;
}

.hero-copy {
  max-width: 760px;
}

.hero-copy h1 {
  margin: 0;
  display: grid;
  gap: 0.12em;
  max-width: none;
  font-size: clamp(2.1rem, 4.2vw, 3.95rem);
  letter-spacing: -0.05em;
  line-height: 0.92;
}

.hero-line {
  display: block;
  white-space: nowrap;
}

.hero-line-greeting {
  font-size: 0.72em;
}

.hero-line:first-child {
  margin-bottom: 0.16em;
}

.hero-wave {
  display: inline-block;
  transform-origin: 70% 80%;
  animation: heroWave 2.8s ease-in-out infinite;
}

.hero-rotator {
  display: inline-grid;
  min-width: 7.2ch;
  margin-left: 0.1em;
  vertical-align: baseline;
}

.hero-rotator-word {
  grid-area: 1 / 1;
  color: var(--hero-word-color, #ffb347);
  text-shadow: 0 0 26px var(--hero-word-glow, rgba(255, 179, 71, 0.18));
  transition:
    color 320ms ease,
    text-shadow 320ms ease,
    opacity 260ms ease,
    transform 260ms ease;
}

.hero-rotator-word.is-changing {
  opacity: 0;
  transform: translateY(0.18em) scale(0.94);
}

/* Staggered entrance */
.hero-copy h1,
.hero-copy .hero-text,
.hero-copy .hero-visual-mobile,
.hero-copy .waitlist-form,
.hero-copy .hero-points {
  opacity: 0;
  will-change: opacity, transform;
}

.hero-copy h1 {
  transition: opacity 600ms ease;
}

.hero-copy .hero-text,
.hero-copy .hero-visual-mobile,
.hero-copy .waitlist-form,
.hero-copy .hero-points {
  transform: translateY(22px);
  transition: opacity 700ms ease, transform var(--t-spring);
}

body.is-ready .hero-copy h1 {
  opacity: 1;
}

body.is-ready .hero-copy .hero-text {
  opacity: 1; transform: translateY(0);
  transition-delay: 80ms;
}

body.is-ready .hero-copy .hero-visual-mobile {
  opacity: 1; transform: translateY(0);
  transition-delay: 140ms;
}

body.is-ready .hero-copy .waitlist-form {
  opacity: 1; transform: translateY(0);
  transition-delay: 220ms;
}

body.is-ready .hero-copy .hero-points {
  opacity: 1; transform: translateY(0);
  transition-delay: 300ms;
}

.hero-text {
  max-width: none;
  width: max-content;
  margin: 42px 0 0;
  font-size: 1.05rem;
  color: var(--text-soft);
  line-height: 1.6;
  white-space: nowrap;
}

/* ─── FORM ───────────────────────────────────────────────────────── */
.waitlist-form {
  margin-top: 36px;
}

.waitlist-form-wide {
  width: 100%;
  max-width: 580px;
}

.waitlist-form {
  --waitlist-copy-size: 1.05rem;
}

.form-row {
  display: flex;
  gap: 10px;
  padding: 8px 8px 8px 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  transition: border-color var(--t), box-shadow var(--t);
}

.form-row:focus-within {
  border-color: rgba(255, 128, 31, 0.4);
  box-shadow: 0 0 0 3px rgba(255, 128, 31, 0.1);
}

.waitlist-form input {
  width: 100%;
  min-width: 0;
  padding: 6px 0;
  border: 0;
  background: transparent;
  color: var(--text);
  outline: none;
  font-size: var(--waitlist-copy-size);
}

.waitlist-form input::placeholder {
  color: var(--muted);
}

.form-note,
.form-feedback {
  margin: 14px 0 0;
  padding-left: 4px;
  font-family: var(--font-mono);
  font-size: var(--waitlist-copy-size);
  letter-spacing: 0.06em;
  color: var(--muted);
}

.form-note {
  white-space: nowrap;
  letter-spacing: 0.03em;
}

.legal-note {
  font-size: 0.84rem !important;
}

.waitlist-form[data-source="hero"] .legal-note,
.waitlist-form[data-source="footer-cta"] .legal-note {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  margin-top: 0;
  transition: opacity 260ms ease, max-height 300ms ease, margin-top 300ms ease;
}

/* Зміна з :focus-within на клас .has-content */
.waitlist-form[data-source="hero"].has-content .legal-note,
.waitlist-form[data-source="footer-cta"].has-content .legal-note {
  opacity: 0.7;
  max-height: 80px;
  margin-top: 8px;
}

.form-feedback.is-error  { color: #ffb089; }
.form-feedback.is-success { color: #88d9a8; }

/* ─── HERO TRUST BADGES ──────────────────────────────────────────── */
.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-points span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--font-mono);
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  color: var(--stone);
  transition: transform var(--t), border-color var(--t), background var(--t);
}

.hero-points span:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 128, 31, 0.28);
  background: rgba(255, 128, 31, 0.06);
}

/* ─── HERO VISUAL ────────────────────────────────────────────────── */
.hero-visual {
  position: relative;
  justify-self: end;
  transform: translateX(52px);
}

.hero-visual-mobile {
  display: none;
  width: min(100%, 360px);
  margin: 26px auto 18px;
  transform: none;
}

.hero-visual-desktop {
  display: block;
}

body:not(.is-ready) .hero-visual .device-hero {
  opacity: 0;
  transform: translateY(72px) scale(0.93);
  filter: blur(4px);
}

.hero-visual .device-hero {
  transition:
    opacity 1000ms ease,
    transform 1200ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 900ms ease;
  transition-delay: 300ms;
}

body.is-ready .hero-visual .device-hero {
  opacity: 1;
  transform: none;
  filter: none;
}

/* ─── FLOATING STAT CARDS ────────────────────────────────────────── */
.hero-float {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  background: rgba(30, 32, 42, 0.9);
  backdrop-filter: blur(24px);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255,255,255,0.06);
  animation: floatCard 5s ease-in-out infinite;
  pointer-events: none;
}

.hero-float-1 { top: 5%;   left: 2%;  animation-delay: 0s; }
.hero-float-2 { top: 50%;  right: -8%; animation-delay: -1.8s; }
.hero-float-3 { bottom: 20%; left: 0; animation-delay: -3.4s; }

.float-label {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.float-value {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.hero-float-2,
.hero-float-3 {
  max-width: 170px;
}

.hero-float-2 .float-value,
.hero-float-3 .float-value {
  font-size: 0.96rem;
  line-height: 1.3;
  letter-spacing: 0;
}

/* ─── DEVICE ─────────────────────────────────────────────────────── */
.device {
  position: relative;
  width: min(100%, 300px);
  margin: 0 auto;
  padding: 12px;
  border-radius: 44px;
  background: linear-gradient(175deg, rgba(255,255,255,0.09), rgba(0,0,0,0.3));
  box-shadow:
    var(--shadow),
    inset 0 1px 0 rgba(255,255,255,0.1),
    0 0 0 1px rgba(255,255,255,0.06);
}

.device::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 50%;
  width: 32%;
  height: 26px;
  transform: translateX(-50%);
  border-radius: 0 0 14px 14px;
  background: rgba(10, 11, 16, 0.96);
  z-index: 2;
}

.device-hero {
  width: min(100%, 330px);
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.device-hero::before {
  display: none;
}

.device-hero .device-frame {
  overflow: visible;
  border-radius: 0;
  background: transparent;
}

.device-frame {
  overflow: hidden;
  border-radius: 32px;
  background: #0d0e13;
}

.device-frame img {
  width: 100%;
  height: auto;
  display: block;
}

/* ─── SURFACE CARD ───────────────────────────────────────────────── */
.surface-card {
  position: relative;
  background:
    linear-gradient(175deg, rgba(255,255,255,0.035) 0%, rgba(255,255,255,0.01) 100%),
    var(--card-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(20px);
}

.surface-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid transparent;
  pointer-events: none;
  transition: border-color var(--t), box-shadow var(--t);
}

.surface-card:hover::after,
.surface-card:focus-within::after {
  border-color: var(--border-accent);
  box-shadow: inset 0 0 0 0 transparent, 0 0 40px rgba(255,128,31,0.06);
}

/* ─── BANKS ──────────────────────────────────────────────────────── */
.section-banks {
  padding: 72px 0;
}

.banks-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.9fr);
  gap: 48px;
  align-items: center;
}

.banks-copy {
  position: relative;
  z-index: 1;
}

.bank-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.bank-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--sand);
  cursor: default;
  transition:
    transform var(--t),
    border-color var(--t),
    background var(--t),
    box-shadow var(--t);
}

.bank-pill:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 128, 31, 0.3);
  background: rgba(255, 128, 31, 0.07);
  box-shadow: 0 0 24px rgba(255, 128, 31, 0.12);
}

.bank-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.7;
  flex-shrink: 0;
}

.bank-logo-cloud {
  position: relative;
  min-height: 320px;
}

.bank-logo-cloud::before {
  content: "";
  position: absolute;
  inset: 14% 20% 12% 10%;
  border-radius: 42px;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 128, 31, 0.34) 0%, rgba(255, 128, 31, 0.18) 34%, rgba(255, 128, 31, 0.04) 66%, transparent 82%);
  filter: blur(26px);
  opacity: 0.55;
  animation: bankCardGlowAura 3.6s ease-in-out infinite;
  z-index: 0;
  pointer-events: none;
  transform-origin: 100% 0;
  transform: rotate(-20deg);
}

.bank-card-backdrop {
  position: absolute;
  inset: 14% 20% 10% 8%;
  width: 66%;
  height: 74%;
  object-fit: cover;
  object-position: center;
  opacity: 1;
  box-shadow: none;
  filter: none;
  clip-path: inset(4% 3.2% 4.2% 3.2% round 30px);
  z-index: 1;
  transform-origin: 100% 0;
  transform: rotate(-20deg);
}

.bank-logo-card {
  --tilt: 0deg;
  --from-x: 0px;
  --float-delay: 0s;
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background:
    linear-gradient(175deg, rgba(255,255,255,0.055), rgba(255,255,255,0.015)),
    rgba(24, 27, 38, 0.88);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(24px);
  overflow: hidden;
  transform: translate3d(var(--from-x), 28px, 0) scale(0.9) rotate(var(--tilt));
  opacity: 0;
  transition:
    opacity 560ms ease,
    transform 780ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color var(--t),
    box-shadow var(--t);
  z-index: 2;
}

.bank-logo-cloud.is-visible .bank-logo-card {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1) rotate(var(--tilt));
  animation: bankLogoFloat 7.5s ease-in-out infinite;
  animation-delay: var(--float-delay);
}

.bank-logo-card:hover {
  border-color: rgba(255, 128, 31, 0.3);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34), 0 0 24px rgba(255, 128, 31, 0.08);
}

.bank-logo-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 16px;
}

.bank-logo-card:nth-of-type(1) { top: 6%;  right: 34%; --tilt: 7deg;  --from-x: 18px;  --float-delay: -0.4s; transition-delay: 40ms; }
.bank-logo-card:nth-of-type(2) { top: 18%; right: 8%;  --tilt: 6deg;  --from-x: 24px;  --float-delay: -2.1s; transition-delay: 110ms; }
.bank-logo-card:nth-of-type(3) { top: 38%; right: 27%; --tilt: 5deg;  --from-x: 18px;  --float-delay: -3.4s; transition-delay: 170ms; z-index: 3; }
.bank-logo-card:nth-of-type(4) { bottom: 10%; right: 7%;  --tilt: -6deg; --from-x: 20px;  --float-delay: -1.2s; transition-delay: 240ms; }
.bank-logo-card:nth-of-type(5) { bottom: -2%; right: 34%; --tilt: 7deg;  --from-x: 18px;  --float-delay: -4.2s; transition-delay: 300ms; }
.bank-logo-card:nth-of-type(6) { top: 0;   right: -1%; --tilt: -4deg; --from-x: 22px;  --float-delay: -2.8s; transition-delay: 360ms; }

.bank-logo-card-mono {
  width: 76px;
  height: 76px;
  border-radius: 20px;
}

.bank-logo-card-privat {
  width: 76px;
  height: 76px;
  border-radius: 20px;
}

.bank-logo-card-pumb {
  width: 76px;
  height: 76px;
  border-radius: 20px;
}

.bank-logo-card-raif {
  width: 76px;
  height: 76px;
  border-radius: 20px;
}

.bank-logo-card-oschad {
  width: 76px;
  height: 76px;
  border-radius: 20px;
}

.bank-logo-card-abank {
  width: 76px;
  height: 76px;
  border-radius: 20px;
}

/* ─── THOUGHT SCENE (SCENARIOS) ──────────────────────────────────── */
/* ─── CHAT SCENE (SCENARIOS) ─────────────────────────────────────── */
.chat-scene {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at top right, rgba(255, 128, 31, 0.1), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01)),
    rgba(30, 33, 44, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.chat-scene::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 50%;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 128, 31, 0.28) 0%, rgba(255, 128, 31, 0.10) 52%, transparent 76%);
  transform: translate(-50%, -50%);
  filter: blur(38px);
  pointer-events: none;
  animation: contentAuraPulse 3.8s ease-in-out infinite;
  will-change: transform, opacity, filter;
}

/* 3-column layout: col | figure | col */
.chat-three-col {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr clamp(200px, 26vw, 300px) 1fr;
  gap: 20px 20px;
  align-items: stretch;
}

.chat-col {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  gap: 12px;
}

/* Center figure — image drives height, column is wide enough to fill the tile */
.chat-center-figure {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

.chat-center-figure img {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
  user-select: none;
  /* remove white background: multiply makes white disappear on dark bg */
  mix-blend-mode: multiply;
}

.chat-bubble {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  width: min(100%, 420px);
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  background: rgba(16, 18, 26, 0.82);
  backdrop-filter: blur(20px);
  color: var(--text);
  /* animation added below via JS class / CSS class system */
}

.chat-bubble p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.48;
  letter-spacing: -0.02em;
}

.chat-bubble-left {
  /* left column — uses flex layout, no grid-column needed */
}

.chat-bubble-right {
  background: rgba(255, 128, 31, 0.13);
  border-color: rgba(255, 128, 31, 0.18);
}

/* ── JS-enhanced bubble animation ────────────────────────────────────
   JS adds .js-bubbles to .chat-scene immediately (hides bubbles),
   then adds .bubbles-ready when scene enters viewport (triggers entrance).
   Without JS the bubbles just float normally (no-script fallback below). */

/* No-JS / fallback: idle float */
.chat-bubble {
  animation: bubbleFloat 8s ease-in-out infinite;
}
.chat-bubble:nth-child(2) { animation-delay: -1.2s; }
.chat-bubble:nth-child(3) { animation-delay: -2.8s; }
.chat-bubble:nth-child(4) { animation-delay: -3.6s; }
.chat-bubble:nth-child(5) { animation-delay: -4.8s; }
.chat-bubble:nth-child(6) { animation-delay: -5.6s; }

/* JS active: hide bubbles until scene enters viewport */
.chat-scene.js-bubbles .chat-bubble {
  animation: none;
  opacity: 0;
}

/* JS active + scene visible: staggered entrance then float */
.chat-scene.js-bubbles.bubbles-ready .chat-bubble {
  animation:
    chatBubbleIn 900ms cubic-bezier(0.22, 1, 0.36, 1) var(--enter-delay, 0ms) both,
    bubbleFloat  8s   ease-in-out                      var(--float-delay, 1000ms) infinite;
}

.chat-emoji {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  font-size: 1.05rem;
  flex-shrink: 0;
}

/* ─── FEATURE CAROUSEL ───────────────────────────────────────────── */
.feature-carousel-block {
  display: block;
}

#features .section-heading {
  margin-bottom: 28px;
}

.feature-carousel-shell {
  --feature-gap: 18px;
  width: 100%;
  margin: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
}

.feature-carousel-viewport {
  min-width: 0;
  overflow: hidden;
}

.carousel-button {
  width: 46px; height: 46px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 1.05rem;
  transition: transform var(--t), border-color var(--t), background var(--t);
}

.carousel-button-side {
  align-self: center;
}

.carousel-button:hover,
.carousel-button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 128, 31, 0.3);
  background: rgba(255, 128, 31, 0.1);
}

.carousel-button:disabled {
  opacity: 0.38;
  cursor: default;
  pointer-events: none;
}

.feature-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 340px);
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 0;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.feature-carousel::-webkit-scrollbar { display: none; }

.feature-slide {
  position: relative;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  scroll-snap-align: start;
  padding: 24px;
  background:
    linear-gradient(175deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%),
    rgba(38, 41, 54, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 12px 50px rgba(0, 0, 0, 0.2);
  transition: transform var(--t), border-color var(--t);
}

.feature-slide:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 128, 31, 0.22);
}

/* Visual area at top of each feature card */
.feature-slide-visual {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin-bottom: 20px;
  padding: 0;
  background: none;
  border: none;
  overflow: visible;
}

.feature-slide-visual img {
  width: auto;
  max-width: 212px;
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.35));
}

.fv-glyph {
  font-family: var(--font-mono);
  font-size: 2.8rem;
  font-weight: 700;
  color: rgba(255, 128, 31, 0.6);
  line-height: 1;
  user-select: none;
}

.feature-slide-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: flex-start;
}

.feature-slide h3 {
  margin: 0;
  line-height: 1.3;
  letter-spacing: -0.025em;
  font-weight: 600;
  max-width: 14ch;
}

.feature-slide p {
  max-width: 26ch;
  margin: 10px 0 0;
  color: var(--text-soft);
  font-size: 1.05rem;
  line-height: 1.52;
}

.feature-line {
  width: 56px; height: 3px;
  margin-top: 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), rgba(255, 128, 31, 0.15));
}

/* ─── FEATURE STACK ─────────────────────────────────────────────── */
.feature-stack {
  position: relative;
  /* height = card height + stacking depth of 4 visible rear cards */
  height: calc(600px + 4 * 14px);
  width: min(100%, 400px);
  margin: 0 auto;
  cursor: default;
  user-select: none;
}

.feature-stack-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 600px;          /* portrait / phone aspect */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 36px 36px 36px;
  overflow: hidden;
  border-radius: 32px;
  transition:
    transform 520ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity   400ms ease,
    box-shadow 420ms ease;
  transform: translateY(calc(var(--i) * 14px)) scale(calc(1 - var(--i) * 0.028));
  z-index: calc(20 - var(--i));
  opacity: calc(1 - var(--i) * 0.16);
  will-change: transform, opacity;
  background:
    linear-gradient(160deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.01) 100%),
    rgba(30, 33, 44, 0.98);
  border: 1px solid rgba(255,255,255,0.08);
}

/* Cards deeper than 4 are invisible at rest */
.feature-stack-card:nth-child(n+5) {
  opacity: 0;
  pointer-events: none;
}

/* Active card */
.feature-stack-card.is-stack-active {
  transform: translateY(0) scale(1) !important;
  opacity: 1 !important;
  z-index: 30;
  border-color: rgba(255, 128, 31, 0.26);
  box-shadow:
    0 40px 90px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 128, 31, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  pointer-events: auto !important;
}

/* Past cards — fly off upward */
.feature-stack-card.is-stack-past {
  transform: translateY(-60px) scale(1.02) !important;
  opacity: 0 !important;
  z-index: 31;
  pointer-events: none;
}

/* Large bg glyph — top half of card */
.fsc-bg-glyph {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -68%);
  font-family: var(--font-mono);
  font-size: 9rem;
  line-height: 1;
  color: rgba(255, 128, 31, 0.1);
  pointer-events: none;
  user-select: none;
  transition: color 400ms ease, transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.feature-stack-card.is-stack-active .fsc-bg-glyph {
  color: rgba(255, 128, 31, 0.2);
  transform: translate(-50%, -72%);
}

/* Index tag */
.fsc-index {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.05rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 12px;
  text-transform: uppercase;
}

/* Bottom content area */
.fsc-body {
  position: relative;
  z-index: 1;
  margin-top: auto;
}

.fsc-body h3 {
  margin: 0;
  font-size: 2rem;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.fsc-body p {
  margin: 14px 0 0;
  color: var(--text-soft);
  font-size: 1.05rem;
  line-height: 1.58;
}

/* Hint below stack */
.fsc-hint {
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 1.05rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.45;
  pointer-events: none;
  transition: opacity var(--t);
}

.feature-stack:hover .fsc-hint {
  opacity: 0;
}

/* ─── HOW IT WORKS ───────────────────────────────────────────────── */
.how-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.how-card {
  min-width: 0;
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition:
    transform var(--t),
    opacity 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

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

[data-how-works].is-how-enhanced .how-card {
  opacity: 0;
  transform: translateY(26px) scale(0.96);
}

[data-how-works].is-how-enhanced .how-card.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.how-number {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(1.9rem, 2.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.06em;
  color: var(--accent);
  margin-bottom: 12px;
  opacity: 0.9;
}

[data-how-works].is-how-enhanced .how-number {
  transition:
    opacity 200ms ease,
    transform 280ms ease,
    filter 280ms ease;
}

[data-how-works].is-how-enhanced .how-number.is-counting {
  opacity: 0.62;
  transform: translateY(-2px);
  filter: blur(0.2px);
}

[data-how-works].is-how-enhanced .how-number.is-settled {
  opacity: 0.95;
  transform: translateY(0);
  filter: none;
}

.how-body h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  letter-spacing: -0.025em;
  line-height: 1.3;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.how-body p {
  color: var(--text-soft);
  font-size: 1.05rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

/* ─── PRIVACY ────────────────────────────────────────────────────── */
.privacy-panel {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 40px;
  border-color: rgba(255, 128, 31, 0.2);
  background:
    radial-gradient(ellipse at top right, rgba(255, 128, 31, 0.15), transparent 40%),
    linear-gradient(175deg, rgba(255, 128, 31, 0.04), rgba(255,255,255,0.01)),
    rgba(32, 35, 46, 0.96);
}

.privacy-row {
  display: grid;
  grid-template-columns: 1fr clamp(200px, 26vw, 300px);
  gap: 32px;
  align-items: center;
}

.privacy-heading h2 {
  white-space: nowrap;
  font-size: clamp(1.3rem, 3.2vw, 3rem);
}

.privacy-heading-mobile {
  display: none;
}

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

.privacy-mascot img {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
  user-select: none;
  animation: mascotFloat 5s ease-in-out infinite;
  will-change: transform;
}

.privacy-lock {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px; height: 120px;
  border-radius: 28px;
  background: radial-gradient(circle at top left, rgba(255,255,255,0.07), rgba(255,128,31,0.12));
  border: 1px solid rgba(255, 128, 31, 0.18);
  color: var(--accent);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.2);
  animation: privacyLockFloat 6.4s ease-in-out infinite;
  will-change: transform, box-shadow;
}

.privacy-lock::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 34px;
  background: radial-gradient(circle, rgba(255, 128, 31, 0.22) 0%, rgba(255, 128, 31, 0.08) 42%, transparent 74%);
  filter: blur(18px);
  opacity: 0.75;
  z-index: -1;
  animation: privacyLockAura 4.4s ease-in-out infinite;
}

.privacy-lock svg {
  width: 78px; height: 78px;
}

.privacy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.privacy-tile {
  min-height: 160px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 20px;
  background: rgba(14, 15, 20, 0.5);
  scroll-snap-align: start;
  transition: border-color var(--t);
}

.privacy-tile:hover {
  border-color: rgba(255, 128, 31, 0.2);
}

.privacy-tile h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  font-weight: 600;
}

.privacy-tile p {
  color: var(--text-soft);
  font-size: 1.05rem;
  line-height: 1.58;
}

/* ─── FAQ ────────────────────────────────────────────────────────── */
.faq-cta-layout {
  display: grid;
  gap: 48px;
}

.faq-column,
.cta-column {
  min-width: 0;
}

.faq-column .section-heading {
  margin-bottom: 48px;
}

.faq-body-group {
  display: grid;
  gap: 28px;
}

.faq-list {
  display: grid;
  gap: 10px;
  max-width: 760px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.025);
  overflow: hidden;
  transition: border-color var(--t);
}

.faq-item[open] {
  border-color: rgba(255, 128, 31, 0.22);
}

.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  cursor: pointer;
  user-select: none;
}

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

.faq-arrow {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--accent);
  line-height: 1;
  flex-shrink: 0;
  transition: transform var(--t);
}

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

.faq-item p {
  padding: 0 24px 22px;
  color: var(--text-soft);
  font-size: 1.05rem;
  line-height: 1.62;
}

.text-link {
  display: inline-flex;
  margin-top: 28px;
  font-size: 1.05rem;
  color: var(--muted);
  transition: color var(--t);
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--text);
}

/* ─── CTA PANEL ──────────────────────────────────────────────────── */
.cta-panel {
  display: flex;
  flex-direction: column;
  width: min(100%, 760px);
  gap: 24px;
  align-items: stretch;
  padding: 48px;
  border-color: rgba(255, 128, 31, 0.18);
  background:
    radial-gradient(ellipse at left top, rgba(255, 128, 31, 0.18), transparent 40%),
    radial-gradient(ellipse at right bottom, rgba(255, 128, 31, 0.08), transparent 40%),
    linear-gradient(175deg, rgba(255,255,255,0.035), rgba(255,255,255,0.01)),
    rgba(28, 31, 42, 0.97);
}

.cta-copy {
  display: flex;
  flex-direction: column;
}

.cta-panel h2 {
  max-width: 10ch;
  margin: 0;
  font-size: clamp(1.8rem, 2.6vw, 2.45rem);
  line-height: 1;
}

.cta-sub {
  font-family: var(--font-mono);
  width: 100%;
  margin: auto 0 0;
  font-size: 0.96rem;
  letter-spacing: 0.03em;
  color: var(--muted);
  text-align: center;
  white-space: nowrap;
}

.cta-panel .waitlist-form {
  --waitlist-copy-size: 0.96rem;
  margin-top: 0;
  width: 100%;
}

.cta-panel .waitlist-form-wide {
  max-width: none;
}

.cta-panel .form-row {
  flex-direction: column;
  gap: 12px;
  border-radius: 28px;
  padding: 12px;
}

.cta-panel .waitlist-form input {
  font-size: 0.96rem;
  padding: 8px 10px;
}

.cta-panel .button {
  width: 100%;
  min-height: 52px;
  font-size: 0.96rem;
}

.cta-panel .form-feedback,
.cta-panel .form-note {
  font-size: 0.96rem;
}

/* ─── FOOTER ─────────────────────────────────────────────────────── */
.site-footer {
  padding: 28px 0 32px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-areas:
    "logo  .      ."
    "brand links  contact";
  gap: 20px 48px;
  align-items: start;
}

.footer-brand {
  grid-area: brand;
  min-width: 0;
}

.footer-logo {
  grid-area: logo;
  display: inline-flex;
  margin-bottom: 0;
}

.footer-copy {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0;
}

.footer-links {
  grid-area: links;
  display: grid;
  gap: 12px;
  align-content: start;
  color: var(--muted);
  font-size: 1.05rem;
}

.footer-links a {
  width: fit-content;
  transition: color var(--t);
}

.footer-links a:hover {
  color: var(--text);
}

.footer-contact {
  grid-area: contact;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.footer-mail {
  font-size: 1.05rem;
  color: var(--stone);
  transition: color var(--t);
}

.footer-mail:hover {
  color: var(--accent);
}

.footer-legal {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  opacity: 0.5;
  margin: 0;
}

/* ─── ARTICLE CARDS (ACADEMY) ───────────────────────────────────── */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.article-card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  transition: transform var(--t), border-color var(--t);
}

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

.article-card .eyebrow {
  margin-bottom: 16px;
}

.article-card h2 {
  margin: 0;
  font-size: var(--core-section-subtitle-size);
  line-height: 1.35;
  letter-spacing: -0.025em;
  font-weight: 600;
}

.article-card p {
  margin: 14px 0 0;
  color: var(--text-soft);
  font-size: 1.05rem;
  line-height: 1.6;
  flex: 1;
}

.article-card .text-link {
  margin-top: 24px;
}

/* ─── LEGAL PAGES ────────────────────────────────────────────────── */
.legal-content {
  display: grid;
  gap: 18px;
}

.legal-section {
  padding: 28px 32px;
}

.legal-section h2 {
  margin: 0 0 14px;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.legal-section p,
.legal-section li {
  color: var(--text-soft);
  line-height: 1.7;
}

.legal-section p {
  margin-top: 12px;
}

.legal-section p:first-of-type {
  margin-top: 0;
}

.legal-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  gap: 8px;
}

.legal-list li {
  padding-left: 20px;
  position: relative;
  color: var(--text-soft);
  line-height: 1.65;
}

.legal-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.legal-list.legal-list-compact {
  gap: 6px;
}

.legal-sub-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 0 0;
  display: grid;
  gap: 6px;
}

.legal-sub-list li {
  padding-left: 20px;
  position: relative;
  color: var(--text-soft);
  font-size: 0.95em;
  line-height: 1.6;
}

.legal-sub-list li::before {
  content: "·";
  position: absolute;
  left: 6px;
  color: var(--text-muted, var(--text-soft));
  font-weight: 700;
}

.legal-sub-heading {
  color: var(--sand);
  font-weight: 600;
  font-size: 0.9rem;
  margin: 14px 0 6px;
  letter-spacing: 0.01em;
}

.legal-effective {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-muted, var(--text-soft));
}

/* ─── LANG TOGGLE ─────────────────────────────────────────────────── */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 32px;
}

.lang-btn {
  padding: 6px 18px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-soft);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease;
  line-height: 1;
}

.lang-btn.is-active {
  background: var(--accent);
  color: #13141a;
}

.lang-btn:not(.is-active):hover {
  color: var(--sand);
}

/* Lang visibility */
.lang-en { display: none; }
.lang-ua { display: block; }
body[data-lang="en"] .lang-ua { display: none; }
body[data-lang="en"] .lang-en { display: block; }

/* ─── SCROLL REVEAL ──────────────────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 700ms ease,
    transform 750ms cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* ─── ANIMATIONS ─────────────────────────────────────────────────── */
@keyframes bubbleFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-7px); }
}

@keyframes thoughtBubbleAppear {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes thoughtQuestionReveal {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes cloudDrift {
  0%, 100% { transform: translate3d(0, 0, 0); opacity: 0.3; }
  50%       { transform: translate3d(0, -10px, 0); opacity: 0.55; }
}

@keyframes orbDrift {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 1; }
  33%       { transform: translate(-4%, 3%) scale(1.06); opacity: 0.85; }
  66%       { transform: translate(3%, -4%) scale(0.96); opacity: 0.95; }
}

@keyframes chatGlowPulse {
  0%, 100% {
    opacity: 0.55;
    transform: translate(-50%, -50%) scale(0.96);
    filter: blur(34px);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.06);
    filter: blur(48px);
  }
}

@keyframes contentAuraPulse {
  0%, 100% {
    opacity: 0.34;
    transform: translate(-50%, -50%) scale(0.88);
    filter: blur(24px);
  }
  50% {
    opacity: 0.98;
    transform: translate(-50%, -50%) scale(1.12);
    filter: blur(54px);
  }
}

@keyframes chatBubbleIn {
  /* Only opacity + filter — transform is owned by bubbleFloat, no conflict */
  from { opacity: 0; filter: blur(6px); }
  to   { opacity: 1; filter: blur(0px); }
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

@keyframes heroWave {
  0%, 100% { transform: rotate(0deg); }
  10%      { transform: rotate(14deg); }
  20%      { transform: rotate(-8deg); }
  30%      { transform: rotate(14deg); }
  40%      { transform: rotate(-4deg); }
  50%      { transform: rotate(10deg); }
  60%      { transform: rotate(0deg); }
}

@keyframes bankLogoFloat {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(var(--tilt)); }
  50%      { transform: translate3d(0, -10px, 0) rotate(calc(var(--tilt) + 1.5deg)); }
}

@keyframes bankCardGlowAura {
  0%, 100% {
    opacity: 0.42;
    transform: scale(0.98);
    filter: blur(22px);
  }
  50% {
    opacity: 0.95;
    transform: scale(1.02);
    filter: blur(30px);
  }
}

@keyframes bankCardGlowAuraMobile {
  0%, 100% {
    opacity: 0.55;
    transform: translate(-50%, -50%) rotate(-14deg) scale(0.98);
    filter: blur(26px);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(-14deg) scale(1.03);
    filter: blur(34px);
  }
}

@keyframes bankMobileCardGlow {
  0%, 100% {
    box-shadow:
      0 0 44px rgba(255, 128, 31, 0.28),
      0 0 88px rgba(255, 128, 31, 0.16);
  }
  50% {
    box-shadow:
      0 0 64px rgba(255, 128, 31, 0.42),
      0 0 124px rgba(255, 128, 31, 0.24);
  }
}

@keyframes privacyLockFloat {
  0%, 100% {
    transform: translate3d(0, 0, 0) rotate(-4deg);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.2);
  }
  50% {
    transform: translate3d(0, -10px, 0) rotate(3deg);
    box-shadow: 0 24px 44px rgba(0, 0, 0, 0.26);
  }
}

@keyframes mascotFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-14px); }
}

@keyframes privacyLockAura {
  0%, 100% {
    opacity: 0.5;
    transform: scale(0.96);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.04);
  }
}

/* ─── RESPONSIVE: 768px ──────────────────────────────────────────── */
@media (min-width: 768px) {
  .faq-cta-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "faq-head ."
      "faq-body cta"
      "faq-link .";
    align-items: start;
    gap: 36px;
  }

  .faq-column {
    display: contents;
  }

  .faq-section-heading {
    grid-area: faq-head;
  }

  .faq-body-group {
    display: contents;
  }

  .faq-list {
    grid-area: faq-body;
  }

  .faq-body-group .text-link {
    grid-area: faq-link;
    margin-top: 0;
  }

  .cta-column {
    grid-area: cta;
    display: flex;
    align-self: start;
  }

  .faq-list,
  .cta-panel {
    width: 100%;
    max-width: none;
  }

  .cta-panel {
    flex: 0 0 auto;
    height: auto;
    min-height: 330px;
    padding: 36px 34px;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-areas:
      "logo  .      ."
      "brand links  contact";
    gap: 20px 36px;
    align-items: start;
  }
}

/* ─── RESPONSIVE: ≤1020px ────────────────────────────────────────── */
@media (max-width: 1020px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .banks-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .bank-logo-cloud {
    min-height: 280px;
    max-width: 540px;
    width: 100%;
    margin: 0 auto;
  }

  .hero-copy {
    max-width: none;
  }

  .hero-copy h1 {
    max-width: 14ch;
    font-size: clamp(2.55rem, 7vw, 4rem);
  }

  .hero-line {
    white-space: normal;
  }

  .hero-text {
    width: auto;
    max-width: 560px;
    white-space: normal;
  }

  .hero-visual-desktop {
    display: none;
  }

  .hero-visual-mobile {
    display: block;
    width: min(100%, 332px);
    margin: 24px auto 18px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    grid-template-areas:
      "logo"
      "brand"
      "links"
      "contact";
    gap: 22px;
  }

  .footer-links {
    gap: 10px;
  }

  .footer-contact {
    align-items: flex-start;
    justify-self: start;
  }

  .footer-copy {
    white-space: normal;
  }

  .how-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }

  .how-card {
    padding: 16px 10px;
  }

  .how-number {
    font-size: clamp(1.7rem, 2.2vw, 2.2rem);
    margin-bottom: 10px;
  }

  .how-body h3 {
    font-size: 1.05rem;
  }

  .how-body p {
    font-size: 1.05rem;
    line-height: 1.42;
  }

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

  .chat-scene {
    padding: 28px;
  }

  .chat-three-col {
    grid-template-columns: 1fr clamp(110px, 15vw, 160px) 1fr;
    gap: 16px 16px;
  }

  .chat-bubble {
    width: 100%;
    padding: 14px 16px;
  }

  .feature-carousel {
    grid-auto-columns: calc((100% - var(--feature-gap)) / 2);
  }

  #scenarios .section-heading h2,
  #features .section-heading h2 {
    white-space: normal;
  }
}

@media (max-width: 700px) {
  .how-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

/* ─── RESPONSIVE: ≤760px ─────────────────────────────────────────── */
@media (max-width: 760px) {
  html {
    font-size: 14px;
  }

  .form-note,
  .cta-sub {
    white-space: normal;
    letter-spacing: 0.02em;
    overflow-wrap: anywhere;
  }

  .section {
    padding: 48px 0;
  }

  .page-hero {
    padding-top: 44px;
    padding-bottom: 8px;
  }

  .page-hero .section-heading {
    margin-bottom: 0;
  }

  .section-tight {
    padding-top: 20px;
  }

  .hero-section {
    padding-top: 64px;
    padding-bottom: 72px;
  }

  .hero-visual-mobile {
    width: min(100%, 193px);
    margin: 22px auto 16px;
  }

  .bank-logo-cloud {
    position: relative;
    min-height: 350px;
    max-width: 430px;
    width: 100%;
    margin: 0 auto;
    display: block;
    overflow: visible;
    isolation: isolate;
  }

  .bank-card-backdrop {
    inset: auto;
    left: 50%;
    top: 56%;
    width: 76%;
    height: auto;
    aspect-ratio: 600 / 393;
    clip-path: inset(4% 3.2% 4.2% 3.2% round 24px);
    transform-origin: center;
    transform: translate(-50%, -50%) rotate(-14deg);
    z-index: 2;
    box-shadow: none;
  }

  .bank-logo-cloud::before {
    inset: auto;
    left: 50%;
    top: 56%;
    width: 82%;
    height: 58%;
    border-radius: 34px;
    background:
      radial-gradient(circle at 50% 50%, rgba(255, 128, 31, 0.54) 0%, rgba(255, 128, 31, 0.24) 34%, rgba(255, 128, 31, 0.08) 68%, transparent 84%);
    filter: blur(30px);
    opacity: 0.82;
    transform-origin: center;
    transform: translate(-50%, -50%) rotate(-14deg);
    z-index: 1;
    animation: bankCardGlowAuraMobile 3.6s ease-in-out infinite;
  }

  .bank-logo-card {
    position: absolute;
    width: 62px;
    height: 62px;
    min-width: 62px;
    padding: 10px;
    justify-content: center;
    border-radius: 18px;
    box-shadow: none;
    backdrop-filter: none;
    transform: translate3d(var(--from-x), 22px, 0) scale(0.92) rotate(var(--tilt));
  }

  .bank-logo-image {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: contain;
  }

  .bank-logo-card:nth-of-type(1) { top: 7%; right: 31%; }
  .bank-logo-card:nth-of-type(2) { top: 17%; right: 6%; }
  .bank-logo-card:nth-of-type(3) { top: 35%; right: 28%; }
  .bank-logo-card:nth-of-type(4) { bottom: 18%; right: 6%; }
  .bank-logo-card:nth-of-type(5) { bottom: 8%; right: 31%; }
  .bank-logo-card:nth-of-type(6) { top: 4%; right: 0; }

  .hero-copy h1 {
    max-width: 13ch;
  }

  .hero-rotator {
    min-width: 6.5ch;
  }

  .site-shell {
    overflow: visible;
  }

  body {
    overflow-x: hidden;
  }

  .header-inner {
    min-height: 68px;
  }

  .site-header.is-scrolled .header-inner {
    min-height: 68px;
  }

  .site-header.is-scrolled .logo {
    font-size: 1.3rem;
    gap: 14px;
  }

  .site-header.is-scrolled .logo-mark {
    width: 52px;
    height: 52px;
    border-radius: 12px;
  }

  .site-header.is-scrolled .menu-toggle {
    width: 40px;
    height: 40px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 20px;
    left: auto;
    display: grid;
    justify-items: start;
    gap: 8px;
    width: min(236px, calc(100vw - 32px));
    min-width: 0;
    max-width: calc(100vw - 32px);
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: rgba(18, 19, 26, 0.98);
    backdrop-filter: blur(24px);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform-origin: top right;
    transform: translateY(-12px) scale(0.94);
    clip-path: inset(0 0 100% 0 round 24px);
    transition:
      opacity 260ms ease,
      transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
      clip-path 360ms cubic-bezier(0.22, 1, 0.36, 1),
      visibility 0s linear 360ms;
  }

  .site-nav a:not(.button) {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    font-size: 1.05rem;
    line-height: 1.2;
    opacity: 0;
    transform: translateY(-8px);
    transition:
      opacity 220ms ease,
      transform 280ms cubic-bezier(0.22, 1, 0.36, 1),
      border-color var(--t),
      background var(--t);
  }

  .site-nav a:not(.button) + a:not(.button) {
    margin-top: 0;
  }

  .site-nav a:not(.button):hover,
  .site-nav a:not(.button):focus-visible {
    border-color: rgba(255, 128, 31, 0.24);
    background: rgba(255, 128, 31, 0.08);
  }

  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
    clip-path: inset(0 0 0 0 round 24px);
    transition:
      opacity 260ms ease,
      transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
      clip-path 360ms cubic-bezier(0.22, 1, 0.36, 1),
      visibility 0s linear 0s;
  }

  .site-nav.is-open a:not(.button) {
    opacity: 1;
    transform: translateY(0);
  }

  .site-nav.is-open a:not(.button):nth-child(1) { transition-delay: 40ms; }
  .site-nav.is-open a:not(.button):nth-child(2) { transition-delay: 80ms; }
  .site-nav.is-open a:not(.button):nth-child(3) { transition-delay: 120ms; }
  .site-nav.is-open a:not(.button):nth-child(4) { transition-delay: 160ms; }
  .site-nav.is-open a:not(.button):nth-child(5) { transition-delay: 200ms; }
  .site-nav.is-open a:not(.button):nth-child(6) { transition-delay: 240ms; }

  .site-nav .button-small {
    display: none;
  }

  .form-row {
    flex-direction: column;
    border-radius: 28px;
    padding: 12px;
  }

  .form-row .button {
    width: 100%;
    min-height: 52px;
  }

  .waitlist-form input {
    padding: 6px 8px;
  }

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

  #features .section-heading {
    margin-bottom: 22px;
  }

  .feature-carousel-shell {
    --feature-gap: 14px;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .feature-carousel-viewport {
    order: 1;
  }

  .feature-carousel {
    grid-auto-columns: calc(100% - 44px);
    justify-content: start;
  }

  .carousel-button-side {
    position: absolute;
    top: 50%;
    z-index: 2;
    transform: translateY(-50%);
  }

  .carousel-button-side:hover,
  .carousel-button-side:focus-visible {
    transform: translateY(calc(-50% - 1px));
  }

  .feature-carousel-shell {
    position: relative;
    padding: 0 14px 0 22px;
  }

  .chat-scene {
    padding: 20px 18px;
  }

  .chat-scene::before {
    width: 260px;
    height: 260px;
    right: -14%;
  }

  .chat-three-col {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .chat-center-figure {
    padding: 0;
    max-height: 180px;
  }

  .chat-center-figure img {
    max-height: 180px;
    width: auto;
    margin: 0 auto;
  }

  .feature-carousel-shell .carousel-button-side:first-of-type {
    left: 0;
  }

  .feature-carousel-shell .carousel-button-side:last-of-type {
    right: 0;
  }

  .feature-slide {
    padding: 14px 14px 16px;
  }

  .feature-slide-visual {
    margin-bottom: 10px;
  }

  .feature-slide-visual img {
    max-height: 260px;
    width: auto;
    max-width: 100%;
    margin: 0 auto;
  }

  /* ── Form adaptive ── */
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 100%;
    width: 100%;
    min-width: 0;
  }

  .hero-copy .waitlist-form {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-copy .form-row {
    flex-wrap: wrap;
    border-radius: 20px;
    padding: 12px 14px;
    gap: 10px;
    box-sizing: border-box;
    width: 100%;
  }

  .hero-copy .form-row input {
    width: 100%;
    flex: 1 1 100%;
  }

  .hero-copy .form-row .button {
    width: 100%;
    justify-content: center;
  }

  /* ── Section headings 30% bigger ── */
  #banks .section-heading h2,
  #how-it-works .section-heading h2,
  #scenarios .section-heading h2,
  #features .section-heading h2,
  #privacy .privacy-heading h2,
  #faq .faq-section-heading h2 {
    font-size: 1.69rem;
  }

  /* ── Privacy: hide duplicate outer heading, show inner ── */
  .privacy-heading-mobile {
    display: none;
  }

  .privacy-panel > .privacy-heading {
    display: block;
  }

  .privacy-panel {
    flex-direction: column;
    padding: 14px;
    gap: 8px;
  }

  .privacy-panel .section-heading {
    margin-bottom: 0;
  }

  .privacy-row {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .privacy-mascot {
    display: flex;
    order: -1;
    max-height: 180px;
    max-width: none;
    margin: 0 auto;
  }

  .privacy-mascot img {
    max-height: 180px;
    width: auto;
    margin: 0 auto;
  }

  #privacy.section {
    padding: 24px 0;
  }

  .privacy-row {
    gap: 8px;
  }

  .privacy-grid {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .privacy-tile {
    min-height: 0;
    padding: 10px 14px;
    border-radius: 14px;
  }

  .privacy-tile h3 {
    margin-bottom: 4px;
    font-size: 1.05rem;
  }

  .privacy-tile p {
    font-size: 1.05rem;
    line-height: 1.5;
  }

  .cta-panel {
    padding: 32px 28px;
  }

  .faq-cta-layout {
    gap: 32px;
  }

  #faq .faq-section-heading {
    margin-bottom: 16px;
  }

  #faq .faq-body-group .text-link {
    margin-top: 2px;
  }

  .faq-item summary {
    padding: 18px 20px;
  }

  .faq-item p {
    padding: 0 20px 18px;
  }

  .footer-copy {
    display: none;
  }

  .hero-section {
    padding-bottom: 36px;
  }

  #banks.section {
    padding-top: 20px;
    padding-bottom: 20px;
  }

  #how-it-works.section {
    padding-top: 20px;
  }

  .site-footer {
    padding: 28px 0 32px;
  }

  .footer-inner {
    gap: 14px;
  }

  .footer-logo {
    margin-bottom: 0;
  }
}

/* ─── REDUCED MOTION ─────────────────────────────────────────────── */
@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;
    scroll-behavior: auto !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .hero-rotator-word.is-changing {
    transform: none;
  }

  .privacy-lock,
  .privacy-lock::before {
    animation: none !important;
  }
}

@media (max-width: 430px) {
  html {
    font-size: 13px;
  }

  .form-note,
  .cta-sub {
    font-size: 0.84rem;
    line-height: 1.4;
  }

  .privacy-heading-mobile {
    margin-bottom: 18px;
  }

  .privacy-panel {
    padding: 14px;
    gap: 8px;
  }

  .privacy-tile {
    padding: 16px 18px;
    border-radius: 16px;
  }

  .privacy-tile h3 {
    font-size: 1.05rem;
  }

  .privacy-tile p {
    font-size: 1.05rem;
    line-height: 1.46;
  }

  .bank-logo-cloud {
    min-height: 318px;
    max-width: 360px;
    overflow: visible;
    isolation: isolate;
  }

  .bank-card-backdrop {
    inset: auto;
    left: 50%;
    top: 56%;
    width: 76%;
    height: auto;
    aspect-ratio: 600 / 393;
    transform-origin: center;
    transform: translate(-50%, -50%) rotate(-14deg);
    z-index: 2;
    box-shadow: none;
  }

  .bank-logo-cloud::before {
    inset: auto;
    left: 50%;
    top: 56%;
    width: 82%;
    height: 56%;
    background:
      radial-gradient(circle at 50% 50%, rgba(255, 128, 31, 0.54) 0%, rgba(255, 128, 31, 0.24) 34%, rgba(255, 128, 31, 0.08) 68%, transparent 84%);
    filter: blur(28px);
    opacity: 0.82;
    transform-origin: center;
    transform: translate(-50%, -50%) rotate(-14deg);
    z-index: 1;
    animation: bankCardGlowAuraMobile 3.6s ease-in-out infinite;
  }

  .bank-logo-card {
    width: 56px;
    height: 56px;
    min-width: 56px;
    padding: 9px;
    border-radius: 16px;
    box-shadow: none;
    backdrop-filter: none;
  }

  .bank-logo-card:nth-of-type(1) { top: 8%; right: 33%; }
  .bank-logo-card:nth-of-type(2) { top: 18%; right: 7%; }
  .bank-logo-card:nth-of-type(3) { top: 36%; right: 29%; }
  .bank-logo-card:nth-of-type(4) { bottom: 18%; right: 7%; }
  .bank-logo-card:nth-of-type(5) { bottom: 8%; right: 33%; }
  .bank-logo-card:nth-of-type(6) { top: 4%; right: 1%; }
}

@media (min-width: 761px) {
  #features .section-heading {
    margin-bottom: 28px;
  }

  .feature-carousel-shell {
    --feature-gap: 18px;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    position: relative;
    padding: 0;
  }

  .feature-carousel-viewport {
    order: initial;
  }

  .feature-carousel {
    grid-auto-columns: calc((100% - 32px) / 3);
    justify-content: start;
    gap: 16px;
  }

  .carousel-button-side {
    position: absolute;
    top: 50%;
    z-index: 2;
    transform: translateY(-50%);
  }

  .carousel-button-side:hover,
  .carousel-button-side:focus-visible {
    transform: translateY(calc(-50% - 1px));
  }

  .feature-carousel-shell .carousel-button-side:first-of-type {
    left: -18px;
  }

  .feature-carousel-shell .carousel-button-side:last-of-type {
    right: -18px;
  }

  .feature-slide {
    padding: 24px;
  }

  .feature-slide-visual {
    margin-bottom: 20px;
  }

  .feature-slide-visual img {
    width: auto;
    max-width: 254px;
    margin: 0 auto;
  }

  .feature-slide h3 {
    margin: 0;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   ARTICLE PAGE STYLES  (used by article pages, e.g. mono-csv.html)
   ═══════════════════════════════════════════════════════════════════ */

/* ─── Breadcrumb nav ──────────────────────────────────────────────── */
.article-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 32px;
}
.article-breadcrumb a {
  color: var(--accent);
  transition: opacity var(--t);
}
.article-breadcrumb a:hover { opacity: 0.75; }
.article-breadcrumb span { opacity: 0.4; }

/* ─── Article hero ────────────────────────────────────────────────── */
.article-hero {
  padding-top: 60px;
  padding-bottom: 56px;
}
.article-hero .article-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 100px;
  border: 1px solid var(--border-accent);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.article-hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.15;
  letter-spacing: -0.035em;
  margin: 0 0 20px;
}
.article-hero .article-lead {
  font-size: 1.15rem;
  color: var(--text-soft);
  line-height: 1.65;
  max-width: 620px;
  margin: 0;
}

/* ─── Article body layout ─────────────────────────────────────────── */
.article-body {
  padding-top: 0;
  padding-bottom: 80px;
}
.article-content {
  max-width: 760px;
  margin: 0 auto;
}

/* ─── Intro tip (info box) ────────────────────────────────────────── */
.article-tip {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-accent);
  background: var(--accent-soft);
  margin-top: 20px;
  margin-bottom: 48px;
}
.article-tip-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  margin-top: 1px;
}
.article-tip p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-soft);
}
.article-tip strong {
  color: var(--text);
}

/* ─── Steps ───────────────────────────────────────────────────────── */
.article-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  counter-reset: step-counter;
  padding: 0;
  list-style: none;
}

.article-step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 0 24px;
  padding-bottom: 48px;
  position: relative;
}

/* Vertical connector line between steps */
.article-step:not(:last-child) .article-step-num::after {
  content: "";
  position: absolute;
  left: 17px;
  top: 48px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--border-accent) 0%, transparent 100%);
}

.article-step-num {
  position: relative;
  display: flex;
  align-items: flex-start;
  padding-top: 2px;
}

.article-step-num span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1.5px solid var(--border-accent);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
}

.article-step-body {
  padding-top: 4px;
}

.article-step-body h3 {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  line-height: 1.3;
}

.article-step-body p {
  margin: 0 0 8px;
  color: var(--text-soft);
  line-height: 1.65;
}

.article-step-body p:last-child {
  margin-bottom: 0;
}

/* Phone screenshot frame */
.article-step-screens {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.article-step-screen {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
  box-shadow: var(--shadow-sm), 0 0 0 1px rgba(0,0,0,0.6) inset;
  flex-shrink: 0;
  width: 180px;
}

.article-step-screen img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 28px;
}

/* Caption under screenshot */
.article-step-caption {
  display: block;
  margin-top: 8px;
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
}

/* Step note (dimmer sub-text) */
.article-step-note {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 10px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.03);
  border-left: 2px solid var(--border-accent);
}
.article-step-note li {
  list-style: none;
  font-size: 0.95rem;
  color: var(--text-soft);
  line-height: 1.5;
  padding-left: 12px;
  position: relative;
}
.article-step-note li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent);
  opacity: 0.5;
}

/* ─── Article FAQ (same <details> pattern as site FAQ) ────────────── */
.article-faq-section {
  margin-top: 56px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}
.article-faq-section h2 {
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
}
.article-faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Reuses global .faq-item / .faq-arrow styles — no duplication needed */

/* ─── Article footer nav ──────────────────────────────────────────── */
.article-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 48px;
  margin-top: 48px;
  border-top: 1px solid var(--border);
}
.article-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-soft);
  transition: color var(--t);
}
.article-nav a:hover { color: var(--accent); }

/* ─── Responsive article ─────────────────────────────────────────── */
@media (max-width: 760px) {
  .article-hero {
    padding-top: 20px;
    padding-bottom: 4px;
  }

  .article-body {
    padding-top: 8px;
  }
  .article-step {
    grid-template-columns: 36px 1fr;
    gap: 0 16px;
  }
  .article-step-screens {
    gap: 10px;
  }
  .article-step-screen {
    width: 140px;
    border-radius: 20px;
  }
  .article-step-screen img {
    border-radius: 20px;
  }
}

@media (max-width: 430px) {
  .article-step-screen {
    width: calc(50% - 5px);
  }
}

/* ─── ВИПРАВЛЕННЯ АВТОЗАПОВНЕННЯ (SAFARI/CHROME) ─── */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active {
  -webkit-text-fill-color: var(--text) !important;
  transition: background-color 5000s ease-in-out 0s;
}

/* ─── СТИЛІ ДЛЯ ТЕКСТУ ЗГОДИ (ДРІБНИЙ ШРИФТ) ─── */
.legal-note {
  white-space: normal;
  line-height: 1.4;
  margin-top: 12px;
  font-size: 0.82rem; /* Зменшуємо розмір шрифту */
  opacity: 0.7; /* Трохи приглушуємо яскравість тексту */
}

.legal-note a {
  color: var(--stone);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.2);
  text-underline-offset: 2px;
  transition: color var(--t), text-decoration-color var(--t);
}

.legal-note a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

.no-wrap {
  white-space: nowrap;
}

.legal-note .no-wrap {
  white-space: nowrap;
}

/* ─── СТИЛІ ДЛЯ TURNSTILE ─── */
.turnstile-container {
  display: flex;
  justify-content: center;
  height: 0;           /* Спочатку висота 0 */
  opacity: 0;          /* Невидима */
  overflow: hidden;    /* Ховаємо вміст */
  transition: height 0.4s ease, opacity 0.4s ease, margin-top 0.4s ease;
}

/* Клас, який ми будемо додавати через JS, коли треба показати капчу */
.turnstile-container.is-active {
  height: 65px;        /* Висота капчі */
  opacity: 1;
  margin-top: 16px;    /* Додаємо відступ зверху */
  overflow: visible;
}