/* My Pods — marketing site + blog shared stylesheet.
   Palette + type lifted verbatim from Knowledge/Phase3_Design_System.md (LOCKED).
   Dark is the primary/default mode; light mode is a palette swap only.
   Deployed to Vercel at /styles.css (see marketing/README.md for the deploy map). */

:root {
  color-scheme: dark light;

  /* Dark mode — primary/default (Phase3_Design_System.md §"Color — Dark mode") */
  --bg: #0D0D0C;
  --surface: #151513;
  --surface-2: #1B1B18;
  --border: #232320;
  --text: #EDEDEA;
  --muted: #7A7A73;
  --accent: #E8B44A;
  --danger: #D16B52;
  --success: #5FA377;

  --shadow: none;

  --maxw: 1080px;
  --radius-sm: 8px;
  --radius: 10px;
  --radius-lg: 14px;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: light) {
  :root {
    /* Light mode (Phase3_Design_System.md §"Color — Light mode") */
    --bg: #F7F4EE;
    --surface: #FFFFFF;
    --surface-2: #FFFFFF;
    --border: #E4DCC9;
    --text: #22201C;
    --muted: #948C7C;
    --accent: #A8562F;
    --danger: #B5563E;
    --success: #4F7A5C;

    /* the one deliberate light/dark asymmetry — see design system §Elevation */
    --shadow: 0 2px 8px rgba(34, 32, 28, 0.04);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; font-weight: 700; margin: 0; }

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

.eyebrow {
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  color: var(--muted);
  margin: 0 0 14px;
}

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.brand {
  color: var(--text);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.brand:hover { text-decoration: none; }
.brand .mark {
  width: 22px; height: 22px;
  border-radius: 7px;
  background: var(--accent);
  display: inline-block;
}
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}
.nav-links a:hover { color: var(--text); text-decoration: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: var(--radius);
  font-weight: 650;
  font-size: 14px;
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--surface);
  cursor: pointer;
}
.btn:hover { text-decoration: none; border-color: var(--muted); }
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #1a1206;
}
.btn-primary:hover { border-color: var(--accent); filter: brightness(1.05); }

/* ---------- sections ---------- */
section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.divider { border: 0; border-top: 1px solid var(--border); margin: 0; }

/* ---------- hero ---------- */
.hero { padding: 96px 0 72px; text-align: center; }
.hero h1 {
  font-size: clamp(34px, 6vw, 56px);
  max-width: 15ch;
  margin: 0 auto 20px;
}
.hero p.lede {
  font-size: clamp(16px, 2.3vw, 19px);
  color: var(--muted);
  max-width: 52ch;
  margin: 0 auto 34px;
}

/* ---------- store badges (PLACEHOLDER — see index.html) ---------- */
.badges {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
}
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  min-width: 168px;
}
.store-badge svg { flex: none; }
.store-badge .bl-small { font-size: 10px; color: var(--muted); line-height: 1.1; display: block; }
.store-badge .bl-big { font-size: 16px; font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; }
.store-badge.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  filter: grayscale(1);
  user-select: none;
}
.badge-note {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  margin-top: 12px;
}
.coming-soon {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 8px;
  white-space: nowrap;
}

/* ---------- benefits ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.benefit {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow);
}
.benefit .icon {
  width: 34px; height: 34px;
  color: var(--accent);
  margin-bottom: 16px;
}
.benefit h3 { font-size: 17px; margin-bottom: 8px; }
.benefit p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* ---------- feature highlight ---------- */
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 44px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  box-shadow: var(--shadow);
}
.feature h2 { font-size: clamp(24px, 3.4vw, 32px); margin-bottom: 14px; }
.feature p { color: var(--muted); margin: 0 0 14px; }
.feature ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 14.5px; }
.feature li { margin-bottom: 7px; }
.streak-viz {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  padding: 22px;
}
.streak-row { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.streak-row:last-child { margin-bottom: 0; }
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.dot.ok { background: var(--success); }
.dot.grace { background: var(--accent); }
.dot.risk { background: var(--danger); }
.streak-row span { font-size: 13px; }
.streak-row .k { color: var(--text); font-weight: 600; }
.streak-row .v { color: var(--muted); margin-left: auto; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; }
.faq h2 { font-size: clamp(24px, 3.4vw, 30px); text-align: center; margin-bottom: 36px; }
details.qa {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}
details.qa summary {
  cursor: pointer;
  list-style: none;
  font-weight: 650;
  font-size: 15.5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
details.qa summary::-webkit-details-marker { display: none; }
details.qa summary .chev {
  flex: none;
  width: 16px; height: 16px;
  color: var(--muted);
  transition: transform 0.18s ease;
}
details.qa[open] summary .chev { transform: rotate(180deg); }
details.qa p {
  margin: 12px 0 2px;
  color: var(--muted);
  font-size: 14.5px;
}

/* ---------- CTA band ---------- */
.cta-band {
  text-align: center;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cta-band h2 { font-size: clamp(24px, 3.6vw, 34px); margin-bottom: 14px; }
.cta-band p { color: var(--muted); margin: 0 auto 28px; max-width: 46ch; }

/* ---------- footer ---------- */
.footer {
  padding: 52px 0 64px;
  color: var(--muted);
  font-size: 13.5px;
}
.footer .cols {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.footer a { color: var(--muted); }
.footer a:hover { color: var(--text); }
.footer .fcol h4 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--muted);
  margin: 0 0 12px;
  font-weight: 700;
}
.footer .fcol a { display: block; margin-bottom: 8px; }
.footer .legal { border-top: 1px solid var(--border); padding-top: 24px; }

/* ---------- blog ---------- */
.post-list { max-width: 760px; margin: 0 auto; }
.post-list h1 { font-size: clamp(28px, 4vw, 38px); margin-bottom: 8px; }
.post-list .sub { color: var(--muted); margin: 0 0 40px; }
.post-item {
  display: block;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.post-item:hover { text-decoration: none; }
.post-item:hover h2 { color: var(--accent); }
.post-item .meta { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 8px; }
.post-item h2 { font-size: 20px; margin-bottom: 8px; }
.post-item p { margin: 0; color: var(--muted); font-size: 14.5px; }

.article { max-width: 680px; margin: 0 auto; }
.article .meta { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 12px; }
.article h1 { font-size: clamp(28px, 4.4vw, 40px); margin-bottom: 24px; }
.article h2 { font-size: 22px; margin: 40px 0 12px; }
.article p { margin: 0 0 18px; }
.article ul { margin: 0 0 18px; padding-left: 20px; }
.article li { margin-bottom: 8px; }
.article .back { display: inline-block; margin-bottom: 32px; font-size: 13px; font-weight: 600; }
.article hr { border: 0; border-top: 1px solid var(--border); margin: 40px 0; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .grid-3 { grid-template-columns: 1fr; }
  .feature { grid-template-columns: 1fr; padding: 30px; gap: 26px; }
  section { padding: 64px 0; }
  .nav-links { gap: 18px; }
  .nav-links a.hide-sm { display: none; }
}
