/* =============================================================
   AGENTS — dark-portal landing page. Scent-matched destination for the
   agent campaign creative (docs/ads/linkedin-0727).

   The pinned three-beat sequence is NOT defined here: `.agstage` lives in
   components.css because the homepage runs the same block. Only the
   `.agstage-bare` modifier (drop the intro, tighten the top padding) is
   page-local.

   --dark-bg is overridden to the exact background the stage images were
   rendered on (--stage in assets/agents/src/_base.css). They must stay equal
   or every image shows a visible rectangle against the page.
   Load order: marketing-shell.css → components.css → this file.
   ============================================================= */

.dark-portal {
  --dark-bg: #0b100f;
  --ag-accent: #23c4a9;
  --ag-dim: rgba(255, 255, 255, 0.56);
  --ag-faint: rgba(255, 255, 255, 0.34);
}

.breadcrumb-wrap { max-width: 1180px; margin: 0 auto; padding: 96px 32px 0; }
.dark-portal .breadcrumb a { color: var(--ag-dim); }
.dark-portal .breadcrumb a:hover { color: #fff; }
.dark-portal .breadcrumb-sep { color: var(--ag-faint); }
.dark-portal .breadcrumb span:last-child { color: rgba(255, 255, 255, 0.8); }

/* ---- Shared primitives ---- */
.ag-kicker {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ag-accent);
  margin-bottom: 18px;
}
.ag-h2 {
  font-size: clamp(30px, 3.8vw, 46px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.032em;
  color: #fff;
  margin-bottom: 20px;
}
.ag-h2 em { font-style: normal; color: var(--ag-accent); }
.ag-body {
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--ag-dim);
  max-width: 680px;
}
.ag-note {
  max-width: 1180px;
  margin: 34px auto 0;
  padding: 0 32px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ag-faint);
}

/* ---- HERO ---- */
.ag-hero {
  padding: 44px 32px 24px;
  background: radial-gradient(1000px 520px at 50% -60px, rgba(35, 196, 169, 0.13), transparent 70%);
}
.ag-hero-inner { max-width: 880px; margin: 0 auto; text-align: center; }
/* The clamp minimum is the phone case: "If you can describe it," is 22 characters
   of 800-weight display type, so anything above ~32px overflows a 390px screen —
   and body{overflow-x:hidden} means it clips silently instead of scrolling. The
   hard <br> is dropped below 560px so the line can wrap instead. */
.ag-hero-h1 {
  font-size: clamp(32px, 6.2vw, 74px);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -0.038em;
  color: #fff;
  text-wrap: balance;
}
.ag-hero-h1 em { font-style: normal; color: var(--ag-accent); }
.ag-hero-sub {
  max-width: 660px;
  margin: 24px auto 0;
  font-size: clamp(17px, 1.9vw, 20px);
  line-height: 1.6;
  color: var(--ag-dim);
}
.ag-hero-express { margin-top: 34px; }
.ag-hero-express .bridge-inline-form { margin: 0 auto; max-width: 480px; }
.ag-hero-express .bridge-inline-msg { text-align: center; }
.ag-hero-micro {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--ag-faint);
  margin-top: 14px;
}
.ag-hero-trust {
  margin-top: 40px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ag-faint);
}
.ag-hero-trust strong { color: rgba(255, 255, 255, 0.75); }

/* ---- Stage modifier: the hero already did the introducing ---- */
.agstage-bare { padding-top: 40px; padding-bottom: 40px; background: none; }
.agstage-bare .agstage-track { margin-top: 0; }

/* ---- Section shell ---- */
.ag-sec { padding: 104px 32px; }
.ag-sec-alt { background: rgba(255, 255, 255, 0.025); border-top: 1px solid var(--dark-border); border-bottom: 1px solid var(--dark-border); }
.ag-sec-inner { max-width: 1180px; margin: 0 auto; }

.ag-figure {
  max-width: 1180px;
  margin: 44px auto 0;
  padding: 0;
}
.ag-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
}

/* ---- Starter-skill cards ---- */
.ag-cards {
  max-width: 1180px;
  margin: 44px auto 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.ag-card {
  display: flex;
  flex-direction: column;
  padding: 28px 26px 24px;
  border: 1px solid var(--dark-border);
  border-top: 3px solid var(--ag-accent);
  border-radius: 16px;
  background: var(--dark-surface);
}
.ag-card-k {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 12px;
}
.ag-card-b {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ag-dim);
  margin: 0 0 20px;
}
.ag-card-f {
  margin-top: auto;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--ag-accent);
}

/* ---- Guardrail grid ---- */
.ag-grid {
  max-width: 1180px;
  margin: 44px auto 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--dark-border);
  border: 1px solid var(--dark-border);
  border-radius: 16px;
  overflow: hidden;
}
.ag-cell { background: var(--dark-bg); padding: 24px 22px 26px; }
.ag-cell-h {
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
  margin-bottom: 10px;
}
.ag-cell-d {
  font-size: 14px;
  line-height: 1.65;
  color: var(--ag-dim);
}
.ag-cell-d em { font-style: normal; color: rgba(255, 255, 255, 0.8); }
.ag-cell-d code {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ag-accent);
  background: rgba(35, 196, 169, 0.09);
  border-radius: 4px;
  padding: 1px 5px;
}

/* ---- Sharing ladder ---- */
.ag-ladder {
  max-width: 1180px;
  margin: 44px auto 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  counter-reset: rung;
}
.ag-rung {
  position: relative;
  padding: 26px 24px 24px;
  border: 1px solid var(--dark-border);
  border-radius: 16px;
  background: var(--dark-surface);
}
/* The widening ladder, drawn rather than described. */
.ag-rung::before {
  counter-increment: rung;
  content: counter(rung);
  display: block;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ag-accent);
  margin-bottom: 12px;
}
.ag-rung:nth-child(2) { background: rgba(35, 196, 169, 0.05); }
.ag-rung:nth-child(3) { background: rgba(35, 196, 169, 0.09); border-color: rgba(35, 196, 169, 0.28); }
.ag-rung-k {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: #fff;
  margin-bottom: 10px;
}
.ag-rung-d {
  font-size: 14px;
  line-height: 1.65;
  color: var(--ag-dim);
}

/* ---- Honest limits ---- */
.ag-limits {
  max-width: 1180px;
  margin: 44px auto 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 44px;
}
.ag-limit { border-top: 1px solid var(--dark-border); padding-top: 22px; }
.ag-limit-q {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: #fff;
  margin-bottom: 10px;
}
.ag-limit-a {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ag-dim);
}

/* ---- CTA ---- */
.ag-cta {
  padding: 110px 32px 120px;
  background: radial-gradient(900px 440px at 50% 100%, rgba(35, 196, 169, 0.14), transparent 70%);
}
.ag-cta-inner { max-width: 720px; margin: 0 auto; text-align: center; }
.ag-cta-h2 {
  font-size: clamp(34px, 4.6vw, 56px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.035em;
  color: #fff;
}
.ag-cta-h2 em { font-style: normal; color: var(--ag-accent); }
.ag-cta-sub {
  margin: 20px auto 30px;
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ag-dim);
}
.ag-cta-express .bridge-inline-form { margin: 0 auto; max-width: 480px; }
.ag-cta-express .bridge-inline-msg { text-align: center; }
.ag-cta-note {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ag-faint);
}
.ag-cta-note a { color: rgba(255, 255, 255, 0.75); text-decoration: none; border-bottom: 1px solid rgba(35, 196, 169, 0.5); }
.ag-cta-note a:hover { color: var(--ag-accent); }

/* ---- Responsive ---- */
@media (max-width: 1080px) {
  .ag-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .breadcrumb-wrap { padding: 88px 20px 0; }
  .ag-hero { padding: 32px 20px 16px; }
  .ag-sec { padding: 72px 20px; }
  .ag-note { padding: 0 20px; }
  .ag-cards { grid-template-columns: 1fr; }
  .ag-ladder { grid-template-columns: 1fr; }
  .ag-limits { grid-template-columns: 1fr; gap: 8px 0; }
  .ag-cta { padding: 76px 20px 88px; }
  .agstage-bare { padding-left: 20px; padding-right: 20px; }
}
@media (max-width: 560px) {
  .ag-grid { grid-template-columns: 1fr; }
  /* Let the headline wrap naturally rather than holding the authored break. */
  .ag-hero-h1 br,
  .ag-cta-h2 br { display: none; }
}
