/* Iberia Marketing — shared design tokens and components */
:root {
  --bg: #F3F6FA;
  --surface: #FFFFFF;
  --surface-2: #EEF3F9;
  --border: #E2E8F0;
  --text: #0F172A;
  --muted: #5B6678;
  --primary: #1D63E0;
  --primary-strong: #1550BC;
  --primary-soft: #E6EEFC;
  --accent: #F59E0B;
  --accent-soft: #FFF4DE;
  --success: #12A150;
  --danger: #D92D20;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .06);
  --radius: 16px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Plus Jakarta Sans", var(--font);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B1018; --surface: #121925; --surface-2: #18212F; --border: #223044;
    --text: #E6EBF2; --muted: #94A3B8; --primary: #4C8DFF; --primary-strong: #77A8FF;
    --primary-soft: #15264A; --accent: #FFB84D; --accent-soft: #2E2414;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0B1018; --surface: #121925; --surface-2: #18212F; --border: #223044;
  --text: #E6EBF2; --muted: #94A3B8; --primary: #4C8DFF; --primary-strong: #77A8FF;
  --primary-soft: #15264A; --accent: #FFB84D; --accent-soft: #2E2414;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.02em; line-height: 1.15; margin: 0; }
p { margin: 0; }
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .container { padding: 0 24px; } }

/* Brand */
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; }
.brand img { width: 34px; height: 34px; }
.brand .wordmark { color: var(--text); }
.brand .wordmark span { font-weight: 500; color: var(--muted); }

/* Theme toggle (mirrors the dashboard's Light / Dark switch) */
.theme-toggle { display: inline-flex; align-items: center; gap: 8px; font-size: .875rem; color: var(--muted); background: none; border: 0; cursor: pointer; padding: 6px; font-family: inherit; }
.theme-toggle .track { width: 38px; height: 22px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--border); position: relative; transition: background .2s; }
.theme-toggle .knob { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
:root[data-theme="dark"] .theme-toggle .knob { transform: translateX(16px); background: var(--primary); }
.theme-toggle svg { width: 16px; height: 16px; }

/* Buttons and inputs */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 12px; font: 600 .95rem var(--font); border: 1px solid transparent; cursor: pointer; transition: background .15s, transform .15s, border-color .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-strong); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--primary); }
.input { height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: 1rem var(--font); min-width: 0; width: 100%; }
.input:focus { outline: 2px solid var(--primary-soft); border-color: var(--primary); }

/* Waitlist form */
.waitlist { display: flex; gap: 8px; width: 100%; max-width: 460px; }
.waitlist .input { flex: 1; }
@media (max-width: 480px) { .waitlist { flex-direction: column; } .waitlist .input { flex: none; } .waitlist .btn { width: 100%; } }
.form-note { font-size: .85rem; color: var(--muted); margin-top: 10px; min-height: 1.4em; }
.form-note.ok { color: var(--success); }
.form-note.err { color: var(--danger); }

/* Pills and cards */
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 99px; background: var(--surface); border: 1px solid var(--border); font-size: .82rem; font-weight: 600; color: var(--muted); }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.icon-box { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.icon-box svg { width: 20px; height: 20px; }
.muted { color: var(--muted); }
.grad-text { background: linear-gradient(90deg, var(--primary), #7B5CFF 55%, var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Soft background glow */
.glow { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.glow::before, .glow::after { content: ""; position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; filter: blur(80px); opacity: .35; }
.glow::before { background: radial-gradient(circle, var(--primary) 0%, transparent 60%); top: -30vmax; right: -20vmax; }
.glow::after { background: radial-gradient(circle, var(--accent) 0%, transparent 60%); bottom: -35vmax; left: -25vmax; opacity: .18; }
