:root {
  --canvas: #f5fbfa;
  --surface: #ffffff;
  --surface-cool: #ecf8f6;
  --ink: #132b3a;
  --muted: #58707d;
  --line: #d6e5e5;
  --teal: #087a70;
  --teal-dark: #07554f;
  --teal-soft: #dff4ef;
  --blue: #167eb5;
  --blue-soft: #e7f4fb;
  --coral: #d9674d;
  --coral-soft: #fff0ea;
  --gold: #b68119;
  --gold-soft: #fff6dc;
  --radius: 8px;
  --content: 1180px;
  --shadow: 0 16px 36px rgba(16, 65, 74, 0.12);
  --font-sans: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 82px; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--canvas);
  font-family: var(--font-sans);
  letter-spacing: 0;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 14px;
  color: #fff;
  background: var(--teal-dark);
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(19, 43, 58, 0.08);
  background: rgba(255, 255, 255, 0.95);
}
.site-header__inner {
  width: min(var(--content), calc(100% - 48px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 800; white-space: nowrap; }
.brand img { width: 36px; height: 36px; border-radius: 8px; }
.site-navigation { display: flex; align-items: center; gap: 4px; }
.site-navigation > a, .nav-download {
  min-height: 42px;
  padding: 11px 13px;
  border: 0;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
}
.site-navigation > a:hover, .site-navigation > a:focus-visible { color: var(--teal-dark); background: var(--surface-cool); outline: 0; }
.nav-download { margin-left: 8px; color: #fff; background: var(--teal); border-radius: 6px; }
.nav-download:hover, .nav-download:focus-visible { background: var(--teal-dark); outline: 0; }
.menu-toggle { display: none; min-height: 42px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); background: #fff; cursor: pointer; }

.hero {
  min-height: 660px;
  background-color: #edf9f7;
  background-image: url("assets/hero-background.jpg");
  background-position: center;
  background-size: cover;
}
.hero__inner {
  width: min(1280px, calc(100% - 48px));
  min-height: 660px;
  margin: 0 auto;
  padding: 80px 0 68px;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(580px, 1.2fr);
  align-items: center;
  gap: 44px;
}
.hero-copy { max-width: 540px; }
.eyebrow, .section-kicker {
  margin: 0 0 16px;
  color: var(--teal-dark);
  font-size: 14px;
  font-weight: 800;
}
.eyebrow { display: inline-flex; padding: 7px 10px; border: 1px solid #9dd7cc; border-radius: 6px; background: rgba(255, 255, 255, 0.78); }
h1, h2, h3, p { margin-top: 0; }
.hero h1 { max-width: 100%; margin-bottom: 18px; font-size: 60px; line-height: 1.06; font-weight: 900; }
.hero-copy__lead { max-width: 500px; margin-bottom: 28px; color: #355564; font-size: 21px; line-height: 1.7; font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button {
  min-height: 48px;
  padding: 13px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  line-height: 1.2;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}
.button:hover, .button:focus-visible { transform: translateY(-2px); outline: 0; }
.button--primary { color: #fff; background: var(--teal); box-shadow: 0 10px 18px rgba(8, 122, 112, 0.2); }
.button--primary:hover, .button--primary:focus-visible { background: var(--teal-dark); }
.button--secondary { color: var(--teal-dark); border-color: #87c9be; background: rgba(255, 255, 255, 0.78); }
.button--secondary:hover, .button--secondary:focus-visible { background: #fff; border-color: var(--teal); }
.button--dark { color: #fff; background: var(--ink); }
.button--dark:hover, .button--dark:focus-visible { background: #274958; }
.hero-copy__note { margin: 18px 0 0; color: #58717e; font-size: 13px; font-weight: 700; }
.hero-status { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 18px; padding: 8px 11px; border: 1px solid #a9ddd3; border-radius: 999px; color: var(--teal-dark); background: rgba(255,255,255,.72); font-size: 12px; font-weight: 800; box-shadow: 0 8px 20px rgba(8,122,112,.08); animation: status-breathe 4.8s ease-in-out infinite; }
.hero-status__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(8,122,112,.12); }
@keyframes status-breathe { 0%,100% { transform: translateY(0); box-shadow: 0 8px 20px rgba(8,122,112,.08); } 50% { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(8,122,112,.14); } }

.product-stage { min-width: 0; }
.product-stage { animation: product-float 7s ease-in-out infinite; }
.product-window { position: relative; overflow: hidden; border: 1px solid rgba(8, 122, 112, 0.24); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.product-window::after { position: absolute; inset: 0; border: 1px solid rgba(255,255,255,.68); border-radius: inherit; content: ""; pointer-events: none; opacity: .72; }
@keyframes product-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.window-topbar { min-height: 60px; padding: 0 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 14px; background: #fcffff; }
.window-brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font-size: 14px; font-weight: 800; }
.window-brand img { width: 28px; height: 28px; border-radius: 6px; }
.window-status { padding: 5px 8px; border-radius: 999px; color: var(--teal-dark); background: var(--teal-soft); font-size: 12px; font-weight: 800; }
.window-body { min-height: 380px; display: grid; grid-template-columns: 145px minmax(0, 1fr); }
.window-sidebar { padding: 18px 12px; border-right: 1px solid var(--line); background: #f8fcfb; display: flex; flex-direction: column; gap: 6px; }
.sidebar-item { position: relative; width: 100%; min-height: 40px; padding: 10px 11px 10px 16px; border: 0; color: #66808a; background: transparent; font: inherit; font-size: 13px; font-weight: 700; text-align: left; white-space: nowrap; cursor: pointer; transition: color 180ms ease, background-color 180ms ease; }
.sidebar-item::before { position: absolute; top: 9px; bottom: 9px; left: 5px; width: 3px; border-radius: 3px; background: transparent; content: ""; transition: background-color 180ms ease, transform 180ms ease; transform: scaleY(.35); }
.sidebar-item:hover { color: var(--ink); background: #eef7f5; }
.sidebar-item:focus-visible { outline: 2px solid var(--teal); outline-offset: 1px; }
.sidebar-item--active { border-radius: 5px; color: var(--teal-dark); background: var(--teal-soft); }
.sidebar-item--active::before { background: var(--teal); transform: scaleY(1); }
.workspace-preview { --preview-accent: var(--teal); --preview-ink: var(--teal-dark); --preview-soft: var(--teal-soft); min-height: 380px; padding: 28px; background: #fff; transition: opacity 320ms cubic-bezier(.4, 0, .2, 1), transform 320ms cubic-bezier(.4, 0, .2, 1); }
.workspace-preview[data-preview-theme="courseware"] { --preview-accent: #4f7fd8; --preview-ink: #28569f; --preview-soft: #eaf1fd; }
.workspace-preview[data-preview-theme="format"] { --preview-accent: #8b6fc4; --preview-ink: #6647a4; --preview-soft: #f1edfa; }
.workspace-preview[data-preview-theme="activities"] { --preview-accent: #d2644f; --preview-ink: #a84431; --preview-soft: var(--coral-soft); }
.workspace-preview[data-preview-theme="reading"] { --preview-accent: #2f83a3; --preview-ink: #16617d; --preview-soft: #e8f5f9; }
.workspace-preview[data-preview-theme="resources"] { --preview-accent: #688d45; --preview-ink: #476e27; --preview-soft: #eef6e7; }
.workspace-preview.is-switching { opacity: 0; transform: translateY(7px); }
.workspace-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.workspace-heading p { margin-bottom: 6px; color: var(--preview-ink); font-size: 12px; font-weight: 800; }
.workspace-heading strong { display: block; min-height: 54px; max-width: 420px; font-size: 22px; line-height: 1.25; }
.workspace-heading > span { flex: 0 0 auto; padding: 6px 9px; border-radius: 6px; color: var(--preview-ink); background: var(--preview-soft); font-size: 12px; font-weight: 800; }
.workspace-metrics { margin: 22px 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.workspace-metrics > div { min-height: 96px; padding: 15px; border: 1px solid var(--line); border-radius: 6px; background: #fbfefd; }
.workspace-metrics b, .workspace-metrics span { display: block; }
.workspace-metrics b { margin-bottom: 8px; font-size: 15px; }
.workspace-metrics span { color: var(--muted); font-size: 12px; line-height: 1.5; }
.workspace-task { min-height: 110px; padding: 18px; border-left: 4px solid var(--preview-accent); border-radius: 0 6px 6px 0; background: var(--preview-soft); transition: border-color 180ms ease, background-color 180ms ease; }
.workspace-task p { margin-bottom: 5px; color: var(--preview-ink); font-size: 12px; font-weight: 800; }
.workspace-task strong, .workspace-task span { display: block; }
.workspace-task strong { margin-bottom: 5px; font-size: 16px; }
.workspace-task span { color: var(--muted); font-size: 13px; line-height: 1.45; }

@media (prefers-reduced-motion: reduce) {
  .workspace-preview, .sidebar-item, .sidebar-item::before { transition: none; }
  .workspace-preview.is-switching { opacity: 1; transform: none; }
}

.signal-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.signal-strip__inner { width: min(var(--content), calc(100% - 48px)); min-height: 94px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.signal-strip p { margin: 0; color: var(--ink); font-weight: 800; }
.signal-points { display: flex; flex-wrap: wrap; gap: 10px; }
.signal-points span { padding: 8px 10px; border-radius: 999px; color: var(--muted); background: #f0f7f6; font-size: 13px; font-weight: 700; }

.section { width: min(var(--content), calc(100% - 48px)); margin: 0 auto; padding: 106px 0; }
.section-heading { max-width: 690px; }
.section h2 { margin-bottom: 16px; font-size: 38px; line-height: 1.2; font-weight: 900; }
.section-heading > p:last-child, .workflow-intro > p:last-child, .update-title-block > p:last-child { margin-bottom: 0; color: var(--muted); line-height: 1.75; }
.feature-grid { margin-top: 36px; display: grid; grid-template-columns: minmax(0, 1.18fr) repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(132px, auto)); grid-template-areas: "lead activity reading" "lead school board"; gap: 12px; }
.feature-card { --feature-accent: var(--teal); position: relative; min-height: 132px; padding: 20px 20px 18px; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: transform 260ms cubic-bezier(.2, .75, .25, 1), border-color 260ms ease, box-shadow 260ms ease; animation: feature-reveal 620ms both; }
.feature-card:nth-child(1) { grid-area: lead; }
.feature-card:nth-child(2) { grid-area: activity; animation-delay: 70ms; }
.feature-card:nth-child(3) { grid-area: reading; animation-delay: 140ms; }
.feature-card:nth-child(4) { grid-area: school; animation-delay: 210ms; }
.feature-card:nth-child(5) { grid-area: board; animation-delay: 280ms; }
.feature-card::before { content: ""; position: absolute; top: 0; left: 24px; width: 44px; height: 3px; background: var(--feature-accent); transition: width 260ms ease, opacity 260ms ease; }
.feature-card::after { content: ""; position: absolute; right: 24px; bottom: 24px; width: 42px; height: 1px; background: var(--feature-accent); opacity: .25; transform: scaleX(.45); transform-origin: right; transition: transform 260ms ease, opacity 260ms ease; }
.feature-card:hover, .feature-card:focus-within { transform: translateY(-6px); border-color: var(--feature-accent); box-shadow: 0 18px 34px rgba(18, 65, 74, 0.12); }
.feature-card:hover::before, .feature-card:focus-within::before { width: 78px; }
.feature-card:hover::after, .feature-card:focus-within::after { opacity: .7; transform: scaleX(1); }
.feature-card--lead { min-height: 276px; padding: 24px 24px 22px; background: #fbfefd; }
.feature-card--lead h3 { font-size: 25px; }
.feature-card--lead p { max-width: 31em; font-size: 14px; }
.feature-card--wide { grid-area: board; }
.feature-index { display: inline-flex; min-height: 20px; align-items: center; gap: 8px; color: var(--feature-accent); font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace; font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; }
.feature-index::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: 0.48; }
.feature-index::after { content: "/ 05"; color: #8ba0a7; font-family: var(--font-sans); font-size: 11px; font-weight: 700; }
.feature-card h3 { margin: 22px 0 8px; font-size: 18px; line-height: 1.2; }
.feature-card p { min-width: 0; margin-bottom: 0; overflow: hidden; color: var(--muted); font-size: 13px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.feature-card--wide { display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: center; gap: 10px; }
.feature-card--wide .feature-index, .feature-card--wide h3, .feature-card--wide p { margin-top: 0; margin-bottom: 0; }
.feature-card--wide h3 { white-space: nowrap; }
.feature-card--teal { --feature-accent: var(--teal-dark); }
.feature-card--blue { --feature-accent: var(--blue); }
.feature-card--coral { --feature-accent: #c65540; }
.feature-card--gold { --feature-accent: #9a7018; }
@keyframes feature-reveal { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

.stroke-showcase {
  margin-top: 16px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 0.86fr);
  align-items: center;
  gap: 42px;
  animation: content-rise 700ms 180ms both;
}
.stroke-showcase h3 { margin: 0 0 13px; font-size: 27px; line-height: 1.28; }
.stroke-showcase__copy > p:not(.section-kicker) { max-width: 540px; margin-bottom: 20px; color: var(--muted); line-height: 1.75; }
.stroke-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.stroke-tags span { padding: 7px 9px; border-radius: 999px; color: var(--teal-dark); background: var(--teal-soft); font-size: 12px; font-weight: 800; }
.stroke-demo { overflow: hidden; border: 1px solid #b9dad4; border-radius: 7px; background: #fcffff; }
.stroke-demo__bar { min-height: 46px; padding: 0 15px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid #d8ebe7; color: var(--teal-dark); background: #f3fbf9; font-size: 13px; font-weight: 800; }
.stroke-demo__bar b { color: var(--muted); font-size: 12px; }
.stroke-demo__body { min-height: 164px; padding: 18px; display: flex; align-items: center; gap: 24px; }
.stroke-character { position: relative; width: 126px; height: 126px; flex: 0 0 126px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #b7dce6; color: var(--teal-dark); background: #fff; font-family: "KaiTi", "STKaiti", serif; font-size: 94px; line-height: 1; }
.stroke-character::before, .stroke-character::after { content: ""; position: absolute; z-index: 0; background: #d6edf1; }
.stroke-character::before { top: 50%; right: 0; left: 0; height: 1px; }
.stroke-character::after { top: 0; bottom: 0; left: 50%; width: 1px; }
.stroke-character > span { position: relative; z-index: 1; }
.stroke-demo__caption { color: var(--ink); font-size: 17px; font-weight: 800; }
.stroke-demo__caption::before { content: "笔画演示"; display: block; margin-bottom: 8px; color: var(--muted); font-size: 12px; font-weight: 700; }
.stroke-demo__controls { padding: 12px 15px; border-top: 1px solid #d8ebe7; display: flex; gap: 8px; }
.stroke-demo__controls span { min-height: 32px; padding: 8px 11px; border-radius: 5px; color: #fff; background: var(--teal); font-size: 12px; font-weight: 800; }
.stroke-demo__controls span + span { color: var(--teal-dark); border: 1px solid #8acabe; background: #fff; }

.workflow { width: auto; padding: 100px max(24px, calc((100% - var(--content)) / 2)); background: #eaf7f4; }
.workflow-intro { max-width: 620px; }
.updates { display: grid; grid-template-columns: minmax(0, 0.86fr) minmax(420px, 1.14fr); gap: 80px; align-items: start; }
.update-viewport { position: relative; height: 274px; max-height: 274px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.62); box-shadow: 0 12px 28px rgba(16,65,74,.08); }
.update-viewport::before, .update-viewport::after { position: absolute; z-index: 2; right: 0; left: 0; height: 18px; content: ""; pointer-events: none; }
.update-viewport::before { top: 0; background: rgba(245,251,250,.96); border-bottom: 1px solid rgba(214,229,229,.5); }
.update-viewport::after { bottom: 0; background: rgba(245,251,250,.96); border-top: 1px solid rgba(214,229,229,.5); }
.update-viewport:focus-visible { outline: 2px solid var(--teal); outline-offset: 5px; }
.update-track { --update-scroll-speed: 22; display: flex; flex-direction: column; visibility: hidden; will-change: transform; transform: translate3d(0, 0, 0); }
.update-track.is-ready { visibility: visible; }
.update-track.is-paused { will-change: auto; }
.update-list { flex: 0 0 auto; width: 100%; padding: 0 16px; }
.update-list article { min-height: 48px; padding: 8px 0; display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 10px; align-items: center; border-bottom: 1px solid var(--line); transition: background-color 180ms ease, padding-left 180ms ease; }
.update-list article:hover { background: rgba(223,244,239,.42); }
.update-list article:hover { padding-left: 8px; }
.update-list time { color: var(--teal); font-size: 11px; font-weight: 900; white-space: nowrap; }
.update-list article > div { min-width: 0; display: flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.update-list h3 { min-width: 0; max-width: 9em; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; line-height: 1.2; }
.update-list p { min-width: 0; flex: 1 1 auto; margin: 0; overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; font-size: 11px; line-height: 1.25; }
@keyframes content-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

.access-band { padding: 68px max(24px, calc((100% - var(--content)) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 32px; color: #fff; background: var(--teal-dark); }
.access-band .section-kicker { color: #a8e1d7; }
.access-band h2 { max-width: 600px; margin: 0; font-size: 35px; line-height: 1.25; }
.access-band__actions { min-width: 210px; }
.access-band .button--dark { color: var(--teal-dark); background: #fff; }
.access-band .button--dark:hover, .access-band .button--dark:focus-visible { background: #ecfff9; }
.access-band__actions p { margin: 10px 0 0; color: #bbded8; font-size: 13px; }

.site-footer { color: #d9eeee; background: #112d38; }
.site-footer__inner { width: min(var(--content), calc(100% - 48px)); min-height: 112px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-footer strong, .site-footer span { display: block; }
.site-footer strong { margin-bottom: 8px; color: #fff; font-size: 15px; }
.site-footer span, .footer-links a { color: #aac8c5; font-size: 13px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 16px; }
.footer-links a:hover, .footer-links a:focus-visible { color: #fff; outline: 0; }

.download-dialog { width: min(520px, calc(100% - 32px)); padding: 34px; border: 0; border-radius: var(--radius); color: var(--ink); box-shadow: 0 20px 60px rgba(12, 45, 50, 0.28); }
.download-dialog::backdrop { background: rgba(10, 42, 49, 0.42); }
.download-dialog h2 { margin-bottom: 14px; font-size: 27px; line-height: 1.25; }
.download-release { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 18px; margin: 22px 0 14px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.download-release__version { margin: 0 0 5px; font-size: 17px; font-weight: 800; }
.download-release__meta, .download-release__note { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.download-release__note { margin: 0 0 22px; }
.download-release__link { min-width: 132px; justify-content: center; }
.download-picker { position: relative; display: inline-flex; min-width: 178px; }
.download-picker > .download-release__link { width: 100%; }
.download-options { position: absolute; z-index: 3; top: calc(100% - 1px); right: 0; min-width: 178px; padding: 6px; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 14px 30px rgba(12, 45, 50, 0.16); opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease; }
.download-picker:hover .download-options, .download-picker:focus-within .download-options { opacity: 1; visibility: visible; transform: translateY(0); }
.download-option { display: block; padding: 9px 11px; border-radius: 5px; color: var(--ink); font-size: 13px; line-height: 1.35; white-space: nowrap; }
.download-option:hover, .download-option:focus-visible { color: var(--teal-dark); background: #edf8f6; outline: 0; }
.download-release__recommendation { margin: -3px 0 22px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.icon-button { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); background: #fff; cursor: pointer; font-weight: 800; }
.icon-button:hover, .icon-button:focus-visible { color: var(--teal-dark); border-color: var(--teal); outline: 0; }

@media (max-width: 1040px) {
  .hero__inner { grid-template-columns: minmax(0, 0.86fr) minmax(390px, 1.14fr); gap: 34px; }
  .hero h1 { font-size: 50px; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(126px, auto)); grid-template-areas: "lead lead" "activity reading" "school board"; }
  .feature-card--lead { min-height: 224px; }
  .stroke-showcase { grid-template-columns: minmax(0, 0.92fr) minmax(340px, 1.08fr); gap: 26px; }
  .updates { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 48px; }
}

@media (max-width: 780px) {
  .site-header__inner, .hero__inner, .signal-strip__inner, .section, .site-footer__inner { width: min(100% - 32px, var(--content)); }
  .site-header__inner { min-height: 64px; }
  .brand { font-size: 16px; }
  .brand img { width: 32px; height: 32px; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-navigation { position: absolute; top: calc(100% + 1px); right: 0; left: 0; padding: 10px 16px 16px; border-bottom: 1px solid var(--line); background: #fff; display: none; flex-direction: column; align-items: stretch; }
  .site-navigation.is-open { display: flex; }
  .site-navigation > a, .nav-download { width: 100%; text-align: left; }
  .nav-download { margin-left: 0; text-align: center; }
  .hero { min-height: 0; }
  .hero__inner { min-height: 0; padding: 56px 0 54px; grid-template-columns: 1fr; gap: 38px; }
  .hero-copy { max-width: 590px; }
  .hero h1 { font-size: 42px; }
  .hero-copy__lead { font-size: 18px; }
  .product-stage { width: min(100%, 590px); }
  .window-topbar { min-height: 54px; padding: 0 18px; }
  .window-brand { font-size: 13px; }
  .window-brand img { width: 25px; height: 25px; }
  .window-body { min-height: 316px; grid-template-columns: 106px minmax(0, 1fr); }
  .window-sidebar { padding: 12px 7px; }
  .sidebar-item { padding: 8px 7px; font-size: 11px; }
  .workspace-preview { padding: 18px; }
  .workspace-metrics { gap: 7px; }
  .workspace-metrics > div { min-height: 74px; padding: 10px; }
  .workspace-metrics b { font-size: 14px; }
  .workspace-metrics span { font-size: 11px; }
  .workspace-task strong { font-size: 15px; }
  .workspace-task span { font-size: 12px; }
  .signal-strip__inner { min-height: 112px; padding: 20px 0; align-items: flex-start; flex-direction: column; gap: 12px; }
  .section { padding: 74px 0; }
  .section h2 { font-size: 31px; }
  .stroke-showcase { grid-template-columns: 1fr; }
  .workflow { padding: 74px 16px; }
  .updates { display: block; }
  .update-viewport { height: 246px; max-height: 246px; margin-top: 35px; }
  .access-band { padding: 54px 16px; display: block; }
  .access-band h2 { font-size: 29px; }
  .access-band__actions { margin-top: 22px; }
  .site-footer__inner { min-height: 138px; padding: 26px 0; align-items: flex-start; flex-direction: column; gap: 18px; }
  .footer-links { justify-content: flex-start; }
}

@media (max-width: 520px) {
  .hero__inner, .section { width: min(100% - 28px, var(--content)); }
  .site-header__inner, .signal-strip__inner, .site-footer__inner { width: min(100% - 28px, var(--content)); }
  .brand span { font-size: 15px; }
  .hero h1 { font-size: 37px; }
  .hero-actions, .dialog-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button, .dialog-actions .button { width: 100%; }
  .window-body { grid-template-columns: 88px minmax(0, 1fr); }
  .sidebar-item { overflow: hidden; padding: 8px 5px; text-overflow: ellipsis; }
  .workspace-preview { padding: 14px; }
  .workspace-heading { display: flex; align-items: stretch; flex-direction: column; gap: 0; }
  .workspace-heading > span { align-self: flex-start; order: -1; margin-bottom: 8px; padding: 4px 7px; }
  .workspace-heading strong { min-height: 44px; max-width: none; font-size: 16px; }
  .workspace-metrics { grid-template-columns: 1fr; margin: 14px 0; }
  .workspace-metrics > div { min-height: 58px; display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: center; gap: 8px; }
  .workspace-metrics b { margin: 0; }
  .workspace-task { min-height: 108px; padding: 13px; }
  .feature-grid { grid-template-columns: 1fr; grid-template-rows: none; grid-template-areas: "lead" "activity" "reading" "school" "board"; }
  .feature-card { min-height: 128px; }
  .feature-card--lead { min-height: 216px; }
  .feature-card h3 { margin-top: 20px; }
  .stroke-showcase { padding: 22px; }
  .stroke-showcase h3 { font-size: 23px; }
  .stroke-demo__body { min-height: 142px; gap: 15px; }
  .stroke-character { width: 104px; height: 104px; flex-basis: 104px; font-size: 76px; }
  .stroke-demo__bar { align-items: flex-start; padding: 11px 13px; flex-direction: column; gap: 3px; }
  .update-track { --update-scroll-speed: 18; }
  .update-list article { grid-template-columns: 76px minmax(0, 1fr); gap: 8px; }
  .download-dialog { padding: 30px 24px 24px; }
  .download-release { align-items: stretch; grid-template-columns: 1fr; gap: 14px; }
  .download-release__link { width: 100%; }
  .download-picker { width: 100%; }
  .download-options { right: 0; left: 0; min-width: 0; }
  .download-option { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; animation-iteration-count: 1 !important; }
  .update-track { --update-scroll-speed: 12; }
}
