/* KanduMap site. Greys like the app, with the chart screenshots carrying the colour. */
:root {
  --bg: #ffffff;
  --bg-alt: #f7f7f8;
  --text: #111113;
  --text-2: #3c3c41;
  --text-3: #6b6b72;
  --rule: #e3e3e6;
  --card: #ffffff;
  --red: #e10600;
  --note-bg: rgba(225, 6, 0, 0.06);
  --shadow: 0 1px 2px rgba(17, 17, 19, 0.06), 0 12px 40px rgba(17, 17, 19, 0.1);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141416;
    --bg-alt: #1b1b1e;
    --text: #ececef;
    --text-2: #c4c4ca;
    --text-3: #8f8f97;
    --rule: #2e2e33;
    --card: #1b1b1e;
    --red: #ff453a;
    --note-bg: rgba(255, 69, 58, 0.1);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 40px rgba(0, 0, 0, 0.5);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 18px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--red); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 20px; top: 12px; background: var(--bg); padding: 8px 12px; z-index: 10; }

/* Header */
.top { border-bottom: 1px solid var(--rule); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; text-decoration: none; letter-spacing: -0.01em; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.top nav { display: flex; gap: 20px; font-size: 15px; color: var(--text-2); }
.top nav a { text-decoration: none; }
.top nav a:hover { color: var(--text); }

/* Type */
h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 16px; }
h1 { font-size: clamp(38px, 6vw, 60px); font-weight: 800; }
h2 { font-size: clamp(28px, 4vw, 38px); font-weight: 800; }
h3 { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
p { margin: 0 0 16px; color: var(--text-2); }
.lead { font-size: clamp(19px, 2.2vw, 22px); color: var(--text-2); max-width: 34em; }
.small { font-size: 15px; color: var(--text-3); }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); margin-bottom: 12px; }

/* Sections */
section { padding: 88px 0; }
section.alt { background: var(--bg-alt); }
.hero { padding: 72px 0 88px; }
.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.phone {
  border-radius: 38px;
  border: 1px solid var(--rule);
  box-shadow: var(--shadow);
  overflow: hidden;
  background: var(--card);
  max-width: 320px;
  margin: 0 auto;
}

/* Download badges */
.badges { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 14px; align-items: center; }
.badges a { display: block; border-radius: 9px; }
.badges img { height: 52px; width: auto; }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 32px; margin-top: 48px; }
.feature .phone { max-width: 260px; margin: 0 0 20px; border-radius: 30px; }
.list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 40px; margin: 48px 0 0; padding: 0; list-style: none; }
.list li { padding-left: 22px; position: relative; color: var(--text-2); }
.list li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 10px; height: 2px; background: var(--red); }

/* How it was built */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px 48px; margin-top: 48px; padding: 0; list-style: none; }
.steps li { counter-increment: step; border-top: 1px solid var(--rule); padding-top: 20px; }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font-size: 14px; font-weight: 700; color: var(--text-3); margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.steps p { font-size: 17px; }

/* Free */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 40px; }
.pillar { border: 1px solid var(--rule); border-radius: 18px; padding: 22px; background: var(--card); }
.pillar strong { display: block; font-size: 19px; margin-bottom: 6px; }
.pillar span { color: var(--text-2); font-size: 16px; }

/* Safety note */
.note { border-left: 3px solid var(--red); background: var(--note-bg); border-radius: 0 14px 14px 0; padding: 20px 24px; }
.note p { margin: 0; color: var(--text); }

/* Plain pages: privacy, support, terms */
.page { padding: 64px 0 88px; }
.page .wrap { max-width: 760px; }
.page h2 { font-size: 24px; margin-top: 40px; }
.page ul { color: var(--text-2); padding-left: 22px; }
.page li { margin-bottom: 8px; }
.page dt { font-weight: 700; margin-top: 22px; }
.page dd { margin: 6px 0 0; color: var(--text-2); }

/* Footer */
footer { border-top: 1px solid var(--rule); padding: 40px 0 56px; font-size: 15px; color: var(--text-3); }
footer .row { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer nav a { text-decoration: none; color: var(--text-2); }
footer .credits { margin-top: 20px; font-size: 13px; line-height: 1.6; max-width: 60em; }

@media (max-width: 860px) {
  body { font-size: 17px; }
  section { padding: 64px 0; }
  .hero { padding: 40px 0 64px; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .features { grid-template-columns: 1fr; gap: 48px; }
  .feature .phone { margin: 0 auto 20px; }
  .list, .steps { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr 1fr; }
  .top nav { display: none; }
}
@media (max-width: 480px) {
  .pillars { grid-template-columns: 1fr; }
  .badges img { height: 48px; }
}
