:root {
  font-family: "Segoe UI", Arial, sans-serif;
  color: #1d2b48;
  background: #f7faff;
  line-height: 1.6;
  font-synthesis: none;
  --blue: #244dbb;
  --ink: #1d2b48;
  --muted: #5b6b83;
  --line: #d9e2ee;
  --yellow: #f7d76b;
  --paper: #fff;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; }
body, input, select, textarea, button { font-size: 15px; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid #e6b923; outline-offset: 4px; }
header, footer { max-width: 1240px; margin: auto; display: flex; align-items: center; gap: 26px; padding: 26px 36px; }
header nav { display: flex; align-items: center; gap: 26px; font-size: 14px; }
header nav a { color: var(--ink); text-decoration: none; padding-block: 3px; }
.brand { display: inline-flex; align-items: center; gap: 10px; margin-right: auto; color: var(--ink); font-weight: 750; font-size: 18px; text-decoration: none; letter-spacing: -.5px; }
.brand-mark { width: 26px; height: 26px; border: 2px solid var(--blue); border-radius: 5px; background: linear-gradient(90deg, transparent 30%, var(--blue) 30%, var(--blue) 37%, transparent 37%, transparent 63%, var(--blue) 63%, var(--blue) 70%, transparent 70%), linear-gradient(transparent 30%, var(--blue) 30%, var(--blue) 37%, transparent 37%, transparent 63%, var(--blue) 63%, var(--blue) 70%, transparent 70%); }
main { max-width: 1240px; margin: auto; padding: 0 36px; }
h1, h2, h3, .sheet-heading { font-family: "Trebuchet MS", "Segoe UI", sans-serif; }
h1, h2, h3 { color: var(--ink); }
h1 { font-size: clamp(39px, 4.5vw, 62px); line-height: 1.08; font-weight: 750; letter-spacing: -2.4px; margin: 0 0 24px; }
h2 { font-size: 27px; line-height: 1.2; letter-spacing: -.7px; margin: 0 0 12px; }
h3 { font-size: 20px; line-height: 1.35; letter-spacing: -.35px; }
p { margin: 0 0 16px; }
section { margin-bottom: 36px; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 62px; padding: 52px 0 48px; }
.hero-copy > p { max-width: 44ch; color: var(--muted); }
.hero-copy .lead { font-size: 22px; line-height: 1.5; color: var(--ink); margin-bottom: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin: 28px 0 12px; }
.hero-copy .hero-note { font-size: 13px; margin-bottom: 25px; }
.text-link { font-size: 14px; font-weight: 650; }
.privacy-note { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); font-size: 13px; }
.privacy-note > span { color: var(--blue); font-weight: 800; }
.privacy-note p { margin: 0; }
.sample-scene { position: relative; background: #eaf0fb; padding: 28px 25px 25px; border-radius: 24px 24px 24px 5px; }
.student-sheet, .caller-sheet { background: var(--paper); border: 1px solid #cfd9eb; box-shadow: 0 8px 20px #244dbb0a; }
.student-sheet { padding: 19px 17px 12px; }
.sheet-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 16px; font-weight: 750; margin-bottom: 14px; }
.sheet-meta { font: 10px "Segoe UI", Arial, sans-serif; color: var(--muted); font-weight: 400; white-space: nowrap; }
.sample-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid #6e83ac; border-left: 1px solid #6e83ac; }
.sample-grid > span { display: flex; align-items: center; justify-content: center; min-height: 55px; padding: 5px 3px; border-right: 1px solid #6e83ac; border-bottom: 1px solid #6e83ac; text-align: center; font-size: 9px; line-height: 1.3; overflow-wrap: anywhere; }
.sample-grid > .free-square { background: var(--yellow); color: #352e17; font-size: 11px; font-weight: 750; }
.sheet-foot { font-size: 9px; color: var(--muted); margin: 10px 0 0; }
.caller-sheet { position: relative; width: 92%; margin: 16px 0 0 auto; padding: 16px 17px 13px; border-top: 3px solid var(--blue); }
.caller-sheet .sheet-heading { font-size: 15px; margin-bottom: 8px; }
.page-tab { font: 10px "Segoe UI", Arial, sans-serif; color: var(--blue); background: #edf2ff; padding: 3px 6px; border-radius: 3px; white-space: nowrap; }
.caller-sheet dl { margin: 0; font-size: 10px; line-height: 1.45; }
.caller-sheet dl div { display: grid; grid-template-columns: 48px 1fr; gap: 8px; padding: 6px 0; border-bottom: 1px solid #e4e9f2; }
.caller-sheet dt { font-weight: 700; }
.caller-sheet dd { margin: 0; color: var(--muted); }
.example-downloads { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 25px 0 29px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 48px; }
.example-downloads h2 { font-size: 20px; margin-bottom: 5px; }
.example-downloads p { color: var(--muted); font-size: 13px; max-width: 53ch; margin: 0; }
.example-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; max-width: 420px; }
.example-links a { display: inline-flex; align-items: center; min-height: 42px; padding: 8px 12px; font-size: 13px; font-weight: 650; border: 1px solid #b5c6e5; border-radius: 5px; text-decoration: none; background: var(--paper); }
.example-links a.source-link { border-color: transparent; background: transparent; font-weight: 400; text-decoration: underline; }
.workspace { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr); gap: 45px; align-items: start; }
#editor { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 30px; }
.section-intro { padding-bottom: 20px; border-bottom: 1px solid #e9edf4; margin-bottom: 24px; }
.section-intro p { color: var(--muted); max-width: 56ch; margin: 0; font-size: 14px; }
label { display: block; font-size: 14px; font-weight: 650; margin: 17px 0 7px; }
input, select, textarea { font: inherit; color: var(--ink); background: var(--paper); border: 1px solid #acbbd0; border-radius: 5px; padding: 11px 12px; width: 100%; min-height: 45px; }
input:hover, select:hover, textarea:hover { border-color: #6b85b6; }
textarea { min-height: 330px; line-height: 1.65; font-size: 13px; resize: vertical; }
.field-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; column-gap: 10px; margin-top: 10px; }
.field-heading span { color: var(--muted); font-size: 12px; }
.hint { font-size: 12px; line-height: 1.65; color: var(--muted); margin: 8px 0 13px; }
code { background: #edf2fa; border-radius: 3px; padding: 2px 5px; font-size: 12px; overflow-wrap: anywhere; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
button, .button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; border: 1px solid var(--blue); background: var(--blue); color: var(--paper); border-radius: 5px; padding: 12px 17px; font: inherit; font-size: 14px; font-weight: 650; cursor: pointer; text-decoration: none; line-height: 1.4; }
button:hover, .button:hover { background: #183e9f; text-decoration: none; }
button.secondary { background: var(--paper); color: var(--blue); border-color: #b5c6e5; }
button.secondary:hover { background: #edf2ff; }
button.quiet { color: var(--blue); background: transparent; border-color: transparent; padding-inline: 6px; }
button.quiet:hover { background: #edf2ff; }
button:disabled { opacity: .5; cursor: wait; }
.input-actions { gap: 8px 16px; margin-bottom: 26px; }
.input-actions button { font-size: 12px; min-height: 40px; padding: 9px 11px; }
.print-settings { border: 0; border-top: 1px solid var(--line); margin: 0; padding: 15px 0 0; min-width: 0; }
.print-settings legend { padding: 0 12px 0 0; font-weight: 700; font-size: 15px; }
.settings { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.settings > div { min-width: 0; }
.settings label { margin-top: 8px; }
.export-tools { border-top: 1px solid var(--line); padding-top: 23px; margin-top: 24px; }
.export-tools .actions { margin-bottom: 0; }
aside { padding-top: 24px; }
.teaching-note h2 { font-size: 23px; }
.teaching-note ol { list-style: none; counter-reset: teaching; padding: 0; margin: 24px 0; }
.teaching-note li { position: relative; padding-left: 39px; margin-bottom: 22px; counter-increment: teaching; }
.teaching-note li::before { content: counter(teaching); position: absolute; top: 1px; left: 0; width: 25px; height: 25px; display: grid; place-items: center; border: 1px solid #aabdde; border-radius: 50%; color: var(--blue); font-size: 12px; }
.teaching-note strong, .teaching-note li span { display: block; }
.teaching-note strong { font-size: 14px; }
.teaching-note li span { font-size: 13px; color: var(--muted); line-height: 1.5; margin-top: 4px; }
.teaching-note > p { font-size: 12px; color: var(--muted); }
.offer { padding: 24px; background: #eaf0fb; border-radius: 8px; margin-top: 30px; }
.offer h3 { font-size: 19px; margin: 0 0 17px; }
.offer-name { color: var(--blue); font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.offer p, .offer li { font-size: 13px; line-height: 1.65; }
.offer ul { margin: 18px 0; padding-left: 18px; }
.offer li { padding-left: 2px; margin-bottom: 7px; }
.offer a { font-size: 12px; font-weight: 650; }
.save-note { font-size: 12px; color: var(--muted); padding: 22px 3px 0; }
.save-note strong { color: var(--ink); }
#status { border-left: 3px solid var(--blue); padding: 16px 20px; background: #eaf0fb; font-size: 14px; margin: 0 0 30px; }
#status[data-error] { border-left-color: #a35219; background: #fff1dd; color: #7b3c14; }
#preview:empty { display: none; }
#preview { border: 1px solid var(--line); padding: 30px; background: var(--paper); border-radius: 8px; }
#preview > h3 { margin-top: 0; }
#preview > p { max-width: 70ch; color: var(--muted); font-size: 13px; margin-top: 18px; }
.bingo-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); max-width: 650px; border-top: 1px solid #6e83ac; border-left: 1px solid #6e83ac; background: var(--paper); }
.bingo-grid div { display: flex; align-items: center; justify-content: center; min-height: 88px; padding: 8px; text-align: center; border-right: 1px solid #6e83ac; border-bottom: 1px solid #6e83ac; overflow-wrap: anywhere; font-size: 14px; }
.bingo-grid div:nth-child(13) { background: var(--yellow); font-weight: 700; }
.caller-preview { max-width: 900px; padding-left: 24px; margin-top: 25px; }
.caller-preview li { padding: 10px 0 10px 6px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; font-size: 14px; }
.billing { border: 1px solid var(--line); border-radius: 8px; padding: 30px; background: var(--paper); margin: 30px 0; }
.billing-offer { max-width: 800px; }
.billing p { max-width: 76ch; font-size: 14px; color: var(--muted); }
.billing [data-billing="price"] { font-size: 18px; color: var(--ink); }
.billing-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0; }
.billing label { line-height: 1.6; font-weight: 400; }
.billing label input { width: 17px; min-height: 17px; margin: 0 7px 0 0; vertical-align: -3px; accent-color: var(--blue); }
.billing details { border-top: 1px solid var(--line); padding: 17px 0; margin: 22px 0 0; }
.billing summary { cursor: pointer; font-weight: 650; color: var(--ink); }
.billing [data-billing="restore-key"] { max-width: 420px; margin: 0 10px 12px 0; }
.billing [data-billing="refresh"], .billing [data-billing="restore"] { background: var(--paper); color: var(--blue); border-color: #b5c6e5; }
.before-printing { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 30px; border-top: 1px solid var(--line); padding-top: 30px; margin-top: 44px; }
.before-printing h2 { font-size: 21px; }
.before-printing p { max-width: 80ch; color: var(--muted); font-size: 13px; }
footer { flex-wrap: wrap; font-size: 12px; border-top: 1px solid var(--line); margin-top: 40px; padding-block: 25px; }
footer a { color: var(--muted); }
.footer-brand { margin-right: auto; font-weight: 700; text-decoration: none; color: var(--ink); }
.legal { max-width: 850px; padding: 45px 36px 20px; margin: auto; }
.legal h1 { font-size: clamp(34px, 4.5vw, 48px); max-width: 20ch; line-height: 1.13; letter-spacing: -1.5px; }
.legal h2 { font-size: 25px; }
.legal h3 { margin-top: 27px; }
.legal p, .legal li { max-width: 78ch; }
.legal li { padding-left: 4px; margin: 9px 0; }
.legal section { padding-top: 30px; border-top: 1px solid var(--line); margin-top: 36px; }
.guide-intro { font-size: 19px; color: var(--muted); line-height: 1.7; margin-bottom: 23px; }
.guide .example-pair { background: var(--paper); border-left: 3px solid var(--blue); padding: 17px 20px; overflow-wrap: anywhere; }
.guide .example-pair code { background: transparent; padding: 0; line-height: 1.8; font-size: 13px; }
.guide .download-list { background: #eaf0fb; padding: 14px 20px 14px 39px; border-radius: 5px; }
@media (min-width: 1500px) { .hero { gap: 85px; } }
@media (max-width: 1000px) {
  header, footer { padding-inline: 28px; }
  main { padding-inline: 28px; }
  .hero { gap: 30px; padding-top: 35px; }
  h1 { font-size: 46px; letter-spacing: -1.7px; }
  .hero-copy .lead { font-size: 19px; }
  .sample-scene { padding: 20px 16px; }
  .student-sheet { padding-inline: 11px; }
  .sample-grid > span { font-size: 8px; min-height: 52px; }
  .sheet-heading { font-size: 14px; }
  .sheet-meta { font-size: 9px; }
  .caller-sheet { width: 96%; padding-inline: 12px; }
  .workspace { gap: 25px; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); }
  .offer { padding: 20px; }
  .example-downloads { gap: 20px; }
  #editor { padding: 24px; }
}
@media (max-width: 800px) {
  header nav { gap: 18px; }
  .hero { gap: 35px; grid-template-columns: 1fr; padding-top: 30px; }
  .hero-copy { max-width: 610px; }
  h1 { font-size: 54px; max-width: 18ch; }
  .hero-copy .lead { font-size: 22px; }
  .hero-copy > p { max-width: 54ch; }
  .sample-scene { width: 100%; max-width: 610px; margin: 0 auto; padding: 30px 35px; }
  .student-sheet { padding: 22px; }
  .sample-grid > span { font-size: 11px; min-height: 67px; padding: 7px 4px; }
  .sheet-heading { font-size: 19px; }
  .sheet-meta { font-size: 11px; }
  .sheet-foot { font-size: 10px; }
  .caller-sheet { width: 93%; padding: 19px 20px; }
  .caller-sheet .sheet-heading { font-size: 17px; }
  .caller-sheet dl { font-size: 12px; }
  .caller-sheet dl div { grid-template-columns: 52px 1fr; }
  .example-downloads { align-items: flex-start; flex-direction: column; }
  .example-links { justify-content: flex-start; max-width: none; }
  .workspace { grid-template-columns: minmax(0, 1fr); gap: 0; }
  aside { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding-top: 30px; }
  .offer { margin-top: 0; }
  .save-note { grid-column: 1 / -1; padding-top: 0; margin-bottom: 0; }
  .before-printing { grid-template-columns: 1fr; gap: 5px; }
}
@media (max-width: 500px) {
  header { padding: 21px 20px; gap: 13px; flex-wrap: wrap; }
  .brand { font-size: 17px; }
  .brand-mark { width: 23px; height: 23px; }
  header nav { width: 100%; gap: 23px; margin-top: 8px; font-size: 13px; }
  main { padding-inline: 20px; }
  .hero { padding: 22px 0 30px; gap: 30px; }
  h1 { font-size: 41px; letter-spacing: -1.8px; margin-bottom: 22px; }
  .hero-copy .lead { font-size: 19px; }
  .hero-copy > p { font-size: 14px; }
  .hero-actions { align-items: flex-start; gap: 15px; flex-direction: column; margin-top: 23px; }
  .sample-scene { padding: 19px 13px; border-radius: 15px 15px 15px 4px; }
  .student-sheet { padding: 15px 10px 10px; }
  .sheet-heading { font-size: 15px; gap: 6px; }
  .sheet-meta { font-size: 9px; }
  .sample-grid > span { font-size: 8px; min-height: 58px; padding: 5px 3px; }
  .sample-grid > .free-square { font-size: 10px; }
  .sheet-foot { font-size: 8px; }
  .caller-sheet { width: 96%; padding: 14px 11px; margin-top: 13px; }
  .caller-sheet .sheet-heading { font-size: 14px; }
  .caller-sheet dl { font-size: 10px; }
  .caller-sheet dl div { grid-template-columns: 37px 1fr; gap: 5px; }
  .page-tab { font-size: 9px; }
  .example-downloads { padding: 24px 0; gap: 15px; margin-bottom: 30px; }
  .example-links { gap: 7px; }
  .example-links a { font-size: 12px; padding: 8px 9px; }
  #editor { padding: 22px 17px; border-radius: 8px; }
  h2 { font-size: 25px; }
  .section-intro p { font-size: 13px; }
  textarea { font-size: 12px; min-height: 300px; }
  .settings { gap: 4px 12px; }
  .settings label { font-size: 12px; }
  .settings input, .settings select { font-size: 13px; padding-inline: 9px; }
  .export-tools > button { width: 100%; }
  .export-tools .actions { display: grid; grid-template-columns: 1fr; }
  aside { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 28px; }
  .teaching-note ol { margin-bottom: 18px; }
  .teaching-note li { margin-bottom: 19px; }
  .offer { padding: 23px; }
  #status { font-size: 13px; padding: 15px; }
  #preview, .billing { padding: 20px 16px; }
  .bingo-grid div { font-size: 10px; min-height: 70px; padding: 4px; }
  .caller-preview { padding-left: 19px; }
  .caller-preview li { font-size: 13px; }
  .billing-actions > button { width: 100%; }
  .billing [data-billing="price"] { font-size: 16px; }
  .billing p { font-size: 13px; }
  .before-printing { margin-top: 32px; }
  footer { padding-inline: 20px; gap: 15px 19px; }
  .footer-brand { width: 100%; }
  .legal { padding: 30px 20px; }
  .legal h1 { font-size: 36px; }
  .legal h2 { font-size: 24px; }
  .guide-intro { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
