/* ============================================
   FOURYR — Global Stylesheet
   Design System: Blue · Black · White
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=DM+Sans:wght@300;400;500;600;700&display=swap');

/* ── Design Tokens ─────────────────────────── */
:root {
  /* Colors */
  --ink:         #0A0F1E;
  --ink-deep:    #070B16;
  --navy:        #0F1E3C;
  --blue-dim:    #1E3A5F;
  --blue:        #2563EB;
  --blue-mid:    #3B82F6;
  --blue-light:  #60A5FA;
  --blue-pale:   #DBEAFE;
  --blue-ghost:  #EFF6FF;
  --white:       #FFFFFF;
  --off-white:   #F8FAFC;
  --gray-50:     #F1F5F9;
  --gray-100:    #E2E8F0;
  --gray-200:    #CBD5E1;
  --gray-400:    #94A3B8;
  --gray-500:    #64748B;
  --gray-600:    #475569;
  --gray-700:    #334155;
  --gray-800:    #1E293B;
  --success:     #10B981;
  --error:       #EF4444;

  /* Typography */
  --font-primary:   'Inter', system-ui, -apple-system, sans-serif;
  --font-display:   'DM Sans', 'Inter', system-ui, sans-serif;

  /* Spacing scale */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-32: 128px;

  /* Radii */
  --r-sm:   4px;
  --r-md:   8px;
  --r-lg:   12px;
  --r-xl:   20px;
  --r-2xl:  32px;
  --r-full: 9999px;

  /* Shadows */
  --shadow-xs:  0 1px 2px rgba(0,0,0,0.06);
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md:  0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.05);
  --shadow-lg:  0 10px 25px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.04);
  --shadow-xl:  0 20px 48px rgba(0,0,0,0.14), 0 8px 16px rgba(0,0,0,0.06);
  --shadow-2xl: 0 32px 64px rgba(0,0,0,0.2);
  --shadow-blue: 0 8px 32px rgba(37,99,235,0.28);
  --shadow-blue-lg: 0 16px 48px rgba(37,99,235,0.35);

  /* Transitions */
  --ease:      cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:  cubic-bezier(0, 0, 0.2, 1);
  --ease-in:   cubic-bezier(0.4, 0, 1, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --t-fast:    0.15s;
  --t-base:    0.25s;
  --t-slow:    0.4s;

  /* Layout */
  --max-width: 1200px;
  --nav-height: 72px;
  --section-pad: 80px;
}

/* ── Reset & Base ───────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* ── Utilities ──────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

.text-gradient {
  background: linear-gradient(135deg, var(--blue-mid) 0%, var(--blue-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Buttons ────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 12px 28px;
  border-radius: var(--r-full);
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: var(--font-primary);
  letter-spacing: -0.01em;
  transition: all var(--t-base) var(--ease);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background var(--t-fast) var(--ease);
}

.btn:hover::after { background: rgba(255,255,255,0.08); }
.btn:active::after { background: rgba(0,0,0,0.06); }

.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: var(--shadow-blue);
}
.btn-primary:hover {
  background: var(--blue-mid);
  box-shadow: var(--shadow-blue-lg);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(8px);
}
.btn-secondary:hover {
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.08);
}

.btn-outline {
  background: transparent;
  color: var(--blue);
  border: 1.5px solid var(--blue);
}
.btn-outline:hover {
  background: var(--blue);
  color: var(--white);
  box-shadow: var(--shadow-blue);
}

.btn-dark {
  background: var(--ink);
  color: var(--white);
}
.btn-dark:hover {
  background: var(--navy);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.btn-lg {
  padding: 16px 40px;
  font-size: 1rem;
}

.btn-sm {
  padding: 8px 20px;
  font-size: 0.875rem;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform var(--t-base) var(--ease);
}
.btn:hover svg { transform: translateX(3px); }

/* ── Navigation ─────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: all var(--t-base) var(--ease);
}

.nav.nav--scrolled {
  background: rgba(10, 15, 30, 0.9);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 4px 24px rgba(0,0,0,0.25);
}

.nav.nav--light {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--gray-100);
}

.nav.nav--light.nav--scrolled {
  box-shadow: var(--shadow-md);
}

.nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
}

.nav__logo {
  display: flex;
  align-items: center;
  color: var(--off-white);
  gap: var(--space-2);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  transition: opacity var(--t-fast) var(--ease);
  flex-shrink: 0;
}
.nav__logo:hover { opacity: 0.85; }

.nav--light .nav__logo { color: var(--ink); }

.nav__logo-mark {
  width: 42px;
  height: 42px;
  padding: 8px;
  background: var(--off-white);
  border-radius: var(--r-full);
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav__logo-img {
  width: 32px;
  height: 32px;
  border-radius: var(--r-md);
  object-fit: contain;
  flex-shrink: 0;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.nav__link {
  padding: var(--space-2) var(--space-4);
  border-radius: var(--r-full);
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  transition: all var(--t-fast) var(--ease);
  position: relative;
}
.nav__link:hover {
  color: var(--white);
  background: rgba(255,255,255,0.08);
}
.nav__link.active {
  color: var(--white);
  background: rgba(255,255,255,0.1);
}
.nav--light .nav__link { color: var(--gray-600); }
.nav--light .nav__link:hover {
  color: var(--ink);
  background: var(--gray-50);
}
.nav--light .nav__link.active {
  color: var(--blue);
  background: var(--blue-ghost);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
}
.nav__hamburger span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--t-base) var(--ease);
}
.nav--light .nav__hamburger span { background: var(--ink); }
.nav__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0; right: 0;
  background: rgba(10,15,30,0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: var(--space-6);
  flex-direction: column;
  gap: var(--space-2);
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: all var(--t-base) var(--ease);
  z-index: 99;
}
.nav--light + .nav__mobile { background: var(--white); border-color: var(--gray-100); }
.nav__mobile.open {
  display: flex;
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

.nav__mobile-link {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--r-lg);
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  transition: all var(--t-fast) var(--ease);
}
.nav__mobile-link:hover { color: var(--white); background: rgba(255,255,255,0.08); }
.nav__mobile .btn { width: 100%; justify-content: center; margin-top: var(--space-3); }

/* ── Section Styles ─────────────────────────── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 14px;
  background: var(--blue-ghost);
  color: var(--blue);
  border: 1px solid var(--blue-pale);
  border-radius: var(--r-full);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: var(--space-5);
}

.section-label--dark {
  background: rgba(37,99,235,0.15);
  color: var(--blue-light);
  border-color: rgba(37,99,235,0.3);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ink);
}

.section-title--white { color: var(--white); }

.section-subtitle {
  font-size: 1.125rem;
  color: var(--gray-500);
  line-height: 1.7;
  max-width: 560px;
  margin-top: var(--space-4);
}

.section-subtitle--white {
  color: rgba(255,255,255,0.65);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-16);
}
.section-header .section-label { display: inline-flex; }
.section-header .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* ── Card Base ──────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--r-xl);
  padding: var(--space-8);
  transition: all var(--t-base) var(--ease);
}
.card:hover {
  border-color: var(--blue-pale);
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}

/* ── Reveal Animations ──────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity var(--t-slow) var(--ease-out),
              transform var(--t-slow) var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ── Page Hero (inner pages) ────────────────── */
.page-hero {
  background: linear-gradient(160deg, var(--ink-deep) 0%, var(--navy) 40%, var(--blue-dim) 100%);
  padding: calc(var(--nav-height) + var(--space-20)) 0 var(--space-20);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%232563EB' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-hero__title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.04em;
  position: relative;
}
.page-hero__subtitle {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.65);
  margin-top: var(--space-4);
  position: relative;
}

/* ── Footer ─────────────────────────────────── */
.footer {
  background: var(--ink-deep);
  color: rgba(255,255,255,0.5);
  padding: var(--space-20) 0 var(--space-10);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-16);
}

.footer__brand .nav__logo {
  padding: 8px;
  width: 64px;
  height: 64px;
  background: var(--off-white);
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer__brand p {
  font-size: 0.9375rem;
  line-height: 1.7;
  max-width: 280px;
  color: rgba(255,255,255,0.45);
}

.footer__social {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-6);
}
.footer__social a {
  width: 38px;
  height: 38px;
  border-radius: var(--r-md);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.4);
  transition: all var(--t-fast) var(--ease);
}
.footer__social a:hover {
  border-color: var(--blue);
  color: var(--blue-light);
  background: rgba(37,99,235,0.1);
}
.footer__social svg { width: 16px; height: 16px; }

.footer__col-title {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--space-5);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.footer__links a {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.45);
  transition: color var(--t-fast) var(--ease);
}
.footer__links a:hover { color: var(--white); }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255,255,255,0.07);
  font-size: 0.875rem;
}

.footer__bottom-links {
  display: flex;
  gap: var(--space-6);
}
.footer__bottom-links a {
  color: rgba(255,255,255,0.35);
  transition: color var(--t-fast) var(--ease);
}
.footer__bottom-links a:hover { color: rgba(255,255,255,0.7); }

/* ── Pricing Card ───────────────────────────── */
.pricing-card {
  background: var(--white);
  border: 1.5px solid var(--gray-100);
  border-radius: var(--r-2xl);
  padding: var(--space-10);
  position: relative;
  transition: all var(--t-base) var(--ease);
  display: flex;
  flex-direction: column;
}
.pricing-card:hover {
  border-color: var(--blue-pale);
  box-shadow: var(--shadow-xl);
  transform: translateY(-6px);
}
.pricing-card--featured {
  background: var(--ink);
  border-color: var(--blue);
  box-shadow: var(--shadow-blue-lg);
}
.pricing-card--featured:hover {
  border-color: var(--blue-mid);
  box-shadow: 0 24px 64px rgba(37,99,235,0.4);
  transform: translateY(-8px);
}

.pricing-card__badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue);
  color: var(--white);
  padding: 5px 16px;
  border-radius: var(--r-full);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
  box-shadow: var(--shadow-blue);
}

.pricing-card__name {
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: var(--space-4);
}
.pricing-card--featured .pricing-card__name { color: var(--blue-light); }

.pricing-card__price {
  display: flex;
  align-items: flex-end;
  gap: var(--space-1);
  margin-bottom: var(--space-2);
}
.pricing-card__currency {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-400);
  line-height: 1.8;
}
.pricing-card--featured .pricing-card__currency { color: rgba(255,255,255,0.5); }
.pricing-card__amount {
  font-size: 3.5rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
  font-family: var(--font-display);
}
.pricing-card--featured .pricing-card__amount { color: var(--white); }
.pricing-card__period {
  font-size: 1rem;
  color: var(--gray-400);
  padding-bottom: 4px;
}
.pricing-card--featured .pricing-card__period { color: rgba(255,255,255,0.45); }
.pricing-card__custom {
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--ink);
  font-family: var(--font-display);
}
.pricing-card--featured .pricing-card__custom { color: var(--white); }

.pricing-card__desc {
  font-size: 0.9375rem;
  color: var(--gray-500);
  line-height: 1.6;
  margin-bottom: var(--space-8);
  min-height: 48px;
}
.pricing-card--featured .pricing-card__desc { color: rgba(255,255,255,0.55); }

.pricing-card__divider {
  border: none;
  border-top: 1px solid var(--gray-100);
  margin: 0 0 var(--space-8);
}
.pricing-card--featured .pricing-card__divider { border-color: rgba(255,255,255,0.1); }

.pricing-card__features {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  flex: 1;
  margin-bottom: var(--space-10);
}

.pricing-feature {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 0.9375rem;
  color: var(--gray-600);
}
.pricing-card--featured .pricing-feature { color: rgba(255,255,255,0.75); }

.pricing-feature__icon {
  width: 20px;
  height: 20px;
  border-radius: var(--r-full);
  background: var(--blue-ghost);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--blue);
}
.pricing-card--featured .pricing-feature__icon {
  background: rgba(37,99,235,0.25);
  color: var(--blue-light);
}
.pricing-feature__icon svg { width: 12px; height: 12px; }

.pricing-feature--disabled { opacity: 0.4; }
.pricing-feature--disabled .pricing-feature__icon {
  background: var(--gray-50);
  color: var(--gray-400);
}

/* ── Form Styles ────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-700);
  letter-spacing: -0.01em;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--r-lg);
  font-size: 0.9375rem;
  font-family: var(--font-primary);
  color: var(--ink);
  background: var(--white);
  transition: all var(--t-fast) var(--ease);
  outline: none;
  -webkit-appearance: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(37,99,235,0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--gray-400);
}

.form-input.error,
.form-textarea.error {
  border-color: var(--error);
  box-shadow: 0 0 0 4px rgba(239,68,68,0.1);
}

.form-textarea { resize: vertical; min-height: 140px; }

.form-error {
  font-size: 0.8125rem;
  color: var(--error);
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}

.form-grid--full { grid-column: 1 / -1; }

.form-success {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-12);
  text-align: center;
}
.form-success.show { display: flex; }
.form-success__icon {
  width: 64px;
  height: 64px;
  background: rgba(16,185,129,0.1);
  border-radius: var(--r-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--success);
}
.form-success__icon svg { width: 32px; height: 32px; }
.form-success h3 { font-size: 1.5rem; color: var(--ink); }
.form-success p { color: var(--gray-500); }

/* ── Alert ──────────────────────────────────── */
.alert {
  padding: var(--space-4) var(--space-5);
  border-radius: var(--r-lg);
  font-size: 0.9375rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  display: none;
}
.alert.show { display: flex; }
.alert--success {
  background: rgba(16,185,129,0.1);
  color: #065F46;
  border: 1px solid rgba(16,185,129,0.2);
}
.alert--error {
  background: rgba(239,68,68,0.08);
  color: #991B1B;
  border: 1px solid rgba(239,68,68,0.2);
}
.alert svg { width: 20px; height: 20px; flex-shrink: 0; }

/* ── Stripe Elements ────────────────────────── */
.stripe-element {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--r-lg);
  background: var(--white);
  transition: all var(--t-fast) var(--ease);
}
.stripe-element.StripeElement--focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(37,99,235,0.1);
}
.stripe-element.StripeElement--invalid {
  border-color: var(--error);
  box-shadow: 0 0 0 4px rgba(239,68,68,0.1);
}

/* ── Badge / Tag ────────────────────────────── */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--r-full);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.tag--blue {
  background: var(--blue-ghost);
  color: var(--blue);
}
.tag--dark {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
}

/* ── Spinner ────────────────────────────────── */
.spinner {
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(255,255,255,0.3);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: none;
}
.spinner.show { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Pricing Toggle ─────────────────────────── */
.pricing-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: var(--r-full);
  padding: 4px;
}
.pricing-toggle__label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--gray-600);
  padding: 8px 20px;
  cursor: pointer;
  border-radius: var(--r-full);
  transition: all var(--t-fast) var(--ease);
}
.pricing-toggle__label.active {
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.pricing-toggle__save {
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--success);
  color: var(--white);
  padding: 3px 8px;
  border-radius: var(--r-full);
}

/* ── Stats ──────────────────────────────────── */
.stat-item {
  text-align: center;
  padding: var(--space-8);
}
.stat-item__value {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--white);
  line-height: 1;
  margin-bottom: var(--space-2);
}
.stat-item__label {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
}

/* ── Scroll to top ──────────────────────────── */
.scroll-top {
  position: fixed;
  bottom: var(--space-8);
  right: var(--space-8);
  width: 44px;
  height: 44px;
  background: var(--blue);
  color: var(--white);
  border-radius: var(--r-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-blue);
  opacity: 0;
  transform: translateY(16px);
  transition: all var(--t-base) var(--ease);
  z-index: 50;
  pointer-events: none;
}
.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
.scroll-top:hover { background: var(--blue-mid); transform: translateY(-2px); }
.scroll-top svg { width: 20px; height: 20px; }

/* ── Responsive ─────────────────────────────── */
@media (max-width: 1024px) {
  :root { --section-pad: 80px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--space-10); }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  :root { --section-pad: 64px; }
  .nav__links, .nav__actions .btn { display: none; }
  .nav__hamburger { display: flex; }
  .form-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: var(--space-8); }
  .footer__bottom { flex-direction: column; gap: var(--space-4); text-align: center; }
  .footer__bottom-links { flex-wrap: wrap; justify-content: center; }
  .scroll-top { bottom: var(--space-5); right: var(--space-5); }
}

@media (max-width: 480px) {
  .container { padding: 0 var(--space-4); }
  .btn-lg { padding: 14px 28px; }
  .pricing-card { padding: var(--space-6); }
}

/* ── Footer modal-trigger links ─────────────── */
.footer__links button,
.footer__bottom-links button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-primary);
  padding: 0;
  text-align: left;
}
.footer__links button {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.45);
  transition: color var(--t-fast) var(--ease);
}
.footer__links button:hover { color: var(--white); }
.footer__bottom-links button {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.35);
  transition: color var(--t-fast) var(--ease);
}
.footer__bottom-links button:hover { color: rgba(255,255,255,0.7); }

/* ── Modal Overlay ──────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 11, 22, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: var(--space-5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}

.modal-overlay.modal--open {
  opacity: 1;
  pointer-events: all;
}

/* ── Modal Panel ────────────────────────────── */
.modal-panel {
  background: var(--white);
  border-radius: var(--r-2xl) var(--r-2xl) var(--r-xl) var(--r-xl);
  width: 100%;
  max-width: 560px;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(60px);
  opacity: 0;
  transition:
    transform 0.38s cubic-bezier(0.34, 1.2, 0.64, 1),
    opacity   0.28s var(--ease-out);
  box-shadow: 0 -4px 0 var(--blue), var(--shadow-2xl);
  scrollbar-width: none;
}

.modal-overlay.modal--open .modal-panel {
  transform: translateY(0);
  opacity: 1;
}

.modal-overlay.modal--closing .modal-panel {
  transform: translateY(60px);
  opacity: 0;
  transition:
    transform 0.3s var(--ease-in),
    opacity   0.25s var(--ease-in);
}

.modal-overlay.modal--closing {
  opacity: 0;
  transition: opacity 0.3s var(--ease-in);
}

/* ── Modal Header ───────────────────────────── */
.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-7) var(--space-8) var(--space-5);
  border-bottom: 1px solid var(--gray-100);
  position: sticky;
  top: 0;
  background: var(--white);
  border-radius: var(--r-2xl) var(--r-2xl) 0 0;
  z-index: 1;
}

.modal-title {  
  margin: 0;
  padding:  1em;
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.modal-close {
  width: 36px;
  height: 36px;
  color: var(--gray-500);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all var(--t-fast) var(--ease);
  margin: 8px;
}
.modal-close:hover {
  border-radius: var(--r-full);
  background: var(--gray-100);
  color: var(--ink);
  transform: rotate(90deg);
}
.modal-close svg { width: 16px; height: 16px; }

/* ── Modal Body ─────────────────────────────── */
.modal-body {
  padding: 1em;
}

.modal-body p {
  font-size: 0.9375rem;
  color: var(--gray-600);
  line-height: 1.75;
  margin-bottom: var(--space-5);
}
.modal-body p:last-child { margin-bottom: 0; }

.modal-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin: var(--space-6) 0 var(--space-2);
}

.modal-body ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}
.modal-body ul li {
  font-size: 0.9375rem;
  color: var(--gray-600);
  padding-left: var(--space-5);
  position: relative;
  line-height: 1.6;
}
.modal-body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue);
}

.modal-body .modal-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 14px;
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.2);
  border-radius: var(--r-full);
  font-size: 0.8125rem;
  font-weight: 700;
  color: #065F46;
  margin-bottom: var(--space-5);
}
.modal-body .modal-badge svg { width: 14px; height: 14px; }

.modal-cta {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-6);
  flex-wrap: wrap;
}

@media (max-width: 600px) {
  .modal-overlay { padding: 0; align-items: flex-end; }
  .modal-panel {
    border-radius: var(--r-2xl) var(--r-2xl) 0 0;
    max-height: 90vh;
  }
  .modal-header { padding: var(--space-6) var(--space-5) var(--space-4); }
  .modal-body   { padding: var(--space-5) var(--space-5) var(--space-8); }
}

/* ── Package Carousel (shared) ──────────────── */
.pkg-carousel-wrap {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.pkg-carousel-wrap .packages-grid,
.pkg-carousel-wrap .pricing-cards-grid {
  flex: 1;
  min-width: 0;
}
.pkg-carousel-btn {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-600);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  align-self: center;
}
.pkg-carousel-btn:hover   { background: var(--blue); color: #fff; border-color: var(--blue); }
.pkg-carousel-btn:disabled { opacity: 0.35; cursor: default; pointer-events: none; }
.pkg-carousel-btn svg     { width: 18px; height: 18px; }
.pkg-loading {
  grid-column: 1 / -1;
  color: var(--gray-400);
  font-size: 0.9375rem;
  padding: var(--space-10) var(--space-4);
  text-align: center;
}
.pkg-empty {
  grid-column: 1 / -1;
  color: var(--gray-400);
  font-size: 0.9375rem;
  text-align: center;
  padding: var(--space-8) 0;
}
.packages-grid--carousel {
  display: flex !important;
  flex-wrap: nowrap;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.packages-grid--carousel::-webkit-scrollbar { display: none; }
.packages-grid--carousel .pricing-card {
  scroll-snap-align: start;
  min-width: 300px;
  max-width: 380px;
  flex: 0 0 auto;
}
