/* PocketMile — site styles
   Quiet Confidence: cream-on-white, hairline borders, one warm-orange accent,
   generous whitespace, no shadows. Palette extracted verbatim from Theme.swift. */

:root {
  --bg: #FFFFFF;
  --surface: #F7F7F5;       /* warm cream "paper" */
  --border: #EAEAE8;        /* hairline */
  --text: #1A1A1A;
  --text-secondary: #6B6B6B;
  --text-muted: #A0A0A0;
  --accent: #E85D2A;        /* the single hero color */
  --accent-light: #FFF3EE;
  --green: #1DB954;
  --green-light: #EDFBF2;

  --maxw: 760px;            /* reading column */
  --maxw-wide: 1040px;      /* landing hero */
  --radius: 16px;
  --radius-lg: 20px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111111;
    --surface: #1C1C1E;
    --border: #2C2C2E;
    --text: #F2F2F7;
    --text-secondary: #8E8E93;
    --text-muted: #48484A;
    --accent: #E85D2A;
    --accent-light: #2D1208;
    --green: #30D158;
    --green-light: #0D2B18;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
               system-ui, Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.wrap-wide { max-width: var(--maxw-wide); margin: 0 auto; padding: 0 22px; }

/* ---------- Nav ---------- */
.nav {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky; top: 0; z-index: 10;
}
.nav-inner {
  max-width: var(--maxw-wide); margin: 0 auto; padding: 14px 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--text); }
.brand img { width: 30px; height: 30px; border-radius: 7px; display: block; }
.brand b { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.nav-links { display: flex; gap: 22px; align-items: center; }
.nav-links a {
  color: var(--text-secondary); text-decoration: none; font-size: 15px; font-weight: 500;
}
.nav-links a:hover { color: var(--accent); }

/* ---------- Typography ---------- */
h1 { font-size: 2.0rem; line-height: 1.15; letter-spacing: -0.025em; font-weight: 700; margin: 0 0 .5em; }
h2 { font-size: 1.35rem; letter-spacing: -0.02em; font-weight: 700; margin: 2.2em 0 .6em; }
h3 { font-size: 1.05rem; font-weight: 700; margin: 1.6em 0 .4em; }
p { margin: 0 0 1em; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
strong { font-weight: 650; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
li { margin: .35em 0; }
hr { border: none; border-top: 1px solid var(--border); margin: 2.4em 0; }
small, .muted { color: var(--text-muted); }

/* ---------- Legal / doc pages ---------- */
.doc { padding: 52px 0 72px; }
.doc h1 { font-size: 2.1rem; }
.updated { color: var(--text-secondary); font-size: 15px; margin: -0.2em 0 2em; }
.lede {
  font-size: 1.12rem; color: var(--text-secondary); line-height: 1.6;
  border-left: 3px solid var(--accent); padding: 2px 0 2px 18px; margin: 0 0 2em;
}
.toc {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 22px; margin: 0 0 2.4em;
}
.toc b { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .06em;
         color: var(--text-muted); margin-bottom: 8px; }
.toc ul { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 28px; }
.toc li { margin: .25em 0; }
.toc a { color: var(--text-secondary); font-size: 15px; }
.toc a:hover { color: var(--accent); }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 22px; margin: 1.4em 0;
}
.note {
  background: var(--accent-light); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 20px; margin: 1.4em 0;
  font-size: 15.5px; color: var(--text-secondary);
}
.note strong { color: var(--text); }

/* simple key/value list for subscription terms */
.kv { width: 100%; border-collapse: collapse; margin: 1em 0 1.4em; }
.kv th, .kv td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border);
                 font-size: 15.5px; vertical-align: top; }
.kv th { width: 38%; color: var(--text-secondary); font-weight: 600; }

/* ---------- Landing ---------- */
.hero { padding: 76px 0 40px; text-align: center; }
.hero img.mark { width: 76px; height: 76px; border-radius: 18px; margin: 0 auto 26px; display: block; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.0rem); max-width: 16ch; margin-left: auto; margin-right: auto; }
.hero p.sub { font-size: 1.2rem; color: var(--text-secondary); max-width: 40ch; margin: 0 auto 1.6em; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 999px; padding: 8px 16px;
  font-size: 14.5px; color: var(--text-secondary); font-weight: 500;
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 56px 0; }
.feature {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 26px 24px;
}
.feature h3 { margin: 0 0 .4em; font-size: 1.08rem; }
.feature p { margin: 0; color: var(--text-secondary); font-size: 15.5px; }
.feature .ic { font-size: 22px; margin-bottom: 12px; display: block; }

.band { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
        margin: 56px 0; padding: 56px 0; }
.band h2 { margin-top: 0; }
.price-line { font-size: 1.15rem; }
.price-line b { color: var(--text); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 40px 0; margin-top: 64px; color: var(--text-secondary); font-size: 14.5px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 18px 36px; justify-content: space-between; align-items: flex-start; }
.footer a { color: var(--text-secondary); }
.footer a:hover { color: var(--accent); }
.footer .links { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---------- Responsive ---------- */
/* ---------- Screenshot gallery ---------- */
.shots-section { padding: 8px 0 16px; }
.shots-section h2 { text-align: center; margin-top: 0; }
.shots-section .shots-sub { text-align: center; color: var(--text-secondary); margin: -0.3em 0 1.2em; }
.shots {
  display: flex; gap: 22px; overflow-x: auto;
  padding: 10px 22px 22px; margin: 0 auto; max-width: var(--maxw-wide);
  scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch;
}
.shots::-webkit-scrollbar { height: 8px; }
.shots::-webkit-scrollbar-track { background: transparent; }
.shots::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
.shot { flex: 0 0 auto; width: 236px; scroll-snap-align: center; margin: 0; text-align: center; }
.shot img {
  width: 236px; height: auto; display: block;
  border-radius: 28px; border: 1px solid var(--border);
}
.shot figcaption { margin-top: 14px; font-size: 14.5px; color: var(--text-secondary); }

@media (max-width: 720px) {
  .features { grid-template-columns: 1fr; }
  .toc ul { columns: 1; }
  .nav-links { gap: 16px; }
  .nav-links a.hide-sm { display: none; }
  .hero { padding: 56px 0 28px; }
  .shot, .shot img { width: 206px; }
}
