/*
  Elevalo Marketing, apex landing page.

  Values are the real design tokens from elevalo-website/src/styles/tokens.css,
  copied rather than imported because this page ships on its own and must not
  depend on the staging build. Anything changed here has to change there too.
*/

:root {
  --accent: #dd404d;
  --accent-strong: #db3341;
  --accent-hover: #c72331;
  --ink: #16202e;
  --ink-deep: #0d1420;
  --page: #ffffff;
  --surface: #f4f6f9;
  --text-muted: rgba(22, 32, 46, 0.65);
  --text-soft: rgba(22, 32, 46, 0.5);
  --on-dark-muted: rgba(255, 255, 255, 0.72);
  --border: rgba(13, 20, 32, 0.1);
  --border-mid: rgba(13, 20, 32, 0.15);
  --border-on-dark: rgba(255, 255, 255, 0.12);
  --sans: 'Archivo', system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  --measure: 68ch;
  --shell: 68rem;
}

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url('/fonts/archivo-var.woff2') format('woff2');
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* The brand rule that opens every Elevalo Open Graph card. */
.rule { height: 10px; background: var(--accent); }

.shell {
  max-width: var(--shell);
  margin: 0 auto;
  padding-inline: 1.5rem;
}

a { color: var(--accent-strong); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--accent-hover); }

h1, h2, h3 { font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; margin: 0; }

h1 {
  font-size: clamp(2.25rem, 1.4rem + 3.6vw, 3.375rem);
  letter-spacing: -0.025em;
  line-height: 1.04;
  max-width: 20ch;
}

h2 { font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.125rem); max-width: 24ch; }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; }

p { margin: 0 0 1.1rem; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin: 0 0 1.25rem;
}

/* ---- masthead --------------------------------------------------------- */

.masthead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--border);
}

.wordmark {
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--accent-strong);
  text-decoration: none;
}

.masthead nav { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; font-size: 0.9375rem; }
.masthead nav a { color: var(--text-muted); text-decoration: none; }
.masthead nav a:hover { color: var(--ink); }

/* ---- sections --------------------------------------------------------- */

section { padding-block: 4.5rem; border-bottom: 1px solid var(--border); }
section:last-of-type { border-bottom: 0; }

.hero { padding-block: 5rem 4.5rem; }
.hero .lede {
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.25rem);
  color: var(--text-muted);
  max-width: 58ch;
  margin-top: 1.75rem;
}

.actions { display: flex; flex-wrap: wrap; gap: 0.875rem; margin-top: 2.25rem; }

.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: 4px;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: 1px solid transparent;
}
.btn-primary { background: var(--accent-strong); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-ghost { border-color: var(--border-mid); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }

.section-head { margin-bottom: 2.75rem; }
.section-head p { color: var(--text-muted); margin-top: 1rem; }

/* ---- grids ------------------------------------------------------------ */

.grid {
  display: grid;
  gap: 2rem 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
}

.card { border-top: 2px solid var(--ink); padding-top: 1rem; }
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--text-muted); font-size: 1rem; margin: 0; max-width: 42ch; }

.steps { counter-reset: step; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.steps .card { border-top-color: var(--accent); }
.steps .card h3::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--accent-strong);
  margin-bottom: 0.4rem;
}

.tags { display: flex; flex-wrap: wrap; gap: 0.625rem; margin: 0; padding: 0; list-style: none; }
.tags li {
  border: 1px solid var(--border-mid);
  border-radius: 999px;
  padding: 0.4rem 0.95rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* ---- people ----------------------------------------------------------- */

.people { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); margin-top: 2rem; }
.person { background: var(--surface); padding: 1.5rem; border-radius: 6px; }
.person strong { display: block; font-size: 1.0625rem; }
.person span { color: var(--text-soft); font-size: 0.9375rem; }

/* ---- faq -------------------------------------------------------------- */

.faq { border-top: 1px solid var(--border); }
.faq h3 { padding-top: 1.75rem; margin-bottom: 0.75rem; font-size: 1.125rem; }
.faq div { border-bottom: 1px solid var(--border); padding-bottom: 1.75rem; }
.faq p { color: var(--text-muted); }

/* ---- contact band ----------------------------------------------------- */

.band { background: var(--ink); color: #fff; border: 0; }
.band h2 { color: #fff; margin-bottom: 1.25rem; }
.band p { color: var(--on-dark-muted); }
.band a { color: #fff; }

.contact { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); margin-top: 2.5rem; }
.contact h3 { font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-dark-muted); font-weight: 700; margin-bottom: 0.75rem; }
.contact p, .contact address { font-style: normal; color: #fff; margin: 0; line-height: 1.6; }
.contact .note { color: var(--on-dark-muted); font-size: 0.875rem; margin-top: 0.5rem; }

/* ---- footer ----------------------------------------------------------- */

footer { background: var(--ink-deep); color: var(--on-dark-muted); font-size: 0.875rem; padding-block: 2.5rem; }
footer .rows { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: baseline; }
footer nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }
footer a { color: #fff; text-decoration: none; }
footer a:hover { text-decoration: underline; }
footer .legal { border-top: 1px solid var(--border-on-dark); margin-top: 1.75rem; padding-top: 1.5rem; max-width: 70ch; }

/* ---- legal documents -------------------------------------------------- */

.doc { padding-block: 3.5rem 4.5rem; }
.doc h1 { font-size: clamp(2rem, 1.6rem + 1.6vw, 2.5rem); max-width: 24ch; }
.doc .updated { color: var(--text-soft); font-size: 0.9375rem; margin-top: 0.75rem; }
.doc h2 { font-size: 1.375rem; margin: 2.75rem 0 0.875rem; max-width: var(--measure); }
.doc h3 { font-size: 1.125rem; margin: 1.75rem 0 0.625rem; }
.doc ul { max-width: var(--measure); padding-left: 1.25rem; }
.doc li { margin-bottom: 0.4rem; }
.doc table { border-collapse: collapse; margin: 1.25rem 0; font-size: 0.9375rem; width: 100%; }
.doc th, .doc td { border: 1px solid var(--border-mid); padding: 0.6rem 0.75rem; text-align: left; vertical-align: top; }
.doc th { background: var(--surface); font-weight: 600; }
.doc .table-wrap { overflow-x: auto; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* Entity fact block, mirroring components/sections/EntityDetails.astro. */
.entity {
  display: grid;
  gap: 1rem;
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--surface);
  border-radius: 6px;
  max-width: var(--measure);
}
.entity .row { display: grid; grid-template-columns: 16rem 1fr; gap: 1rem; align-items: start; }
.entity dt { font-size: 0.8125rem; font-weight: 600; color: var(--text-muted); }
.entity dd { margin: 0; display: grid; font-size: 1rem; line-height: 1.35; }
@media (max-width: 640px) {
  .entity .row { grid-template-columns: 1fr; gap: 0.25rem; }
}
