@import url('https://fonts.googleapis.com/css2?family=Courier+Prime:wght@400;700&family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;0,6..72,600;1,6..72,400;1,6..72,500&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  /* Dentalminder Brand Palette: Warm Charcoal + Warm Stone + Deep Pine & Calm Sage */
  --canvas: #F6F4EF;
  --surface: #FAF9F6;
  --surface-pure: #FFFFFF;
  --surface-warm: #ECE8DF;
  --charcoal: #1F211E;
  --charcoal-soft: #2B2E29;
  --forest-bg: #1F211E;
  --border: #DFDBD0;
  --border-strong: #CCC6B8;

  --pine: #2F5246;
  --pine-dark: #213A31;
  --pine-soft: #E5EEE8;
  --sage: #6E907F;
  --sage-light: #89AD9B;
  --sage-mist: #DCE6DF;
  --sage-tint: #ECF2EE;

  --terracotta: #A8573B;
  --terracotta-soft: #FBF0EC;
  --gold: #9E7324;
  --gold-soft: #FCF6EA;
  --crimson: #992E2F;
  --crimson-soft: #FCF0F0;

  --ink: #1F211E;
  --muted: #5C625B;

  --sans: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --mono: 'Courier Prime', ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--canvas);
  color: var(--ink);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
}

/* Minimalist Charcoal Announcement Bar */
.founding-banner {
  background: var(--charcoal);
  color: rgba(246, 244, 239, 0.86);
  text-align: center;
  padding: 9px 18px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  border-bottom: 1px solid rgba(137, 173, 155, 0.16);
}
.founding-banner strong {
  color: var(--sage-light);
  font-weight: 700;
}
.banner-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sage-light);
  margin-right: 8px;
  vertical-align: middle;
}

/* Clean Editorial Header */
.topbar {
  background: rgba(246, 244, 239, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 15px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 40;
  gap: 18px;
}
.brand {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  text-decoration: none;
  flex-shrink: 0;
}
.brand-logo-img {
  height: 28px;
  width: auto;
  display: block;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 14px;
  color: var(--muted);
}
.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 400;
  opacity: 0.78;
  transition: opacity 0.16s, color 0.16s;
}
.nav-links a:hover {
  opacity: 1;
  color: var(--pine);
}

/* Mono Kickers (Ridgeview Courier Prime Craft) */
.kicker {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--pine);
  margin-bottom: 12px;
  display: block;
}

/* Restrained Sage & Neutral Pills */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.pill-pine { background: var(--sage-mist); color: var(--pine-dark); }
.pill-sage { background: var(--sage-tint); color: var(--pine); border: 1px solid rgba(47, 82, 70, 0.14); }
.pill-warm { background: var(--surface-warm); color: #4A5049; }
.pill-ochre, .pill-gold { background: var(--gold-soft); color: var(--gold); }
.pill-terra { background: var(--terracotta-soft); color: var(--terracotta); }
.pill-crimson { background: var(--crimson-soft); color: var(--crimson); }

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  background: var(--pine);
  box-shadow: 0 0 0 3px var(--sage-mist);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 9px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.16s ease;
}
.btn-primary {
  background: var(--pine);
  color: var(--canvas);
}
.btn-primary:hover {
  background: var(--pine-dark);
}
.btn-charcoal {
  background: var(--charcoal);
  color: var(--canvas);
}
.btn-charcoal:hover {
  background: var(--charcoal-soft);
}
.btn-terra {
  background: var(--charcoal);
  color: var(--canvas);
}
.btn-terra:hover {
  background: var(--pine-dark);
}
.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--border-strong);
}
.btn-outline:hover {
  background: var(--surface-pure);
  border-color: var(--pine);
  color: var(--pine-dark);
}
.btn-sm {
  padding: 8px 14px;
  font-size: 13px;
  border-radius: 7px;
}

/* ==================== EDITORIAL LANDING PAGE ==================== */
.editorial-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 36px;
}

/* Section 1: Calm Editorial Split Hero */
.editorial-hero {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 64px;
  align-items: center;
  padding: 76px 0 96px;
}
.editorial-hero h1 {
  font-size: 58px;
  line-height: 1.04;
  margin: 0 0 24px;
  color: var(--charcoal);
  font-weight: 400;
}
.editorial-hero h1 em {
  font-style: italic;
  color: var(--pine);
  font-weight: 400;
}
.hero-lead {
  font-size: 17.5px;
  line-height: 1.66;
  color: var(--muted);
  margin: 0 0 32px;
  max-width: 510px;
  font-weight: 400;
}
.hero-proof-note {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.hero-proof-note strong {
  color: var(--charcoal);
}

.hero-visual-stage {
  position: relative;
}
.hero-photo-frame {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--surface-warm);
  border: 1px solid var(--border);
  box-shadow: 0 28px 64px rgba(31, 33, 30, 0.10);
}
.hero-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.92) contrast(1.02);
}
.floating-autopilot-card {
  position: absolute;
  bottom: -42px;
  left: -28px;
  right: 32px;
  background: rgba(250, 249, 246, 0.96);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 15px 18px;
  box-shadow: 0 20px 48px rgba(31, 33, 30, 0.12);
}
.autopilot-row {
  font-size: 13px;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 10px;
  align-items: baseline;
}
.autopilot-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.autopilot-time {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--pine);
  font-weight: 700;
  flex-shrink: 0;
}

/* Section 2: Full-Bleed Warm Charcoal + Sage Rhythm Band */
.hands-off-band {
  background: var(--charcoal);
  color: var(--canvas);
  padding: 88px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.hands-off-band h2 {
  color: var(--canvas);
  font-size: 40px;
  font-weight: 400;
  max-width: 680px;
  margin: 0 0 52px;
  line-height: 1.14;
}
.hands-off-band h2 em {
  color: var(--sage-light);
  font-style: italic;
}
.three-step-ledger {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 44px;
  border-top: 1px solid rgba(220, 230, 223, 0.16);
  padding-top: 36px;
}
.step-col-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--sage-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.step-col h3 {
  color: var(--canvas);
  font-size: 24px;
  font-weight: 400;
  margin: 0 0 12px;
}
.step-col p {
  color: rgba(246, 244, 239, 0.72);
  font-size: 14.5px;
  margin: 0;
  line-height: 1.65;
}
.effort-tag {
  display: inline-block;
  margin-top: 18px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(110, 144, 127, 0.16);
  border: 1px solid rgba(137, 173, 155, 0.25);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--sage-light);
  letter-spacing: 0.05em;
}

/* Section 3: Interactive 5-Scenario Showcase + Soft Sage QR Callout */
.showcase-section {
  padding: 96px 0 84px;
}
.showcase-header {
  max-width: 660px;
  margin-bottom: 46px;
}
.showcase-header h2 {
  font-size: 40px;
  font-weight: 400;
  line-height: 1.13;
  margin: 0 0 14px;
}
.showcase-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 40px;
  align-items: start;
}
.scenario-tabs {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
}
.scenario-tab {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 18px 14px;
  text-align: left;
  cursor: pointer;
  font-family: var(--sans);
  transition: background 0.16s, border-color 0.16s;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.scenario-tab:hover {
  background: rgba(47, 82, 70, 0.04);
}
.scenario-tab.active {
  background: var(--surface-pure);
  border-left: 3px solid var(--pine);
  padding-left: 16px;
}
.scenario-tab-title {
  font-weight: 500;
  font-size: 14.5px;
  color: var(--ink);
  display: block;
}
.scenario-tab-effort {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--pine);
  font-weight: 700;
  white-space: nowrap;
}

.scenario-stage {
  background: var(--surface-pure);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px 38px;
  box-shadow: 0 14px 40px rgba(31, 33, 30, 0.05);
}
.timeline-step {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.timeline-step:last-child { border-bottom: none; }
.timeline-time {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--pine);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-top: 3px;
}

/* Soft-Sage Point-of-Use QR Callout */
.subtle-qr-callout {
  margin-top: 40px;
  background: var(--sage-tint);
  border: 1px solid var(--sage-mist);
  border-radius: 16px;
  padding: 28px 32px;
  display: grid;
  grid-template-columns: 310px 1fr auto;
  gap: 32px;
  align-items: center;
}

/* Section 4: Editorial Story + Three Quiet Outputs */
.story-split {
  display: grid;
  grid-template-columns: 0.94fr 1.06fr;
  gap: 64px;
  align-items: center;
  padding: 84px 0 68px;
  border-top: 1px solid var(--border);
}
.story-photo {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--surface-warm);
  border: 1px solid var(--border);
  box-shadow: 0 20px 48px rgba(31, 33, 30, 0.08);
}
.story-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.94);
}
.story-copy h2 {
  font-size: 38px;
  font-weight: 400;
  line-height: 1.14;
  margin: 0 0 20px;
}
.story-copy p {
  font-size: 16px;
  color: var(--muted);
  margin: 0 0 18px;
}
.editorial-quote {
  margin-top: 26px;
  padding: 14px 0 14px 20px;
  border-left: 2px solid var(--sage);
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  line-height: 1.45;
  color: var(--charcoal);
}

.visual-proof-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}
.proof-artifact-card {
  background: var(--surface-pure);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 8px 28px rgba(31, 33, 30, 0.04);
}

/* Living Compliance Document Studio Spotlight (Homepage + Cockpit) */
.studio-spotlight {
  margin: 20px 0 64px;
  background: var(--surface-pure);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px 42px;
  box-shadow: 0 18px 46px rgba(31, 33, 30, 0.05);
}
.studio-manual-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 26px;
}
.studio-manual-card {
  background: var(--canvas);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}
.studio-manual-num {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--pine);
  letter-spacing: 0.08em;
}
.studio-signoff-strip {
  margin-top: 26px;
  padding: 24px 26px;
  border-radius: 14px;
  background: var(--sage-tint);
  border: 1px solid var(--sage-mist);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: center;
}
.signoff-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.signoff-chip {
  background: var(--surface-pure);
  border: 1px solid var(--sage-mist);
  color: var(--charcoal);
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
}

/* Section 5: Transparent North American Pricing */
.pricing-section {
  padding: 84px 0 88px;
  border-top: 1px solid var(--border);
}
.pricing-controls-bar {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.seg-toggle {
  display: inline-flex;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  overflow: hidden;
  background: var(--surface-pure);
  padding: 2px;
  gap: 2px;
}
.seg-btn {
  border: none;
  border-radius: 7px;
  padding: 7px 13px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  background: transparent;
  color: var(--muted);
  transition: all 0.15s;
}
.seg-btn.active {
  background: var(--charcoal);
  color: var(--canvas);
}
.pricing-ledger {
  display: grid;
  grid-template-columns: 1.14fr 0.86fr;
  gap: 28px;
  margin-top: 36px;
}
.price-sheet {
  background: var(--surface-pure);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px;
}
.price-sheet.featured {
  border: 1.5px solid var(--pine);
  box-shadow: 0 20px 48px rgba(47, 82, 70, 0.08);
  position: relative;
}
.price-amount {
  font-family: var(--serif);
  font-size: 46px;
  font-weight: 400;
  color: var(--charcoal);
  line-height: 1;
  margin: 16px 0 8px;
}
.us-early-access-bar {
  margin-top: 22px;
  padding: 16px 22px;
  border-radius: 12px;
  background: var(--sage-tint);
  border: 1px solid var(--sage-mist);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13.5px;
  color: var(--ink);
}

/* Section 6: Readiness Self-Audit + FAQ */
.readiness-card {
  background: var(--sage-tint);
  border: 1px solid var(--sage-mist);
  border-radius: 18px;
  padding: 38px 40px;
}
.faq-item {
  background: var(--surface-pure);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 17px 22px;
  margin-bottom: 10px;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 500;
  font-size: 15.5px;
  color: var(--charcoal);
}

/* Editorial Charcoal Footer */
.site-footer {
  background: var(--charcoal);
  color: rgba(246, 244, 239, 0.8);
  padding: 64px 0 42px;
  margin-top: 36px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr auto;
  gap: 40px;
  align-items: start;
  padding-bottom: 42px;
  border-bottom: 1px solid rgba(220, 230, 223, 0.14);
}
.footer-heading {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sage-light);
  margin: 0 0 14px;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 13.5px;
}
.footer-links a {
  color: rgba(246, 244, 239, 0.76);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-links a:hover {
  color: var(--canvas);
}
.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: rgba(246, 244, 239, 0.56);
}

/* ==================== PORTAL A: DENTIST COCKPIT ==================== */
.container { max-width: 1180px; margin: 0 auto; padding: 30px 24px 64px; }
.cockpit-shell { max-width: 1240px; margin: 0 auto; padding: 32px 36px 76px; }

.cockpit-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
}

.cockpit-tabs {
  display: flex;
  gap: 26px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 26px;
  overflow-x: auto;
}
.cockpit-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 12px 2px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
}
.cockpit-tab:hover { color: var(--ink); }
.cockpit-tab.active {
  color: var(--pine-dark);
  border-bottom-color: var(--pine);
  font-weight: 600;
}

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }

.card {
  background: var(--surface-pure);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 26px;
}
.card h2, .card h3 { margin-top: 0; }
.muted { color: var(--muted); font-size: 13.5px; }

/* 5 Minimalist Health Gauges */
.rings-row {
  display: grid;
  grid-template-columns: 1.2fr repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.ring-card {
  background: var(--surface-pure);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 12px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.ring-card:hover, .ring-card.active {
  border-color: var(--pine);
  background: var(--sage-tint);
}
.ring-card.master {
  background: var(--charcoal);
  color: var(--canvas);
  border-color: var(--charcoal);
}
.ring-card.master:hover, .ring-card.master.active {
  background: var(--charcoal-soft);
  border-color: var(--sage-light);
}
.ring-label { font-size: 12px; font-weight: 600; margin-top: 8px; line-height: 1.25; }

/* Approval Queue & Routine Ledger */
.approval-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.approval-item:last-child { border-bottom: none; }
.approval-item.incident { background: var(--crimson-soft); border-radius: 10px; border-bottom: none; margin-bottom: 8px; }

.staff-row { padding: 12px 0; border-bottom: 1px solid var(--border); }
.staff-row:last-child { border-bottom: none; }
.reliability-track { width: 100%; height: 5px; background: var(--sage-mist); border-radius: 99px; overflow: hidden; margin-top: 7px; }
.reliability-fill { height: 100%; background: var(--pine); border-radius: 99px; }

.horizon-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: 10px; }
.horizon-month { background: var(--canvas); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; min-height: 90px; }
.horizon-month-title { font-family: var(--mono); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin-bottom: 6px; }
.horizon-dot { font-size: 11.5px; padding: 3px 6px; border-radius: 5px; background: var(--surface-pure); border: 1px solid var(--border); margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.routine-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 4px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.routine-row:last-child { border-bottom: none; }
.routine-row.escalated { background: #fffaf8; padding-left: 10px; border-left: 3px solid var(--terracotta); }

/* Slide-Over Drawers & Modals */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(31, 33, 30, 0.45);
  display: none;
  justify-content: flex-end;
  z-index: 90;
}
.drawer-backdrop.open { display: flex; }
.drawer-panel {
  width: 100%;
  max-width: 480px;
  background: var(--surface-pure);
  height: 100vh;
  overflow-y: auto;
  padding: 28px 26px 48px;
  box-shadow: -14px 0 40px rgba(31, 33, 30, 0.18);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(31, 33, 30, 0.52);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 16px;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: var(--surface-pure);
  border: 1px solid var(--border);
  border-radius: 16px;
  max-width: 650px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 30px;
  box-shadow: 0 24px 60px rgba(31, 33, 30, 0.24);
}

label.field-label { display: block; font-size: 12.5px; font-weight: 500; margin: 11px 0 4px; color: #363C36; }
input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="date"], select, textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  font-size: 13.5px;
  font-family: var(--sans);
  background: #fff;
  color: var(--ink);
}
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 9px 11px; border-bottom: 1px solid var(--border); text-align: left; }
th { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); background: var(--canvas); }

.checkbox-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 9px; margin: 10px 0 14px; }
.chk-item { display: flex; align-items: flex-start; gap: 9px; padding: 9px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-pure); font-size: 13px; cursor: pointer; }
.chk-item input[type="checkbox"] { accent-color: var(--pine); margin-top: 3px; }

.alert-box { padding: 12px 15px; border-radius: 10px; font-size: 13px; margin-top: 10px; }
.alert-ok { background: var(--sage-tint); border: 1px solid var(--sage-mist); color: var(--pine-dark); }
.alert-err { background: var(--terracotta-soft); border: 1px solid #eabaa8; color: #8c3719; }
.alert-warn { background: var(--gold-soft); border: 1px solid #efd39c; color: #855210; }

pre.doc-preview {
  white-space: pre-wrap;
  font-family: var(--mono);
  font-size: 11.5px;
  background: var(--charcoal);
  color: #EAECE8;
  padding: 16px;
  border-radius: 12px;
  overflow-x: auto;
  line-height: 1.55;
}

.kpi-card { background: var(--surface-pure); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; }
.kpi-label { font-family: var(--mono); font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.kpi-val { font-family: var(--serif); font-size: 28px; font-weight: 500; margin-top: 4px; color: var(--pine-dark); }

.hidden { display: none !important; }

.ops-subnav {
  display: inline-flex;
  gap: 6px;
  padding: 5px;
  background: var(--surface-warm);
  border: 1px solid var(--border);
  border-radius: 11px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.ops-subbtn {
  border: 0;
  background: transparent;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s ease;
}
.ops-subbtn.active {
  background: var(--surface-pure);
  color: var(--pine-dark);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(31, 33, 30, 0.08);
}

#how-it-works, #workflows, #compliance-studio, #pricing, #readiness {
  scroll-margin-top: 86px;
}

.canada-trust-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  padding: 14px 20px;
  margin: 0 0 56px;
  background: var(--sage-tint);
  border: 1px solid var(--sage-mist);
  border-radius: 12px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--pine-dark);
  letter-spacing: 0.015em;
}

.founder-note-card {
  margin-top: 18px;
  padding: 18px 20px;
  background: var(--sage-tint);
  border: 1px solid var(--sage-mist);
  border-left: 3.5px solid var(--pine);
  border-radius: 12px;
}

@media (max-width: 980px) {
  .editorial-wrap { padding: 0 20px; }
  .topbar { padding: 14px 20px; }
  .editorial-hero, .story-split, .showcase-grid, .pricing-ledger, .three-step-ledger, .subtle-qr-callout, .visual-proof-trio, .footer-grid, .studio-manual-grid, .studio-signoff-strip {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .studio-spotlight { padding: 26px 22px; }
  .editorial-hero { padding: 48px 0 64px; }
  .editorial-hero h1 { font-size: 40px; }
  .floating-autopilot-card { position: static; margin-top: 16px; }
  .rings-row { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .readiness-card { padding: 26px 22px; }
}

@media (max-width: 640px) {
  .hide-xs { display: none !important; }
  .brand-logo-img { height: 22px; }
  .topbar { padding: 12px 16px; gap: 10px; }
  .topbar .btn-sm { padding: 6px 10px; font-size: 12px; }
}
