/* MilestoneMaster website — shared stylesheet. Palette and type follow DESIGN_TOKENS.md
   ("editorial calm") so the marketing site reads as the same product as the app. */

:root {
  --bg: #FAF9F6;
  --bg-elevated: #FFFFFF;
  --hairline: #D9D5CC;
  --text: #1F1E1B;
  --text-strong: #141311;
  --text-secondary: #5E5A52;
  --text-muted: #8A867C;
  --accent: #0F6E56;
  --accent-soft: #9FE1CB;
  --on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1A1917;
    --bg-elevated: #22211E;
    --hairline: #3A3834;
    --text: #EDEAE3;
    --text-strong: #F5F2EA;
    --text-secondary: #B3AFA6;
    --text-muted: #8A867C;
    --accent: #3DBB94;
    --accent-soft: #1F6E55;
    --on-accent: #0F1F1A;
  }
}

* { box-sizing: border-box; }
html { color-scheme: light dark; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

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

.site-header {
  border-bottom: 1px solid var(--hairline);
}
.site-header .inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 20px 20px;
}
.wordmark {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: 1.25rem;
  color: var(--text-strong);
  text-decoration: none;
}
.wordmark span { color: var(--accent); }

main {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 20px 72px;
}

h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 300;
  font-size: clamp(2rem, 6vw, 2.75rem);
  line-height: 1.1;
  color: var(--text-strong);
  margin: 0 0 .4rem;
  text-wrap: balance;
}
h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  font-size: 1.4rem;
  color: var(--text-strong);
  margin: 2.25rem 0 .85rem;
  text-wrap: balance;
}
h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  margin: 1.25rem 0 .5rem;
}
.meta { color: var(--text-muted); font-size: .9rem; margin-bottom: 2.25rem; }
p, li { margin: 0 0 1rem; }
ul { padding-left: 1.25rem; }
strong { color: var(--text-strong); }

table { border-collapse: collapse; width: 100%; margin-bottom: 1.25rem; font-size: .92rem; }
th, td { text-align: left; padding: .6rem .7rem; border-bottom: 1px solid var(--hairline); vertical-align: top; }
th { color: var(--text-secondary); font-weight: 600; }

.callout {
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  background: color-mix(in srgb, var(--accent-soft) 35%, transparent);
  padding: 1rem 1.2rem;
  border-radius: 6px;
  margin-bottom: 1.75rem;
}

.toc {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 1rem 0;
  margin-bottom: 2.25rem;
}
.toc a { display: inline-block; margin: 0 1.2rem .4rem 0; font-size: .92rem; color: var(--text-secondary); text-decoration: none; }
.toc a:hover { color: var(--accent); }

.badge {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: .25rem .75rem;
  margin-bottom: 1.25rem;
}
.lede { font-size: 1.2rem; color: var(--text-secondary); margin-bottom: 2.75rem; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 1.25rem; }
.card { border: 1px solid var(--hairline); border-radius: 12px; padding: 1.25rem; background: var(--bg-elevated); }
.card strong { display: block; font-family: 'Fraunces', Georgia, serif; font-size: 1.1rem; font-weight: 500; margin-bottom: .4rem; color: var(--accent); }
.card .price { font-size: 1.6rem; font-weight: 700; color: var(--text-strong); margin: .2rem 0 .8rem; }
.card ul { margin: 0; padding-left: 1.1rem; }

.site-footer {
  border-top: 1px solid var(--hairline);
  margin-top: 3rem;
}
.site-footer .inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 1.75rem 20px;
  font-size: .88rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.4rem;
  align-items: center;
}
.site-footer a { color: var(--text-secondary); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.site-footer .copyright { width: 100%; margin-top: .5rem; font-size: .82rem; }

@media (max-width: 480px) {
  .toc a { display: block; margin: 0 0 .5rem; }
}
