:root {
  --navy: #0A1F3D;
  --teal: #14B8A6;
  --gold: #D4AF37;
  --black: #111111;
  --gray: #F5F5F5;
  --white: #ffffff;
  --muted: #5c6570;
  --line: rgba(10, 31, 61, 0.1);
  --line-strong: rgba(10, 31, 61, 0.16);
  --shadow: 0 18px 50px rgba(10, 31, 61, 0.07);
  --font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --measure: 72rem;
  --nav-h: 4.5rem;
  --radius: 12px;
}

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

html {
  color-scheme: light;
  background: var(--white);
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--navy);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

a:hover { color: var(--teal); }

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.wrap {
  width: min(var(--measure), calc(100% - 3rem));
  margin-inline: auto;
}

/* ---------- Nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--navy);
  text-decoration: none;
}

.brand:hover { color: var(--navy); }

.mark {
  width: 2.15rem;
  height: auto;
  display: block;
  flex: 0 0 auto;
}

.wordmark {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links a {
  color: var(--navy);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 550;
  letter-spacing: -0.01em;
}

.nav-links a:hover { color: var(--teal); }

.nav-signin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  padding: 0 1rem;
  border: 1px solid var(--navy);
  border-radius: 6px;
  color: var(--navy);
}

.nav-signin:hover {
  background: var(--navy);
  color: var(--white);
}

main {
  flex: 0 0 auto;
}

.home main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  flex: 1 0 auto;
  display: flex;
  align-items: center;
  padding: 5.5rem 0 5rem;
  min-height: 28rem;
}

.circuit {
  position: absolute;
  right: -4%;
  top: 8%;
  width: min(52vw, 40rem);
  height: auto;
  opacity: 0.06;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 0.85fr);
  gap: 4rem;
  align-items: center;
}

.eyebrow {
  margin: 0 0 1.15rem;
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 1.15rem;
  color: var(--navy);
  font-size: clamp(2.35rem, 4.6vw, 3.65rem);
  font-weight: 800;
  letter-spacing: -0.038em;
  line-height: 1.06;
}

.lede {
  margin: 0 0 1.85rem;
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.125rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}

.help-line {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.help-line a { color: var(--navy); }
.help-line a:hover { color: var(--teal); }

/* ---------- Buttons & card ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.35rem;
  border-radius: 6px;
  background: var(--navy);
  color: var(--white);
  font: inherit;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.button:hover {
  background: #0d2a52;
  color: var(--white);
}

.button-secondary {
  background: var(--white);
  color: var(--navy);
  border: 1px solid var(--line-strong);
}

.button-secondary:hover {
  background: var(--gray);
  color: var(--navy);
}

.card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem 2rem 1.9rem;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1.5rem;
  right: 1.5rem;
  height: 2px;
  background: var(--gold);
  border-radius: 2px 2px 0 0;
}

.card h2 {
  margin: 0 0 0.55rem;
  color: var(--navy);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.hero .card .button { margin-top: 1.5rem; width: 100%; }

.denied-card + .note { max-width: 34rem; margin-top: 1.35rem; }

/* ---------- Trust ---------- */
.trust {
  border-top: 1px solid var(--line);
  background: var(--gray);
  padding: 2.15rem 0;
}

.trust-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}

.trust-list li {
  padding: 0.15rem 2rem 0.15rem 0;
  color: var(--navy);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  border-right: 1px solid var(--line);
}

.trust-list li:last-child {
  border-right: 0;
  padding-right: 0;
}

.trust-list li:not(:first-child) {
  padding-left: 2rem;
}

.trust-kicker {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--teal);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---------- Interior pages ---------- */
.page {
  padding: 3.5rem 0 4.5rem;
}

.back {
  display: inline-block;
  margin: 0 0 1.75rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 550;
}

.back:hover { color: var(--teal); }

.page h1 {
  margin-bottom: 0.85rem;
  font-size: clamp(2.1rem, 3.6vw, 3.1rem);
}

.steps {
  list-style: none;
  margin: 2.25rem 0 1.75rem;
  padding: 0;
  max-width: 42rem;
  border-top: 1px solid var(--line);
}

.steps li {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
}

.step-num {
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.steps h2 {
  margin: 0 0 0.35rem;
  color: var(--navy);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.steps p {
  margin: 0;
  color: var(--muted);
}

.note {
  margin: 0;
  max-width: 42rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.denied-card { max-width: 34rem; }


/* ---------- App chooser ---------- */
.app-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem;
  margin: 2.25rem 0 1.75rem;
  align-items: stretch;
}

.app-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.app-card .app-tagline {
  flex: 1 1 auto;
  margin: 0;
}

.app-card .button {
  margin-top: 1.5rem;
  width: 100%;
}

.app-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.35rem 0;
  background: var(--white);
}

.home .site-footer {
  margin-top: auto;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8125rem;
  letter-spacing: 0.01em;
}

@media (max-width: 52rem) {
  .wrap { width: min(var(--measure), calc(100% - 2rem)); }

  .hero {
    padding: 3rem 0 3.25rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .app-grid {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }

  .circuit {
    width: 120%;
    right: -20%;
    top: auto;
    bottom: -8%;
    opacity: 0.05;
  }

  .trust-list {
    grid-template-columns: 1fr;
  }

  .trust-list li,
  .trust-list li:not(:first-child) {
    padding: 0.9rem 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .trust-list li:last-child { border-bottom: 0; }

  .hero-actions { display: none; }

  .steps li {
    grid-template-columns: 2.4rem 1fr;
    gap: 0.7rem;
  }

  .button { width: 100%; }
}

@media (max-width: 28rem) {
  .wordmark { font-size: 0.98rem; }
  .nav-links { gap: 0.85rem; }
  .hero-actions .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .button, .nav-signin { transition: none; }
}
