/* GudMem for Schools (pages/schools.en.html, pages/schools.js).
   Follows SHARED_DESIGN_SYSTEM.md: Oswald display, IBM Plex Mono labels,
   Source Sans 3 body, warm paper, purple 600, ink panels, device frame. */
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 200 700; font-display: swap; src: url("fonts/oswald-latin-wght-normal.woff2") format("woff2-variations"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 200 900; font-display: swap; src: url("fonts/source-sans-3-latin-wght-normal.woff2") format("woff2-variations"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }

body { background: #fff; }
main.bleed { max-width: none; padding: 0; }
.sx {
  --p600: #7b3fe4; --p400: #9b6bff; --p200: #c9a9f5; --tint: #f4effe; --tint2: #f7f4fd;
  --sx-ink: #1b1430; --bezel: #0b0a12; --paper2: #faf8f5; --border: #ece7df;
  --t-ink: #1a1714; --t-2: #5a544c; --t-3: #6b655d; --mint: #5bd39a; --ok: #1f7a52;
  --display: "Oswald", "Arial Narrow", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  font-family: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--t-ink); font-size: 18px; line-height: 1.55; text-align: center;
}
.sx h1, .sx h2, .sx h3 { font-family: var(--display); color: var(--t-ink); font-weight: 600; letter-spacing: 0; text-wrap: balance; margin: 0; }
.sx h1 { font-size: clamp(38px, 5.6vw, 68px); line-height: 1.05; max-width: 19ch; margin: 0 auto; }
.sx h2 { font-size: clamp(30px, 4.2vw, 46px); line-height: 1.1; }
.sx h3 { font-size: 22px; line-height: 1.2; font-weight: 500; }
.sx p { margin: 0; }
.sx [hidden] { display: none !important; }
.sx a { color: var(--p600); }
.sx-eyebrow { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--p600); margin: 0 0 16px !important; }
.sx-lede { font-size: clamp(18px, 1.7vw, 21px); color: var(--t-2); max-width: 56ch; margin: 20px auto 0 !important; }
.sx-mono, .sx figcaption { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--t-3); }
.sx-fine { font-size: 15px; color: var(--t-3); margin-top: 22px !important; }
.sx-fine a { color: inherit; }
.sx-btn {
  display: inline-block; font-family: var(--display); font-weight: 500; font-size: 18px; letter-spacing: 0.01em;
  background: var(--p600); color: #fff !important; text-decoration: none; border: 1px solid var(--p600); border-radius: 99px;
  padding: 12px 26px; cursor: pointer; box-shadow: 0 8px 20px rgba(123, 63, 228, 0.28); transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.sx-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(123, 63, 228, 0.36); }
.sx-btn:disabled { opacity: 0.6; cursor: default; transform: none; }
.sx-btn.sx-ghost { background: #fff; color: var(--p600) !important; border-color: var(--p200); box-shadow: none; }
.sx-btn:focus-visible, .sx-curs button:focus-visible, .sch-opts button:focus-visible, .sx-faq summary:focus-visible { outline: 3px solid var(--p400); outline-offset: 2px; }

/* Hero: text left, product right. The whole composition is sized to the
   viewport height (--fit, set by schools.js) so nothing is cut off on the
   first screen, whatever the window size. */
.sx-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: clamp(24px, 4vw, 64px); max-width: 1240px; margin: 0 auto; padding: clamp(20px, 3.4vh, 44px) 32px clamp(24px, 4vh, 48px); text-align: left; }
.sx-hero-bg { background: radial-gradient(900px 480px at 78% 0, var(--tint) 0%, #fff 72%); }
.sx-hero h1 { margin: 0; font-size: clamp(34px, min(4.7vw, 9.2vh), 66px); max-width: 13ch; }
:lang(de) .sx-hero h1 { max-width: 20ch; font-size: clamp(32px, min(4.1vw, 8.6vh), 58px); }
:lang(fr) .sx-hero h1 { max-width: 14ch; }
.sx-hero .sx-lede { margin: clamp(12px, 2.2vh, 22px) 0 0 !important; max-width: 46ch; font-size: clamp(16px, min(1.5vw, 3.2vh), 20px); }
.sx-hero .sx-eyebrow { margin-bottom: clamp(8px, 1.6vh, 16px) !important; }
.sx-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: clamp(16px, 3vh, 30px) 0 clamp(10px, 1.8vh, 18px); }
.sx-comp-wrap { --fit: 1; }
.sx-comp-box { width: calc(600px * var(--fit)); height: calc(540px * var(--fit)); }
.sx-comp { position: relative; width: 600px; height: 540px; transform-origin: top left; transform: scale(var(--fit)); }
.sx-comp > * { position: absolute; }
.sx-dash { left: 0; top: 96px; width: 440px; height: auto; border-radius: 14px; border: 1px solid var(--border); box-shadow: 0 22px 50px rgba(26, 20, 40, 0.16); background: #fff; }
.sx-phone { left: 320px; top: 0; width: 280px; height: 540px; background: var(--paper2); border: 10px solid var(--bezel); border-radius: 46px; box-shadow: 0 22px 50px rgba(26, 20, 40, 0.24); overflow: hidden; text-align: center; scroll-margin-top: 16px; }
.sx-comp-wrap .sx-fine { margin-top: 10px !important; font-size: 13px; max-width: calc(600px * var(--fit)); text-align: right; }
.sx-notch { position: absolute; top: 9px; left: 50%; width: 86px; height: 24px; margin-left: -43px; border-radius: 99px; background: var(--bezel); }
.sx-phone .sch-demo-body { height: 100%; padding: 44px 16px 14px; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.sx-phone h2 { font-size: 28px; }
.sx-phone p { font-size: 16px; color: var(--t-2); margin-top: 10px; }
.sx-phone [tabindex="-1"]:focus { outline: none; }
.sx-phone .sx-btn { margin-top: 20px; }
.sch-teaser { display: flex; justify-content: center; margin-top: 22px; padding-right: 12px; }
.sch-teaser img { width: 46px; height: 46px; border-radius: 50%; border: 3px solid var(--paper2); margin-right: -12px; }
.sch-study { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 14px; width: 100%; margin: 12px 0 0; }
.sch-study figure { margin: 0; }
.sch-study img { display: block; width: 76px; height: 76px; margin: 0 auto 4px; border-radius: 50%; object-fit: cover; }
.sch-study figcaption { font-family: var(--display) !important; font-size: 17px !important; font-weight: 500; letter-spacing: 0 !important; text-transform: none !important; color: var(--t-ink) !important; margin: 0 !important; }
.sch-prog { font-family: var(--mono); font-size: 11px !important; letter-spacing: 0.14em; text-transform: uppercase; color: var(--t-3) !important; margin: 0 !important; }
.sch-face { display: block; width: 132px; height: 132px; border-radius: 50%; object-fit: cover; margin: 12px auto 10px; border: 5px solid #fff; box-shadow: 0 10px 26px rgba(26, 20, 40, 0.14); }
.sch-q { font-family: var(--display); font-size: 24px !important; font-weight: 600; color: var(--t-ink) !important; margin: 0 0 12px !important; line-height: 1.15; }
.sch-opts { display: grid; gap: 8px; width: 100%; }
.sch-opts button { font-family: inherit; font-size: 16px; font-weight: 600; text-align: left; padding: 10px 14px; border-radius: 14px; border: 1.5px solid var(--border); background: #fff; color: var(--t-2); cursor: pointer; }
.sch-opts button:hover:not(:disabled) { border-color: var(--p200); }
.sch-opts button.ok { background: #eaf6ef; border-color: #2e9e6b; color: var(--ok); }
.sch-opts button.no { background: #fbeceb; border-color: #d8473f; color: #b3261e; }
.sch-opts button.ok::after { content: "✓"; float: right; }
.sch-opts button.no::after { content: "✕"; float: right; }
.sch-msg { min-height: 2.8em; font-size: 13px !important; margin-top: 6px !important; line-height: 1.35; }
.sch-done-btns { display: flex; flex-direction: column; gap: 10px; align-items: center; }

/* Trust strip */
.sx-trust { list-style: none; margin: 0; padding: 28px 24px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 34px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); font-family: var(--mono); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--t-2); }
.sx-trust li { margin: 0; display: flex; align-items: center; gap: 9px; }
.sx-trust li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #2e9e6b; }

/* Sections */
.sx-sec, .sx-in { max-width: 1080px; margin: 0 auto; }
.sx-sec { padding: clamp(64px, 8vw, 104px) 24px; }
.sx-band { background: var(--paper2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: clamp(64px, 8vw, 104px) 24px; }
.sx-narrow { max-width: 800px; }

.sx-steps { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; text-align: left; }
.sx-steps li { margin: 0; background: #fff; border: 1px solid var(--border); border-radius: 20px; overflow: hidden; box-shadow: 0 1px 2px rgba(26, 20, 40, 0.04); }
.sx-steps img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; object-position: left top; background: var(--tint2); border-bottom: 1px solid var(--border); }
.sx-steps img.sx-step-phone { object-position: center top; }
.sx-steps li > div { padding: 22px 24px 26px; }
.sx-num { display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center; border-radius: 9px; background: var(--tint); border: 1px solid var(--p200); color: var(--p600); font-family: var(--mono); font-weight: 500; font-size: 14px; margin-bottom: 12px; }
.sx-steps p { color: var(--t-2); font-size: 17px; margin-top: 6px; }

/* Pricing */
.sx-curs { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin: 30px 0 0; padding: 4px; background: #fff; border: 1px solid var(--border); border-radius: 99px; }
.sx-curs button { font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: 0.08em; color: var(--t-2); background: none; border: none; border-radius: 99px; padding: 8px 14px; min-height: 40px; cursor: pointer; }
.sx-curs button[aria-pressed="true"] { background: var(--sx-ink); color: #fff; }
.sx-tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 30px 0 0; }
.sx-tier { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 32px 26px 28px; box-shadow: 0 1px 2px rgba(26, 20, 40, 0.04); }
.sx-tier h3 { font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--t-2); }
.sx-amount { font-family: var(--display); font-weight: 600; font-size: clamp(44px, 5vw, 58px); line-height: 1; color: var(--t-ink); margin: 18px 0 0 !important; white-space: nowrap; }
.sx-code { font-size: 0.36em; font-weight: 500; color: var(--t-3); letter-spacing: 0.04em; vertical-align: baseline; margin-right: 4px; }
.sx-per { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--t-3); margin: 10px 0 24px !important; }
.sx-tier .sx-btn { display: block; }
.sx-terms { list-style: none; padding: 26px 30px; margin: 20px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 40px; text-align: left; font-size: 16px; color: var(--t-2); background: #fff; border: 1px solid var(--border); border-radius: 20px; }
.sx-terms li { margin: 0; padding-left: 26px; position: relative; }
.sx-terms li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 12px; height: 7px; border-left: 2px solid #2e9e6b; border-bottom: 2px solid #2e9e6b; transform: rotate(-45deg); }

/* Privacy */
.sx-dark { background: var(--sx-ink); padding: clamp(64px, 8vw, 104px) 24px; }
.sx-dark h2, .sx-dark h3 { color: #fff; }
.sx-dark .sx-eyebrow { color: var(--mint); }
.sx-dark .sx-lede { color: #c5badf; }
.sx-facts { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; text-align: left; }
.sx-facts li { margin: 0; padding: 28px; border: 1px solid rgba(255, 255, 255, 0.13); border-radius: 18px; background: rgba(255, 255, 255, 0.05); }
.sx-facts h3 { font-size: 20px; padding-left: 26px; position: relative; }
.sx-facts h3::before { content: ""; position: absolute; left: 1px; top: 8px; width: 13px; height: 7px; border-left: 2px solid var(--mint); border-bottom: 2px solid var(--mint); transform: rotate(-45deg); }
.sx-facts p { color: #c5badf; font-size: 16px; margin-top: 10px; }
.sx-dark .sx-fine { color: #b3a6d6; }

/* FAQ */
.sx-faq { margin-top: 40px; text-align: left; border-top: 1px solid var(--border); }
.sx-faq details { border-bottom: 1px solid var(--border); }
.sx-faq summary { list-style: none; cursor: pointer; font-family: var(--display); font-size: 21px; font-weight: 500; color: var(--t-ink); padding: 20px 44px 20px 0; position: relative; }
.sx-faq summary::-webkit-details-marker { display: none; }
.sx-faq summary::before, .sx-faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 16px; height: 2px; margin-top: -1px; background: var(--p600); border-radius: 2px; }
.sx-faq summary::after { transform: rotate(90deg); transition: transform 0.15s ease; }
.sx-faq details[open] summary::after { transform: rotate(0deg); }
.sx-faq details p { color: var(--t-2); font-size: 17px; padding: 0 44px 22px 0; }

/* Quote form */
.sx-quote { background: linear-gradient(180deg, var(--tint2), var(--tint)); }
.sx-quote-card { max-width: 820px; margin: 0 auto; background: #fff; border: 1px solid var(--border); border-radius: 24px; padding: clamp(28px, 5vw, 52px); box-shadow: 0 22px 50px rgba(26, 20, 40, 0.1); }
.sch-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 18px; margin-top: 30px; text-align: left; }
.sch-form label { display: block; font-size: 15px; font-weight: 600; color: var(--t-2); }
.sch-form input, .sch-form select, .sch-form textarea { display: block; width: 100%; margin-top: 7px; font: inherit; font-family: "Source Sans 3", sans-serif; font-size: 17px; letter-spacing: 0; text-transform: none; padding: 11px 14px; border: 1.5px solid var(--border); border-radius: 12px; background: #fff; color: var(--t-ink); }
.sch-form input:focus, .sch-form select:focus { outline: 2px solid var(--p600); outline-offset: 1px; border-color: var(--p600); }
.sch-form .sch-wide { grid-column: span 2; }
.sch-form > .sx-btn { grid-column: 1 / -1; justify-self: center; margin-top: 8px; }
.sch-form > .sx-fine, #setup-after, .sch-sent { grid-column: 1 / -1; text-align: center; margin-top: 0 !important; }
.sch-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sch-sent { font-family: var(--display); font-size: 24px; font-weight: 500; color: var(--ok); }
.sch-sent:focus { outline: none; }
#setup-after textarea { font-family: var(--mono); font-size: 14px; margin-bottom: 14px; }

footer.site { max-width: none; text-align: center; padding: 44px 24px 52px; background: #faf8f5; border-top: 1px solid #ece7df; font-size: 15px; }

@media (max-width: 900px) {
  .sx-curs { border-radius: 18px; }
  .sx-curs button { min-height: 44px; }
  .sx-terms { padding: 22px; }
  .sx-steps, .sx-tiers, .sx-facts, .sx-terms { grid-template-columns: 1fr; }
  .sx-steps, .sx-tiers { max-width: 460px; margin-left: auto; margin-right: auto; }
  .sch-form { grid-template-columns: 1fr; }
  .sch-form .sch-wide { grid-column: auto; }
  .sx-faq summary { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) { .sx-faq summary::after { transition: none; } .sx-btn { transition: none; } .sx-btn:hover { transform: none; } }
/* Narrow windows and tablets: text beside the phone, without the dashboard. */
@media (max-width: 900px) and (min-width: 641px) {
  .sx-hero { padding-left: 24px; padding-right: 24px; gap: 24px; }
  .sx-hero h1 { font-size: clamp(30px, min(5.2vw, 8vh), 44px); }
  .sx-dash { display: none; }
  .sx-comp-box { width: calc(280px * var(--fit)); }
  .sx-comp { width: 280px; }
  .sx-phone { left: 0; }
  .sx-comp-wrap .sx-fine { max-width: calc(280px * var(--fit)); text-align: center; font-size: 12px; }
}
/* Phones: stacked. */
@media (max-width: 640px) {
  .sx-hero { grid-template-columns: 1fr; text-align: center; padding: 36px 20px 40px; }
  .sx-hero h1 { margin: 0 auto; font-size: clamp(34px, 9vw, 52px); max-width: 14ch; }
  .sx-hero .sx-lede { margin-left: auto !important; margin-right: auto !important; font-size: 18px; }
  .sx-actions { justify-content: center; }
  .sx-comp-wrap { --fit: 1 !important; margin-top: 12px; }
  .sx-comp-box { width: 280px; height: 540px; margin: 0 auto; }
  .sx-comp { width: 280px; transform: none; }
  .sx-dash { display: none; }
  .sx-phone { left: 0; }
  .sx-comp-wrap .sx-fine { text-align: center; max-width: none; }
}
