/* Landing page. System fonts only: web fonts would mean a request to a third party. */
:root {
  --bg: #f4f3ef;
  --bg-alt: #ecebe5;
  --surface: #ffffff;
  --surface-2: #f1efe9;
  --border: #dedbd2;
  --text: #1d1c1a;
  --text-2: #5f5c55;
  --accent: #1f6f5c;
  --accent-hover: #185a4a;
  --accent-ink: #ffffff;
  --accent-soft: #dcefe8;
  --deep: #14201c;
  --deep-text: #f4f3ef;
  --mint: #7fd8bc;
  --warn: #9a5b00;
  --warn-soft: #fbeed6;
  --danger: #b3261e;
  --ok: #1f7a3d;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgb(0 0 0 / .04), 0 12px 32px rgb(20 32 28 / .08);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111312;
    --bg-alt: #161917;
    --surface: #1b1e1c;
    --surface-2: #232724;
    --border: #2f3430;
    --text: #ecebe6;
    --text-2: #a3a59f;
    --accent: #4fc3a1;
    --accent-hover: #6fd3b4;
    --accent-ink: #08201a;
    --accent-soft: #173a31;
    --deep: #0b1210;
    --warn: #f0b45a;
    --warn-soft: #3a2c12;
    --danger: #ff8a80;
    --ok: #6fd391;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 12px 32px rgb(0 0 0 / .25);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--font); }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.15; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 9px 16px; border-radius: 999px; border: 1px solid transparent;
  font: 600 14px/1.2 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, transform .15s;
}
.btn svg { width: 18px; height: 18px; }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: var(--accent-hover); }
.btn.ghost { border-color: var(--border); background: var(--surface); color: var(--text); }
.btn.ghost:hover { border-color: var(--text-2); }
.btn.lg { padding: 13px 22px; font-size: 15px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .6; cursor: progress; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
}
.nav-row { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; text-decoration: none; letter-spacing: -.01em; }
.brand-logo { display: block; height: 34px; width: auto; }
.nav-links { display: flex; gap: 4px; margin-left: 12px; }
.nav-links a { padding: 6px 12px; border-radius: 999px; font-size: 14px; color: var(--text-2); text-decoration: none; }
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-cta { display: flex; gap: 8px; margin-left: auto; }
@media (max-width: 900px) { .nav-links { display: none; } }
@media (max-width: 480px) {
  .nav-row { gap: 12px; }
  .brand-logo { height: 28px; }
  .nav-cta { gap: 6px; }
  .nav-cta .btn { padding: 8px 12px; font-size: 13px; }
}
@media (max-width: 359px) { .brand-logo { height: 24px; } }

/* ---------- hero ---------- */
.hero { padding: 72px 0 64px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(38px, 5.4vw, 62px); letter-spacing: -.02em; }
h1 em { font-style: italic; color: var(--accent); }
.lead { margin: 20px 0 0; font-size: 18px; color: var(--text-2); max-width: 54ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-facts { display: flex; gap: 36px; list-style: none; margin: 40px 0 0; padding: 0; }
.hero-facts li { display: grid; }
.hero-facts b { font-family: var(--serif); font-size: 30px; line-height: 1.1; }
.hero-facts span { font-size: 13px; color: var(--text-2); }
@media (max-width: 900px) {
  .hero { padding: 44px 0 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 480px) {
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-facts { gap: 20px; justify-content: space-between; }
  .hero-facts b { font-size: 24px; }
}

/* product mock */
.mock { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; }
.mock-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.mock-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 600; }
.mock-pill svg { width: 14px; height: 14px; }
.mock-body { display: grid; grid-template-columns: 1.1fr 1fr; gap: 12px; padding: 14px; }
.mock-photo { position: relative; min-height: 250px; border-radius: 12px; overflow: hidden; background: linear-gradient(180deg, #f6c995 0%, #f0a77a 45%, #c77d6b 100%); }
.sun { position: absolute; width: 70px; height: 70px; border-radius: 50%; background: #fff3d6; top: 26%; left: 50%; transform: translateX(-50%); box-shadow: 0 0 60px #ffe7b0; }
.hill { position: absolute; left: -10%; right: -10%; border-radius: 50% 50% 0 0; }
.hill.h1 { bottom: -30%; height: 70%; background: #2f5d50; }
.hill.h2 { bottom: -45%; height: 70%; left: 30%; right: -40%; background: #1f4238; }
.mock-tag { position: absolute; left: 10px; bottom: 10px; padding: 4px 10px; border-radius: 999px; background: rgb(255 255 255 / .9); color: #1d1c1a; font-size: 11px; font-weight: 600; }
.mock-side { display: grid; gap: 12px; align-content: start; }
.mock-card { border: 1px solid var(--border); border-radius: 12px; padding: 12px; font-size: 12px; display: grid; gap: 7px; }
.mock-card b { font-size: 12.5px; }
.mock-card .row { display: flex; justify-content: space-between; gap: 6px; color: var(--text-2); }
.mock-card .row.bad span { color: var(--danger); font-weight: 600; }
.mock-card s { color: var(--text-2); opacity: .75; }
.mock-card .ok { color: var(--ok); font-weight: 600; }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.toggle i { width: 28px; height: 16px; border-radius: 999px; background: var(--accent); position: relative; flex: none; }
.toggle i::after { content: ""; position: absolute; right: 2px; top: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; }
.toggle em { font-style: normal; font-size: 11px; color: var(--text-2); }
@media (max-width: 480px) {
  .mock-body { grid-template-columns: 1fr; }
  .mock-photo { min-height: 180px; }
}

/* ---------- promises strip ---------- */
.strip { background: var(--deep); color: var(--deep-text); padding: 32px 0; }
.promises { list-style: none; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.promises li { display: flex; gap: 14px; align-items: flex-start; }
.promises svg { width: 26px; height: 26px; color: var(--mint); flex: none; margin-top: 2px; }
.promises b { display: block; font-size: 15px; }
.promises span { font-size: 14px; color: #b9ccc5; }
@media (max-width: 900px) { .promises { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .promises { grid-template-columns: 1fr; gap: 20px; } }

/* ---------- sections ---------- */
.section { padding: 96px 0; }
.section.alt { background: var(--bg-alt); }
@media (max-width: 600px) { .section { padding: 64px 0; } }
.section-head { max-width: 680px; margin-bottom: 48px; }
h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(30px, 3.6vw, 42px); letter-spacing: -.015em; }
.sub { margin: 14px 0 0; font-size: 17px; color: var(--text-2); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: none; }
.steps li { position: relative; padding: 28px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.steps .num { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; margin-bottom: 18px; }
.steps h3, .card h3 { font-size: 19px; }
.steps p, .card p { margin: 10px 0 0; color: var(--text-2); font-size: 15px; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { display: flex; flex-direction: column; padding: 28px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.card-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); margin-bottom: 18px; }
.card-icon svg { width: 22px; height: 22px; }
.badge { align-self: flex-start; margin-top: auto; transform: translateY(14px); padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 600; }
.card .badge { margin-top: 20px; transform: none; }
.badge.soft { background: var(--warn-soft); color: var(--warn); }
.footnote { margin: 28px 0 0; font-size: 14px; color: var(--text-2); max-width: 70ch; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .card, .btn { transition: none; } .card:hover { transform: none; } }

/* verify */
.verify { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.checks { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 32px; color: var(--text-2); }
.checks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent-soft); }
.checks li::after { content: ""; position: absolute; left: 7px; top: 7px; width: 5px; height: 9px; border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.checks b { color: var(--text); }
.log-card { background: var(--deep); color: var(--deep-text); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); font-size: 13px; }
.log-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-bottom: 12px; margin-bottom: 8px; border-bottom: 1px solid rgb(255 255 255 / .1); font-weight: 600; }
.log-head .counts { color: #b9ccc5; font-weight: 400; }
.log-head .counts b { color: var(--mint); }
.log-card ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.log-card li { display: grid; grid-template-columns: 70px 1fr; gap: 10px; color: #dbe5e1; }
.log-card time { font-family: var(--mono); font-size: 12px; color: #7f948d; }
.log-card li.lock { color: var(--mint); }
.log-card li.wipe { color: #f3c98b; }
@media (max-width: 900px) { .verify { grid-template-columns: 1fr; gap: 36px; } }
@media (max-width: 420px) { .log-card li { grid-template-columns: 1fr; gap: 0; } }

/* ---------- sign up ---------- */
.signup { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.fine { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 8px; font-size: 14px; color: var(--text-2); }
.fine li { padding-left: 22px; position: relative; }
.fine li::before { content: ""; position: absolute; left: 4px; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.form { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 32px; box-shadow: var(--shadow); display: grid; gap: 4px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field select {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--bg); color: var(--text); font: 16px var(--font); /* 16px stops iOS zooming in */
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%), linear-gradient(135deg, var(--text-2) 50%, transparent 50%); background-position: calc(100% - 20px) 52%, calc(100% - 15px) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.field input:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.error { min-height: 20px; margin: 0; font-size: 13px; color: var(--danger); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text-2); cursor: pointer; }
.consent input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.form .btn { margin-top: 8px; }
.form-status { margin: 8px 0 0; min-height: 20px; font-size: 14px; text-align: center; color: var(--danger); }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form.done { text-align: center; justify-items: center; gap: 12px; padding: 48px 32px; }
.form.done svg { width: 48px; height: 48px; color: var(--accent); }
.form.done h3 { font-family: var(--serif); font-size: 26px; }
.form.done p { margin: 0 0 8px; color: var(--text-2); }
@media (max-width: 900px) { .signup { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 480px) { .form { padding: 22px 18px; } }

/* ---------- footer ---------- */
.footer { padding: 36px 0 calc(36px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer nav a { color: var(--text-2); text-decoration: none; font-size: 14px; }
.footer nav a:hover { color: var(--text); }
.footer p { margin: 0 0 0 auto; font-size: 13px; color: var(--text-2); }
@media (max-width: 700px) { .footer p { margin: 0; flex-basis: 100%; } }
