/* ==========================================================================
   Billmints — main.css (Ultra-High-End Visual Refresh)
   Design system: tokens, base, layout, navigation, buttons, forms, footer
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Palette — deep obsidian fintech with luminous neon mint */
  --ink-900: #04150f;
  --ink-800: #062219;
  --ink-700: #0a3024;
  --ink-600: #0e3f2f;
  --ink-500: #14523e;
  --line-dark: rgba(255, 255, 255, 0.08);

  --paper: #ffffff;
  --paper-soft: #f4f7f6;
  --paper-tint: #eaf1ee;
  --line: #e0e8e5;

  --text-strong: #062a1e;
  --text: #20332b;
  --text-soft: #4a5f56;
  --text-invert: #ffffff;
  --text-invert-soft: rgba(240, 246, 244, 0.76);

  --mint-400: #42f5b4;
  --mint-500: #10e092;
  --mint-600: #0cb876;
  --mint-700: #078a57;
  --mint-soft: rgba(16, 224, 146, 0.12);

  --sky-500: #4d9cff;
  --amber-500: #ffb338;
  --rose-500: #f04e46;

  /* Premium Gradients & Glows */
  --grad-mint: linear-gradient(135deg, #58f0bb 0%, #10e092 50%, #078a57 100%);
  --grad-hero: radial-gradient(
      120% 90% at 50% -10%,
      rgba(16, 224, 146, 0.22),
      transparent 65%
    ),
    radial-gradient(90% 70% at 85% 15%, rgba(46, 214, 150, 0.16), transparent 70%),
    radial-gradient(60% 50% at 15% 50%, rgba(16, 224, 146, 0.08), transparent 60%),
    linear-gradient(180deg, var(--ink-900) 0%, var(--ink-800) 65%, var(--ink-700) 100%);
  --grad-band: linear-gradient(135deg, var(--ink-800) 0%, #08301f 50%, #0b4733 100%);

  /* High-Depth Shadows */
  --shadow-sm: 0 2px 4px rgba(3, 6, 13, 0.04), 0 4px 12px rgba(3, 6, 13, 0.03);
  --shadow-md: 0 12px 32px -10px rgba(3, 6, 13, 0.12);
  --shadow-lg: 0 32px 80px -20px rgba(3, 6, 13, 0.65);
  --shadow-glow: 0 0 0 1px rgba(16, 224, 146, 0.28), 0 24px 60px -15px rgba(16, 224, 146, 0.38);

  /* Type */
  --font-display: "Sora", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Space & Shape */
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --container: 1220px;
  --nav-h: 76px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   2. Base / reset
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--text-strong);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 0.6em;
  font-weight: 700;
}

h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.1rem);
  font-weight: 800;
}
h2 {
  font-size: clamp(1.85rem, 3.6vw, 2.75rem);
  font-weight: 800;
}
h3 {
  font-size: clamp(1.2rem, 1.9vw, 1.5rem);
}

p {
  margin: 0 0 1.1em;
}

a {
  color: var(--mint-600);
  text-decoration: none;
  transition: color 0.22s var(--ease);
}
a:hover {
  color: var(--mint-500);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  margin: 0 0 1.2em;
  padding-left: 1.15em;
}
li {
  margin-bottom: 0.4em;
}

:focus-visible {
  outline: 2.5px solid var(--mint-400);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink-900);
  color: var(--text-invert);
  padding: 12px 20px;
  border-radius: var(--radius-xs);
  z-index: 999;
  font-weight: 700;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
}

/* --------------------------------------------------------------------------
   3. Layout helpers
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container--narrow {
  max-width: 820px;
}

.section {
  padding: clamp(60px, 8.5vw, 116px) 0;
}
.section--tight {
  padding: clamp(42px, 5.5vw, 68px) 0;
}
.section--soft {
  background: var(--paper-soft);
}
.section--dark {
  background: var(--ink-800);
  color: var(--text-invert-soft);
}
.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--text-invert);
}

.section-head {
  max-width: 740px;
  margin-bottom: clamp(34px, 4.5vw, 60px);
}
.section-head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--mint-soft);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mint-700);
  margin-bottom: 16px;
}
.section--dark .eyebrow {
  background: rgba(16, 224, 146, 0.15);
  color: var(--mint-400);
  border: 1px solid rgba(16, 224, 146, 0.25);
}

.lead {
  font-size: 1.18rem;
  color: var(--text-soft);
  line-height: 1.6;
}
.section--dark .lead {
  color: var(--text-invert-soft);
}

.grid {
  display: grid;
  gap: 24px;
}
.grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* --------------------------------------------------------------------------
   4. Wordmark
   -------------------------------------------------------------------------- */
.wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.48rem;
  letter-spacing: -0.04em;
  color: var(--text-invert);
  display: inline-flex;
  align-items: center;
  line-height: 1;
}
.wordmark span {
  color: var(--mint-400);
}
.wordmark--dark {
  color: var(--text-strong);
}
.wordmark-icon {
  width: 2.1rem;
  height: 2.1rem;
  margin-right: 0.5rem;
  object-fit: contain;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--mint-500);
  --btn-fg: #063b2b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition:
    transform 0.28s var(--ease),
    box-shadow 0.28s var(--ease),
    background-color 0.28s var(--ease),
    color 0.28s var(--ease);
  will-change: transform;
  box-shadow: 0 4px 20px -2px rgba(16, 224, 146, 0.35);
}
.btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 36px -10px rgba(16, 224, 146, 0.65);
  background: var(--mint-400);
  color: #063b2b;
}
.btn:active {
  transform: translateY(-1px) scale(0.99);
}

.btn--ghost {
  background: transparent;
  color: var(--text-strong);
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.btn--ghost:hover {
  background: var(--paper-tint);
  color: var(--text-strong);
  box-shadow: inset 0 0 0 1.5px var(--mint-500);
}

.btn--ghost-invert {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-invert);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}
.btn--ghost-invert:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-invert);
  box-shadow: inset 0 0 0 1.5px var(--mint-400);
}

.btn--dark {
  background: var(--ink-800);
  color: var(--text-invert);
  box-shadow: 0 8px 24px -8px rgba(3, 6, 13, 0.5);
}
.btn--dark:hover {
  background: var(--ink-600);
  color: var(--text-invert);
  box-shadow: 0 18px 38px -12px rgba(3, 6, 13, 0.7);
}

.btn--block {
  width: 100%;
}
.btn--sm {
  padding: 10px 20px;
  font-size: 0.9rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.btn-row--center {
  justify-content: center;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--mint-600);
}
.link-arrow::after {
  content: "→";
  transition: transform 0.28s var(--ease);
}
.link-arrow:hover::after {
  transform: translateX(6px);
}
.section--dark .link-arrow {
  color: var(--mint-400);
}

/* --------------------------------------------------------------------------
   6. Header + mega menu
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  background: rgba(3, 6, 13, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition:
    background-color 0.35s var(--ease),
    border-color 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(3, 6, 13, 0.92);
  border-bottom-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 40px -20px rgba(0, 0, 0, 0.9);
}
.site-header.is-scrolled .nav-inner {
  height: 64px;
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: var(--nav-h);
  transition: height 0.35s var(--ease);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 auto 0 20px;
  padding: 0;
  list-style: none;
}
.nav-menu > li {
  margin: 0;
  position: relative;
}

.nav-link,
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border: 0;
  background: none;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-invert-soft);
  cursor: pointer;
  border-radius: var(--radius-xs);
  transition:
    color 0.22s var(--ease),
    background-color 0.22s var(--ease);
}
.nav-link:hover,
.nav-toggle:hover,
.nav-item.is-open .nav-toggle {
  color: var(--text-invert);
  background: rgba(255, 255, 255, 0.08);
}
.nav-link[aria-current="page"] {
  color: var(--mint-400);
}
.nav-toggle .caret {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.28s var(--ease);
}
.nav-item.is-open .nav-toggle .caret {
  transform: rotate(225deg) translateY(-2px);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-actions .nav-link {
  padding: 10px 12px;
}

/* Mega panel */
.mega {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  transform: translateY(12px) scale(0.98);
  width: min(880px, calc(100vw - 44px));
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(24px);
  color: var(--text);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0, 0, 0, 0.05);
  padding: 26px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.25s var(--ease),
    transform 0.3s var(--ease),
    visibility 0.25s;
}

.mega--lg {
  width: min(1040px, calc(100vw - 44px));
}

.mega--sm {
  width: min(560px, calc(100vw - 44px));
}

.mega--xs {
  width: min(310px, calc(100vw - 44px));
  left: 0;
  right: auto;
}

.nav-item.is-open .mega {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.mega-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(4, minmax(170px, 1fr));
}

.mega-grid--2 {
  grid-template-columns: repeat(2, minmax(200px, 1fr));
}

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

.mega-title {
  font-family: var(--font-display);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin: 0 0 14px;
  font-weight: 800;
}

.mega-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mega-list li {
  margin: 0 0 3px;
}

.mega-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  margin-left: -12px;
  border-radius: var(--radius-xs);
  color: var(--text-strong);
  font-weight: 600;
  font-size: 0.94rem;
  transition:
    background-color 0.22s var(--ease),
    transform 0.22s var(--ease);
}

.mega-list a:hover {
  background: var(--paper-tint);
  transform: translateX(4px);
  color: var(--mint-700);
}

.mega-list svg {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  color: var(--mint-600);
}

.mega-promo {
  background: var(--grad-band);
  border-radius: var(--radius-md);
  padding: 20px;
  color: var(--text-invert-soft);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.mega-promo h4 {
  color: var(--text-invert);
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.mega-promo p {
  font-size: 0.88rem;
  margin-bottom: 14px;
  line-height: 1.5;
}

.mega-promo img {
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  box-shadow: var(--shadow-md);
}

/* Mobile nav */
.nav-burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  position: relative;
}
.nav-burger span,
.nav-burger span::before,
.nav-burger span::after {
  position: absolute;
  left: 50%;
  width: 20px;
  height: 2px;
  background: var(--text-invert);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: transform 0.28s var(--ease);
}
.nav-burger span {
  top: 21px;
}
.nav-burger span::before,
.nav-burger span::after {
  content: "";
  left: 0;
  transform: none;
}
.nav-burger span::before {
  top: -7px;
}
.nav-burger span::after {
  top: 7px;
}
.nav-burger.is-active span {
  background: transparent;
}
.nav-burger.is-active span::before {
  transform: translateY(7px) rotate(45deg);
}
.nav-burger.is-active span::after {
  transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 1081px) {
  .site-nav {
    position: relative;
  }
  .nav-menu > .nav-item {
    position: relative;
  }
  .mega--xs {
    right: auto;
    left: 0;
  }
}

@media (max-width: 1080px) {
  .site-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--ink-900);
  }
  .nav-burger {
    display: block;
    margin-left: auto;
  }
  .nav-menu,
  .nav-actions {
    position: fixed;
    left: 0;
    right: 0;
    display: block;
  }
  .nav-menu {
    top: var(--nav-h);
    bottom: 0;
    margin: 0;
    padding: 18px 24px 140px;
    background: var(--ink-900);
    overflow-y: auto;
    transform: translateX(102%);
    transition: transform 0.35s var(--ease);
    visibility: hidden;
  }
  .nav-actions {
    bottom: 0;
    top: auto;
    padding: 18px 24px;
    background: var(--ink-900);
    border-top: 1px solid var(--line-dark);
    transform: translateX(102%);
    transition: transform 0.35s var(--ease);
    visibility: hidden;
    z-index: 1;
  }
  .site-nav.is-open .nav-menu,
  .site-nav.is-open .nav-actions {
    transform: translateX(0);
    visibility: visible;
  }
  .nav-link,
  .nav-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 16px 4px;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--line-dark);
    border-radius: 0;
  }
  .nav-actions .btn {
    width: 100%;
  }
  .nav-actions .nav-link {
    text-align: center;
    justify-content: center;
    border: 0;
    margin-bottom: 6px;
  }
  .mega {
    position: static;
    width: auto;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    box-shadow: none;
    background: transparent;
    border: 0;
    color: var(--text-invert-soft);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s var(--ease);
  }
  .nav-item.is-open .mega,
  .nav-item.is-open .mega--xs {
    transform: none;
    max-height: 1600px;
    padding: 12px 0 20px;
  }
  .mega-grid,
  .mega-grid--2 {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .mega-list a {
    color: var(--text-invert-soft);
    margin-left: 0;
    padding: 10px 8px;
  }
  .mega-list a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-invert);
  }
  .mega-title {
    color: var(--mint-400);
  }
  .mega-promo {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   7. Cards, badges, pills
   -------------------------------------------------------------------------- */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease);
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(16, 224, 146, 0.45);
}
.card h3 {
  margin-bottom: 10px;
}
.card p:last-child {
  margin-bottom: 0;
}
.card--dark {
  background: var(--ink-700);
  border-color: var(--line-dark);
  color: var(--text-invert-soft);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.4);
}
.card--dark:hover {
  border-color: rgba(16, 224, 146, 0.4);
}
.card--dark h3 {
  color: var(--text-invert);
}

.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 16px;
  background: var(--mint-soft);
  color: var(--mint-700);
  margin-bottom: 18px;
  box-shadow: inset 0 0 0 1px rgba(16, 224, 146, 0.2);
}
.icon-badge svg {
  width: 24px;
  height: 24px;
}
.card--dark .icon-badge {
  background: rgba(16, 224, 146, 0.15);
  color: var(--mint-400);
  box-shadow: inset 0 0 0 1px rgba(16, 224, 146, 0.3);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--mint-soft);
  color: var(--mint-700);
  font-size: 0.84rem;
  font-weight: 700;
}
.pill--invert {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-invert);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}
.badge-paid {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(16, 224, 146, 0.16);
  color: var(--mint-600);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* Checklists */
.check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.2em;
}
.check-list li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 12px;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.42em;
  width: 16px;
  height: 9px;
  border-left: 2.5px solid var(--mint-600);
  border-bottom: 2.5px solid var(--mint-600);
  transform: rotate(-45deg);
}

/* --------------------------------------------------------------------------
   8. Forms
   -------------------------------------------------------------------------- */
.form-grid {
  display: grid;
  gap: 20px;
}
.field {
  display: block;
}
.field > label,
.field-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-strong);
  margin-bottom: 8px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  font: inherit;
  font-size: 0.98rem;
  color: var(--text-strong);
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  transition:
    border-color 0.22s var(--ease),
    box-shadow 0.22s var(--ease);
}
.field textarea {
  min-height: 150px;
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--mint-500);
  box-shadow: 0 0 0 4px var(--mint-soft);
}
.field .hint {
  display: block;
  font-size: 0.83rem;
  color: var(--text-soft);
  margin-top: 6px;
}
.field .error-text {
  display: none;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--rose-500);
  margin-top: 6px;
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: var(--rose-500);
  box-shadow: 0 0 0 4px rgba(240, 78, 70, 0.15);
}
.field.has-error .error-text {
  display: block;
}

.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.94rem;
}
.checkbox-field input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--mint-600);
  flex: 0 0 auto;
}
.checkbox-field.has-error {
  color: var(--rose-500);
}

.form-note {
  font-size: 0.88rem;
  color: var(--text-soft);
}

.form-success {
  display: none;
  align-items: flex-start;
  gap: 12px;
  padding: 20px;
  border-radius: var(--radius-sm);
  background: var(--mint-soft);
  border: 1px solid rgba(16, 224, 146, 0.3);
  color: var(--mint-700);
  font-weight: 600;
  margin-bottom: 20px;
}
.form-success.is-visible {
  display: flex;
}

/* --------------------------------------------------------------------------
   9. Tip bubbles
   -------------------------------------------------------------------------- */
.tip-bubble {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  max-width: 440px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #e8faf3, #e5f1ff);
  border: 1px solid rgba(16, 224, 146, 0.3);
  box-shadow: var(--shadow-sm);
  color: var(--text-strong);
  font-size: 0.94rem;
  line-height: 1.48;
}
.topup-callout {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  padding: 18px 22px;
  border-radius: var(--radius-md);
  background: #fff;
  border: 1px solid var(--border, #d9e2ec);
  box-shadow: var(--shadow-sm);
  font-size: 0.92rem;
  line-height: 1.5;
}
.topup-callout__icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent-50, #e8faf3);
  color: var(--accent-600, #0e9f6e);
  display: flex;
  align-items: center;
  justify-content: center;
}
.topup-callout__icon svg { width: 18px; height: 18px; }
.tip-bubble.is-dismissed {
  display: none;
}
.tip-bubble__icon {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--paper);
  color: var(--amber-500);
  box-shadow: var(--shadow-sm);
}
.tip-bubble__icon svg {
  width: 18px;
  height: 18px;
}
.tip-bubble__close {
  flex: 0 0 auto;
  margin-left: auto;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  background: rgba(5, 10, 18, 0.06);
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.22s var(--ease);
}
.tip-bubble__close:hover {
  background: rgba(5, 10, 18, 0.14);
}
.tip-bubble--amber {
  background: linear-gradient(135deg, #fff5e4, #fdf0f0);
  border-color: rgba(255, 179, 56, 0.4);
}

/* --------------------------------------------------------------------------
   10. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--ink-900);
  color: var(--text-invert-soft);
  padding: clamp(52px, 8vw, 92px) 0 34px;
  border-top: 1px solid var(--line-dark);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr));
  gap: 36px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--line-dark);
}
.footer-brand p {
  font-size: 0.95rem;
  max-width: 320px;
  margin-top: 16px;
  line-height: 1.6;
}
.footer-col h3 {
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-invert);
  margin-bottom: 16px;
  font-weight: 800;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-col li {
  margin-bottom: 10px;
}
.footer-col a {
  color: var(--text-invert-soft);
  font-size: 0.94rem;
  transition: color 0.22s var(--ease);
}
.footer-col a:hover {
  color: var(--mint-400);
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  font-size: 0.88rem;
}
.footer-bottom p {
  margin: 0;
}

/* --------------------------------------------------------------------------
   11. Scroll-reveal
   -------------------------------------------------------------------------- */
.gsap-ready .reveal {
  opacity: 0;
  transform: translateY(26px);
}
@media (prefers-reduced-motion: reduce) {
  .gsap-ready .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
  html {
    scroll-behavior: auto;
  }
}

/* --------------------------------------------------------------------------
   12. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .footer-top {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  body {
    font-size: 16px;
  }
  .grid--3 {
    grid-template-columns: 1fr;
  }
  .grid--2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
  .grid--4 {
    grid-template-columns: 1fr;
  }
  .btn {
    width: 100%;
  }
  .btn-row .btn {
    width: 100%;
  }
}
/* Password show/hide toggle */
.pw-wrap { position: relative; }
.pw-wrap input[type="password"], .pw-wrap input[type="text"] { padding-right: 2.75rem; width: 100%; }
.pw-toggle { position: absolute; right: .75rem; top: 50%; transform: translateY(-50%); background: none; border: none; padding: 0; color: #829ab1; cursor: pointer; display: flex; align-items: center; }
.pw-toggle:hover { color: #334e68; }

/* Security section */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.feature-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.feature-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--mint-soft);
  color: var(--mint-700);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.feature-card__icon svg { width: 22px; height: 22px; }
.feature-card h3 { font-size: 1.05rem; margin-bottom: 8px; color: var(--text-strong); }
.feature-card p { color: var(--text-soft); font-size: 0.94rem; line-height: 1.55; margin: 0; }

/* Cookie / storage notice */
.cookie-banner {
  position: fixed; left: 50%; bottom: 18px; z-index: 900; width: min(760px, calc(100vw - 24px));
  transform: translate(-50%, 24px); opacity: 0; pointer-events: none;
  display: flex; align-items: center; gap: 18px; padding: 16px 20px;
  background: var(--ink-800); color: var(--text-invert-soft); border: 1px solid var(--line-dark);
  border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.cookie-banner.is-in { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.cookie-banner p { margin: 0; font-size: .88rem; line-height: 1.5; flex: 1; }
.cookie-banner a { color: var(--mint-400); text-decoration: underline; }
.cookie-banner .btn { flex: none; padding: 10px 24px; }
@media (max-width: 560px) {
  .cookie-banner { flex-direction: column; align-items: stretch; gap: 12px; bottom: 10px; }
  .cookie-banner .btn { width: 100%; }
}

/* Social icons: footer only (filled in by js/social.js, empty and hidden when nothing is switched on) */
.social-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.social-links[hidden] { display: none; }
.social-link {
  --b: #34e3a5;
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 10px;
  color: var(--text-invert-soft); border: 1px solid var(--line-dark); background: rgba(255,255,255,.04);
  transition: color .22s var(--ease), border-color .22s var(--ease), background .22s var(--ease), transform .22s var(--ease), box-shadow .22s var(--ease);
}
.social-link svg { width: 18px; height: 18px; }
.social-link[data-p="youtube"] { --b: #ff2a2a; }
.social-link[data-p="instagram"] { --b: #e4405f; }
.social-link[data-p="twitter"] { --b: #ffffff; }
.social-link[data-p="linkedin"] { --b: #3b9bf0; }
.social-link[data-p="reddit"] { --b: #ff5a1f; }
.social-link[data-p="tiktok"] { --b: #25f4ee; }
.social-link:hover, .social-link:focus-visible { color: var(--b); border-color: var(--b); background: rgba(255,255,255,.08); transform: translateY(-2px); box-shadow: 0 6px 16px -8px var(--b); }
@media (max-width: 560px) { .social-links { gap: 8px; } .social-link { width: 36px; height: 36px; } }
@media (prefers-reduced-motion: reduce) { .social-link { transition: none; } .social-link:hover { transform: none; } }

/* ===== Scroll-in and hover motion (js/fx.js) ===== */
.fx .fx-item { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.fx .fx-item.fx-in { opacity: 1; transform: none; }
.feature-card, .price-card, .plan-card, .guide-card, .post-card, .help-card { transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s, border-color .3s; }
.feature-card:hover, .guide-card:hover, .post-card:hover, .help-card:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(16,42,67,.12); }
.btn { transition: transform .2s, box-shadow .25s, background .2s, color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .fx .fx-item { opacity: 1; transform: none; transition: none; } }
