/* Same palette as the mobile app: navy + orange on clean cool-grey surfaces; system sans-serif like the app. */
:root {
  --navy: #0B1F3A; --navy-light: #16345C; --orange: #FF6B1A; --orange-dark: #D94F00; --sand: #FFE9DB; --teal: #12A594;
  --bg: #F4F6FA; --surface: #FFFFFF; --text: #111A2B; --muted: #4A5568; --line: #D5DBE6;
  --radius: 20px; --shadow: 0 6px 24px rgba(11, 31, 58, .10);
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0A0F1A; --surface: #131B2B; --text: #E6EAF2; --muted: #ADB8CC; --line: #2B3750; --sand: #3A1D0E; --shadow: 0 6px 24px rgba(0,0,0,.4); }
}
/* The sun/moon button (and the landing page / apps) store the choice in localStorage "dhTheme"; it overrides the device setting. */
html[data-theme="dark"] { --bg: #0A0F1A; --surface: #131B2B; --text: #E6EAF2; --muted: #ADB8CC; --line: #2B3750; --sand: #3A1D0E; --shadow: 0 6px 24px rgba(0,0,0,.4); color-scheme: dark; }
html[data-theme="light"] { --bg: #F4F6FA; --surface: #FFFFFF; --text: #111A2B; --muted: #4A5568; --line: #D5DBE6; --sand: #FFE9DB; --shadow: 0 6px 24px rgba(11, 31, 58, .10); color-scheme: light; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; background: var(--bg); color: var(--text); }
a { color: inherit; }
img, svg { max-width: 100%; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 800; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); } h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); } h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }

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); }
.bar { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 800; font-size: 1.1rem; }
.logo { width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(135deg, var(--orange), var(--orange-dark)); display: grid; place-items: center; }
.logo svg { width: 24px; height: 24px; fill: #fff; }
nav.links { margin-left: auto; display: flex; align-items: center; gap: 22px; }
nav.links a { text-decoration: none; font-weight: 600; color: var(--muted); }
nav.links a:hover { color: var(--text); }
@media (max-width: 760px) { nav.links a.hide-sm { display: none; } nav.links { gap: 12px; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 24px; border-radius: 16px; font-weight: 700; font-size: 1rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--orange); color: #fff; box-shadow: 0 6px 18px rgba(255, 107, 26, .35); }
.btn.dark { background: var(--navy); color: #fff; }
.btn.ghost { border-color: var(--line); background: var(--surface); }
.btn.small { min-height: 42px; padding: 0 18px; border-radius: 12px; }
.btn:focus-visible, a:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

.hero { background: linear-gradient(180deg, var(--navy-light), var(--navy)); color: #fff; padding: 72px 0 88px; overflow: hidden; }
.hero .grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero p.lead { font-size: 1.25rem; color: rgba(255,255,255,.8); max-width: 34em; }
.hero .accent { color: var(--orange); }
.cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero .btn.ghost { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.25); color: #fff; }
@media (max-width: 860px) { .hero .grid { grid-template-columns: 1fr; } .hero { padding: 48px 0 56px; } }

section.block { padding: 72px 0; }
section.alt { background: var(--surface); border-block: 1px solid var(--line); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
section.alt .card { background: var(--bg); box-shadow: none; }
.card .icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--sand); color: var(--orange); font-size: 1.5rem; margin-bottom: 14px; }
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.step { position: relative; padding-left: 64px; }
.step::before { counter-increment: s; content: counter(s); position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 800; }

/* CSS phone mockups (replace with real screenshots in /img when you have them) */
.phones { display: flex; justify-content: center; gap: 22px; flex-wrap: wrap; }
.phone { width: 230px; border-radius: 34px; padding: 10px; background: #0B1F3A; box-shadow: var(--shadow); }
.screen { border-radius: 26px; background: var(--bg); height: 440px; overflow: hidden; padding: 14px; display: grid; gap: 10px; align-content: start; color: var(--text); font-size: 12px; }
.mini-bar { height: 34px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); display: flex; align-items: center; padding: 0 10px; color: var(--muted); }
.mini-chips { display: flex; gap: 6px; } .mini-chips i { font-style: normal; padding: 4px 9px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); } .mini-chips i.on { background: var(--orange); border-color: var(--orange); color: #fff; }
.mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mini-car { background: var(--surface); border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.mini-car b { display: block; height: 62px; background: linear-gradient(135deg, #cfd8e6, #aebbd0); }
.mini-car span { display: block; padding: 6px 8px; font-weight: 700; } .mini-car em { display: block; padding: 0 8px 8px; font-style: normal; color: var(--muted); }
.mini-call { margin-top: auto; background: var(--orange); color: #fff; border-radius: 12px; text-align: center; padding: 10px; font-weight: 800; }
.mini-hero { height: 150px; border-radius: 14px; background: linear-gradient(135deg, #cfd8e6, #aebbd0); }

.pro { background: linear-gradient(135deg, var(--navy), var(--navy-light)); color: #fff; border-radius: 28px; padding: 44px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; }
.pro ul { margin: 0; padding-left: 1.2em; } .pro li { margin: .4em 0; }
.pro .badge { display: inline-block; background: var(--orange); color: #fff; font-weight: 800; border-radius: 10px; padding: 3px 12px; font-size: .85rem; letter-spacing: .06em; margin-bottom: 12px; }
@media (max-width: 800px) { .pro { grid-template-columns: 1fr; padding: 28px; } }

footer { background: var(--navy); color: rgba(255,255,255,.8); padding: 40px 0; }
footer a { color: #fff; } footer .cols { display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; }
footer ul { list-style: none; margin: 0; padding: 0; } footer li { margin: .35em 0; }

.doc { max-width: 760px; padding: 48px 0 80px; } .doc h1 { font-size: 2.2rem; } .doc h2 { font-size: 1.3rem; margin-top: 1.6em; }
.note { background: var(--sand); border-radius: 14px; padding: 12px 16px; font-size: .95rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }

.tt { width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); display: grid; place-items: center; cursor: pointer; padding: 0; }
.tt svg { width: 22px; height: 22px; fill: currentColor; }
.tt .sun { display: none; } html[data-theme="dark"] .tt .sun { display: block; } html[data-theme="dark"] .tt .moon { display: none; }
@media (prefers-color-scheme: dark) { html:not([data-theme]) .tt .sun { display: block; } html:not([data-theme]) .tt .moon { display: none; } }
