/* ============================================================
   SciMynd Public Pages
   Marketing header · Footer · Page-specific styles
   ============================================================ */

/* ---- Public Header ---- */
.pub-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-6);
  z-index: var(--z-dropdown);
  background: transparent;
  transition: background var(--duration-fast) ease, backdrop-filter var(--duration-fast) ease;
}
.pub-header.scrolled {
  background: var(--color-bg-secondary);
  backdrop-filter: blur(16px) saturate(1.2);
}
.pub-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 15%; right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
}

.pub-header-logo { height: 28px; opacity: 0.9; transition: opacity var(--duration-fast); }
.pub-header-logo:hover { opacity: 1; }

.pub-nav { display: flex; align-items: center; gap: var(--space-6); }
.pub-nav-link {
  position: relative;
  font-size: var(--font-sm);
  font-weight: var(--fw-medium);
  color: var(--color-text-secondary);
  text-decoration: none;
  padding: var(--space-1) 0;
  transition: color var(--duration-fast);
}
.pub-nav-link:hover,
.pub-nav-link.active { color: var(--color-text-primary); text-decoration: none; }
.pub-nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 50%; right: 50%;
  height: 2px;
  background: var(--color-accent);
  transition: left var(--duration-fast), right var(--duration-fast);
}
.pub-nav-link:hover::after,
.pub-nav-link.active::after { left: 0; right: 0; }

.pub-nav-cta {
  padding: 8px 20px;
  font-size: var(--font-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-text-on-accent);
  background: var(--color-accent);
  border: none;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: filter var(--duration-fast), transform var(--duration-fast);
  cursor: pointer;
}
.pub-nav-cta:hover { filter: brightness(1.1); text-decoration: none; }
.pub-nav-cta:active { transform: scale(0.97); }

/* Mobile hamburger */
.pub-hamburger {
  display: none;
  width: 32px; height: 32px;
  background: none; border: none;
  color: var(--color-text-primary);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.pub-hamburger span {
  display: block; width: 20px; height: 2px;
  background: currentColor;
  transition: transform var(--duration-fast), opacity var(--duration-fast);
}
.pub-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.pub-hamburger.open span:nth-child(2) { opacity: 0; }
.pub-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.pub-mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-modal) + 1);
  background: var(--color-bg-primary);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
}
.pub-mobile-overlay.open { display: flex; }
.pub-mobile-overlay .pub-nav-link {
  font-size: var(--font-lg);
  padding: var(--space-3) 0;
}
.pub-mobile-overlay .pub-nav-cta {
  width: calc(100% - var(--space-8));
  max-width: 320px;
  text-align: center;
  margin-top: var(--space-4);
  padding: var(--space-3);
}
.pub-mobile-close {
  position: absolute; top: var(--space-4); right: var(--space-4);
  width: 32px; height: 32px;
  background: none; border: none;
  color: var(--color-text-primary);
  cursor: pointer;
  font-size: 20px;
  display: flex; align-items: center; justify-content: center;
}

@media (max-width: 768px) {
  .pub-nav { display: none; }
  .pub-hamburger { display: flex; }
}

/* ---- Public Footer ---- */
.pub-footer {
  background: var(--color-bg-secondary);
  border-top: 1px solid var(--color-border);
  padding: var(--space-10) var(--space-6);
}
.pub-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-8);
  max-width: 1200px;
  margin: 0 auto;
}
.pub-footer-brand-tagline {
  font-size: var(--font-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-2);
  line-height: var(--lh-relaxed);
}
.pub-footer-social {
  display: flex; gap: var(--space-3);
  margin-top: var(--space-3);
}
.pub-footer-social-icon {
  width: 20px; height: 20px;
  color: var(--color-text-muted);
  opacity: 0.5; cursor: default;
}
.pub-footer-heading {
  font-size: var(--font-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-4);
}
.pub-footer-links {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: var(--space-2);
}
.pub-footer-links a {
  font-size: var(--font-xs);
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--duration-fast);
}
.pub-footer-links a:hover { color: var(--color-accent-text); text-decoration: none; }
.pub-footer-links .placeholder {
  opacity: 0.5; cursor: default;
}
.pub-footer-links .placeholder:hover { color: var(--color-text-muted); }
.pub-footer-links .coming-soon {
  font-style: italic;
  font-size: 10px;
  opacity: 0.6;
}

.pub-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: var(--space-6) auto 0;
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
}
.pub-footer-copy {
  font-size: var(--font-xs);
  color: var(--color-text-muted);
}
.pub-footer-version {
  font-size: var(--font-xs);
  font-family: var(--font-mono);
  color: var(--color-text-muted);
  background: var(--color-bg-hover);
  padding: 2px 8px;
  border-radius: var(--radius-xs);
}

@media (max-width: 1024px) {
  .pub-footer-grid { grid-template-columns: 1.5fr 1fr; }
}
@media (max-width: 768px) {
  .pub-footer-grid { grid-template-columns: 1fr; }
  .pub-footer-bottom { flex-direction: column; gap: var(--space-2); text-align: center; }
}

/* ---- Public Content ---- */
.pub-content {
  padding-top: 64px; /* header height offset */
  min-height: 100vh;
}

/* ---- Section Spacing ---- */
.pub-section {
  padding: var(--space-16) var(--space-6);
}
.pub-section-narrow {
  max-width: 720px;
  margin: 0 auto;
}
.pub-section-wide {
  max-width: 1200px;
  margin: 0 auto;
}

/* ============================================================
   LANDING PAGE
   ============================================================ */

/* Hero */
.landing-hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: var(--space-16) var(--space-6);
}
.landing-hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.landing-hero-bg svg { height: 90%; width: auto; }

.landing-hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}
.landing-hero h1 {
  font-family: var(--font-display);
  font-size: var(--font-hero);
  font-weight: var(--fw-semibold);
  line-height: 1.1;
  margin-bottom: var(--space-4);
}
.landing-hero-sub {
  font-size: var(--font-lg);
  color: var(--color-text-secondary);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--space-8);
}
.landing-hero-ctas {
  display: flex; gap: var(--space-3);
  justify-content: center;
  flex-wrap: wrap;
}

/* Trusted By */
.trusted-by { text-align: center; }
.trusted-by-label {
  font-size: var(--font-xs);
  text-transform: uppercase;
  letter-spacing: var(--ls-caps);
  color: var(--color-text-muted);
  font-weight: var(--fw-semibold);
  margin-bottom: var(--space-6);
}
.trusted-logos {
  display: flex;
  justify-content: center;
  gap: var(--space-6);
  flex-wrap: wrap;
}
.trusted-logo-placeholder {
  padding: var(--space-2) var(--space-4);
  background: var(--color-bg-hover);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  display: flex; align-items: center; justify-content: center;
}
.trusted-logo-placeholder span {
  font-size: var(--font-xs);
  font-weight: var(--fw-semibold);
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* Section Heading */
.section-heading-center {
  font-family: var(--font-display);
  font-size: var(--font-2xl);
  font-weight: var(--fw-semibold);
  text-align: center;
  margin-bottom: var(--space-8);
}

/* Three Pillars */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  max-width: 1100px;
  margin: 0 auto;
}
@media (max-width: 768px) {
  .pillars-grid { grid-template-columns: 1fr; }
}

/* Product Showcase */
.showcase-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-10);
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: var(--space-10) 0;
}
.showcase-reverse .showcase-img { order: 2; }
.showcase-reverse .showcase-text { order: 1; }
.showcase-img {
  aspect-ratio: 16/10;
  background: var(--color-bg-hover);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}
.showcase-text h2 {
  font-family: var(--font-display);
  font-size: var(--font-2xl);
  font-weight: var(--fw-semibold);
  margin-bottom: var(--space-3);
}
.showcase-text p {
  color: var(--color-text-secondary);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--space-4);
}
.showcase-features {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: var(--space-2);
}
.showcase-features li {
  font-size: var(--font-sm);
  color: var(--color-text-secondary);
  display: flex; align-items: center; gap: var(--space-2);
}
.showcase-features li::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--color-accent);
  border-radius: 50%;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .showcase-block {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
  .showcase-reverse .showcase-img { order: 1; }
  .showcase-reverse .showcase-text { order: 2; }
}

/* ===== Mock UI Illustrations (Showcase) ===== */
.showcase-mock {
  overflow: hidden;
  padding: 0;
  display: flex;
  align-items: stretch;
}
.mock-window {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
}
.mock-titlebar {
  display: flex; gap: 5px;
  padding: 8px 10px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
}
.mock-titlebar span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--color-text-muted);
  opacity: 0.3;
}

/* Shared mock elements */
.mock-line {
  height: 6px; border-radius: 3px;
  background: var(--color-text-muted);
  opacity: 0.15;
  margin-bottom: 5px;
}
.mock-line.w30 { width: 30%; }
.mock-line.w40 { width: 40%; }
.mock-line.w50 { width: 50%; }
.mock-line.w60 { width: 60%; }
.mock-line.w65 { width: 65%; }
.mock-line.w70 { width: 70%; }
.mock-line.w80 { width: 80%; }
.mock-line.w90 { width: 90%; }

.mock-tabs {
  display: flex; gap: 2px; margin-bottom: 8px;
}
.mock-tabs span {
  height: 5px; flex: 1;
  border-radius: 2px;
  background: var(--color-text-muted);
  opacity: 0.1;
}
.mock-tabs span.active {
  background: var(--color-accent);
  opacity: 0.5;
}

.mock-badge-row {
  display: flex; gap: 4px; margin-top: 6px;
}
.mock-badge-row span {
  height: 5px; width: 28px;
  border-radius: 3px;
  background: var(--color-accent);
  opacity: 0.25;
}
.mock-badge-row span.danger {
  background: #e85d75;
  opacity: 0.5;
}
.mock-badge-row span.info {
  background: var(--color-accent);
  opacity: 0.35;
}
.mock-badge-row span.stars {
  background: #f0a030;
  opacity: 0.4;
  width: 32px;
}

/* 3-column layout (Viewer, Studio) */
.mock-layout-3col {
  flex: 1; display: grid;
  grid-template-columns: 80px 1fr 90px;
  min-height: 0;
}
.mock-sidebar {
  padding: 8px 6px;
  border-right: 1px solid var(--color-border);
  background: rgba(255,255,255,0.015);
}
.mock-tree-item {
  height: 5px; border-radius: 2px;
  background: var(--color-text-muted);
  opacity: 0.12;
  margin-bottom: 4px;
  width: 80%;
}
.mock-tree-item.active {
  background: var(--color-accent);
  opacity: 0.4;
}
.mock-tree-item.indent {
  margin-left: 10px;
  width: 65%;
}
.mock-canvas {
  display: flex; align-items: center; justify-content: center;
  padding: 8px;
}
.mock-canvas svg { width: 70%; max-height: 100%; }
.mock-panel {
  padding: 8px 6px;
  border-left: 1px solid var(--color-border);
  background: rgba(255,255,255,0.015);
}

/* Studio editor */
.mock-editor {
  padding: 6px 8px;
  border-right: 1px solid var(--color-border);
}
.mock-toolbar {
  display: flex; gap: 3px; margin-bottom: 6px;
}
.mock-toolbar span {
  width: 14px; height: 14px;
  border-radius: 3px;
  background: var(--color-text-muted);
  opacity: 0.1;
}
.mock-toolbar span.accent {
  background: var(--color-accent);
  opacity: 0.35;
}
.mock-form-row {
  display: flex; gap: 6px; align-items: center;
  margin-bottom: 5px;
}
.mock-label {
  width: 24px; height: 5px;
  background: var(--color-text-muted);
  opacity: 0.2;
  border-radius: 2px;
}
.mock-input {
  height: 12px; flex: 1;
  border: 1px solid var(--color-border);
  border-radius: 3px;
  background: rgba(255,255,255,0.02);
}
.mock-input.wide { flex: 2; }
.mock-toggle-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 3px; margin-top: 6px;
}
.mock-toggle-grid span {
  height: 10px;
  border-radius: 3px;
  background: var(--color-text-muted);
  opacity: 0.08;
}
.mock-toggle-grid span.on {
  background: var(--color-accent);
  opacity: 0.25;
}
.mock-preview {
  display: flex; align-items: center; justify-content: center;
  padding: 4px;
}
.mock-preview svg { width: 80%; }

/* Chat layout (AI Agents) */
.mock-layout-chat {
  flex: 1; display: grid;
  grid-template-columns: 80px 1fr;
  min-height: 0;
}
.mock-chat-sidebar {
  padding: 8px 6px;
  border-right: 1px solid var(--color-border);
  background: rgba(255,255,255,0.015);
}
.mock-chat-item {
  height: 18px;
  border-radius: 4px;
  background: var(--color-text-muted);
  opacity: 0.06;
  margin-bottom: 4px;
}
.mock-chat-item.active {
  background: var(--color-accent);
  opacity: 0.12;
}
.mock-chat-main {
  padding: 8px;
  display: flex; flex-direction: column; gap: 6px;
}
.mock-agent-bar {
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 2px;
}
.mock-agent-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
  opacity: 0.6;
}
.mock-msg {
  padding: 6px 8px;
  border-radius: 6px;
  max-width: 85%;
}
.mock-msg.assistant {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--color-border);
  align-self: flex-start;
}
.mock-msg.user {
  background: var(--color-accent-subtle);
  align-self: flex-end;
}
.mock-msg .mock-line { margin-bottom: 3px; }
.mock-msg .mock-line:last-child { margin-bottom: 0; }
.mock-chat-input {
  margin-top: auto;
  padding: 6px 8px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: rgba(255,255,255,0.02);
}
.mock-chip-row {
  display: flex; gap: 4px;
}
.mock-chip-row span {
  height: 14px; width: 42px;
  border-radius: 7px;
  background: var(--color-accent-subtle);
  border: 1px solid var(--color-accent-border);
}

/* Education layout */
.mock-layout-edu {
  flex: 1; display: grid;
  grid-template-columns: 1fr 90px;
  grid-template-rows: auto 1fr;
  min-height: 0;
}
.mock-progress-header {
  grid-column: 1 / -1;
  padding: 8px 10px;
  border-bottom: 1px solid var(--color-border);
  display: flex; align-items: center; gap: 8px;
}
.mock-progress-bar {
  flex: 1; height: 6px;
  background: rgba(255,255,255,0.05);
  border-radius: 3px;
  overflow: hidden;
}
.mock-progress-fill {
  height: 100%;
  background: var(--color-accent);
  opacity: 0.6;
  border-radius: 3px;
}
.mock-quiz-area {
  padding: 10px;
  display: flex; flex-direction: column; gap: 5px;
}
.mock-option {
  height: 16px;
  border-radius: 4px;
  border: 1px solid var(--color-border);
  background: rgba(255,255,255,0.02);
}
.mock-option.active {
  border-color: var(--color-accent);
  background: var(--color-accent-subtle);
}
.mock-edu-sidebar {
  padding: 8px 6px;
  border-left: 1px solid var(--color-border);
  background: rgba(255,255,255,0.015);
}
.mock-mastery-bar {
  height: 5px; border-radius: 3px;
  background: rgba(255,255,255,0.05);
  margin-bottom: 6px;
  overflow: hidden;
}
.mock-mastery-bar div {
  height: 100%;
  background: var(--color-accent);
  opacity: 0.45;
  border-radius: 3px;
}

/* Clinical layout */
.mock-layout-clinical {
  flex: 1; display: grid;
  grid-template-columns: 1fr 110px;
  min-height: 0;
}
.mock-clinical-canvas {
  display: flex; align-items: center; justify-content: center;
  padding: 8px;
}
.mock-clinical-canvas svg { width: 75%; }
.mock-clinical-panel {
  padding: 8px 6px;
  border-left: 1px solid var(--color-border);
  background: rgba(255,255,255,0.015);
}
.mock-clinical-timeline {
  display: flex; align-items: center; gap: 0;
  margin: 8px 0;
  position: relative;
}
.mock-clinical-timeline::before {
  content: '';
  position: absolute;
  top: 50%; left: 4px; right: 4px;
  height: 2px;
  background: var(--color-border);
}
.mock-tl-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: 2px solid var(--color-border);
  background: var(--color-bg);
  position: relative;
  z-index: 1;
  flex: 1;
}
.mock-tl-dot.done {
  background: var(--color-accent);
  border-color: var(--color-accent);
  opacity: 0.6;
}
.mock-tl-dot.current {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px var(--color-accent-subtle);
}

/* Marketplace layout */
.mock-layout-market {
  flex: 1; display: flex; flex-direction: column;
  padding: 8px;
  gap: 6px;
  min-height: 0;
}
.mock-market-search {
  height: 16px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 0 8px;
  display: flex; align-items: center;
  background: rgba(255,255,255,0.02);
}
.mock-market-search .mock-line { margin-bottom: 0; }
.mock-market-chips {
  display: flex; gap: 4px;
}
.mock-market-chips span {
  height: 12px; width: 36px;
  border-radius: 6px;
  background: var(--color-text-muted);
  opacity: 0.08;
}
.mock-market-chips span.active {
  background: var(--color-accent);
  opacity: 0.3;
}
.mock-market-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  flex: 1;
}
.mock-card {
  border: 1px solid var(--color-border);
  border-radius: 6px;
  overflow: hidden;
  display: flex; flex-direction: column;
}
.mock-card-img {
  height: 40px;
  background: linear-gradient(135deg, var(--color-accent-subtle), rgba(255,255,255,0.02));
}
.mock-card .mock-line {
  margin: 6px 6px 0;
}
.mock-card .mock-badge-row {
  margin: 4px 6px 6px;
}

/* Stats Bar */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: var(--space-10);
  padding: var(--space-10) var(--space-6);
  background: var(--color-accent-subtle);
  flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-number {
  font-family: var(--font-display);
  font-size: var(--font-2xl);
  font-weight: var(--fw-bold);
  color: var(--color-accent-text);
}
.stat-label {
  font-size: var(--font-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-1);
}

/* Final CTA */
.cta-section {
  text-align: center;
  padding: var(--space-16) var(--space-6);
}
.cta-section h2 {
  font-family: var(--font-display);
  font-size: var(--font-2xl);
  font-weight: var(--fw-semibold);
  margin-bottom: var(--space-6);
}
.cta-buttons {
  display: flex; gap: var(--space-3);
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   FEATURES PAGE
   ============================================================ */
.features-hero { text-align: center; max-width: 720px; margin: 0 auto; }
.features-hero h1 {
  font-family: var(--font-display);
  font-size: var(--font-hero);
  font-weight: var(--fw-semibold);
  margin-bottom: var(--space-3);
}
.features-hero p { color: var(--color-text-secondary); font-size: var(--font-lg); }

.feature-domain {
  padding: var(--space-10) 0;
  border-bottom: 1px solid var(--color-border);
}
.feature-domain:last-child { border-bottom: none; }
.feature-domain h2 {
  font-family: var(--font-display);
  font-size: var(--font-xl);
  font-weight: var(--fw-semibold);
  margin-bottom: var(--space-2);
}
.feature-domain > p {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-6);
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}
.feature-item {
  display: flex; gap: var(--space-3);
  padding: var(--space-3);
  border-radius: var(--radius-sm);
  transition: background var(--duration-fast);
}
.feature-item:hover { background: var(--color-bg-hover); }
.feature-item-icon {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-accent-subtle);
  color: var(--color-accent-text);
  border-radius: var(--radius-xs);
  font-size: 16px;
  flex-shrink: 0;
}
.feature-item h3 { font-size: var(--font-sm); font-weight: var(--fw-semibold); margin-bottom: 2px; }
.feature-item p { font-size: var(--font-xs); color: var(--color-text-muted); }

@media (max-width: 1024px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) { .feature-grid { grid-template-columns: 1fr; } }

/* Feature accordion (mobile) */
.feature-domain-toggle {
  display: none;
  width: 100%; background: none; border: none;
  text-align: left; cursor: pointer;
  font: inherit; color: inherit;
  padding: var(--space-3) 0;
}
.feature-domain-toggle svg {
  width: 16px; height: 16px;
  transition: transform var(--duration-fast);
  float: right;
  margin-top: 4px;
}
.feature-domain-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
@media (max-width: 768px) {
  .feature-domain-toggle { display: flex; justify-content: space-between; align-items: center; }
  .feature-domain h2 { pointer-events: none; }
  .feature-domain .feature-grid { display: none; }
  .feature-domain.expanded .feature-grid { display: grid; grid-template-columns: 1fr; }
}

/* Category Grid */
.category-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-3);
  max-width: 1100px;
  margin: 0 auto;
}
.category-card {
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  padding: var(--space-4);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  transition: transform var(--duration-fast), box-shadow var(--duration-fast);
}
.category-card:hover { transform: scale(1.03); box-shadow: var(--shadow-md); }
.category-icon {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  margin-bottom: var(--space-2);
}
.category-name { font-size: var(--font-xs); font-weight: var(--fw-semibold); margin-bottom: 2px; }
.category-desc { font-size: 10px; color: var(--color-text-muted); }

@media (max-width: 1024px) { .category-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { .category-grid { grid-template-columns: repeat(2, 1fr); } }

/* Comparison Table */
.comparison-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 1100px;
  margin: 0 auto;
}
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--font-sm);
}
.comparison-table th,
.comparison-table td {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}
.comparison-table thead th {
  font-weight: var(--fw-semibold);
  background: var(--color-bg-surface);
  position: sticky; top: 0;
}
.comparison-table .check { color: var(--color-success); }
.comparison-table .cross { color: var(--color-text-muted); opacity: 0.4; }
.comparison-table .group-row td {
  font-weight: var(--fw-semibold);
  background: var(--color-bg-hover);
  font-size: var(--font-xs);
  text-transform: uppercase;
  letter-spacing: var(--ls-caps);
  color: var(--color-text-muted);
}

/* ============================================================
   PRICING PAGE
   ============================================================ */
.pricing-hero { text-align: center; }
.pricing-hero h1 {
  font-family: var(--font-display);
  font-size: var(--font-hero);
  font-weight: var(--fw-semibold);
  margin-bottom: var(--space-2);
}
.pricing-hero p {
  color: var(--color-text-secondary);
  font-size: var(--font-lg);
  margin-bottom: var(--space-6);
}

/* Billing toggle */
.billing-toggle {
  display: inline-flex;
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 3px;
}
.billing-toggle-btn {
  padding: 6px 20px;
  font-size: var(--font-sm);
  font-weight: var(--fw-medium);
  font-family: var(--font-body);
  background: none;
  border: none;
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all var(--duration-fast);
}
.billing-toggle-btn.active {
  background: var(--color-accent);
  color: var(--color-text-on-accent);
}

/* Plan cards */
.plan-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  max-width: 1100px;
  margin: var(--space-10) auto 0;
}
.plan-card {
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--duration-fast);
}
.plan-card:hover { box-shadow: var(--shadow-md); }
.plan-card.featured {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
  position: relative;
}
.plan-badge {
  position: absolute;
  top: calc(-1 * var(--space-3));
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-accent);
  color: var(--color-text-on-accent);
  font-size: 10px;
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: var(--ls-caps);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}
.plan-name {
  font-family: var(--font-display);
  font-size: var(--font-lg);
  font-weight: var(--fw-semibold);
  margin-bottom: var(--space-2);
}
.plan-price {
  font-size: var(--font-2xl);
  font-weight: var(--fw-bold);
  margin-bottom: var(--space-1);
}
.plan-price .period { font-size: var(--font-sm); font-weight: var(--fw-normal); color: var(--color-text-muted); }
.plan-save { font-size: var(--font-xs); color: var(--color-success); font-weight: var(--fw-medium); margin-bottom: var(--space-4); }
.plan-features {
  list-style: none; padding: 0; margin: 0;
  flex: 1;
  display: flex; flex-direction: column; gap: var(--space-2);
  margin-bottom: var(--space-6);
}
.plan-features li {
  font-size: var(--font-sm);
  color: var(--color-text-secondary);
  display: flex; align-items: flex-start; gap: var(--space-2);
}
.plan-features li::before {
  content: '\2713';
  color: var(--color-accent-text);
  flex-shrink: 0;
  margin-top: 1px;
}

@media (max-width: 768px) {
  .plan-cards { grid-template-columns: 1fr; }
  .plan-card.featured { order: -1; }
}

/* FAQ */
.faq-section { max-width: 720px; margin: 0 auto; }
.faq-section details {
  border-bottom: 1px solid var(--color-border);
}
.faq-section summary {
  padding: var(--space-4) 0;
  font-size: var(--font-base);
  font-weight: var(--fw-medium);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-section summary::-webkit-details-marker { display: none; }
.faq-section summary::after {
  content: '+';
  font-size: var(--font-lg);
  color: var(--color-text-muted);
  transition: transform var(--duration-fast);
}
.faq-section details[open] summary::after { content: '\2212'; }
.faq-section .faq-answer {
  padding: 0 0 var(--space-4);
  font-size: var(--font-sm);
  color: var(--color-text-secondary);
  line-height: var(--lh-relaxed);
}

/* Enterprise callout */
.enterprise-callout {
  background: var(--color-accent-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-10);
  text-align: center;
  max-width: 1100px;
  margin: 0 auto;
}
.enterprise-callout h2 {
  font-family: var(--font-display);
  font-size: var(--font-xl);
  font-weight: var(--fw-semibold);
  margin-bottom: var(--space-3);
}
.enterprise-callout p {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-6);
  max-width: 560px;
  margin-left: auto; margin-right: auto;
}

/* ============================================================
   AUTH PAGES (Login, Signup, Forgot/Reset Password, Verify)
   ============================================================ */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
  position: relative;
  overflow: hidden;
}
.auth-watermark {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.02;
  pointer-events: none;
  width: 600px; height: 600px;
}
.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  position: relative;
  z-index: 1;
}
.auth-card.wide { max-width: 520px; }
.auth-logo {
  display: block;
  height: 32px;
  margin: 0 auto var(--space-4);
}
.auth-heading {
  font-family: var(--font-display);
  font-size: var(--font-xl);
  font-weight: var(--fw-semibold);
  text-align: center;
  margin-bottom: var(--space-1);
}
.auth-sub {
  text-align: center;
  font-size: var(--font-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}

/* Auth form fields */
.auth-field { margin-bottom: var(--space-4); }
.auth-field label {
  display: block;
  font-size: var(--font-sm);
  font-weight: var(--fw-medium);
  margin-bottom: var(--space-1);
}
.auth-field .input-wrap {
  position: relative;
}
.auth-field input {
  width: 100%;
  padding: 10px var(--space-3);
  font-family: var(--font-body);
  font-size: var(--font-sm);
  background: var(--color-bg-inset);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text-primary);
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
}
.auth-field input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px hsla(var(--accent-h), var(--accent-s), var(--accent-l), 0.3);
}
.auth-field input.error {
  border-color: var(--color-danger);
  box-shadow: 0 0 0 3px hsla(var(--color-danger-h, 350), 78%, 62%, 0.15);
}
.auth-field .field-error {
  font-size: var(--font-xs);
  color: var(--color-danger);
  margin-top: var(--space-1);
  display: none;
}
.auth-field .field-error.visible { display: block; }

/* Password toggle */
.pwd-toggle {
  position: absolute;
  right: var(--space-2);
  top: 50%;
  transform: translateY(-50%);
  background: none; border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: var(--space-1);
  display: flex; align-items: center; justify-content: center;
}
.pwd-toggle:hover { color: var(--color-text-primary); }
.pwd-toggle svg { width: 16px; height: 16px; }

/* Auth error banner */
.auth-error-banner {
  background: hsla(350, 78%, 62%, 0.12);
  color: var(--color-danger);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  font-size: var(--font-sm);
  text-align: center;
  margin-bottom: var(--space-4);
  animation: slideDown 0.3s ease;
  display: none;
}
.auth-error-banner.visible { display: block; }

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); max-height: 0; }
  to { opacity: 1; transform: translateY(0); max-height: 60px; }
}

/* Auth submit */
.auth-submit {
  width: 100%;
  padding: 12px;
  font-family: var(--font-body);
  font-size: var(--font-sm);
  font-weight: var(--fw-semibold);
  background: var(--color-accent);
  color: var(--color-text-on-accent);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: filter var(--duration-fast), transform var(--duration-fast);
  display: flex; align-items: center; justify-content: center; gap: var(--space-2);
}
.auth-submit:hover:not(:disabled) { filter: brightness(1.1); }
.auth-submit:active:not(:disabled) { transform: scale(0.98); }
.auth-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.auth-submit .spinner {
  width: 14px; height: 14px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

/* Social sign-in */
.auth-social {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-top: var(--space-4);
}
.auth-social-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 10px var(--space-3);
  font-family: var(--font-body);
  font-size: var(--font-sm);
  font-weight: var(--fw-medium);
  background: var(--color-bg-inset);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text-primary);
  cursor: pointer;
  transition: background var(--duration-fast), border-color var(--duration-fast);
}
.auth-social-btn:hover {
  background: var(--color-bg-hover);
  border-color: var(--color-border-strong);
}
.auth-social-btn:active { transform: scale(0.98); }
.auth-social-btn svg { flex-shrink: 0; }

/* Auth divider */
.auth-divider {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin: var(--space-4) 0;
  color: var(--color-text-muted);
  font-size: var(--font-xs);
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

/* Auth terms checkbox */
.auth-terms {
  margin-top: var(--space-4);
  width: 100%;
}
.auth-terms-label {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: var(--font-sm);
  color: var(--color-text-secondary);
  cursor: pointer;
  width: 100%;
  text-align: left;
}
.auth-terms-label input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--color-accent);
  flex-shrink: 0;
}
.auth-terms-label a {
  color: var(--color-accent-text);
  text-decoration: none;
}
.auth-terms-label a:hover { text-decoration: underline; }

/* Auth links */
.auth-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-4);
  font-size: var(--font-sm);
}
.auth-links a { color: var(--color-text-muted); text-decoration: none; }
.auth-links a:hover { color: var(--color-accent-text); }
.auth-link-center {
  text-align: center;
  margin-top: var(--space-4);
  font-size: var(--font-sm);
  color: var(--color-text-muted);
}
.auth-link-center a { color: var(--color-accent-text); text-decoration: none; }
.auth-link-center a:hover { text-decoration: underline; }

/* Password strength */
.pwd-strength {
  margin-top: var(--space-2);
}
.pwd-strength-bar {
  height: 4px;
  background: var(--color-bg-hover);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: var(--space-1);
}
.pwd-strength-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width var(--duration-fast), background var(--duration-fast);
  width: 0;
}
.pwd-strength-fill.weak { width: 33%; background: var(--color-danger); }
.pwd-strength-fill.fair { width: 66%; background: var(--color-warning); }
.pwd-strength-fill.strong { width: 100%; background: var(--color-success); }
.pwd-strength-label {
  font-size: var(--font-xs);
  color: var(--color-text-muted);
}

/* Password requirements checklist */
.pwd-requirements {
  list-style: none; padding: 0; margin: var(--space-2) 0 0;
  display: flex; flex-direction: column; gap: var(--space-1);
}
.pwd-requirements li {
  font-size: var(--font-xs);
  color: var(--color-text-muted);
  display: flex; align-items: center; gap: var(--space-2);
}
.pwd-requirements li .req-icon {
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 9px;
  flex-shrink: 0;
  transition: all var(--duration-fast);
}
.pwd-requirements li.met .req-icon {
  background: var(--color-success);
  border-color: var(--color-success);
  color: #fff;
}

/* Auth status (success, error, info states) */
.auth-status {
  text-align: center;
  padding: var(--space-6) 0;
}
.auth-status-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto var(--space-4);
  font-size: 28px;
}
.auth-status-icon.success { background: hsla(155, 50%, 50%, 0.12); color: var(--color-success); }
.auth-status-icon.warning { background: hsla(35, 85%, 58%, 0.12); color: var(--color-warning); }
.auth-status-icon.error { background: hsla(350, 78%, 62%, 0.12); color: var(--color-danger); }
.auth-status-icon.info { background: hsla(214, 100%, 65%, 0.12); color: var(--color-info); }
.auth-status h2 {
  font-family: var(--font-display);
  font-size: var(--font-lg);
  font-weight: var(--fw-semibold);
  margin-bottom: var(--space-2);
}
.auth-status p {
  font-size: var(--font-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}

/* Signup step indicator */
/* Step indicator — matches component library pattern */
.steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: var(--space-6);
}
.step {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.step-number {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: var(--font-xs);
  font-weight: var(--fw-semibold);
  background: var(--color-bg-hover);
  color: var(--color-text-muted);
  border: 2px solid var(--color-border);
  flex-shrink: 0;
  transition: all var(--duration-fast);
}
.step-label {
  font-size: var(--font-sm);
  color: var(--color-text-muted);
  white-space: nowrap;
  font-weight: var(--fw-medium);
  transition: color var(--duration-fast);
}
.step-line {
  width: 40px; height: 2px;
  background: var(--color-border);
  flex-shrink: 0;
  margin: 0 var(--space-2);
  transition: background var(--duration-fast);
}
.step.active .step-number {
  background: var(--color-accent);
  color: var(--color-text-on-accent);
  border-color: var(--color-accent);
}
.step.active .step-label { color: var(--color-accent-text); }
.step.completed .step-number {
  background: var(--color-success);
  color: #fff;
  border-color: var(--color-success);
}
.step.completed .step-label { color: var(--color-text-primary); }
.step.completed + .step-line { background: var(--color-success); }

/* Signup role cards */
.role-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}
.role-card {
  position: relative;
  background: var(--color-bg-inset);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  text-align: center;
  cursor: pointer;
  transition: border-color var(--duration-fast), background var(--duration-fast);
}
.role-card:hover { border-color: var(--color-border-strong); }
.role-card.selected {
  border-color: var(--color-accent);
  background: var(--color-accent-subtle);
}
.role-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0; height: 0;
}
.role-card-icon {
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-2);
  color: var(--color-text-muted);
  transition: color var(--duration-fast);
}
.role-card-icon svg { width: 32px; height: 32px; }
.role-card.selected .role-card-icon { color: var(--color-accent-text); }
.role-card-title { font-size: var(--font-sm); font-weight: var(--fw-semibold); margin-bottom: 2px; }
.role-card-desc { font-size: var(--font-xs); color: var(--color-text-muted); }

@media (max-width: 480px) {
  .role-cards { grid-template-columns: 1fr; }
}

/* Signup preference selectors */
.pref-group { margin-bottom: var(--space-6); }
.pref-group-label {
  font-size: var(--font-sm);
  font-weight: var(--fw-medium);
  margin-bottom: var(--space-2);
  display: block;
}
.pref-options {
  display: flex; gap: var(--space-2); flex-wrap: wrap;
}
.pref-card {
  flex: 1; min-width: 100px;
  position: relative;
  background: var(--color-bg-inset);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: var(--space-3);
  text-align: center;
  cursor: pointer;
  transition: border-color var(--duration-fast);
  font-size: var(--font-xs);
  font-weight: var(--fw-medium);
}
.pref-card:hover { border-color: var(--color-border-strong); }
.pref-card.selected { border-color: var(--color-accent); background: var(--color-accent-subtle); }
.pref-card input { position: absolute; opacity: 0; width: 0; height: 0; }

.scheme-swatches {
  display: flex; gap: var(--space-2); flex-wrap: wrap;
}
.scheme-swatch {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid var(--color-border);
  cursor: pointer;
  transition: border-color var(--duration-fast), transform var(--duration-fast);
  position: relative;
}
.scheme-swatch:hover { transform: scale(1.1); }
.scheme-swatch.selected { border-color: var(--color-text-primary); border-width: 3px; }
.scheme-swatch input { position: absolute; opacity: 0; width: 0; height: 0; }

/* Signup step content transitions */
.step-content {
  display: none;
}
.step-content.active { display: block; }

/* Step navigation buttons */
.step-nav {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-4);
}
.step-nav .btn { flex: 1; }

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-hero { text-align: center; max-width: 800px; margin: 0 auto; }
.about-hero h1 {
  font-family: var(--font-display);
  font-size: var(--font-hero);
  font-weight: var(--fw-semibold);
  line-height: 1.2;
}

.about-story { max-width: 720px; margin: 0 auto; }
.about-story h2 {
  font-family: var(--font-display);
  font-size: var(--font-xl);
  font-weight: var(--fw-semibold);
  margin-bottom: var(--space-4);
}
.about-story h3 {
  font-size: var(--font-base);
  font-weight: var(--fw-semibold);
  margin-top: var(--space-6);
  margin-bottom: var(--space-2);
}
.about-story p {
  color: var(--color-text-secondary);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--space-4);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  max-width: 1100px;
  margin: 0 auto;
}
.team-card {
  text-align: center;
  padding: var(--space-6);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
}
.team-card:hover { border-color: var(--color-border-strong); box-shadow: var(--shadow-sm); }
.team-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--color-bg-hover);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto var(--space-3);
  font-family: var(--font-display);
  font-size: var(--font-lg);
  font-weight: var(--fw-semibold);
  color: var(--color-text-muted);
}
.team-name { font-size: var(--font-sm); font-weight: var(--fw-semibold); }
.team-title { font-size: var(--font-xs); color: var(--color-text-muted); margin-top: 2px; }
.team-bio { font-size: var(--font-xs); color: var(--color-text-muted); margin-top: var(--space-2); line-height: var(--lh-relaxed); }

@media (max-width: 1024px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) { .team-grid { grid-template-columns: 1fr; } }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: var(--space-10);
  max-width: 1000px;
  margin: 0 auto;
  align-items: start;
}
@media (max-width: 768px) {
  .contact-layout { grid-template-columns: 1fr; }
}

.contact-form { display: flex; flex-direction: column; gap: var(--space-4); }
.contact-form .auth-field { margin-bottom: 0; }
.contact-form select {
  width: 100%;
  padding: 10px var(--space-3);
  font-family: var(--font-body);
  font-size: var(--font-sm);
  background: var(--color-bg-inset);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text-primary);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23888' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}
.contact-form select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px hsla(var(--accent-h), var(--accent-s), var(--accent-l), 0.3);
}
.contact-form textarea {
  width: 100%;
  min-height: 120px;
  padding: var(--space-3);
  font-family: var(--font-body);
  font-size: var(--font-sm);
  background: var(--color-bg-inset);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text-primary);
  resize: vertical;
}
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px hsla(var(--accent-h), var(--accent-s), var(--accent-l), 0.3);
}
.char-counter {
  font-size: var(--font-xs);
  color: var(--color-text-muted);
  text-align: right;
  margin-top: 2px;
}
.hipaa-note {
  font-size: var(--font-xs);
  color: var(--color-text-muted);
  background: var(--color-bg-hover);
  padding: var(--space-3);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--color-info);
}
.response-time {
  font-size: var(--font-xs);
  color: var(--color-text-muted);
  text-align: center;
  margin-top: var(--space-2);
}

.contact-cards { display: flex; flex-direction: column; gap: var(--space-4); }
.contact-info-card {
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
}
.contact-info-card-icon {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-accent-subtle);
  color: var(--color-accent-text);
  border-radius: var(--radius-xs);
  font-size: 16px;
  margin-bottom: var(--space-2);
}
.contact-info-card h3 { font-size: var(--font-sm); font-weight: var(--fw-semibold); margin-bottom: 2px; }
.contact-info-card p { font-size: var(--font-xs); color: var(--color-text-muted); }
.contact-info-card .email-link { color: var(--color-accent-text); font-size: var(--font-sm); }

/* ============================================================
   LEGAL PAGE
   ============================================================ */
.legal-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--space-8);
  max-width: 1100px;
  margin: 0 auto;
}
.legal-nav {
  position: sticky;
  top: calc(64px + var(--space-6));
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  align-self: start;
}
.legal-nav a {
  font-size: var(--font-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  padding: var(--space-2) var(--space-3);
  border-left: 2px solid transparent;
  transition: all var(--duration-fast);
}
.legal-nav a:hover { color: var(--color-text-primary); }
.legal-nav a.active {
  color: var(--color-accent-text);
  border-left-color: var(--color-accent);
  font-weight: var(--fw-medium);
}

.legal-content { max-width: 800px; }
.legal-section { padding: var(--space-8) 0; border-bottom: 1px solid var(--color-border); }
.legal-section:last-child { border-bottom: none; }
.legal-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}
.legal-section h2 {
  font-family: var(--font-display);
  font-size: var(--font-xl);
  font-weight: var(--fw-semibold);
}
.legal-meta {
  display: flex; gap: var(--space-2); align-items: center;
}
.legal-date {
  font-size: var(--font-xs);
  color: var(--color-text-muted);
}
.legal-version {
  font-size: var(--font-xs);
  font-family: var(--font-mono);
  background: var(--color-bg-hover);
  padding: 2px 6px;
  border-radius: var(--radius-xs);
}
.legal-actions {
  display: flex; gap: var(--space-2);
}
.legal-actions button {
  font-size: var(--font-xs);
  font-family: var(--font-body);
  padding: 4px 10px;
  background: var(--color-bg-hover);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xs);
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all var(--duration-fast);
}
.legal-actions button:hover {
  background: var(--color-bg-surface);
  color: var(--color-text-primary);
}

.legal-section h3 {
  font-size: var(--font-base);
  font-weight: var(--fw-semibold);
  margin: var(--space-6) 0 var(--space-2);
}
.legal-section p,
.legal-section ul {
  font-size: var(--font-sm);
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-3);
}
.legal-section ul {
  padding-left: var(--space-6);
}
.legal-section li { margin-bottom: var(--space-1); }

@media (max-width: 768px) {
  .legal-layout { grid-template-columns: 1fr; }
  .legal-nav {
    position: sticky;
    top: 64px;
    flex-direction: row;
    overflow-x: auto;
    background: var(--color-bg-secondary);
    padding: var(--space-2);
    border-radius: var(--radius-sm);
    gap: 0;
    z-index: var(--z-raised);
  }
  .legal-nav a {
    border-left: none;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    padding: var(--space-2) var(--space-3);
  }
  .legal-nav a.active { border-bottom-color: var(--color-accent); border-left: none; }
}

/* Print styles */
@media print {
  .pub-header,
  .pub-footer,
  .legal-nav,
  .legal-actions { display: none !important; }
  .legal-layout { grid-template-columns: 1fr; }
  .legal-section { break-before: page; }
}

/* ============================================================
   SCROLL REVEAL (used across public pages)
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}
