/* Editorial Studio Design System — OKLCH Tokens & Optical Craft */
:root {
  --bg-canvas: oklch(0.985 0.005 85);
  --bg-surface: oklch(1 0 0);
  --bg-subtle: oklch(0.96 0.007 85);
  --bg-ink: oklch(0.18 0.014 260);
  --text-primary: oklch(0.19 0.015 260);
  --text-secondary: oklch(0.42 0.014 260);
  --text-muted: oklch(0.55 0.012 260);
  --border-hairline: oklch(0.89 0.008 85);
  --border-strong: oklch(0.78 0.012 85);
  --accent: oklch(0.53 0.21 24);
  --accent-hover: oklch(0.46 0.21 24);
  --accent-soft: oklch(0.95 0.03 24);
  --ok: oklch(0.52 0.14 152);
  --ok-soft: oklch(0.95 0.03 152);

  --font-display: "Bricolage Grotesque", "Be Vietnam Pro", system-ui, sans-serif;
  --font-sans: "Be Vietnam Pro", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;

  --shadow-card: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px -12px rgba(15, 23, 42, 0.12);
  --shadow-elevated: 0 2px 6px rgba(15, 23, 42, 0.05), 0 18px 40px -16px rgba(15, 23, 42, 0.16);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.62;
  color: var(--text-primary);
  background: var(--bg-canvas);
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

p { margin: 0; }
a { color: inherit; }

.container {
  width: min(1140px, 100% - 32px);
  margin-inline: auto;
}

.tabular { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--bg-ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  z-index: 100;
}
.skip-link:focus { left: 16px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklch, var(--bg-canvas) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-hairline);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 68px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--bg-ink);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 150ms ease;
}
.nav-links a:hover, .nav-links a:focus-visible { color: var(--text-primary); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 120ms cubic-bezier(0.2, 0, 0, 1), background-color 160ms ease, border-color 160ms ease;
}
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-hover); }

.btn-dark {
  background: var(--bg-ink);
  color: #fff;
}
.btn-dark:hover { background: oklch(0.25 0.015 260); }

.btn-outline {
  background: var(--bg-surface);
  border-color: var(--border-strong);
  color: var(--text-primary);
}
.btn-outline:hover { background: var(--bg-subtle); }

/* Hero — Asymmetric Editorial Split */
.hero {
  padding: 56px 0 64px;
  border-bottom: 1px solid var(--border-hairline);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 44px;
  align-items: start;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 16px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 4px var(--ok-soft);
}

.hero h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.35rem);
  font-weight: 800;
  margin-bottom: 18px;
}

.hero-lead {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 56ch;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border-hairline);
}

.proof-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
}

.proof-item span {
  font-size: 13px;
  color: var(--text-muted);
}

/* Interactive Demo Console Card */
.console-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-elevated);
}

.console-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-hairline);
}

.console-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
}

.console-tag {
  font-size: 12px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--ok-soft);
  color: var(--ok);
}

.demo-list {
  display: grid;
  gap: 10px;
}

.demo-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  border: 1px solid var(--border-hairline);
  text-decoration: none;
  transition: transform 140ms ease, border-color 140ms ease, background-color 140ms ease;
}

.demo-row:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
  background: var(--bg-surface);
}

.demo-row strong {
  display: block;
  font-size: 15px;
  margin-bottom: 2px;
}

.demo-row span {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
}

.demo-pill {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 5px 10px;
  border-radius: 8px;
}

/* Sections */
.section {
  padding: 68px 0;
  border-bottom: 1px solid var(--border-hairline);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
}

.section-head h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.3rem);
  font-weight: 800;
  max-width: 24ch;
}

.section-head p {
  color: var(--text-secondary);
  max-width: 46ch;
}

/* Showcase Bento */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

.showcase-card {
  grid-column: span 6;
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 14px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.showcase-card.featured {
  grid-column: span 12;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 24px;
  padding: 18px;
}

.showcase-preview {
  border-radius: var(--radius-md);
  padding: 22px;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.preview-edu { background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%); }
.preview-clinic { background: linear-gradient(135deg, #064e3b 0%, #0f766e 100%); }
.preview-fnb { background: linear-gradient(135deg, #3b1d0c 0%, #7c2d12 100%); }
.preview-portal { background: linear-gradient(135deg, #18181b 0%, #991b1b 100%); min-height: 260px; }

.preview-chip {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(6px);
}

.preview-meta h3 {
  font-size: 22px;
  margin-bottom: 6px;
}

.preview-meta p {
  font-size: 14px;
  opacity: 0.88;
}

.showcase-body {
  padding: 4px 6px 6px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.showcase-body p {
  font-size: 14.5px;
  color: var(--text-secondary);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  font-size: 12px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-hairline);
  color: var(--text-secondary);
}

/* Pricing Grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}

.price-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

.price-card.recommended {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow-elevated);
}

.price-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.price-amount {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  margin: 10px 0 4px;
}

.price-sub {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  font-size: 14.5px;
  color: var(--text-secondary);
}

.check-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.check-list li::before {
  content: "✓";
  color: var(--ok);
  font-weight: 800;
  flex-shrink: 0;
}

/* Process & Comparison */
.compare-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 28px;
}

.compare-col {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 22px;
}

.compare-col.win {
  background: var(--bg-ink);
  color: #f8fafc;
  border-color: var(--bg-ink);
}
.compare-col.win p, .compare-col.win li { color: #cbd5e1; }

.compare-col h3 { font-size: 18px; margin-bottom: 12px; }
.compare-col ul { margin: 0; padding-left: 18px; display: grid; gap: 8px; font-size: 14.5px; color: var(--text-secondary); }

/* FAQ Accordion */
.faq-list {
  display: grid;
  gap: 12px;
  max-width: 780px;
}

.faq-list details {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 16px 20px;
}

.faq-list summary {
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--accent);
}
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-hairline);
  color: var(--text-secondary);
  font-size: 15px;
}

/* Contact Split */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 36px;
  align-items: start;
}

.lead-form {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-card);
  display: grid;
  gap: 14px;
}

.field label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 6px;
}

.field input, .field select, .field textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 16px;
  background: var(--bg-canvas);
  color: var(--text-primary);
}
.field textarea { min-height: 92px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  background: #fff;
}

.form-status {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
}
.form-status[data-state="success"] { background: var(--ok-soft); color: var(--ok); }
.form-status[data-state="error"] { background: var(--accent-soft); color: var(--accent); }

.site-footer {
  padding: 32px 0 48px;
  font-size: 14px;
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

@media (max-width: 920px) {
  .hero-grid, .showcase-card.featured, .pricing-grid, .compare-box, .contact-grid {
    grid-template-columns: 1fr;
  }
  .showcase-card { grid-column: span 12; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .nav-links { display: none; }
}

@media (max-width: 560px) {
  .proof-strip { grid-template-columns: 1fr; }
  .hero { padding: 36px 0 44px; }
  .section { padding: 48px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
