/* ==========================================================================
   NSBC Accounting — Clay Design System Stylesheet
   Based on DESIGN-clay (1).md and Reference Components
   ========================================================================== */

:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  /* Clay Color Palette */
  --c-canvas:          #fffaf0; /* Warm cream canvas */
  --c-surface-soft:    #faf5e8; /* Soft cream surface for CTA / cards */
  --c-surface-card:    #f5f0e0; /* Surface card */
  --c-surface-strong:  #ebe6d6; /* Emphasized surface */
  --c-surface-dark:    #0a1a1a;
  --c-surface-dark-elevated: #1a2a2a;
  
  --c-primary:         #0a0a0a; /* Dark-navy / near-black ink CTAs */
  --c-primary-active:  #1f1f1f;
  --c-primary-disabled:#e5e5e5;
  --c-ink:             #0a0a0a;
  --c-body:            #3a3a3a;
  --c-body-strong:     #1a1a1a;
  --c-muted:           #6a6a6a;
  --c-muted-soft:      #9a9a9a;
  
  --c-hairline:        #e5e5e5;
  --c-hairline-soft:   #f0f0f0;
  
  /* Saturated 6-Color Palette */
  --c-brand-pink:      #ff4d8b;
  --c-brand-teal:      #1a3a3a;
  --c-brand-lavender:  #b8a4ed;
  --c-brand-peach:     #ffb084;
  --c-brand-ochre:     #e8b94a;
  --c-brand-mint:      #a4d4c5;
  --c-brand-coral:     #ff6b5a;
  --c-brand-blue:      #2b59ff;
  --c-brand-green:     #1a7a3c;
  --c-brand-green-dark:#145f2e;

  /* Clay Radii */
  --r-xs:   6px;
  --r-sm:   8px;
  --r-md:   12px;
  --r-lg:   16px;
  --r-xl:   20px;
  --r-2xl:  24px;
  --r-pill: 9999px;
}

/* Minimal Reset & Smooth Scrolling */
*, *::before, *::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  background: var(--c-canvas);
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}
[id] {
  scroll-margin-top: 76px;
}
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--c-canvas);
  color: var(--c-ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg {
  vertical-align: middle;
  max-width: 100%;
}
button, input, select, textarea {
  font-family: inherit;
}

.isHidden { display: none !important; }

/* ── Floating Glassmorphic Navbar ────────────────────────────────────────── */
.navHeader {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  padding: 12px 20px 0;
  box-sizing: border-box;
  background: transparent;
}
.nav {
  max-width: 1240px;
  margin: 0 auto;
  height: 56px;
  background: #ffffff;
  border-radius: var(--r-md);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03), 0 4px 14px rgba(0, 0, 0, 0.03);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px 0 16px;
  box-sizing: border-box;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.nav.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.12);
}
.navLeft {
  display: flex;
  align-items: center;
  gap: 28px;
}
.navLogo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--c-ink);
  user-select: none;
}
.navLogoIcon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #1a7a3c 0%, #22c55e 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(26, 122, 60, 0.22);
}
.navLogoText {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--c-ink);
  line-height: 1;
}
.navLinks {
  display: flex;
  align-items: center;
  gap: 22px;
}
.navLink {
  font-size: 14px;
  font-weight: 500;
  color: var(--c-body-strong);
  text-decoration: none;
  transition: opacity 0.15s ease, color 0.15s ease;
  line-height: 1.4;
  padding: 6px 0;
  white-space: nowrap;
}
.navLink:hover {
  color: var(--c-ink);
  opacity: 0.7;
}
.navLink.active {
  font-weight: 600;
  color: var(--c-ink);
}
.navActions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.navSearchBtn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: 1px solid var(--c-hairline);
  border-radius: 7px;
  padding: 4px 7px;
  cursor: pointer;
  color: #555555;
  font-size: 11px;
  font-weight: 500;
  transition: border-color 0.15s, background-color 0.15s;
  height: 32px;
  box-sizing: border-box;
}
.navSearchBtn:hover {
  border-color: #c8c8c8;
  background: #f8f8f8;
}
.searchKey {
  font-size: 11px;
  line-height: 1;
  font-weight: 600;
  color: #555555;
}
.searchDivider {
  width: 1px;
  height: 12px;
  background: #e2e2e2;
  margin: 0 1px;
}
.searchIcon {
  color: #555555;
  width: 13px;
  height: 13px;
}
.navLoginLink {
  font-size: 14px;
  font-weight: 500;
  color: var(--c-ink);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 8px;
  transition: opacity 0.15s ease;
  white-space: nowrap;
}
.navLoginLink:hover { opacity: 0.65; }
.btnDemo {
  font-size: 14px;
  font-weight: 600;
  color: var(--c-ink);
  background: #f0f0ee;
  padding: 0 16px;
  border-radius: var(--r-md);
  text-decoration: none;
  transition: background-color 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  box-sizing: border-box;
  white-space: nowrap;
}
.btnDemo:hover { background: #e4e4e0; }
.btnTrial {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  background: var(--c-primary);
  padding: 0 18px;
  border-radius: var(--r-md);
  text-decoration: none;
  transition: background-color 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  box-sizing: border-box;
  white-space: nowrap;
}
.btnTrial:hover { background: var(--c-primary-active); }
.navMobileToggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--c-ink);
  border-radius: 6px;
  align-items: center;
  justify-content: center;
}
.navMobileToggle:hover { background: #f2f2f2; }
.navMobileMenu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 16px;
  right: 16px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--r-lg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  padding: 20px;
  flex-direction: column;
  gap: 16px;
  z-index: 1001;
}
.navMobileMenu.isOpen { display: flex; }
.navMobileLinks {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.navMobileLinks a {
  font-size: 16px;
  font-weight: 500;
  color: var(--c-ink);
  text-decoration: none;
  padding: 6px 0;
}
.navMobileActions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--c-hairline);
}
.navMobileActions .btnDemo,
.navMobileActions .btnTrial {
  width: 100%;
}

/* ── ⌘K Search Modal ──────────────────────────────────────────────────────── */
.searchModalOverlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 2000;
  align-items: flex-start;
  justify-content: center;
  padding: 80px 20px 20px;
}
.searchModalOverlay.isOpen { display: flex; }
.searchModalCard {
  background: #ffffff;
  border-radius: var(--r-lg);
  width: 100%;
  max-width: 560px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.18);
  border: 1px solid var(--c-hairline);
  overflow: hidden;
  animation: modalFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(-10px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.searchModalInputRow {
  display: flex;
  align-items: center;
  padding: 14px 18px;
  gap: 12px;
  border-bottom: 1px solid var(--c-hairline-soft);
}
.searchModalInputRow svg {
  color: #888888;
  flex-shrink: 0;
}
.searchModalInput {
  flex: 1;
  border: none;
  outline: none;
  font-size: 15px;
  font-family: inherit;
  color: var(--c-ink);
  background: transparent;
}
.searchModalClose {
  background: #f0f0f0;
  border: none;
  font-size: 11px;
  font-weight: 600;
  color: #666666;
  border-radius: 5px;
  padding: 3px 7px;
  cursor: pointer;
}
.searchModalList {
  padding: 8px;
  max-height: 280px;
  overflow-y: auto;
  list-style: none;
  margin: 0;
}
.searchModalItem a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: var(--r-sm);
  color: var(--c-body-strong);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.1s ease;
}
.searchModalItem a:hover { background: #f4f4f2; }
.searchModalItem span { font-size: 12px; color: #888888; }

/* ==========================================================================
   Clay Core Typography & Buttons
   Strict rules: Display headlines 500 weight, negative letter-spacing.
   ========================================================================== */

.display-xl {
  font-size: clamp(38px, 5.2vw, 62px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--c-ink);
}
.display-lg {
  font-size: clamp(30px, 3.8vw, 44px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--c-ink);
}
.display-md {
  font-size: clamp(24px, 2.8vw, 34px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--c-ink);
}
.title-lg {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
}
.title-md {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.35;
}
.title-sm {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}
.body-md {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--c-body);
}
.body-sm {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--c-muted);
}
.micro-eyebrow {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--c-muted);
}

/* Clay Standard Buttons (40px-44px height, 12px radius, 14px / 600) */
.btnClayPrimary {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  background: var(--c-primary);
  height: 42px;
  padding: 0 20px;
  border-radius: var(--r-md);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
}
.btnClayPrimary:hover {
  background: var(--c-primary-active);
  transform: translateY(-1px);
}
.btnClaySecondary {
  font-size: 14px;
  font-weight: 600;
  color: var(--c-ink);
  background: #ffffff;
  height: 42px;
  padding: 0 20px;
  border-radius: var(--r-md);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--c-hairline);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.btnClaySecondary:hover {
  border-color: #cfcfcf;
  background: #fafaf8;
  transform: translateY(-1px);
}
.btnClayOnColor {
  font-size: 14px;
  font-weight: 600;
  color: var(--c-ink);
  background: #ffffff;
  height: 40px;
  padding: 0 18px;
  border-radius: var(--r-md);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
}
.btnClayOnColor:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}
.btnClayYellow {
  font-size: 14px;
  font-weight: 600;
  color: #0a0a0a;
  background: #e8b94a;
  height: 42px;
  padding: 0 20px;
  border-radius: var(--r-md);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.btnClayYellow:hover { background: #dfad3b; }

/* ==========================================================================
   Section Layouts & Spacings (Compact Rhythm: 48px - 64px)
   ========================================================================== */

.claySection {
  padding: 56px 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.claySectionNarrow {
  padding: 48px 24px;
  max-width: 980px;
  margin: 0 auto;
}

.sectionHeaderCenter {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 36px;
}
.sectionHeaderCenter .micro-eyebrow {
  margin-bottom: 12px;
  display: inline-block;
  color: #1a7a3c;
}
.sectionHeaderCenter .display-lg {
  margin: 0 0 14px;
}
.sectionHeaderCenter .body-md {
  margin: 0;
}

/* ── 1. Hero Section ─────────────────────────────────────────────────────── */
.heroClay {
  padding: 48px 24px 28px;
  max-width: 1160px;
  margin: 0 auto;
  text-align: center;
}
.heroEyebrowPill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid var(--c-hairline);
  border-radius: var(--r-pill);
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #1a7a3c;
  margin-bottom: 22px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}
.heroPillDot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
}
.heroH1 {
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.08;
  color: var(--c-ink);
  max-width: 820px;
  margin: 0 auto 16px;
}
.heroH1 .highlightWord {
  color: #1a7a3c;
}
.heroLead {
  font-size: 16px;
  font-weight: 400;
  color: var(--c-body);
  max-width: 580px;
  margin: 0 auto 28px;
  line-height: 1.55;
}
.heroCtas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

/* ── 2. Interactive Product Preview & Formula UI Fragment (Image 1 Style) ── */
.productHeroSection {
  padding: 8px 24px 56px;
  max-width: 1200px;
  margin: 0 auto;
}
.clayWorkspaceCard {
  background: #ffffff;
  border: 1px solid var(--c-hairline);
  border-radius: var(--r-2xl);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.05);
  padding: 20px 22px 24px;
  position: relative;
  overflow: hidden;
}

/* Category Pill Tabs along the top */
.clayCategoryTabs {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--c-hairline-soft);
  scrollbar-width: none;
}
.clayCategoryTabs::-webkit-scrollbar { display: none; }
.categoryTabBtn {
  background: transparent;
  border: none;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 500;
  color: var(--c-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.categoryTabBtn:hover {
  color: var(--c-ink);
  background: #f5f5f2;
}
.categoryTabBtn.active {
  background: #b8a4ed;
  color: #0a0a0a;
  font-weight: 600;
}

/* Workspace Canvas Split Layout */
.workspaceLayout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 16px;
  align-items: start;
}

/* Left: Simulated Data Table */
.dataTableCard {
  background: #fafaf8;
  border: 1px solid var(--c-hairline);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.dataTableHeader {
  padding: 12px 16px;
  background: #ffffff;
  border-bottom: 1px solid var(--c-hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dataTableTitle {
  font-size: 13px;
  font-weight: 600;
  color: var(--c-ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.dataTableBadge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  background: #dcfce7;
  color: #15803d;
}
.clayTable {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}
.clayTable th {
  padding: 9px 14px;
  font-size: 11px;
  font-weight: 600;
  color: var(--c-muted);
  background: #f4f4f0;
  border-bottom: 1px solid var(--c-hairline);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.clayTable td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--c-hairline-soft);
  color: var(--c-body);
}
.clayTable tr:last-child td {
  border-bottom: none;
}
.entityNameCell {
  font-weight: 600;
  color: var(--c-ink);
  display: flex;
  align-items: center;
  gap: 8px;
}
.entityAvatar {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}
.typePill {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  padding: 2px 7px;
  border-radius: 4px;
  background: #ffffff;
  border: 1px solid var(--c-hairline);
  color: var(--c-muted);
}
.statusPillActive {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  background: #e8f5ed;
  color: #1a7a3c;
}
.statusPillDue {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  background: #fef3c7;
  color: #92400e;
}

/* Formula Builder Popover Card (Image 1 replica) */
.formulaCard {
  background: #ffffff;
  border: 1px solid var(--c-hairline);
  border-radius: var(--r-lg);
  padding: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.formulaHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.formulaTitle {
  font-size: 13px;
  font-weight: 600;
  color: var(--c-ink);
  display: flex;
  align-items: center;
  gap: 6px;
}
.formulaFxIcon {
  font-family: Georgia, serif;
  font-style: italic;
  font-weight: 700;
  font-size: 14px;
  color: #2b59ff;
}
.formulaRuleBox {
  background: #f9f9f7;
  border: 1px solid var(--c-hairline);
  border-radius: var(--r-sm);
  padding: 10px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--c-body);
}
.tokenPill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #ffffff;
  border: 1px solid #d4d4d0;
  border-radius: 5px;
  padding: 1px 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--c-ink);
  margin: 0 2px;
}
.tokenClose {
  color: #999999;
  font-size: 10px;
  cursor: pointer;
}
.btnGenerateFormula {
  width: 100%;
  background: #2b59ff;
  color: #ffffff;
  border: none;
  padding: 9px 14px;
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.btnGenerateFormula:hover { background: #1d45d8; }

.sampleOutputsBox {
  background: #ffffff;
  border: 1px solid var(--c-hairline);
  border-radius: var(--r-md);
  padding: 12px;
  margin-top: 4px;
}
.sampleOutputRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid var(--c-hairline-soft);
  font-size: 12px;
}
.sampleOutputRow:last-child { border-bottom: none; }
.sampleOutputRule {
  font-weight: 500;
  color: var(--c-ink);
}
.sampleOutputBadge {
  font-size: 10px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 4px;
  background: #dbeafe;
  color: #1d4ed8;
}

/* ==========================================================================
   3. Saturated Clay Feature Cards (6-Color Palette Grid)
   Colors: Teal (#1a3a3a), Lavender (#b8a4ed), Peach (#ffb084),
           Ochre (#e8b94a), Cream (#f5f0e0), Hot Pink (#ff4d8b)
   ========================================================================== */

.clayFeatureGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  align-items: stretch;
}

.clayCard {
  border-radius: var(--r-xl);
  padding: 22px 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 360px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}
.clayCard:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* Saturated Color Variations */
.clayCardTeal {
  background: var(--c-brand-teal);
  color: #ffffff;
}
.clayCardTeal .clayCardPill { background: rgba(255,255,255,0.18); color: #ffffff; }
.clayCardTeal .cardHeadTitle { color: #ffffff; }
.clayCardTeal .cardBodyText { color: rgba(255,255,255,0.85); }

.clayCardLavender {
  background: var(--c-brand-lavender);
  color: var(--c-ink);
}
.clayCardLavender .clayCardPill { background: rgba(0,0,0,0.08); color: var(--c-ink); }
.clayCardLavender .cardHeadTitle { color: var(--c-ink); }
.clayCardLavender .cardBodyText { color: #2a2a2a; }

.clayCardPeach {
  background: var(--c-brand-peach);
  color: var(--c-ink);
}
.clayCardPeach .clayCardPill { background: rgba(0,0,0,0.08); color: var(--c-ink); }
.clayCardPeach .cardHeadTitle { color: var(--c-ink); }
.clayCardPeach .cardBodyText { color: #2a2a2a; }

.clayCardOchre {
  background: var(--c-brand-ochre);
  color: var(--c-ink);
}
.clayCardOchre .clayCardPill { background: rgba(0,0,0,0.08); color: var(--c-ink); }
.clayCardOchre .cardHeadTitle { color: var(--c-ink); }
.clayCardOchre .cardBodyText { color: #2a2a2a; }

.clayCardCream {
  background: var(--c-surface-card);
  color: var(--c-ink);
  border: 1px solid var(--c-surface-strong);
}
.clayCardCream .clayCardPill { background: rgba(0,0,0,0.06); color: var(--c-ink); }
.clayCardCream .cardHeadTitle { color: var(--c-ink); }
.clayCardCream .cardBodyText { color: var(--c-body); }

.clayCardPink {
  background: var(--c-brand-pink);
  color: #ffffff;
}
.clayCardPink .clayCardPill { background: rgba(255,255,255,0.2); color: #ffffff; }
.clayCardPink .cardHeadTitle { color: #ffffff; }
.clayCardPink .cardBodyText { color: rgba(255,255,255,0.9); }

/* Internal Card Structure */
.clayCardTop {
  margin-bottom: 16px;
}
.clayCardPill {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: var(--r-pill);
  margin-bottom: 12px;
}
.cardHeadTitle {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
  margin: 0 0 8px;
}
.cardBodyText {
  font-size: 13px;
  line-height: 1.55;
  margin: 0;
}

/* UI Fragments inside Feature Cards */
.cardUiFragment {
  background: #ffffff;
  border-radius: var(--r-md);
  padding: 12px;
  margin-top: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  color: var(--c-ink);
}

/* Fragment: 4-Rule Engine Matrix */
.fragRuleMatrix {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.fragRuleItem {
  background: #f7f7f5;
  border-radius: var(--r-sm);
  padding: 6px 8px;
  font-size: 11px;
}
.fragRuleItem strong {
  display: block;
  font-size: 11px;
  color: var(--c-ink);
}
.fragRuleItem span {
  font-size: 10px;
  color: var(--c-muted);
}

/* Fragment: Nylas Inbox Thread */
.fragEmailThread {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.fragEmailRow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
}
.fragEmailAvatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #2b59ff;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  flex-shrink: 0;
}
.fragEmailText {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 11px;
  color: var(--c-ink);
}
.fragEmailTag {
  font-size: 9px;
  font-weight: 600;
  padding: 1px 5px;
  border-radius: 4px;
  background: #e8f5ed;
  color: #1a7a3c;
}

/* Fragment: Kanban Mini Columns */
.fragKanbanCols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.fragKanbanCol {
  background: #f4f4f0;
  border-radius: 6px;
  padding: 6px 4px;
}
.fragColTitle {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: 4px;
  text-align: center;
}
.fragKanbanCard {
  background: #ffffff;
  border: 1px solid var(--c-hairline);
  border-radius: 4px;
  padding: 4px 6px;
  font-size: 10px;
  font-weight: 600;
  color: var(--c-ink);
}

/* Fragment: Document Vault Files */
.fragDocList {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.fragDocItem {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fbfbf9;
  border: 1px solid var(--c-hairline-soft);
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 11px;
}
.fragDocName {
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}
.fragDocSecureBadge {
  font-size: 9px;
  font-weight: 600;
  color: #15803d;
  background: #dcfce7;
  padding: 1px 5px;
  border-radius: 4px;
}

/* Fragment: Practice Security & Isolation */
.fragSecurityBlock {
  background: #ffffff;
  border: 1px solid var(--c-hairline);
  border-radius: var(--r-sm);
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.fragSecurityRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--c-ink);
}
.fragSecurityBadge {
  font-size: 9.5px;
  font-weight: 600;
  color: #15803d;
  background: #dcfce7;
  padding: 1px 6px;
  border-radius: 4px;
}

/* Fragment: Automated Text Alert Bubble */
.fragSmsBubble {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 11px;
  line-height: 1.4;
  color: #14532d;
}
.fragSmsMeta {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  font-weight: 600;
  color: #166534;
  margin-bottom: 3px;
}

/* ==========================================================================
   4. Split Editorial Showcase Band (Image 2 & 4 Style)
   ========================================================================== */

.editorialSplitCard {
  background: #ffffff;
  border: 1px solid var(--c-hairline);
  border-radius: var(--r-2xl);
  padding: 36px 32px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}
.splitContentLeft .micro-eyebrow {
  color: #2b59ff;
  margin-bottom: 12px;
  display: inline-block;
}
.splitContentLeft .display-md {
  margin: 0 0 14px;
}
.splitContentLeft .body-md {
  margin: 0 0 24px;
}
.splitActionsRow {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.splitArtifactRight {
  background: var(--c-surface-soft);
  border: 1px solid var(--c-hairline);
  border-radius: var(--r-xl);
  padding: 20px;
}
.artifactHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--c-ink);
}
.artifactRulesList {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.artifactRuleRow {
  background: #ffffff;
  border: 1px solid var(--c-hairline);
  border-radius: var(--r-sm);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}
.artifactRuleRow strong {
  color: var(--c-ink);
}
.artifactRuleRow span {
  color: var(--c-muted);
}
.ruleStatusTag {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  background: #e8f5ed;
  color: #1a7a3c;
}

/* ==========================================================================
   5. Interactive 3-Dashboard Experience Switcher
   ========================================================================== */

.dashboardsSection {
  padding: 56px 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.dashboardTabsRow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.dashboardTabPill {
  background: #ffffff;
  border: 1px solid var(--c-hairline);
  padding: 9px 20px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 500;
  color: var(--c-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s ease;
}
.dashboardTabPill:hover {
  border-color: #c8c8c8;
  color: var(--c-ink);
}
.dashboardTabPill.active {
  background: var(--c-primary);
  border-color: var(--c-primary);
  color: #ffffff;
  font-weight: 600;
}

.dashboardPanelCard {
  background: #ffffff;
  border: 1px solid var(--c-hairline);
  border-radius: var(--r-2xl);
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}
.dashboardPanelText .micro-eyebrow {
  color: #1a7a3c;
  margin-bottom: 10px;
  display: inline-block;
}
.dashboardPanelText .display-sm {
  margin: 0 0 12px;
}
.dashboardPanelText .body-md {
  margin: 0 0 20px;
}
.featureCheckList {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.featureCheckItem {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--c-body-strong);
}
.featureCheckItem svg {
  color: #1a7a3c;
  flex-shrink: 0;
}

/* Dashboard Mockup Display */
.dbMockContainer {
  background: #fafaf8;
  border: 1px solid var(--c-hairline);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.04);
}
.dbMockWindowBar {
  background: #f0f0ee;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid var(--c-hairline);
}
.mockDot { width: 9px; height: 9px; border-radius: 50%; }
.mockDotRed { background: #ff5f57; }
.mockDotYellow { background: #febc2e; }
.mockDotGreen { background: #28c840; }

.dbMockInnerBody {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mockMetricsGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.mockMetricItem {
  background: #ffffff;
  border: 1px solid var(--c-hairline);
  border-radius: var(--r-sm);
  padding: 8px 10px;
}
.mockMetricVal {
  font-size: 16px;
  font-weight: 700;
  color: var(--c-ink);
}
.mockMetricLabel {
  font-size: 10px;
  color: var(--c-muted);
  margin-top: 1px;
}

/* ==========================================================================
   6. Practice Value & ROI 3-Card Grid (Image 5 Style)
   ========================================================================== */

.valueGridSection {
  padding: 48px 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.valueGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.valueCard {
  background: #ffffff;
  border: 1px solid var(--c-hairline);
  border-radius: var(--r-xl);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}
.valueIconBadge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 4px;
}
.valueIconBadgeBlue   { background: #dbeafe; color: #2563eb; }
.valueIconBadgePurple { background: #ede9fe; color: #7c3aed; }
.valueIconBadgeGreen  { background: #dcfce7; color: #16a34a; }
.valueCardTitle {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--c-ink);
  margin: 0;
}
.valueCardBody {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--c-body);
  margin: 0;
}

/* ==========================================================================
   7. Pre-Footer Illustrated CTA Band
   ========================================================================== */

.clayCtaSection {
  padding: 48px 24px;
  max-width: 1160px;
  margin: 0 auto;
}
.clayCtaBox {
  background: var(--c-brand-teal);
  border-radius: var(--r-2xl);
  padding: 48px 32px;
  text-align: center;
  color: #ffffff;
  box-shadow: 0 12px 36px rgba(26, 58, 58, 0.16);
}
.clayCtaH2 {
  font-size: clamp(28px, 3.8vw, 42px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 auto 14px;
  max-width: 620px;
  color: #ffffff;
}
.clayCtaP {
  font-size: 15.5px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.85);
  max-width: 480px;
  margin: 0 auto 26px;
}
.clayCtaActions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.btnCtaWhite {
  font-size: 14px;
  font-weight: 600;
  color: var(--c-ink);
  background: #ffffff;
  height: 42px;
  padding: 0 22px;
  border-radius: var(--r-md);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.btnCtaWhite:hover { opacity: 0.92; transform: translateY(-1px); }
.btnCtaGhost {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.35);
  height: 42px;
  padding: 0 20px;
  border-radius: var(--r-md);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: background 0.15s ease;
}
.btnCtaGhost:hover { background: rgba(255, 255, 255, 0.22); }
.clayCtaTrust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.75);
  flex-wrap: wrap;
}
.clayCtaTrust span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* ==========================================================================
   8. Preserved White Footer (Exact match with Pricing & Landing specs)
   ========================================================================== */

.footer {
  --ft-bg:       #ffffff;
  --ft-border:   #e5e5e5;
  --ft-head:     #0a0a0a;
  --ft-body:     #3a3a3a;
  --ft-link:     #6a6a6a;
  --ft-link-h:   #0a0a0a;
  --ft-accent:   #1a7a3c;
  --ft-copy:     #9a9a9a;
  background: var(--ft-bg);
  border-top: 1px solid var(--ft-border);
  padding: 48px 0 0;
  position: relative;
  overflow: hidden;
  width: 100%;
}
.footerInner {
  position: relative;
  z-index: 1;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}
.footerTop {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: start;
  padding-bottom: 32px;
  border-bottom: 1px solid #f0f0f0;
}
.footerBrand { max-width: 360px; }
.footerLogo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--ft-head);
  text-decoration: none;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  transition: color 0.18s;
}
.footerLogo:hover { color: var(--ft-accent); }
.footerLogoIcon {
  width: 30px;
  height: 30px;
  background: var(--ft-accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.footerTagline {
  font-size: 14px;
  color: var(--ft-body);
  line-height: 1.6;
  margin: 0 0 10px;
  max-width: 320px;
}
.footerTrust {
  font-size: 13px;
  color: var(--ft-link);
  font-style: normal;
  margin: 0;
}
.footerNav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.footerColHeading {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--ft-head);
  margin: 0 0 14px;
}
.footerColList {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.footerColList a {
  font-size: 13.5px;
  color: var(--ft-link);
  text-decoration: none;
  transition: color 0.18s, transform 0.18s;
  display: inline-block;
}
.footerColList a:hover {
  color: var(--ft-link-h);
  transform: translateX(2px);
}
.footerLinkHighlight {
  color: var(--ft-accent) !important;
  font-weight: 600;
}
.footerBottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 0 20px;
}
.footerCopy {
  font-size: 13px;
  color: var(--ft-copy);
  margin: 0;
}
.footerLandscape {
  position: relative;
  width: 100%;
  height: 40px;
  overflow: hidden;
  margin: 0;
  padding: 0;
  pointer-events: none;
  display: block;
}
.footerLandscape svg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1024px) {
  .clayFeatureGrid {
    grid-template-columns: repeat(2, 1fr);
  }
  .valueGrid {
    grid-template-columns: repeat(2, 1fr);
  }
  .workspaceLayout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .navLinks { display: none; }
  .navSearchBtn { display: none; }
  .navMobileToggle { display: flex; }
  .editorialSplitCard {
    grid-template-columns: 1fr;
  }
  .dashboardPanelCard {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .navHeader { padding: 8px 12px 0; }
  .nav { padding: 0 10px 0 14px; height: 52px; }
  .btnDemo { display: none; }
  .heroClay { padding: 36px 16px 24px; }
  .productHeroSection, .claySection, .dashboardsSection, .valueGridSection, .clayCtaSection {
    padding-left: 16px;
    padding-right: 16px;
  }
  .clayFeatureGrid {
    grid-template-columns: 1fr;
  }
  .valueGrid {
    grid-template-columns: 1fr;
  }
  .footerTop {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 520px) {
  .navLoginLink { display: none; }
  .btnTrial { padding: 0 14px; font-size: 13px; height: 36px; }
  .heroH1 { font-size: 32px; }
  .clayCtaBox { padding: 36px 20px; }
}
