/* PocketFrame website.
   Colours follow the app's own palette (src/theme/tokens.ts in the app repo) so the
   site and the app read as one thing. Sizes are deliberately generous: the app's
   audience skews elderly, and the site should be readable by the same people. */

:root {
  color-scheme: light dark;
  --bg: #f9fafb;
  --card: #ffffff;
  --text: #101828;
  --text-secondary: #343e54;
  --border: #eaecf0;
  --brand: #2b64e2;
  --brand-fg: #ffffff;
  --link: #1f4fbf;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151515;
    --card: #1f1f1f;
    --text: #f2f4f7;
    --text-secondary: #c8cdd6;
    --border: #3a3a3a;
    --brand: #4f83f1;
    --brand-fg: #ffffff;
    --link: #8fb3ff;
  }
}

* { box-sizing: border-box; }

html { font-size: 112.5%; } /* 18px base: comfortable for older eyes, still normal on a phone */

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

a { color: var(--link); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }

.wrap { max-width: 44rem; margin: 0 auto; padding: 0 1.25rem; }

/* Header */
.site-header { padding: 1.25rem 0; border-bottom: 1px solid var(--border); background: var(--card); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 0.75rem; font-weight: 700; font-size: 1.15rem; color: var(--text); text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.site-nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.site-nav a { min-height: 48px; display: inline-flex; align-items: center; }

/* Hero */
.hero { padding: 3.5rem 0 2.5rem; text-align: center; }
.hero img { width: 112px; height: 112px; border-radius: 26px; box-shadow: 0 8px 30px rgba(16, 24, 40, 0.15); }
.hero h1 { font-size: clamp(2rem, 6vw, 2.75rem); line-height: 1.15; margin: 1.5rem 0 0.75rem; letter-spacing: -0.01em; }
.hero p.lede { font-size: 1.2rem; color: var(--text-secondary); max-width: 32rem; margin: 0 auto; }

/* Store badges — text rather than image badges until the store listings exist */
.stores { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin: 2rem 0 0; }
.store {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0.75rem 1.5rem; border-radius: 14px;
  background: var(--brand); color: var(--brand-fg); font-weight: 600; text-decoration: none;
}
.store.soon { background: var(--card); color: var(--text-secondary); border: 2px solid var(--border); cursor: default; }

/* Feature cards */
.features { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); padding: 1.5rem 0 3rem; }
.feature { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 1.5rem; }
.feature h2 { font-size: 1.2rem; margin: 0 0 0.5rem; }
.feature p { margin: 0; color: var(--text-secondary); }

/* Legal pages */
.doc { padding: 2.5rem 0 4rem; }
.doc h1 { font-size: clamp(1.75rem, 5vw, 2.25rem); line-height: 1.2; margin: 0 0 0.25rem; }
.doc .meta { color: var(--text-secondary); margin: 0 0 2rem; }
.doc h2 { font-size: 1.35rem; margin: 2.25rem 0 0.5rem; }
.doc h3 { font-size: 1.1rem; margin: 1.5rem 0 0.25rem; }
.doc p, .doc li { max-width: 40rem; }
.doc ul { padding-left: 1.25rem; }
.doc li { margin: 0.35rem 0; }
.summary { background: var(--card); border: 1px solid var(--border); border-left: 6px solid var(--brand); border-radius: 14px; padding: 1.25rem 1.5rem; margin: 0 0 2rem; }
.summary h2 { margin-top: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 2rem 0 3rem; color: var(--text-secondary); font-size: 0.95rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
