:root {
  color-scheme: light;
  font-family: Inter, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --surface: #f6f7f9;
  --ink: #182230;
  --brand: #2563eb;
  --border: #e2e6ec;
  --muted: #526075;
  color: var(--ink);
  background: var(--surface);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100svh; display: flex; flex-direction: column; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
svg { display: block; width: 24px; height: 24px; }
:where(a, button, input, [tabindex]):focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.container { width: min(1152px, calc(100% - 64px)); margin-inline: auto; }
.site-header { background: #fff; border-bottom: 1px solid var(--border); }
.header-inner { display: flex; min-height: 72px; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; }
.app-mark { display: grid; width: 36px; height: 36px; place-items: center; background: var(--brand); border-radius: 10px; }
.app-mark svg { width: 30px; height: 30px; }
nav { display: flex; align-items: center; gap: 8px; }
.nav-link { display: inline-flex; min-height: 44px; align-items: center; gap: 6px; padding: 8px 12px; color: var(--muted); font-size: 14px; border-radius: 8px; }
.nav-link.active { color: #1d4ed8; background: #eff4ff; font-weight: 600; }
main { flex: 1; }
.hero { padding: 62px 0 36px; }
.eyebrow { margin: 0 0 17px; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .12em; }
h1 { margin: 0; font-size: clamp(32px, 4vw, 48px); font-weight: 650; letter-spacing: -.025em; line-height: 1.3; }
h1 span { color: var(--brand); }
.hero-copy { margin: 20px 0 0; color: var(--muted); font-size: 17px; line-height: 1.9; }
.workspace { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }
.card { border: 1px solid var(--border); border-radius: 16px; background: #fff; padding: 30px; }
.online-card { border-color: #bfd2fc; }
.card-heading { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.badge { display: grid; flex-shrink: 0; width: 44px; height: 44px; place-items: center; border-radius: 10px; color: #1d4ed8; background: #eff4ff; }
h2 { margin: 0; font-size: 21px; font-weight: 650; }
.card-heading p { margin: 3px 0 0; font-size: 13px; color: var(--muted); }
label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 9px; }
input { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid #cbd5e1; border-radius: 8px; background: #fff; color: var(--ink); font-size: 14px; }
input::placeholder { color: #667085; }
input[aria-invalid='true'] { border-color: #b42318; }
.hint { margin: 9px 0 20px; color: var(--muted); font-size: 12px; }
.button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 14px; padding: 11px 20px; border-radius: 8px; border: 1px solid #cbd5e1; font-size: 14px; font-weight: 600; transition: background-color 180ms ease; }
.primary { justify-content: space-between; width: 100%; background: var(--brand); border-color: var(--brand); color: #fff; }
.primary:hover { background: #1d4ed8; }
.primary:disabled { cursor: wait; opacity: .7; }
.button-arrow { font-size: 19px; line-height: 1; }
.secondary { color: #1d4ed8; background: #fff; }
.secondary:hover, .nav-link:hover { background: #eff4ff; }
.feedback { margin: 12px 0 0; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.feedback:empty { display: none; }
.feedback.error { color: #b42318; }
.card-foot { margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--border); color: var(--muted); font-size: 12px; display: flex; align-items: center; gap: 8px; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: #167258; }
.local-card { display: flex; flex-direction: column; align-items: flex-start; }
.local-card h2 { margin-top: 20px; }
.local-card > p { color: var(--muted); margin: 12px 0 24px; font-size: 14px; line-height: 1.85; max-width: 29ch; }
.local-card .button { margin-top: auto; width: 100%; justify-content: space-between; }
.local-card .local-note { font-size: 12px; margin: 14px 0 0; }
.reading-note { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 34px 0 48px; }
.reading-note > div { border-left: 2px solid var(--border); padding-left: 16px; }
h3 { font-size: 13px; font-weight: 600; margin: 0 0 5px; }
.reading-note p { font-size: 12px; color: var(--muted); margin: 0; }
.reading-note a { text-decoration: underline; text-underline-offset: 3px; }
.footer { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--border); padding-block: 22px; color: var(--muted); font-size: 12px; }
.skip-link { position: fixed; top: 12px; left: 12px; transform: translateY(-200%); background: #182230; color: white; padding: 12px; border-radius: 8px; z-index: 10; }
.skip-link:focus { transform: none; }
@media (max-width: 760px) {
  .container { width: calc(100% - 36px); }
  .hero { padding-top: 36px; padding-bottom: 28px; }
  .hero-copy { font-size: 15px; }
  .workspace { grid-template-columns: 1fr; gap: 16px; }
  .card { padding: 24px; }
  .local-card > p { max-width: none; }
  .reading-note { grid-template-columns: 1fr; gap: 20px; margin-block: 28px 36px; }
}
@media (max-width: 400px) {
  .brand { gap: 7px; font-size: 14px; }
  .nav-link { padding-inline: 8px; font-size: 12px; }
  nav { gap: 2px; }
  .card { padding: 20px; }
  h1 span { display: block; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
