/* Homeschool Planner & Records — single stylesheet, no frameworks, no external fonts */

:root {
  --ink: #2b2724;
  --ink-soft: #5f574e;
  --ink-faint: #938a7e;
  --paper: #fbf8f3;
  --card: #ffffff;
  --line: #ece4d8;
  --line-strong: #ddd2c1;
  --brand: #b4612d;        /* warm terracotta */
  --brand-dark: #8c4a20;
  --brand-soft: #f7ece1;
  --leaf: #4f7a4a;         /* muted green */
  --leaf-soft: #e7f0e3;
  --gold: #b9892e;
  --gold-soft: #f8efd9;
  --sky: #3b6f8a;
  --sky-soft: #e4eef2;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(43, 39, 36, .05), 0 6px 22px rgba(43, 39, 36, .07);
  --shadow-lg: 0 10px 40px rgba(43, 39, 36, .12);
  --maxw: 1060px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.62;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--brand); text-underline-offset: 2px; }
a:hover { color: var(--brand-dark); }
h1, h2, h3, h4 { line-height: 1.22; color: var(--ink); letter-spacing: -.012em; }
h1 { font-size: clamp(1.9rem, 5vw, 2.9rem); margin: .15em 0 .35em; }
h2 { font-size: clamp(1.35rem, 3.4vw, 1.8rem); margin: 1.7em 0 .5em; }
h3 { font-size: 1.15rem; margin: 1.4em 0 .4em; }
p  { margin: .6em 0 1em; }
ul, ol { margin: .5em 0 1.1em; padding-left: 1.25em; }
li { margin: .3em 0; }
code { background: var(--brand-soft); padding: .12em .4em; border-radius: 5px; font-size: .9em; color: var(--brand-dark); }
strong, b { font-weight: 700; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 18px; }
.narrow { max-width: 760px; }
.muted { color: var(--ink-soft); }
.tiny { font-size: .86rem; }
.center { text-align: center; }

/* ---------- skip link / a11y ---------- */
.skip { position: absolute; left: -9999px; top: 0; background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 100; }
.skip:focus { left: 0; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 4px; }

/* ---------- header ---------- */
.site-head { background: rgba(251, 248, 243, .9); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.site-head .wrap { display: flex; align-items: center; gap: 18px; min-height: 62px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.1rem; color: var(--ink); text-decoration: none; }
.logo svg { flex: none; }
.logo b { color: var(--brand); font-weight: 800; }
.nav { display: flex; gap: 4px 18px; flex-wrap: wrap; margin-left: auto; font-size: .95rem; align-items: center; }
.nav a { text-decoration: none; color: var(--ink-soft); padding: 4px 2px; font-weight: 550; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--brand); }
.nav .btn-sm { color: #fff; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--brand); color: #fff; text-decoration: none;
  font-weight: 700; font-size: 1.04rem;
  padding: 14px 26px; border-radius: 999px; border: 0; cursor: pointer;
  box-shadow: 0 6px 18px rgba(180, 97, 45, .28); transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover { background: var(--brand-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 9px 24px rgba(180, 97, 45, .34); }
.btn:active { transform: translateY(0); }
.btn.ghost { background: transparent; color: var(--brand); box-shadow: none; border: 1.5px solid var(--line-strong); }
.btn.ghost:hover { background: var(--brand-soft); color: var(--brand-dark); }
.btn-sm { display: inline-flex; align-items: center; gap: 7px; background: var(--brand); color: #fff; text-decoration: none; font-weight: 700; font-size: .9rem; padding: 8px 16px; border-radius: 999px; }
.btn-sm:hover { background: var(--brand-dark); color: #fff; }
.btn[aria-disabled="true"], .btn.disabled { opacity: .55; pointer-events: none; }

/* ---------- hero ---------- */
.hero { padding: 52px 0 30px; }
.hero .kicker { color: var(--brand); font-weight: 800; font-size: .82rem; text-transform: uppercase; letter-spacing: .11em; margin: 0 0 12px; }
.hero h1 { max-width: 16ch; }
.hero .lede { font-size: 1.18rem; color: var(--ink-soft); max-width: 56ch; margin-top: .2em; }
.hero .lede b { color: var(--ink); }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin: 26px 0 14px; }
.hero-cta .price-note { font-size: .92rem; color: var(--ink-faint); }
.hero-trust { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 18px; font-size: .92rem; color: var(--ink-soft); }
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust svg { flex: none; color: var(--leaf); }

.hero-grid { display: grid; grid-template-columns: 1fr; gap: 36px; align-items: center; }
@media (min-width: 880px) { .hero-grid { grid-template-columns: 1.05fr .95fr; } }

/* mock dashboard illustration */
.mock {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); overflow: hidden; font-size: .8rem;
}
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: #fcfaf6; }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); display: inline-block; }
.mock-bar i:nth-child(1){ background:#e6a; } .mock-bar i:nth-child(2){ background:#eb6; } .mock-bar i:nth-child(3){ background:#7c7; }
.mock-bar span { margin-left: 8px; color: var(--ink-faint); font-weight: 600; }
.mock-body { padding: 16px; display: grid; gap: 12px; }
.mock-h { font-weight: 800; font-size: 1.05rem; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.mock-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; padding: 9px 12px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.mock-row .lbl { font-weight: 650; }
.mock-row .sub { color: var(--ink-faint); font-size: .76rem; }
.pill { font-size: .72rem; font-weight: 700; padding: .15em .6em; border-radius: 999px; white-space: nowrap; }
.pill.done { background: var(--leaf-soft); color: var(--leaf); }
.pill.due  { background: var(--gold-soft); color: #8a6516; }
.pill.tag  { background: var(--sky-soft); color: var(--sky); }
.mock-mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mock-stat { background: #fcfaf6; border: 1px solid var(--line); border-radius: 9px; padding: 9px 10px; text-align: center; }
.mock-stat b { display: block; font-size: 1.25rem; color: var(--brand); }
.mock-stat span { font-size: .7rem; color: var(--ink-faint); }

/* ---------- sections / cards ---------- */
section { padding: 8px 0; }
.section-pad { padding: 38px 0; }
.band { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-soft { background: var(--brand-soft); }
.lead-line { font-size: 1.1rem; color: var(--ink-soft); max-width: 62ch; margin: 0 auto 6px; }

.grid { display: grid; gap: 18px; }
.grid.cols-2 { grid-template-columns: 1fr; }
.grid.cols-3 { grid-template-columns: 1fr; }
.grid.cols-4 { grid-template-columns: 1fr 1fr; }
@media (min-width: 720px) {
  .grid.cols-2 { grid-template-columns: 1fr 1fr; }
  .grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
}
.card h3 { margin-top: .2em; }
.card .ico { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 12px; background: var(--brand-soft); color: var(--brand-dark); }
.card .ico.g { background: var(--leaf-soft); color: var(--leaf); }
.card .ico.b { background: var(--sky-soft); color: var(--sky); }
.card .ico.y { background: var(--gold-soft); color: #8a6516; }
.card p:last-child { margin-bottom: 0; }

/* feature list with checkmarks */
.checklist { list-style: none; padding: 0; margin: 1em 0; }
.checklist li { display: flex; gap: 11px; align-items: flex-start; margin: .55em 0; }
.checklist li svg { flex: none; margin-top: 3px; color: var(--leaf); }

/* numbered "how it works" */
.steps { counter-reset: step; display: grid; gap: 16px; padding: 0; list-style: none; }
.steps li { position: relative; padding-left: 56px; min-height: 40px; }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0; width: 38px; height: 38px;
  background: var(--brand); color: #fff; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; font-size: 1.05rem;
}
.steps li b { display: block; margin-bottom: 2px; }

/* what's inside / table-of-contents */
.inside-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 680px) { .inside-grid { grid-template-columns: 1fr 1fr; } }
.inside-item { display: flex; gap: 13px; align-items: flex-start; padding: 15px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card); }
.inside-item .n { flex: none; width: 30px; height: 30px; border-radius: 8px; background: var(--brand-soft); color: var(--brand-dark); font-weight: 800; display: grid; place-items: center; font-size: .9rem; }
.inside-item b { display: block; }
.inside-item .d { color: var(--ink-soft); font-size: .92rem; }

/* table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #fcfaf6; font-weight: 750; color: var(--ink); white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
td .src { font-size: .8rem; }
.tier-chip { display: inline-block; font-size: .76rem; font-weight: 700; padding: .12em .6em; border-radius: 999px; }
.tier-no-notice { background: var(--leaf-soft); color: var(--leaf); }
.tier-low { background: var(--sky-soft); color: var(--sky); }
.tier-moderate { background: var(--gold-soft); color: #8a6516; }
.tier-high { background: #f3e0db; color: #9c4632; }

/* callout / disclaimer */
.callout { border-left: 4px solid var(--gold); background: var(--gold-soft); padding: 14px 18px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 1.2em 0; }
.callout.legal { border-color: var(--brand); background: var(--brand-soft); }
.callout p:last-child { margin-bottom: 0; }
.callout strong { color: var(--ink); }

/* price card */
.price-card { max-width: 460px; margin: 0 auto; background: var(--card); border: 2px solid var(--brand); border-radius: var(--radius); padding: 30px 28px; box-shadow: var(--shadow-lg); text-align: center; }
.price-card .amt { font-size: 3rem; font-weight: 800; color: var(--ink); line-height: 1; }
.price-card .amt small { font-size: 1rem; font-weight: 600; color: var(--ink-faint); }
.price-card .once { color: var(--leaf); font-weight: 700; font-size: .95rem; margin: 6px 0 18px; }
.price-card .checklist { text-align: left; max-width: 320px; margin: 18px auto; }

/* FAQ */
details.faq { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card); margin: 10px 0; overflow: hidden; }
details.faq summary { cursor: pointer; padding: 15px 18px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--brand); font-weight: 400; line-height: 1; }
details.faq[open] summary::after { content: "\2013"; }
details.faq .body { padding: 0 18px 16px; color: var(--ink-soft); }
details.faq .body p:first-child { margin-top: 0; }

/* sample preview box */
.sample-box { border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: 22px; background: #fcfaf6; }

/* footer */
.site-foot { margin-top: 60px; background: var(--ink); color: #d8cfc3; font-size: .9rem; }
.site-foot .wrap { padding: 34px 18px 40px; display: grid; gap: 20px; grid-template-columns: 1fr; }
.site-foot a { color: #f0e7da; }
.site-foot h4 { color: #fff; margin: 0 0 8px; font-size: .95rem; }
.site-foot nav { display: flex; flex-direction: column; gap: 6px; }
.site-foot .foot-disc { color: #a89e90; font-size: .82rem; max-width: 72ch; }
.site-foot .foot-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 16px; display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; justify-content: space-between; }
@media (min-width: 760px) { .site-foot .wrap { grid-template-columns: 1.6fr 1fr 1fr; } .site-foot .foot-bottom { grid-column: 1 / -1; } }

/* affiliate slot (dormant by default) + disclosure ribbon (hidden by default) */
.aff-slot { display: none; }
.aff-slot.aff-active { display: block; }
.aff-ribbon { font-size: .82rem; color: var(--ink-faint); background: var(--brand-soft); border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; margin: 10px 0; }

/* crumbs */
.crumbs { font-size: .88rem; color: var(--ink-faint); margin: 18px 0 4px; }
.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { color: var(--brand); }

/* generic prose page */
.prose { max-width: 760px; }
.prose h2 { border-bottom: 1px solid var(--line); padding-bottom: .25em; }
.prose ul li { margin: .4em 0; }

hr { border: 0; border-top: 1px solid var(--line); margin: 2.2em 0; }

@media print {
  .site-head, .site-foot, .hero-cta, .btn, .btn-sm { display: none !important; }
  body { background: #fff; font-size: 12pt; }
}
