/* MomBooks marketing site — shared design system */

@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:opsz,wght@8..60,400;8..60,600;8..60,700&family=Public+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  --paper: #f9faf5;
  --paper-raised: #f2f5ec;
  --surface: #ffffff;
  --ink: #16211b;
  --ink-soft: #2c3830;
  --muted: #5c6b62;
  --ledger: #2e6b4c;
  --ledger-soft: #3f7e5c;
  --ledger-deep: #16382a;
  --ledger-tint: rgba(46, 107, 76, 0.09);
  --flag: #a6402e;
  --line: rgba(46, 107, 76, 0.16);
  --line-strong: rgba(46, 107, 76, 0.32);
  --shadow: rgba(22, 33, 27, 0.10);
  --on-ledger: #f4f8f2;
  --radius-s: 6px;
  --radius-m: 12px;
  --radius-l: 20px;
  --maxw: 1140px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0d1310;
    --paper-raised: #121a15;
    --surface: #121a15;
    --ink: #e7ede7;
    --ink-soft: #cbd6cd;
    --muted: #92a49a;
    --ledger: #6fc79a;
    --ledger-soft: #58a67f;
    --ledger-deep: #0f261c;
    --ledger-tint: rgba(111, 199, 154, 0.09);
    --flag: #e1937f;
    --line: rgba(111, 199, 154, 0.2);
    --line-strong: rgba(111, 199, 154, 0.36);
    --shadow: rgba(0, 0, 0, 0.4);
    --on-ledger: #0d1310;
  }
}

:root[data-theme="dark"] {
  --paper: #0d1310;
  --paper-raised: #121a15;
  --surface: #121a15;
  --ink: #e7ede7;
  --ink-soft: #cbd6cd;
  --muted: #92a49a;
  --ledger: #6fc79a;
  --ledger-soft: #58a67f;
  --ledger-deep: #0f261c;
  --ledger-tint: rgba(111, 199, 154, 0.09);
  --flag: #e1937f;
  --line: rgba(111, 199, 154, 0.2);
  --line-strong: rgba(111, 199, 154, 0.36);
  --shadow: rgba(0, 0, 0, 0.4);
  --on-ledger: #0d1310;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

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

.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ledger);
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
}

.eyebrow::before {
  content: '';
  width: 18px;
  height: 1px;
  background: var(--ledger);
}

h1, h2, h3 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin: 0;
  color: var(--ink);
}

h2 { font-size: clamp(1.9rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.2rem; font-weight: 600; }

p { color: var(--ink-soft); margin: 0; }

.section {
  padding: 88px 0;
  border-bottom: 1px solid var(--line);
}

.section-head {
  max-width: 620px;
  margin-bottom: 48px;
}

.section-head p { margin-top: 14px; font-size: 1.05rem; }

/* ---------- Nav ---------- */

header.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: 'Source Serif 4', serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
}

.brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.92rem;
  color: var(--ink-soft);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}

.nav-links a:hover, .nav-links a:focus-visible { color: var(--ledger); border-color: var(--line-strong); }

.nav-cta { display: flex; align-items: center; gap: 14px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Public Sans', sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 11px 20px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--ledger-deep);
  color: var(--on-ledger);
}
.btn-primary:hover { background: var(--ledger); }

.btn-ghost {
  background: transparent;
  color: var(--ink-soft);
  border-color: var(--line-strong);
}
.btn-ghost:hover { color: var(--ledger); border-color: var(--ledger); }

.btn-sm { padding: 8px 16px; font-size: 0.84rem; }

/* App Store style badge — placeholder artwork, not Apple's official mark.
   Swap for Apple's "Download on the App Store" asset once the listing is live. */
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ledger-deep);
  color: var(--on-ledger);
  padding: 10px 18px;
  border-radius: var(--radius-s);
  text-decoration: none;
}
.store-badge svg { width: 20px; height: 20px; flex-shrink: 0; }
.store-badge .lines { display: flex; flex-direction: column; line-height: 1.15; }
.store-badge .lines .top { font-size: 0.66rem; opacity: 0.85; }
.store-badge .lines .bottom { font-family: 'Public Sans', sans-serif; font-weight: 700; font-size: 1.02rem; }
.store-badge:hover { background: var(--ledger); }

/* ---------- Hero ---------- */

.hero {
  padding: 76px 0 60px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.hero h1 { font-size: clamp(2.4rem, 4.8vw, 3.4rem); }

.hero-sub {
  margin-top: 20px;
  font-size: 1.12rem;
  max-width: 46ch;
}

.hero-cta {
  margin-top: 34px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.trust-row {
  margin-top: 26px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}
.trust-row span:not(:last-child)::after { content: '·'; margin-left: 14px; color: var(--line-strong); }

.hero-art { position: relative; }

.window-card {
  border-radius: var(--radius-m);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: 0 24px 60px -20px var(--shadow);
  background: var(--surface);
}

.window-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--paper-raised);
  border-bottom: 1px solid var(--line);
}
.window-chrome i {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--line-strong);
}

.ledger-float {
  position: absolute;
  left: -30px;
  bottom: -26px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-s);
  box-shadow: 0 16px 40px -14px var(--shadow);
  padding: 14px 18px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.76rem;
  color: var(--ink-soft);
  line-height: 1.7;
}
.ledger-float .rule { border-top: 1px solid var(--line-strong); margin: 4px 0; width: 100%; }
.ledger-float .zero { color: var(--ledger); font-weight: 600; }
.ledger-float .row { display: flex; justify-content: space-between; gap: 22px; }

/* ---------- Feature grid ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  overflow: hidden;
}

.feature-card {
  background: var(--surface);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.feature-icon {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 9px;
  background: var(--ledger-tint);
  color: var(--ledger);
}
.feature-icon svg { width: 20px; height: 20px; }

.feature-card p { font-size: 0.94rem; }

/* ---------- Screenshots ---------- */

.tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 999px;
  margin-bottom: 32px;
}

.tab-btn {
  border: none;
  background: transparent;
  font-family: 'Public Sans', sans-serif;
  font-weight: 600;
  font-size: 0.86rem;
  color: var(--muted);
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
}
.tab-btn[aria-selected="true"] {
  background: var(--surface);
  color: var(--ledger);
  box-shadow: 0 1px 2px var(--shadow);
}

.shot-row {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding-bottom: 14px;
  scroll-snap-type: x proximity;
}
.shot-row[hidden] { display: none; }

.shot-card {
  flex: 0 0 auto;
  scroll-snap-align: start;
  width: 280px;
}
.shot-card.wide { width: 420px; }

.shot-card figure {
  margin: 0;
  border-radius: var(--radius-s);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: 0 10px 26px -14px var(--shadow);
}

.shot-card figcaption {
  margin-top: 12px;
  font-size: 0.86rem;
  color: var(--muted);
  font-family: 'IBM Plex Mono', monospace;
}

/* ---------- PTA explainer ---------- */

.pta-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: start;
}

.pta-grid p + p { margin-top: 14px; }

.pta-grid .external-link {
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--ledger);
  text-decoration: none;
  font-size: 0.96rem;
}
.pta-grid .external-link svg { width: 15px; height: 15px; }
.pta-grid .external-link:hover { color: var(--ledger-soft); }

.code-card {
  background: var(--ledger-deep);
  color: #dbe9de;
  border-radius: var(--radius-m);
  padding: 22px 24px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.84rem;
  line-height: 1.85;
  overflow-x: auto;
  box-shadow: 0 20px 48px -22px var(--shadow);
}
.code-card .c-date { color: #9fd9b6; }
.code-card .c-payee { color: #f3e7b0; }
.code-card .c-acct { color: #cfe3d3; }
.code-card .c-amt { color: #ffffff; font-variant-numeric: tabular-nums; }
.code-card .c-comment { color: #6f9d80; }

/* ---------- Help ---------- */

.help-lede { max-width: 640px; margin-bottom: 40px; }

.help-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.help-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 24px;
  background: var(--surface);
}

.help-card .tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.help-card h3 { margin-top: 8px; font-size: 1.06rem; }
.help-card p { margin-top: 8px; font-size: 0.92rem; }

.help-note {
  margin-top: 30px;
  font-size: 0.92rem;
  color: var(--muted);
}

/* ---------- Pricing ---------- */

.pricing-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 52px;
}

.compare-col {
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 28px;
  background: var(--surface);
}
.compare-col.pro { border-color: var(--line-strong); }

.compare-col h3 { display: flex; align-items: center; justify-content: space-between; }
.compare-col ul { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.compare-col li { display: flex; gap: 10px; font-size: 0.92rem; color: var(--ink-soft); }
.compare-col li svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 3px; color: var(--ledger); }

.badge {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--ledger-tint);
  color: var(--ledger);
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.plan-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 26px;
  background: var(--surface);
  position: relative;
}
.plan-card.popular { border-color: var(--ledger); box-shadow: 0 0 0 1px var(--ledger); }
.plan-card .pop-flag {
  position: absolute; top: -12px; left: 24px;
  background: var(--ledger); color: var(--on-ledger);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.66rem; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
}
.plan-card .price { margin-top: 12px; font-family: 'Source Serif 4', serif; font-size: 2rem; font-weight: 700; }
.plan-card .price span { font-family: 'Public Sans', sans-serif; font-size: 0.9rem; font-weight: 500; color: var(--muted); }
.plan-card .plan-note { margin-top: 6px; font-size: 0.82rem; color: var(--muted); }
.plan-card .trial { margin-top: 14px; font-size: 0.8rem; color: var(--ledger); font-weight: 600; }

.pricing-fine { margin-top: 26px; font-size: 0.82rem; color: var(--muted); }

/* ---------- FAQ ---------- */

.faq-list { max-width: 760px; display: flex; flex-direction: column; gap: 2px; }

.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-family: 'IBM Plex Mono', monospace;
  color: var(--ledger);
  font-size: 1.2rem;
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: '–'; }
.faq-item p { margin-top: 12px; max-width: 66ch; }

/* ---------- Download band ---------- */

.download-band {
  background: var(--ledger-deep);
  color: var(--on-ledger);
  padding: 72px 0;
  border-bottom: 1px solid var(--line);
}
.download-band .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.download-band h2 { color: var(--on-ledger); }
.download-band p { color: color-mix(in srgb, var(--on-ledger) 78%, transparent); margin-top: 10px; max-width: 46ch; }
.download-band .platforms {
  margin-top: 18px;
  display: flex; gap: 14px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  color: color-mix(in srgb, var(--on-ledger) 70%, transparent);
}
.download-band .store-badge { background: var(--on-ledger); color: var(--ledger-deep); }
.download-band .store-badge:hover { background: color-mix(in srgb, var(--on-ledger) 88%, var(--ledger-deep)); }

/* ---------- Footer ---------- */

footer.site-footer { padding: 64px 0 40px; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}

.footer-brand .brand { margin-bottom: 12px; }
.footer-brand p { font-size: 0.9rem; max-width: 34ch; }

.footer-col h4 {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0 0 16px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.footer-col a { text-decoration: none; color: var(--ink-soft); font-size: 0.92rem; }
.footer-col a:hover { color: var(--ledger); }

.footer-bottom {
  margin-top: 28px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.76rem;
  color: var(--muted);
}

/* ---------- Legal pages (privacy / terms) ---------- */

.legal-sheet { max-width: 720px; margin: 0 auto; padding: 64px 28px 100px; }
.legal-sheet .meta-row {
  display: flex; flex-wrap: wrap; gap: 6px 22px;
  font-family: 'IBM Plex Mono', monospace; font-size: 0.8rem; color: var(--muted);
  margin: 16px 0 40px;
}
.legal-sheet .meta-row b { color: var(--ink-soft); font-weight: 500; }
.legal-sheet section { padding: 26px 0 26px 20px; border-left: 2px solid var(--line); }
.legal-sheet section:nth-of-type(odd) { background: linear-gradient(90deg, var(--ledger-tint), transparent 70%); }
.legal-sheet h3 { display: flex; gap: 12px; align-items: baseline; font-size: 1.28rem; }
.legal-sheet h3 .num { font-family: 'IBM Plex Mono', monospace; font-size: 0.82rem; font-weight: 500; color: var(--muted); }
.legal-sheet section p { max-width: 66ch; margin-top: 12px; }
.legal-sheet section p + p { margin-top: 10px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 0.9rem; color: var(--muted); text-decoration: none; margin-bottom: 20px; }
.back-link:hover { color: var(--ledger); }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .ledger-float { position: static; margin-top: 20px; display: inline-flex; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .pta-grid { grid-template-columns: 1fr; }
  .help-cards { grid-template-columns: 1fr; }
  .pricing-compare { grid-template-columns: 1fr; }
  .plan-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 560px) {
  .section { padding: 64px 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .download-band .wrap { flex-direction: column; align-items: flex-start; }
}
