/* Dabbit site v0.2. Minimal, white, product on a device. Colours from the app icon and Palette.swift.
   Picture tiles use the art's own cream (#ece9e2) so the real images sit flush. System rounded font only. */
:root {
  --page: #ffffff;
  --soft: #f7f4ee;
  --art: #ece9e2;
  --ink: #2f2f3a;
  --ink-soft: #5f5f6b;
  --pink: #e0307f;
  --sky: #dff1fc;
  --sea: #2a1f6e;
  --accent: #005ccc;
  --go: #bf5400;
  --line: #ece7dd;
  --todo-bg: #fff1a8; --todo-ink: #5a4500;
  --bezel: #1d1d22;
  --radius: 24px;
  --font: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --page: #16161b; --soft: #1f1f26; --ink: #ececf0; --ink-soft: #b4b4be;
    --pink: #ff6aa9; --sky: #1d2b3a; --accent: #73b8ff; --go: #ff9a4d; --line: #2c2c35;
    --todo-bg: #5a4a00; --todo-ink: #fff1a8; --bezel: #3a3a44;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--ink); font-family: var(--font); font-size: 18px; line-height: 1.6; }
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
img { max-width: 100%; display: block; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 720px; }

/* Header */
.top { padding: 20px 0; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 22px; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.nav { display: flex; gap: 22px; font-size: 16px; font-weight: 600; }
.nav a { color: var(--ink-soft); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }

/* Hero */
.hero { padding: 40px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: center; }
h1 { font-size: clamp(34px, 4.4vw, 52px); line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 18px; font-weight: 800; color: var(--pink); }
.lede { font-size: 19px; color: var(--ink-soft); margin: 0 0 26px; max-width: 34ch; }
.coming { margin: 0; color: var(--ink-soft); font-size: 16px; }
.coming strong { display: block; color: var(--ink); font-size: 19px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; padding: 0; list-style: none; }
.facts li { background: var(--soft); border-radius: 999px; padding: 4px 14px; font-size: 15px; font-weight: 600; color: var(--ink-soft); }

/* Device frame: a generic tablet (no Apple-specific details). 4:3 landscape screen, sized for
   store/screenshots/ipad-13 captures (2752x2064) once they exist. Swap the img src, nothing else. */
.device { background: var(--bezel); border-radius: 34px; padding: 16px; box-shadow: 0 30px 60px -20px rgba(42,31,110,.35); }
.device .screen { border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--art); }
.device .screen picture, .device .screen img { width: 100%; height: 100%; object-fit: contain; }
.caption { text-align: center; color: var(--ink-soft); font-size: 14px; margin-top: 12px; }

/* Picture band */
.band { background: var(--sky); padding: 64px 0; }
h2 { font-size: clamp(28px, 3.4vw, 38px); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 10px; font-weight: 800; }
.band h2, .band .sub { text-align: center; }
.sub { color: var(--ink-soft); margin: 0 auto 32px; max-width: 52ch; }
.pics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; list-style: none; padding: 0; margin: 0; }
.pics li { background: var(--art); border-radius: var(--radius); overflow: hidden; }
.pics img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: contain; }
.pics span { display: block; text-align: center; font-weight: 700; font-size: 15px; color: #4a4a55; padding: 0 0 12px; }

/* Peek inside */
.peek { padding: 80px 0; }
.peek .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; }
.steps li { position: relative; padding-left: 52px; margin-bottom: 22px; color: var(--ink-soft); }
.steps li strong { display: block; color: var(--ink); font-size: 19px; }
.steps li::before { counter-increment: s; content: counter(s); position: absolute; left: 0; top: 2px; width: 36px; height: 36px; border-radius: 50%; background: var(--pink); color: #fff; font-weight: 800; display: grid; place-items: center; }

.promise { background: var(--soft); border-radius: 32px; padding: 40px; text-align: center; margin-bottom: 64px; }
.promise p { color: var(--ink-soft); max-width: 56ch; margin: 0 auto; }

/* Prose pages */
.prose { padding: 16px 0 56px; }
.prose h1 { font-size: clamp(34px, 5vw, 46px); }
.prose h2 { font-size: 24px; margin-top: 40px; }
.prose p, .prose li { max-width: 66ch; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.updated { color: var(--ink-soft); font-size: 16px; margin-top: -6px; }
.short { background: var(--soft); border-radius: var(--radius); padding: 22px 26px; margin: 24px 0 8px; }
.short p { margin: 0; }
.todo { background: var(--todo-bg); color: var(--todo-ink); font-weight: 700; padding: 1px 6px; border-radius: 6px; }
details { background: var(--soft); border-radius: 18px; margin: 0 0 12px; }
summary { cursor: pointer; padding: 18px 54px 18px 22px; font-weight: 700; font-size: 19px; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 22px; top: 12px; font-size: 28px; color: var(--pink); }
details[open] summary::after { content: "\2212"; }
details .a { padding: 0 22px 18px; color: var(--ink-soft); }
details .a p { margin: 0 0 10px; }
.contact { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; background: var(--soft); border-radius: var(--radius); padding: 24px; margin: 24px 0 20px; }
.contact .big { font-size: 21px; font-weight: 750; }
.btn { display: inline-block; background: var(--pink); color: #fff; text-decoration: none; font-weight: 700; padding: 12px 22px; border-radius: 999px; }

footer { padding: 28px 0 44px; color: var(--ink-soft); font-size: 15px; border-top: 1px solid var(--line); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
footer nav { display: flex; gap: 18px; }
footer a { color: var(--ink-soft); }
footer .tm { flex-basis: 100%; order: 3; font-size: 13px; }

@media (max-width: 860px) {
  .hero .wrap, .peek .wrap { grid-template-columns: 1fr; gap: 36px; }
  .peek .device { order: -1; }
  .pics { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .device { border-radius: 24px; padding: 10px; }
  .device .screen { border-radius: 14px; }
  .promise { padding: 28px 20px; }
}
@media (max-width: 420px) {
  body { font-size: 17px; }
  .wrap { padding: 0 16px; }
  .hero { padding-top: 16px; }
}

/* What's new */
.entry { border-top: 1px solid var(--line); padding: 28px 0 8px; margin-top: 28px; }
.entry h2 { margin: 4px 0 10px; }
.entry .meta { margin: 0; font-size: 15px; color: var(--ink-soft); font-weight: 600; }
.entry .ver { background: var(--sky); color: var(--ink); border-radius: 999px; padding: 2px 10px; margin-left: 8px; }
.entry figure { margin: 18px 0 0; background: var(--art); border-radius: var(--radius); overflow: hidden; }
.entry figure img { width: 100%; height: auto; }

.optout button { font: inherit; font-weight: 600; padding: 10px 18px; border-radius: 999px; border: 2px solid currentColor; background: transparent; color: inherit; cursor: pointer; }
.optout button:focus-visible { outline: 3px solid currentColor; outline-offset: 2px; }
.optout span { margin-left: 8px; }
