/* Same look as the Library ("Capture Archive"): cream paper, dark-green header,
   rust and gold accents, Georgia titles, soft cards with an offset shadow, pill buttons. */
:root {
  --ink: #15241f;
  --paper: #f4efe3;
  --card-bg: #fffaf0;
  --rust: #c65035;
  --sage: #567766;
  --gold: #d6a94d;
  --line: rgba(21, 36, 31, 0.18);
  --muted: #6b746e;
  --chip-bg: #e8dfcf;
  --header-bg: linear-gradient(125deg, #15241f 0 58%, #27463a 58%);
  --header-ink: #f4efe3;
  --shadow: 5px 5px 0 rgba(21, 36, 31, 0.08);
  --ok: #2f7a55;
  --err: #b3402a;
  --accent: var(--rust);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f0f5f2;
    --paper: #09120e;
    --card-bg: #101d17;
    --rust: #e05d3f;
    --sage: #6c9983;
    --gold: #e5b95c;
    --line: rgba(255, 255, 255, 0.12);
    --muted: #8ea399;
    --chip-bg: #162b22;
    --header-bg: linear-gradient(125deg, #060d0a 0 58%, #10221a 58%);
    --header-ink: #f0f5f2;
    --shadow: 5px 5px 0 rgba(0, 0, 0, 0.4);
    --ok: #6cc79a;
    --err: #f08a72;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.55 Aptos, "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  min-height: 100vh;
  padding-bottom: env(safe-area-inset-bottom);
}

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

h1, h2, .brand { font-family: Georgia, "Times New Roman", serif; }

.band {
  background: var(--header-bg);
  color: var(--header-ink);
  padding-top: env(safe-area-inset-top);
}

.top, main, .foot {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--header-ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 22px;
}

.logo { width: 28px; height: 28px; }

.pill {
  font-size: 13px;
  font-weight: 600;
  color: #15241f;
  background: var(--gold);
  border-radius: 999px;
  padding: 4px 12px;
}

.hero { padding: 36px 0 8px; }

h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 9.5vw, 54px);
  line-height: 1.08;
  color: var(--ink);
}

.sub { margin: 0 0 6px; font-size: 18px; color: var(--ink); max-width: 34em; }

.note {
  display: inline-block;
  margin: 6px 0 24px;
  font-size: 13px;
  color: var(--muted);
  background: var(--chip-bg);
  border-radius: 999px;
  padding: 3px 12px;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 20px;
}

.label { display: block; font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 8px; }

button, input { font-family: inherit; }

input[type="email"] {
  width: 100%;
  font-size: 17px; /* 16px+ stops iPhone zooming in */
  padding: 13px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  outline: none;
}

input[type="email"]:focus { border-color: var(--rust); box-shadow: 0 0 0 3px rgba(198, 80, 53, 0.2); }

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 16px 0;
  font-size: 15px;
  cursor: pointer;
}

.consent input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--rust); }

button {
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 14px 18px;
  font-size: 17px;
  font-weight: 700;
  color: #fffaf0;
  background: var(--rust);
  cursor: pointer;
  touch-action: manipulation;
}

button:hover { filter: brightness(1.05); }
button:disabled { opacity: 0.65; cursor: default; }

.message { min-height: 1.5em; margin: 12px 0 0; font-size: 15px; }
.message.ok { color: var(--ok); font-weight: 600; }
.message.err { color: var(--err); }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.benefits { display: grid; gap: 14px; padding: 32px 0 8px; }

.benefit {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 16px 18px;
}

.benefit .icon { font-size: 18px; line-height: 1; }
.benefit:nth-child(1) .icon { color: var(--rust); }
.benefit:nth-child(2) .icon { color: var(--sage); }
.benefit:nth-child(3) .icon { color: var(--gold); }
.benefit h2 { margin: 8px 0 4px; font-size: 19px; }
.benefit p { margin: 0; color: var(--muted); font-size: 15px; }

.privacy { padding: 28px 0 8px; color: var(--muted); font-size: 14px; }
.privacy h2 { color: var(--ink); font-size: 17px; margin: 0 0 8px; }
.privacy p { margin: 0 0 10px; }

.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 32px;
  color: var(--muted);
  font-size: 14px;
  border-top: 1px solid var(--line);
  margin-top: 24px;
}

@media (min-width: 640px) {
  .hero { padding-top: 60px; }
  .benefits { grid-template-columns: repeat(3, 1fr); }
  .card { padding: 24px; }
}
