/* Topos site: the app's brand (green, Inter), light by default, dark when the device is dark. */
:root {
  --bg: #fbfdf7;
  --bg-soft: #f1f6ec;
  --card: #ffffff;
  --line: #dfe7d8;
  --text: #17231a;
  --muted: #4a5a4d;
  --brand: #236c2d;
  --brand-strong: #145222;
  --brand-soft: #dff3dc;
  --on-brand: #ffffff;
  --gold: #f4c542;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(16, 40, 20, .06), 0 10px 30px rgba(16, 40, 20, .08);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b130d;
    --bg-soft: #101c13;
    --card: #142218;
    --line: #233528;
    --text: #e8f1e6;
    --muted: #a8b8a8;
    --brand: #8cd88d;
    --brand-strong: #a7f5a7;
    --brand-soft: #173a1f;
    --on-brand: #052b0e;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 17px/1.65 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--text); }
.logo img { width: 32px; height: 32px; border-radius: 9px; }
.top nav { display: flex; gap: 22px; font-size: 15px; font-weight: 500; }
.top nav a { color: var(--muted); }
@media (max-width: 640px) { .top nav a.hide-sm { display: none; } }

/* Hero */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding: 72px 0 40px; }
.eyebrow { display: inline-block; font-size: 14px; font-weight: 600; color: var(--brand); background: var(--brand-soft); padding: 6px 12px; border-radius: 999px; }
h1 { font-size: clamp(36px, 5.4vw, 60px); line-height: 1.06; letter-spacing: -.02em; margin: 18px 0 18px; font-weight: 800; }
.lead { font-size: 19px; color: var(--muted); max-width: 34em; margin: 0 0 28px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 14px; font-weight: 600; font-size: 16px; border: 1px solid transparent; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--brand); color: var(--on-brand); box-shadow: var(--shadow); }
.btn-ghost { border-color: var(--line); color: var(--text); background: var(--card); }
.ticks { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 26px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 15px; }
.ticks li::before { content: "✓"; color: var(--brand); font-weight: 700; margin-right: 8px; }
.phones { position: relative; height: 560px; }
.phone { position: absolute; width: 250px; border-radius: 30px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); background: var(--card); }
.phone.a { left: 8%; top: 0; z-index: 2; }
.phone.b { right: 4%; top: 70px; transform: rotate(4deg); }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 44px; }
  .phones { height: 470px; max-width: 420px; margin: 0 auto; width: 100%; }
  .phone { width: 210px; }
}

/* Sections */
section { padding: 56px 0; }
.section-head { max-width: 40em; margin-bottom: 28px; }
h2 { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.15; letter-spacing: -.01em; margin: 0 0 10px; font-weight: 800; }
h3 { font-size: 19px; margin: 0 0 6px; font-weight: 700; }
.muted { color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.card-f { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card-f p { margin: 0; color: var(--muted); font-size: 16px; }
.icon { width: 40px; height: 40px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-bottom: 14px; }
.icon svg { width: 22px; height: 22px; }
.band { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.steps .card-f::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: var(--on-brand); font-weight: 800; margin-bottom: 12px; }

/* Units table (answers) */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--card); margin: 16px 0; }
table { width: 100%; border-collapse: collapse; font-size: 16px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: none; }
th { font-weight: 700; background: var(--bg-soft); }
td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.plan.pro { border-color: color-mix(in srgb, var(--gold) 55%, var(--line)); }
.plan h3 { display: flex; align-items: center; gap: 10px; font-size: 22px; }
.plan h3 img { width: 30px; height: 30px; }
.plan ul { margin: 12px 0 0; padding-left: 20px; color: var(--muted); }
.plan li { margin-bottom: 6px; }

/* FAQ */
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 4px 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 14px 0; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--brand); font-weight: 700; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 16px; color: var(--muted); }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--muted); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; }

/* Legal pages (privacy, terms) */
.legal { max-width: 860px; margin: 0 auto; padding: 40px 20px 64px; }
.legal h1 { font-size: clamp(32px, 4.6vw, 44px); margin-top: 8px; }
.legal h2 { font-size: 24px; margin-top: 2.4rem; scroll-margin-top: 80px; }
.legal p, .legal ul, .legal ol { color: var(--muted); }
.legal strong { color: var(--text); }
.back-btn { display: inline-block; margin-bottom: 12px; color: var(--muted); font-weight: 600; }
.date { color: var(--muted); font-size: 15px; margin-bottom: 24px; }
.glance { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin: 20px 0; }
.glance div { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; color: var(--muted); font-size: 15.5px; }
.glance b { display: block; color: var(--text); margin-bottom: 2px; }
nav.toc { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 14px; padding: 14px 20px; margin: 20px 0; }
nav.toc ol { margin: 0; padding-left: 20px; columns: 2 220px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-top: 40px; }
.card h2 { margin-top: 0; }
.key { background: var(--brand-soft); border-radius: 14px; padding: 14px 18px; }
.legal table { min-width: 620px; font-size: 15px; }
