/* FrontPrompt landing — white, gold, turquoise, silver; black for text.
   Visual language borrowed from the app's Login screen: metallic chat
   bubble title with ✔✔ read receipts and side-borderless inputs. The hero
   shows database tables floating in 3D whose joins light up. */

/* Hidden SVG icon sprite (kept out of inline styles for the CSP) */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

:root {
  --white: #ffffff;
  --ink: #0b0b0c;
  --ink-2: #4a4d52;
  --ink-3: #7b7f86;

  --gold: #d4af37;
  --gold-soft: #f3e6bd;
  --gold-text: #8a6a12;   /* gold dark enough for text on white */

  --turq: #40e0d0;
  --turq-soft: #dcf8f5;
  --turq-text: #0b7c72;   /* turquoise dark enough for text on white */

  --silver-1: #f5f7fa;
  --silver-2: #e2e8f0;
  --silver-3: #c0c0c0;
  --silver-4: #94a3b8;
  --line: #e4e7eb;

  --metal: linear-gradient(1deg, #f5f7fa 0%, #c0c0c0 100%),
           radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.8) 0%, transparent 60%),
           linear-gradient(to bottom, #e2e8f0, #94a3b8);

  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(11, 11, 12, 0.05), 0 2px 8px rgba(11, 11, 12, 0.04);
  --shadow-md: 0 10px 30px -12px rgba(11, 11, 12, 0.18);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'Cascadia Code', Consolas, monospace;
  --max: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body { overflow-x: hidden; }
::selection { background: var(--turq-soft); }

.mono { font-family: var(--mono); }
.ico {
  width: 18px; height: 18px;
  fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
  flex: none;
}
.ico--lg { width: 26px; height: 26px; color: var(--gold-text); }

/* ── Chat bubble (from Login.svelte) ─────────────────────────────── */
.bubble {
  position: relative;
  display: inline-block;
  background: var(--metal);
  color: var(--gold);
  font-weight: 700;
  padding: 0.45rem 2rem 0.5rem 0.95rem;
  border-radius: 1rem 1rem 0.25rem 1rem;
  border: 1px solid #cbd5e1;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  line-height: 1.2;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}
.checks {
  position: absolute;
  right: 0.5rem;
  bottom: 0.18rem;
  font-size: 0.6rem;
  letter-spacing: -0.14em;
  color: var(--turq);
  filter: drop-shadow(0 0 5px #00ffff);
  transform: scale(1.25);
  font-weight: 400;
  text-shadow: none;
}
.bubble--sm { font-size: 0.98rem; padding: 0.3rem 1.7rem 0.34rem 0.75rem; }
.bubble--sm .checks { font-size: 0.5rem; right: 0.42rem; }
.bubble--xl {
  font-size: clamp(1.8rem, 3.9vw, 2.9rem);
  white-space: nowrap;
  letter-spacing: -0.03em;
  padding: 0.55rem 3.2rem 0.65rem 1.25rem;
  border-radius: 1.6rem 1.6rem 0.4rem 1.6rem;
}
.bubble--xl .checks { font-size: 0.95rem; right: 0.9rem; bottom: 0.45rem; }

/* ── Buttons ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.78rem 1.35rem;
  border-radius: 999px;
  font: 600 0.95rem/1 var(--font);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--gold {
  background: linear-gradient(180deg, #e4c45b, var(--gold));
  color: var(--ink);
  box-shadow: 0 8px 22px -8px rgba(212, 175, 55, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.btn--gold:hover { box-shadow: 0 12px 26px -8px rgba(212, 175, 55, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.btn--ghost { background: var(--white); color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--silver-3); }
.btn--turq {
  background: var(--turq);
  color: var(--ink);
  border-radius: 0.6rem;
  box-shadow: 0 8px 22px -10px rgba(64, 224, 208, 0.9);
}
.btn--turq:hover { box-shadow: 0 10px 26px -8px rgba(64, 224, 208, 1); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.btn:focus-visible, a:focus-visible, select:focus-visible {
  outline: 2px solid var(--turq-text);
  outline-offset: 3px;
}

/* ── Nav ─────────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 1.4rem; }
.nav-links a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links .nav-cta {
  color: var(--ink);
  padding: 0.42rem 0.9rem;
  border: 1px solid var(--gold);
  border-radius: 999px;
}
.nav-links .nav-cta:hover { background: var(--gold-soft); }
.nav-social { display: inline-flex; align-items: center; gap: 0.4rem; margin-left: -0.6rem; }
.nav-links .nav-icon {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--ink-2);
  transition: color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.nav-links .nav-icon:hover {
  color: var(--gold-text);
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-soft);
}
.nav-icon .ico { width: 16px; height: 16px; }
.nav-icon .ico--x { width: 13px; height: 13px; fill: currentColor; stroke: none; }
#lang {
  padding: 0.32rem 0.45rem;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  background: var(--white);
  color: var(--ink);
  font: 500 0.8rem var(--mono);
  cursor: pointer;
}

/* ── Hero ────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1rem, 4vw, 2.5rem) clamp(3rem, 6vw, 5rem);
}
.grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(148, 163, 184, 0.16) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 184, 0.16) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1.4rem;
  padding: 0.3rem 0.75rem 0.3rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font: 500 0.78rem var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-2);
  background: var(--white);
}
.dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--turq);
  box-shadow: 0 0 0 3px var(--turq-soft), 0 0 10px var(--turq);
  animation: blink 2.4s ease-in-out infinite;
}
@keyframes blink { 50% { opacity: 0.35; } }

.hero h1 {
  margin: 0 0 1.3rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.8rem;
  font-weight: 700;
}
.hero-title-2 {
  font-size: clamp(1.8rem, 3.9vw, 2.9rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--ink);
  padding-left: 0.2rem;
}
.hero-sub {
  margin: 0 0 1.9rem;
  max-width: 33rem;
  font-size: 1.07rem;
  color: var(--ink-2);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 2rem; }
.engines {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.engines li {
  font: 500 0.78rem var(--mono);
  color: var(--ink-2);
  padding: 0.3rem 0.65rem;
  border-radius: 0.4rem;
  background: var(--silver-1);
  border: 1px solid var(--line);
}

/* Schema graph — canvas with tables in 3D space (see app.js) */
.hero-visual { position: relative; }
.schema {
  position: relative;
  margin: 0;
  aspect-ratio: 3 / 2;
  width: 100%;
  -webkit-mask-image: radial-gradient(ellipse 68% 70% at 55% 47%, #000 58%, transparent 100%);
  mask-image: radial-gradient(ellipse 68% 70% at 55% 47%, #000 58%, transparent 100%);
}
.schema-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

/* Chat demo card */
.demo {
  position: absolute;
  left: -4%;
  bottom: -6%;
  width: min(330px, 78%);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.demo-q { display: flex; justify-content: flex-end; }
.bubble--q {
  font-size: 0.86rem;
  font-weight: 600;
  min-height: 2rem;
  max-width: 100%;
  padding-right: 2.1rem;
}
.caret {
  display: inline-block;
  width: 2px;
  height: 0.95em;
  margin-left: 2px;
  vertical-align: -0.12em;
  background: var(--gold-text);
  animation: caret 1s steps(1) infinite;
}
.demo.is-done .caret { display: none; }
@keyframes caret { 50% { opacity: 0; } }

.demo-a {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: 1rem 1rem 1rem 0.25rem;
  box-shadow: var(--shadow-md);
  padding: 0.85rem 0.95rem 0.8rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.demo.is-done .demo-a { opacity: 1; transform: none; }
.demo-a-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.45rem; }
.demo-label { font-size: 0.7rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.05em; }
.demo-total { font-size: 1.05rem; font-weight: 500; color: var(--ink); }
.demo-chart { display: block; width: 100%; height: 64px; }
.demo-chart .axis { stroke: var(--line); stroke-width: 1; }
.demo-chart .bar {
  fill: var(--silver-2);
  transform-origin: bottom;
  transform-box: fill-box;
  transform: scaleY(0);
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.demo-chart .bar--hi { fill: var(--gold); }
.demo.is-done .bar { transform: scaleY(1); }
.demo.is-done .bar:nth-child(3) { transition-delay: 0.06s; }
.demo.is-done .bar:nth-child(4) { transition-delay: 0.12s; }
.demo.is-done .bar:nth-child(5) { transition-delay: 0.18s; }
.demo-x {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
  font-size: 0.65rem;
  color: var(--ink-3);
  margin: 0.2rem 0 0.6rem;
}
.footnotes { display: flex; flex-wrap: wrap; gap: 0.35rem; border-top: 1px dashed var(--line); padding-top: 0.6rem; }
.fn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.68rem;
  color: var(--ink-2);
  padding: 0.18rem 0.5rem 0.18rem 0.22rem;
  border-radius: 999px;
  background: var(--silver-1);
  border: 1px solid var(--line);
}
.fn i, .fn-list i {
  font-style: normal;
  font: 500 0.6rem var(--mono);
  width: 1.05rem; height: 1.05rem;
  display: inline-grid; place-items: center;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--gold-text);
  flex: none;
}
.fn--fresh i, .fn-list .fresh i { background: var(--turq-soft); color: var(--turq-text); }

/* ── Sections ────────────────────────────────────────────────────── */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 6rem) clamp(1rem, 4vw, 2.5rem);
}
.section-head { max-width: 40rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-text);
}
.section h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 700;
}

/* How it works */
.how { border-top: 1px solid var(--line); }
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  position: relative;
}
.steps::before {
  content: '';
  position: absolute;
  top: 3.15rem;
  left: 1.4rem;
  right: 1.4rem;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), var(--silver-3) 50%, var(--turq));
  opacity: 0.7;
}
.step { position: relative; padding: 0 1.4rem 0 0; }
.step-n {
  display: block;
  font-size: 0.72rem;
  color: var(--ink-3);
  margin-bottom: 0.9rem;
}
.step .ico--lg {
  position: relative;
  box-sizing: content-box;
  padding: 0.6rem;
  border-radius: 0.8rem;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.step:last-child .ico--lg { color: var(--turq-text); }
.step h3 { margin: 1.1rem 0 0.4rem; font-size: 1.05rem; letter-spacing: -0.01em; }
.step p { margin: 0; color: var(--ink-2); font-size: 0.93rem; }

/* Features bento */
.features { border-top: 1px solid var(--line); }
.bento {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.card::after {
  /* glowing top border, brightest in the center — like the Login inputs */
  content: '';
  position: absolute;
  left: 12%; right: 12%; top: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.card:hover { border-color: var(--silver-3); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card:hover::after { opacity: 1; }
.card h3 { margin: 1rem 0 0.45rem; font-size: 1.05rem; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--ink-2); font-size: 0.93rem; }
.card--wide { grid-column: span 2; }
.card--tall { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; }
.badge {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--turq-text);
  background: var(--turq-soft);
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
}

.card--feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.2rem;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(212, 175, 55, 0.08), transparent 55%),
    var(--white);
}
.fn-list {
  list-style: none;
  margin: 0;
  padding: 0.8rem;
  display: grid;
  gap: 0.45rem;
  font-size: 0.75rem;
  background: var(--silver-1);
  border: 1px solid var(--line);
  border-radius: 0.7rem;
}
.fn-list li { display: grid; grid-template-columns: auto 6.2rem 1fr; align-items: center; gap: 0.55rem; }
.fn-list span { color: var(--ink-3); }
.fn-list b { font-weight: 500; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.sec-viz {
  margin-top: auto;
  padding-top: 1.4rem;
  display: grid;
  gap: 0.55rem;
  font-size: 0.75rem;
}
.sec-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  background: var(--metal);
  color: var(--ink);
}
.sec-row--child { margin-left: 1.2rem; background: var(--white); color: var(--ink-2); }
.sec-row em {
  flex: 1;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--silver-3) 0 4px, transparent 4px 8px);
}
.pill {
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold-text);
}
.pill--t { background: var(--turq-soft); color: var(--turq-text); }

.card--split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 1.4rem; align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; justify-content: flex-end; }
.chip {
  font-size: 0.7rem;
  padding: 0.25rem 0.55rem;
  border-radius: 0.4rem;
  background: var(--silver-1);
  border: 1px solid var(--line);
  color: var(--ink-2);
}
.chip--err { color: #a1271b; border-color: #f1d0cc; background: #fdf3f2; }
.chip--warn { color: var(--gold-text); border-color: #ecdca5; background: #fcf7e8; }
.chip--t { color: var(--turq-text); border-color: #b7ece6; background: #f0fcfa; }

/* ── Waitlist card (Login card) ──────────────────────────────────── */
.waitlist { border-top: 1px solid var(--line); }
.waitlist-hint { margin: 0.8rem 0 0; color: var(--ink-2); }
.wl-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: var(--white);
  /* border: 1px solid var(--line); */
  border-radius: 1rem;
  /* box-shadow: var(--shadow-md); */
}
/* PCB background: static inline SVG (gold traces, pads, vias, SMD chips)
   on the light turquoise used for text selection. Works without JS;
   app.js only lights the traces in cascade after a successful sign-up. */
.wl-pcb {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  /* background: var(--turq-soft); */
  background: #ffffff;
}
.pcb { display: block; width: 100%; height: 100%; }
.pcb-traces path {
  fill: none;
  stroke: #c9a227;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.75;
  transition: stroke 0.5s ease, opacity 0.5s ease, stroke-width 0.5s ease;
}
.pcb-traces path.is-lit {
  stroke: var(--gold);
  stroke-width: 2.2;
  opacity: 1;
  filter: drop-shadow(0 0 3px rgba(212, 175, 55, 0.9));
  transition-duration: 0.08s;
}
.pcb-pads circle { fill: var(--turq-soft); stroke: #c9a227; stroke-width: 1.5; }
.pcb-vias circle { fill: #c9a227; }
.pcb-smd rect { fill: var(--gold); }
.pcb-chips rect { fill: rgba(255, 255, 255, 0.55); stroke: #c9a227; stroke-width: 1.2; }

.wl-title { display: flex; justify-content: flex-end; }
.wl-title .bubble { font-size: 1.35rem; }
.wl-sub { margin: -0.5rem 0 0; text-align: right; font-size: 0.875rem; color: var(--ink); text-shadow: 0 0 4px var(--turq-soft), 0 0 8px var(--turq-soft); }
.wl-spacer { height: clamp(4rem, 3vw, 6rem); }

.field { position: relative; }
.field input {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: none;
  outline: none;
  border-radius: 0;
  font: 1rem var(--font);
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  text-align: center;
}
.field input::placeholder { color: var(--ink-3); }
.field textarea {
  display: block;
  width: 100%;
  min-height: 5.2rem;
  padding: 0.65rem 0.85rem;
  border: none;
  outline: none;
  border-radius: 0;
  resize: vertical;
  font: 0.95rem/1.45 var(--font);
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
}
.field textarea::placeholder { color: var(--ink-3); text-align: center; }
.field::before, .field::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.45;
  transition: opacity 0.25s ease, box-shadow 0.25s ease;
  pointer-events: none;
}
.field::before { top: 0; }
.field::after { bottom: 0; }
.field:focus-within::before, .field:focus-within::after {
  opacity: 1;
  box-shadow: 0 0 9px 1px var(--gold);
}
.honeypot {
  position: absolute !important;
  left: -9999px;
  height: 1px;
  width: 1px;
  opacity: 0;
}
.wl-card .btn--turq { width: 100%; padding: 0.8rem 1rem; font-size: 1rem; }
.wl-status { min-height: 1.4em; margin: 0; font-size: 0.9rem; text-align: center; }
.wl-status.ok { color: var(--turq-text); font-weight: 600; }
.wl-status.err { color: #a1271b; }

/* ── Footer ──────────────────────────────────────────────────────── */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.75rem clamp(1rem, 4vw, 2.5rem) 2.25rem;
  border-top: 1px solid var(--line);
}
.footer-meta { font-size: 0.78rem; color: var(--ink-3); }

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { max-width: 620px; margin: 0 auto; width: 100%; }
  .demo { left: 0; bottom: -8%; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card--tall { grid-row: auto; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.5rem; }
  .steps::before { display: none; }
}
@media (max-width: 640px) {
  .nav-links a:not(.nav-cta):not(.nav-icon) { display: none; }
  .nav-links { gap: 0.6rem; }
  .nav-social { margin-left: 0; gap: 0.3rem; }
  .nav-links .nav-icon { width: 1.85rem; height: 1.85rem; }
  .nav-links .nav-cta { white-space: nowrap; padding: 0.38rem 0.7rem; font-size: 0.82rem; }
  .nav { gap: 0.5rem; }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .card--wide, .card--tall { grid-column: auto; }
  .card--split { grid-template-columns: minmax(0, 1fr); }
  .chips { justify-content: flex-start; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .demo { position: relative; left: auto; bottom: auto; width: 100%; margin-top: -2.5rem; }
  .bubble--xl { white-space: normal; }
  .fn-list li { grid-template-columns: auto 5.2rem 1fr; }
  .wl-card { padding: 1.5rem; }
}

/* Narrow phones: compact nav so brand, CTA, social icons and ES/EN fit */
@media (max-width: 420px) {
  .nav { padding-left: 0.75rem; padding-right: 0.75rem; }
  .nav-links { gap: 0.4rem; }
  .nav .bubble--sm { font-size: 0.86rem; padding: 0.26rem 1.45rem 0.3rem 0.6rem; }
  .nav .bubble--sm .checks { right: 0.34rem; }
  .nav-links .nav-cta { padding: 0.34rem 0.6rem; font-size: 0.78rem; }
  .nav-links .nav-icon { width: 1.7rem; height: 1.7rem; }
  #lang { padding: 0.28rem 0.3rem; }
}
/* Very narrow: the hero CTA right below takes over the nav CTA */
@media (max-width: 360px) {
  .nav-links .nav-cta { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
