/* Sutra CRM marketing site — single-page styles.
 * Palette and type system match the application (slate-blue, blue-900 accents)
 * for visual coherence between sutracrm.io and the live product.
 */

:root {
  --brand:        #1e3a8a;
  --brand-hover:  #1d3680;
  --brand-soft:   #dbeafe;
  --brand-strong: #2563eb;
  --brand-text:   #1e40af;

  --text:      #0f172a;
  --muted:     #475569;
  --tertiary:  #94a3b8;
  --border:    #cbd5e1;
  --border-2:  #e2e8f0;

  --surface:    #ffffff;
  --surface-2:  #f8fafc;
  --surface-3:  #f1f5f9;

  --dark-bg:   #0b1220;
  --dark-2:    #1e293b;
  --dark-text: #cbd5e1;
  --dark-mute: #64748b;

  --radius:    6px;
  --radius-lg: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font: 16px/1.55 -apple-system, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--brand-strong); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; cursor: pointer; }
img { max-width: 100%; display: block; height: auto; }
ul { list-style: none; padding: 0; margin: 0; }
h1, h2, h3, h4 { color: var(--text); margin: 0 0 .4em; font-weight: 600; line-height: 1.2; }
i.ti { line-height: 1; }
code, pre { font-family: "SFMono-Regular", "Menlo", "Consolas", monospace; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

.topnav {
  background: var(--surface);
  border-bottom: 1px solid var(--border-2);
  position: sticky;
  top: 0;
  z-index: 50;
}
.topnav-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 60px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 16px;
  color: var(--text);
  text-decoration: none;
}
.brand-mark {
  background: var(--brand);
  color: #ffffff;
  width: 26px;
  height: 26px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
}
.topnav-links {
  margin-left: auto;
  display: flex;
  gap: 22px;
  align-items: center;
  font-size: 14px;
}
.topnav-links a {
  color: var(--muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.topnav-links a:hover { color: var(--text); }
.topnav-links .ti { font-size: 13px; }
.topnav-links a.nav-cta {
  background: var(--brand);
  color: #fff;
  padding: 6px 12px;
  border-radius: 4px;
  font-weight: 500;
}
.topnav-links a.nav-cta:hover {
  background: var(--brand-2, #1d4ed8);
  color: #fff;
}

/* CSS-only hamburger toggle — hidden on desktop, shown ≤720px.
   The hidden checkbox holds the open/closed state; clicking the
   label flips the state. */
.nav-toggle { display: none; }
.nav-toggle-btn { display: none; }

@media (max-width: 720px) {
  .topnav-inner {
    flex-wrap: wrap;
    height: auto;
    padding: 12px 16px;
    gap: 10px;
    position: relative;
  }
  .nav-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    border-radius: 4px;
  }
  .nav-toggle-btn i { font-size: 20px; }
  .nav-toggle-btn .ti-x { display: none; }
  .nav-toggle:checked ~ .nav-toggle-btn .ti-menu-2 { display: none; }
  .nav-toggle:checked ~ .nav-toggle-btn .ti-x      { display: inline; }

  .topnav-links {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-left: 0;
    border-top: 1px solid var(--border-2);
    padding-top: 8px;
  }
  .nav-toggle:checked ~ .topnav-links { display: flex; }
  .topnav-links a {
    padding: 10px 4px;
    border-bottom: 1px solid var(--border-2);
  }
  .topnav-links a:last-child { border-bottom: 0; }
  .topnav-links a.nav-cta {
    margin: 8px 0;
    justify-content: center;
    padding: 10px 12px;
    border-bottom: 0;
  }
}

.hero {
  background: linear-gradient(135deg, #eff6ff 0%, var(--surface) 70%);
  border-bottom: 1px solid var(--border-2);
  padding: 72px 0 80px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-copy { min-width: 0; }
.hero-preview { min-width: 0; }

/* Right-bleed hero: copy stays aligned to the container's left edge, the
   preview card extends to the right viewport edge for more presence.
   Desktop only (>960px); below that the hero-grid stacks (see media query). */
@media (min-width: 961px) {
  .hero { overflow-x: clip; }
  .hero .hero-grid.container {
    max-width: none;
    margin-left: max(24px, calc((100vw - 1180px) / 2 + 24px));
    margin-right: 0;
    padding-right: 0;
    /* Wider copy column closes the dead space that appeared between copy
       and the (capped, right-aligned) preview on wide screens. */
    grid-template-columns: minmax(0, 540px) minmax(0, 1fr);
    gap: 40px;
    align-items: center;
  }
  /* Fill the column up to a cap, right-aligned so it hugs the viewport
     edge on ultrawide. (width:100% makes it grow to fill; justify-self:end
     pins it right when the cap kicks in — margin-left:auto would instead
     collapse the grid item to its content width.) */
  .hero .hero-preview {
    width: 100%;
    max-width: 920px;
    justify-self: end;
  }
  /* Force the frame to the column width (min-width:0 stops it expanding to
     the dashboard's intrinsic min-content ~920px). Its existing
     overflow:hidden then clips the app cleanly at the right edge, so the
     product bleeds off-screen instead of overflowing or forcing a gap. */
  .hero .hero-preview .screen-frame {
    margin-top: 0;
    width: 100%;
    min-width: 0;
  }
}
.badge {
  display: inline-block;
  background: var(--brand-soft);
  color: var(--brand-text);
  font-size: 12.5px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: 48px;
  line-height: 1.06;
  letter-spacing: -0.025em;
  margin: 0 0 18px;
  color: var(--text);
  font-weight: 600;
}
.lede {
  font-size: 18px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0 0 30px;
  max-width: 560px;
}
.cta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.cta-meta { font-size: 13px; color: var(--tertiary); }

.preview-frame {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.10);
}
.preview-topbar {
  height: 32px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  font-size: 11.5px;
}
.preview-mark {
  background: var(--brand);
  color: #ffffff;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
}
.preview-brand { font-weight: 500; color: var(--text); }
.preview-search {
  flex: 1;
  background: var(--surface-3);
  padding: 4px 8px;
  border-radius: 4px;
  color: var(--tertiary);
  font-size: 10.5px;
}
.preview-modnav {
  height: 28px;
  background: var(--brand);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  font-size: 11px;
  color: #c7d2fe;
}
.preview-mod { color: #c7d2fe; }
.preview-mod.active {
  color: #ffffff;
  border-bottom: 2px solid #60a5fa;
  padding-bottom: 6px;
  margin-bottom: -2px;
}
.preview-pagehead {
  background: var(--surface-3);
  padding: 8px 12px;
  font-size: 12px;
  border-bottom: 1px solid var(--border-2);
}
.preview-crumb { color: var(--muted); }
.preview-title { color: var(--text); font-weight: 500; }
/* Sub-tab row with relationship counts (mirrors M1.5.5 sub-tabs) */
.preview-subtabs {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 12px;
  background: var(--surface);
  border-bottom: 1px solid var(--border-2);
  font-size: 11px;
  overflow: hidden;
}
.preview-subtab { color: var(--muted); white-space: nowrap; }
.preview-subtab.active {
  color: var(--text);
  font-weight: 600;
  border-bottom: 2px solid var(--brand);
  padding-bottom: 5px;
  margin-bottom: -7px;
}
.preview-count {
  background: var(--surface-3);
  color: var(--muted);
  padding: 0 5px;
  border-radius: 7px;
  font-size: 9.5px;
  font-weight: 600;
}
.preview-edit {
  float: right;
  color: var(--brand);
  font-size: 9.5px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.preview-edit .ti { font-size: 11px; }
.preview-body {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 10px;
  padding: 10px;
  background: var(--surface);
}
.preview-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 8px 10px;
}
.preview-card-head {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 500;
  margin-bottom: 6px;
}
.preview-rows { font-size: 11.5px; line-height: 1.6; }
.preview-row {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 8px;
  padding: 2px 0;
  border-bottom: 1px dotted var(--border-2);
}
.preview-row:last-child { border-bottom: 0; }
.preview-row .k { color: var(--muted); font-size: 10.5px; }
.preview-row .v { color: var(--text); }
.preview-row .v.mono { font-family: "SFMono-Regular", "Menlo", monospace; font-size: 10.5px; }
.preview-pill {
  background: var(--brand-soft);
  color: var(--brand-text);
  padding: 1px 7px;
  border-radius: 3px;
  font-size: 10.5px;
}
.preview-row .lnk { color: var(--brand-strong); }

/* Compact dashboard preview (right-side hero card) */
.preview-dash {
  padding: 10px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.preview-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.preview-kpi {
  border: 1px solid var(--border-2);
  border-top: 2px solid var(--brand);
  border-radius: 4px;
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.preview-kpi .pk-label {
  font-size: 9px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.preview-kpi .pk-num { font-size: 16px; font-weight: 700; color: var(--text); line-height: 1.1; }
.pk-blue   { border-top-color: #3b82f6; }
.pk-teal   { border-top-color: #14b8a6; }
.pk-amber  { border-top-color: #f59e0b; }
.pk-purple { border-top-color: #8b5cf6; }
.pk-red    { border-top-color: #ef4444; }
.pk-indigo { border-top-color: #6366f1; }
.preview-acts { font-size: 11px; display: flex; flex-direction: column; gap: 5px; }
.preview-act {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
}
.preview-act i { color: var(--brand); font-size: 13px; flex-shrink: 0; }
.preview-act span:not(.pa-time) {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.preview-act .pa-time { color: var(--muted); font-size: 10px; flex-shrink: 0; }

.banner-disclosure {
  background: #fefce8;
  border-bottom: 1px solid #fef3c7;
}
.banner-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  font-size: 13.5px;
  color: #854f0b;
  flex-wrap: wrap;
}
.banner-disclosure i.ti { color: #92400e; font-size: 18px; flex-shrink: 0; }
.banner-disclosure strong { font-weight: 600; color: #78350f; }
.banner-cta {
  margin-left: auto;
  background: #92400e;
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.banner-cta:hover { background: #78350f; text-decoration: none; }
.banner-cta .ti { font-size: 14px; color: #ffffff !important; }

.why-strip {
  padding: 56px 0 64px;
}
.why-strip .eyebrow { text-align: center; }
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 28px;
}
.why-card {
  text-align: center;
  padding: 20px 12px;
}
.why-card i.ti {
  font-size: 32px;
  color: var(--brand);
  margin-bottom: 12px;
  display: inline-block;
}
.why-card h3 {
  font-size: 16px;
  margin: 0 0 6px;
  color: var(--text);
  font-weight: 600;
}
.why-card p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  line-height: 1.55;
}
.why-more { text-align: center; margin: 0; }
.why-more a {
  color: var(--brand-strong);
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
}
.why-more a:hover { text-decoration: underline; }

.page-head-strip {
  background: linear-gradient(135deg, #eff6ff 0%, var(--surface) 70%);
  border-bottom: 1px solid var(--border-2);
  padding: 64px 0 56px;
}
.page-head-strip h1 {
  font-size: 40px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  color: var(--text);
  max-width: 760px;
  font-weight: 600;
}
.page-head-strip .lede { max-width: 720px; margin: 0; }

.stub-note {
  padding: 48px 0 64px;
}
.stub-note p {
  text-align: center;
  font-size: 15px;
  color: var(--muted);
  margin: 0;
}

.roadmap {
  padding: 56px 0 80px;
}
.milestone-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.milestone {
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-left: 3px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
}
.milestone-shipped { border-left-color: #15803d; }
.milestone-next    { border-left-color: var(--brand); }
.milestone-planned { border-left-color: var(--tertiary); }
.milestone-horizon { border-left-color: #6d28d9; }
/* Back-compat with old `milestone-done` class — keep until any stale
   browser caches the prior CSS expire. */
.milestone-done    { border-left-color: #15803d; }

/* Section grouping (Shipped / Next up / Planned / Long horizon). */
.roadmap-section-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 40px 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.roadmap-section-title:first-child { margin-top: 0; }
.roadmap-section-count {
  display: inline-block;
  padding: 1px 8px;
  background: var(--surface-2, #f1f5f9);
  color: var(--muted);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
}

/* Ship date chip on shipped milestones. */
.milestone-date {
  margin-left: auto;
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
}

/* ── Home: "What's new" strip ──────────────────────────────────── */
.whats-new {
  padding: 56px 0 72px;
  background: var(--surface);
  border-top: 1px solid var(--border-2);
}
.whats-new-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.whats-new-head h2 {
  margin: 6px 0 0;
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}
.btn-text-only {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brand);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}
.btn-text-only:hover { text-decoration: underline; }
.whats-new-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 900px) { .whats-new-list { grid-template-columns: 1fr; } }
.whats-new-list li {
  border: 1px solid var(--border-2);
  background: var(--surface);
  padding: 18px 20px;
  border-top: 3px solid #15803d;
}
.wn-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 11.5px;
}
.wn-date { color: var(--muted); }
.wn-tag {
  background: #dcfce7;
  color: #15803d;
  padding: 1px 7px;
  font-weight: 600;
  font-size: 11px;
  border-radius: 3px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.whats-new-list h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}
.whats-new-list p {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.55;
}

/* ── /changelog page ──────────────────────────────────────────── */
.changelog {
  padding: 40px 0 80px;
}
.changelog-group-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-2);
}
.changelog-group-title:not(:first-child) {
  margin-top: 44px;
}
.changelog-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
/* "Website" changelog entries use a blue accent to distinguish from the
   green product-milestone entries. */
.changelog-tag-site {
  background: #dbeafe !important;
  color: #1e40af !important;
}
.changelog-entry {
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-left: 3px solid #15803d;
  padding: 22px 26px;
}
.changelog-head {
  margin-bottom: 12px;
}
.changelog-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
  font-size: 12px;
}
.changelog-date { color: var(--muted); }
.changelog-tag {
  background: #dcfce7;
  color: #15803d;
  padding: 1px 8px;
  font-weight: 600;
  font-size: 11.5px;
  border-radius: 3px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.changelog-entry h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}
.changelog-detail {
  list-style: disc;
  padding-left: 22px;
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
}
.changelog-detail li { margin-bottom: 6px; }
.changelog-detail li:last-child { margin-bottom: 0; }
.changelog-detail a { color: var(--brand); }

/* ── /docs stub landing page ──────────────────────────────────── */
.docs-stub { padding: 40px 0 80px; }
.docs-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 900px) { .docs-card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .docs-card-grid { grid-template-columns: 1fr; } }
.docs-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 22px;
  border: 1px solid var(--border-2);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  transition: border-color .12s, background .12s;
}
.docs-card:hover {
  border-color: var(--brand);
  background: #f8fafc;
}
.docs-card i {
  font-size: 22px;
  color: var(--brand);
}
.docs-card h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}
.docs-card p {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.5;
}

/* Home: 21 CFR Part 11 / regulated industries strip */
.compliance-strip {
  background: linear-gradient(180deg, #f8fafc 0%, var(--surface) 100%);
  border-top: 1px solid var(--border-2);
  border-bottom: 1px solid var(--border-2);
  padding: 64px 0;
}
.compliance-grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 56px;
  align-items: start;
}
.compliance-copy h2 {
  margin: 14px 0 14px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}
.compliance-copy .lede {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.6;
}
.compliance-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #dbeafe;
  color: #1e3a8a;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 3px;
}
.compliance-pill i { font-size: 14px; }
.compliance-more a {
  color: var(--brand);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}
.compliance-more a:hover { text-decoration: underline; }

.compliance-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.compliance-card {
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-left: 3px solid #1e3a8a;
  padding: 16px 20px;
}
.compliance-card i {
  font-size: 20px;
  color: var(--brand);
  margin-bottom: 4px;
  display: block;
}
.compliance-card h3 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.compliance-card p {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.5;
}

@media (max-width: 880px) {
  .compliance-strip { padding: 48px 0; }
  .compliance-grid { grid-template-columns: 1fr; gap: 28px; }
  .compliance-copy h2 { font-size: 24px; }
}

/* /docs sectioned landing — multi-section layout with status pills */
.docs-section {
  padding: 40px 0;
  border-top: 1px solid var(--border-2);
}
.docs-section:first-of-type { border-top: 0; padding-top: 32px; }
.docs-section-resources {
  background: var(--surface-3);
}
.docs-section-head { margin-bottom: 22px; }
.docs-section-head .eyebrow { margin-bottom: 4px; }
.docs-section-head .section-h {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

/* "Coming GA" variant — muted, non-clickable */
.docs-card-soon {
  background: var(--surface);
  cursor: default;
  opacity: 0.78;
}
.docs-card-soon:hover {
  border-color: var(--border-2);
  background: var(--surface);
}
.docs-card-soon i { color: var(--muted); }
.docs-card-soon h3 { color: var(--muted); }

/* Status pill at the bottom of each card */
.docs-status {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 3px;
  margin-top: 6px;
  align-self: flex-start;
}
.docs-status-ok {
  background: #dcfce7;
  color: #166534;
}
.docs-status-soon {
  background: #f1f5f9;
  color: #64748b;
}

/* ── /pricing page ────────────────────────────────────────────── */
.pricing-grid-section { padding: 40px 0 80px; }
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 56px;
}
@media (max-width: 800px) { .pricing-grid { grid-template-columns: 1fr; } }
.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border-2);
  padding: 30px 32px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.pricing-featured {
  border-color: var(--brand);
  border-top: 3px solid var(--brand);
}
.pricing-future {
  background: #fafbfc;
}
.pricing-pill {
  position: absolute;
  top: -1px;
  right: 24px;
  background: #15803d;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.pricing-pill.pill-soon {
  background: var(--muted);
}
.pricing-card h2 {
  margin: 8px 0 0;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}
.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0;
}
.price-amount {
  font-size: 42px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}
.price-unit {
  font-size: 14px;
  color: var(--muted);
}
.pricing-tagline {
  margin: 0;
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.5;
}
.pricing-features {
  list-style: none;
  padding: 0;
  margin: 4px 0 16px;
  font-size: 14px;
  color: var(--text);
}
.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 5px 0;
}
.pricing-features li i { color: #15803d; font-size: 15px; margin-top: 2px; flex-shrink: 0; }
.pricing-future .pricing-features li i { color: var(--muted); }
.pricing-features a { color: var(--brand); }
.pricing-ctas {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.pricing-fine {
  margin: 0;
  font-size: 12px;
  color: var(--tertiary, #94a3b8);
  line-height: 1.55;
}

/* "Why open-source?" strip */
.pricing-why {
  background: var(--surface);
  border: 1px solid var(--border-2);
  padding: 36px 36px;
  margin-bottom: 56px;
}
.pricing-why h2 {
  margin: 0 0 22px;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}
.pricing-why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px 36px;
}
@media (max-width: 800px) { .pricing-why-grid { grid-template-columns: 1fr; } }
.pricing-why-grid h3 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.pricing-why-grid h3 i { color: var(--brand); font-size: 18px; }
.pricing-why-grid p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}

/* FAQ */
.pricing-faq h2 {
  margin: 0 0 18px;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}
.pricing-faq dl {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 36px;
}
@media (max-width: 800px) { .pricing-faq dl { grid-template-columns: 1fr; } }
.pricing-faq dt {
  font-weight: 600;
  font-size: 14.5px;
  color: var(--text);
  margin-bottom: 6px;
}
.pricing-faq dd {
  margin: 0 0 6px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}
.pricing-faq dd a { color: var(--brand); }
.milestone-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.milestone-head h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
}
.milestone-badge {
  font-size: 11.5px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 999px;
}
.milestone p {
  margin: 0;
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.55;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius);
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color 120ms ease, border-color 120ms ease, transform 120ms ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--brand);
  color: #ffffff;
  border-color: var(--brand);
}
.btn-primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); }
.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover { background: var(--surface-3); }
.btn-ghost {
  background: transparent;
  color: var(--muted);
  border-color: transparent;
}
.btn-ghost:hover { color: var(--text); background: var(--surface-3); }

.install-strip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--dark-bg);
  color: var(--dark-text);
  padding: 12px 16px;
  border-radius: var(--radius);
  font-family: "SFMono-Regular", "Menlo", "Consolas", monospace;
  font-size: 13.5px;
  max-width: 100%;
}
.install-strip .prompt { color: var(--dark-mute); user-select: none; }
.install-strip code {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.copy-btn {
  background: transparent;
  border: 0;
  color: var(--dark-text);
  opacity: .75;
  padding: 4px;
  border-radius: 4px;
  transition: opacity 120ms ease, background-color 120ms ease;
}
.copy-btn:hover { opacity: 1; background: rgba(255,255,255,0.08); }
.copy-btn .ti { font-size: 16px; }

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tertiary);
  font-weight: 500;
  margin-bottom: 16px;
}
.section-h {
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 40px;
  max-width: 720px;
}

.features { padding: 88px 0 80px; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  padding: 22px 22px 20px;
  transition: border-color 150ms ease, transform 150ms ease;
}
.feature-card:hover {
  border-color: var(--border);
  transform: translateY(-1px);
}
.feature-card h3 {
  font-size: 17px;
  margin: 14px 0 8px;
  color: var(--text);
}
.feature-card p {
  font-size: 14.5px;
  color: var(--muted);
  margin: 0;
  line-height: 1.55;
}
.feature-icon {
  font-size: 26px;
  color: var(--brand);
  display: inline-block;
}

.screens {
  background: var(--surface-3);
  border-top: 1px solid var(--border-2);
  border-bottom: 1px solid var(--border-2);
  padding: 88px 0;
}
.screens-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 16px;
}
.screen {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: var(--muted);
  transition: border-color 150ms ease, transform 150ms ease;
}
.screen:hover { border-color: var(--brand); transform: translateY(-2px); }
.screen img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top left;
  background: var(--surface-3);
}
.screen-caption {
  display: block;
  padding: 12px 16px;
  font-size: 13px;
  color: var(--muted);
  background: var(--surface);
  border-top: 1px solid var(--border-2);
}

.install { padding: 88px 0 96px; }
.codeblock {
  background: var(--dark-bg);
  color: var(--dark-text);
  padding: 22px 24px;
  border-radius: var(--radius-lg);
  font-size: 14px;
  line-height: 1.85;
  overflow-x: auto;
  margin: 0;
}
.codeblock .prompt { color: var(--dark-mute); margin-right: 10px; user-select: none; }
.codeblock .comment { color: #94a3b8; }
.install-note {
  font-size: 15px;
  color: var(--muted);
  margin: 18px 0 0;
  max-width: 680px;
}
.install-note code {
  background: var(--surface-3);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13.5px;
}

.site-footer {
  background: var(--dark-bg);
  color: var(--dark-text);
  padding: 56px 0 24px;
}
.site-footer h4 {
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 14px;
  letter-spacing: 0.02em;
}
.site-footer ul li { padding: 4px 0; }
.site-footer ul a {
  color: #94a3b8;
  font-size: 13.5px;
  text-decoration: none;
}
.site-footer ul a:hover { color: #ffffff; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid #1e293b;
}
.footer-brand p {
  font-size: 13.5px;
  color: var(--dark-mute);
  margin: 8px 0 0;
  max-width: 280px;
  line-height: 1.55;
}
.footer-brandline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-weight: 600;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 22px;
  font-size: 12.5px;
  color: var(--dark-mute);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-meta { font-style: italic; }

@media (max-width: 960px) {
  .hero { padding: 56px 0 56px; }
  .hero h1 { font-size: 38px; }
  .lede { font-size: 17px; }
  .section-h { font-size: 28px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-preview { max-width: 520px; }
  .page-head-strip { padding: 48px 0 40px; }
  .page-head-strip h1 { font-size: 32px; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .screens-grid { grid-template-columns: 1fr 1fr; }
  .screen-wide { grid-column: 1 / -1; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .banner-cta { margin-left: 0; }
}

@media (max-width: 600px) {
  .hero { padding: 44px 0 44px; }
  .hero h1 { font-size: 30px; }
  .lede { font-size: 16px; }
  .section-h { font-size: 24px; }
  .page-head-strip h1 { font-size: 26px; }
  .feature-grid { grid-template-columns: 1fr; }
  .screens-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .install-strip code { font-size: 12.5px; }
  .preview-body { grid-template-columns: 1fr; }
}

/* ============================================================
 * Admin panel — login, install wizard, shell (topbar + side nav),
 * settings form. Phase 1 of the admin (auth + settings + GA).
 * Marketing pages are unaffected by these rules.
 * ============================================================ */

.admin-body {
  background: var(--surface-3);
  color: var(--text);
  margin: 0;
}

.admin-auth-body {
  background: linear-gradient(180deg, #eff6ff 0%, var(--surface) 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.admin-auth-card {
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: 10px;
  padding: 32px 32px 28px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.06);
}
.admin-auth-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 20px;
}
.admin-auth-card h1 {
  font-size: 22px;
  margin: 0 0 6px;
  font-weight: 600;
}
.admin-auth-lede {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 18px;
  line-height: 1.55;
}
.admin-auth-foot {
  font-size: 11.5px;
  color: var(--tertiary);
  margin: 14px 0 0;
  text-align: center;
}

.admin-topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border-2);
  height: 52px;
  display: flex;
  align-items: center;
  padding: 0 18px;
  gap: 14px;
}
.admin-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}
.admin-topbar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
}
.admin-topbar-link {
  color: var(--muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.admin-topbar-link:hover { color: var(--text); }
.admin-topbar-sep { color: var(--tertiary); }
.admin-user-chip { color: var(--text); font-weight: 500; }

.admin-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: calc(100vh - 52px);
}
.admin-sidenav {
  background: var(--dark-bg);
  color: var(--dark-text);
  padding: 16px 0;
}
.admin-sidenav-section {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--dark-mute);
  padding: 10px 18px 6px;
}
.admin-sidenav-spacer { height: 8px; }
.admin-sidenav-item {
  display: block;
  padding: 8px 18px;
  color: var(--dark-text);
  font-size: 13.5px;
  text-decoration: none;
  border-left: 3px solid transparent;
}
.admin-sidenav-item:hover { background: rgba(255,255,255,0.04); color: #ffffff; }
.admin-sidenav-item.is-active {
  background: var(--brand);
  color: #ffffff;
  border-left-color: #60a5fa;
}
.admin-sidenav-item.is-disabled {
  color: #64748b;
  pointer-events: none;
  cursor: default;
}

.admin-main {
  padding: 26px 30px 60px;
  min-width: 0;
}
.admin-page-head { margin-bottom: 18px; }
.admin-page-head h1 {
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 4px;
  color: var(--text);
}
.admin-page-sub { font-size: 13.5px; color: var(--muted); margin: 0; }

.admin-flash-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.admin-flash {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 13.5px;
  border: 1px solid transparent;
}
.admin-flash .ti { font-size: 16px; }
.admin-flash-success { background: #dcfce7; color: #15803d; border-color: #bbf7d0; }
.admin-flash-error   { background: #fee2e2; color: #b91c1c; border-color: #fecaca; }
.admin-flash-warn    { background: #fef3c7; color: #854f0b; border-color: #fde68a; }
.admin-flash-info    { background: #dbeafe; color: #1e40af; border-color: #bfdbfe; }

.admin-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.admin-card {
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: 8px;
  padding: 18px 20px;
  text-decoration: none;
  color: var(--text);
  display: block;
  transition: border-color 120ms, transform 120ms;
}
.admin-card:hover { border-color: var(--border); transform: translateY(-1px); }
.admin-card h3 { font-size: 16px; font-weight: 600; margin: 8px 0 4px; }
.admin-card p  { font-size: 13.5px; color: var(--muted); margin: 0; line-height: 1.55; }
.admin-card-icon { font-size: 24px; color: var(--brand); }
.admin-card-tag {
  display: inline-block;
  margin-left: 6px;
  font-size: 10.5px;
  background: var(--surface-3);
  color: var(--muted);
  padding: 2px 7px;
  border-radius: 999px;
}
.admin-card-disabled { color: var(--muted); cursor: default; }
.admin-card-disabled:hover { transform: none; border-color: var(--border-2); }
.admin-card-disabled .admin-card-icon { color: var(--tertiary); }

.admin-section { margin-bottom: 14px; padding: 0; }
.admin-section-head {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-2);
}
.admin-section-body {
  padding: 16px 18px 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 18px;
}
.admin-field { display: flex; flex-direction: column; min-width: 0; }
.admin-label {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 5px;
  font-weight: 500;
}
.admin-label .req { color: #dc2626; margin-left: 3px; }
.admin-label-aside {
  float: right;
  text-transform: none;
  letter-spacing: 0;
  font-size: 12px;
  color: var(--brand);
  text-decoration: none;
  font-weight: 500;
}
.admin-label-aside:hover { text-decoration: underline; }
.admin-input {
  width: 100%;
  font: inherit;
  font-size: 13.5px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 7px 10px;
  outline: none;
  transition: border-color 120ms, box-shadow 120ms;
}
.admin-input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.18);
}
.admin-input.has-error {
  border-color: #dc2626;
  background: #fef2f2;
}
textarea.admin-input { resize: vertical; min-height: 70px; }
.admin-field-error {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #b91c1c;
  font-size: 12px;
  margin-top: 4px;
}
.admin-field-hint {
  color: var(--tertiary);
  font-size: 12px;
  margin-top: 4px;
}
.admin-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text);
}
.admin-toggle input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--brand);
}

.admin-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 4px 0;
}
.admin-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 5px;
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}
.admin-btn-primary {
  background: var(--brand);
  color: #ffffff;
  border-color: var(--brand);
}
.admin-btn-primary:hover { background: var(--brand-hover); }
.admin-btn-ghost {
  background: transparent;
  color: var(--muted);
  border-color: var(--border);
}
.admin-btn-ghost:hover { color: var(--text); background: var(--surface-3); }
.admin-btn-secondary {
  background: var(--surface);
  color: var(--brand);
  border-color: var(--brand);
}
.admin-btn-secondary:hover { background: var(--surface-3); }
.admin-section-note {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0 0 14px;
}
.admin-section-note code {
  background: var(--surface-3);
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 12px;
}

@media (max-width: 960px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidenav { padding: 8px 0; display: flex; overflow-x: auto; gap: 4px; }
  .admin-sidenav-section { display: none; }
  .admin-sidenav-spacer { display: none; }
  .admin-sidenav-item { padding: 8px 14px; border-left: 0; border-bottom: 3px solid transparent; flex-shrink: 0; }
  .admin-sidenav-item.is-active { border-left: 0; border-bottom-color: #60a5fa; }
  .admin-main { padding: 18px 16px 40px; }
  .admin-section-body { grid-template-columns: 1fr; }
  .admin-card-grid { grid-template-columns: 1fr; }
}

/* ============================================================
 * /features page — high-fidelity inline product screens.
 * Each .screen-frame mimics a browser window with the actual
 * Sutra CRM app rendered inside. Same palette + density as live.
 * ============================================================ */

.screens-strip {
  background: var(--surface-3);
  border-top: 1px solid var(--border-2);
  padding: 56px 0 72px;
}
.screen-frame {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-top: 32px;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.10);
}
.screen-chrome {
  background: #f1f5f9;
  border-bottom: 1px solid var(--border);
  padding: 9px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.screen-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.screen-dot-r { background: #fb7185; }
.screen-dot-y { background: #fbbf24; }
.screen-dot-g { background: #4ade80; }
.screen-urlbar {
  flex: 1;
  margin-left: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 3px 10px;
  font-size: 12px;
  color: var(--muted);
  font-family: "SFMono-Regular", "Menlo", monospace;
}
.screen-caption {
  text-align: center;
  font-size: 13.5px;
  color: var(--muted);
  margin: 14px 0 0;
}

/* === App chrome inside each frame === */
.screen-app {
  background: #e7ecf2;
  color: #0f172a;
  font-size: 13px;
  font-family: -apple-system, system-ui, "Segoe UI", Roboto, sans-serif;
}
.app-topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  height: 36px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 12px;
  font-size: 12.5px;
}
.app-mark {
  background: #1e3a8a;
  color: #ffffff;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
}
.app-brand { font-weight: 600; }
.app-search {
  flex: 1;
  background: var(--surface-3);
  padding: 4px 10px;
  border-radius: 4px;
  color: var(--tertiary);
  max-width: 360px;
}
.app-user { color: var(--muted); font-size: 12px; }

.app-modnav {
  background: #1e3a8a;
  height: 32px;
  padding: 0 14px;
  display: flex;
  align-items: stretch;
  gap: 0;
  font-size: 12.5px;
  overflow: hidden;
}
.app-mod {
  color: #c7d2fe;
  padding: 0 14px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.app-mod.active {
  color: #ffffff;
  border-bottom: 2px solid #60a5fa;
  padding-bottom: 0;
  margin-bottom: -2px;
}

.app-pagehead {
  background: #f1f5f9;
  border-bottom: 1px solid #94a3b8;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}
.app-pagehead-crumb { color: var(--muted); font-weight: 400; }
.app-pagehead-title { font-weight: 600; }
.app-pagehead-meta { color: var(--muted); font-size: 12px; }
.app-pagehead-actions { margin-left: auto; display: inline-flex; gap: 6px; }
.app-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12px;
  color: var(--text);
  font-weight: 500;
}
.app-btn-primary { background: #1e3a8a; color: #ffffff; border-color: #1e3a8a; }

.app-subtabs {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 14px;
  display: flex;
  gap: 4px;
  font-size: 12.5px;
  overflow: hidden;
}
.app-subtab {
  padding: 8px 12px;
  color: var(--muted);
  flex-shrink: 0;
}
.app-subtab.active {
  color: var(--text);
  border-bottom: 2px solid #2563eb;
  font-weight: 500;
  padding-bottom: 6px;
  margin-bottom: -1px;
}

.app-content {
  padding: 14px;
  background: #e7ecf2;
}
.app-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1100px) minmax(0, 1fr);
  gap: 0;
}
.detail-main { padding-right: 14px; }
.detail-rail { padding-left: 14px; }

.app-statusbar {
  background: #0b1220;
  color: #cbd5e1;
  padding: 7px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
}
.status-dot {
  width: 6px;
  height: 6px;
  background: #15803d;
  border-radius: 50%;
  display: inline-block;
}

.kpi-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}
.kpi {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--border-strong, #94a3b8);
  border-radius: 5px;
  padding: 9px 11px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.kpi-blue   { border-top-color: #1e40af; }
.kpi-teal   { border-top-color: #0f766e; }
.kpi-amber  { border-top-color: #b45309; }
.kpi-purple { border-top-color: #6d28d9; }
.kpi-red    { border-top-color: #b91c1c; }
.kpi-indigo { border-top-color: #4338ca; }
.kpi-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); font-weight: 500; }
.kpi-num { font-size: 22px; font-weight: 600; color: var(--text); line-height: 1.1; }
.kpi-sub { font-size: 11px; color: var(--tertiary); }

.dashboard-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.dash-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 5px;
  font-size: 12.5px;
  overflow: hidden;
  margin-bottom: 10px;
}
.dash-card-head {
  padding: 9px 12px;
  border-bottom: 1px solid var(--border-2);
  font-weight: 600;
  font-size: 12px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
}
.dash-count { font-size: 11px; color: var(--tertiary); font-weight: 400; }
.card-pad { padding: 11px 13px; }
.dash-empty { padding: 18px 12px; text-align: center; color: var(--tertiary); font-size: 12px; }
.dash-activity { padding: 6px 4px; }
.dash-act { display: flex; align-items: center; gap: 8px; padding: 5px 10px; font-size: 12px; }
.dash-act i.ti { color: var(--muted); }
.dash-act .dash-time { margin-left: auto; color: var(--tertiary); font-size: 11px; }

/* List view table */
.app-table {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 5px;
  border-collapse: collapse;
  font-size: 12.5px;
  overflow: hidden;
}
.app-table th {
  text-align: left;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.app-table td {
  padding: 7px 12px;
  border-bottom: 1px solid var(--border-2);
  color: var(--text);
}
.app-table .ar { text-align: right; }
.app-table tr:last-child td { border-bottom: 0; }
.app-table .lnk { color: var(--brand-strong); font-weight: 500; }

.pill {
  display: inline-block;
  padding: 1px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
}
.pill-blue  { background: #dbeafe; color: #1e40af; }
.pill-green { background: #dcfce7; color: #15803d; }
.pill-amber { background: #fef3c7; color: #92400e; }

/* Detail view inner grid */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 24px;
  padding: 8px 13px 10px;
}
.detail-rail .detail-grid { grid-template-columns: 1fr; column-gap: 0; }
.detail-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 8px;
  padding: 5px 0;
  border-bottom: 1px dotted var(--border-2);
  font-size: 12px;
}
.detail-row:last-child { border-bottom: 0; }
.detail-row .k { color: var(--muted); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.04em; padding-top: 2px; }
.detail-row .v { color: var(--text); }
.detail-row .v.mono { font-family: "SFMono-Regular", "Menlo", monospace; font-size: 11px; }
.detail-row .v.dim { color: var(--tertiary); }
.detail-row .v.lnk { color: var(--brand-strong); }
.small { font-size: 11.5px; }
.dim { color: var(--tertiary); font-style: italic; }

/* Edit form grid */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 18px;
  padding: 12px 13px 14px;
}
.form-field { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.form-field-full { grid-column: 1 / -1; }
.form-field .k { font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; font-weight: 500; }
.form-field .req { color: #dc2626; }
.form-input {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 5px 10px;
  font-size: 12px;
  color: var(--text);
  min-height: 28px;
}
.form-select { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 14px) 12px, calc(100% - 9px) 12px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 28px; }
.form-textarea { min-height: 50px; padding: 8px 10px; }
.form-currency { display: flex; align-items: center; padding: 0; gap: 0; }
.form-cur { background: var(--surface-3); padding: 5px 10px; border-right: 1px solid var(--border); font-size: 12px; color: var(--muted); border-radius: 3px 0 0 3px; }
.form-currency { padding: 0 10px 0 0; }

@media (max-width: 960px) {
  .kpi-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dashboard-row { grid-template-columns: 1fr; }
  .app-content-grid { grid-template-columns: 1fr; }
  .detail-main { padding-right: 0; padding-bottom: 10px; }
  .detail-rail { padding-left: 0; }
  .detail-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .kpi-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-modnav, .app-subtabs { overflow-x: auto; }
  .screen-caption { font-size: 12.5px; }
}

/* ============================================================
 * /features — prose intro before each screen, foundations grid,
 * duplicate-detection banner replica, sub-tab count chip.
 * ============================================================ */

.screen-intro {
  max-width: 760px;
  margin: 48px auto 0;
  text-align: center;
}
.screen-intro:first-of-type { margin-top: 24px; }
.screen-intro h3 {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}
.screen-intro p {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
}
@media (max-width: 640px) {
  .screen-intro h3 { font-size: 19px; }
  .screen-intro p  { font-size: 14px; }
}

/* Foundations section — capabilities that don't have a screenshot */
.foundations-strip {
  background: var(--surface);
  border-top: 1px solid var(--border-2);
  padding: 64px 0 80px;
}
.foundations-strip .eyebrow { margin-bottom: 8px; }
.foundations-strip .section-h { margin-bottom: 36px; }
.foundations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 32px;
  margin-bottom: 40px;
}
@media (max-width: 960px) { .foundations-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .foundations-grid { grid-template-columns: 1fr; } }
.foundation-card { padding: 4px 0; }
.foundation-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 9px;
}
.foundation-card h3 i { color: var(--brand); font-size: 19px; }
.foundation-card p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}
.foundations-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 16px;
}

/* Duplicate-detection banner replica (inside the New account screen) */
.dup-banner {
  background: #fef3c7;
  border: 1px solid #fcd34d;
  color: #78350f;
  padding: 9px 12px;
  margin-bottom: 12px;
  font-size: 12px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  border-radius: 4px;
  line-height: 1.5;
}
.dup-banner i { color: #b45309; font-size: 15px; flex-shrink: 0; margin-top: 1px; }
.dup-banner em { font-style: normal; font-weight: 600; }
.dup-banner .lnk { cursor: pointer; }

/* "Edit" hover hint on card heads in the detail screen replica */
.card-edit-hint {
  float: right;
  font-size: 11px;
  color: var(--brand);
  font-weight: 500;
  opacity: 0.7;
}

/* Sub-tab count chip in detail replica */
.subtab-count {
  background: var(--surface-3);
  color: var(--muted);
  font-size: 11px;
  padding: 1px 5px;
  border-radius: 8px;
  margin-left: 4px;
  font-weight: 500;
}

/* ============================================================
 * Site Phase 3 — form pages (/demo, /download, /contact)
 * 40/60 layout: copy bullets left, form card right. Thank-you
 * card replaces the form after successful POST. Honeypot field
 * is hidden off-screen but reachable by bots, never users.
 * ============================================================ */

.form-strip {
  background: var(--surface-3);
  padding: 40px 0 72px;
}
.form-layout {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 48px;
  align-items: start;
}
.form-copy {
  padding-top: 12px;
}
.form-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
}
.form-bullets li {
  padding: 8px 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.form-bullets li i { color: var(--brand); font-size: 18px; margin-top: 2px; flex-shrink: 0; }
.form-bullets li a { color: var(--brand); text-decoration: none; }
.form-bullets li a:hover { text-decoration: underline; }

.form-card {
  background: var(--surface);
  border: 1px solid var(--border-2);
  padding: 28px 30px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
  position: relative;
}
.form-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.form-field label .req { color: #b45309; margin-left: 2px; font-weight: 700; }
.form-hint {
  font-size: 12px;
  color: var(--muted);
}
.form-hint-inline {
  font-weight: normal;
  color: var(--muted);
  font-size: 12px;
}
.form-field input[type=text],
.form-field input[type=email],
.form-field input[type=tel],
.form-field input[type=url],
.form-field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 9px 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  border-radius: 3px;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.10);
}
.form-field textarea { min-height: 88px; resize: vertical; }
.form-field.has-error input,
.form-field.has-error textarea { border-color: #dc2626; }
.form-err {
  font-size: 12.5px;
  color: #b91c1c;
  display: flex;
  align-items: center;
  gap: 4px;
}
.form-err i { font-size: 14px; }

.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 4px 0 18px;
}
.form-checkbox input { margin-top: 2px; flex-shrink: 0; }
.form-checkbox label {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.5;
  font-weight: normal;
  cursor: pointer;
}

.form-submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.form-privacy {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
  flex: 1 1 60%;
  min-width: 0;
}

.form-global-error {
  background: #fee2e2;
  border: 1px solid #fecaca;
  color: #991b1b;
  padding: 10px 14px;
  font-size: 13.5px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 3px;
}
.form-global-error i { font-size: 16px; }

/* Thank-you state replaces the form in-place */
.form-card-thanks {
  text-align: center;
  padding: 40px 28px;
}
.form-thanks-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #dcfce7;
  color: #166534;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
}
.form-card-thanks h3 {
  margin: 0 0 10px;
  font-size: 20px;
  color: var(--text);
  font-weight: 700;
}
.form-card-thanks p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
}
.form-back {
  color: var(--brand);
  text-decoration: none;
  font-size: 13.5px;
}
.form-back:hover { text-decoration: underline; }
.form-demo-creds {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0 0 12px;
}

@media (max-width: 800px) {
  .form-layout { grid-template-columns: 1fr; gap: 24px; }
  .form-strip { padding: 28px 0 48px; }
  .form-card { padding: 22px 22px; }
  .form-submit-row { flex-direction: column; align-items: stretch; gap: 12px; }
  .form-submit-row .btn { width: 100%; justify-content: center; }
  .form-privacy { flex: 1 1 100%; }
}

/* ============================================================
 * Admin form-submission queues (/admin/demo-requests etc.)
 * Filter pills + expandable <details> rows with per-row actions.
 * ============================================================ */

.admin-empty {
  padding: 28px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.admin-queue-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.admin-queue-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  border-radius: 4px;
}
.admin-queue-pill:hover { border-color: var(--brand); color: var(--text); }
.admin-queue-pill.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.aq-pill-count {
  font-size: 11px;
  font-weight: 600;
  opacity: 0.8;
}

.admin-queue-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.admin-queue-row {
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: 4px;
}
.admin-queue-summary {
  display: grid;
  grid-template-columns: 90px 1fr 1.2fr auto;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  cursor: pointer;
  list-style: none;
  font-size: 13.5px;
}
.admin-queue-summary::-webkit-details-marker { display: none; }
.admin-queue-summary::marker { content: ''; }
.admin-queue-row[open] .admin-queue-summary { border-bottom: 1px solid var(--border-2); }
.aq-date { color: var(--muted); font-size: 12.5px; }
.aq-who { display: flex; flex-direction: column; min-width: 0; }
.aq-who strong { color: var(--text); }
.aq-email { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; }
.aq-company, .aq-subject { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aq-dim { color: var(--border); }

.aq-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 10px;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}
.aq-badge-blue  { background: #dbeafe; color: #1e40af; }
.aq-badge-green { background: #dcfce7; color: #15803d; }
.aq-badge-gray  { background: #f1f5f9; color: #64748b; }
.aq-badge-amber { background: #fef3c7; color: #92400e; }

.admin-queue-detail {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.aq-field { font-size: 13.5px; }
.aq-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 4px;
}
.aq-field p { margin: 0; color: var(--text); line-height: 1.55; }
.aq-message {
  margin: 0;
  border-left: 3px solid var(--brand);
  padding: 8px 14px;
  background: var(--surface-3);
  color: var(--text);
  line-height: 1.6;
  font-size: 13.5px;
}
.aq-token {
  display: block;
  word-break: break-all;
  background: var(--surface-3);
  padding: 8px 10px;
  border-radius: 3px;
  font-size: 12px;
  color: var(--text);
}
.aq-meta-row { display: flex; flex-wrap: wrap; gap: 8px; }
.aq-chip {
  background: var(--surface-3);
  color: var(--muted);
  padding: 3px 9px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 500;
}

.aq-maillog { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.aq-maillog li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--muted);
}
.aq-maillog li i { font-size: 14px; }
.aq-maillog-ok i { color: #15803d; }
.aq-maillog-fail i { color: #b45309; }
.aq-maillog-err {
  flex-basis: 100%;
  color: #b91c1c;
  font-size: 12px;
  padding-left: 20px;
}

.aq-note-form { display: flex; flex-direction: column; gap: 6px; }
.aq-note-save { align-self: flex-start; }
.aq-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.aq-action-form { display: inline; margin: 0; }

@media (max-width: 720px) {
  .admin-queue-summary {
    grid-template-columns: 1fr auto;
    grid-template-areas: "who badge" "company company" "date date";
    gap: 6px 12px;
  }
  .aq-who { grid-area: who; }
  .aq-company, .aq-subject { grid-area: company; white-space: normal; }
  .aq-date { grid-area: date; }
  .aq-badge { grid-area: badge; }
}
