/* ============================================================
   agencies.css — White-Label for Agencies page styles
   All rules scoped under .ag-page. Krawl brand palette.
   ============================================================ */

.ag-page {
  --bg: #001327;
  --bg-soft: #051e35;
  --line: #0f3a5e;
  --text: #F9FAFB;
  --muted: #9CA3AF;
  --accent: #39FF12;
  --accent-ink: #001327;
  --radius: 14px;
  background: var(--bg);
  color: var(--text);
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
}

.ag-page .wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.ag-page section { padding: 96px 0; }
.ag-page h1, .ag-page h2, .ag-page h3 { font-family: 'Raleway', sans-serif; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; color: var(--text); }
.ag-page h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); max-width: 22ch; }
.ag-page .eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 20px; }
.ag-page .lede { color: var(--muted); font-size: 1.1rem; max-width: 62ch; margin-top: 18px; }
.ag-page .btn { display: inline-block; padding: 14px 28px; border-radius: 999px; font-weight: 600; text-decoration: none; font-size: 1rem; transition: transform .15s ease, opacity .15s ease; }
.ag-page .btn:hover { transform: translateY(-1px); }
.ag-page .btn-primary { background: var(--accent); color: var(--accent-ink); }
.ag-page .btn-ghost { color: var(--text); border: 1px solid var(--line); }
.ag-page .btn-ghost:hover { border-color: var(--muted); }

/* Hero */
.ag-page .hero { padding: 140px 0 80px; position: relative; overflow: hidden; }
.ag-page .hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 45% at 75% 0%, rgba(57, 255, 18, .07), transparent 65%),
    repeating-linear-gradient(to right, transparent 0 119px, rgba(255, 255, 255, .025) 119px 120px);
}
.ag-page .hero .wrap { position: relative; }
.ag-page .hero h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); max-width: 17ch; }
.ag-page .hero h1 em { font-style: normal; color: var(--accent); }
.ag-page .hero-ctas { display: flex; gap: 16px; margin-top: 36px; flex-wrap: wrap; }

/* Trust bar */
.ag-page .trustbar { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 0; background: var(--bg-soft); }
.ag-page .trustbar .wrap { display: flex; gap: 12px 40px; flex-wrap: wrap; justify-content: space-between; color: var(--muted); font-size: .92rem; }
.ag-page .trustbar b { color: var(--text); font-weight: 600; }

/* Problem */
.ag-page .options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.ag-page .option { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: var(--bg-soft); }
.ag-page .option h3 { font-size: 1.05rem; margin-bottom: 10px; color: var(--muted); }
.ag-page .option p { color: var(--muted); font-size: .95rem; }
.ag-page .fourth { margin-top: 20px; border: 1px solid var(--accent); border-radius: var(--radius); padding: 32px; background: linear-gradient(180deg, rgba(57, 255, 18, .06), transparent); }
.ag-page .fourth h3 { font-size: 1.2rem; margin-bottom: 8px; }
.ag-page .fourth p { color: var(--muted); max-width: 72ch; }
@media (max-width: 860px) { .ag-page .options { grid-template-columns: 1fr; } }

/* Frictions */
.ag-page .frictions { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ag-page .friction-list { margin-top: 56px; display: grid; gap: 16px; }
.ag-page .friction { display: grid; grid-template-columns: 1fr 1.4fr; gap: 24px; align-items: start; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; background: var(--bg); }
.ag-page .friction .fear { color: var(--muted); font-size: 1.05rem; font-style: italic; }
.ag-page .friction .fear::before { content: "\201C"; color: var(--accent); font-size: 1.4rem; font-style: normal; margin-right: 2px; }
.ag-page .friction .fear::after { content: "\201D"; color: var(--accent); font-size: 1.4rem; font-style: normal; margin-left: 2px; }
.ag-page .friction h3 { font-size: 1.08rem; margin-bottom: 8px; }
.ag-page .friction h3::before { content: "\2192 "; color: var(--accent); }
.ag-page .friction p { color: var(--muted); font-size: .96rem; }
@media (max-width: 760px) { .ag-page .friction { grid-template-columns: 1fr; } }

/* Services */
.ag-page .services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.ag-page .service { border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 32px; transition: border-color .2s, transform .2s; text-decoration: none; color: inherit; display: block; }
.ag-page .service:hover { border-color: var(--accent); transform: translateY(-2px); }
.ag-page .service .num { font-size: .85rem; color: var(--accent); font-weight: 700; letter-spacing: .1em; }
.ag-page .service h3 { font-size: 1.25rem; margin: 14px 0 10px; }
.ag-page .service p { color: var(--muted); font-size: 1.02rem; line-height: 1.6; margin-bottom: 14px; }
.ag-page .service .go { color: var(--accent); font-size: .95rem; font-weight: 600; }
.ag-page .honesty { margin-top: 32px; padding: 24px 28px; border-left: 3px solid var(--accent); background: var(--bg-soft); border-radius: 0 var(--radius) var(--radius) 0; color: var(--muted); max-width: 78ch; font-size: .98rem; }
.ag-page .honesty b { color: var(--text); }
@media (max-width: 960px) { .ag-page .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .ag-page .services-grid { grid-template-columns: 1fr; } }

/* Proof */
.ag-page .proof { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ag-page .stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.ag-page .stat { border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; background: var(--bg); }
.ag-page .stat .big { font-size: clamp(2.6rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -.03em; color: var(--accent); line-height: 1; font-family: 'Raleway', sans-serif; }
.ag-page .stat p { color: var(--muted); margin-top: 14px; font-size: .95rem; }
.ag-page .anon { color: var(--muted); margin-top: 24px; font-size: .92rem; font-style: italic; }
@media (max-width: 860px) { .ag-page .stats { grid-template-columns: 1fr; } }

/* Process */
.ag-page .steps { margin-top: 56px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.ag-page .step { padding: 0 28px 0 0; position: relative; }
.ag-page .step .dot { width: 34px; height: 34px; border-radius: 50%; background: var(--bg-soft); border: 1px solid var(--accent); color: var(--accent); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .9rem; margin-bottom: 20px; }
.ag-page .step h3 { font-size: 1.02rem; margin-bottom: 8px; }
.ag-page .step p { color: var(--muted); font-size: .93rem; }
@media (max-width: 860px) { .ag-page .steps { grid-template-columns: 1fr; } .ag-page .step { padding: 0 0 36px 0; } }

/* FAQ */
.ag-page .faq-list { margin-top: 48px; border-top: 1px solid var(--line); }
.ag-page .faq-item { border-bottom: 1px solid var(--line); }
.ag-page .faq-q { width: 100%; text-align: left; background: none; border: none; color: var(--text); font-size: 1.05rem; font-weight: 600; padding: 24px 48px 24px 0; cursor: pointer; position: relative; font-family: inherit; }
.ag-page .faq-q::after { content: "+"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%); color: var(--accent); font-size: 1.5rem; font-weight: 400; transition: transform .2s; }
.ag-page .faq-item.open .faq-q::after { transform: translateY(-50%) rotate(45deg); }
.ag-page .faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.ag-page .faq-a p { color: var(--muted); padding: 0 0 24px; max-width: 78ch; }

/* Final CTA */
.ag-page .final { text-align: center; padding: 120px 0; background: radial-gradient(ellipse 55% 60% at 50% 100%, rgba(57, 255, 18, .08), transparent 70%); }
.ag-page .final h2 { margin: 0 auto; max-width: 24ch; }
.ag-page .final .lede { margin: 18px auto 0; }
.ag-page .final .hero-ctas { justify-content: center; }

/* Reveal animation */
.ag-page .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.ag-page .reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .ag-page .reveal { opacity: 1; transform: none; transition: none; } }

/* ============================================================
   Overrides / layout additions
   ============================================================ */

/* Two-column hero: text left, illustration right */
.ag-page .hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.ag-page .hero h1 { margin: 0; }
.ag-page .hero-ctas { justify-content: flex-start; }
.ag-page .hero-media img { width: 100%; height: auto; display: block; border-radius: var(--radius); }
@media (max-width: 860px) { .ag-page .hero-grid { grid-template-columns: 1fr; } }

/* Problem intro centered (illustration moved to hero) */
.ag-page #problem h2,
.ag-page #problem .lede { text-align: center; margin-left: auto; margin-right: auto; }

/* Explicit section backgrounds (avoids inherited white-background issues) */
.ag-page section { background: var(--bg); }

/* White sections use a muted off-white (darker than #f8f9fa to reduce glare) */
.ag-page .white-sec { background: #e9edf3; }
.ag-page .white-sec h2, .ag-page .white-sec h3 { color: #002a55; }
.ag-page .white-sec p, .ag-page .white-sec .lede { color: #4e4b66; }

/* Services on white — white cards on the off-white section for definition */
.ag-page .white-sec .service { background: #ffffff; border-color: #e3e8ef; }
.ag-page .white-sec .service:hover { border-color: #02ca30; }
.ag-page .white-sec .service .num,
.ag-page .white-sec .service .go { color: #02ca30; }
.ag-page .white-sec .honesty { background: #ffffff; color: #4e4b66; border-left-color: #02ca30; }
.ag-page .white-sec .honesty b { color: #002a55; }

/* Problem section image */
.ag-page .problem-media img { width: 100%; height: auto; display: block; border-radius: var(--radius); }

/* "How it works" on white — theme-green numbering */
.ag-page .white-sec .step .dot { background: var(--accent); border-color: var(--accent); color: #001327; }

/* Problem section — text on the left, image on the right */
.ag-page .problem-top { display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: center; }
.ag-page .problem-media .media-ph {
  aspect-ratio: 4 / 3;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
  display: flex; align-items: center; justify-content: center;
  text-align: center; color: var(--muted);
  font-size: .85rem; line-height: 1.5; padding: 24px;
}
@media (max-width: 860px) { .ag-page .problem-top { grid-template-columns: 1fr; } }
