/* Nudgekin website. Colours follow the app (lib/theme.dart). */
:root {
  --ground: #f6f4ef;
  --surface: #ffffff;
  --sunk: #ece8df;
  --ink: #1e2a2a;
  --ink-soft: #5b6664;
  --line: #dcd6cb;
  --teal: #2e6b62;
  --teal-soft: #d9eae6;
  --warm: #c9803a;
  --warm-soft: #f6e6d3;
  --radius: 22px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #12161d;
    --surface: #1b212b;
    --sunk: #252c38;
    --ink: #eef1f5;
    --ink-soft: #a3adba;
    --line: #323b49;
    --teal: #6fc2b2;
    --teal-soft: #1e3a35;
    --warm: #e6a35e;
    --warm-soft: #3a2c1e;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 17px/1.6 "Nunito", -apple-system, system-ui, "Segoe UI", sans-serif;
}
img { max-width: 100%; display: block; }
a { color: var(--teal); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* Navigation */
.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding-top: 18px; padding-bottom: 18px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 20px; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.brand .tag { font-size: 13px; font-weight: 800; color: var(--teal); background: var(--teal-soft); padding: 2px 9px; border-radius: 999px; }
.nav nav { display: flex; gap: 18px; flex-wrap: wrap; }
.nav nav a { color: var(--ink-soft); text-decoration: none; font-weight: 700; font-size: 15px; }
.nav nav a:hover { color: var(--teal); }

/* Hero */
.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center; padding-top: 32px; padding-bottom: 56px; }
.hero h1 { font-size: clamp(36px, 6vw, 58px); line-height: 1.05; letter-spacing: -1px; margin: 0 0 16px; font-weight: 900; }
.hero p.lead { font-size: 20px; color: var(--ink-soft); margin: 0 0 26px; max-width: 32em; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--teal-soft);
  color: var(--teal); font-weight: 800; font-size: 14px; margin-bottom: 18px; }
.stores { display: flex; gap: 12px; flex-wrap: wrap; }
/* Store buttons: black with the store's logo, like the official badges. Greyed out until a link is added (index.html). */
.store { position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 9px 18px 9px 14px; border-radius: 12px;
  background: #000; color: #fff; text-decoration: none; min-width: 180px; border: 1px solid rgba(255,255,255,.28);
  transition: transform .15s ease, opacity .15s ease; }
.store:not([aria-disabled="true"]):hover { transform: translateY(-2px); }
.store svg { width: 28px; height: 28px; flex: none; }
.store span { display: flex; flex-direction: column; }
.store small { font-size: 11px; line-height: 1.1; opacity: .85; }
.store strong { font-size: 20px; line-height: 1.15; font-weight: 800; letter-spacing: -0.2px; }
.store em { display: none; }
.store-name { margin: 12px 0 0; font-size: 14px; color: var(--ink-soft); }
.store[aria-disabled="true"] { cursor: not-allowed; pointer-events: none; }
.store[aria-disabled="true"] svg, .store[aria-disabled="true"] span { opacity: .45; }
.store[aria-disabled="true"] em { display: block; position: absolute; top: -13px; right: 10px; font-style: normal; font-size: 11px;
  line-height: 1.5; font-weight: 800; padding: 1px 8px; border-radius: 999px; background: var(--warm); color: #fff; opacity: 1; }
.stores { padding-top: 8px; }
.hero-art { position: relative; aspect-ratio: 1 / 0.9; }
.hero-art .blob { position: absolute; inset: 6% 2% 4%; border-radius: 46% 54% 52% 48% / 55% 45% 55% 45%;
  background: radial-gradient(circle at 30% 25%, #4fa394, #2e6b62 60%, #214f48); }
.hero-art .cat { position: absolute; width: 50%; left: 8%; bottom: 6%; filter: drop-shadow(0 16px 24px rgba(0,0,0,.25)); }
.hero-art picture img { width: 100%; }
.hero-art .dog { position: absolute; width: 46%; right: 6%; bottom: 8%; filter: drop-shadow(0 16px 24px rgba(0,0,0,.25)); }
.hero-art .bubble { position: absolute; top: 4%; left: 50%; transform: translateX(-50%); background: var(--surface); color: var(--ink);
  padding: 10px 16px; border-radius: 18px; font-weight: 800; font-size: 15px; box-shadow: 0 8px 24px rgba(0,0,0,.12); white-space: nowrap; }

/* Sections */
section { padding: 56px 0; }
h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.15; margin: 0 0 12px; letter-spacing: -0.5px; font-weight: 900; }
.sub { color: var(--ink-soft); font-size: 19px; margin: 0 0 32px; max-width: 40em; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card .ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; margin-bottom: 14px; }
.card h3 { margin: 0 0 6px; font-size: 19px; font-weight: 800; }
.card p { margin: 0; color: var(--ink-soft); font-size: 16px; }

/* Sky strip */
.sky { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.sky figure { margin: 0; }
.sky img { border-radius: 16px; aspect-ratio: 1; object-fit: cover; object-position: right top; border: 1px solid var(--line); }
.sky figcaption { text-align: center; font-weight: 800; font-size: 14px; margin-top: 8px; color: var(--ink-soft); }

/* Callouts */
.band { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 36px; display: grid;
  grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.band img { width: 160px; }
.ticks { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; }
.ticks li::before { content: "✓"; color: var(--teal); font-weight: 900; margin-right: 10px; }
.note { background: var(--warm-soft); border-radius: 18px; padding: 18px 20px; font-size: 16px; }

/* Documents (privacy, terms, support) */
.doc { padding-top: 16px; padding-bottom: 64px; }
.doc > * { max-width: 720px; }
.doc h1 { font-size: clamp(30px, 5vw, 42px); margin: 8px 0 4px; font-weight: 900; letter-spacing: -0.5px; }
.doc h2 { font-size: 21px; margin: 32px 0 6px; color: var(--teal); letter-spacing: 0; }
.doc p, .doc li { color: var(--ink); }
.doc .muted { color: var(--ink-soft); font-size: 15px; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px; margin: 10px 0; }
summary { font-weight: 800; cursor: pointer; }

footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--ink-soft); font-size: 15px; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer a { color: var(--ink-soft); margin-right: 16px; text-decoration: none; font-weight: 700; }
footer a:hover { color: var(--teal); }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 8px; }
  .hero-art { max-width: 460px; width: 100%; margin: 0 auto; }
  .grid { grid-template-columns: 1fr; }
  .sky { grid-template-columns: repeat(3, 1fr); }
  .band { grid-template-columns: 1fr; padding: 24px; }
  .band img { width: 120px; }
  .nav nav { gap: 12px; }
}
@media (max-width: 420px) {
  .nav nav a.hide-sm { display: none; }
  .store { min-width: 0; flex: 1; }
}
