/* Little Things site: warm terracotta palette matching the app. */
:root {
  --bg: #fff8f6;
  --surface: #f7e4df;
  --surface-strong: #ffdbd1;
  --text: #231917;
  --text-muted: #53433f;
  --primary: #b5523b;
  --on-primary: #ffffff;
  --border: #d8c2bc;
  --accent: #6c5d2f;
  --radius: 20px;
  --max: 1080px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a110f;
    --surface: #322825;
    --surface-strong: #7f2a16;
    --text: #f1dfda;
    --text-muted: #d8c2bc;
    --primary: #ffb4a1;
    --on-primary: #5f1505;
    --border: #53433f;
    --accent: #d8c58d;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

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

a { color: var(--primary); }
a:hover { text-decoration-thickness: 2px; }

img { max-width: 100%; display: block; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { padding: 18px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 18px; }
.brand img { width: 36px; height: 36px; }
.nav { display: flex; gap: 20px; }
.nav a { color: var(--text-muted); text-decoration: none; font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--primary); }

/* Hero */
.hero { padding: 48px 0 64px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(40px, 6vw, 64px); line-height: 1.05; margin: 0 0 16px; letter-spacing: -0.02em; }
.hero p.lead { font-size: 20px; color: var(--text-muted); margin: 0 0 28px; max-width: 34ch; }
.pill { display: inline-flex; align-items: center; gap: 8px; background: var(--primary); color: var(--on-primary); padding: 12px 22px; border-radius: 999px; font-weight: 600; text-decoration: none; }
.pill.secondary { background: transparent; color: var(--primary); border: 1.5px solid var(--border); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.note { font-size: 14px; color: var(--text-muted); margin-top: 14px; }

.phones { position: relative; display: flex; justify-content: center; gap: 16px; }
.phone { width: 230px; border-radius: 32px; border: 8px solid #231917; overflow: hidden; box-shadow: 0 24px 48px rgba(35, 25, 23, 0.18); background: #231917; }
.phone.back { transform: translateY(32px); width: 200px; opacity: 0.95; }

/* Sections */
section { padding: 56px 0; }
section.tinted { background: var(--surface); }
h2 { font-size: clamp(28px, 4vw, 38px); line-height: 1.15; margin: 0 0 12px; letter-spacing: -0.01em; }
.section-lead { color: var(--text-muted); margin: 0 0 36px; max-width: 60ch; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
section:not(.tinted) .feature { background: var(--surface); border-color: transparent; }
.feature h3 { margin: 12px 0 6px; font-size: 19px; }
.feature p { margin: 0; color: var(--text-muted); font-size: 16px; }
.feature .icon { width: 44px; height: 44px; border-radius: 12px; background: var(--surface-strong); display: grid; place-items: center; }
.feature .icon svg { width: 24px; height: 24px; stroke: var(--primary); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--primary); color: var(--on-primary); font-weight: 700; margin-bottom: 10px; }
.steps h3 { margin: 0 0 6px; font-size: 19px; }
.steps p { margin: 0; color: var(--text-muted); }

.privacy-band { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; background: var(--surface-strong); border-radius: var(--radius); padding: 32px; }
.privacy-band h2 { font-size: 28px; }
.privacy-band p { margin: 0; color: var(--text); }
.privacy-band svg { width: 56px; height: 56px; stroke: var(--primary); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Long-form pages (privacy, support) */
.doc { max-width: 720px; padding: 32px 20px 64px; margin: 0 auto; }
.doc h1 { font-size: clamp(32px, 5vw, 44px); line-height: 1.1; margin: 0 0 8px; }
.doc .meta { color: var(--text-muted); margin: 0 0 32px; }
.doc h2 { font-size: 24px; margin: 36px 0 8px; }
.doc h3 { font-size: 19px; margin: 24px 0 6px; }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.callout { background: var(--surface); border-radius: 14px; padding: 18px 20px; margin: 24px 0; }
details { background: var(--surface); border-radius: 14px; padding: 4px 20px; margin: 10px 0; }
details summary { cursor: pointer; font-weight: 600; padding: 14px 0; }
details[open] summary { border-bottom: 1px solid var(--border); margin-bottom: 8px; }
details p, details ol, details ul { margin-top: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 28px 0 40px; color: var(--text-muted); font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.site-footer nav { display: flex; gap: 18px; }
.site-footer a { color: var(--text-muted); }

/* Phone-width layout */
@media (max-width: 820px) {
  .hero { padding: 24px 0 40px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 36px; }
  .hero p.lead { max-width: none; }
  .phone { width: 46%; max-width: 220px; border-width: 6px; border-radius: 26px; }
  .phone.back { width: 42%; }
  .features, .steps { grid-template-columns: 1fr; }
  .privacy-band { grid-template-columns: 1fr; padding: 24px; }
  section { padding: 40px 0; }
  .nav { gap: 14px; }
}

@media (min-width: 821px) and (max-width: 1000px) {
  .features { grid-template-columns: repeat(2, 1fr); }
}
