:root {
  --bg: #f8fafc;
  --panel: #ffffff;
  --panel-2: #f1f5f9;
  --border: #e2e8f0;
  --text: #0f172a;
  --muted: #64748b;
  --accent: #4f46e5;
  --accent-hover: #4338ca;
  --success: #16a34a;
  --warning: #d97706;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.hidden { display: none !important; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* === Top Nav === */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-size: 18px;
}
.nav-links { display: flex; gap: 20px; }
.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}
.nav-links a:hover { color: var(--accent); }
.nav-cta {
  text-decoration: none;
  background: var(--accent);
  color: #fff;
  padding: 8px 16px;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 600;
}
.nav-cta:hover { background: var(--accent-hover); }

/* === Hero + Login Card === */
.hero-section {
  background: linear-gradient(175deg, #eef2ff 0%, #f8fafc 75%);
  padding: 46px 0 56px;
  border-bottom: 1px solid var(--border);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 32px;
  align-items: start;
}
.hero-pill {
  display: inline-block;
  background: rgba(79, 70, 229, 0.1);
  color: var(--accent);
  font-weight: 600;
  font-size: 12.5px;
  padding: 5px 12px;
  border-radius: 99px;
}
.hero-copy h1 {
  margin: 14px 0 14px;
  font-size: 34px;
  line-height: 1.18;
}
.hero-lead {
  font-size: 16px;
  line-height: 1.6;
  color: #334155;
  margin-bottom: 22px;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }
.cta-lg { padding: 12px 20px !important; font-size: 14.5px !important; text-decoration: none; display: inline-block; }

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.hero-metrics > div {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
}
.hero-metrics strong { display: block; font-size: 15px; margin-bottom: 4px; }
.hero-metrics span { font-size: 12.5px; color: var(--muted); line-height: 1.35; display: block; }

.login-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.07);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.login-card h2 { margin: 0; font-size: 20px; }
.login-sub { margin: 0; font-size: 13px; color: var(--muted); }

.oauth-buttons { display: flex; flex-direction: column; gap: 9px; }
.oauth-btn {
  display: block;
  text-align: center;
  text-decoration: none;
  padding: 11px 14px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
}
.oauth-btn.disabled { opacity: 0.45; pointer-events: none; }
.vk-btn { background: #0077ff; color: #fff; }
.ya-btn { background: #fc3f1d; color: #fff; }

.divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }

.email-form { display: flex; flex-direction: column; gap: 8px; }
.email-form input, .parent-form input, .parent-form select {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-size: 14px;
  font-family: inherit;
}
.auth-status { font-size: 13px; color: var(--accent); min-height: 18px; }
.legal-note { margin: 0; font-size: 11.5px; color: var(--muted); line-height: 1.4; }

/* === Sections === */
.section-block { padding: 54px 0; }
.alt-bg { background: #ffffff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.sec-title { margin: 0 0 8px; font-size: 26px; }
.sec-sub { margin: 0 0 24px; color: var(--muted); font-size: 15.5px; }

/* === Compare Table === */
.table-wrap { overflow-x: auto; }
.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  font-size: 14px;
}
.compare-table th, .compare-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.compare-table th { background: var(--panel-2); font-size: 13.5px; }
.compare-table .col-highlight { background: rgba(79, 70, 229, 0.06); }

/* === Demo Dialog === */
.demo-box {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.demo-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--border);
  background: var(--panel-2);
}
.demo-step-btn {
  border: none;
  background: transparent;
  padding: 13px 12px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
}
.demo-step-btn.active {
  background: var(--panel);
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
}
.demo-stage { padding: 20px; }
.demo-task-banner {
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13.5px;
  margin-bottom: 16px;
}
.demo-bubbles { display: flex; flex-direction: column; gap: 10px; }

/* === 4 Cards === */
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.info-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
}
.step-num { font-size: 12px; font-weight: 700; color: var(--accent); }
.info-card h3 { margin: 8px 0; font-size: 16px; }
.info-card p { margin: 0; font-size: 13.5px; color: #334155; line-height: 1.5; }

/* === Curriculum Explorer === */
.explorer-controls { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.subj-tabs, .grade-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.tab-btn, .grade-pill {
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  padding: 8px 14px;
  border-radius: 99px;
  font-size: 13.5px;
  cursor: pointer;
}
.tab-btn.active, .grade-pill.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
}
.preview-nodes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.node-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.node-card em { font-size: 11.5px; color: var(--accent); font-style: normal; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; }
.node-card strong { font-size: 14.5px; font-weight: 700; color: var(--text); line-height: 1.35; }
.node-card span { font-size: 12.5px; color: var(--muted); }
.dual-mode-banner {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #14532d;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14px;
}

/* === Parents Mock === */
.split-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 30px;
  align-items: center;
}
.parent-copy h2 { margin: 12px 0; font-size: 26px; }
.parent-copy p { color: #334155; line-height: 1.55; }
.check-list { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; }

.phone-mock {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}
.mock-header { background: var(--accent); color: #fff; padding: 12px 16px; font-size: 13px; font-weight: 600; }
.mock-body { padding: 16px; font-size: 13.5px; line-height: 1.55; }
.mock-body p { margin: 6px 0; }
.mock-body hr { border: none; border-top: 1px solid var(--border); margin: 10px 0; }

/* === Pricing === */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.price-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}
.price-card.featured {
  border: 2px solid var(--accent);
  box-shadow: 0 12px 28px rgba(79, 70, 229, 0.12);
}
.pop-tag {
  position: absolute;
  top: -11px;
  left: 16px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 99px;
}
.price-card h3 { margin: 0; font-size: 17px; }
.price-val { font-size: 28px; font-weight: 800; }
.price-val span { font-size: 13px; font-weight: 400; color: var(--muted); }
.price-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: #334155;
}
.price-card li::before { content: "✓ "; color: var(--success); font-weight: 700; }
.price-card a { text-align: center; text-decoration: none; }

/* === FAQ & Footer === */
.faq-wrap { max-width: 820px; }
.faq-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 10px;
}
.faq-item summary { font-weight: 600; cursor: pointer; font-size: 15px; }
.faq-item p { margin: 10px 0 0; font-size: 14px; color: #334155; line-height: 1.55; }

.site-footer { padding: 24px 0; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--accent); }

/* === Workspace Preview Showcase & Trust === */
.ws-showcase {
  display: grid;
  grid-template-columns: 260px 1fr;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.06);
  margin-bottom: 22px;
}
.ws-mock-sidebar {
  background: var(--bg);
  border-right: 1px solid var(--border);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ws-mock-user { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; }
.ws-mock-xp {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  font-size: 12px;
}
.ws-mock-xp-top { display: flex; justify-content: space-between; font-weight: 600; margin-bottom: 4px; }
.ws-mock-xp-bar { height: 7px; background: #e2e8f0; border-radius: 99px; overflow: hidden; margin: 6px 0; }
.ws-mock-xp-bar span { display: block; height: 100%; width: 42%; background: linear-gradient(90deg, #4f46e5, #16a34a); border-radius: 99px; }
.ws-mock-subj {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  padding: 7px 10px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.ws-mock-subj.active { border-color: var(--accent); background: rgba(79, 70, 229, 0.08); font-weight: 600; }
.ws-mock-modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.ws-mock-mode {
  text-align: center;
  padding: 6px 4px;
  border-radius: 7px;
  font-size: 10.5px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--muted);
}
.ws-mock-mode.active { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.ws-mock-chat { padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; background: var(--panel); }
.ws-mock-chat-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
}
.ws-error-callout {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  border-radius: 8px;
  padding: 8px 10px;
  margin: 6px 0;
  font-size: 13px;
}
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.legal-article { max-width: 820px; background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 28px; }
.legal-article h1 { margin-top: 0; font-size: 26px; }
.legal-article h2 { font-size: 18px; margin-top: 22px; }
.legal-article p, .legal-article li { font-size: 14.5px; line-height: 1.6; color: #334155; }

/* === Common Buttons === */
.primary-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 11px 16px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
}
.primary-btn:hover { background: var(--accent-hover); }

.ghost-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 7px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 12.5px;
}
.ghost-btn:hover { border-color: var(--accent); color: var(--accent); }
.full-w { width: 100%; display: block; text-align: center; }

/* === Workspace === */
.app-shell { display: grid; grid-template-columns: 320px 1fr; height: 100vh; }
.sidebar {
  background: var(--panel);
  border-right: 1px solid var(--border);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-badge {
  display: inline-block;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #fff;
  font-weight: 700;
  font-size: 11px;
  padding: 6px 9px;
  border-radius: 8px;
  letter-spacing: 0.4px;
}
.brand-info { flex: 1; }
.brand h1 { margin: 0; font-size: 16px; }
.grade-row { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.grade-select {
  border: 1px solid var(--border);
  background: var(--panel-2);
  color: var(--text);
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 12px;
}
.link-btn { background: none; border: none; color: var(--muted); font-size: 12px; cursor: pointer; padding: 0; }
.link-btn:hover { color: var(--text); }

.level-card { background: var(--panel-2); border: 1px solid var(--border); border-radius: 12px; padding: 12px; }
.level-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.level-pill { font-size: 12px; font-weight: 600; color: var(--accent); }
.streak-pill { font-size: 12px; font-weight: 600; color: var(--warning); }
.level-title { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.xp-bar-wrap { height: 8px; background: #e2e8f0; border-radius: 99px; overflow: hidden; margin-bottom: 6px; }
.xp-bar { height: 100%; background: linear-gradient(90deg, #4f46e5, #16a34a); transition: width 0.4s ease; }
.xp-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.quota-meta { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--border); font-size: 11.5px; color: var(--muted); }

.section-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.6px; color: var(--muted); margin-top: 2px; }
.subjects-list { display: flex; flex-direction: column; gap: 6px; }
.subject-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 9px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 13.5px;
}
.subject-btn:hover { border-color: var(--accent); }
.subject-btn.active { background: rgba(79, 70, 229, 0.1); border-color: var(--accent); font-weight: 600; }
.subj-status { font-size: 12px; padding: 2px 7px; border-radius: 99px; background: var(--panel-2); color: var(--muted); }
.subj-status.done { background: rgba(22, 163, 74, 0.14); color: #15803d; font-weight: 600; }

.mode-switch { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.mode-btn { background: var(--bg); border: 1px solid var(--border); color: var(--muted); padding: 7px 4px; border-radius: 8px; cursor: pointer; font-size: 11px; line-height: 1.2; text-align: center; }
.mode-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }

.badges-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.badge-item { background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 7px 4px; text-align: center; font-size: 17px; opacity: 0.3; filter: grayscale(1); }
.badge-item.earned { opacity: 1; filter: none; border-color: rgba(217, 119, 6, 0.45); background: rgba(245, 158, 11, 0.1); }

.chat-main { display: flex; flex-direction: column; height: 100vh; }
.chat-header { padding: 14px 22px; border-bottom: 1px solid var(--border); background: var(--panel); display: flex; justify-content: space-between; align-items: center; }
.chat-header h2 { margin: 0; font-size: 18px; }
.header-desc { font-size: 12px; color: var(--muted); }
.chat-messages { flex: 1; overflow-y: auto; padding: 20px 24px; display: flex; flex-direction: column; gap: 14px; }
.msg { max-width: 820px; padding: 12px 16px; border-radius: 14px; line-height: 1.55; font-size: 14.5px; }
.msg.user { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.msg.assistant { align-self: flex-start; background: var(--panel); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.msg.assistant pre { background: #f1f5f9; border: 1px solid var(--border); padding: 10px; border-radius: 8px; overflow-x: auto; }
.msg.assistant p:first-child { margin-top: 0; }
.msg.assistant p:last-child { margin-bottom: 0; }
.quick-prompts { padding: 0 24px 10px; display: flex; gap: 8px; flex-wrap: wrap; }
.chip-btn { background: var(--panel); border: 1px solid var(--border); color: var(--text); padding: 7px 12px; border-radius: 99px; font-size: 12.5px; cursor: pointer; }
.chip-btn:hover { border-color: var(--accent); }
.chat-input-area { padding: 12px 24px 18px; border-top: 1px solid var(--border); background: var(--panel); display: flex; gap: 10px; align-items: flex-end; }
#chat-input { flex: 1; background: var(--bg); border: 1px solid var(--border); color: var(--text); border-radius: 10px; padding: 10px 12px; font-family: inherit; font-size: 14px; resize: none; }
#chat-input:focus { outline: none; border-color: var(--accent); }
.send-btn { background: var(--accent); color: #fff; border: none; padding: 12px 20px; border-radius: 10px; font-weight: 600; cursor: pointer; }
.send-btn:hover { background: var(--accent-hover); }
.send-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* === Modal & Toast === */
.modal-backdrop { position: fixed; inset: 0; background: rgba(15, 23, 42, 0.45); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 90; }
.modal-box { background: var(--panel); border-radius: 14px; max-width: 460px; width: 100%; padding: 20px; box-shadow: 0 20px 45px rgba(15, 23, 42, 0.2); }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.modal-head h3 { margin: 0; font-size: 17px; }
.modal-note { font-size: 13px; color: var(--muted); margin: 0 0 12px; }
.parent-links-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.parent-link-item { display: flex; justify-content: space-between; align-items: center; background: var(--panel-2); padding: 8px 10px; border-radius: 8px; font-size: 13px; }
.parent-form { display: flex; flex-direction: column; gap: 8px; }
.parent-form label { font-size: 12.5px; color: var(--muted); }
.checkbox-row { display: flex; align-items: center; gap: 8px; color: var(--text) !important; margin: 4px 0; }
.toast-container { position: fixed; top: 18px; right: 18px; display: flex; flex-direction: column; gap: 8px; z-index: 100; }
.toast { background: #14532d; border: 1px solid #22c55e; color: #f0fdf4; padding: 12px 16px; border-radius: 10px; font-size: 13.5px; box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25); }

/* === SEO Matrix & Program SSR Pages === */
.seo-links-matrix {
  margin-top: 18px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}
.seo-matrix-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 12px;
}
.seo-matrix-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.seo-matrix-row, .seo-links-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.seo-matrix-row span {
  min-width: 145px;
  font-size: 13.5px;
  font-weight: 600;
}
.seo-grade-link {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 99px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 12.5px;
  text-decoration: none;
}
.seo-grade-link:hover, .seo-grade-link.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}

.seo-hero { padding: 40px 0 32px; background: linear-gradient(180deg, #eef2ff 0%, var(--bg) 100%); }
.seo-hero h1 { margin: 12px 0; font-size: 32px; line-height: 1.2; }
.seo-section { padding: 42px 0; }
.seo-section h2 { margin: 0 0 10px; font-size: 24px; }
.seo-guide-lead { font-size: 15px; color: #334155; line-height: 1.55; max-width: 780px; margin: 0 0 20px; }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.breadcrumbs a { color: var(--accent); text-decoration: none; }
.sample-problems-list { display: flex; flex-direction: column; gap: 14px; }
.problem-sample-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
}
.sample-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; font-size: 12px; }
.sample-badge { background: #eef2ff; color: var(--accent); font-weight: 700; padding: 3px 9px; border-radius: 99px; }
.sample-src { color: var(--muted); }
.problem-sample-card h3 { margin: 4px 0 8px; font-size: 17px; }
.sample-stmt { margin: 0 0 14px; font-size: 14.5px; line-height: 1.55; color: #1e293b; }
.sample-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.sample-actions a { text-decoration: none; }
.seo-crosslinks { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.seo-crosslinks h3 { margin: 0 0 10px; font-size: 16px; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero-grid, .split-grid, .seo-crosslinks, .ws-showcase { grid-template-columns: 1fr; }
  .hero-metrics, .cards-4, .cards-3, .pricing-grid, .preview-nodes-grid { grid-template-columns: 1fr; }
  .ws-mock-sidebar { border-right: none; border-bottom: 1px solid var(--border); }
  .demo-steps { grid-template-columns: 1fr; }
  .app-shell { grid-template-columns: 1fr; height: auto; }
  .sidebar { border-right: none; border-bottom: 1px solid var(--border); }
  .chat-main { height: 75vh; }
}
