/* EVAC site — shared design system.
   Type + restraint per exemplar research: display ≤ weight 600, −2% tracking,
   short declarative headlines, one idea per section, red reserved for live
   emergencies (device mocks only). */

:root {
  --navy: #0D1A2E;
  --navy-deep: #0A1426;
  --brand: #3D6FD4;
  --brand-dark: #2F58AC;
  --brand-light: #6FA0FF;
  --alert: #E8001D;
  --paper: #FFFFFF;
  --paper-warm: #FAFAF8;
  --ink: #1D1D1F;
  --ink-2: #6E6E73;
  --ink-3: #9B9BA1;
  --line: rgba(13, 26, 46, 0.10);
  --safe: #16A34A;
  --safe-bg: #E4F6E9;
  --r-card: 24px;
  --r-input: 12px;
  --shadow-lg: 0 30px 80px rgba(13, 26, 46, 0.14);
  --shadow-md: 0 12px 36px rgba(13, 26, 46, 0.10);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--brand); text-decoration: none; }
img, svg { display: block; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 28px; }
.container-narrow { max-width: 820px; margin: 0 auto; padding: 0 28px; }

/* ---------- Type scale ---------- */
.display {
  font-size: clamp(46px, 7.4vw, 84px);
  font-weight: 650;
  letter-spacing: -0.028em;
  line-height: 1.03;
}
.headline {
  font-size: clamp(32px, 4.6vw, 54px);
  font-weight: 640;
  letter-spacing: -0.024em;
  line-height: 1.08;
}
.title {
  font-size: clamp(21px, 2.4vw, 27px);
  font-weight: 620;
  letter-spacing: -0.014em;
  line-height: 1.25;
}
.lede {
  font-size: clamp(17px, 1.9vw, 21px);
  color: var(--ink-2);
  font-weight: 420;
  line-height: 1.5;
}
.eyebrow {
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; border: none; cursor: pointer;
  font-family: inherit; font-weight: 600; font-size: 16px;
  padding: 15px 30px; line-height: 1;
  transition: transform 0.15s var(--ease-out), box-shadow 0.15s, background 0.15s, opacity 0.15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 20px rgba(61, 111, 212, 0.32); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-light { background: #fff; color: var(--navy); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18); }
.btn-quiet { background: rgba(13, 26, 46, 0.06); color: var(--navy); }
.btn-quiet:hover { background: rgba(13, 26, 46, 0.1); }
.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-lg { padding: 18px 38px; font-size: 17px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(1.8) blur(20px);
  -webkit-backdrop-filter: saturate(1.8) blur(20px);
  border-bottom: 1px solid rgba(13, 26, 46, 0.07);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.wordmark {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 19px; letter-spacing: 0.14em; color: var(--navy);
}
.wordmark .pin {
  width: 30px; height: 30px; border-radius: 9px; background: var(--navy);
  display: inline-flex; align-items: center; justify-content: center;
}
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a:not(.btn) { color: var(--ink); font-size: 14px; font-weight: 520; opacity: 0.85; }
.nav-links a:not(.btn):hover { opacity: 1; color: var(--brand); }

/* ---------- Shared bits ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--ink-2);
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; background: #fff;
}
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--safe); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-card);
}

input[type="text"], input[type="tel"], input[type="email"], input[type="number"] {
  width: 100%; font-family: inherit; font-size: 16px;
  border: 1.5px solid rgba(13, 26, 46, 0.16); border-radius: var(--r-input);
  padding: 14px 16px; background: #fff; color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(61, 111, 212, 0.14); }
label { display: block; font-size: 13.5px; font-weight: 600; color: var(--navy); margin-bottom: 7px; }
.hint { font-size: 12.5px; color: var(--ink-3); margin-top: 6px; line-height: 1.45; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Footer ---------- */
footer { background: var(--navy-deep); color: #8FA3C2; padding: 72px 0 44px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 48px; }
.foot-grid h5 { color: #fff; font-size: 13px; font-weight: 620; letter-spacing: 0.04em; margin-bottom: 14px; }
.foot-grid a { display: block; color: #8FA3C2; font-size: 14px; padding: 5px 0; }
.foot-grid a:hover { color: #fff; }
.foot-brand p { font-size: 14px; max-width: 300px; margin-top: 14px; line-height: 1.6; }
.lang {
  margin-top: 20px; background: rgba(255, 255, 255, 0.07); color: #C9D4E6;
  border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 9px; padding: 9px 13px;
  font-size: 13.5px; font-family: inherit;
}
.foot-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.09); padding-top: 26px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  font-size: 12.5px; color: #6B80A1;
}

/* ---------- Conversion micro-patterns ---------- */
.click-triggers {
  display: flex; gap: 18px; justify-content: center; flex-wrap: wrap;
  font-size: 13px; color: var(--ink-3); font-weight: 520; margin-top: 16px;
}
.click-triggers span { display: inline-flex; align-items: center; gap: 6px; }
.click-triggers .tick { color: var(--safe); font-weight: 700; }

input.valid {
  border-color: var(--safe);
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%2316A34A" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"/></svg>');
  background-repeat: no-repeat; background-position: right 14px center; background-size: 15px;
  padding-right: 40px;
}

.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(13, 26, 46, 0.1);
  display: none; transform: translateY(110%); transition: transform .35s var(--ease-out);
}
.sticky-cta.show { transform: none; }
.sticky-cta .btn { width: 100%; }
@media (max-width: 640px) { .sticky-cta { display: block; } }

.mock-note {
  background: #FFF1D6; color: #92400E; font-size: 12.5px; font-weight: 600;
  text-align: center; padding: 8px 16px; position: relative; z-index: 101;
}

@media (max-width: 900px) {
  .nav-links a:not(.btn) { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
