/* ═══════════════════════════════════════════════════════════
   INCISE — Design System
   Complete stylesheet for the Incise marketing site.
   ═══════════════════════════════════════════════════════════ */


/* ── RESET ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { background: none; border: none; font: inherit; cursor: pointer; }


/* ── DESIGN TOKENS ──────────────────────────────────────── */
:root {
  /* Colors */
  --canvas:           #FBFBFA;
  --surface:          #FFFFFF;
  --ink:              #111111;
  --dim:              #2F3437;
  --muted:            #6B6B67;   /* bumped from #787774 for WCAG AA */
  --rule:             #EAEAEA;
  --hover:            #F7F6F3;

  /* Tag palettes */
  --tag-blue-bg:      #E1F3FE;   --tag-blue-text:    #1F6C9F;
  --tag-green-bg:     #EDF3EC;   --tag-green-text:   #346538;
  --tag-yellow-bg:    #FBF3DB;   --tag-yellow-text:  #956400;
  --tag-red-bg:       #FDEBEC;   --tag-red-text:     #9F2F2D;

  /* Typography */
  --font-serif:       'Instrument Serif', Georgia, serif;
  --font-sans:        'DM Sans', system-ui, sans-serif;
  --font-mono:        'DM Mono', monospace;

  /* Layout */
  --max-width:        1152px;
  --gutter:           24px;

  /* Transitions */
  --ease-out:         cubic-bezier(0.16, 1, 0.3, 1);
}


/* ── BASE ───────────────────────────────────────────────── */
html { background-color: var(--canvas); }
body {
  background-color: var(--canvas);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 300;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}


/* ── TYPOGRAPHY ─────────────────────────────────────────── */
.heading-xl {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--ink);
}
.heading-lg {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--ink);
}
.font-serif  { font-family: var(--font-serif); }
.font-mono   { font-family: var(--font-mono); }
.italic      { font-style: italic; }
.font-medium { font-weight: 500; }
.font-light  { font-weight: 300; }
.underline   { text-decoration: underline; }
.underline-offset-2 { text-underline-offset: 2px; }
.uppercase   { text-transform: uppercase; }
.select-none { user-select: none; }
.tracking-widest { letter-spacing: 0.1em; }


/* ── COLORS ─────────────────────────────────────────────── */
.text-ink    { color: var(--ink); }
.text-dim    { color: var(--dim); }
.text-muted  { color: var(--muted); }
.bg-canvas   { background-color: var(--canvas); }
.bg-surface  { background-color: var(--surface); }


/* ── LAYOUT UTILITIES ───────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.relative   { position: relative; }
.sticky     { position: sticky; }
.z-10       { z-index: 10; }
.z-40       { z-index: 40; }
.top-0      { top: 0; }


/* ── FLEX UTILITIES ─────────────────────────────────────── */
.flex          { display: flex; }
.inline-flex   { display: inline-flex; }
.flex-col      { flex-direction: column; }
.flex-wrap     { flex-wrap: wrap; }
.items-center  { align-items: center; }
.items-start   { align-items: flex-start; }
.items-end     { align-items: flex-end; }
.items-baseline { align-items: baseline; }
.justify-between { justify-content: space-between; }
.justify-center  { justify-content: center; }
.flex-shrink-0   { flex-shrink: 0; }
.gap-1   { gap: 4px; }
.gap-1\.5 { gap: 6px; }
.gap-2   { gap: 8px; }
.gap-2\.5 { gap: 10px; }
.gap-3   { gap: 12px; }
.gap-4   { gap: 16px; }
.gap-5   { gap: 20px; }
.gap-6   { gap: 24px; }
.gap-8   { gap: 32px; }
.gap-10  { gap: 40px; }
.mt-auto { margin-top: auto; }
.ml-auto { margin-left: auto; }
.w-full  { width: 100%; }
.w-max   { width: max-content; }


/* ── SPACING UTILITIES ──────────────────────────────────── */
.mb-2   { margin-bottom: 8px; }
.mb-3   { margin-bottom: 12px; }
.mb-4   { margin-bottom: 16px; }
.mb-6   { margin-bottom: 24px; }
.mb-8   { margin-bottom: 32px; }
.mb-10  { margin-bottom: 40px; }
.mb-12  { margin-bottom: 48px; }
.mb-16  { margin-bottom: 64px; }
.mb-20  { margin-bottom: 80px; }
.mt-1   { margin-top: 4px; }
.mt-2   { margin-top: 8px; }
.mt-3   { margin-top: 12px; }
.mt-4   { margin-top: 16px; }
.ml-1   { margin-left: 4px; }
.ml-2   { margin-left: 8px; }
.ml-4   { margin-left: 16px; }
.mr-2   { margin-right: 8px; }
.pt-2   { padding-top: 8px; }
.pt-4   { padding-top: 16px; }
.pt-8   { padding-top: 32px; }
.py-5   { padding-top: 20px; padding-bottom: 20px; }
.py-6   { padding-top: 24px; padding-bottom: 24px; }
.py-8   { padding-top: 32px; padding-bottom: 32px; }
.py-12  { padding-top: 48px; padding-bottom: 48px; }
.py-24  { padding-top: 96px; padding-bottom: 96px; }
.py-32  { padding-top: 128px; padding-bottom: 128px; }
.px-6   { padding-left: 24px; padding-right: 24px; }
.p-2    { padding: 8px; }
.p-4    { padding: 16px; }
.p-7    { padding: 28px; }
.p-8    { padding: 32px; }
.pr-6   { padding-right: 24px; }
.pl-6   { padding-left: 24px; }
.pt-24  { padding-top: 96px; }
.pb-24  { padding-bottom: 96px; }


/* ── SIZING UTILITIES ───────────────────────────────────── */
.w-5   { width: 20px; }
.w-8   { width: 32px; }
.w-10  { width: 40px; }
.h-8   { height: 32px; }
.h-10  { height: 40px; }
.h-12  { height: 48px; }
.h-14  { height: 56px; }
.h-px  { height: 1px; }
.h-1\.5 { height: 6px; }
.h-full { height: 100%; }
.max-w-xs  { max-width: 320px; }
.max-w-sm  { max-width: 384px; }
.max-w-md  { max-width: 448px; }
.max-w-lg  { max-width: 512px; }
.max-w-xl  { max-width: 576px; }
.max-w-2xl { max-width: 672px; }
.max-w-3xl { max-width: 768px; }


/* ── TEXT SIZE UTILITIES ────────────────────────────────── */
.text-xs   { font-size: 12px; }
.text-sm   { font-size: 14px; }
.text-base { font-size: 16px; }
.text-xl   { font-size: 20px; }
.leading-none    { line-height: 1; }
.leading-relaxed { line-height: 1.625; }


/* ── BORDER / RADIUS ────────────────────────────────────── */
.rounded-full { border-radius: 9999px; }
.rounded-lg   { border-radius: 12px; }
.rounded      { border-radius: 6px; }
.border       { border: 1px solid var(--rule); }
.border-rule  { border-color: var(--rule); }
.overflow-hidden { overflow: hidden; }


/* ── GRID SYSTEM ────────────────────────────────────────── */
.grid        { display: grid; }
.grid-cols-1 { grid-template-columns: 1fr; }

.block   { display: block; }
.hidden  { display: none; }
.inline-block { display: inline-block; }
.cursor-pointer { cursor: pointer; }


/* ── TRANSITION UTILITIES ───────────────────────────────── */
.transition-colors { transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease; }
.transition-all    { transition: all 0.3s ease; }
.duration-200      { transition-duration: 200ms; }
.duration-300      { transition-duration: 300ms; }


/* ── RULE DIVIDER ───────────────────────────────────────── */
.rule { border-top: 1px solid var(--rule); }


/* ── AMBIENT DRIFT ──────────────────────────────────────── */
#ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
#ambient-blob {
  position: absolute;
  width: 900px;
  height: 900px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(180, 160, 120, 0.035) 0%, transparent 70%);
  top: -200px;
  left: -200px;
  will-change: transform;
  animation: drift 28s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: translate(0px, 0px); }
  to   { transform: translate(340px, 200px); }
}


/* ── SCROLL REVEAL ──────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.6s var(--ease-out),
    transform 0.6s var(--ease-out);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.stagger { transition-delay: calc(var(--index, 0) * 80ms); }


/* ── NAVBAR ─────────────────────────────────────────────── */
#navbar {
  background: rgba(251, 251, 250, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
  transition: border-color 0.3s ease;
}
.nav-link {
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
  transition: color 0.2s ease;
}
.nav-link:hover,
.nav-link.active { color: var(--ink); }

/* Desktop nav elements: hidden on mobile, visible on md+ */
.desktop-nav { display: none; }
.desktop-cta { display: none; }
#ham-btn     { display: flex; }

@media (min-width: 768px) {
  .desktop-nav { display: flex; }
  .desktop-cta { display: flex; }
  #ham-btn     { display: none; }
}


/* ── MOBILE MENU ────────────────────────────────────────── */
#mobile-menu {
  display: none;
  background: rgba(251, 251, 250, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--rule);
}
#mobile-menu.open { display: block; }
.ham-line {
  display: block;
  width: 20px;
  height: 1px;
  background: var(--ink);
  transition: all 0.3s ease;
}


/* ── BUTTONS ────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  background: var(--ink);
  color: var(--surface);
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: background 0.15s ease, transform 0.15s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary:hover { background: var(--dim); }
.btn-primary:active { transform: scale(0.98); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  background: transparent;
  color: var(--ink);
  border-radius: 6px;
  border: 1px solid var(--rule);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.01em;
  transition: background 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn-secondary:hover {
  background: var(--hover);
  border-color: #D0D0D0;
}
.btn-secondary:active { transform: scale(0.98); }


/* ── TAGS / BADGES ──────────────────────────────────────── */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-family: var(--font-sans);
}
.tag-blue   { background: var(--tag-blue-bg);   color: var(--tag-blue-text); }
.tag-green  { background: var(--tag-green-bg);  color: var(--tag-green-text); }
.tag-yellow { background: var(--tag-yellow-bg); color: var(--tag-yellow-text); }
.tag-red    { background: var(--tag-red-bg);    color: var(--tag-red-text); }


/* ── CARDS ──────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 12px;
  transition: box-shadow 0.2s ease;
}
.card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}


/* ── KBD ────────────────────────────────────────────────── */
kbd {
  display: inline-block;
  padding: 2px 6px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--hover);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}


/* ── FAQ ACCORDION ──────────────────────────────────────── */
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-toggle { transition: transform 0.25s var(--ease-out); }
.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out);
}
.faq-body.open { max-height: 300px; }
.faq-toggle.open { transform: rotate(45deg); }


/* ── STEP NUMBER ────────────────────────────────────────── */
.step-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.05em;
}


/* ── STAT RULE ──────────────────────────────────────────── */
.stat-rule {
  width: 1px;
  background: var(--rule);
  height: 48px;
  flex-shrink: 0;
}


/* ── CHART BARS ─────────────────────────────────────────── */
.bar {
  flex: 1;
  border-radius: 3px 3px 0 0;
  background: var(--rule);
  transition: background 0.2s ease;
}
.bar.active { background: var(--ink); }
.card:hover .bar { background: #D0D0D0; }
.card:hover .bar.active { background: var(--ink); }


/* ── CHECKMARK LIST ─────────────────────────────────────── */
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--dim);
}
.check-list li svg { margin-top: 2px; flex-shrink: 0; }


/* ── PRICING TOGGLE ─────────────────────────────────────── */
.pricing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 4px;
  background: var(--hover);
  border-radius: 9999px;
  border: 1px solid var(--rule);
}
.pricing-toggle-btn {
  padding: 8px 20px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  transition: all 0.2s ease;
  cursor: pointer;
}
.pricing-toggle-btn.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.pricing-card-featured {
  border-color: var(--ink);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}
.price-amount { transition: opacity 0.2s ease; }


/* ── FEATURE ROW (alternating layout) ───────────────────── */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.feature-row.reverse .feature-image { order: -1; }

.feature-image {
  background: var(--hover);
  border: 1px dashed var(--rule);
  border-radius: 12px;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 14px;
}


/* ── TEAM CARD ──────────────────────────────────────────── */
.team-avatar {
  width: 64px;
  height: 64px;
  border-radius: 9999px;
  background: var(--hover);
  border: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--muted);
}


/* ── VALIDATION PIPELINE ────────────────────────────────── */
.pipeline-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 12px;
  transition: box-shadow 0.2s ease;
}
.pipeline-step:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.pipeline-num {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--canvas);
  border: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  flex-shrink: 0;
}


/* ── COMPARISON TABLE ───────────────────────────────────── */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
}
.comparison-table th,
.comparison-table td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--rule);
  font-size: 14px;
}
.comparison-table th {
  font-weight: 500;
  color: var(--ink);
  background: var(--canvas);
  position: sticky;
  top: 56px;
}
.comparison-table td {
  color: var(--dim);
}
.comparison-table td:not(:first-child),
.comparison-table th:not(:first-child) {
  text-align: center;
  width: 160px;
}
.comparison-table tbody tr:hover {
  background: var(--hover);
}


/* ── TRUST BAR ──────────────────────────────────────────── */
.trust-logo {
  width: 120px;
  height: 40px;
  background: var(--hover);
  border: 1px dashed var(--rule);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--muted);
  flex-shrink: 0;
}


/* ── SKIP TO CONTENT ────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  padding: 8px 16px;
  background: var(--ink);
  color: var(--surface);
  border-radius: 6px;
  font-size: 14px;
  z-index: 100;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 16px; }


/* ── SCROLLBAR ──────────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--canvas); }
::-webkit-scrollbar-thumb { background: var(--rule); border-radius: 2px; }


/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — SEMANTIC GRIDS
   ═══════════════════════════════════════════════════════════ */

/* Bento grid: 12-col on desktop, stacked on mobile */
.bento-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.bento-8  { }
.bento-4  { }
.bento-5  { }
.bento-3  { }

/* Standard grids: stacked on mobile */
.grid-2-col  { display: grid; grid-template-columns: 1fr; gap: 16px; }
.grid-3-col  { display: grid; grid-template-columns: 1fr; gap: 16px; }
.grid-4-col  { display: grid; grid-template-columns: 1fr; gap: 16px; }
.grid-5-col  { display: grid; grid-template-columns: 1fr; gap: 16px; }

/* Coverage modules grid */
.coverage-grid { display: grid; grid-template-columns: 1fr; gap: 0; }

/* Footer grid */
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 40px; }

/* Stats strip: vertical on mobile */
.stats-strip { flex-direction: column; gap: 32px; }
.stats-strip .stat-rule { display: none; }

/* ── SM (640px+) ────────────────────────────────────────── */
@media (min-width: 640px) {
  .stats-strip { flex-direction: row; gap: 0; }
  .stats-strip .stat-rule { display: block; }
  .coverage-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── MD (768px+) ────────────────────────────────────────── */
@media (min-width: 768px) {
  .bento-grid { grid-template-columns: repeat(12, 1fr); }
  .bento-8  { grid-column: span 8; }
  .bento-4  { grid-column: span 4; }
  .bento-5  { grid-column: span 5; }
  .bento-3  { grid-column: span 3; }

  .grid-2-col  { grid-template-columns: repeat(2, 1fr); }
  .grid-3-col  { grid-template-columns: repeat(3, 1fr); }
  .grid-4-col  { grid-template-columns: repeat(4, 1fr); }
  .grid-5-col  { grid-template-columns: repeat(5, 1fr); }

  .coverage-grid { grid-template-columns: repeat(3, 1fr); }

  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }

  .bento-8 .bento-icon { display: flex; }
}

/* ���─ Mobile overrides ───────────────────────────────────── */
@media (max-width: 767px) {
  .feature-row {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .feature-row.reverse .feature-image { order: 0; }

  .comparison-table th:not(:first-child),
  .comparison-table td:not(:first-child) { width: auto; min-width: 80px; }

  .pipeline-grid { grid-template-columns: 1fr !important; }
}
