:root {
  --green: #0b6b4f;
  --green-dark: #08573f;
  --green-soft: #e8f3ef;
  --amber-soft: #fff1dc;
  --ink: #1d2330;
  --muted: #5b6475;
  --line: #e3e7ec;
  --page: #f7f8fa;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 16px/1.6 "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body > main { flex: 1; }

a { color: var(--green); }

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

/* Header */
.top {
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.top .wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 64px;
}
.top .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 18px;
}
.top .brand img { width: 32px; height: 32px; }
.top nav { margin-left: auto; display: flex; gap: 24px; font-size: 15px; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover, .top nav a[aria-current] { color: var(--green); }

/* Page body */
main.wrap { padding-top: 40px; padding-bottom: 64px; }

main > section { padding: 72px 0 0; }
main > section:last-child { padding-bottom: 80px; }

.eyebrow {
  color: var(--green);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin: 0 0 8px;
}
h2.title { font-size: 28px; line-height: 1.3; margin: 0 0 32px; }

/* Hero */
main > .hero {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 64px 0 72px;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero h1 { font-size: 42px; line-height: 1.2; margin: 0 0 16px; letter-spacing: -.01em; }
.hero p { font-size: 18px; color: var(--muted); margin: 0 0 14px; }
.hero .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 28px; }
.hero .runs { font-size: 14px; color: var(--muted); }
.hero svg { width: 100%; height: auto; display: block; }

.button {
  display: inline-block;
  background: var(--green);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 10px;
}
.button:hover { background: var(--green-dark); }

/* How it works */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.steps li { position: relative; }
.steps .n {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}
.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 20px;
  left: 52px;
  right: -12px;
  border-top: 2px dashed #b9d8cc;
}
.steps h3 { font-size: 18px; margin: 0 0 6px; }
.steps p { margin: 0; color: var(--muted); }

/* Feature cards */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
}
.icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--green-soft);
  margin-bottom: 16px;
}
.icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--green);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card h3 { font-size: 17px; margin: 0 0 6px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

/* Signing in */
.panel {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 32px;
}
.panel .icon { margin: 0; }
.panel h2 { font-size: 20px; margin: 4px 0 8px; }
.panel p { margin: 0 0 12px; }
.panel p:last-child { margin-bottom: 0; }

/* Privacy and terms */
.doc {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 36px 40px;
}
.doc h1 { font-size: 30px; margin: 0 0 4px; }
.doc .date { color: var(--muted); margin: 0 0 24px; }
.doc h2 { font-size: 19px; margin: 28px 0 8px; }
.doc ul { padding-left: 22px; }
.doc li { margin: 4px 0; }

/* Footer */
footer {
  border-top: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 14px;
  padding: 24px 0;
}
footer .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
footer .brand { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; text-decoration: none; margin-right: auto; }
footer .brand img { width: 22px; height: 22px; }
footer a { color: var(--muted); }

@media (max-width: 960px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  main > .hero { padding: 40px 0 48px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 32px; }
  .hero h1 { font-size: 32px; }
  .hero svg { max-width: 440px; margin: 0 auto; }
  main > section { padding-top: 48px; }
  main > section:last-child { padding-bottom: 56px; }
  .steps { grid-template-columns: 1fr; gap: 20px; }
  .steps li { display: grid; grid-template-columns: 40px 1fr; column-gap: 16px; }
  .steps .n { margin: 0; grid-row: span 2; }
  .steps li:not(:last-child)::after { top: 48px; bottom: -16px; left: 19px; right: auto; border-top: 0; border-left: 2px dashed #b9d8cc; }
}

@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
  .hero h1 { font-size: 28px; }
  .hero p { font-size: 17px; }
  h2.title { font-size: 24px; }
  .cards { grid-template-columns: 1fr; }
  .panel { grid-template-columns: 1fr; padding: 24px 20px; gap: 12px; }
  .doc { padding: 24px 20px; }
  .top nav { gap: 16px; }
}
