/* Capit site: brand tokens from brand/capit-brand.md (light only, like the app).
   Layout: one column of wide bands, each with a centered 1080px inner wrapper; the phone screens carry the visual weight. */
:root {
  --green: #27A27A;
  --green-text: #1B7A5C;
  --mint: #C8F0DF;
  --surface: #EAF8F1;
  --paper: #FFFFFF;
  --ink: #22302C;
  --ink-2: #5F6B67;
  --line: #DCE9E3;
  --amber: #F0A13A;
  --amber-text: #9A6212;
  --amber-bg: #FDF1DF;
  --coral: #E25D56;
  --coral-text: #B8423C;
  --font: "Cairo", "Segoe UI", Tahoma, "Geeza Pro", Arial, sans-serif;
  --r-card: 16px;
  --r-btn: 12px;
  --w: 1080px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.75; }
img { max-width: 100%; display: block; }
a { color: var(--green-text); }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; border-radius: 6px; }
.num { font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }
.wrap { max-width: var(--w); margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.band { padding-block: 72px; }
.band.tint { background: var(--surface); }
.band.ink { background: var(--ink); color: #F2F7F5; }
h1, h2, h3 { line-height: 1.3; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(34px, 6vw, 56px); font-weight: 800; }
h2 { font-size: clamp(26px, 3.6vw, 36px); font-weight: 800; }
h3 { font-size: 19px; font-weight: 700; }
p { margin: 0; }
.lead { font-size: 19px; color: var(--ink-2); max-width: 34em; }
.eyebrow { font-size: 14px; font-weight: 700; color: var(--green-text); letter-spacing: .02em; }
.section-head { display: grid; gap: 10px; margin-bottom: 40px; max-width: 40em; }

/* header */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 21; background: var(--paper); }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 20px; }
.brand svg { width: 34px; height: 34px; }
.nav { display: flex; gap: 22px; margin-inline-start: auto; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav a:hover { color: var(--green-text); }
@media (max-width: 760px) { .nav { display: none; } .top .btn { margin-inline-start: auto; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: var(--r-btn); font-family: var(--font); font-weight: 700; font-size: 16px; text-decoration: none; border: 0; cursor: pointer; }
.btn.primary { background: var(--green); color: #fff; }
.btn.primary:hover { background: var(--green-text); }
.btn.ghost { background: var(--paper); color: var(--green-text); border: 1.5px solid var(--line); }
.btn.small { min-height: 40px; padding: 0 16px; font-size: 15px; }

.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; padding: 4px 12px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); color: var(--ink-2); }
.chip.soon { background: var(--amber-bg); border-color: transparent; color: var(--amber-text); }

/* footer */
.foot { background: var(--ink); color: #C9D6D1; padding-block: 44px; font-size: 15px; }
.foot .wrap { display: grid; gap: 22px; }
.foot .cols { display: flex; flex-wrap: wrap; gap: 28px 48px; align-items: flex-start; justify-content: space-between; }
.foot a { color: #fff; text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot .links { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.foot .brand { color: #fff; }
.foot small { color: #93A39D; font-size: 13px; }

/* document pages (privacy, support) */
.doc { max-width: 720px; margin: 0 auto; padding-block: 56px 80px; }
.doc h1 { font-size: clamp(30px, 5vw, 42px); margin-bottom: 8px; }
.doc .meta { color: var(--ink-2); font-size: 15px; margin-bottom: 28px; }
.doc h2 { font-size: 22px; margin: 36px 0 10px; }
.doc p, .doc li { color: var(--ink); }
.doc p + p { margin-top: 12px; }
.doc ul { padding-inline-start: 22px; margin: 8px 0; display: grid; gap: 6px; }
.doc .summary { background: var(--surface); border-radius: var(--r-card); padding: 20px 22px; font-size: 18px; font-weight: 600; }
.mail { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px; background: var(--surface); border-radius: var(--r-btn); padding: 10px 14px; }
.mail code { font-family: var(--font); font-weight: 700; font-size: 17px; direction: ltr; user-select: all; }
