/* Fragment Intelligence — Home */

:root {
  --bg: #FAFAFA;
  --bg-elev: #F4F4F5;
  --bg-dark: #09090B;
  --bg-dark-elev: #18181B;
  --border: #E4E4E7;
  --border-strong: #D4D4D8;
  --border-dark: #27272A;
  --text-strong: #09090B;
  --text: #18181B;
  --text-body: #52525B;
  --text-muted: #71717A;
  --text-faint: #A1A1AA;
  --text-on-dark: #E4E4E7;
  --text-on-dark-muted: #A1A1AA;
  --accent: #0D8F91;        /* AA on light per brand spec */
  --accent-on-dark: #0EA5A8;
  --section-pad: 120px;
  --container: 1200px;
  --content: 960px;
  --radius: 8px;
  --radius-sm: 6px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
}

body {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-body);
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* === Typography === */
.mono {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 400;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--accent);
  display: inline-block;
}

h1, h2, h3, h4 {
  color: var(--text-strong);
  font-weight: 400;
  margin: 0;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 { font-size: clamp(40px, 5.4vw, 64px); line-height: 1.08; letter-spacing: -0.02em; }
h2 { font-size: clamp(30px, 3.4vw, 40px); line-height: 1.15; letter-spacing: -0.015em; }
h3 { font-size: 20px; line-height: 1.3; font-weight: 500; }
h4 { font-size: 16px; line-height: 1.3; font-weight: 500; }

p { margin: 0; }

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

section { padding: var(--section-pad) 0; }
.section-divider { border-top: 1px solid var(--border); }

.density-compact { --section-pad: 80px; }

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  font-size: 13.5px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: all 160ms ease;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: #0a7577; }
.btn-secondary {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  padding: 8px 0;
}
.btn-ghost:hover { color: var(--text); }
.btn .arrow { display: inline-block; transition: transform 160ms ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* === Nav === */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 250, 0.85);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}
.nav-links {
  display: flex;
  gap: 36px;
  font-size: 13.5px;
  color: var(--text-muted);
}
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; gap: 14px; align-items: center; }

/* === Logo === */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.logo-mark { width: 24px; height: 24px; }
.logo-words {
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
}
.logo-words .lw1 {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.32em;
  color: var(--text-strong);
}
.logo-words .lw2 {
  font-size: 9px;
  font-weight: 300;
  letter-spacing: 0.32em;
  color: var(--text-muted);
  margin-top: 3px;
}

/* === Hero === */
.hero {
  position: relative;
  padding: 96px 0 120px;
  overflow: hidden;
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(9,9,11,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(9,9,11,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 80%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 72px;
  align-items: center;
}
.hero-copy h1 {
  margin-bottom: 24px;
  font-weight: 300;
}
.hero-copy h1 em {
  font-style: normal;
  color: var(--accent);
  position: relative;
}
.hero-sub {
  font-size: 18px;
  line-height: 1.55;
  color: var(--text-body);
  max-width: 520px;
  margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.hero-meta {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 48px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.hero-meta strong {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 24px;
  font-weight: 400;
  color: var(--text-strong);
  letter-spacing: -0.01em;
  text-transform: none;
  margin-bottom: 4px;
}

/* === Hero report mock === */
.report-mock {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text);
  box-shadow: 0 1px 0 var(--border);
}
.report-mock::before {
  content: "";
  position: absolute;
  inset: -8px -8px auto auto;
  width: 64px; height: 64px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  z-index: -1;
}
.report-mock::after {
  content: "";
  position: absolute;
  inset: -16px -16px auto auto;
  width: 64px; height: 64px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  z-index: -2;
}
.report-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 18px;
}
.report-head .title { font-size: 14px; font-weight: 500; color: var(--text-strong); }
.report-head .sub { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--text-muted); letter-spacing: 0.16em; text-transform: uppercase; margin-top: 4px; }
.report-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 4px 8px;
  border-radius: 4px;
}
.report-finding {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--border);
  align-items: baseline;
}
.report-finding:last-of-type { border-bottom: none; }
.report-finding .name { font-weight: 500; color: var(--text-strong); flex: 1; min-width: 0; }
.report-finding .amt { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--text); width: 88px; text-align: right; }
.report-finding .days { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; color: var(--text-muted); width: 92px; text-align: right; letter-spacing: 0.06em; }
.report-finding.flagged .name { display: flex; gap: 8px; align-items: center; }
.report-finding.flagged .name::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.report-insight {
  margin-top: 18px;
  padding: 14px 16px;
  background: var(--bg-elev);
  border-left: 2px solid var(--accent);
  border-radius: 0 4px 4px 0;
  font-size: 12.5px;
  color: var(--text);
  line-height: 1.55;
}
.report-insight strong { color: var(--text-strong); font-weight: 500; }
.report-bars {
  margin-top: 14px;
  display: flex;
  gap: 4px;
  align-items: flex-end;
  height: 38px;
}
.report-bars span {
  flex: 1;
  background: var(--border-strong);
  border-radius: 1px;
}
.report-bars span.hot { background: var(--accent); }

/* === Problem grid === */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}
.problem-cell {
  padding: 36px 32px;
  border-right: 1px solid var(--border);
  position: relative;
}
.problem-cell:last-child { border-right: none; }
.problem-cell .num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.22em;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.problem-cell h3 {
  font-size: 19px;
  font-weight: 500;
  color: var(--text-strong);
  margin-bottom: 10px;
  letter-spacing: -0.005em;
}
.problem-cell p { font-size: 14.5px; color: var(--text-body); line-height: 1.6; }

/* === How it works === */
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 56px;
  position: relative;
}
.how-step {
  padding: 0 28px 0 0;
  position: relative;
}
.how-step .step-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--accent);
  margin-bottom: 20px;
}
.how-step .step-title {
  font-size: 22px;
  font-weight: 400;
  color: var(--text-strong);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.how-step .step-body { font-size: 14.5px; color: var(--text-body); line-height: 1.6; max-width: 280px; }
.how-step .step-line {
  height: 1px;
  background: var(--border);
  width: 100%;
  margin-bottom: 28px;
  position: relative;
}
.how-step .step-line::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 32px; height: 1px;
  background: var(--accent);
}

/* === Produces === */
.produces-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}
.produce-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
  transition: border-color 200ms ease;
}
.produce-card:hover { border-color: var(--border-strong); }
.produce-card .pmono {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 24px;
  display: block;
}
.produce-card h3 {
  font-size: 22px;
  font-weight: 400;
  color: var(--text-strong);
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}
.produce-card p { font-size: 14.5px; color: var(--text-body); line-height: 1.6; }
.produce-card .visual {
  margin-bottom: 24px;
  height: 120px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-elev);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  overflow: hidden;
  position: relative;
}

/* === Modules table === */
.modules-table {
  margin-top: 56px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}
.module-row {
  display: grid;
  grid-template-columns: 56px 1.2fr 0.9fr 1.5fr;
  align-items: center;
  padding: 22px 28px;
  border-bottom: 1px solid var(--border);
  transition: background-color 160ms ease;
}
.module-row:last-child { border-bottom: none; }
.module-row:hover { background: var(--bg-elev); }
.module-row .midx {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--text-faint);
}
.module-row .mname {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-strong);
  letter-spacing: -0.005em;
}
.module-row .mtype {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.module-row .mtype.t-doc { color: var(--accent); }
.module-row .mdesc { font-size: 14px; color: var(--text-body); }
.modules-head {
  display: grid;
  grid-template-columns: 56px 1.2fr 0.9fr 1.5fr;
  align-items: center;
  padding: 16px 28px;
  background: var(--bg-elev);
  border-bottom: 1px solid var(--border);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* === Dark feature section (What Fragment Sees) === */
.dark-section {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  padding: var(--section-pad) 0;
  position: relative;
  overflow: hidden;
}
.dark-section h2 { color: #fff; font-weight: 300; }
.dark-section .eyebrow { color: var(--text-on-dark-muted); }
.dark-section .eyebrow::before { background: var(--accent-on-dark); }
.dark-section .lead { color: var(--text-on-dark); font-size: 18px; max-width: 620px; line-height: 1.55; margin-top: 16px; }
.sees-grid {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--border-dark);
  border-left: 1px solid var(--border-dark);
}
.sees-cell {
  border-right: 1px solid var(--border-dark);
  border-bottom: 1px solid var(--border-dark);
  padding: 32px 32px 32px 36px;
  position: relative;
}
.sees-cell::before {
  content: "";
  position: absolute;
  left: 0; top: 32px;
  width: 2px; height: 24px;
  background: var(--accent-on-dark);
}
.sees-cell .sm {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.22em;
  color: var(--text-on-dark-muted);
  margin-bottom: 14px;
  display: block;
}
.sees-cell h4 {
  color: #fff;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.sees-cell p { color: var(--text-on-dark-muted); font-size: 14px; line-height: 1.6; }

/* === Pricing === */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}
.price-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.price-card.featured {
  border-color: var(--accent);
  border-width: 1px;
  box-shadow: inset 3px 0 0 var(--accent);
}
.price-card .ptier {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.price-card .pname {
  font-size: 24px;
  font-weight: 400;
  color: var(--text-strong);
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.price-card .pprice {
  font-size: 32px;
  font-weight: 300;
  color: var(--text-strong);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.price-card .pprice-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 28px;
}
.price-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}
.price-card li {
  font-size: 14px;
  color: var(--text-body);
  padding: 7px 0 7px 22px;
  position: relative;
  line-height: 1.5;
}
.price-card li::before {
  content: "";
  position: absolute;
  left: 0; top: 14px;
  width: 10px; height: 1px;
  background: var(--text-faint);
}
.price-card.featured li::before { background: var(--accent); }
.price-card .price-cta { margin-top: auto; }
.price-card .price-cta .btn {
  width: 100%;
  justify-content: center;
}
.featured-tag {
  position: absolute;
  top: -1px;
  right: 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent);
  padding: 5px 10px;
  border-radius: 0 0 4px 4px;
}
.pricing-note {
  margin-top: 36px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
}

/* === Final CTA === */
.final-cta {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  padding: 120px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.final-cta .grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 50% at 50% 50%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 50% at 50% 50%, #000 30%, transparent 80%);
}
.final-cta-inner { position: relative; }
.final-cta h2 {
  color: #fff;
  font-weight: 300;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.015em;
}
.final-cta h2 em { font-style: normal; color: var(--accent-on-dark); }
.final-cta p {
  color: var(--text-on-dark-muted);
  font-size: 17px;
  max-width: 540px;
  margin: 0 auto 40px;
}
.final-cta .btn-primary { background: var(--accent-on-dark); }
.final-cta .btn-primary:hover { background: #0c8a8c; }
.final-cta .btn-secondary {
  border-color: var(--border-dark);
  color: var(--text-on-dark);
}
.final-cta .btn-secondary:hover { border-color: var(--accent-on-dark); color: var(--accent-on-dark); }

/* === Footer === */
footer {
  background: var(--bg-dark);
  color: var(--text-on-dark-muted);
  padding: 56px 0 32px;
  border-top: 1px solid var(--border-dark);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-grid h5 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-on-dark-muted);
  margin: 0 0 18px;
  font-weight: 400;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { padding: 5px 0; font-size: 13.5px; color: #D4D4D8; }
.footer-grid li a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid var(--border-dark);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-on-dark-muted);
}
.footer-blurb { color: var(--text-on-dark); font-size: 14px; line-height: 1.55; max-width: 320px; margin-top: 16px; font-family: 'Inter', sans-serif; letter-spacing: 0; text-transform: none; }
footer .logo .lw1 { color: #fff; }
footer .logo .lw2 { color: var(--text-on-dark-muted); }

/* === Chat with HubSpot === */
.chat-section {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-elev) 100%);
}
.chat-shell {
  margin-top: 56px;
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
}
.chat-frame {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  min-height: 620px;
  box-shadow: 0 1px 0 var(--border), 0 24px 60px -28px rgba(9,9,11,0.18);
  overflow: hidden;
}
.chat-frame-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  background: #fff;
}
.cfh-left { display: flex; align-items: center; gap: 10px; }
.cfh-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(13,143,145,0.12);
}
.cfh-title {
  font-size: 13px; font-weight: 500; color: var(--text-strong);
}
.cfh-sep { color: var(--text-faint); font-size: 13px; }
.cfh-portal {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px; color: var(--text-muted);
}
.cfh-status {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.cfh-status i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  animation: chatPulse 2.4s ease-in-out infinite;
}
@keyframes chatPulse { 0%,100%{opacity:1;} 50%{opacity:.35;} }

.chat-stream {
  flex: 1;
  padding: 28px 24px 18px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  overflow: hidden;
}
.chat-turn { display: flex; flex-direction: column; }
.chat-turn.user { align-items: flex-end; }
.chat-bubble {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  padding: 10px 14px;
  border-radius: 14px 14px 4px 14px;
  font-size: 14px;
  color: var(--text-strong);
  max-width: 80%;
  line-height: 1.5;
}
.chat-turn.assistant { gap: 10px; }
.chat-tool {
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #FBFBFB;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  color: var(--text-body);
  overflow: hidden;
}
.chat-tool .ct-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--bg-elev);
  border-bottom: 1px solid var(--border);
}
.chat-tool .ct-icon {
  color: var(--accent); font-size: 13px; line-height: 1;
}
.chat-tool .ct-name {
  color: var(--text-strong); font-weight: 500; letter-spacing: 0.04em;
}
.chat-tool .ct-meta {
  margin-left: auto;
  color: var(--text-muted);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.chat-tool .ct-params {
  padding: 10px 12px;
  color: var(--text-muted);
  white-space: pre-wrap;
  word-break: break-word;
}
.chat-answer {
  font-size: 14px;
  color: var(--text);
  line-height: 1.55;
  padding: 4px 2px;
}
.chat-finding {
  display: grid;
  grid-template-columns: 1fr 100px 140px;
  align-items: baseline;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
}
.chat-finding:last-of-type { border-bottom: none; }
.chat-finding .cname { font-weight: 500; color: var(--text-strong); }
.chat-finding .camt { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--text); text-align: right; }
.chat-finding .cdays { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; color: var(--text-muted); text-align: right; letter-spacing: 0.06em; }

.chat-timeline { display: flex; flex-direction: column; gap: 6px; padding: 4px 0; }
.ct-row {
  display: grid;
  grid-template-columns: 110px 56px 1fr;
  align-items: center;
  gap: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
}
.ct-stage { color: var(--text-strong); }
.ct-dur { color: var(--text-muted); text-align: right; letter-spacing: 0.06em; }
.ct-dur.stalled { color: var(--accent); }
.ct-bar { height: 6px; background: var(--bg-elev); border-radius: 2px; overflow: hidden; }
.ct-bar i { display: block; height: 100%; background: var(--border-strong); }
.ct-bar i.hot { background: var(--accent); }

.chat-input {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  background: #fff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--text);
}
.ci-prompt { color: var(--accent); font-weight: 600; }
.ci-text { color: var(--text-body); flex: 1; }
.ci-caret {
  display: inline-block;
  width: 1.5px;
  height: 14px;
  background: var(--text);
  animation: chatCaret 1s steps(2) infinite;
  margin-left: -6px;
}
@keyframes chatCaret { 0%,50%{opacity:1;} 51%,100%{opacity:0;} }
.ci-kbd {
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 11px;
  color: var(--text-muted);
  background: var(--bg-elev);
}

.chat-side {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  padding: 4px;
}
.cs-block { padding: 22px 22px 18px; }
.cs-block + .cs-block { border-top: 1px solid var(--border); }
.cs-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.cs-tools { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.cs-tools li {
  display: flex; align-items: center; gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text);
}
.cs-tdot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent); opacity: .7;
  flex-shrink: 0;
}
.cs-suggest { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 2px; }
.cs-suggest li {
  font-size: 13px;
  color: var(--text-body);
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #fff;
  transition: border-color 160ms ease, color 160ms ease;
  cursor: pointer;
  line-height: 1.4;
}
.cs-suggest li:hover { border-color: var(--accent); color: var(--text-strong); }
.cs-suggest .cs-arr { color: var(--text-faint); font-family: 'JetBrains Mono', monospace; }
.cs-suggest li:hover .cs-arr { color: var(--accent); }

.cs-foot {
  margin-top: auto;
  padding: 18px 22px;
  border-top: 1px solid var(--border);
  background: var(--bg-elev);
  border-radius: 0 0 6px 6px;
  font-size: 12px;
  color: var(--text-body);
  line-height: 1.5;
}
.cs-foot strong { color: var(--text-strong); font-weight: 500; }

@media (max-width: 1024px) {
  .chat-shell { grid-template-columns: 1fr; }
  .chat-frame { min-height: 0; }
}

/* Section header common */
.sec-head { max-width: 720px; }
.sec-head h2 { margin-bottom: 18px; font-weight: 300; }
.sec-head p { font-size: 17px; color: var(--text-body); line-height: 1.6; max-width: 620px; }
.sec-head h2 em { font-style: normal; color: var(--accent); }

/* Accent toggle off */
.no-accent {
  --accent: #18181B;
  --accent-on-dark: #E4E4E7;
}

/* Grid bg toggle off */
.no-grid .hero-grid-bg,
.no-grid .final-cta .grid-bg { display: none; }

/* === Responsive === */
@media (max-width: 1024px) {
  :root { --section-pad: 80px; }
  .hero-inner { grid-template-columns: 1fr; gap: 56px; }
  .problem-grid, .produces-grid, .pricing-grid, .how-grid, .sees-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  :root { --section-pad: 64px; }
  .nav-links { display: none; }
  .hero { padding: 56px 0 80px; }
  .problem-grid, .produces-grid, .pricing-grid, .how-grid, .sees-grid {
    grid-template-columns: 1fr;
  }
  .problem-cell { border-right: none; border-bottom: 1px solid var(--border); }
  .problem-cell:last-child { border-bottom: none; }
  .module-row, .modules-head { grid-template-columns: 40px 1fr 90px; padding: 18px 20px; }
  .module-row .mdesc { display: none; }
  .modules-head .h-desc { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .hero-meta { gap: 24px; flex-wrap: wrap; }
}
