/* Twork marketing site — warm white canvas, Qwen purple accents.
   Local-First: system fonts only, no webfont CDN. */

:root {
  --purple: #615ced;
  --purple-dark: #6336e7;
  --purple-light: #6f69f7;
  --purple-soft: rgba(97, 92, 237, 0.08);
  --purple-border: rgba(97, 92, 237, 0.3);
  --bg: #fdfbf8;
  --bg-alt: #f7f4f0;
  --bg-card: #ffffff;
  --text: #191817;
  --text-2: #45403c;
  --muted: #6f6862;
  --line: #e6e1db;
  --line-strong: #d5cfc7;
  --shadow-sm: 0 1px 2px rgba(25, 24, 23, 0.05);
  --shadow: 0 18px 48px rgba(25, 24, 23, 0.07);
  --radius: 14px;
  --radius-sm: 8px;
  --radius-btn: 8px;
  --radius-pill: 999px;
  --font-serif: ui-serif, "New York", "Iowan Old Style", Charter, "Songti SC", "Noto Serif SC", Georgia, serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  --header-h: 68px;
  --max-w: 1160px;
  --gradient-purple: linear-gradient(102deg, #6336e7 0%, #6f69f7 100%);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: var(--purple); text-decoration: none; }
a:hover { color: var(--purple-dark); }

h1, h2, h3, .serif {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.018em;
  line-height: 1.12;
  color: var(--text);
}

.container {
  width: min(var(--max-w), calc(100% - 3rem));
  margin-inline: auto;
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--purple);
}

/* ---------- Announcement bar ---------- */
.topbar {
  background: var(--text);
  color: #fff;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 0.55rem 0;
  font-size: 0.82rem;
}
.topbar-badge {
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-pill, 999px);
  padding: 0.1rem 0.55rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.topbar-inner span:not(.topbar-badge) { color: rgba(255, 255, 255, 0.82); }
.topbar-inner a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.topbar-inner a:hover { color: #fff; opacity: 0.85; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 251, 248, 0.88);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: var(--header-h);
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-weight: 600;
  font-size: 1.08rem;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}
.brand:hover { color: var(--text); }
.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  flex-shrink: 0;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
}
.brand-mark.lg { width: 56px; height: 56px; border-radius: 14px; }

.nav-main {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  margin-left: 2.5rem;
}
.nav-main a {
  color: var(--text-2);
  font-size: 0.9rem;
  font-weight: 450;
}
.nav-main a:hover { color: var(--purple); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-left: auto;
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-btn);
  overflow: hidden;
  font-size: 0.78rem;
  background: var(--bg-card);
}
.lang-switch button {
  border: none;
  background: transparent;
  padding: 0.34rem 0.6rem;
  cursor: pointer;
  color: var(--muted);
  font: inherit;
  font-size: 0.78rem;
}
.lang-switch button.active {
  background: var(--purple-soft);
  color: var(--purple);
  font-weight: 600;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-btn);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-ghost {
  background: var(--bg-card);
  color: var(--text);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--purple-border); color: var(--purple); }
.btn-primary {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}
.btn-primary:hover { background: #000; color: #fff; }
.btn-purple {
  background: var(--gradient-purple);
  color: #fff;
  border: none;
}
.btn-purple:hover { filter: brightness(1.06); color: #fff; }
.btn-lg { padding: 0.78rem 1.5rem; font-size: 0.98rem; }
.btn-icon { width: 1.05em; height: 1.05em; flex-shrink: 0; }
.btn[disabled], .btn.is-disabled { opacity: 0.6; cursor: not-allowed; }
.btn-white {
  background: #fff;
  color: var(--purple-dark);
  border-color: #fff;
}
.btn-white:hover { background: rgba(255, 255, 255, 0.9); color: var(--purple-dark); }

.nav-toggle {
  display: none;
  border: 1px solid var(--line-strong);
  background: var(--bg-card);
  border-radius: var(--radius-btn);
  padding: 0.4rem 0.6rem;
  cursor: pointer;
  font: inherit;
}

/* ---------- Hero ---------- */
.hero {
  padding: 6.5rem 0 4.5rem;
  text-align: center;
}
.hero .eyebrow { display: block; margin-bottom: 1.5rem; }
.hero h1 {
  font-size: clamp(3rem, 7.2vw, 5.25rem);
  margin: 0 0 0.5rem;
  letter-spacing: -0.03em;
}
.hero-tagline {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  color: var(--text-2);
  margin: 0 0 1.5rem;
  letter-spacing: -0.015em;
}
.hero-lead {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 40rem;
  margin: 0 auto 2.25rem;
  line-height: 1.65;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 1.1rem;
}
.hero-meta {
  font-size: 0.82rem;
  color: var(--muted);
}

/* ---------- Sections ---------- */
.section { padding: 5.5rem 0; }
.section-alt { background: var(--bg-alt); }
.section-head {
  text-align: center;
  max-width: 44rem;
  margin: 0 auto 3rem;
}
.section-head h2 {
  font-size: clamp(2rem, 3.8vw, 2.85rem);
  margin: 0 0 0.9rem;
}
.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.65;
}

/* ---------- Product tabs ---------- */
.demo-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2rem;
}
.demo-tab {
  border: 1px solid var(--line-strong);
  background: var(--bg-card);
  border-radius: var(--radius-btn);
  padding: 0.5rem 1.1rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--muted);
  transition: all 0.16s ease;
}
.demo-tab:hover { border-color: var(--purple-border); color: var(--purple); }
.demo-tab.active {
  border-color: transparent;
  background: var(--text);
  color: #fff;
  font-weight: 500;
}
.demo-panel { display: none; }
.demo-panel.active { display: block; }
.demo-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: var(--shadow);
}
.demo-frame img { width: 100%; height: auto; }
.demo-caption {
  padding: 1.15rem 1.4rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  border-top: 1px solid var(--line);
  background: var(--bg-card);
}
.placeholder-note {
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 1rem;
  letter-spacing: 0.02em;
}

/* ---------- Feature cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.feature-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.feature-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.feature-card-visual {
  border-bottom: 1px solid var(--line);
  background: var(--bg-alt);
  padding: 1.25rem;
}
.feature-card-visual img { border-radius: var(--radius-sm); width: 100%; }
.feature-card-body { padding: 1.4rem 1.5rem 1.65rem; }
.feature-card-body h3 { margin: 0 0 0.5rem; font-size: 1.22rem; }
.feature-card-body p { margin: 0; color: var(--muted); font-size: 0.94rem; line-height: 1.65; }

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.step-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: var(--purple-soft);
  color: var(--purple);
  font-size: 0.84rem;
  font-weight: 700;
  margin: 1.25rem 1.25rem 0;
}
.step-card h3 { margin: 0.75rem 1.25rem 0.4rem; font-size: 1.05rem; }
.step-card p { margin: 0 1.25rem 1.35rem; font-size: 0.9rem; color: var(--muted); line-height: 1.6; }
.step-visual {
  margin-top: auto;
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
  height: 132px;
  overflow: hidden;
}
.step-visual img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 780px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.35rem 0;
  border: none;
  background: transparent;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  text-align: left;
  cursor: pointer;
  color: var(--text);
}
.faq-q:hover { color: var(--purple); }
.faq-icon {
  flex-shrink: 0;
  width: 1.4rem;
  height: 1.4rem;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  color: var(--muted);
  transition: transform 0.2s ease, color 0.2s ease;
  font-family: var(--font-sans);
}
.faq-item.open .faq-icon { transform: rotate(45deg); color: var(--purple); }
.faq-a {
  display: none;
  padding: 0 3rem 1.5rem 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.75;
}
.faq-item.open .faq-a { display: block; }

/* ---------- Resources ---------- */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.resource-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  background: var(--bg-card);
  color: inherit;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.resource-card:hover {
  border-color: var(--purple-border);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  color: inherit;
}
.resource-card h3 { margin: 0 0 0.45rem; font-size: 1.1rem; }
.resource-card p { margin: 0; font-size: 0.9rem; color: var(--muted); line-height: 1.6; }
.resource-card .link-hint {
  margin-top: auto;
  padding-top: 1rem;
  font-size: 0.85rem;
  color: var(--purple);
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--gradient-purple);
  color: #fff;
  padding: 4.5rem 0;
}
.cta-band-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.cta-band h2 { color: #fff; font-size: clamp(1.85rem, 3.5vw, 2.6rem); margin: 0 0 0.5rem; }
.cta-band p { margin: 0; color: rgba(255, 255, 255, 0.86); font-size: 1rem; max-width: 34rem; }

/* ---------- Footer (Qwen purple) ---------- */
.site-footer {
  background: var(--gradient-purple);
  color: #fff;
  padding: 4rem 0 1.75rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.site-footer .brand { color: #fff; }
.site-footer .brand:hover { color: #fff; }
.footer-brand p {
  margin: 0.85rem 0 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.82);
  max-width: 22rem;
  line-height: 1.6;
}
.footer-col h4 {
  margin: 0 0 0.9rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--font-sans);
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin: 0.45rem 0; }
.footer-col a {
  color: #fff;
  font-size: 0.92rem;
  opacity: 0.9;
}
.footer-col a:hover { color: #fff; opacity: 1; text-decoration: underline; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.82);
}
.footer-copy { margin: 0; }
.footer-upstream { margin: 0; max-width: 30rem; text-align: right; }

/* Simple footer (legal / about pages) */
.site-footer.footer-slim { padding: 2rem 0 1.75rem; }
.site-footer.footer-slim .footer-bottom { border-top: none; padding-top: 0; }

/* ---------- Modal ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(25, 24, 23, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 1rem;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 440px;
  width: 100%;
  box-shadow: var(--shadow);
}
.modal-wide { max-width: 620px; }
.modal h3 { margin: 0 0 0.75rem; font-size: 1.35rem; }
.modal p { margin: 0 0 1.5rem; color: var(--muted); font-size: 0.94rem; line-height: 1.7; }
.modal-actions { display: flex; justify-content: flex-end; gap: 0.5rem; }
.modal .hidden { display: none; }

/* ---------- Install modal ---------- */
.install-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1.25rem !important;
  font-size: 0.85rem !important;
}
.install-version {
  font-family: var(--font-mono);
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-pill);
  background: var(--purple-soft);
  color: var(--purple);
  font-size: 0.78rem;
}
.install-step { margin: 0 0 0.5rem !important; color: var(--text-2) !important; font-weight: 500; }
.install-cmd-row {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
  margin-bottom: 0.85rem;
}
.install-cmd-row code {
  flex: 1;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: 0.83rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  overflow-x: auto;
  white-space: nowrap;
  line-height: 1.5;
}
.install-cmd-row .btn { flex: 0 0 auto; }
.install-note { margin: 0 0 1.25rem !important; font-size: 0.84rem !important; line-height: 1.65 !important; }
.install-alt {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  margin-bottom: 1.25rem;
}
.install-alt summary {
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-2);
  font-weight: 500;
  list-style: none;
}
.install-alt summary::-webkit-details-marker { display: none; }
.install-alt summary::before { content: "▸ "; color: var(--muted); }
.install-alt[open] summary::before { content: "▾ "; }
.install-alt > *:not(summary) { margin-top: 0.85rem; }
.install-steps {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
  color: var(--muted);
  font-size: 0.87rem;
  line-height: 1.75;
}
.install-steps li { margin-bottom: 0.3rem; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%) translateY(140%);
  background: var(--text);
  color: #fff;
  padding: 0.7rem 1.2rem;
  border-radius: var(--radius-btn);
  font-size: 0.88rem;
  z-index: 300;
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.3, 1);
  pointer-events: none;
  box-shadow: var(--shadow);
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ---------- Auth ---------- */
.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg);
}
.auth-side {
  display: flex;
  flex-direction: column;
  padding: 2rem 3rem 3rem;
  min-height: 100vh;
}
.auth-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: auto;
}
.auth-panel {
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  padding: 3rem 0;
}
.auth-panel h1 {
  font-size: clamp(2rem, 3.4vw, 2.6rem);
  margin: 0 0 0.6rem;
}
.auth-sub {
  color: var(--muted);
  margin: 0 0 2rem;
  font-size: 0.95rem;
}
.auth-tabs {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 1.5rem;
  padding: 0.25rem;
  background: var(--bg-alt);
  border-radius: var(--radius-btn);
}
.auth-tab {
  flex: 1;
  border: none;
  background: transparent;
  border-radius: 6px;
  padding: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--muted);
  transition: all 0.16s ease;
}
.auth-tab.active {
  background: var(--bg-card);
  color: var(--text);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}
.auth-form { display: none; }
.auth-form.active { display: block; }
.field { margin-bottom: 1.1rem; }
.field label {
  display: block;
  font-size: 0.84rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: var(--text-2);
}
.field input, .field select {
  width: 100%;
  padding: 0.72rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-btn);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  background: var(--bg-card);
  color: var(--text);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.field input::placeholder { color: #a9a29b; }
.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px var(--purple-soft);
}
.phone-row { display: grid; grid-template-columns: 5.75rem 1fr; gap: 0.5rem; }
.code-row { display: grid; grid-template-columns: 1fr auto; gap: 0.5rem; }
.btn-block { width: 100%; }
.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 1.5rem 0;
  color: var(--muted);
  font-size: 0.78rem;
}
.auth-divider::before, .auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.auth-links {
  margin-top: 1.5rem;
  font-size: 0.88rem;
  color: var(--muted);
  text-align: center;
}
.auth-links button {
  border: none;
  background: none;
  color: var(--purple);
  font: inherit;
  cursor: pointer;
  padding: 0;
}
.auth-links button:hover { text-decoration: underline; }
.auth-legal {
  margin-top: 2rem;
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.6;
  text-align: center;
}
.auth-art {
  background: var(--gradient-purple);
  display: grid;
  place-items: center;
  padding: 3rem;
}
.auth-art-card {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 20px;
  padding: 3rem 2.5rem;
  max-width: 400px;
  text-align: center;
  color: #fff;
  backdrop-filter: blur(6px);
}
.auth-art-card img { margin: 0 auto 1.5rem; border-radius: 18px; }
.auth-art-card h2 { color: #fff; font-size: 1.7rem; margin: 0 0 0.75rem; }
.auth-art-card p { margin: 0; color: rgba(255, 255, 255, 0.85); font-size: 0.95rem; line-height: 1.65; }
.auth-art-points {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  text-align: left;
  display: grid;
  gap: 0.65rem;
}
.auth-art-points li {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.92);
  padding-left: 1.4rem;
  position: relative;
}
.auth-art-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
}

/* ---------- Content pages ---------- */
.page-hero {
  padding: 3.5rem 0 2rem;
  border-bottom: 1px solid var(--line);
  background: var(--bg-alt);
}
.page-hero h1 { margin: 0; font-size: clamp(2rem, 3.6vw, 2.75rem); }
.page-hero .page-meta { margin: 0.6rem 0 0; font-size: 0.86rem; color: var(--muted); }

.legal-body {
  padding: 2.5rem 0 4rem;
  max-width: 760px;
}
.legal-body h1 { font-size: 1.5rem; margin: 0 0 1.25rem; }
.legal-body h2 { font-size: 1.2rem; margin: 2rem 0 0.65rem; }
.legal-body h3 { font-size: 1.05rem; margin: 1.4rem 0 0.5rem; }
.legal-body p { color: var(--muted); margin: 0.6rem 0; line-height: 1.75; }
.legal-body ul, .legal-body ol { color: var(--muted); padding-left: 1.35rem; line-height: 1.75; }
.legal-body li { margin: 0.3rem 0; }
.legal-body strong { color: var(--text); font-weight: 600; }
.legal-body code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--bg-alt);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}
.legal-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 1rem 0;
}
.legal-body th, .legal-body td {
  border: 1px solid var(--line);
  padding: 0.55rem 0.7rem;
  text-align: left;
  vertical-align: top;
}
.legal-body th { background: var(--purple-soft); color: var(--text); font-weight: 600; }

.about-lead {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  line-height: 1.55;
  color: var(--text);
  margin: 0 0 1rem;
}
.about-intro { max-width: 680px; margin-bottom: 3rem; }
.about-intro p { color: var(--muted); line-height: 1.75; }
.notice-list { display: grid; gap: 1rem; }
.notice-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1.15rem 1.35rem;
  background: var(--bg-card);
}
.notice-item h3 {
  margin: 0 0 0.3rem;
  font-size: 1rem;
  font-family: var(--font-sans);
  font-weight: 600;
}
.notice-item .meta { font-size: 0.78rem; color: var(--purple); margin: 0 0 0.4rem; }
.notice-item p { margin: 0; font-size: 0.9rem; color: var(--muted); line-height: 1.6; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .card-grid, .resource-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 860px) {
  .auth-page { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .auth-side { padding: 1.5rem 1.5rem 2.5rem; }
}

@media (max-width: 760px) {
  .container { width: calc(100% - 2rem); }
  .nav-main { display: none; }
  .header-actions .nav-login { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-inner.nav-open .nav-main {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
    position: absolute;
    top: var(--header-h);
    left: -1rem;
    right: -1rem;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 1.25rem 1rem;
    margin: 0;
  }
  .hero { padding: 4rem 0 3rem; }
  .section { padding: 3.5rem 0; }
  .card-grid, .resource-grid, .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .footer-upstream { text-align: left; }
  .faq-a { padding-right: 0; }
  .cta-band-inner { flex-direction: column; align-items: flex-start; }
}
