:root {
  --ink: #10192a;
  --muted: #5a6474;
  --paper: #f6f3ec;
  --paper-2: #efeadf;
  --rule: rgba(16, 25, 42, 0.055);
  --line: #ddd5c4;
  --accent: #0a7f63;
  --accent-dark: #076650;
  --accent-soft: #e2f4ec;
  --bright: #1dc06b;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Hanken Grotesk", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink); font: 18px/1.6 var(--sans);
  background-color: var(--paper);
  /* Ledger paper: faint ruled lines */
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 31px, var(--rule) 31px, var(--rule) 32px);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.wrap.wide { max-width: 1240px; }
.wrap.narrow { max-width: 640px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Header */
.top { background: #fff; border-bottom: 3px solid; border-image: linear-gradient(90deg, var(--bright), #0d8f8a) 1; position: sticky; top: 0; z-index: 10; }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand img { height: 34px; width: auto; }

/* Buttons and forms */
.btn {
  display: inline-block; font: 600 17px/1 var(--sans); color: #fff; background: var(--accent);
  border: 0; border-radius: 6px; padding: 15px 22px; cursor: pointer; text-decoration: none; white-space: nowrap;
}
.btn:hover { background: var(--accent-dark); }
.btn:disabled { opacity: 0.6; cursor: default; }
.btn-small { font-size: 15px; padding: 10px 16px; }
.signup { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.signup input[type="email"] {
  flex: 1 1 260px; min-width: 0; font: 17px var(--sans); color: var(--ink); padding: 14px 16px;
  border: 1px solid #cdc4b0; border-radius: 6px; background: #fff;
}
.signup input[type="email"]:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.form-note { flex-basis: 100%; margin: 2px 0 0; font-size: 15px; color: var(--muted); min-height: 1.4em; }
.form-note.ok { color: var(--accent); font-weight: 600; }
.form-note.err { color: #a4441c; }

/* Hero */
.hero { padding: 72px 0 0; text-align: center; }
.hero h1 {
  font: 600 clamp(38px, 6vw, 64px)/1.08 var(--serif); letter-spacing: -0.015em; margin: 0 auto; max-width: 15ch;
}
.lede { font-size: clamp(18px, 2.2vw, 21px); color: #343e4f; max-width: 40em; margin: 22px auto 0; }
.hero .signup { max-width: 560px; margin-left: auto; margin-right: auto; }
.hero-shot { margin-top: 56px; margin-bottom: -1px; }

/* Screenshots */
.shot {
  margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(16, 25, 42, 0.06), 0 18px 44px -18px rgba(16, 25, 42, 0.28);
}
.chrome { display: flex; gap: 6px; padding: 10px 12px; background: #faf8f3; border-bottom: 1px solid var(--line); }
.chrome span { width: 10px; height: 10px; border-radius: 50%; background: #d9d2c3; }
.shot.paper { border-radius: 4px; }

/* Feature sections */
.feature { padding: 96px 0; }
.feature.alt { background: rgba(255, 255, 255, 0.55); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hero + .feature { border-top: 1px solid var(--line); background: rgba(255, 255, 255, 0.55); }
.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; align-items: center; }
.split.flip { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
.split.flip .copy { order: 2; }
.copy h2, .grid-section h2, .cta h2 { font: 600 clamp(28px, 3.6vw, 40px)/1.15 var(--serif); letter-spacing: -0.01em; margin: 0 0 18px; }
.copy p { margin: 0 0 16px; color: #2c3546; }
.stack { display: grid; gap: 22px; }
.stack .paper { width: 82%; justify-self: end; margin-top: -60px; }

/* Grid */
.grid-section { padding: 96px 0; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--ink); }
.item { padding: 22px 26px 26px 0; border-bottom: 1px solid var(--line); }
.item + .item { padding-left: 0; }
.grid .item:nth-child(3n+2), .grid .item:nth-child(3n) { padding-left: 26px; border-left: 1px solid var(--line); }
.item h3 { font: 700 17px/1.3 var(--sans); margin: 0 0 8px; }
.item p { margin: 0; font-size: 16px; color: #3a4456; }

/* Call to action */
.cta { padding: 96px 0 104px; text-align: center; background: var(--ink); color: #eef1f4; background-image: none; }
.cta p { color: #c3cad4; margin: 0; }
.cta .signup { justify-content: center; }
.cta .form-note { color: #9aa4b1; }
.cta .form-note.ok { color: #6fe0a8; }
.cta .form-note.err { color: #ffb089; }
.cta .btn { background: var(--bright); color: #06281b; }
.cta .btn:hover { background: #3fd585; }

/* Footer */
.foot { padding: 28px 0; background: var(--ink); color: #8f99a7; font-size: 14px; border-top: 1px solid #253048; }
.foot-in { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.foot img { height: 24px; width: auto; filter: brightness(0) invert(1); opacity: 0.75; }
.foot a { color: #c3cad4; }

@media (max-width: 860px) {
  body { font-size: 17px; }
  .split.flip { grid-template-columns: 1fr; }
  .hero { padding-top: 48px; }
  .feature, .grid-section, .cta { padding: 64px 0; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split.flip .copy { order: 0; }
  .grid { grid-template-columns: 1fr; }
  .grid .item, .grid .item:nth-child(3n+2), .grid .item:nth-child(3n) { padding: 20px 0; border-left: 0; }
  .stack .paper { width: 92%; margin-top: -30px; }
  .hero-shot { margin-top: 40px; }
}
@media (max-width: 480px) {
  .signup .btn { width: 100%; }
  .btn-small { padding: 9px 12px; font-size: 14px; }
  .brand img { height: 28px; }
}
