/* Colours and type follow the app (ui/theme/Color.kt, Plus Jakarta Sans). */
:root {
  --bg: #F2F5F9;
  --surface: #FFFFFF;
  --surface-alt: #E8EDF4;
  --outline: #E5EAF1;
  --text: #131A26;
  --text-muted: #5B6675;
  --text-subtle: #8B95A7;
  --primary: #4761D7;
  --primary-weak: #E0E5F8;
  --night: #0B1019;
  --night-surface: #131A26;
  --night-text: #E5EAF2;
  --night-muted: #8B95A7;
  --cry: #D77453;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---- Header ---- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  max-width: 1080px;
  margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand .mark { width: 36px; height: 36px; border-radius: 10px; }
.nav-links { display: flex; gap: 22px; font-size: 14px; font-weight: 500; }
.nav-links a { color: var(--text-muted); }
.nav-links a:hover { color: var(--text); text-decoration: none; }

/* ---- Hero ---- */
.hero {
  text-align: center;
  padding: 56px 24px 64px;
  max-width: 760px;
  margin: 0 auto;
}
.hero .app-icon { width: 96px; height: 96px; border-radius: 24px; margin: 0 auto 28px; box-shadow: 0 12px 32px rgba(71, 97, 215, .25); }
.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(40px, 8vw, 68px);
  font-weight: 700;
  letter-spacing: -1.5px;
  line-height: 1.04;
  margin-bottom: 20px;
}
.hero .lede {
  font-size: clamp(17px, 2.4vw, 20px);
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 32px;
}
.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--outline);
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 999px;
}
.cta .badge {
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--primary);
}

/* ---- Screens ---- */
.screens {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding-bottom: 24px;
}
.screens img { width: 100%; height: auto; border-radius: 18px; box-shadow: 0 8px 24px rgba(19, 26, 38, .12); }
@media (max-width: 860px) {
  .screens { grid-template-columns: repeat(2, 1fr); }
}

/* ---- Sections ---- */
.section { padding: 64px 0; }
.section h2 {
  font-size: clamp(28px, 5vw, 38px);
  font-weight: 700;
  letter-spacing: -1px;
  text-align: center;
  margin-bottom: 12px;
}
.section .sub {
  text-align: center;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 40px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: 20px;
  padding: 26px;
}
.card .dot {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--primary-weak);
  margin-bottom: 14px;
  display: flex; align-items: center; justify-content: center;
}
.card .dot svg { width: 20px; height: 20px; }
.card h3 { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.card p { color: var(--text-muted); font-size: 15px; }

.steps { counter-reset: step; list-style: none; max-width: 640px; margin: 0 auto; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 22px 52px;
  color: var(--text-muted);
}
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: -2px;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--primary-weak); color: var(--primary);
  font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.steps strong { color: var(--text); }

.night {
  background: var(--night);
  color: var(--night-text);
  border-radius: 28px;
  padding: 48px 32px;
  text-align: center;
  max-width: 1032px;
  margin: 0 auto;
}
.night h2 { color: var(--night-text); }
.night p { color: var(--night-muted); max-width: 560px; margin: 0 auto; }

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid var(--outline);
  margin-top: 64px;
  padding: 36px 24px;
}
.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}
.footer-links { display: flex; gap: 22px; font-size: 14px; }
.footer-links a { color: var(--text-muted); }
.footer-meta { color: var(--text-subtle); font-size: 13px; }

/* ---- Legal pages ---- */
.legal { max-width: 760px; margin: 0 auto; padding: 40px 24px 64px; }
.legal .eyebrow { text-align: left; }
.legal h1 {
  font-size: clamp(34px, 6vw, 46px);
  font-weight: 700;
  letter-spacing: -1.5px;
  margin-bottom: 8px;
}
.legal .updated { color: var(--text-subtle); font-size: 14px; margin-bottom: 32px; }
.legal .summary {
  background: var(--primary-weak);
  border-radius: 16px;
  padding: 18px 20px;
  margin-bottom: 8px;
}
.legal .summary p { color: var(--text); margin: 0; }
.legal h2 { font-size: 21px; font-weight: 600; letter-spacing: -.3px; margin: 34px 0 12px; }
.legal p, .legal li { color: var(--text-muted); font-size: 16px; margin-bottom: 12px; }
.legal ul, .legal ol { padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal strong { color: var(--text); font-weight: 600; }
.legal code { font-size: 14px; background: var(--surface-alt); padding: 1px 6px; border-radius: 6px; }
.back-link { display: inline-block; margin-bottom: 24px; font-size: 14px; color: var(--text-muted); }

@media (max-width: 560px) {
  .nav-links { gap: 16px; }
  .nav-links .optional { display: none; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
