/* ════════════════════════════════════════════════════════════════
   AgentGH — Production Stylesheet  (v4, clean)
   ~520 lines of active styles only. Previous 2053-line version
   carried ~1650 lines of dead code from legacy iterations.
   ════════════════════════════════════════════════════════════════ */

/* ── Variables ─────────────────────────────────────────────────── */
:root {
  --ink:          #0b1026;
  --ink-soft:     #35405a;
  --muted:        #737b8d;
  --line:         #e4e8f1;
  --paper:        #f7f8fb;
  --panel:        #ffffff;
  --orange:       #ff4500;
  --orange-dark:  #d83b00;
  --orange-soft:  rgba(255,69,0,.10);
  --shadow:       0 24px 70px rgba(11,16,38,.075);
  --shadow-soft:  0 12px 34px rgba(11,16,38,.055);
  --radius-card:  26px;
  --radius-pill:  999px;
}

/* ── Reset ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 82% 10%, rgba(255,69,0,.04), transparent 25rem),
    linear-gradient(180deg, #fff 0%, #fbfbfc 52%, #fff 100%);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

h1, h2, h3 {
  margin-top: 0;
  font-family: "Inter Tight", Inter, system-ui, sans-serif;
}
p { margin-top: 0; }

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; cursor: pointer; }

/* ── Layout shell ──────────────────────────────────────────────── */
.section-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

/* ── Header ────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 14px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1180px, calc(100% - 40px));
  margin: 14px auto 0;
  padding: 10px 14px;
  border: 1px solid rgba(11,16,38,.08);
  border-radius: 18px;
  background: rgba(255,255,255,.90);
  backdrop-filter: blur(18px);
  box-shadow: 0 14px 40px rgba(11,16,38,.07);
  transition: box-shadow 200ms ease;
}

.site-header.is-elevated {
  box-shadow: 0 18px 48px rgba(11,16,38,.09);
}

/* Brand / logo — NO box, NO border, NO background */
.brand { display: inline-flex; align-items: center; }

.brand-logo {
  display: block;
  width: 158px;
  height: auto;
}

.brand-logo--footer {
  width: 136px;
}

/* ── Buttons ───────────────────────────────────────────────────── */
.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -.01em;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
  white-space: nowrap;
}

.header-cta,
.button.primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 10px 24px rgba(255,69,0,.18);
}

.header-cta:hover,
.button.primary:hover {
  transform: translateY(-1px);
  background: var(--orange-dark);
  box-shadow: 0 14px 32px rgba(255,69,0,.24);
}

.button.secondary {
  border: 1px solid rgba(11,16,38,.12);
  background: #fff;
  color: var(--ink);
  box-shadow: none;
}

.button.secondary:hover {
  border-color: rgba(255,69,0,.3);
  color: var(--orange);
  transform: translateY(-1px);
}

/* ── Typography ────────────────────────────────────────────────── */
.eyebrow {
  margin: 0 0 16px;
  color: var(--orange);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .09em;
  text-transform: uppercase;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(48px, 6.4vw, 88px);
  font-weight: 900;
  line-height: .98;
  letter-spacing: -.052em;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(34px, 4.8vw, 62px);
  font-weight: 900;
  line-height: .98;
  letter-spacing: -.048em;
}

.hero-subtitle {
  max-width: 590px;
  color: var(--ink-soft);
  font-size: clamp(17px, 1.8vw, 21px);
  font-weight: 500;
  line-height: 1.58;
}

/* ── Hero ──────────────────────────────────────────────────────── */
.simple-hero {
  margin-top: -82px;
  padding: 150px 0 64px;
}

.simple-hero-grid {
  display: grid;
  grid-template-columns: minmax(0,.95fr) minmax(360px,.72fr);
  gap: 68px;
  align-items: center;
  min-height: calc(100vh - 132px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 0;
}

.simple-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.simple-proof span {
  padding: 8px 13px;
  border: 1px solid rgba(11,16,38,.08);
  border-radius: var(--radius-pill);
  background: #fff;
  color: #46506a;
  font-size: 12px;
  font-weight: 800;
}

/* ── Hero chat console ─────────────────────────────────────────── */
.simple-console {
  border: 1px solid rgba(11,16,38,.085);
  border-radius: var(--radius-card);
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.console-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.console-top div {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
}

.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 5px rgba(255,69,0,.1);
}

.console-thread {
  display: grid;
  gap: 12px;
  padding: 20px;
}

.chat-card {
  width: min(88%, 440px);
  padding: 14px 16px;
  border: 1px solid rgba(228,232,241,.88);
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(11,16,38,.045);
  animation: slideIn .65s cubic-bezier(.2,1,.2,1) both;
}

.chat-card.agent {
  justify-self: end;
  border-color: transparent;
  background: var(--ink);
  color: #fff;
  animation-delay: .2s;
}

.chat-card.system {
  border-color: rgba(255,69,0,.14);
  background: #fffaf7;
  animation-delay: .4s;
}

.chat-card span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.chat-card.agent span { color: rgba(255,255,255,.55); }

.chat-card p {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(16px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Sections ──────────────────────────────────────────────────── */
.simple-section { padding: 56px 0; }

/* ── Demo section (dark) ───────────────────────────────────────── */
.compact-demo {
  background: linear-gradient(180deg, #0b1026 0%, #111828 100%);
  color: #fff;
}

.compact-demo .eyebrow { color: #ff8154; }

.compact-demo-grid {
  display: grid;
  grid-template-columns: minmax(0,.68fr) minmax(380px,1fr);
  gap: 56px;
  align-items: center;
}

.compact-copy h2 {
  max-width: 480px;
  font-size: clamp(32px, 4.4vw, 52px);
  letter-spacing: -.046em;
}

.compact-copy p {
  max-width: 420px;
  color: rgba(255,255,255,.68);
  font-size: 17px;
  line-height: 1.54;
}

.mini-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.mini-flow span {
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.78);
  font-size: 12px;
  font-weight: 800;
}

/* ── Demo widget ───────────────────────────────────────────────── */
.demo-widget {
  display: grid;
  grid-template-rows: auto minmax(240px,1fr) auto;
  border: 1px solid rgba(11,16,38,.085);
  border-radius: var(--radius-card);
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.demo-widget-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .04em;
}

.demo-widget-head div {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.demo-widget-head select {
  max-width: 200px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-pill);
  padding: 8px 12px;
  background: rgba(255,255,255,.08);
  color: #fff;
  font-weight: 800;
}

.demo-widget-thread {
  display: flex;
  max-height: 340px;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  padding: 16px;
  background: #f9fafc;
}

.demo-widget-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 14px;
  border-top: 1px solid var(--line);
}

.demo-widget-form input {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 0 16px;
  background: #fff;
  color: var(--ink);
  transition: border-color 150ms ease;
}

.demo-widget-form input:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255,69,0,.1);
}

.demo-widget-form button {
  min-height: 46px;
  border: 0;
  border-radius: var(--radius-pill);
  padding: 0 20px;
  background: var(--orange);
  color: #fff;
  font-weight: 900;
  transition: background 180ms ease, transform 180ms ease;
}

.demo-widget-form button:hover {
  background: var(--orange-dark);
  transform: translateY(-1px);
}

.demo-widget-form input:disabled,
.demo-widget-form button:disabled {
  cursor: not-allowed;
  opacity: .68;
  transform: none;
}

.demo-debug {
  border-top: 1px solid var(--line);
  background: #fbfcff;
  color: var(--ink-soft);
  font-size: 12px;
}

.demo-debug summary {
  cursor: pointer;
  padding: 10px 14px;
  color: var(--ink);
  font-weight: 850;
}

.demo-debug dl {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0 14px 14px;
}

.demo-debug div {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 10px;
}

.demo-debug dt {
  color: var(--ink);
  font-weight: 800;
}

.demo-debug dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

/* ── Pricing ───────────────────────────────────────────────────── */
.offer-section { background: #fff; }

.offer-header {
  max-width: 620px;
  margin-bottom: 36px;
}

.offer-subtext {
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.6;
  margin-top: 8px;
}

.pricing-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.pricing-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.pricing-card--featured {
  border-color: rgba(255,69,0,.22);
  background:
    radial-gradient(circle at 92% 8%, rgba(255,69,0,.07), transparent 14rem),
    #fff;
  box-shadow: 0 20px 56px rgba(255,69,0,.1);
}

.pricing-label {
  margin: 0 0 8px;
  color: var(--orange);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.pricing-name {
  margin: 0 0 10px;
  font-family: "Inter Tight", Inter, system-ui, sans-serif;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -.02em;
}

.pricing-amount {
  margin: 0 0 14px;
  font-family: "Inter Tight", Inter, system-ui, sans-serif;
  font-size: 38px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.055em;
  color: var(--ink);
}

.pricing-amount span {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--muted);
}

.pricing-desc {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.56;
}

.offer-cta { margin-top: 4px; }

/* ── FAQ ───────────────────────────────────────────────────────── */
.simple-faq { background: var(--paper); }

.faq-compact {
  display: grid;
  grid-template-columns: minmax(260px,.42fr) minmax(0,1fr);
  gap: 40px;
  align-items: start;
}

.simple-heading { max-width: 480px; }
.simple-heading h2 { font-size: clamp(32px, 4.8vw, 56px); }

.faq-list { display: grid; gap: 10px; }

.faq-list details {
  border: 1px solid rgba(228,232,241,.9);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(11,16,38,.03);
  transition: box-shadow 150ms ease;
}

.faq-list details[open] {
  box-shadow: 0 10px 30px rgba(11,16,38,.06);
}

.faq-list summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 22px;
  font-family: "Inter Tight", Inter, system-ui, sans-serif;
  font-size: 19px;
  font-weight: 850;
  letter-spacing: -.02em;
  user-select: none;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list p {
  margin: 0;
  padding: 0 22px 20px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.65;
}

/* ── Footer ────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 36px 0;
}

.footer-inner > div p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  flex-shrink: 0;
  gap: 20px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 700;
}

.footer-links a:hover { color: var(--orange); }

/* ── Mobile sticky CTA ─────────────────────────────────────────── */
.mobile-sticky-cta {
  position: fixed;
  right: 16px;
  left: 16px;
  bottom: 12px;
  z-index: 40;
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  border-radius: var(--radius-pill);
  background: var(--orange);
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  box-shadow: 0 14px 36px rgba(255,69,0,.28);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease;
}

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .simple-hero-grid,
  .compact-demo-grid,
  .faq-compact {
    grid-template-columns: 1fr;
  }

  .simple-hero-grid { gap: 40px; }
  .compact-demo-grid { gap: 32px; }
}

@media (max-width: 760px) {
  .section-shell,
  .site-header {
    width: min(100% - 28px, 1180px);
  }

  .site-header {
    top: 10px;
    padding: 8px 12px;
  }

  .brand-logo { width: 140px; }

  /* Hero */
  .simple-hero {
    margin-top: -82px;
    padding: 126px 0 48px;
  }

  .simple-hero-grid { min-height: auto; }

  h1 { font-size: clamp(42px, 13vw, 58px); }
  h2 { font-size: clamp(32px, 10.5vw, 48px); }

  .hero-subtitle { font-size: 17px; }

  /* Sections */
  .simple-section { padding: 44px 0; }

  /* Pricing */
  .pricing-steps { grid-template-columns: 1fr; }
  .pricing-card { padding: 22px; border-radius: 20px; }

  /* FAQ */
  .faq-compact { grid-template-columns: 1fr; }
  .faq-list summary { font-size: 17px; padding: 16px 18px; }
  .faq-list p { padding: 0 18px 16px; }

  /* Demo widget */
  .demo-widget-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .demo-widget-head select { width: 100%; max-width: none; }
  .demo-widget-form { grid-template-columns: 1fr; }

  /* Footer */
  .footer-inner,
  .footer-links { flex-direction: column; align-items: flex-start; }
  .site-footer { padding-bottom: 70px; }

  /* Sticky CTA */
  .mobile-sticky-cta { display: inline-flex; }
  .show-sticky-cta .mobile-sticky-cta {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
}
