/* ContractControl - Sana × Linear redesign
   Poppins primary, Instrument Serif accent, calm whites, restrained purple. */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Instrument+Serif:ital@0;1&family=JetBrains+Mono:wght@400;500&family=Caveat:wght@500;600&display=swap');

:root {
  /* Surfaces - clean white */
  --bg: #FFFFFF;
  --bg-elevated: #FFFFFF;
  --bg-soft: #F5F5F7;
  --bg-mute: #EAEAEC;

  /* Ink - near-black not pure black, like Linear */
  --ink-1: #0E0E10;
  --ink-2: #2A2A2E;
  --ink-3: #5C5C63;
  --ink-4: #8A8A92;
  --ink-5: #B8B8BE;

  /* Hairlines */
  --line: rgba(14, 14, 16, 0.08);
  --line-strong: rgba(14, 14, 16, 0.14);

  /* Brand accent - ContractControl purple, refined (less neon) */
  --accent: #7B61FF;          /* primary purple */
  --accent-deep: #684AEB;
  --accent-soft: #F0EDFF;
  --accent-ink: #2A1F66;

  /* Functional */
  --success: #1F8A4C;
  --success-soft: #E6F2EA;
  --warning: #B5651D;
  --danger: #B42318;

  /* Type */
  --font-sans: 'Poppins', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-serif: var(--font-sans);
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Radii */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;
  --r-2xl: 28px;

  --container: 1200px;
}

* {
  box-sizing: border-box;
  font-style: normal !important;
}
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink-1);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img, svg { display: block; max-width: 100%; }

::selection { background: var(--accent); color: white; }

/* === Layout === */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

/* === Eyebrow (small caps label) - the Linear move === */
.eyebrow {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-4);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}
.eyebrow.no-dot::before { display: none; }

/* === Display headlines === */
.display {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(44px, 6vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--ink-1);
  margin: 0;
}
.display em {
  font-family: inherit;
  font-style: normal;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: currentColor;
}
.display .accent { color: var(--accent); }

.h-section {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(32px, 3.6vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.028em;
  margin: 0;
}
.h-section em {
  font-family: inherit;
  font-style: normal;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: -0.005em;
}

.h-card {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: -0.012em;
  margin: 0;
}

.lede {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-3);
  max-width: 56ch;
  margin: 0;
}
.muted { color: var(--ink-3); }

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition: all 160ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink-1);
  color: white;
  box-shadow: 0 1px 0 rgba(255,255,255,0.12) inset, 0 1px 2px rgba(0,0,0,0.18);
}
.btn-primary:hover {
  background: #151518;
  transform: translateY(-1.5px);
  box-shadow: 0 6px 16px rgba(14, 14, 16, 0.12), 0 1px 0 rgba(255,255,255,0.12) inset;
}
.btn-accent {
  background: var(--accent);
  color: white;
}
.btn-accent:hover {
  background: var(--accent-deep);
  transform: translateY(-1.5px);
  box-shadow: 0 6px 18px rgba(110, 86, 207, 0.35);
}
.btn-ghost {
  background: transparent;
  color: var(--ink-1);
  border-color: var(--line-strong);
}
.btn-ghost:hover { background: var(--bg-soft); border-color: var(--ink-5); }
.btn-link {
  background: transparent;
  color: var(--ink-1);
  padding: 0;
  height: auto;
}
.btn-link:hover { color: var(--accent); }

.btn-explore {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--bg-soft);
  color: var(--accent);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 500;
  height: 42px;
  transition: all 160ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
}
.btn-explore:hover {
  background: var(--bg-elevated);
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(123, 97, 255, 0.08);
  transform: translateY(-1.5px);
}
.btn-explore .arrow,
.btn-explore svg {
  transition: transform 160ms ease;
}
.btn-explore:hover .arrow,
.btn-explore:hover svg {
  transform: translateX(3px);
}

.btn-lg { height: 48px; padding: 0 22px; font-size: 14.5px; }

.btn .arrow { transition: transform 160ms ease; }
.btn:hover .arrow { transform: translateX(2px); }

/* === Card primitives === */
.card {
  background: var(--bg-elevated);
  border: 1px solid rgba(14,14,16,0.06);
  border-radius: var(--r-xl);
  box-shadow: 0 1px 4px rgba(14,14,16,0.04), 0 8px 28px rgba(14,14,16,0.05);
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 300ms cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 300ms cubic-bezier(0.16, 1, 0.3, 1);
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(110, 86, 207, 0.18) !important;
  box-shadow: 0 20px 40px rgba(110, 86, 207, 0.05), 0 1px 12px rgba(110, 86, 207, 0.02) !important;
}
.card-soft {
  background: var(--bg-soft);
  border: 1px solid rgba(14,14,16,0.05);
  border-radius: var(--r-xl);
  box-shadow: 0 1px 4px rgba(14,14,16,0.03), 0 4px 16px rgba(14,14,16,0.04);
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 300ms cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 300ms cubic-bezier(0.16, 1, 0.3, 1);
}
.card-soft:hover {
  transform: translateY(-4px);
  border-color: rgba(110, 86, 207, 0.15) !important;
  box-shadow: 0 16px 36px rgba(110, 86, 207, 0.04), 0 1px 10px rgba(110, 86, 207, 0.015) !important;
}

/* === Hairlines & rule === */
.hr {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}

/* Linear-style section-divider with tick */
.tick-rule {
  position: relative;
  height: 1px;
  background: var(--line);
}
.tick-rule::before, .tick-rule::after {
  content: "";
  position: absolute;
  top: -3px;
  width: 1px;
  height: 7px;
  background: var(--ink-5);
}
.tick-rule::before { left: 0; }
.tick-rule::after { right: 0; }

/* === Nav === */
.nav {
  position: fixed;
  top: 16px;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid rgba(14,14,16,0.08);
  box-shadow: 0 1px 0 rgba(255,255,255,1) inset, 0 12px 32px -8px rgba(14,14,16,0.08);
  border-radius: 999px;
  width: calc(100% - 32px);
  max-width: 1140px;
  margin: 0 auto;
}

/* Ensure the hero section content is pushed down past the fixed nav, while letting its background extend to the top */
#root > main > section:first-of-type,
#root > section:first-of-type {
  padding-top: 136px !important;
}
.nav::before {
  content: none;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  position: relative;
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.nav-logo img {
  height: 24.5px;
  width: auto;
  display: block;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  font-size: 14px;
  font-weight: 400;
  color: var(--ink-2);
  padding: 8px 14px;
  border-radius: 999px;
  transition: background 160ms ease, color 160ms ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.nav-link:hover { background: rgba(14,14,16,0.04); color: var(--ink-1); }
.nav-link svg { opacity: 0.6; }

.nav-actions { display: flex; align-items: center; gap: 8px; }

/* === Footer === */
.footer {
  border-top: 1px solid var(--line);
  background: var(--bg);
  padding: 80px 0 32px;
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-col h4 {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin: 0 0 16px;
}
.footer-col ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex; flex-direction: column;
  gap: 10px;
}
.footer-col a {
  font-size: 14px;
  color: var(--ink-2);
  transition: color 160ms ease;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between;
  font-size: 12.5px; color: var(--ink-4);
}

.footer-form-row {
  display: flex;
  gap: 8px;
}

/* === Marquee logos === */
.logo-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 24px 0;
  flex-wrap: wrap;
}
.logo-strip .logo-item {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.02em;
  color: var(--ink-4);
  opacity: 0.85;
  display: inline-flex; align-items: center; gap: 8px;
  transition: color 160ms ease, opacity 160ms ease;
}
.logo-strip .logo-item:hover { color: var(--ink-1); opacity: 1; }

/* === Tags / badges === */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.005em;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--ink-2);
}
.tag-purple { background: var(--accent-soft); color: var(--accent-ink); border-color: rgba(110,86,207,0.18); }
.tag-success { background: var(--success-soft); color: var(--success); border-color: rgba(31,138,76,0.18); }

/* === Section spacing === */
.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
.section-lg { padding: 128px 0; }

/* === Mega menu === */
.mega {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: 0 20px 60px -10px rgba(14,14,16,0.18), 0 0 0 1px rgba(14,14,16,0.02);
  padding: 32px 36px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 180ms ease, transform 220ms cubic-bezier(0.25,0.46,0.45,0.94);
  z-index: 60;
}
.mega.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.mega-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr) 0.9fr;
  gap: 36px;
}
.mega-col h5 {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin: 0 0 14px;
}
.mega-item {
  display: flex; gap: 12px;
  padding: 8px;
  margin: 0 -8px;
  border-radius: 8px;
  align-items: flex-start;
  transition: background 140ms ease;
}
.mega-item:hover { background: var(--bg-soft); }
.mega-item .ic {
  flex: 0 0 28px; height: 28px;
  border-radius: 7px;
  background: var(--bg-soft);
  display: grid; place-items: center;
  color: var(--accent);
}
.mega-item:hover .ic { background: var(--accent-soft); }
.mega-item .t {
  font-size: 14px; font-weight: 500; color: var(--ink-1);
  line-height: 1.3;
}
.mega-item .d {
  font-size: 12.5px; color: var(--ink-3);
  line-height: 1.4; margin-top: 2px;
}
.mega-feature {
  background: var(--bg-soft);
  border-radius: var(--r-md);
  padding: 18px;
  display: flex; flex-direction: column;
  gap: 8px;
}

/* === Browser frame for product visuals === */
.browser {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(14,14,16,0.18), 0 4px 12px -4px rgba(14,14,16,0.06);
}
.browser-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}
.browser-bar .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(14,14,16,0.12);
}
.browser-bar .url {
  flex: 1;
  margin: 0 12px;
  height: 24px;
  background: var(--bg-elevated);
  border-radius: 6px;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-3);
  display: inline-flex; align-items: center; padding: 0 10px; gap: 6px;
}
.browser-body { background: var(--bg-elevated); }

/* === Animation === */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 600ms cubic-bezier(0.25,0.46,0.45,0.94) both; }

@keyframes spin {
  to { transform: rotate(360deg); }
}
.spinner {
  animation: spin 1s linear infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}
.live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--success);
  animation: pulseDot 2.4s ease-in-out infinite;
}

/* === Numerical metrics - Linear-y === */
.metric {
  display: flex; flex-direction: column; gap: 8px;
  padding: 28px 0;
}
.metric .num {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(48px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ink-1);
}
.metric .num em {
  font-family: inherit;
  font-style: normal;
  font-weight: 400;
}
.metric .label {
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.45;
  max-width: 26ch;
}

/* === Util === */
.flex { display: flex; }
.center { display: flex; align-items: center; justify-content: center; }
.between { display: flex; align-items: center; justify-content: space-between; }
.gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; } .gap-6 { gap: 24px; } .gap-8 { gap: 32px; }
.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.mt-2 { margin-top: 8px; } .mt-3 { margin-top: 12px; } .mt-4 { margin-top: 16px; } .mt-6 { margin-top: 24px; } .mt-8 { margin-top: 32px; } .mt-12 { margin-top: 48px; } .mt-16 { margin-top: 64px; }

/* === Density tweak === */
[data-density="compact"] .section { padding: 72px 0; }
[data-density="compact"] .section-lg { padding: 96px 0; }

/* === Accent color tweak hooks === */
[data-accent="indigo"] {
  --accent: #4F46E5;
  --accent-deep: #4338CA;
  --accent-soft: #EEF0FB;
  --accent-ink: #1E1B4B;
}
[data-accent="ink"] {
  --accent: #0E0E10;
  --accent-deep: #2A2A2E;
  --accent-soft: #EFEEE8;
  --accent-ink: #0E0E10;
}
[data-accent="purple-warm"] {
  --accent: #7C5CD3;
  --accent-deep: #6243BC;
  --accent-soft: #F1ECFB;
  --accent-ink: #2D1F66;
}

/* === Sales agent chat bubbles === */
.agent-bubble {
  font-size: 13.5px;
  line-height: 1.5;
  padding: 10px 14px;
  border-radius: 14px;
  max-width: 86%;
  animation: bubbleIn 320ms cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}
.bubble-bot {
  align-self: flex-start;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  color: var(--ink-1);
  border-bottom-left-radius: 6px;
}
.bubble-user {
  align-self: flex-end;
  background: var(--accent);
  color: white;
  border-bottom-right-radius: 6px;
}
.bubble-doc {
  width: 86%;
  padding: 14px 16px;
}
.bubble-sign { width: 86%; padding: 14px 16px; }

@keyframes bubbleIn {
  from { opacity: 0; transform: translateY(8px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.typing-dots {
  display: inline-flex; gap: 4px; align-items: center;
}
.typing-dots span {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ink-4);
  animation: typingBlink 1.2s infinite ease-in-out;
}
.typing-dots span:nth-child(2) { animation-delay: 0.15s; }
.typing-dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typingBlink {
  0%, 80%, 100% { opacity: 0.3; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-2px); }
}

/* === Two-column feature grid - text + graphic === */
.feat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.feat-grid--flip > *:nth-child(1) { order: 2; }
.feat-grid--flip > *:nth-child(2) { order: 1; }
@media (max-width: 768px) {
  .feat-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  /* left align the heading-level elements */
  .feat-grid .eyebrow,
  .feat-grid .h-section,
  .feat-grid .lede { text-align: left; margin-left: 0; margin-right: auto; }
  /* graphic is second child: stays below text */
  .feat-grid > *:nth-child(1) { order: 1; }
  .feat-grid > *:nth-child(2) { order: 2; }
  /* flip variant: graphic is first child, push it below text */
  .feat-grid--flip > *:nth-child(1) { order: 2; }
  .feat-grid--flip > *:nth-child(2) { order: 1; }
}

/* === Module showcase & bento responsive === */
@media (max-width: 900px) {
  .bento-grid { grid-template-columns: 1fr 1fr !important; }
  .bento-grid > * { grid-column: span 1 !important; }
  .module-showcase-grid { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 600px) {
  .module-showcase-grid { grid-template-columns: 1fr !important; }
  .obligations-row { grid-template-columns: 1fr !important; }
  .bento-grid { grid-template-columns: 1fr !important; }
}

/* === Hamburger button (hidden on desktop) === */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px; height: 40px;
  border-radius: var(--r-md);
  background: transparent;
  border: 1px solid var(--line-strong);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block;
  width: 18px; height: 1.5px;
  background: var(--ink-1);
  border-radius: 2px;
  transition: transform 200ms ease, opacity 200ms ease;
}
.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(4.5px, 4.5px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(4.5px, -4.5px); }

/* === Mobile nav drawer === */
.nav-mobile {
  display: none;
  position: fixed;
  top: 64px;
  left: 0; right: 0;
  height: calc(100vh - 64px);
  height: calc(100dvh - 64px);
  background: var(--bg-elevated);
  z-index: 49;
  flex-direction: column;
}
.nav-mobile.open { display: flex; }
.nav-mobile-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nav-mobile-details {
  border-bottom: 1px solid var(--line);
}
.nav-mobile-details:last-of-type { border-bottom: none; }
.nav-mobile-link {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink-1);
  padding: 16px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  list-style: none;
  text-decoration: none;
}
.nav-mobile-link::-webkit-details-marker { display: none; }
.nav-mobile-details[open] .nav-mobile-link svg { transform: rotate(180deg); }
.nav-mobile-link svg { transition: transform 200ms ease; color: var(--ink-4); }

.nav-mobile-sub {
  padding: 4px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.nav-mobile-sub-title {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: 10px;
}
.nav-mobile-sub-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  font-weight: 400;
  color: var(--ink-2);
  padding: 6px 0;
  text-decoration: none;
}
.nav-mobile-sub-link svg { color: var(--accent); }

.nav-mobile-actions {
  display: flex;
  flex-direction: column;
  padding: 16px;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
}
.nav-mobile-actions .btn { width: 100%; justify-content: center; height: 48px; }

/* === Responsive breakpoints === */

/* ── Tablet/desktop transition ── */
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .nav-actions { display: none; }
  .nav-hamburger { display: flex; }
  .section { padding: 80px 0; }
  .section-lg { padding: 96px 0; }
}

.mob-show { display: none !important; }

/* ── Tablet ── */
@media (max-width: 768px) {
  .container { padding: 0 24px; }
  .section { padding: 72px 0; }
  .section-tight { padding: 44px 0; }
  .section-lg { padding: 88px 0; }
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  /* Stack 2-col side-by-side sections into single column */
  .mob-stack {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  .mob-stack.no-border > div:first-child {
    border-bottom: none !important;
    padding-bottom: 0 !important;
  }
  .mob-stack-flex { flex-direction: column !important; }
  /* Align all section headers and hero CTAs to left on mobile */
  .cc-section-header {
    text-align: left !important;
    margin-left: 0 !important;
    margin-right: auto !important;
  }
  .cc-section-header .lede {
    text-align: left !important;
    margin-left: 0 !important;
    margin-right: auto !important;
  }
  .cc-hero-ctas, .hero-actions {
    justify-content: flex-start !important;
  }
  .mob-stack > div {
    border-right: none !important;
  }
  .mob-stack > div:first-child {
    border-bottom: 1px solid var(--line);
    padding-bottom: 32px;
  }
  /* Comparison table: horizontal scroll */
  .compare-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .compare-table { min-width: 640px; }
  /* Hero CTAs: allow wrapping */
  .hero-actions { flex-wrap: wrap; }
  /* Hide complex mockups that don't work at mobile width */
  .mob-hide { display: none !important; }
  .mob-show { display: inline-flex !important; }
  .footer-form-row { flex-direction: column; }
}

/* ── Mobile ── */
@media (max-width: 640px) {
  /* Reduce generous card/section padding on small screens */
  .mob-pad-lg { padding: 28px 20px !important; }
  /* Pricing calculator: stack */
  .pricing-calc-inner { grid-template-columns: 1fr !important; }
}

@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .section { padding: 64px 0; }
  .section-tight { padding: 40px 0; }
  .section-lg { padding: 80px 0; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; align-items: flex-start; }
  .browser { border-radius: var(--r-lg); min-width: 0; }
  .metric { padding: 20px 0; }
  .mob-stack {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  .mob-stack-flex { flex-direction: column !important; }
  .h-card { font-size: 17px; }
  .lede { font-size: 15px; }
}

/* ── Small phones ── */
@media (max-width: 400px) {
  .container { padding: 0 14px; }
  .btn-lg { height: 44px; font-size: 14px; }
}

/* === Pricing page - mobile === */
@media (max-width: 760px) {
  .cc-pricing-calc-card { padding: 22px !important; }
  .cc-pricing-calc-grid {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }
  .cc-pricing-calc-divider { display: none !important; }

  .cc-pricing-tiers { grid-template-columns: 1fr !important; }
  .cc-tier-card {
    padding: 24px !important;
    transform: none !important;
  }

  .cc-pricing-addons-head {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    margin-bottom: 24px !important;
  }

  /* Comparison matrix: horizontal scroll instead of cramming 4 cols */
  .cc-pricing-compare-wrap {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }
  .cc-pricing-compare-grid {
    min-width: 640px;
  }
}

@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .section { padding: 56px 0; }
  .section-tight { padding: 40px 0; }
  .section-lg { padding: 72px 0; }
  [data-density="compact"] .section { padding: 44px 0; }
  [data-density="compact"] .section-lg { padding: 60px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ==========================================
   ContractControl Unique Brand Effects (Antigravity-Inspired)
   ========================================== */

/* Subtle dotted grid background pattern */
.brand-grid-bg {
  background-image: radial-gradient(rgba(110, 86, 207, 0.05) 1.2px, transparent 1.2px);
  background-size: 24px 24px;
  position: relative;
}

/* Ambient floating gradient glow blobs */
.brand-glow-container {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.brand-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.85;
  pointer-events: none;
  background: radial-gradient(circle, rgba(110, 86, 207, 0.06) 0%, rgba(110, 86, 207, 0) 70%);
}

.brand-glow-1 {
  width: 450px;
  height: 450px;
  left: -10%;
  top: 5%;
  animation: driftGlow1 24s ease-in-out infinite alternate;
}

.brand-glow-2 {
  width: 500px;
  height: 500px;
  right: -5%;
  bottom: 10%;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.05) 0%, rgba(79, 70, 229, 0) 70%);
  animation: driftGlow2 28s ease-in-out infinite alternate;
}

@keyframes driftGlow1 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 30px) scale(1.1); }
  100% { transform: translate(-30px, -40px) scale(0.9); }
}

@keyframes driftGlow2 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-50px, -30px) scale(1.15); }
  100% { transform: translate(40px, 20px) scale(0.95); }
}

/* Elegant brand text gradient clips */
.brand-text-gradient {
  background: linear-gradient(135deg, var(--accent) 30%, #8C70ED 70%, #4F46E5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Micro-interaction for logo wordmark on hover */
.nav-logo {
  transition: opacity 200ms ease;
}
.nav-logo:hover {
  opacity: 0.9;
}

/* Interactive tag glow */
.tag-purple {
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.tag-purple:hover {
  border-color: rgba(110, 86, 207, 0.4);
  box-shadow: 0 0 8px rgba(110, 86, 207, 0.15);
}

/* Animated strikethrough drawing over Chaos (Premium Bespoke Vector Design) */
.chaos-strikeout {
  position: relative;
  display: inline-block;
  font-style: normal;
}

/* Google/Designer-crafted SVG path stroke drawing */
.chaos-stroke-path {
  stroke-dasharray: 120;
  stroke-dashoffset: 120;
  animation: drawStrokePath 1.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.55s;
}

@keyframes drawStrokePath {
  to {
    stroke-dashoffset: 0;
  }
}

/* Interactive Redline Click Ripple Animation */
@keyframes redlineRipple {
  0% {
    transform: translate(-12px, -12px) scale(0.2);
    opacity: 0.9;
  }
  100% {
    transform: translate(-12px, -12px) scale(2.2);
    opacity: 0;
  }
}

/* --- Responsive Enhancements for Home Page Layouts --- */

/* Grid Metric Items (Metrics component) */
.grid-metric-item {
  border-right: 1px solid var(--line);
  padding: 0 24px;
  transition: all 140ms ease;
}
.grid-metric-item:last-child {
  border-right: none;
}

@media (max-width: 900px) {
  .grid-metric-item {
    padding: 16px;
    border-right: none;
  }
  .grid-metric-item:nth-child(odd) {
    border-right: 1px solid var(--line);
  }
  .grid-metric-item:nth-child(even) {
    border-right: none;
  }
  .grid-metric-item:nth-child(1),
  .grid-metric-item:nth-child(2) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 600px) {
  .grid-metric-item {
    border-right: none !important;
    border-bottom: 1px solid var(--line) !important;
    padding: 20px 0 !important;
  }
  .grid-metric-item:last-child {
    border-bottom: none !important;
  }
}

/* Obligation / Health Monitor Card Spacing */
.monitor-card-header {
  padding: 26px 28px 18px;
}
.monitor-card-item {
  padding: 12px 28px;
}

@media (max-width: 600px) {
  .monitor-card-header {
    padding: 20px 16px 14px;
  }
  .monitor-card-item {
    padding: 12px 16px;
  }
}

/* Department Showcase Tabs Scrollable wrapper */
.showcase-tabs-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
  scrollbar-width: none;
}
.showcase-tabs-wrap::-webkit-scrollbar {
  display: none;
}
.showcase-tabs {
  display: flex;
  gap: 8px;
  padding: 4px 16px;
}

/* Department Showcase Panel Layout */
.showcase-panel-content {
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--line);
}
.showcase-panel-mockup {
  background: var(--bg-soft);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .showcase-tabs-wrap {
    justify-content: flex-start;
  }
  .showcase-panel-content {
    padding: 32px 24px;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
  .showcase-panel-mockup {
    padding: 28px 24px;
  }
}

@media (max-width: 600px) {
  .showcase-panel-content {
    padding: 24px 16px;
  }
  .showcase-panel-mockup {
    padding: 20px 16px;
  }
}

/* === Mega menu use cases === */
.mega-uc-item {
  display: block;
  text-decoration: none;
  padding: 8px;
  margin: 0 -8px;
  border-radius: 8px;
  transition: background 140ms ease;
}
.mega-uc-item:hover {
  background: var(--bg-soft);
}
.mega-uc-item:hover .uc-title {
  color: var(--accent) !important;
}





