/* Vocablo landing page. Colours mirror the app (web/src/app.css). */

:root {
  --primary: #4f46e5; --primary-dark: #4338ca; --link: #4f46e5; --accent: #7c3aed;
  --bg: #ffffff; --bg-2: #f8fafc; --text: #0f172a; --muted: #475569; --line: #e2e8f0; --error: #b91c1c;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0f172a; --bg-2: #1e293b; --text: #f8fafc; --muted: #cbd5e1; --line: #334155; --link: #a5b4fc; --accent: #c4b5fd; --error: #fca5a5; }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--text); line-height: 1.6;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
h1, h2, h3, p, dl, dd { margin: 0; }
a { color: var(--link); }
:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.wrap { width: 100%; max-width: 64rem; margin: 0 auto; padding: 0 1.25rem; }
.wrap--narrow { max-width: 46rem; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 10; background: var(--primary); color: #fff; padding: .5rem 1rem; border-radius: .5rem; }
.skip:focus { top: 1rem; }

.topbar { position: sticky; top: 0; z-index: 5; background: var(--bg); border-bottom: 1px solid var(--line); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; min-height: 4rem; }
.wordmark { font-size: 1.25rem; font-weight: 700; text-decoration: none; }

.hero { padding: 5rem 0 4rem; text-align: center; background: linear-gradient(var(--bg-2), var(--bg)); }
.pill { display: inline-block; padding: .375rem 1rem; margin-bottom: 1.5rem; border: 1px solid var(--line); border-radius: 999px; color: var(--link); font-size: .875rem; font-weight: 600; }
.hero h1 { font-size: clamp(2.25rem, 7vw, 3.75rem); line-height: 1.1; letter-spacing: -.02em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.lead { max-width: 36rem; margin: 1.5rem auto 0; color: var(--muted); font-size: 1.1875rem; }
.ctas { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 2.25rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 3.25rem; padding: .75rem 1.5rem; border: 2px solid transparent; border-radius: .75rem; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-dark); }
.btn--outline { border-color: var(--line); color: var(--text); }
.btn--outline:hover { background: var(--bg-2); }
.btn--block { width: 100%; }
.btn[aria-busy="true"] { opacity: .7; cursor: progress; }
.stats { display: flex; justify-content: center; gap: clamp(1.5rem, 8vw, 3.5rem); margin-top: 3.5rem; }
.stats dt { font-size: 1.75rem; font-weight: 700; color: var(--link); }
.stats dd { color: var(--muted); font-size: .875rem; }

.features, .contact { padding: 4rem 0; scroll-margin-top: 4rem; }
.features h2, .contact h2 { text-align: center; font-size: 1.875rem; line-height: 1.2; }
.features__grid { display: grid; gap: 1.5rem; margin-top: 2.5rem; }
.feature { padding: 1.5rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--bg-2); }
.feature__emoji { font-size: 1.75rem; }
.feature h3 { margin: .5rem 0; font-size: 1.125rem; }
.feature p, .contact__intro { color: var(--muted); }
@media (min-width: 760px) { .features__grid { grid-template-columns: repeat(3, 1fr); } }

.contact { background: var(--bg-2); }
.contact__intro { text-align: center; margin: .75rem 0 2rem; }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: 1rem; padding: clamp(1.25rem, 4vw, 2rem); }
.form { display: grid; gap: 1.25rem; }
.field { display: grid; gap: .375rem; }
.field label { font-size: .875rem; font-weight: 600; }
.field input, .field textarea { width: 100%; padding: .75rem .875rem; font: inherit; color: var(--text); background: var(--bg-2); border: 1px solid var(--line); border-radius: .5rem; }
.field textarea { resize: vertical; }
.field--pot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { color: var(--error); }
@media (min-width: 640px) {
  .form { grid-template-columns: 1fr 1fr; }
  .field--wide, .form__status { grid-column: 1 / -1; }
}
.form-done { text-align: center; }
.form-done p { color: var(--muted); margin-top: .5rem; }

.legal { padding-top: 2.5rem; padding-bottom: 4rem; }
.legal h1 { font-size: 1.875rem; }
.legal h2 { margin: 2rem 0 .5rem; font-size: 1.125rem; }
.legal h3 { margin: 1rem 0 .25rem; font-size: 1rem; }
.legal p, .legal li { color: var(--muted); }
.legal article > p { margin-top: .75rem; }
.legal__date { font-size: .875rem; }
.notice { padding: 1rem; border-left: 4px solid var(--primary); border-radius: .5rem; background: var(--bg-2); }

.footer { padding: 2rem 1.25rem; border-top: 1px solid var(--line); text-align: center; font-size: .875rem; color: var(--muted); }
