/* EQVT public website. Colours and fonts mirror the mobile app theme
   (mobile/src/theme/index.ts) so the site and the app read as one product. */

@font-face { font-family: "Instrument Serif"; src: url("fonts/InstrumentSerif-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("fonts/InstrumentSerif-Italic.ttf") format("truetype"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Amiamie"; src: url("fonts/Amiamie-Light.ttf") format("truetype"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Amiamie"; src: url("fonts/Amiamie-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Amiamie"; src: url("fonts/Amiamie-Black.ttf") format("truetype"); font-weight: 800; font-display: swap; }

:root {
  --bg: #fbfaf9;
  --surface: #ffffff;
  --tint: #f0f4f0;
  --text: #1e2c22;
  --muted: #56705d;
  --accent: #346142;
  --on-accent: #ffffff;
  --border: rgba(0, 0, 0, 0.1);
  --shadow: 0 4px 12px rgba(28, 33, 40, 0.06);
  --heading: "Instrument Serif", Georgia, "Times New Roman", serif;
  --body: "Amiamie", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1e2c22;
    --surface: #26362a;
    --tint: #233327;
    --text: #ebe9dd;
    --muted: #a3b8a6;
    --accent: #9dc0a6;
    --on-accent: #1e2c22;
    --border: rgba(255, 255, 255, 0.12);
    --shadow: none;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
}

a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, .button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--heading); font-weight: 400; letter-spacing: -0.01em; line-height: 1.15; margin: 0; }
h1 { font-size: clamp(2.5rem, 7vw, 4.25rem); }
h2 { font-size: clamp(1.9rem, 4.5vw, 2.75rem); }
h3 { font-size: 1.5rem; }
h1 em, h2 em { color: var(--accent); }
p { margin: 0; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header { border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { font-family: var(--heading); font-size: 1.75rem; letter-spacing: 0.04em; color: var(--text); text-decoration: none; }
.nav { display: flex; align-items: center; gap: 24px; font-size: 0.95rem; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--text); }
.nav a.button, .nav a.button:hover { color: var(--on-accent); }
@media (max-width: 640px) { .nav a:not(.button) { display: none; } }

.button {
  display: inline-block;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 11px 20px;
  border-radius: 999px;
}
.button.ghost { background: transparent; color: var(--text); border: 1px solid var(--border); font-weight: 400; }

/* Hero */
.hero { padding: 88px 0 72px; }
.eyebrow { font-weight: 800; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.hero h1 { max-width: 15ch; }
.lede { font-size: 1.2rem; font-weight: 300; color: var(--muted); max-width: 56ch; margin-top: 24px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.status { margin-top: 20px; font-size: 0.9rem; color: var(--muted); }

/* Sections */
section { padding: 72px 0; }
section.tinted { background: var(--tint); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-intro { max-width: 60ch; color: var(--muted); font-weight: 300; margin-top: 14px; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 16px; margin-top: 40px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 26px; box-shadow: var(--shadow); }
.card .tag { font-weight: 800; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.card h3 { margin: 10px 0 8px; }
.card p { color: var(--muted); font-size: 0.97rem; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; }
.steps li { counter-increment: step; border-top: 1px solid var(--border); padding-top: 18px; }
.steps li::before { content: "0" counter(step); font-family: var(--heading); font-size: 1.6rem; color: var(--accent); }
.steps h3 { margin: 6px 0 8px; }
.steps p { color: var(--muted); font-size: 0.97rem; }

.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 48px; align-items: start; }
.split p + p { margin-top: 14px; }
.split .body { color: var(--muted); }
.facts { margin: 0; padding: 0; list-style: none; }
.facts li { display: flex; justify-content: space-between; gap: 24px; padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 0.97rem; }
.facts li:first-child { border-top: 1px solid var(--border); }
.facts span:first-child { color: var(--muted); }
.facts span:last-child { text-align: right; }

.contact { text-align: center; }
.contact .section-intro { margin-left: auto; margin-right: auto; }
.contact .mail { display: inline-block; margin-top: 28px; font-family: var(--heading); font-size: clamp(1.6rem, 5vw, 2.4rem); overflow-wrap: anywhere; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 40px 0 56px; font-size: 0.88rem; color: var(--muted); }
.site-footer .row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.site-footer .links { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer a { color: var(--muted); }
.disclaimer { margin-top: 24px; max-width: 90ch; font-size: 0.82rem; line-height: 1.55; }

/* Legal pages */
.legal { padding: 64px 0 80px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(2.2rem, 6vw, 3.25rem); }
.legal .updated { color: var(--muted); font-size: 0.9rem; margin-top: 12px; }
.legal h2 { font-size: 1.6rem; margin-top: 44px; }
.legal p, .legal ul { margin-top: 14px; }
.legal ul { padding-left: 22px; }
.legal li + li { margin-top: 6px; }
