/* ============================================
   TRAIBE — AI Leverage Scan page styles
   css/services-ai-leverage-scan.css
   ============================================ */

:root {
  --dark:         #080B10;
  --off:          #F7F9FC;
  --green:        #00E4A9;
  --ink:          #0F1923;
  --body-color:   #3D4A58;
  --muted:        #6B7A8D;
  --rule:         #E2E8F0;
  --green-bg:     #F0FDF9;
  --green-border: #B2F0E0;
  --font-sans:    'Plus Jakarta Sans', Arial, sans-serif;
  --font-mono:    'DM Mono', 'Courier New', monospace;
  --pad-x:        clamp(2rem, 10vw, 400px);
  --pad-y:        clamp(1.5rem, 3vw, 2.5rem);
  --gap-sm:       8px;
  --gap-md:       12px;
  --gap-lg:       18px;
}

/* ── RESET & BASE ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; }
body {
  background: #fff;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a      { text-decoration: none; color: inherit; }
ul     { list-style: none; }
strong { font-weight: 600; }

/* ── LAYOUT ── */
.page         { max-width: 100%; background: #fff; }
.section      { padding: var(--pad-y) var(--pad-x); background: #fff; }
.section--alt  { padding: var(--pad-y) var(--pad-x); background: var(--off); }
.section--dark { padding: var(--pad-y) var(--pad-x); background: var(--dark); }
.section--green{ padding: var(--pad-y) var(--pad-x); background: var(--green); }

/* ── BACK TO TOP ── */
.back-top {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 150;
  width: 40px; height: 40px; border-radius: 8px;
  background: #0d1117; border: 1px solid rgba(255,255,255,0.15);
  color: rgba(240,243,248,0.5); font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; opacity: 0; pointer-events: none;
  transition: opacity .3s, color .2s, border-color .2s;
}
.back-top.visible { opacity: 1; pointer-events: auto; }
.back-top:hover   { color: var(--green); border-color: var(--green); }

/* ── LABELS ── */
.lbl, .lbl--plain, .lbl--dark {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.lbl, .lbl--plain { color: var(--ink); }
.lbl--dark        { color: rgba(240,243,248,0.55); }
.lbl::before, .lbl--plain::before, .lbl--dark::before {
  content: '✦'; color: var(--green); font-size: 0.45rem; flex-shrink: 0;
}
.lbl::after       { content: ''; flex: 1; height: 1px; background: var(--rule); }
.lbl--dark::after { content: ''; flex: 1; height: 1px; background: rgba(255,255,255,0.10); }

/* ── HEADER ── */
.header {
  background: var(--dark);
  padding: 1.1rem var(--pad-x);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -1px;
  color: #F0F3F8;
  line-height: 1;
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
}
.logo__dot {
  display: inline-block;
  width: 7px; height: 7px;
  background: var(--green);
  margin-left: 1px; margin-bottom: 2px;
  flex-shrink: 0; align-self: flex-end;
}
.header__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(0,228,169,0.4);
  padding: 3px 10px;
  font-family: var(--font-mono);
  font-size: 0.5rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--green);
}
.header__badge-dot {
  width: 5px; height: 5px;
  background: var(--green);
  border-radius: 50%;
  display: inline-block;
}

/* ── HERO ── */
.hero {
  background: var(--dark);
  border-bottom: 3px solid var(--green);
  padding: 2rem var(--pad-x) 2.5rem;
}
.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.5rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.75rem;
}
.hero__title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.5px;
  color: #F0F3F8;
  margin-bottom: 1rem;
}
.hero__title em { font-style: italic; font-weight: 300; color: var(--green); }
.hero__sub {
  font-size: 1rem;
  color: rgba(240,243,248,0.65);
  line-height: 1.7;
  max-width: 640px;
  margin-bottom: 1.5rem;
}
.hero__sub strong { color: #F0F3F8; font-weight: 600; }

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  cursor: pointer;
  transition: opacity .2s;
}
.btn:hover      { opacity: 0.88; }
.btn--primary   { background: var(--green); color: var(--dark); }
.btn--cta       { background: #3B6FFF; color: #fff; white-space: nowrap; flex-shrink: 0; }

/* ── VALUE GRID ── */
.value-grid { display: flex; gap: var(--gap-sm); align-items: stretch; }
.value-card {
  flex: 1;
  border: 1px solid var(--rule);
  border-top: 3px solid var(--green);
  padding: 1rem;
  background: #fff;
}
.value-card__title { font-size: 0.95rem; font-weight: 700; color: var(--ink); margin-bottom: 0.4rem; }
.value-card__desc  { font-size: 0.875rem; color: var(--body-color); line-height: 1.6; }

/* ── URGENCY / STATS ── */
.urgency-row {
  display: flex;
  gap: var(--gap-lg);
  align-items: stretch;
  margin-bottom: var(--gap-md);
}
.urgency-row:last-child { margin-bottom: 0; }
.urgency-row__text {
  flex: 62;
  display: flex;
  align-items: center;
  font-size: 0.95rem;
  color: var(--body-color);
  line-height: 1.75;
}
.urgency-row__text strong { color: var(--ink); }
.urgency-row__stat {
  flex: 38;
  border: 1px solid var(--rule);
  border-top: 2px solid var(--green);
  padding: 0.75rem 1rem;
  background: #fff;
}
.stat__quote  { font-size: 2.2rem; font-weight: 700; line-height: 0.8; color: var(--green); margin-bottom: 0.4rem; }
.stat__number { font-size: 1.6rem; font-weight: 700; letter-spacing: -1.5px; line-height: 1; color: var(--green); margin-bottom: 0.35rem; }
.stat__number sup { font-size: 0.75rem; letter-spacing: 0; }
.stat__desc   { font-size: 0.75rem; color: var(--body-color); line-height: 1.5; }
.stat__src    { font-family: var(--font-mono); font-size: 0.55rem; color: var(--muted); margin-top: 0.4rem; display: block; }

.urgency-closing {
  margin-top: var(--gap-md);
  padding: 0.85rem 1.1rem;
  border-left: 3px solid var(--green);
  background: var(--green-bg);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.6;
}

/* ── OFFER ── */
.offer-block      { border: 1px solid var(--green-border); padding: 1.25rem; background: var(--green-bg); }
.offer-block__text { font-size: 1.05rem; font-weight: 500; color: var(--ink); line-height: 1.65; }

/* ── PHASES ── */
.phase-grid { display: flex; gap: var(--gap-sm); align-items: stretch; }
.phase-card {
  flex: 1;
  border: 1px solid var(--rule);
  padding: 0.9rem 1rem;
  background: #fff;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.phase-card__bg-num {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -3px;
  line-height: 1;
  color: rgba(0,228,169,0.09);
  position: absolute;
  top: 2px; right: 6px;
  pointer-events: none;
}
.phase-card__tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.5rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--dark);
  font-weight: 500;
  background: var(--green);
  padding: 2px 7px;
  margin-bottom: 0.4rem;
  align-self: flex-start;
}
.phase-card__title { font-size: 0.9rem; font-weight: 700; color: var(--ink); margin-bottom: 0.15rem; }
.phase-card__dur   { font-family: var(--font-mono); font-size: 0.55rem; color: var(--muted); margin-bottom: 0.65rem; }
.phase-card__list li {
  font-size: 0.85rem;
  color: var(--body-color);
  padding: 2px 0;
  display: flex;
  gap: 5px;
}
.phase-card__list li::before { content: '→'; color: var(--green); opacity: 0.8; flex-shrink: 0; }
.phase-card__output {
  margin-top: auto;
  padding-top: 0.6rem;
  border-top: 1px solid var(--rule);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--green);
}
.phase-footnote {
  margin-top: var(--gap-sm);
  padding: 0.65rem 1rem;
  border: 1px solid var(--rule);
  border-left: 3px solid var(--green);
  background: #fff;
  font-size: 0.875rem;
  color: var(--body-color);
  line-height: 1.6;
}
.phase-footnote__label {
  font-family: var(--font-mono);
  font-size: 0.5rem;
  color: var(--green);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 500;
  margin-right: 4px;
}

/* ── DELIVERABLES ── */
.deliverable-grid { display: flex; gap: var(--gap-sm); align-items: stretch; }
.deliverable-card {
  flex: 1;
  border: 1px solid var(--rule);
  padding: 1rem 0.85rem;
  background: #fff;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.deliverable-card__icon  { font-size: 1.25rem; display: block; margin-bottom: 0.4rem; }
.deliverable-card__label { font-size: 0.875rem; font-weight: 700; color: var(--ink); }
.deliverable-card__sub   { font-size: 0.8rem; color: var(--body-color); margin-top: 0.2rem; line-height: 1.5; }
.deliverables-cta        { margin-top: 1.25rem; text-align: center; }

/* ── WHO THIS IS FOR ── */
.who-grid { display: flex; gap: 10px; align-items: stretch; }
.who-card {
  flex: 52;
  border: 1px solid var(--rule);
  padding: 1rem 1.1rem;
  background: #fff;
}
.not-card {
  flex: 48;
  border: 1px solid var(--rule);
  padding: 1rem 1.1rem;
  background: var(--off);
}
.who-list li {
  font-size: 0.875rem;
  color: var(--body-color);
  padding: 0.4rem 0;
  border-top: 1px solid var(--rule);
  display: flex;
  gap: 8px;
  line-height: 1.5;
}
.who-list li::before { content: '✦'; color: var(--green); font-size: 0.5rem; flex-shrink: 0; margin-top: 4px; }
.not-list li {
  font-size: 0.875rem;
  color: var(--muted);
  padding: 0.3rem 0;
  border-top: 1px solid var(--rule);
  display: flex;
  gap: 7px;
  text-decoration: line-through;
  text-decoration-color: #CBD5E0;
}
.not-list li::before { content: '✕'; color: #CBD5E0; flex-shrink: 0; text-decoration: none; }
.who-closing {
  margin-top: 10px;
  padding: 0.75rem 1rem;
  border-left: 3px solid var(--green);
  background: var(--green-bg);
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--body-color);
}
.who-closing strong { color: var(--ink); }

/* ── PITCH ── */
.pitch__body     { font-size: 1.05rem; font-weight: 500; color: #F0F3F8; line-height: 1.7; }
.pitch__body em  { font-style: normal; font-weight: 700; color: var(--green); }

/* ── CTA BAR ── */
.cta-bar        { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
.cta-bar__title { font-size: 1rem; font-weight: 700; color: var(--dark); line-height: 1.35; }
.cta-bar__sub   { font-size: 0.8rem; color: rgba(8,11,16,0.70); margin-top: 0.35rem; font-weight: 500; line-height: 1.5; }
.cta-bar__note  { font-size: 0.7rem; color: rgba(8,11,16,0.45); margin-top: 0.3rem; font-style: italic; }

/* ── FOOTER ── */
.footer {
  background: var(--dark);
  padding: 1rem var(--pad-x);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer__logo .logo__dot { width: 5px; height: 5px; }
.footer__tagline { font-size: 0.65rem; color: rgba(240,243,248,0.28); font-style: italic; margin-top: 3px; }
.footer__links   { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.footer__link    { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 0.6rem; color: rgba(240,243,248,0.42); }
.footer__link svg{ width: 13px; height: 13px; flex-shrink: 0; stroke: rgba(240,243,248,0.42); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .value-grid, .phase-grid, .deliverable-grid, .who-grid {
    flex-direction: column;
  }
  .urgency-row {
    flex-direction: column;
  }
}
