/* BookSheet Pro — shared styles (mobile-first) */

:root {
  --navy: #0f2a3d;
  --navy-2: #1d3b52;
  --teal: #0b6e6e;
  --teal-dark: #085656;
  --teal-tint: #e6f3f2;
  --amber: #f5a524;
  --amber-dark: #e08e0b;
  --ink: #1b2a36;
  --muted: #5a6b78;
  --line: #e2e8ec;
  --bg: #ffffff;
  --bg-soft: #f6f9fa;
  --good: #1f8a4c;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 42, 61, .06), 0 8px 24px rgba(15, 42, 61, .08);
  --max: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}
img, svg { max-width: 100%; display: block; }
a { color: var(--teal); }
a:hover { color: var(--teal-dark); }
h1, h2, h3 { color: var(--navy); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 7vw, 3.25rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 5vw, 2.25rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }
.section { padding: 56px 0; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--navy); color: #d6e2ea; }
.section-dark h2, .section-dark h3 { color: #fff; }
.center { text-align: center; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--teal); margin-bottom: .75em;
}
.lead { font-size: 1.15rem; color: var(--muted); }
.section-head { max-width: 640px; margin: 0 auto 32px; text-align: center; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 12px; top: 12px; z-index: 100; background: #fff; padding: 8px 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 52px; padding: 0 24px; border-radius: 999px;
  font-weight: 700; font-size: 1.05rem; text-decoration: none; border: 2px solid transparent;
  cursor: pointer; transition: transform .1s ease, background .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-buy { background: var(--amber); color: var(--navy); }
.btn-buy:hover { background: var(--amber-dark); color: var(--navy); }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-direction: column; gap: 12px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96);
  backdrop-filter: saturate(180%) blur(8px); border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); font-weight: 800; font-size: 1.15rem; }
.logo-mark { width: 32px; height: 32px; }
.logo span em { font-style: normal; color: var(--teal); }
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px;
  border: 0; background: none; color: var(--navy); cursor: pointer; margin-right: -10px;
}
.site-nav { display: none; }
.site-nav.open {
  display: block; position: absolute; top: 64px; left: 0; right: 0; background: #fff;
  border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
}
.site-nav ul { list-style: none; margin: 0; padding: 8px 20px 20px; }
.site-nav a:not(.btn) {
  display: block; padding: 14px 0; color: var(--navy); text-decoration: none; font-weight: 600;
  border-bottom: 1px solid var(--line);
}
.site-nav a[aria-current="page"] { color: var(--teal); }
.site-nav .btn { margin-top: 16px; width: 100%; }

/* Hero */
.hero { padding: 48px 0 56px; background: linear-gradient(180deg, var(--teal-tint) 0%, #fff 100%); }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero-grid > *, .two-col > * { min-width: 0; }
.hero .lead { max-width: 560px; }
.trust-row {
  display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 20px 0 0; padding: 0; list-style: none;
  font-size: .92rem; color: var(--muted);
}
.trust-row li::before { content: "✓"; color: var(--good); font-weight: 800; margin-right: 6px; }

/* Cards */
.grid { display: grid; gap: 20px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .35em; }
.card p { color: var(--muted); }
.product-card { display: flex; flex-direction: column; }
.product-card .sheet { margin-bottom: 20px; }
.product-card .price-line { display: flex; align-items: baseline; justify-content: space-between; margin: auto 0 16px; padding-top: 8px; }
.price { font-size: 1.75rem; font-weight: 800; color: var(--navy); }
.price small { font-size: .95rem; font-weight: 600; color: var(--muted); }
.strike { text-decoration: line-through; color: var(--muted); font-weight: 600; margin-right: 8px; }
.badge {
  display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--teal-tint);
  color: var(--teal-dark); font-size: .8rem; font-weight: 700;
}
.badge-amber { background: #fff4de; color: #8a5300; }

.pain { text-align: left; }
.pain .icon {
  width: 44px; height: 44px; border-radius: 12px; background: var(--teal-tint); color: var(--teal);
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}

/* Bundle callout */
.bundle-box {
  background: var(--navy); color: #d6e2ea; border-radius: 20px; padding: 32px 24px;
  display: grid; gap: 24px;
}
.bundle-box h2 { color: #fff; }
.bundle-box .price { color: #fff; font-size: 2.5rem; }
.bundle-box .strike { color: #8fa6b6; }
.bundle-list { list-style: none; padding: 0; margin: 0 0 8px; }
.bundle-list li { padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.bundle-list li::before { content: "✓"; color: var(--amber); font-weight: 800; margin-right: 10px; }

/* Steps */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.steps li { position: relative; padding: 20px 20px 20px 72px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 20px; top: 20px; width: 36px; height: 36px; border-radius: 50%;
  background: var(--teal); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.steps h3 { margin-bottom: .25em; font-size: 1.1rem; }
.steps p { margin: 0; color: var(--muted); }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 36px 18px 0; font-weight: 700; color: var(--navy);
  position: relative; min-height: 48px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 14px; font-size: 1.5rem; color: var(--teal); font-weight: 400;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-bottom: 8px; }

/* Spreadsheet mockup */
.sheet {
  border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #fff;
  box-shadow: var(--shadow); font-size: .78rem; font-variant-numeric: tabular-nums;
}
.sheet-bar {
  display: flex; align-items: center; gap: 6px; padding: 8px 12px; background: var(--navy); color: #fff;
  font-weight: 700; font-size: .78rem;
}
.sheet-bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.35); }
.sheet-bar span { margin-left: 6px; }
.sheet table { width: 100%; border-collapse: collapse; }
.sheet th, .sheet td { padding: 7px 10px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.sheet td:first-child { white-space: normal; }
.sheet th { background: var(--bg-soft); color: var(--muted); font-weight: 700; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; }
.sheet td.num, .sheet th.num { text-align: right; }
.sheet tr.total td { font-weight: 800; color: var(--navy); background: var(--teal-tint); border-bottom: 0; }
.sheet .in { background: #fffbea; }
.pill { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: .7rem; font-weight: 700; }
.pill-paid { background: #e3f4ea; color: var(--good); }
.pill-due { background: #fff4de; color: #8a5300; }
.pill-sched { background: var(--teal-tint); color: var(--teal-dark); }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); }
.kpi { background: #fff; padding: 12px 10px; }
.kpi b { display: block; font-size: 1.05rem; color: var(--navy); }
.kpi small { color: var(--muted); font-size: .68rem; text-transform: uppercase; letter-spacing: .04em; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 90px; padding: 12px 14px 0; border-bottom: 1px solid var(--line); }
.bars div { flex: 1; background: var(--teal); border-radius: 4px 4px 0 0; opacity: .85; }
.bars div:nth-child(even) { background: var(--amber); }
.sheet-stack { position: relative; }
.sheet-stack .sheet + .sheet { margin-top: -12px; }

/* Product page */
.product-hero { padding: 36px 0 48px; background: linear-gradient(180deg, var(--teal-tint) 0%, #fff 100%); }
.breadcrumb { font-size: .9rem; color: var(--muted); margin-bottom: 16px; }
.breadcrumb a { color: var(--muted); }
.buy-box { margin-top: 24px; }
.buy-box .price { font-size: 2.25rem; margin-right: 10px; }
.buy-meta { font-size: .9rem; color: var(--muted); margin-top: 12px; }
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.feature-list li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; }
.feature-list li::before {
  content: "✓"; width: 26px; height: 26px; border-radius: 50%; background: var(--teal-tint); color: var(--teal);
  font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: .85rem; margin-top: 2px;
}
.feature-list strong { color: var(--navy); }
.two-col { display: grid; gap: 32px; }
.upsell { border: 2px solid var(--amber); background: #fffaf0; }

/* Sticky mobile buy bar */
.sticky-buy {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: #fff; border-top: 1px solid var(--line);
  box-shadow: 0 -6px 20px rgba(15,42,61,.08); padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 12px; transform: translateY(110%); transition: transform .2s ease;
}
.sticky-buy.show { transform: none; }
.sticky-buy .sb-text { flex: 1; min-width: 0; line-height: 1.25; }
.sticky-buy .sb-text b { display: block; color: var(--navy); font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-buy .sb-text span { color: var(--muted); font-size: .85rem; }
.sticky-buy .btn { min-height: 46px; padding: 0 20px; }
body.has-sticky { padding-bottom: 76px; }

/* Blog */
.post-list { display: grid; gap: 20px; }
.post-card a { text-decoration: none; color: inherit; display: block; }
.post-card h3 { color: var(--navy); }
.post-card a:hover h3 { color: var(--teal); }
.post-meta { font-size: .88rem; color: var(--muted); margin-bottom: .5em; }
.article { padding: 40px 0 56px; }
.article h1 { font-size: clamp(1.9rem, 6vw, 2.75rem); }
.article h2 { font-size: 1.5rem; margin-top: 1.8em; }
.article h3 { margin-top: 1.4em; }
.article ul, .article ol { padding-left: 1.3em; }
.article li { margin-bottom: .4em; }
.article blockquote {
  margin: 1.5em 0; padding: 16px 20px; background: var(--teal-tint); border-left: 4px solid var(--teal);
  border-radius: 0 10px 10px 0; color: var(--navy);
}
.article table { width: 100%; border-collapse: collapse; margin: 1em 0 1.5em; font-size: .95rem; }
.article th, .article td { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: left; }
.article th { color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; }
.table-scroll { overflow-x: auto; }
.article-cta { margin-top: 40px; }

/* Footer */
.site-footer { background: var(--navy); color: #a9bccb; padding: 48px 0 32px; font-size: .95rem; }
.site-footer a { color: #d6e2ea; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; gap: 28px; }
.site-footer h4 { color: #fff; margin: 0 0 10px; font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 4px 0; }
.footer-brand .logo { color: #fff; margin-bottom: 10px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 32px; padding-top: 20px; font-size: .85rem; }

/* Toast (placeholder buy buttons) */
.toast {
  position: fixed; left: 50%; bottom: 96px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 10px; font-size: .95rem;
  box-shadow: var(--shadow); transition: all .2s ease; z-index: 60; width: max-content; max-width: calc(100% - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Tablet & up ---------- */
@media (min-width: 640px) {
  .btn-row { flex-direction: row; flex-wrap: wrap; }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .post-list { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  body { font-size: 18px; }
  .section { padding: 88px 0; }
  .nav-toggle { display: none; }
  .site-nav, .site-nav.open { display: block; position: static; box-shadow: none; border: 0; background: none; }
  .site-nav ul { display: flex; align-items: center; gap: 28px; padding: 0; }
  .site-nav a:not(.btn) { border: 0; padding: 8px 0; }
  .site-nav .btn { margin: 0; width: auto; min-height: 44px; padding: 0 20px; font-size: .95rem; }
  .hero { padding: 80px 0 96px; }
  .hero-grid { grid-template-columns: 1.1fr 1fr; gap: 56px; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .bundle-box { grid-template-columns: 1.2fr 1fr; padding: 48px; align-items: center; }
  .two-col { grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
  .product-hero { padding: 56px 0 80px; }
  .sticky-buy { display: none; }
  body.has-sticky { padding-bottom: 0; }
  .toast { bottom: 32px; }
  .post-list { grid-template-columns: repeat(3, 1fr); }
}

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