:root {
  --cream: #fff6e3;
  --card: #fffbf2;
  --sand: #f3d9a4;
  --line: #e8d3a6;
  --ink: #3a2a22;
  --ink-soft: #6f5b4c;
  --blue: #3a62c0;
  --blue-dark: #2c4b99;
  --gold: #f4b63c;
  --gold-dark: #d99a1c;
  --radius: 20px;
  --shadow: 0 6px 0 rgba(58, 42, 34, 0.08), 0 14px 30px rgba(58, 42, 34, 0.1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }

h1, h2, h3 {
  font-family: 'Baloo 2', 'Nunito', system-ui, sans-serif;
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: 0.1px;
}
h1 { font-size: clamp(2.3rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.3rem); }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; }

.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 246, 227, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 1.3rem; }
.brand img { width: 40px; height: 40px; border-radius: 10px; border: 2px solid var(--ink); }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 700; padding: 6px 12px; border-radius: 999px; }
.nav a:hover { background: var(--sand); }
.nav .lang { border: 2px solid var(--line); background: var(--card); }
@media (max-width: 640px) { .nav .hide-sm { display: none; } }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 14px;
  font-weight: 700;
  text-decoration: none;
  background: var(--blue);
  color: #fff;
  box-shadow: 0 4px 0 var(--blue-dark);
  transition: transform 0.08s, box-shadow 0.08s;
}
.btn:hover { color: #fff; transform: translateY(1px); box-shadow: 0 3px 0 var(--blue-dark); }
.btn.gold { background: var(--gold); color: var(--ink); box-shadow: 0 4px 0 var(--gold-dark); }
.btn.gold:hover { color: var(--ink); box-shadow: 0 3px 0 var(--gold-dark); }
.pill {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--card);
  border: 2px dashed var(--gold-dark);
  font-weight: 700;
}
.store-buttons { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
[hidden] { display: none !important; }

/* Hero */
.hero { padding: 48px 0 24px; overflow: hidden; }
.hero .wrap { display: grid; gap: 32px; grid-template-columns: 1.1fr 0.9fr; align-items: center; }
.eyebrow { display: inline-block; font-weight: 700; color: var(--ink-soft); background: var(--sand); padding: 4px 14px; border-radius: 999px; margin-bottom: 14px; font-size: 0.95rem; }
.hero .lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 34em; }
.hero .note { font-size: 0.92rem; color: var(--ink-soft); margin-top: 14px; }
.hero-art { position: relative; display: flex; justify-content: center; }
.hero-art .icon {
  position: absolute;
  left: 2%;
  top: 6%;
  width: 34%;
  max-width: 150px;
  border-radius: 28px;
  border: 4px solid var(--ink);
  box-shadow: var(--shadow);
  transform: rotate(-8deg);
  z-index: 2;
}
@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero .lead { margin-inline: auto; }
  .store-buttons { justify-content: center; }
  .hero-art .icon { left: 6%; top: 2%; }
}

/* Phone frame */
.phone {
  width: min(280px, 70vw);
  border-radius: 34px;
  border: 8px solid var(--ink);
  background: var(--ink);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin: 0;
}
.phone img { width: 100%; height: auto; border-radius: 24px; }

/* Sections */
section { padding: 56px 0; }
.section-head { text-align: center; max-width: 40em; margin: 0 auto 32px; }
.section-head p { color: var(--ink-soft); }

.features { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }
.card {
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 4px 0 var(--line);
}
.card .emoji { font-size: 2rem; line-height: 1; margin-bottom: 10px; }
.card p { margin: 0; color: var(--ink-soft); }

.steps { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); counter-reset: step; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.steps .card { position: relative; padding-top: 44px; }
.steps .card::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -18px;
  left: 20px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--ink);
  font-family: 'Baloo 2', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
}

.band { background: var(--sand); border-block: 2px solid var(--line); }
.story { display: grid; gap: 32px; grid-template-columns: 0.8fr 1.2fr; align-items: center; }
.story img { width: min(300px, 70%); margin-inline: auto; border-radius: 40px; border: 4px solid var(--ink); box-shadow: var(--shadow); }
@media (max-width: 760px) { .story { grid-template-columns: 1fr; text-align: center; } }

/* Screenshots */
.shots {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 16px 24px;
  margin-inline: -16px;
  -webkit-overflow-scrolling: touch;
}
.shots figure { flex: 0 0 auto; width: min(240px, 62vw); margin: 0; scroll-snap-align: center; text-align: center; }
.shots .phone { width: 100%; }
.shots figcaption { margin-top: 12px; font-weight: 700; font-size: 0.95rem; }
@media (min-width: 1100px) { .shots { justify-content: center; overflow: visible; } }

.cta { text-align: center; }
.cta .icon { width: 120px; margin: 0 auto 16px; border-radius: 28px; border: 4px solid var(--ink); box-shadow: var(--shadow); }

/* Footer */
.site-footer { border-top: 2px solid var(--line); padding: 28px 0 40px; font-size: 0.95rem; color: var(--ink-soft); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.site-footer a { color: var(--ink); font-weight: 700; }

/* Legal pages */
.doc { padding: 40px 0 64px; }
.doc .wrap { max-width: 800px; }
.doc h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
.doc h2 { font-size: 1.5rem; margin-top: 1.8em; }
.doc h3 { margin-top: 1.4em; }
.doc ul, .doc ol { padding-left: 1.3em; margin: 0 0 1em; }
.doc li { margin-bottom: 0.4em; }
.doc .meta { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 1.5em; }
.doc table { width: 100%; border-collapse: collapse; margin: 0 0 1.2em; font-size: 0.97rem; background: var(--card); border-radius: 12px; overflow: hidden; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border: 1px solid var(--line); }
.doc th { background: var(--sand); }
.table-scroll { overflow-x: auto; }
.callout { background: var(--card); border: 2px solid var(--gold); border-radius: var(--radius); padding: 16px 20px; margin: 0 0 1.4em; }
.callout p:last-child { margin-bottom: 0; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
