/* The Teacher's Sandbox — site styles. No external fonts or assets: system font stacks only. */

:root {
  --bg: #FBF7EF;
  --surface: #FFFFFF;
  --surface-2: #F4ECDD;
  --line: #E6DAC3;
  --text: #1E2A2D;
  --muted: #56615F;
  --accent: #1C6B58;
  --accent-hover: #155445;
  --on-accent: #FFFFFF;
  --accent-soft: #DDEFE8;
  --sun: #B96F0C;
  --sun-soft: #FBEBD0;
  --sand: #E9CFA0;
  /* classroom palette */
  --board: #25473D;
  --board-2: #1D3A32;
  --chalk: #F4F1E8;
  --chalk-dim: #C9D6CE;
  --chalk-yellow: #F7DC7A;
  --wood: #A8733F;
  --wood-dark: #7C522B;
  --cork: #C99B66;
  --cork-dark: #A67C4B;
  --cork-text: #1E2A2D;
  --paper: #FFFFFF;
  --paper-line: #D6E4F2;
  --paper-margin: #E8A0A0;
  --hi: #FFE27A;
  --apple: #D8382E;
  --font-chalk: "Chalkboard SE", "Chalkboard", "Marker Felt", "Bradley Hand", ui-rounded, "Arial Rounded MT Bold", sans-serif;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(30, 42, 45, .06), 0 10px 30px rgba(30, 42, 45, .08);

  --font-body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: ui-rounded, "SF Pro Rounded", "Nunito", "Arial Rounded MT Bold", var(--font-body);
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --max: 1120px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111618;
    --surface: #192022;
    --surface-2: #1F282B;
    --line: #2D383B;
    --text: #ECE5D6;
    --muted: #A3ACA9;
    --accent: #5CC2A3;
    --accent-hover: #80D4BB;
    --on-accent: #0C1A15;
    --accent-soft: #173229;
    --sun: #F0B455;
    --sun-soft: #33291A;
    --sand: #4A3F2C;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .35);
    --board: #1B3A31;
    --board-2: #142B24;
    --wood: #8A5C31;
    --wood-dark: #5E3F20;
    --cork: #5B4330;
    --cork-dark: #46332A;
    --cork-text: #ECE5D6;
    --paper: #1F282B;
    --paper-line: #2A3A44;
    --paper-margin: #7A3F3F;
    --hi: #5C4B14;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
}

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

a { color: var(--accent); text-underline-offset: .18em; }
a:hover { color: var(--accent-hover); }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -.01em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }

.skip-link {
  position: absolute; left: 16px; top: -60px;
  background: var(--accent); color: var(--on-accent);
  padding: 8px 14px; border-radius: var(--radius-sm); z-index: 100;
}
.skip-link:focus { top: 12px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
@media (max-width: 480px) { .wrap { padding: 0 16px; } }

.section { padding: clamp(56px, 9vw, 104px) 0; }
.section-tight { padding: clamp(40px, 6vw, 64px) 0; }
.section-alt { background: var(--surface-2); }

.eyebrow {
  display: inline-block;
  font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  padding: 0 8px;
  margin-left: -8px;
  background: linear-gradient(transparent 52%, var(--hi) 52%);
  border-radius: 3px;
}
.lede { font-size: clamp(1.1rem, 1.8vw, 1.3rem); color: var(--muted); max-width: 40ch; }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head p { color: var(--muted); }
.muted { color: var(--muted); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px 24px; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 800; font-size: 1.2rem;
  color: var(--text); text-decoration: none;
}
.brand:hover { color: var(--text); }
.brand svg { width: 32px; height: 32px; }
.nav { display: flex; align-items: center; gap: 4px 6px; flex-wrap: wrap; }
.nav a {
  color: var(--text); text-decoration: none; font-weight: 600; font-size: .95rem;
  padding: 8px 12px; border-radius: 999px;
}
.nav a:hover { background: var(--surface-2); color: var(--text); }
.nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 700; font-size: 1rem;
  padding: 13px 22px; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn-ghost { border-color: var(--line); color: var(--text); background: var(--surface); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 9px 16px; font-size: .92rem; }
.btn[aria-disabled="true"] {
  background: var(--surface-2); color: var(--muted); border-color: var(--line); cursor: default; pointer-events: none;
}
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Hero */
.hero { padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 8vw, 96px); overflow: hidden; }
.hero .wrap {
  display: grid; gap: 48px; align-items: center;
  grid-template-columns: 1.1fr .9fr;
}
@media (max-width: 880px) { .hero .wrap { grid-template-columns: 1fr; } }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-note { margin-top: 18px; font-size: .92rem; color: var(--muted); }

/* Hero mock app window */
.mock {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; max-width: 460px; justify-self: center; width: 100%;
  transform: rotate(1.2deg);
}
.mock-bar {
  display: flex; align-items: center; gap: 6px; padding: 10px 14px;
  background: var(--surface-2); border-bottom: 1px solid var(--line);
  font-family: var(--font-mono); font-size: .75rem; color: var(--muted);
}
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); display: inline-block; }
.mock-bar span { margin-left: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mock-body { padding: 22px; }
.mock-label { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.mock-name {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 6vw, 2.6rem);
  margin: 6px 0 18px; color: var(--text);
}
.mock-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mock-group { background: var(--surface-2); border-radius: var(--radius-sm); padding: 10px; font-size: .82rem; line-height: 1.45; }
.mock-group b { display: block; color: var(--accent); font-size: .75rem; margin-bottom: 2px; }
.mock-status {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line);
}

/* Pills / badges */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .78rem; font-weight: 700; padding: 5px 11px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
}
.pill-sun { background: var(--sun-soft); color: var(--sun); }
.pill-plain { background: var(--surface-2); color: var(--muted); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* Privacy pillars */
.pillars {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}
.pillar {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
}
.pillar-icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); margin-bottom: 16px;
}
.pillar-icon svg { width: 24px; height: 24px; }
.pillar p { color: var(--muted); margin: 0; }

/* Tiers */
.tiers { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.tier {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(24px, 4vw, 36px); display: flex; flex-direction: column;
}
.tier-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.tier > p { color: var(--muted); }
.steps { list-style: none; padding: 0; margin: 12px 0 0; counter-reset: step; display: grid; gap: 14px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; }
.steps li::before {
  content: counter(step);
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface-2); font-weight: 800; font-family: var(--font-display); color: var(--accent);
}
.steps strong { display: block; }
.steps span { color: var(--muted); font-size: .95rem; }

/* Kit cards */
.kits { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.kit {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column; gap: 12px;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.kit:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: var(--shadow); }
.kit[hidden] { display: none; }
.kit-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.kit h3 { margin: 0; }
.kit p { color: var(--muted); margin: 0; font-size: .98rem; }
.kit-data {
  font-size: .86rem; background: var(--surface-2); border-radius: var(--radius-sm); padding: 10px 12px; color: var(--text);
}
.kit-data b { color: var(--accent); }
.kit-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; padding-top: 6px; }
.price { font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter {
  font: inherit; font-weight: 700; font-size: .92rem; cursor: pointer;
  padding: 9px 16px; border-radius: 999px; border: 2px solid var(--line); background: var(--surface); color: var(--text);
}
.filter:hover { border-color: var(--accent); }
.filter[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

/* Pricing */
.plans { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); max-width: 880px; }
.plan {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px;
  display: flex; flex-direction: column;
}
.plan-featured { border: 2px solid var(--accent); position: relative; }
.plan-featured .pill { position: absolute; top: -14px; left: 28px; background: var(--accent); color: var(--on-accent); }
.plan-price { font-family: var(--font-display); font-weight: 800; font-size: 2.6rem; line-height: 1; margin: 8px 0 4px; }
.plan-price small { font-size: 1rem; font-weight: 600; color: var(--muted); }
.plan ul { padding: 0; margin: 20px 0 28px; list-style: none; display: grid; gap: 10px; }
.plan li { padding-left: 28px; position: relative; }
.plan li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 5px var(--accent-soft), inset 0 0 0 16px var(--accent);
}
.plan .btn { margin-top: auto; }
.why-no-sub {
  margin-top: 32px; max-width: 880px; display: flex; gap: 16px; align-items: flex-start;
  background: var(--sun-soft); border-radius: var(--radius); padding: 20px 24px;
}
.why-no-sub p { margin: 0; }

/* Teacher note */
.note {
  display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px);
}
@media (max-width: 640px) { .note { grid-template-columns: 1fr; } }
.note-avatar {
  width: 88px; height: 88px; border-radius: 24px; background: var(--sand);
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 2rem; color: var(--text);
}
.note p:last-child { margin-bottom: 0; }
.note-creds { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 16px; }

/* FAQ */
.faq { max-width: 780px; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 52px 18px 20px; font-weight: 700; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; font-weight: 400; color: var(--accent);
}
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 20px 18px; color: var(--muted); }
.faq details > div p:last-child { margin-bottom: 0; }

/* CTA band */
.cta {
  background: var(--accent); color: var(--on-accent); border-radius: calc(var(--radius) + 6px);
  padding: clamp(32px, 6vw, 56px); display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between;
}
.cta h2 { margin: 0 0 6px; }
.cta p { margin: 0; opacity: .9; max-width: 52ch; }
.cta .btn { background: var(--on-accent); color: var(--accent); }
.cta .btn:hover { background: var(--bg); color: var(--accent-hover); }

/* Long-form (IT + privacy pages) */
.page-head { padding: clamp(48px, 7vw, 80px) 0 clamp(24px, 4vw, 40px); }
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); margin-top: 2.2em; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose code { font-family: var(--font-mono); font-size: .88em; background: var(--surface-2); padding: .12em .4em; border-radius: 6px; }
.prose pre {
  font-family: var(--font-mono); font-size: .85rem; line-height: 1.55;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 16px 18px; overflow-x: auto; white-space: pre;
}
.prose pre code { background: none; padding: 0; font-size: inherit; }
.callout {
  background: var(--accent-soft); border-radius: var(--radius-sm); padding: 16px 20px; margin: 1.4em 0;
}
.callout p:last-child { margin-bottom: 0; }
.table-scroll { overflow-x: auto; margin: 1.2em 0; border: 1px solid var(--line); border-radius: var(--radius-sm); }
table { border-collapse: collapse; width: 100%; font-size: .95rem; min-width: 520px; background: var(--surface); }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--surface-2); font-weight: 700; }
tr:last-child td { border-bottom: 0; }
.letter-sign { margin-top: 2.4em; font-style: italic; color: var(--muted); }
.print-btn { margin-top: 8px; }
@media print {
  .site-header, .site-footer, .print-btn, .skip-link { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .prose pre, .callout, th { background: #f4f4f4 !important; }
  a { color: #000; }
}

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 48px; margin-top: clamp(56px, 8vw, 96px); font-size: .95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-links a { color: var(--muted); text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: var(--accent); }
.footer-promise { color: var(--muted); max-width: 44ch; margin: 8px 0 0; }

/* Free tool band */
.free-band {
  display: grid; gap: 32px; align-items: center; grid-template-columns: 1.3fr .7fr;
  background: var(--surface); border: 2px solid var(--accent); border-radius: calc(var(--radius) + 6px);
  padding: clamp(24px, 5vw, 48px);
}
@media (max-width: 820px) { .free-band { grid-template-columns: 1fr; } }
.free-band h2 { margin-bottom: 12px; }
.free-band > div > p { color: var(--muted); max-width: 60ch; }
.free-points { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 8px; }
.free-points li { padding-left: 28px; position: relative; font-weight: 600; }
.free-points li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 16px; height: 16px; border-radius: 50%;
  box-shadow: inset 0 0 0 5px var(--accent-soft), inset 0 0 0 16px var(--accent);
}
.free-note { font-size: .9rem; color: var(--muted); margin: 12px 0 0; }
.flow-card { background: var(--surface-2); border-radius: var(--radius); padding: 24px; text-align: center; }
.flow-step { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; background: var(--accent); color: var(--on-accent); border-radius: 14px; padding: 14px; }
.flow-step small { display: block; font-family: var(--font-body); font-weight: 600; font-size: .8rem; opacity: .85; }
.flow-arrow { font-size: 1.6rem; color: var(--accent); line-height: 1; margin: 10px 0; }
.flow-targets { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.flow-targets span { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-weight: 700; font-size: .88rem; }
.kit-free { border: 2px solid var(--accent); }


/* ===== Classroom theme: chalkboard, ruler, paper, cork, apples ===== */

/* Ruler along the bottom of the header */
.site-header { border-bottom: 0; }
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -14px; height: 14px; pointer-events: none;
  background:
    repeating-linear-gradient(90deg, #6B5320 0 1px, transparent 1px 12px) bottom / 100% 6px no-repeat,
    repeating-linear-gradient(90deg, #6B5320 0 1px, transparent 1px 60px) bottom / 100% 11px no-repeat,
    #F2D27A;
  border-bottom: 1px solid #C9A648;
  box-shadow: 0 2px 6px rgba(30, 42, 45, .12);
}
@media (prefers-color-scheme: dark) {
  .site-header::after {
    background:
      repeating-linear-gradient(90deg, #E8D9A8 0 1px, transparent 1px 12px) bottom / 100% 6px no-repeat,
      repeating-linear-gradient(90deg, #E8D9A8 0 1px, transparent 1px 60px) bottom / 100% 11px no-repeat,
      #5A4A1E;
    border-bottom-color: #3B3010;
  }
}
main { padding-top: 14px; }

/* Chalkboard */
.board {
  position: relative; color: var(--chalk);
  background:
    radial-gradient(ellipse at 20% 15%, rgba(255,255,255,.07), transparent 55%),
    radial-gradient(ellipse at 85% 90%, rgba(255,255,255,.05), transparent 50%),
    linear-gradient(160deg, var(--board), var(--board-2));
  border: 12px solid var(--wood); border-radius: 14px;
  box-shadow: inset 0 0 0 2px rgba(0,0,0,.25), inset 0 0 40px rgba(0,0,0,.35), 0 3px 0 var(--wood-dark), var(--shadow);
  padding: clamp(24px, 4vw, 44px);
}
.board h1, .board h2 { color: var(--chalk); }
.board h1 em { color: var(--chalk-yellow); font-style: normal; }
.board .lede, .board p { color: var(--chalk-dim); }
.board a { color: var(--chalk-yellow); }
.board .btn-primary { background: var(--chalk-yellow); color: #2A2410; }
.board .btn-primary:hover { background: #FFE99A; color: #2A2410; }
.board .btn-ghost { background: transparent; border-color: rgba(244,241,232,.55); color: var(--chalk); border-style: dashed; }
.board .btn-ghost:hover { border-color: var(--chalk-yellow); color: var(--chalk-yellow); }
.chalk-tag {
  display: inline-block; font-family: var(--font-chalk); font-size: 1.05rem; letter-spacing: .02em;
  color: var(--chalk-yellow); border: 2px dashed rgba(247,220,122,.6); border-radius: 999px; padding: 3px 14px; margin-bottom: 18px;
  transform: rotate(-1.5deg);
}
.chalk-list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 4px; font-family: var(--font-chalk); font-size: 1.15rem; color: var(--chalk); }
.chalk-list li::before { content: "✓ "; color: var(--chalk-yellow); font-weight: 700; }
.board .hero-note { color: var(--chalk-dim); font-family: var(--font-chalk); }
/* Chalk tray with chalk pieces and an eraser */
.chalk-tray {
  position: absolute; left: -12px; right: -12px; bottom: -30px; height: 14px;
  background: linear-gradient(var(--wood), var(--wood-dark)); border-radius: 0 0 8px 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,.25);
}
.chalk-tray i { position: absolute; bottom: 12px; height: 7px; border-radius: 3px; background: var(--chalk); }
.chalk-tray i:nth-child(1) { right: 90px; width: 34px; }
.chalk-tray i:nth-child(2) { right: 64px; width: 22px; background: var(--chalk-yellow); transform: rotate(-4deg); }
.chalk-tray i:nth-child(3) { right: 20px; width: 38px; height: 12px; border-radius: 3px; background: #6E5A3A; border-top: 5px solid #2E2A22; }
.hero .board { margin-bottom: 30px; }
.hero .wrap { grid-template-columns: 1.15fr .85fr; }
@media (max-width: 880px) { .hero .wrap { grid-template-columns: 1fr; } }

/* The desk: app mock-up with an apple, pencil and sticky note */
.desk { position: relative; justify-self: center; width: 100%; max-width: 460px; padding: 18px 0 34px; }
.desk .mock { transform: rotate(1.2deg); }
.deco-apple { position: absolute; width: 86px; height: 86px; right: -14px; bottom: -6px; filter: drop-shadow(0 6px 5px rgba(0,0,0,.25)); transform: rotate(8deg); }
.deco-pencil { position: absolute; width: 190px; height: 24px; left: -22px; bottom: 6px; transform: rotate(-9deg); filter: drop-shadow(0 3px 3px rgba(0,0,0,.2)); }
.sticky {
  position: absolute; top: -6px; right: -10px; width: 132px; padding: 14px 12px 12px;
  background: #FFE98A; color: #3A3210; font-family: var(--font-chalk); font-size: .95rem; line-height: 1.25;
  transform: rotate(5deg); box-shadow: 0 8px 14px rgba(0,0,0,.18); z-index: 2;
}
.sticky::before { content: ""; position: absolute; top: -9px; left: 50%; margin-left: -28px; width: 56px; height: 18px; background: rgba(255,255,255,.55); box-shadow: 0 1px 2px rgba(0,0,0,.15); transform: rotate(-3deg); }
@media (max-width: 480px) { .sticky { right: 0; } .deco-apple { right: 0; } }

/* "Made for every classroom" strip */
.for-strip { padding: 6px 0 28px; }
.for-strip .wrap { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: center; }
.for-strip b { font-family: var(--font-chalk); font-size: 1.05rem; margin-right: 6px; }
.for-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: .9rem; }
.for-chip svg { width: 16px; height: 16px; color: var(--accent); }

/* Graph-paper background for alternate sections */
.section-alt {
  background-color: var(--surface-2);
  background-image:
    linear-gradient(color-mix(in srgb, var(--line) 55%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--line) 55%, transparent) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* Bulletin board (privacy promise) */
.corkboard {
  background-color: var(--cork);
  background-image:
    radial-gradient(rgba(0,0,0,.14) 1px, transparent 1.5px),
    radial-gradient(rgba(255,255,255,.12) 1px, transparent 1.5px);
  background-size: 9px 9px, 13px 13px; background-position: 0 0, 4px 6px;
  border-top: 10px solid var(--wood); border-bottom: 10px solid var(--wood);
  box-shadow: inset 0 8px 14px -8px rgba(0,0,0,.35), inset 0 -8px 14px -8px rgba(0,0,0,.35);
}
.corkboard .section-head h2, .corkboard .section-head p { color: var(--cork-text); }
.corkboard .eyebrow { background: var(--paper); color: var(--accent); padding: 3px 12px; margin-left: 0; transform: rotate(-2deg); box-shadow: 0 2px 4px rgba(0,0,0,.2); border-radius: 2px; }
.corkboard .pillar { position: relative; border: 0; border-radius: 3px; box-shadow: 0 8px 14px rgba(0,0,0,.25); padding-top: 34px; }
.corkboard .pillar:nth-child(odd) { transform: rotate(-1.2deg); }
.corkboard .pillar:nth-child(even) { transform: rotate(1.2deg); }
.corkboard .pillar::before {
  content: ""; position: absolute; top: 9px; left: 50%; margin-left: -8px; width: 16px; height: 16px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #FF8A80, var(--apple) 55%, #8E1F18); box-shadow: 0 3px 3px rgba(0,0,0,.35);
}

/* Notebook-paper kit cards */
.kit {
  position: relative; padding-left: 56px;
  background-color: var(--paper);
  background-image: repeating-linear-gradient(transparent 0 27px, var(--paper-line) 27px 28px);
  background-position: 0 14px;
}
.kit::before { content: ""; position: absolute; top: 0; bottom: 0; left: 40px; width: 2px; background: var(--paper-margin); }
.kit::after {
  content: ""; position: absolute; left: 12px; top: 22px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--surface-2); box-shadow: inset 0 1px 2px rgba(0,0,0,.25), 0 76px 0 var(--surface-2), 0 152px 0 var(--surface-2), 0 228px 0 var(--surface-2);
}
.kit h3, .kit p { text-shadow: 0 0 6px var(--paper), 0 0 6px var(--paper); }
.kit-data { background: var(--surface-2); }

/* Free tool: worksheet with a gold-star sticker */
.free-band { position: relative; }
.sticker {
  position: absolute; top: -22px; right: 22px; width: 92px; height: 92px; display: grid; place-items: center; text-align: center;
  font-family: var(--font-chalk); font-weight: 700; font-size: .95rem; line-height: 1.05; color: #4A2F00;
  background: radial-gradient(circle at 35% 30%, #FFE680, #F2B632 70%); border-radius: 50%; transform: rotate(10deg);
  box-shadow: 0 6px 10px rgba(0,0,0,.2), inset 0 0 0 4px rgba(255,255,255,.35);
}
.sticker::before { content: "★"; position: absolute; top: 8px; font-size: .9rem; }
.sticker span { margin-top: 12px; }
@media (max-width: 820px) { .sticker { width: 76px; height: 76px; font-size: .8rem; right: 14px; } }

/* Teacher note: apple avatar + gold star */
.note { position: relative; }
.note-avatar.apple { width: 96px; height: 96px; background: none; border-radius: 0; padding: 0; }
.note-avatar.apple svg { width: 96px; height: 96px; filter: drop-shadow(0 4px 4px rgba(0,0,0,.2)); }
.gold-star { position: absolute; top: 12px; right: 22px; width: 76px; height: 76px; transform: rotate(12deg); filter: drop-shadow(0 4px 4px rgba(0,0,0,.2)); }
@media (max-width: 640px) { .gold-star { width: 52px; height: 52px; top: 10px; right: 12px; } }

/* Pricing: gold star on the best-value plan */
.plan-featured .pill { background: #F2B632; color: #3A2600; }
.plan-featured { box-shadow: 0 0 0 4px var(--accent-soft); }

/* FAQ: hand-raised note */
.faq-hand { font-family: var(--font-chalk); font-weight: 400; margin-left: 4px; }

/* Chalkboard CTA */
.cta.board { border-radius: 14px; color: var(--chalk); }
.cta.board .btn { background: var(--chalk-yellow); color: #2A2410; }
.cta.board .btn:hover { background: #FFE99A; color: #2A2410; }
.cta.board p { color: var(--chalk-dim); opacity: 1; }
.cta.board h2 { font-family: var(--font-chalk); }

/* Inner pages: chalkboard banner above the content */
.page-head {
  background:
    radial-gradient(ellipse at 15% 20%, rgba(255,255,255,.07), transparent 55%),
    linear-gradient(160deg, var(--board), var(--board-2));
  color: var(--chalk); border-bottom: 12px solid var(--wood); box-shadow: 0 4px 0 var(--wood-dark);
  margin-top: -14px; padding-top: calc(clamp(48px, 7vw, 80px) + 14px); padding-bottom: clamp(36px, 5vw, 56px);
  margin-bottom: 28px;
}
.page-head h1 { color: var(--chalk); }
.page-head .lede { color: var(--chalk-dim); }
.page-head .eyebrow { color: var(--chalk-yellow); background: none; border: 2px dashed rgba(247,220,122,.6); border-radius: 999px; padding: 3px 14px; margin-left: 0; font-family: var(--font-chalk); text-transform: none; letter-spacing: .02em; font-size: 1rem; }
.page-head .btn-ghost { background: transparent; color: var(--chalk); border-color: rgba(244,241,232,.55); border-style: dashed; }

@media (prefers-reduced-motion: no-preference) {
  .corkboard .pillar { transition: transform .2s; }
  .corkboard .pillar:hover { transform: rotate(0) translateY(-3px); }
}
@media print {
  .site-header::after { display: none; }
  main { padding-top: 0; }
  .page-head { background: none; color: #000; border: 0; box-shadow: none; margin: 0; padding-top: 24px; }
  .page-head h1, .page-head .lede { color: #000; }
  .page-head .eyebrow { color: #000; border-color: #000; }
}

/* ===== Kit detail pages (tools/*.html) ===== */
.back-link { display: inline-block; margin-bottom: 18px; color: var(--chalk-dim); font-weight: 700; text-decoration: none; }
.back-link:hover { color: var(--chalk-yellow); }
.page-head .btn-row { margin-top: 24px; }
.page-head .btn[aria-disabled="true"] { background: rgba(244,241,232,.12); color: var(--chalk-dim); border-color: rgba(244,241,232,.3); }
.tool-price { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; color: var(--chalk); margin-right: 6px; align-self: center; }

/* Screenshot in a browser frame */
.shot { margin: 0; }
.shot-frame {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: var(--shadow); overflow: hidden;
}
.shot-frame .mock-bar { padding: 8px 12px; }
.shot-frame a { display: block; }
.shot-frame img { width: 100%; height: auto; }
.shot figcaption { margin-top: 10px; font-size: .92rem; color: var(--muted); }
.shot figcaption b { color: var(--text); }
.shot-hero { max-width: 980px; margin: 0 auto; }
.shot-hero figcaption { text-align: center; }
.shot-grid { display: grid; gap: 28px 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }

/* What it does + quick facts */
.tool-grid { display: grid; gap: 32px; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 860px) { .tool-grid { grid-template-columns: minmax(0, 1fr); } }
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.feature-list li { padding-left: 30px; position: relative; }
.feature-list li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 16px; height: 16px; border-radius: 50%;
  box-shadow: inset 0 0 0 5px var(--accent-soft), inset 0 0 0 16px var(--accent);
}
.feature-list strong { display: block; }
.feature-list span { color: var(--muted); }
.facts { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.facts h3 { margin-bottom: 12px; }
.facts dl { margin: 0; display: grid; gap: 12px; }
.facts dt { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 2px 0 0; }

/* How to run it */
.tool-steps { max-width: 780px; gap: 22px; }
.tool-steps li::before { width: 34px; height: 34px; background: var(--accent); color: var(--on-accent); }
.tool-steps strong { font-family: var(--font-display); font-size: 1.12rem; margin-bottom: 2px; }
.tool-steps span { font-size: 1rem; }
.tool-steps kbd, .feature-list kbd {
  font-family: var(--font-mono); font-size: .82em; background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 6px; padding: .05em .4em;
}
.tool-note { max-width: 780px; margin-top: 28px; }

/* Privacy + troubleshooting */
.tool-trust { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 860px) { .tool-trust { grid-template-columns: minmax(0, 1fr); } }
.tool-trust .callout { margin: 0; }
.tool-trust .callout h3 { margin-bottom: 8px; }
.tool-trust .faq { max-width: none; }

/* Other kits */
.tool-links { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.tool-links a {
  background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px;
  font-weight: 700; text-decoration: none; color: var(--text);
}
.tool-links a:hover { border-color: var(--accent); color: var(--accent); }

/* Shop card: Learn more next to the buy button */
.kit-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.kit-foot { flex-wrap: wrap; }
.kit h3 a { color: inherit; text-decoration: none; }
.kit h3 a:hover { color: var(--accent); text-decoration: underline; }

/* Gradebook Guardian: drawn sheet (it runs in Google Sheets, so there's no screenshot) */
.sheet { background: #fff; color: #1E2A2D; font-family: Arial, Helvetica, sans-serif; font-size: .82rem; }
.sheet-menu { display: flex; gap: 14px; flex-wrap: wrap; padding: 8px 12px; border-bottom: 1px solid #E3E3E3; color: #444; }
.sheet-menu b { color: #1C6B58; }
.sheet-scroll { overflow-x: auto; }
.sheet table { min-width: 640px; font-size: inherit; background: #fff; }
.sheet th, .sheet td { padding: 6px 10px; border: 1px solid #E3E3E3; }
.sheet thead th { background: #1C6B58; color: #fff; }
.sheet .s-title { margin: 0; padding: 12px 10px 2px; font-size: 1.1rem; font-weight: 700; }
.sheet .s-note { margin: 0; padding: 0 10px 10px; color: #666; }
.sheet .st-support td { background: #F6D5D1; }
.sheet .st-watch td { background: #FBE7C2; }
.sheet .st-ok td { background: #DDEFE8; }
.sheet .c-missing { background: #F6D5D1; }
.sheet .c-excused { background: #E6E6E6; }
.sheet .c-low { background: #FBE7C2; }
.sheet .c-head td { background: #F4ECDD; font-weight: 700; }
.sheet-tabs { display: flex; gap: 2px; padding: 6px 10px 0; background: #F1F1F1; border-top: 1px solid #E3E3E3; }
.sheet-tabs span { padding: 5px 14px; color: #555; font-size: .78rem; }
.sheet-tabs .on { background: #fff; color: #1C6B58; font-weight: 700; border-radius: 4px 4px 0 0; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 10px; font-size: .88rem; color: var(--muted); }
.legend i { display: inline-block; width: 14px; height: 14px; border-radius: 3px; vertical-align: -2px; margin-right: 6px; border: 1px solid rgba(0,0,0,.08); }
.legend .c-missing { background: #F6D5D1; } .legend .c-excused { background: #E6E6E6; } .legend .c-low { background: #FBE7C2; }

@media print {
  .shot-frame { box-shadow: none; }
  .tool-links, .cta { display: none !important; }
}

/* Demo videos (tools/*.html): play like a GIF, with a Pause button from demos.js */
.demo .shot-frame { position: relative; }
.demo video { display: block; width: 100%; height: auto; background: var(--surface-2); cursor: pointer; }
.demo-toggle {
  position: absolute; right: 14px; bottom: 14px;
  font: inherit; font-weight: 700; font-size: .9rem; cursor: pointer;
  padding: 8px 16px 8px 34px; border-radius: 999px; border: 0;
  background: rgba(30, 42, 45, .82); color: #fff;
}
.demo-toggle::before {
  content: ""; position: absolute; left: 15px; top: 50%; width: 10px; height: 12px; margin-top: -6px;
  border-left: 3px solid #fff; border-right: 3px solid #fff; box-sizing: border-box;
}
.demo.is-paused .demo-toggle::before {
  width: 0; height: 0; border: 0; margin-top: -7px;
  border-left: 11px solid #fff; border-top: 7px solid transparent; border-bottom: 7px solid transparent;
}
.demo-toggle:hover { background: #1E2A2D; }
.demo-toggle:focus-visible { outline: 3px solid var(--chalk-yellow); outline-offset: 2px; }
.demo .mock-bar .watch { margin-left: auto; font-family: var(--font-body); font-weight: 700; color: var(--accent); }
@media print { .demo-toggle { display: none; } }
/* Kit pages: a shorter chalkboard header so the demo starts above the fold */
.tool-head { padding-top: calc(clamp(28px, 4vw, 48px) + 14px); padding-bottom: clamp(28px, 4vw, 40px); }
.tool-head h1 { font-size: clamp(2rem, 4.4vw, 3rem); margin-bottom: .3em; }
.tool-head .lede { max-width: 60ch; margin-bottom: 0; }
.tool-head .back-link { margin-bottom: 10px; }
.tool-head .btn-row { margin-top: 20px; }
@media (max-width: 600px) {
  .demo .mock-bar span:not(.watch) { display: none; }
  .demo .mock-bar .watch { margin-left: 6px; white-space: normal; line-height: 1.3; }
}
