/* Evidome home page. Values are taken from the Figma file "Evidome — Website v1",
   page "Website v1", node 1:12. Colour tokens come from the "Evidome" variable collection. */

:root {
  --color-bg: #f7f6f2;
  --color-surface: #ffffff;
  --color-ink: #16181d;
  --color-muted: #5b6068;
  --color-line: #e3e0d8;
  --color-accent: #0f766e;
  --color-on-accent: #ffffff;
  --color-band: #16181d;
  --color-on-band: #f7f6f2;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.page {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

/* Headlines and the wordmark use Archivo; everything else uses Inter. */
h1,
h2,
h3,
.wordmark span,
.contact-title {
  font-family: "Archivo", "Inter", system-ui, sans-serif;
  font-variation-settings: "wdth" 100;
}

/* 1120px content column on desktop, 16px gutter on phones */
.container {
  width: 100%;
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ── Nav ─────────────────────────────────────────── */

.nav {
  padding: 24px 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 24px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.wordmark span {
  font-weight: 900;
  font-size: 24px;
  line-height: 1.3;
  letter-spacing: -0.72px;
  color: var(--color-ink);
}

.mark {
  display: block;
  width: 28px;
  height: 28px;
}

.links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 32px;
  font-weight: 500;
  font-size: 15px;
  line-height: 1.3;
  color: var(--color-muted);
}

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

/* ── Hero ────────────────────────────────────────── */

.hero {
  padding: 96px 0;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
}

.eyebrow {
  font-weight: 600;
  font-size: 13px;
  line-height: 1.3;
  letter-spacing: 1.04px;
  color: var(--color-accent);
}

.hero h1 {
  font-weight: 800;
  font-size: clamp(2.5rem, 7vw, 4rem);
  line-height: 1.08;
  letter-spacing: -1.28px;
  color: var(--color-ink);
  max-width: 880px;
}

.lede {
  font-size: 20px;
  line-height: 1.5;
  color: var(--color-muted);
  max-width: 720px;
}

.actions {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.3;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-on-accent);
}

.btn-secondary {
  border: 1px solid var(--color-line);
  color: var(--color-ink);
}

.btn:hover {
  opacity: 0.92;
}

.rule {
  border: 0;
  height: 1px;
  background: var(--color-line);
  max-width: 1152px;
  width: calc(100% - 32px);
  margin: 0 auto;
}

/* ── Sections ───────────────────────────────────── */

.section {
  padding: 96px 0;
}

.heading {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.section h2 {
  font-weight: 800;
  font-size: 40px;
  line-height: 1.15;
  letter-spacing: -0.8px;
  color: var(--color-ink);
  max-width: 760px;
}

/* How it works — step cards */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 352px);
  gap: 32px;
  margin-top: 48px;
  justify-content: start;
}

.step-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: 12px;
}

.step-num {
  font-weight: 600;
  font-size: 13px;
  line-height: 1.3;
  letter-spacing: 0.78px;
  color: var(--color-accent);
}

.step-card h3 {
  font-weight: 800;
  font-size: 24px;
  line-height: 1.3;
  letter-spacing: -0.24px;
  color: var(--color-ink);
}

.step-card p {
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-muted);
}

/* Band */

.band {
  background: var(--color-band);
  color: var(--color-on-band);
  padding: 72px 0;
}

.band-inner {
  display: flex;
  align-items: flex-start;
  gap: 64px;
}

.band h2 {
  font-weight: 800;
  font-size: 36px;
  line-height: 1.15;
  letter-spacing: -0.72px;
  color: var(--color-on-band);
  max-width: 520px;
  flex: 0 1 520px;
}

.band p {
  font-size: 18px;
  line-height: 1.55;
  color: var(--color-on-band);
  max-width: 536px;
  flex: 0 1 536px;
}

/* What a receipt says — outcomes */

.outcomes {
  display: grid;
  grid-template-columns: repeat(3, 352px);
  gap: 32px;
  margin-top: 40px;
  justify-content: start;
}

.outcome {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 20px;
  border-top: 2px solid var(--color-ink);
}

.outcome h3 {
  font-weight: 800;
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.22px;
  color: var(--color-ink);
}

.outcome p {
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-muted);
}

/* Contact */

.contact-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.contact-title {
  font-weight: 800;
  font-size: 32px;
  line-height: 1.25;
  letter-spacing: -0.32px;
  color: var(--color-ink);
  max-width: 760px;
}

/* Footer */

.footer {
  padding: 32px 0 40px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding-top: 24px;
  border-top: 1px solid var(--color-line);
  font-size: 14px;
  line-height: 1.3;
}

.footer-brand {
  font-weight: 500;
  color: var(--color-ink);
}

.footer-copy {
  color: var(--color-muted);
}

/* ── Responsive: stack step cards, band columns and outcome columns ── */

@media (max-width: 1151px) {
  .steps,
  .outcomes {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .hero,
  .section {
    padding: 64px 0;
  }

  .section h2 {
    font-size: 32px;
  }

  .steps,
  .outcomes {
    grid-template-columns: minmax(0, 1fr);
  }

  .band-inner {
    flex-direction: column;
    gap: 24px;
  }

  .band h2,
  .band p {
    flex: 0 1 auto;
    max-width: none;
  }

  .band h2 {
    font-size: 30px;
  }

  .contact-title {
    font-size: 26px;
  }
}

@media (max-width: 480px) {
  .links {
    gap: 12px 20px;
    font-size: 14px;
  }

  .lede {
    font-size: 18px;
  }

  .step-card {
    padding: 24px;
  }
}
