:root {
  --bg: #F6F7FB; --surface: #FFFFFF; --text: #14171F; --muted: #596070;
  --line: #E1E4EB; --primary: #4F46E5; --primary-soft: #E9E8FF;
  --teal: #0E8F7E; --teal-soft: #DDF4F0; --on-primary: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111318; --surface: #16181D; --text: #ECEEF3; --muted: #A8AFBD;
    --line: #2D323C; --primary: #B4B0FF; --primary-soft: #322E8C;
    --teal: #5AD6C4; --teal-soft: #0F3B36; --on-primary: #1B1668;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
a { color: var(--primary); }
img { max-width: 100%; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

header.site { padding: 20px 0; }
header.site .wrap { display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; color: var(--text); text-decoration: none; }
.brand img { width: 34px; height: 34px; }
nav.top { margin-left: auto; display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
nav.top a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; }
nav.top a:hover { color: var(--text); }

.btn {
  display: inline-block; background: var(--primary); color: var(--on-primary) !important;
  padding: 14px 26px; border-radius: 10px; font-weight: 600; text-decoration: none;
}
.btn:hover { filter: brightness(1.08); }
.btn.small { padding: 9px 16px; font-size: 14px; }

.hero { text-align: center; padding: 56px 0 40px; background: linear-gradient(var(--primary-soft), var(--bg)); }
.hero.top-pad { padding-top: 0; }
h1 { font-size: clamp(32px, 5.2vw, 52px); line-height: 1.1; letter-spacing: -1px; margin: 0 0 18px; }
.lead { font-size: 19px; color: var(--muted); max-width: 660px; margin: 0 auto 28px; }
.note { font-size: 13.5px; color: var(--muted); margin-top: 14px; }
.badges { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 26px; padding: 0; list-style: none; }
.badges li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 13.5px; font-weight: 500; }

section { padding: 44px 0; }
h2 { font-size: 30px; letter-spacing: -0.5px; line-height: 1.2; margin: 0 0 12px; }
h3 { font-size: 19px; margin: 0 0 6px; }
.sub { color: var(--muted); max-width: 680px; margin: 0 0 28px; }
.center { text-align: center; }
.center .sub { margin-left: auto; margin-right: auto; }

.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.card p { color: var(--muted); margin: 0 0 12px; }
.card ul { margin: 0; padding: 0; list-style: none; }
.card li { padding-left: 26px; position: relative; margin-bottom: 8px; }
.card li::before { content: "✓"; position: absolute; left: 0; font-weight: 700; color: var(--primary); }
.card.teal li::before { color: var(--teal); }
.icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--primary-soft); margin-bottom: 14px; font-size: 24px; }
.teal .icon { background: var(--teal-soft); }
.card a.more { font-weight: 600; text-decoration: none; display: inline-block; margin-top: 12px; }

ol.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
ol.steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
ol.steps li::before { content: counter(s); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--primary); color: var(--on-primary); font-weight: 700; margin-bottom: 12px; }
ol.steps p { color: var(--muted); margin: 4px 0 0; }

/* A drawn preview of the app. Sample photos in img/ are from Unsplash (free licence). */
.mock { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: 0 20px 50px rgba(20, 23, 31, .10); text-align: left; margin: 40px auto 0; max-width: 900px; }
.mock-bar { display: flex; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.mock-body { padding: 20px; display: grid; gap: 14px; }
.mock-title { font-weight: 700; font-size: 18px; }
.mock-sum { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-weight: 700; }
.mock-sum small { display: block; font-weight: 400; color: var(--muted); }
.mock-sum .icon { margin: 0; width: 40px; height: 40px; font-size: 18px; background: var(--teal-soft); }
.mock-row { display: flex; gap: 12px; flex-wrap: wrap; }
.tile { width: 120px; height: 120px; border-radius: 12px; position: relative; border: 3px solid #12805C; background: #C7B8FF url(img/lake.jpg) center / cover; }
.tile.b { background-image: url(img/dog.jpg); }
.tile.rm { border-color: #D92D20; }
.tile.rm::after { content: ""; position: absolute; inset: 0; background: rgba(217, 45, 32, .22); border-radius: 8px; }
.tile span { position: absolute; left: 6px; top: 6px; font-size: 11px; font-weight: 700; color: #fff; background: #12805C; border-radius: 5px; padding: 2px 7px; z-index: 1; }
.tile.rm span { background: #D92D20; }
.people { display: flex; gap: 14px; flex-wrap: wrap; }
.person { text-align: center; font-size: 13px; color: var(--muted); }
.person b { display: block; color: var(--text); font-size: 14px; }
.face { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 8px; background: #C7B8FF url(img/face1.jpg) center / cover; }
.face.f2 { background-image: url(img/face2.jpg); }
.face.f3 { background-image: url(img/face3.jpg); }
.face.f4 { background-image: url(img/face4.jpg); }

.prose h2 { margin-top: 40px; }
.prose p, .prose li { color: var(--muted); }
.prose strong { color: var(--text); }
.prose ol, .prose ul { padding-left: 22px; }
.prose li { margin-bottom: 8px; }

details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin-bottom: 10px; }
summary { font-weight: 600; cursor: pointer; }
details p { color: var(--muted); margin: 10px 0 0; }

.cta { text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 40px 24px; }
footer.site { border-top: 1px solid var(--line); padding: 28px 0 40px; margin-top: 24px; color: var(--muted); font-size: 14px; }
footer.site .wrap { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
footer.site a { color: var(--muted); }
footer.site span { margin-right: auto; }
@media (max-width: 640px) { nav.top a:not(.btn) { display: none; } section { padding: 32px 0; } }
