/* The landing page at /. Deliberately not the Field Notes system the product pages use:
   white paper, one grotesk, black type, a single green for the one thing to press. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/fonts/inter-latin.woff2") format("woff2");
}

:root {
  --paper: #ffffff;
  --ink: #000000;
  --ink-2: #5c5c57;
  --rule: #e7e7e2;
  --green: #0b6b3a;
  --green-deep: #084f2b;
  --green-soft: #eaf3ec;
  --gutter: clamp(20px, 5vw, 64px);
  --measure: 66ch;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-feature-settings: "ss01", "cv11";
}
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3, p, ul { margin: 0; }

.bar, main, .foot {
  width: min(1120px, 100% - 2 * var(--gutter));
  margin-inline: auto;
}

/* Header */
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 28px;
}
.wordmark {
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.02em;
}
.wordmark.small { font-size: 16px; }

/* Buttons: pills, two weights, nothing else */
.pill {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding-inline: 20px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
}
.pill:hover { text-decoration: none; background: var(--green-soft); border-color: var(--green-deep); color: var(--green-deep); }
.pill.solid { background: var(--green); border-color: var(--green); color: #fff; }
.pill.solid:hover { background: var(--green-deep); border-color: var(--green-deep); color: #fff; }
.bar .pill { height: 38px; padding-inline: 16px; }

/* Hero */
.hero {
  padding-block: clamp(56px, 10vw, 128px) clamp(56px, 8vw, 96px);
}
.hero h1 {
  font-size: clamp(36px, 5.4vw, 66px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
}
.lede {
  margin-top: 32px;
  max-width: var(--measure);
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.55;
  color: var(--ink-2);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

/* How it works: three columns parted by hairlines, read left to right */
.how {
  border-top: 1px solid var(--rule);
  padding-block: clamp(40px, 6vw, 72px);
}
.how h2, .facts h2 {
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 40px;
  margin-top: 40px;
}
.step {
  padding-top: 20px;
  border-top: 1px solid var(--ink);
}
.step h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.step p {
  margin-top: 10px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-2);
}

/* The one promise, stated once */
.facts {
  border-top: 1px solid var(--rule);
  padding-block: clamp(40px, 6vw, 72px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 32px 64px;
  align-items: start;
}
.facts ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 14px;
  font-size: 17px;
  line-height: 1.5;
}
.facts li {
  padding-left: 22px;
  position: relative;
}
.facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 10px;
  height: 2px;
  background: var(--green);
}

/* Footer */
.foot {
  border-top: 1px solid var(--rule);
  padding-block: 28px 48px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
  font-size: 15px;
}
.foot nav { display: flex; flex-wrap: wrap; gap: 24px; flex: 1; }
.muted { color: var(--ink-2); }

/* Sign in */
.gate {
  width: min(400px, calc(100% - 40px));
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.14);
}
.gate::backdrop { background: rgba(0, 0, 0, 0.32); }
.gate form { padding: 28px; display: grid; gap: 10px; }
.gate h2 { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.gate .muted { font-size: 15px; margin-bottom: 8px; }
.gate label { font-size: 14px; font-weight: 500; }
.gate input {
  height: 44px;
  padding-inline: 12px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--paper);
}
.gate input:focus { outline: 2px solid var(--green); outline-offset: 1px; border-color: var(--green); }
.gate .error { color: #a3261a; font-size: 14px; }
.gate .actions { margin-top: 8px; }

@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .facts { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: no-preference) {
  .pill { transition: background-color 120ms ease, color 120ms ease, border-color 120ms ease; }
}
