:root {
  --brand: #2f6f5e;
  --brand-dark: #24574a;
  --brand-soft: #e6efeb;
  --paper: #f7f5f0;
  --card: #ffffff;
  --ink: #1f2421;
  --muted: #5d665f;
  --line: #e2ded4;
  --warn: #a2541a;
  --warn-bg: #fbeee2;
  --radius: 14px;
  --max: 1080px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); }
img, svg { max-width: 100%; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* header */
header.top { position: sticky; top: 0; z-index: 10; background: rgba(247, 245, 240, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; gap: 20px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; color: var(--ink); text-decoration: none; }
.logo svg { width: 30px; height: 30px; }
nav.links { margin-left: auto; display: flex; gap: 22px; align-items: center; }
nav.links a { color: var(--ink); text-decoration: none; font-size: 15px; }
nav.links a:hover { color: var(--brand); }
@media (max-width: 760px) { nav.links a:not(.btn) { display: none; } }

.btn {
  display: inline-block; background: var(--brand); color: #fff !important; text-decoration: none; border: 0;
  padding: 12px 22px; border-radius: 10px; font-weight: 600; font-size: 16px; cursor: pointer; font-family: inherit;
}
.btn:hover { background: var(--brand-dark); }
.btn.ghost { background: transparent; color: var(--brand) !important; border: 1.5px solid var(--brand); }
.btn.ghost:hover { background: var(--brand-soft); }
.btn.small { padding: 8px 16px; font-size: 15px; }
.btn[disabled] { opacity: .6; cursor: default; }

/* hero */
.hero { padding: 72px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(36px, 5.4vw, 58px); line-height: 1.07; margin: 0 0 18px; letter-spacing: -.02em; }
.hero .lead { font-size: 20px; color: #3d4540; margin: 0 0 28px; max-width: 34em; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .free { margin-top: 18px; color: var(--muted); font-size: 15px; }
.tagline { display: inline-block; background: var(--brand-soft); color: var(--brand-dark); font-weight: 600; font-size: 14px; padding: 6px 12px; border-radius: 999px; margin-bottom: 18px; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } .hero { padding-top: 40px; } }

/* phone mock */
.phone { background: #1f2421; border-radius: 38px; padding: 12px; max-width: 300px; margin: 0 auto; box-shadow: 0 30px 60px -20px rgba(31, 36, 33, .35); }
.phone .screen { background: var(--paper); border-radius: 28px; padding: 22px 18px; min-height: 520px; }
.phone .app-name { color: var(--brand); font-weight: 700; font-size: 15px; }
.phone .streak { font-size: 30px; font-weight: 800; margin: 4px 0 2px; }
.phone .sub { color: var(--muted); font-size: 13px; margin-bottom: 14px; }
.phone .card { background: #fff; border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; font-size: 13px; }
.phone .card b { display: block; font-size: 14px; margin-bottom: 4px; }
.phone .ok { color: var(--brand); font-weight: 600; }
.phone .reach { background: var(--brand); color: #fff; text-align: center; border-radius: 10px; padding: 10px; font-weight: 600; margin-top: 8px; }

/* sections */
section { padding: 64px 0; }
section.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2 { font-size: clamp(28px, 3.6vw, 38px); line-height: 1.15; margin: 0 0 12px; letter-spacing: -.01em; }
.section-lead { color: var(--muted); font-size: 18px; max-width: 40em; margin: 0 0 36px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.steps .step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
section.alt .steps .step { background: var(--paper); }
.steps .step::before { counter-increment: step; content: counter(step); display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; margin-bottom: 12px; }
.steps h3 { margin: 0 0 6px; font-size: 19px; }
.steps p { margin: 0; color: #3d4540; font-size: 16px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.feature .icon { width: 40px; height: 40px; border-radius: 10px; background: var(--brand-soft); display: grid; place-items: center; margin-bottom: 12px; }
.feature .icon svg { width: 22px; height: 22px; stroke: var(--brand); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { margin: 0 0 6px; font-size: 18px; }
.feature p { margin: 0; color: #3d4540; font-size: 15.5px; }
@media (max-width: 860px) { .steps, .features { grid-template-columns: 1fr; } }
@media (min-width: 600px) and (max-width: 860px) { .features { grid-template-columns: 1fr 1fr; } }

table.compare { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); font-size: 16px; }
table.compare th, table.compare td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); }
table.compare th { background: var(--paper); font-size: 14px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
table.compare td.us { color: var(--brand-dark); font-weight: 600; }
table.compare tr:last-child td { border-bottom: 0; }
.table-scroll { overflow-x: auto; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
ul.checks { list-style: none; padding: 0; margin: 0; }
ul.checks li { padding: 8px 0 8px 30px; position: relative; }
ul.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 800; }
ul.crosses li::before { content: "✕"; color: var(--warn); }

/* download */
.platforms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 40px; }
.platform { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
section.alt .platform { background: var(--paper); }
.platform h3 { margin: 0; font-size: 20px; }
.platform p { margin: 0; color: #3d4540; font-size: 15.5px; flex: 1; }
.badge { align-self: flex-start; font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-dark); }
.badge.soon { background: #efe9dd; color: #6b5a3a; }
@media (max-width: 860px) { .platforms { grid-template-columns: 1fr; } }

form.signup { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; max-width: 620px; }
section.alt form.signup { background: var(--paper); }
form.signup h3 { margin: 0 0 6px; font-size: 22px; }
form.signup .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { form.signup .row2 { grid-template-columns: 1fr; } }
form.signup label { display: block; font-size: 14px; font-weight: 600; margin: 14px 0 6px; }
form.signup input[type=text], form.signup input[type=email], form.signup select {
  width: 100%; padding: 12px 14px; border: 1px solid #cfc9bc; border-radius: 10px; font: inherit; background: #fff; color: var(--ink);
}
form.signup input:focus, form.signup select:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
form.signup .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 15px; margin-top: 16px; }
form.signup .check input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--brand); }
form.signup .fine { color: var(--muted); font-size: 13.5px; margin: 14px 0 0; }
form.signup .hp { position: absolute; left: -9999px; }
.msg { margin-top: 14px; padding: 12px 14px; border-radius: 10px; font-size: 15px; display: none; }
.msg.ok { display: block; background: var(--brand-soft); color: var(--brand-dark); }
.msg.err { display: block; background: var(--warn-bg); color: var(--warn); }

.crisis { background: var(--warn-bg); color: #6b3a12; border-radius: var(--radius); padding: 18px 22px; font-size: 16px; }
.crisis strong { color: #5a2f0d; }

/* faq */
details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin-bottom: 10px; }
section.alt details { background: var(--paper); }
details summary { cursor: pointer; font-weight: 600; font-size: 17px; }
details p { margin: 10px 0 0; color: #3d4540; }

/* docs pages */
.doc { max-width: 760px; padding: 48px 20px 72px; margin: 0 auto; }
.doc h1 { font-size: 38px; line-height: 1.15; margin: 0 0 8px; }
.doc h2 { font-size: 24px; margin: 36px 0 10px; }
.doc .meta { color: var(--muted); margin-bottom: 28px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15.5px; margin: 10px 0; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { background: #fff; }

footer { padding: 40px 0 56px; color: var(--muted); font-size: 15px; border-top: 1px solid var(--line); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; }
footer a { color: var(--muted); }
footer .right { margin-left: auto; display: flex; gap: 20px; flex-wrap: wrap; }
