:root {
  --sky: #5b8cc4;
  --sky-deep: #3b6aa0;
  --sky-light: #9dc4e0;
  --sand: #f0e0b0;
  --grass: #477b33;
  --ink: #2a1f18;
  --stone: #f4efe4;
  --roof: #c25c3a;
  --gold: #f5cb3e;
  --text: #2a1f18;
  --muted: #5d5047;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--sand);
  line-height: 1.6;
}

img.pixel { image-rendering: pixelated; }

a { color: var(--sky-deep); }

/* Landing page */

.hero {
  background: linear-gradient(var(--sky-deep) 0, var(--sky) 55%, var(--sky-light) 100%);
  color: #fff;
  padding: 56px 20px 0;
  border-bottom: 8px solid var(--ink);
}

.hero-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  gap: 48px;
  align-items: flex-end;
  justify-content: center;
  flex-wrap: wrap;
}

.pitch {
  flex: 1 1 360px;
  max-width: 480px;
  padding-bottom: 56px;
}

.app-icon {
  width: 128px;
  height: 128px;
  border-radius: 28px;
  border: 4px solid var(--ink);
  display: block;
}

h1 {
  font-size: 56px;
  line-height: 1.1;
  margin: 20px 0 8px;
  letter-spacing: 1px;
  text-shadow: 3px 3px 0 var(--ink);
}

.tagline {
  font-size: 20px;
  margin: 0 0 28px;
  text-shadow: 1px 1px 0 rgba(42, 31, 24, 0.6);
}

.badges {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.badge { display: inline-block; line-height: 0; }
.badge img { height: 54px; width: auto; }
.badge:not([href]) { cursor: default; }

.soon {
  margin: 12px 0 0;
  font-size: 14px;
  opacity: 0.9;
}

.phone {
  flex: 0 0 auto;
  width: 280px;
  border: 8px solid var(--ink);
  border-bottom: none;
  border-radius: 32px 32px 0 0;
  overflow: hidden;
  background: var(--ink);
  line-height: 0;
  max-height: 520px;
}

.phone img { width: 100%; height: auto; }

.features {
  max-width: 1000px;
  margin: 0 auto;
  padding: 48px 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.feature {
  background: var(--stone);
  border: 4px solid var(--ink);
  padding: 18px 20px;
}

.feature h2 {
  font-size: 18px;
  margin: 0 0 6px;
}

.feature p { margin: 0; color: var(--muted); }

footer {
  background: var(--grass);
  color: #fff;
  text-align: center;
  padding: 24px 20px;
  border-top: 8px solid var(--ink);
  font-size: 14px;
}

footer a { color: #fff; }
footer p { margin: 4px 0; }

/* Privacy policy */

.doc-header {
  background: var(--sky-deep);
  color: #fff;
  border-bottom: 8px solid var(--ink);
  padding: 20px;
}

.doc-header a {
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 22px;
}

.doc-header img {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  border: 2px solid var(--ink);
}

.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 20px 56px;
}

.doc h1 {
  font-size: 36px;
  text-shadow: none;
  margin: 0 0 4px;
}

.doc h2 {
  font-size: 22px;
  margin: 36px 0 8px;
  padding-top: 12px;
  border-top: 2px solid rgba(42, 31, 24, 0.15);
}

.doc h3 { font-size: 17px; margin: 22px 0 4px; }

.doc .updated { color: var(--muted); margin: 0 0 24px; }

.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 15px;
  background: var(--stone);
}

.doc th, .doc td {
  border: 1px solid rgba(42, 31, 24, 0.3);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}

.doc th { background: rgba(42, 31, 24, 0.08); }

.table-wrap { overflow-x: auto; }

@media (max-width: 640px) {
  .hero { padding-top: 36px; }
  .hero-inner { gap: 32px; }
  .pitch { padding-bottom: 0; text-align: center; }
  .app-icon { margin: 0 auto; width: 104px; height: 104px; border-radius: 24px; }
  h1 { font-size: 44px; }
  .badges { justify-content: center; }
  .badge img { height: 48px; }
  .phone { width: 240px; max-height: 420px; }
}
