/* Lampo website — same palette as the app (lib/core/theme.dart). */
@font-face {
  font-family: "Sora";
  src: url("fonts/Sora-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Sora";
  src: url("fonts/Sora-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-display: swap;
}

:root {
  --magenta: #e23cff;
  --violet: #7c4dff;
  --cyan: #22e1ff;
  --bg: #07060f;
  --surface: #110f1e;
  --surface2: #1a1730;
  --outline: #2a2645;
  --text: #f4f2ff;
  --muted: #9c97bd;
  --link: #6fe9ff;
  --glow: rgba(124, 77, 255, 0.28);
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f5f4fb;
    --surface: #ffffff;
    --surface2: #edebf7;
    --outline: #dcd8ee;
    --text: #14112a;
    --muted: #5d5880;
    --link: #5b2fe0;
    --glow: rgba(124, 77, 255, 0.14);
    color-scheme: light;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto,
    "Helvetica Neue", Arial, sans-serif;
  overflow-x: hidden;
}
a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
img { max-width: 100%; height: auto; }
h1, h2, h3, .brand { font-family: Sora, -apple-system, "Segoe UI", sans-serif; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }

/* ---------------------------------------------------------------- header */
.top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 18px 0;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none; font-weight: 800; font-size: 20px;
}
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.top nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.top nav a {
  color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px;
  padding: 8px 10px; border-radius: 10px;
}
.top nav a:hover { color: var(--text); background: var(--surface2); }
.lang {
  font: inherit; font-weight: 700; font-size: 13px; letter-spacing: .04em;
  color: var(--text); background: var(--surface2); border: 1px solid var(--outline);
  border-radius: 999px; padding: 7px 12px; cursor: pointer; min-height: 36px;
}

/* ------------------------------------------------------------------ hero */
.hero { position: relative; text-align: center; padding-top: 56px; padding-bottom: 40px; }
.hero::before {
  content: ""; position: absolute; inset: -80px 0 auto; height: 520px; z-index: -1;
  background:
    radial-gradient(40% 50% at 30% 40%, rgba(226, 60, 255, .22), transparent 70%),
    radial-gradient(40% 50% at 70% 35%, rgba(34, 225, 255, .18), transparent 70%),
    radial-gradient(50% 60% at 50% 50%, var(--glow), transparent 75%);
  pointer-events: none;
}
.hero .icon {
  width: 112px; height: 112px; border-radius: 28px;
  box-shadow: 0 18px 60px rgba(124, 77, 255, .45);
}
.hero h1 {
  font-size: clamp(34px, 7vw, 60px); line-height: 1.08; letter-spacing: -.02em;
  margin: 28px auto 16px; max-width: 14ch;
}
.grad {
  background: linear-gradient(90deg, var(--magenta), var(--violet) 50%, var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead {
  font-size: clamp(17px, 2.4vw, 20px); color: var(--muted);
  max-width: 600px; margin: 0 auto 28px;
}
.stores { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.store {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px;
  padding: 10px 20px; border-radius: 14px; text-decoration: none;
  font-weight: 700; color: #fff;
  background: linear-gradient(90deg, var(--magenta), var(--violet));
  box-shadow: 0 8px 28px rgba(124, 77, 255, .35);
}
.store small { display: block; font-weight: 600; font-size: 11px; opacity: .85; }
.store span { text-align: left; line-height: 1.2; }
.store svg { width: 24px; height: 24px; flex: none; fill: currentColor; }
.store.secondary {
  background: var(--surface2); color: var(--text); box-shadow: none;
  border: 1px solid var(--outline);
}
.store.soon { opacity: .7; cursor: default; }
.metrics {
  display: flex; justify-content: center; gap: 10px; flex-wrap: wrap;
  margin: 34px 0 0; padding: 0; list-style: none;
}
.metrics li {
  font-size: 14px; font-weight: 700; padding: 6px 12px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--outline); color: var(--muted);
}
.metrics b { font-weight: 800; }

/* -------------------------------------------------------------- features */
.features {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px; padding-top: 32px; padding-bottom: 24px;
}
.card {
  background: var(--surface); border: 1px solid var(--outline);
  border-radius: 20px; padding: 22px;
}
.card .ic {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--surface2); margin-bottom: 14px;
}
.card .ic svg { width: 24px; height: 24px; }
.card h3 { margin: 0 0 6px; font-size: 18px; line-height: 1.3; }
.card p { margin: 0; color: var(--muted); }
.note { text-align: center; color: var(--muted); font-size: 14px; padding-top: 8px; padding-bottom: 40px; }

/* ----------------------------------------------------------- prose pages */
.prose { padding-top: 16px; padding-bottom: 48px; overflow-wrap: break-word; }
.prose h1 { font-size: clamp(26px, 5vw, 40px); line-height: 1.15; margin: 16px 0 8px; }
.prose h2 {
  font-size: 24px; margin: 40px 0 8px; padding-top: 8px;
  border-top: 1px solid var(--outline);
}
.prose h3 { font-size: 18px; margin: 28px 0 6px; }
.prose p, .prose li { color: var(--text); }
.prose em { color: var(--muted); }
.prose .toc { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 0; }
.prose .toc a {
  padding: 6px 12px; border-radius: 999px; background: var(--surface2);
  text-decoration: none; font-weight: 700; font-size: 14px; color: var(--text);
}
.table { overflow-x: auto; margin: 12px 0; border: 1px solid var(--outline); border-radius: 14px; }
.table table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 15px; }
.table th, .table td { text-align: left; vertical-align: top; padding: 10px 12px; }
.table th { background: var(--surface2); font-weight: 700; }
.table tr + tr td { border-top: 1px solid var(--outline); }
.faq details {
  background: var(--surface); border: 1px solid var(--outline);
  border-radius: 16px; padding: 4px 18px; margin: 10px 0;
}
.faq summary {
  cursor: pointer; font-weight: 700; padding: 12px 0 12px 26px;
  list-style: none; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: ""; position: absolute; left: 2px; top: 19px; width: 8px; height: 8px;
  border-right: 2px solid var(--link); border-bottom: 2px solid var(--link);
  transform: rotate(-45deg);
}
.faq details[open] summary::before { transform: rotate(45deg); top: 16px; }
@media (prefers-reduced-motion: no-preference) {
  .faq summary::before { transition: transform .15s ease; }
}
.faq details p { margin: 0 0 14px; color: var(--muted); }
.contact {
  margin-top: 28px; padding: 22px; border-radius: 20px; text-align: center;
  background: var(--surface); border: 1px solid var(--outline);
}
.contact a.mail { font-size: 20px; font-weight: 800; word-break: break-all; }

/* ---------------------------------------------------------------- footer */
footer {
  border-top: 1px solid var(--outline); padding: 24px 0 40px;
  color: var(--muted); font-size: 14px;
}
footer .row { display: flex; gap: 8px 18px; flex-wrap: wrap; align-items: center; }
footer a { color: var(--muted); }
footer p { margin: 10px 0 0; font-size: 13px; }

/* i18n: elements carry both languages; only the active one is shown. */
html[lang="es"] [data-l="en"], html[lang="en"] [data-l="es"] { display: none !important; }

@media (max-width: 520px) {
  .hero { padding-top: 32px; }
  .hero .icon { width: 92px; height: 92px; border-radius: 24px; }
  .top nav a.hide-s { display: none; }
}
/* Legal tables become stacked cards on phones (no sideways scrolling). */
@media (max-width: 640px) {
  .table { overflow: visible; border: 0; }
  .table table { min-width: 0; }
  .table thead { display: none; }
  .table tr { display: block; border: 1px solid var(--outline); border-radius: 14px;
    margin: 0 0 10px; padding: 6px 0; background: var(--surface); }
  .table tr + tr td { border-top: 0; }
  .table td { display: block; padding: 4px 14px; }
  .table td::before { content: attr(data-label); display: block; font-size: 12px;
    font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
}
@media (prefers-reduced-motion: no-preference) {
  .store { transition: transform .15s ease; }
  .store:not(.soon):hover { transform: translateY(-2px); }
}
