/* The Copy Studios — shared stylesheet
   Rebranded to match xaibridge.com:
   Light theme (#fff / #f7f7f7), ink #0a0a0a, accent green #2ec27e.
   Headings: Clash Display Bold. Body: Inter.
   Yellow (#FFCE00) / Trustpilot green (#00B67A) kept ONLY as Trustpilot
   "yellow zone / green zone" data semantics in score visuals. */

@font-face {
  font-family: 'Clash Display';
  src: url('fonts/ClashDisplay-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('fonts/Inter-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --bg-soft: #f7f7f7;
  --bg-card: #f7f7f7;
  --line: #e5e7eb;
  --text: #0a0a0a;
  --ink: #141414;
  --muted: #5c5c5c;
  --faint: #9ca3af;
  --accent: #2ec27e;
  --accent-strong: #1f9e64;
  --accent-soft: rgba(46, 194, 126, .12);
  --accent-glow: rgba(46, 194, 126, .18);
  --yellow: #FFCE00;
  --green: #00B67A;
  --red: #e0564b;
  --max: 1080px;
  --radius: 8px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: 'Clash Display', 'Inter', -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0 0 0.6em;
  font-weight: 700;
  letter-spacing: 0.005em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; color: var(--muted); max-width: 42em; }
p.lede, .lede { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--ink); }
a { color: var(--text); }
strong { color: var(--text); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  z-index: 50;
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  letter-spacing: 0.01em;
  color: var(--text);
  white-space: nowrap;
}
.brand .dot { color: var(--yellow); }
.brand .dot::before { content: "\2605"; margin: 0 0.15em; font-size: 0.85em; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  font: inherit;
  font-size: 0.85rem;
  padding: 8px 12px;
  cursor: pointer;
}
.nav-toggle .bars { display: inline-block; width: 16px; margin-right: 8px; }
.nav-toggle .bars span {
  display: block; height: 2px; background: var(--text);
  margin: 3px 0; border-radius: 1px;
}

.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a.nav-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}
.site-nav a.nav-link:hover { color: var(--text); }
.site-nav a.nav-link[aria-current="page"] { color: var(--text); font-weight: 600; }

.btn {
  display: inline-block;
  background: var(--text);
  color: #ffffff;
  font-family: var(--font);
  font-weight: 600;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: 0.95rem;
  line-height: 1.2;
  cursor: pointer;
}
.btn:hover { background: var(--accent-strong); }
.btn.btn-sm { padding: 7px 14px; font-size: 0.85rem; }
.btn.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.btn.btn-ghost:hover { border-color: var(--accent); color: var(--text); background: var(--accent-soft); }

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .site-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 8px 0;
  }
  .site-nav.open { display: flex; }
  .site-nav a.nav-link { padding: 12px 24px; font-size: 1rem; border-top: 1px solid var(--line); }
  .site-nav a.nav-link:first-child { border-top: 0; }
  .site-nav .btn { margin: 12px 24px; text-align: center; }
}

/* ---------- Sections ---------- */
main { display: block; }
.section { padding: 84px 0; border-bottom: 1px solid var(--line); }
.section:last-of-type { border-bottom: 0; }
.section-tight { padding: 56px 0; }
.section-alt { background: var(--bg-soft); }
.eyebrow {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin-bottom: 14px;
}
.section h2 { max-width: 22em; }

.hero { padding: 120px 0 100px; }
.hero h1 { max-width: 15em; }
.hero .lede { margin-bottom: 34px; max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* Score colors */
.c-yellow { color: #8a6d00; }
.c-green { color: var(--green); }
.c-red { color: var(--red); }
.c-muted { color: var(--muted); }

/* ---------- Cards, grids, stats ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.card h3 { margin-bottom: 8px; }
.card p { font-size: 0.95rem; margin: 0; }

.stat .num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.05;
  margin-bottom: 6px;
}
.stat .lbl { display: block; font-size: 0.88rem; color: var(--muted); }
.stat .sub { display: block; font-size: 0.8rem; color: var(--faint); margin-top: 6px; }

.step { padding-left: 22px; border-left: 2px solid var(--line); }
.step .week { display: block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-strong); margin-bottom: 6px; }
.step h3 { margin-bottom: 6px; }
.step p { font-size: 0.95rem; margin: 0; }

/* ---------- Lists ---------- */
.check-list, .plain-list { list-style: none; padding: 0; margin: 0 0 1em; }
.check-list li, .plain-list li {
  padding: 10px 0 10px 30px;
  position: relative;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.check-list li:last-child, .plain-list li:last-child { border-bottom: 0; }
.check-list li::before {
  content: "\2713";
  position: absolute;
  left: 4px;
  color: var(--accent-strong);
  font-weight: 700;
}
.plain-list li::before {
  content: "\2013";
  position: absolute;
  left: 4px;
  color: var(--faint);
}

/* ---------- Tables ---------- */
table.data {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1em;
  font-size: 0.95rem;
}
table.data th, table.data td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
table.data th { color: var(--faint); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; }
table.data td { color: var(--muted); }
table.data td:first-child { color: var(--text); }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--line); padding: 26px 0; }
.faq-item h3 { margin-bottom: 8px; font-size: 1.15rem; }
.faq-item p { margin: 0; }

/* ---------- Case studies ---------- */
.case-card { display: flex; flex-direction: column; gap: 10px; }
.case-card .tag {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--faint);
}
.case-card .headline-num {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.6vw, 2rem);
  font-weight: 700;
  letter-spacing: 0;
}
.case-card a.more {
  margin-top: auto;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  align-self: flex-start;
}
.case-card a.more:hover { color: var(--accent-strong); }

.panel {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  margin: 30px 0;
}
.panel-title { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); margin-bottom: 20px; }

.viz { width: 100%; height: auto; display: block; }
.viz text { font-family: var(--font); }
.viz .axis { stroke: var(--line); stroke-width: 1; }
.viz .grid-line { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 5; }
.viz .tick { fill: var(--faint); font-size: 12px; }
.viz .lbl { fill: var(--muted); font-size: 13px; }
.viz .lbl-strong { fill: var(--text); font-size: 14px; font-weight: 700; }
.viz .big { fill: var(--text); font-size: 44px; font-weight: 800; }
.viz .arrow { fill: var(--faint); }
.viz .zone-band { opacity: 0.12; }
.viz .zone-label { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }

.caption { font-size: 0.82rem; color: var(--faint); margin-top: 12px; }

/* ---------- Source proof (redacted client dashboard crops) ---------- */
.proof { margin: 40px 0 0; }
.proof-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 16px;
}
.proof figure { margin: 0 0 22px; }
.proof img {
  display: block;
  width: 100%;
  max-width: 860px;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.proof figcaption { font-size: 0.82rem; color: var(--faint); margin-top: 8px; }
.takeaway {
  border-left: 3px solid var(--accent);
  padding: 6px 0 6px 22px;
  margin: 40px 0 0;
}
.takeaway h3 { margin-bottom: 6px; }
.takeaway p { margin: 0; color: var(--muted); }

/* CTA block */
.cta-block { text-align: left; max-width: 640px; }

/* ---------- Footer ---------- */
.site-footer {
  padding: 56px 0 48px;
  background: var(--text);
  color: #f7f7f7;
}
.site-footer .brand { color: #ffffff; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-inner nav a { color: rgba(247, 247, 247, 0.75); text-decoration: none; font-size: 0.9rem; }
.footer-inner nav a:hover { color: #ffffff; }
.footer-note { color: rgba(247, 247, 247, 0.5); font-size: 0.82rem; margin-top: 24px; }

@media (max-width: 620px) {
  .section { padding: 60px 0; }
  .hero { padding: 80px 0 70px; }
}
