/* ============================================================
   Genealogy SaaS — Main Design System
   Mobile-first, CSS custom properties, dark/light mode
   ============================================================ */

/* ── 1. CSS Custom Properties ──────────────────────────────── */
:root {
  /* Brand */
  --color-primary:       #4F46E5;
  --color-primary-hover: #4338CA;
  --color-primary-light: #EEF2FF;
  --color-accent:        #7C3AED;
  --color-success:       #059669;
  --color-warning:       #D97706;
  --color-danger:        #DC2626;

  /* Neutrals — light mode */
  --bg-base:      #FFFFFF;
  --bg-surface:   #F8FAFC;
  --bg-elevated:  #FFFFFF;
  --bg-overlay:   rgba(15, 23, 42, 0.5);

  --border:       #E2E8F0;
  --border-focus: var(--color-primary);

  --text-primary:   #0F172A;
  --text-secondary: #475569;
  --text-muted:     #94A3B8;
  --text-inverse:   #FFFFFF;

  --shadow-sm:  0 1px 2px rgba(0,0,0,.05);
  --shadow-md:  0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1);
  --shadow-lg:  0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1);
  --shadow-xl:  0 20px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.1);

  /* Spacing scale */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.25rem;
  --sp-6: 1.5rem;
  --sp-8: 2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;

  /* Typography */
  --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:  'JetBrains Mono', 'Fira Code', monospace;
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;
  --text-6xl:  3.75rem;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius:    0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition: 150ms ease;
  --transition-slow: 300ms ease;

  /* Z-index layers */
  --z-dropdown: 100;
  --z-sticky:   200;
  --z-modal:    300;
  --z-toast:    400;
}

/* ── Dark Mode ─────────────────────────────────────────────── */
[data-theme="dark"],
.dark-mode {
  --bg-base:      #0F172A;
  --bg-surface:   #1E293B;
  --bg-elevated:  #1E293B;
  --bg-overlay:   rgba(0, 0, 0, 0.7);

  --border:       #334155;

  --text-primary:   #F1F5F9;
  --text-secondary: #94A3B8;
  --text-muted:     #64748B;

  --shadow-sm:  0 1px 2px rgba(0,0,0,.3);
  --shadow-md:  0 4px 6px -1px rgba(0,0,0,.4);
  --shadow-lg:  0 10px 15px -3px rgba(0,0,0,.4);
  --color-primary-light: #1E1B4B;
}

/* ── 2. CSS 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-sans);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background var(--transition-slow), color var(--transition-slow);
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-primary-hover); }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.25; color: var(--text-primary); }
h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }
p { color: var(--text-secondary); line-height: 1.75; }

/* ── 3. Layout Utilities ───────────────────────────────────── */
.container {
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: var(--sp-6);
}
.container--sm  { max-width: 640px; }
.container--md  { max-width: 960px; }
.container--lg  { max-width: 1440px; }

.flex     { display: flex; }
.flex-col { flex-direction: column; }
.items-center  { align-items: center; }
.items-start   { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2  { gap: var(--sp-2); }
.gap-4  { gap: var(--sp-4); }
.gap-6  { gap: var(--sp-6); }
.gap-8  { gap: var(--sp-8); }
.grid   { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.text-center { text-align: center; }
.text-right  { text-align: right; }
.w-full  { width: 100%; }
.hidden  { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ── 4. Components ─────────────────────────────────────────── */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 0.625rem var(--sp-5);
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
  line-height: 1.5;
}
.btn:disabled { opacity: 0.6; cursor: not-allowed; pointer-events: none; }
.btn--primary {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.btn--primary:hover { background: var(--color-primary-hover); border-color: var(--color-primary-hover); color: #fff; }
.btn--secondary {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border-color: var(--border);
}
.btn--secondary:hover { background: var(--bg-surface); color: var(--text-primary); }
.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: transparent;
}
.btn--ghost:hover { background: var(--bg-surface); color: var(--text-primary); }
.btn--danger { background: var(--color-danger); color: #fff; border-color: var(--color-danger); }
.btn--danger:hover { background: #B91C1C; }
.btn--sm { padding: var(--sp-1) var(--sp-3); font-size: var(--text-xs); }
.btn--lg { padding: 0.875rem var(--sp-8); font-size: var(--text-base); border-radius: var(--radius-md); }
.btn--full { width: 100%; }
.btn--loading { position: relative; color: transparent !important; }
.btn--loading::after {
  content: '';
  position: absolute;
  width: 16px; height: 16px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

/* Cards */
.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  box-shadow: var(--shadow-sm);
}
.card--hover { transition: box-shadow var(--transition), transform var(--transition); }
.card--hover:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.card__header { margin-bottom: var(--sp-4); }
.card__title { font-size: var(--text-lg); font-weight: 600; color: var(--text-primary); }
.card__subtitle { font-size: var(--text-sm); color: var(--text-muted); margin-top: var(--sp-1); }
.card__body { color: var(--text-secondary); }
.card__footer { margin-top: var(--sp-4); padding-top: var(--sp-4); border-top: 1px solid var(--border); }

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.5rem;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
}
.badge--primary { background: var(--color-primary-light); color: var(--color-primary); }
.badge--success { background: #D1FAE5; color: #065F46; }
.badge--warning { background: #FEF3C7; color: #92400E; }
.badge--danger  { background: #FEE2E2; color: #991B1B; }
.badge--gray    { background: var(--bg-surface); color: var(--text-muted); }

/* Forms */
.form-group { margin-bottom: var(--sp-5); }
.form-label {
  display: block;
  margin-bottom: var(--sp-2);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-primary);
}
.form-label .required { color: var(--color-danger); margin-left: 2px; }
.form-control {
  display: block;
  width: 100%;
  padding: 0.625rem var(--sp-4);
  font-size: var(--text-sm);
  color: var(--text-primary);
  background: var(--bg-elevated);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  -webkit-appearance: none;
}
.form-control::placeholder { color: var(--text-muted); }
.form-control:focus { border-color: var(--border-focus); box-shadow: 0 0 0 3px rgba(79,70,229,.15); }
.form-control:invalid { border-color: var(--color-danger); }
.form-control--error { border-color: var(--color-danger); }
.form-error { font-size: var(--text-xs); color: var(--color-danger); margin-top: var(--sp-1); }
.form-hint  { font-size: var(--text-xs); color: var(--text-muted); margin-top: var(--sp-1); }
select.form-control { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e"); background-position: right 0.75rem center; background-repeat: no-repeat; background-size: 1.25em; padding-right: 2.5rem; }
textarea.form-control { min-height: 100px; resize: vertical; }

/* Tables */
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border); }
.table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.table th { padding: var(--sp-3) var(--sp-4); text-align: left; font-weight: 600; color: var(--text-secondary); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.05em; background: var(--bg-surface); border-bottom: 1px solid var(--border); }
.table td { padding: var(--sp-4); color: var(--text-primary); border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }
.table tbody tr:hover td { background: var(--bg-surface); }

/* Modals */
.modal-backdrop {
  position: fixed; inset: 0;
  background: var(--bg-overlay);
  z-index: var(--z-modal);
  display: flex; align-items: center; justify-content: center;
  padding: var(--sp-4);
  opacity: 0; pointer-events: none;
  transition: opacity var(--transition);
}
.modal-backdrop.is-open { opacity: 1; pointer-events: auto; }
.modal {
  background: var(--bg-elevated);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: var(--sp-8);
  width: 100%; max-width: 520px;
  max-height: 90vh; overflow-y: auto;
  transform: translateY(16px);
  transition: transform var(--transition);
}
.modal-backdrop.is-open .modal { transform: translateY(0); }
.modal__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--sp-6); }
.modal__title { font-size: var(--text-xl); font-weight: 700; }
.modal__close { background: none; border: none; color: var(--text-muted); font-size: var(--text-xl); line-height: 1; padding: var(--sp-1); border-radius: var(--radius-sm); transition: all var(--transition); }
.modal__close:hover { background: var(--bg-surface); color: var(--text-primary); }

/* Alerts / Notices */
.alert { padding: var(--sp-4); border-radius: var(--radius); border: 1px solid; display: flex; gap: var(--sp-3); align-items: flex-start; font-size: var(--text-sm); }
.alert--success { background: #F0FDF4; border-color: #BBF7D0; color: #166534; }
.alert--warning { background: #FFFBEB; border-color: #FDE68A; color: #92400E; }
.alert--danger  { background: #FFF1F2; border-color: #FECDD3; color: #991B1B; }
.alert--info    { background: #EFF6FF; border-color: #BFDBFE; color: #1E40AF; }

/* Divider */
.divider { height: 1px; background: var(--border); margin: var(--sp-6) 0; }

/* ── 5. Navigation ─────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: var(--z-sticky);
  transition: background var(--transition-slow);
}
[data-theme="dark"] .site-header { background: rgba(15,23,42,0.95); }
.nav { display: flex; align-items: center; justify-content: space-between; padding: var(--sp-4) 0; gap: var(--sp-8); }
.nav__logo { display: flex; align-items: center; gap: var(--sp-2); font-weight: 800; font-size: var(--text-xl); color: var(--color-primary); text-decoration: none; }
.nav__logo-icon { font-size: 1.5rem; }
.nav__menu { display: flex; align-items: center; gap: var(--sp-6); }
.nav__link { font-size: var(--text-sm); font-weight: 500; color: var(--text-secondary); transition: color var(--transition); }
.nav__link:hover { color: var(--text-primary); }
.nav__actions { display: flex; align-items: center; gap: var(--sp-3); }
.nav__hamburger { display: none; background: none; border: none; color: var(--text-primary); font-size: 1.5rem; }

/* ── 6. Hero Section ───────────────────────────────────────── */
.hero {
  padding: var(--sp-24) 0 var(--sp-16);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0, rgba(79,70,229,.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  background: var(--color-primary-light);
  color: var(--color-primary);
  padding: var(--sp-1) var(--sp-4);
  border-radius: var(--radius-full);
  font-size: var(--text-sm); font-weight: 600;
  margin-bottom: var(--sp-6);
}
.hero__title {
  font-size: clamp(2.5rem, 6vw, var(--text-6xl));
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: var(--sp-6);
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--color-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero__subtitle { font-size: var(--text-xl); color: var(--text-secondary); max-width: 600px; margin: 0 auto var(--sp-10); }
.hero__actions { display: flex; align-items: center; justify-content: center; gap: var(--sp-4); flex-wrap: wrap; }
.hero__social-proof { margin-top: var(--sp-12); color: var(--text-muted); font-size: var(--text-sm); }
.hero__avatars { display: inline-flex; margin-right: var(--sp-2); }
.hero__avatars img { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--bg-base); margin-left: -8px; object-fit: cover; }
.hero__avatars img:first-child { margin-left: 0; }

/* ── 7. Feature Grid ───────────────────────────────────────── */
.features { padding: var(--sp-24) 0; }
.section-eyebrow { font-size: var(--text-sm); font-weight: 600; color: var(--color-primary); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: var(--sp-3); }
.section-title { font-size: clamp(1.875rem, 4vw, var(--text-4xl)); font-weight: 800; letter-spacing: -0.02em; margin-bottom: var(--sp-4); }
.section-subtitle { font-size: var(--text-lg); color: var(--text-secondary); max-width: 600px; }
.features__grid { margin-top: var(--sp-16); }
.feature-card {
  padding: var(--sp-6);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.feature-card:hover { border-color: var(--color-primary); box-shadow: 0 0 0 4px rgba(79,70,229,.08); transform: translateY(-2px); }
.feature-card__icon { width: 48px; height: 48px; border-radius: var(--radius-md); background: var(--color-primary-light); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: var(--sp-4); }
.feature-card__title { font-size: var(--text-lg); font-weight: 600; margin-bottom: var(--sp-2); }
.feature-card__desc { font-size: var(--text-sm); color: var(--text-secondary); line-height: 1.7; }

/* ── 8. Pricing ────────────────────────────────────────────── */
.pricing { padding: var(--sp-24) 0; background: var(--bg-surface); }
.pricing__toggle { display: flex; align-items: center; justify-content: center; gap: var(--sp-4); margin-bottom: var(--sp-12); }
.pricing__toggle-label { font-size: var(--text-sm); font-weight: 500; color: var(--text-secondary); }
.toggle-switch { position: relative; width: 48px; height: 24px; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-switch__slider { position: absolute; cursor: pointer; inset: 0; background: var(--border); border-radius: var(--radius-full); transition: background var(--transition); }
.toggle-switch__slider::before { content: ''; position: absolute; height: 18px; width: 18px; left: 3px; bottom: 3px; background: white; border-radius: 50%; transition: transform var(--transition); }
.toggle-switch input:checked + .toggle-switch__slider { background: var(--color-primary); }
.toggle-switch input:checked + .toggle-switch__slider::before { transform: translateX(24px); }
.pricing__save { background: var(--color-success); color: white; font-size: var(--text-xs); font-weight: 700; padding: 2px 8px; border-radius: var(--radius-full); }
.pricing__cards { display: grid; grid-template-columns: 1fr; gap: var(--sp-6); max-width: 900px; margin: 0 auto; }
.pricing-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--sp-8);
  position: relative;
}
.pricing-card--featured {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(79,70,229,.1), var(--shadow-xl);
}
.pricing-card__badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--color-primary); color: white; font-size: var(--text-xs); font-weight: 700; padding: var(--sp-1) var(--sp-4); border-radius: var(--radius-full); white-space: nowrap; }
.pricing-card__plan { font-size: var(--text-sm); font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: var(--sp-4); }
.pricing-card__price { display: flex; align-items: baseline; gap: var(--sp-1); margin-bottom: var(--sp-2); }
.pricing-card__price .currency { font-size: var(--text-xl); font-weight: 700; }
.pricing-card__price .amount { font-size: 3.5rem; font-weight: 800; line-height: 1; letter-spacing: -0.03em; }
.pricing-card__price .period { font-size: var(--text-sm); color: var(--text-muted); }
.pricing-card__desc { font-size: var(--text-sm); color: var(--text-secondary); margin-bottom: var(--sp-8); }
.pricing-card__features { margin-bottom: var(--sp-8); }
.pricing-card__feature { display: flex; gap: var(--sp-3); font-size: var(--text-sm); color: var(--text-secondary); padding: var(--sp-2) 0; }
.pricing-card__feature .check { color: var(--color-success); flex-shrink: 0; font-size: 1rem; }
.pricing-card__feature .cross { color: var(--text-muted); flex-shrink: 0; }

/* ── 9. Footer ─────────────────────────────────────────────── */
.site-footer { background: var(--bg-surface); border-top: 1px solid var(--border); padding: var(--sp-16) 0 var(--sp-8); }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--sp-12); margin-bottom: var(--sp-12); }
.footer__brand { max-width: 280px; }
.footer__logo { font-size: var(--text-xl); font-weight: 800; color: var(--color-primary); margin-bottom: var(--sp-4); display: flex; align-items: center; gap: var(--sp-2); }
.footer__desc { font-size: var(--text-sm); color: var(--text-muted); line-height: 1.7; }
.footer__col-title { font-size: var(--text-sm); font-weight: 700; color: var(--text-primary); margin-bottom: var(--sp-4); }
.footer__links { display: flex; flex-direction: column; gap: var(--sp-3); }
.footer__link { font-size: var(--text-sm); color: var(--text-muted); transition: color var(--transition); }
.footer__link:hover { color: var(--text-primary); }
.footer__bottom { padding-top: var(--sp-8); border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.footer__copy { font-size: var(--text-sm); color: var(--text-muted); }

/* ── 10. Toast Notifications ───────────────────────────────── */
.toast-container { position: fixed; bottom: var(--sp-6); right: var(--sp-6); z-index: var(--z-toast); display: flex; flex-direction: column; gap: var(--sp-3); }
.toast { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-4) var(--sp-5); background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-xl); font-size: var(--text-sm); min-width: 280px; animation: slide-in-right 0.3s ease; }
.toast--success { border-left: 4px solid var(--color-success); }
.toast--error   { border-left: 4px solid var(--color-danger); }
.toast--warning { border-left: 4px solid var(--color-warning); }
.toast__close { margin-left: auto; background: none; border: none; color: var(--text-muted); font-size: var(--text-lg); cursor: pointer; }

/* ── 11. Animations ────────────────────────────────────────── */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes slide-in-right { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes slide-up { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ── 12. Responsive ────────────────────────────────────────── */
@media (min-width: 768px) {
  .pricing__cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1024px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  h1 { font-size: var(--text-4xl); }
  h2 { font-size: var(--text-3xl); }
  .nav__menu { display: none; }
  .nav__hamburger { display: block; }
  .nav__menu.is-open { display: flex; flex-direction: column; position: fixed; inset: 0; top: 73px; background: var(--bg-base); padding: var(--sp-8); z-index: var(--z-dropdown); gap: var(--sp-4); }
  .footer__grid { grid-template-columns: 1fr; gap: var(--sp-8); }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .hero { padding: var(--sp-16) 0 var(--sp-12); }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; max-width: 320px; }
  .footer__bottom { flex-direction: column; gap: var(--sp-4); text-align: center; }
  .modal { padding: var(--sp-6); }
}
