/* Daily Steps website. Matches the app: flat paper (light) and charcoal (dark) palettes, one Cobalt accent,
   no shadows, depth from tonal surfaces, 16px corners, caps captions. System fonts only (the app bundles Barlow;
   the website loads no fonts). */

:root {
  --bg: #f3f0e8;
  --surface: #eeeae0;
  --surface-2: #e9e4d8;
  --surface-hi: #fbfaf6;
  --ink: #16150f;
  --muted: #5a564b;
  --outline: #8c8676;
  --hairline: #ddd7c9;
  --accent: #2346c8;
  --accent-text: #1f3db3;
  --on-accent: #ffffff;
  --accent-soft: #dde3ff;
  --good: #1e7a45;
  --store-bg: #16150f;
  --store-ink: #f3f0e8;
  color-scheme: light;
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "SF Pro Display", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 16px;
  --gutter: 20px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f100e; --surface: #1d1f1b; --surface-2: #22241f; --surface-hi: #151713;
    --ink: #f2efe6; --muted: #a6a396; --outline: #6b6a60; --hairline: #2a2c26;
    --accent: #7b95ff; --accent-text: #93a8ff; --on-accent: #0b1a5c; --accent-soft: #17245e; --good: #3ddc84;
    --store-bg: #f2efe6; --store-ink: #0f100e; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f100e; --surface: #1d1f1b; --surface-2: #22241f; --surface-hi: #151713;
  --ink: #f2efe6; --muted: #a6a396; --outline: #6b6a60; --hairline: #2a2c26;
  --accent: #7b95ff; --accent-text: #93a8ff; --on-accent: #0b1a5c; --accent-soft: #17245e; --good: #3ddc84;
  --store-bg: #f2efe6; --store-ink: #0f100e; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.6 var(--font); overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--accent-text); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

/* Header */
.top { position: sticky; top: 0; z-index: 5; background: var(--bg); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.scrolled { border-bottom-color: var(--hairline); }
.bar { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.brand { white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--display); font-weight: 750; font-size: 20px; letter-spacing: -0.01em; }
.brand .mark { width: 34px; height: 34px; flex: none; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--ink); text-decoration: none; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 10px 12px; border-radius: 10px; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--surface); }
.theme { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-left: 4px; border: 1px solid var(--hairline); border-radius: 12px; background: none; color: var(--ink); cursor: pointer; }
.theme:hover { background: var(--surface); }
.icon { width: 20px; height: 20px; }
[data-theme="dark"] .theme .moon, :root:not([data-theme="dark"]) .theme .sun { display: none; }
@media (max-width: 560px) { .hide-sm { display: none; } .nav a { padding: 10px 8px; } }
@media (max-width: 420px) {
  .wrap { --gutter: 16px; }
  .brand { font-size: 18px; gap: 8px; } .brand .mark { width: 30px; height: 30px; }
  .nav { gap: 0; } .nav a { padding: 10px 7px; font-size: 12px; letter-spacing: .05em; }
  .theme { width: 44px; height: 44px; margin-left: 2px; }
}

/* Shared bits */
.eyebrow, .caption { font-size: 13px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); margin: 0 0 10px; }
.lede { font-size: 19px; color: var(--muted); max-width: 40em; }
.small, .fine { font-size: 14px; color: var(--muted); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px; border-radius: var(--radius); background: var(--accent); color: var(--on-accent); font-weight: 750; letter-spacing: .08em; text-transform: uppercase; font-size: 14px; text-decoration: none; }

/* Store buttons: text for now; storeButton helpers in src/layout.mjs swap in the official badges later */
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }
.store { display: inline-flex; flex-direction: column; justify-content: center; min-width: 176px; min-height: 56px; padding: 7px 20px 8px; border-radius: 12px; background: var(--store-bg); color: var(--store-ink); text-decoration: none; line-height: 1.15; }
.store:hover { opacity: .9; }
.store-small { font-size: 12px; letter-spacing: .02em; }
.store-big { font-size: 20px; font-weight: 650; letter-spacing: -0.01em; }

/* Hero */
.hero { padding: 40px 0 24px; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(40px, 8.4vw, 68px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.02; margin-bottom: 20px; }
.hero h1 span { color: var(--accent-text); }
.platforms { margin: 14px 0 0; font-size: 14px; color: var(--muted); }
.hero-shot { display: flex; justify-content: center; }
.phone { width: min(300px, 78vw); border-radius: 36px; padding: 10px; background: var(--surface-2); border: 1px solid var(--hairline); }
.phone img { width: 100%; border-radius: 26px; }
[data-theme="dark"] .only-light, :root:not([data-theme="dark"]) .only-dark { display: none; }
@media (min-width: 880px) {
  .hero { padding: 72px 0 40px; }
  .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 56px; }
  .phone { width: 320px; }
}

/* Sections */
.section { padding: 56px 0; }
.section h2 { font-size: clamp(28px, 5vw, 40px); font-weight: 780; letter-spacing: -0.02em; max-width: 18em; }
.grid { display: grid; gap: 12px; margin-top: 28px; }
@media (min-width: 640px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .grid { grid-template-columns: 1fr 1fr 1fr; } .grid .wide { grid-column: 1 / -1; } .grid .wide p:not(.caption) { max-width: 52em; } }
.panel { background: var(--surface); border-radius: var(--radius); padding: 22px 22px 8px; }
.panel h3 { font-size: 21px; font-weight: 750; }
.panel p:not(.caption) { color: var(--muted); font-size: 16px; }

.shots-section .wrap { margin-bottom: 24px; }
.shots { --edge: max(var(--gutter), calc((100vw - 1120px) / 2 + var(--gutter))); display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--edge); padding: 4px var(--edge) 16px; scrollbar-width: thin; }
.shots figure { flex: none; width: 220px; margin: 0; scroll-snap-align: start; }
.shots img { border-radius: 16px; border: 1px solid var(--hairline); background: var(--surface); }
.shots figcaption { margin-top: 10px; font-size: 13px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
@media (min-width: 880px) { .shots figure { width: 240px; } }

.split { display: grid; gap: 20px; }
@media (min-width: 880px) { .split { grid-template-columns: .9fr 1.1fr; gap: 56px; } }
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { position: relative; padding: 14px 0 14px 34px; border-top: 1px solid var(--hairline); }
.checks li:last-child { border-bottom: 1px solid var(--hairline); }
.checks li::before { content: ""; position: absolute; left: 4px; top: 21px; width: 13px; height: 7px; border-left: 2.5px solid var(--good); border-bottom: 2.5px solid var(--good); transform: rotate(-45deg); }
.pro { background: var(--surface); border-radius: var(--radius); padding: 24px; }
.pro ul { margin: 0 0 1em; padding-left: 1.2em; }
.pro li { margin: 4px 0; }

.cta { text-align: center; }
.cta h2 { margin-left: auto; margin-right: auto; }
.cta .stores { justify-content: center; }
.cta .fine { max-width: 40em; margin: 28px auto 0; }

/* Policy, terms and support pages */
.doc { max-width: 800px; padding-top: 32px; padding-bottom: 48px; }
.doc h1 { font-size: clamp(34px, 6vw, 48px); font-weight: 800; letter-spacing: -0.02em; }
.doc > section { margin-top: 40px; padding-top: 32px; border-top: 2px solid var(--ink); }
.doc h2 { font-size: 28px; font-weight: 780; margin-bottom: 6px; }
.doc h3 { font-size: 20px; font-weight: 720; margin-top: 32px; }
.doc h4 { font-size: 17px; font-weight: 700; margin: 24px 0 6px; }
.doc ul { padding-left: 1.4em; margin: 0 0 1em; }
.doc li { margin-bottom: 8px; }
.doc .subtitle { color: var(--muted); font-size: 15px; margin-bottom: 24px; }
.doc .highlight { background: var(--surface); border-left: 4px solid var(--accent); border-radius: 4px var(--radius) var(--radius) 4px; padding: 16px 20px; margin-bottom: 24px; }
.doc .highlight p { margin: 0; }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.jump a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 12px; background: var(--surface); color: var(--ink); text-decoration: none; font-size: 13px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.jump a:hover { background: var(--surface-2); }
.notfound { min-height: 50vh; }

/* Footer */
.foot { border-top: 1px solid var(--hairline); margin-top: 32px; padding: 40px 0 24px; font-size: 15px; }
.foot-grid { display: grid; gap: 28px; }
@media (min-width: 720px) { .foot-grid { grid-template-columns: 2fr 1fr 1fr; } }
.foot-brand p { color: var(--muted); margin-top: 12px; }
.foot h2 { font-family: var(--font); font-size: 13px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin: 6px 0; }
.foot nav a { color: var(--ink); text-decoration: none; }
.foot nav a:hover { text-decoration: underline; }
.legal { margin-top: 28px; color: var(--muted); font-size: 13px; }
.legal a { color: inherit; }
