  /* ─── DESIGN TOKENS ──────────────────────── */
  :root {
    --rose:      #F43F5E;
    --rose-d:    #E11D48;
    --rose-l:    #FDA4AF;
    --violet:    #8B5CF6;
    --violet-d:  #7C3AED;
    --violet-l:  #C4B5FD;
    --teal:      #14B8A6;
    --teal-l:    #5EEAD4;
    --amber:     #F59E0B;
    --amber-l:   #FCD34D;
    --ink:       #0F172A;
    --ink-mid:   #1E293B;
    --slate:     #334155;
    --muted:     #64748B;
    --border:    #E2E8F0;
    --cream:     #F8FAFC;
    --surface:   #FFFFFF;
    --success:   #10B981;
    --danger:    #EF4444;
    --radius:    16px;
    --radius-sm: 10px;
    --shadow:    0 1px 3px rgba(15,23,42,0.08), 0 4px 16px rgba(15,23,42,0.06);
    --shadow-md: 0 4px 24px rgba(15,23,42,0.10);
    --shadow-lg: 0 12px 48px rgba(15,23,42,0.16);
    --grad-hero: linear-gradient(135deg, #0F172A 0%, #1E1B4B 45%, #2D1B69 75%, #4C1D95 100%);
    --grad-rose: linear-gradient(135deg, var(--rose), var(--violet-d));
  }

  /* ─── RESET ──────────────────────────────── */
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
  body {
    font-family: 'Inter', sans-serif;
    background: var(--cream);
    color: var(--ink);
    min-height: 100vh;
    overflow-x: hidden;
  }

  /* ─── HEADER ─────────────────────────────── */
  header {
    background: rgba(15, 23, 42, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0 24px;
    position: sticky; top: 0; z-index: 100;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
  }
  .header-inner {
    max-width: 1140px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    height: 64px;
  }
  .logo {
    display: flex; align-items: center; gap: 10px;
    font-family: 'Outfit', sans-serif; font-weight: 800;
    font-size: 1.4rem; color: #fff; text-decoration: none; letter-spacing: -0.02em;
  }
  .logo-icon {
    width: 36px; height: 36px;
    background: var(--grad-rose);
    border-radius: 10px; display: flex; align-items: center;
    justify-content: center; font-size: 1rem;
    box-shadow: 0 4px 12px rgba(244,63,94,0.4);
  }
  .logo-mei { color: #fff; }
  .logo-vite { color: var(--rose-l); }
  nav { display: flex; gap: 4px; }
  nav a {
    color: rgba(255,255,255,0.6); text-decoration: none;
    font-size: 0.82rem; font-weight: 500; padding: 7px 14px;
    border-radius: 8px; transition: all 0.2s; letter-spacing: 0.01em;
  }
  nav a:hover { background: rgba(255,255,255,0.1); color: #fff; }

  /* ─── HERO ───────────────────────────────── */
  .hero {
    background: var(--grad-hero);
    padding: 80px 24px 110px;
    text-align: center; position: relative; overflow: hidden;
  }
  .hero::before {
    content: '';
    position: absolute; inset: 0;
    background:
      radial-gradient(ellipse 50% 60% at 20% 50%, rgba(244,63,94,0.18) 0%, transparent 60%),
      radial-gradient(ellipse 50% 70% at 80% 30%, rgba(139,92,246,0.22) 0%, transparent 60%),
      radial-gradient(ellipse 40% 50% at 50% 100%, rgba(20,184,166,0.15) 0%, transparent 60%);
    pointer-events: none;
  }
  /* Floating orbs */
  .hero::after {
    content: '';
    position: absolute; top: -60px; right: -60px;
    width: 320px; height: 320px;
    background: radial-gradient(circle, rgba(139,92,246,0.15) 0%, transparent 70%);
    border-radius: 50%; pointer-events: none;
  }
  .hero-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.75); font-size: 0.75rem; font-weight: 600;
    padding: 6px 16px; border-radius: 100px; margin-bottom: 28px;
    letter-spacing: 0.08em; text-transform: uppercase; backdrop-filter: blur(8px);
  }
  .hero-eyebrow span { width: 6px; height: 6px; border-radius: 50%; background: var(--rose); display: inline-block; animation: pulse 2s infinite; }
  .hero h1 {
    font-family: 'Outfit', sans-serif; font-weight: 800;
    font-size: clamp(2.2rem, 6vw, 3.8rem); color: #fff;
    line-height: 1.08; margin-bottom: 20px; letter-spacing: -0.03em;
  }
  .hero h1 .grad-text {
    background: linear-gradient(135deg, var(--rose-l) 0%, var(--violet-l) 60%, var(--teal-l) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  .hero-sub {
    color: rgba(255,255,255,0.55); font-size: 1.05rem;
    max-width: 500px; margin: 0 auto 44px; line-height: 1.65;
  }
  .hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
  .btn-hero-primary {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--grad-rose); color: #fff;
    font-family: 'Outfit', sans-serif; font-weight: 700;
    font-size: 0.95rem; padding: 14px 32px; border-radius: 12px;
    text-decoration: none; transition: all 0.25s;
    box-shadow: 0 4px 24px rgba(244,63,94,0.45);
    letter-spacing: 0.01em;
  }
  .btn-hero-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 36px rgba(244,63,94,0.55); }
  .btn-hero-ghost {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.85);
    border: 1px solid rgba(255,255,255,0.15);
    font-family: 'Outfit', sans-serif; font-weight: 600;
    font-size: 0.95rem; padding: 14px 28px; border-radius: 12px;
    text-decoration: none; transition: all 0.25s; backdrop-filter: blur(8px);
  }
  .btn-hero-ghost:hover { background: rgba(255,255,255,0.14); transform: translateY(-2px); }
  .hero-pills {
    display: flex; gap: 10px; flex-wrap: wrap; margin-top: 48px;
    justify-content: center;
  }
  .hero-pill {
    display: flex; align-items: center; gap: 6px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10);
    color: rgba(255,255,255,0.65); padding: 7px 16px; border-radius: 100px;
    font-size: 0.75rem; font-weight: 500; letter-spacing: 0.02em;
  }

  /* ─── MAIN LAYOUT ────────────────────────── */
  .main {
    max-width: 1140px; margin: -48px auto 0;
    padding: 0 24px 100px;
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 28px; align-items: start;
    position: relative; z-index: 1;
  }

  /* ─── SECTION STEPS ──────────────────────── */
  .step-group { margin-bottom: 20px; }

  /* ─── CARD ───────────────────────────────── */
  .card {
    background: var(--surface); border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 28px 32px;
    position: relative; overflow: hidden;
    border: 1px solid rgba(226,232,240,0.8);
    transition: box-shadow 0.2s;
  }
  .card:hover { box-shadow: var(--shadow-md); }
  .card-header {
    display: flex; align-items: center; gap: 12px; margin-bottom: 24px;
  }
  .card-icon {
    width: 38px; height: 38px; border-radius: 11px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.05rem; flex-shrink: 0;
  }
  .ci-rose   { background: rgba(244,63,94,0.10); }
  .ci-violet { background: rgba(139,92,246,0.10); }
  .ci-teal   { background: rgba(20,184,166,0.10); }
  .ci-amber  { background: rgba(245,158,11,0.10); }
  .card-title-text {
    font-family: 'Outfit', sans-serif; font-weight: 700;
    font-size: 1.05rem; color: var(--ink); letter-spacing: -0.01em;
  }
  .card-subtitle {
    font-size: 0.78rem; color: var(--muted); margin-top: 1px;
  }

  /* ─── FORM ───────────────────────────────── */
  .section-label {
    font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--muted); margin: 24px 0 10px;
    display: flex; align-items: center; gap: 8px;
  }
  .section-label::after { content: ''; flex: 1; height: 1px; background: var(--border); }
  .section-label:first-child { margin-top: 0; }
  .field { margin-bottom: 14px; }
  .field label {
    display: block; font-size: 0.8rem; font-weight: 600;
    color: var(--slate); margin-bottom: 6px; letter-spacing: 0.01em;
  }
  .field label .req { color: var(--rose); margin-left: 2px; }
  .field input, .field textarea, .field select {
    width: 100%; padding: 11px 14px;
    border: 1.5px solid var(--border); border-radius: var(--radius-sm);
    font-family: 'Inter', sans-serif; font-size: 0.88rem;
    color: var(--ink); background: var(--cream);
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    outline: none;
  }
  .field input:focus, .field textarea:focus, .field select:focus {
    border-color: var(--violet);
    box-shadow: 0 0 0 3px rgba(139,92,246,0.12);
    background: #fff;
  }
  .field input::placeholder, .field textarea::placeholder { color: #94A3B8; }
  .field textarea { resize: vertical; min-height: 80px; line-height: 1.5; }
  .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .field-hint { font-size: 0.73rem; color: var(--muted); margin-top: 5px; line-height: 1.4; }

  /* Reminder chips */
  .reminder-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
  .chip {
    padding: 7px 16px; border-radius: 100px; font-size: 0.77rem;
    font-weight: 600; cursor: pointer; border: 1.5px solid var(--border);
    background: transparent; color: var(--muted); transition: all 0.15s;
    font-family: 'Inter', sans-serif; letter-spacing: 0.01em;
  }
  .chip:hover { border-color: var(--violet); color: var(--violet); background: rgba(139,92,246,0.06); }
  .chip.active { background: var(--violet); border-color: var(--violet); color: #fff; box-shadow: 0 2px 8px rgba(139,92,246,0.3); }


  /* Action buttons */
  .actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
  .btn-primary {
    flex: 1; min-width: 160px; padding: 15px 24px;
    background: var(--grad-rose);
    color: #fff; border: none; border-radius: 12px;
    font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 1rem;
    cursor: pointer; transition: all 0.2s; display: flex;
    align-items: center; justify-content: center; gap: 8px;
    box-shadow: 0 4px 20px rgba(244,63,94,0.35); letter-spacing: 0.01em;
  }
  .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(244,63,94,0.5); }
  .btn-secondary {
    padding: 14px 20px; background: transparent;
    border: 1.5px solid var(--border); border-radius: 12px;
    color: var(--slate); font-family: 'Outfit', sans-serif;
    font-weight: 600; font-size: 0.9rem; cursor: pointer;
    transition: all 0.2s; display: flex; align-items: center; gap: 6px;
  }
  .btn-secondary:hover { border-color: var(--rose); color: var(--rose); background: rgba(244,63,94,0.04); }

  /* ─── SWITCH ─────────────────────────────── */
  .switch-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 0; gap: 16px;
  }
  .switch-row label { font-size: 0.84rem; font-weight: 500; color: var(--slate); cursor: pointer; }
  .switch {
    width: 42px; height: 24px; background: var(--border);
    border-radius: 100px; cursor: pointer; position: relative;
    transition: background 0.2s; border: none; outline: none; flex-shrink: 0;
  }
  .switch::after {
    content: ''; position: absolute; top: 3px; left: 3px;
    width: 18px; height: 18px; background: #fff; border-radius: 50%;
    transition: transform 0.2s; box-shadow: 0 1px 4px rgba(0,0,0,0.2);
  }
  .switch.on { background: var(--violet); }
  .switch.on::after { transform: translateX(18px); }

  /* ─── PREVIEW CARD ───────────────────────── */
  .preview-sticky { position: sticky; top: 80px; }
  .event-preview {
    background: linear-gradient(155deg, #0F172A 0%, #1E1B4B 40%, #2D1B69 70%, #3B0764 100%);
    border-radius: 14px; padding: 28px 28px 32px;
    color: #fff; overflow: hidden; position: relative;
  }
  .event-preview::before {
    content: '';
    position: absolute; top: -30px; right: -30px;
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(244,63,94,0.2) 0%, transparent 70%);
    pointer-events: none;
  }
  .event-preview::after {
    content: '';
    position: absolute; bottom: -40px; left: -20px;
    width: 180px; height: 180px;
    background: radial-gradient(circle, rgba(20,184,166,0.15) 0%, transparent 70%);
    pointer-events: none;
  }
  .preview-badge {
    font-size: 0.62rem; font-weight: 700; letter-spacing: 0.14em;
    text-transform: uppercase; color: var(--rose-l);
    margin-bottom: 18px; display: flex; align-items: center; gap: 7px;
  }
  .preview-badge-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--rose); display: inline-block; animation: pulse 2s infinite;
  }
  @keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.75); }
  }
  .preview-title {
    font-family: 'Outfit', sans-serif; font-weight: 800;
    font-size: 1.5rem; line-height: 1.15; margin-bottom: 22px;
    color: #fff; word-break: break-word; letter-spacing: -0.02em;
  }
  .preview-meta { display: flex; flex-direction: column; gap: 11px; }
  .preview-row {
    display: flex; gap: 10px; align-items: flex-start;
    font-size: 0.81rem; color: rgba(255,255,255,0.65);
  }
  .preview-row .pi { font-size: 0.95rem; flex-shrink: 0; margin-top: 1px; opacity: 0.85; }
  .preview-row strong { color: rgba(255,255,255,0.95); font-weight: 600; }
  .preview-divider {
    height: 1px; background: rgba(255,255,255,0.08); margin: 20px 0;
  }
  .preview-desc {
    font-size: 0.79rem; color: rgba(255,255,255,0.5);
    line-height: 1.55; max-height: 64px; overflow: hidden;
  }

  /* ─── OUTPUT SECTION ─────────────────────── */
  .output-section { display: none; opacity: 0; transform: translateY(12px); transition: opacity 0.4s ease, transform 0.4s ease; }
  .output-section.visible { display: block; }
  .output-section.visible.animated { opacity: 1; transform: translateY(0); }
  .output-placeholder {
    text-align: center; padding: 44px 20px;
    background: linear-gradient(135deg, rgba(139,92,246,0.04), rgba(244,63,94,0.04));
    border-radius: 12px; border: 1.5px dashed rgba(139,92,246,0.2);
  }
  .output-placeholder .ph-icon { font-size: 3rem; margin-bottom: 14px; opacity: 0.45; }
  .output-placeholder p { font-size: 0.82rem; color: var(--muted); line-height: 1.55; }

  /* Tabs */
  .tabs { display: flex; gap: 4px; margin-bottom: 22px; background: var(--cream); border-radius: 12px; padding: 4px; }
  .tab {
    flex: 1; padding: 9px 8px; text-align: center;
    border: none; border-radius: 9px;
    cursor: pointer; font-size: 0.77rem; font-weight: 600;
    color: var(--muted); background: transparent; transition: all 0.2s;
    font-family: 'Inter', sans-serif;
  }
  .tab.active { background: var(--surface); color: var(--violet-d); box-shadow: 0 1px 4px rgba(0,0,0,0.1); }
  .tab-panel { display: none; }
  .tab-panel.active { display: block; }

  /* QR */
  .qr-box {
    text-align: center; padding: 28px 20px;
    background: linear-gradient(135deg, rgba(139,92,246,0.04), rgba(244,63,94,0.04));
    border-radius: 12px; border: 1.5px dashed rgba(139,92,246,0.2);
  }
  #qrcode { display: inline-block; padding: 14px; background: #fff; border-radius: 12px; box-shadow: 0 2px 12px rgba(0,0,0,0.08); }
  .qr-box p { font-size: 0.78rem; color: var(--muted); margin-top: 14px; line-height: 1.5; }

  /* Download */
  .download-block {
    background: linear-gradient(135deg, rgba(139,92,246,0.06), rgba(244,63,94,0.06));
    border: 1.5px solid rgba(139,92,246,0.15);
    border-radius: 12px; padding: 28px; text-align: center;
  }
  .download-block .dl-icon { font-size: 2.8rem; margin-bottom: 12px; }
  .download-block h3 {
    font-family: 'Outfit', sans-serif; font-weight: 700;
    font-size: 1.05rem; color: var(--ink); margin-bottom: 6px;
  }
  .download-block p { font-size: 0.8rem; color: var(--muted); margin-bottom: 18px; line-height: 1.5; }
  .btn-download {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--ink); color: #fff;
    padding: 12px 26px; border-radius: 10px; text-decoration: none;
    font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 0.9rem;
    transition: all 0.2s;
  }
  .btn-download:hover { background: var(--violet-d); transform: translateY(-1px); }

  /* Email share */
  .email-field { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
  .email-field input {
    flex: 1; min-width: 200px; padding: 11px 14px;
    border: 1.5px solid var(--border); border-radius: 10px;
    font-family: 'Inter', sans-serif; font-size: 0.88rem;
    background: var(--cream); color: var(--ink); outline: none;
    transition: all 0.2s;
  }
  .email-field input:focus { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(139,92,246,0.12); background: #fff; }
  .btn-email {
    padding: 11px 22px; background: var(--amber); color: var(--ink);
    border: none; border-radius: 10px; font-family: 'Outfit', sans-serif;
    font-weight: 700; font-size: 0.88rem; cursor: pointer; transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(245,158,11,0.3);
  }
  .btn-email:hover { background: #D97706; transform: translateY(-1px); }

  /* Info note */
  .info-note {
    background: rgba(20,184,166,0.07); border: 1px solid rgba(20,184,166,0.2);
    border-radius: 10px; padding: 12px 16px; margin-top: 16px;
    font-size: 0.78rem; color: #0D9488;
    display: flex; gap: 10px; align-items: flex-start; line-height: 1.5;
  }
  .info-note-warn {
    background: rgba(245,158,11,0.10); border-color: rgba(245,158,11,0.28);
    color: #B45309;
  }

  /* ICS raw */
  .ics-preview-block {
    background: #0C0F1A; border-radius: 10px; padding: 16px;
    font-family: 'Courier New', monospace; font-size: 0.7rem;
    color: #A78BFA; max-height: 180px; overflow-y: auto;
    white-space: pre; margin-top: 8px; line-height: 1.6;
    border: 1px solid rgba(139,92,246,0.15);
  }

  /* ─── TOAST ──────────────────────────────── */
  .toast {
    position: fixed; bottom: 28px; right: 28px; z-index: 9999;
    background: var(--ink); color: #fff; padding: 14px 20px;
    border-radius: 14px; font-size: 0.85rem; font-weight: 500;
    box-shadow: var(--shadow-lg); transform: translateY(80px);
    opacity: 0; transition: all 0.35s cubic-bezier(0.34,1.56,0.64,1);
    display: flex; align-items: center; gap: 10px; max-width: 320px;
    border: 1px solid rgba(255,255,255,0.08);
  }
  .toast.show { transform: translateY(0); opacity: 1; }
  .toast .ti { font-size: 1.1rem; }

  /* ─── MISC UTILS ─────────────────────────── */
  .divider-label {
    display: flex; align-items: center; gap: 12px;
    margin: 20px 0 14px; font-size: 0.68rem; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
  }
  .divider-label::before, .divider-label::after {
    content: ''; flex: 1; height: 1px; background: var(--border);
  }

  /* ─── FOOTER ─────────────────────────────── */
  .footer {
    text-align: center; padding: 32px 24px;
    border-top: 1px solid var(--border);
    font-size: 0.78rem; color: var(--muted);
  }
  .footer strong { color: var(--slate); }
  .privacy-badge {
    display: inline-flex; align-items: center; gap: 6px; margin-top: 8px;
    background: rgba(16,185,129,0.08); border: 1px solid rgba(16,185,129,0.2);
    color: #059669; padding: 5px 14px; border-radius: 100px;
    font-size: 0.72rem; font-weight: 600;
  }

  /* ─── TEMPLATE PICKER ────────────────────── */
  .template-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
    gap: 12px;
  }
  .template-swatch {
    cursor: pointer; border-radius: var(--radius-sm); overflow: hidden;
    border: 2px solid transparent; position: relative; aspect-ratio: 3 / 4;
    display: flex; align-items: flex-end; padding: 8px;
    transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
  }
  .template-swatch:hover { transform: translateY(-2px); }
  .template-swatch.selected {
    border-color: var(--rose);
    box-shadow: 0 0 0 3px rgba(244,63,94,0.15);
  }
  .template-swatch .ts-check {
    position: absolute; top: 6px; right: 6px; width: 18px; height: 18px;
    border-radius: 50%; background: #fff; color: var(--rose);
    display: none; align-items: center; justify-content: center;
    font-size: 0.65rem; font-weight: 800;
  }
  .template-swatch.selected .ts-check { display: flex; }
  .template-swatch span {
    color: #fff; font-size: 0.66rem; font-weight: 600; line-height: 1.25;
    text-shadow: 0 1px 4px rgba(0,0,0,0.45);
  }

  /* ─── INVITE CARD (canvas output) ────────── */
  .invite-card-box { display: flex; flex-direction: column; align-items: center; }
  #inviteCanvas { width: 100%; max-width: 300px; border-radius: 16px; box-shadow: var(--shadow-md); }


  .event-landing {
    position: fixed; inset: 0; z-index: 1000;
    background: var(--grad-hero);
    display: none; align-items: center; justify-content: center;
    padding: 24px;
    overflow-y: auto;  /* let the overlay scroll if the card is taller than the viewport, instead of clipping it */
  }
  .event-landing.show { display: flex; }
  .el-card {
    background: var(--surface); border-radius: var(--radius);
    box-shadow: var(--shadow-lg); padding: 32px; max-width: 420px; width: 100%;
    text-align: center;
    margin: auto;  /* keeps it centered while still scrollable when content overflows */
  }
  .el-card .dl-icon { font-size: 2.2rem; margin-bottom: 10px; }
  .el-card h2 {
    font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 1.2rem;
    color: var(--ink); margin-bottom: 6px;
  }
  .el-card p { color: var(--muted); font-size: 0.85rem; margin-bottom: 4px; line-height: 1.5; }
  .el-meta { margin: 16px 0; padding: 14px; background: var(--cream); border-radius: var(--radius-sm); text-align: left; font-size: 0.82rem; color: var(--slate); }
  .el-meta div { margin-bottom: 4px; }
  .el-meta strong { color: var(--ink); }

  /* ─── RESPONSIVE ─────────────────────────── */
  @media (max-width: 820px) {
    .main { grid-template-columns: 1fr; }
    .preview-sticky { position: static; }
    .hero { padding: 56px 20px 80px; }
    .field-row { grid-template-columns: 1fr; }
    nav { display: none; }
    .hero-actions { flex-direction: column; align-items: center; }
    .card { padding: 24px 20px; }
  }

/* ═══════════════════════════════════════════════════════════
   SHARED FOOTER (injected by assets/js/layout.js)
   ═══════════════════════════════════════════════════════════ */
#meivite-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 28px 24px;
  margin-top: 40px;
}
.mv-footer-inner {
  max-width: 1140px; margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px;
}
.mv-footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.mv-footer-links a {
  color: var(--muted); text-decoration: none; font-size: 0.82rem; font-weight: 500;
  transition: color 0.2s;
}
.mv-footer-links a:hover { color: var(--rose-d); }
.mv-footer-meta { color: var(--muted); font-size: 0.78rem; }

/* ═══════════════════════════════════════════════════════════
   COOKIE CONSENT BANNER (injected by assets/js/consent.js)
   ═══════════════════════════════════════════════════════════ */
#meivite-cookie-banner {
  position: fixed; left: 0; right: 0; bottom: -200px;
  z-index: 2000;
  background: var(--ink);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.25);
  transition: bottom 0.35s ease;
  padding: 18px 24px;
}
#meivite-cookie-banner.show { bottom: 0; }
.mcc-inner {
  max-width: 1140px; margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px;
}
.mcc-text { color: rgba(255,255,255,0.75); font-size: 0.82rem; line-height: 1.5; max-width: 640px; }
.mcc-text a { color: #fff; text-decoration: underline; }
.mcc-actions { display: flex; gap: 10px; flex-shrink: 0; }
.mcc-btn {
  padding: 10px 20px; border-radius: 10px; font-family: 'Outfit', sans-serif;
  font-weight: 700; font-size: 0.82rem; cursor: pointer; border: none; transition: all 0.2s;
}
.mcc-reject { background: rgba(255,255,255,0.1); color: #fff; }
.mcc-reject:hover { background: rgba(255,255,255,0.18); }
.mcc-accept { background: var(--grad-rose); color: #fff; }
.mcc-accept:hover { transform: translateY(-1px); }

/* Simple content-page layout used by /legal/*.html */
.legal-page { max-width: 780px; margin: 0 auto; padding: 60px 24px 20px; }
.legal-page h1 { font-family:'Outfit',sans-serif; font-weight:800; font-size:2rem; margin-bottom:6px; }
.legal-page .legal-updated { color: var(--muted); font-size: 0.82rem; margin-bottom: 32px; }
.legal-page h2 { font-family:'Outfit',sans-serif; font-weight:700; font-size:1.15rem; margin:28px 0 10px; }
.legal-page p, .legal-page li { color: var(--slate); font-size: 0.92rem; line-height: 1.7; }
.legal-page ul { padding-left: 22px; margin-bottom: 12px; }
.legal-page a.back-home { display:inline-block; margin-bottom: 24px; color: var(--rose-d); font-weight:600; text-decoration:none; font-size:0.85rem; }
