/* Agentica landing page styles — scoped to body.page-template-page-agentica
 * Dark canvas + red accent. Mobile-first responsive (single desktop image
 * per mockup, scaled via CSS object-fit).
 */

:root {
  --ag-bg: #0A0A0A;
  --ag-surface: #141414;
  --ag-surface-2: #1A1A1A;
  --ag-border: #1F1F1F;
  --ag-text: #F5F5F5;
  --ag-text-muted: #8A8A8A;
  --ag-data: #E8EAED;
  --ag-red: #FF2D2D;
  --ag-red-soft: rgba(255, 45, 45, 0.18);
  --ag-red-glow: rgba(255, 45, 45, 0.40);
  --ag-shadow-red: #2A0408;
  --ag-status-green: #2D9F4F;
  --ag-max: 1440px;
  --ag-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ag-in: 320ms;
  --ag-out: 240ms;
}

body.page-template-page-agentica {
  background: var(--ag-bg);
  color: var(--ag-text);
  font-family: "Switzer", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.55;
  margin: 0;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.page-template-page-agentica * { box-sizing: border-box; }
body.page-template-page-agentica img { max-width: 100%; display: block; }
body.page-template-page-agentica a { color: var(--ag-text); text-decoration: none; }
body.page-template-page-agentica button { font-family: inherit; cursor: pointer; }

.ag-wrap { max-width: var(--ag-max); margin: 0 auto; padding: 0 24px; position: relative; z-index: 2; }

/* =====================================================
 * Signature motif — crosshair corner brackets
 * Apply via .ag-brackets on any element.
 * ===================================================== */
.ag-brackets { position: relative; }
.ag-brackets::before,
.ag-brackets::after,
.ag-brackets > .ag-bracket-bl,
.ag-brackets > .ag-bracket-br { content: ""; position: absolute; width: 14px; height: 14px; border-color: var(--ag-red); border-style: solid; }
.ag-brackets::before { top: -2px; left: -2px; border-width: 2px 0 0 2px; }
.ag-brackets::after { top: -2px; right: -2px; border-width: 2px 2px 0 0; }
.ag-brackets > .ag-bracket-bl { bottom: -2px; left: -2px; border-width: 0 0 2px 2px; }
.ag-brackets > .ag-bracket-br { bottom: -2px; right: -2px; border-width: 0 2px 2px 0; }

/* =====================================================
 * Header §0
 * ===================================================== */
.ag-header { position: sticky; top: 0; z-index: 50; background: rgba(10,10,10,.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--ag-border); }
.ag-header__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; max-width: var(--ag-max); margin: 0 auto; padding: 0 24px; }
.ag-logo { font-family: "Fraunces", serif; font-weight: 600; font-size: 22px; letter-spacing: -0.01em; color: var(--ag-text); }
.ag-nav { display: flex; gap: 28px; align-items: center; }
.ag-nav a { color: var(--ag-text-muted); font-size: 14px; transition: color var(--ag-in) var(--ag-ease); }
.ag-nav a:hover { color: var(--ag-text); }
.ag-cta-outline { border: 1px solid var(--ag-red); color: var(--ag-red); background: transparent; padding: 10px 18px; border-radius: 8px; font-size: 14px; font-weight: 500; transition: background var(--ag-in) var(--ag-ease); }
.ag-cta-outline:hover { background: var(--ag-red-soft); }
.ag-cta-filled { background: var(--ag-red); color: #fff; border: 0; padding: 14px 24px; border-radius: 10px; font-size: 15px; font-weight: 600; box-shadow: 0 8px 32px var(--ag-red-soft); transition: filter var(--ag-in) var(--ag-ease); }
.ag-cta-filled:hover { filter: brightness(1.1); }
.ag-burger { display: none; background: transparent; border: 0; color: var(--ag-text); padding: 8px; font-size: 22px; }

/* =====================================================
 * Hero §1 — plasma concept art + brackets around stat band
 * ===================================================== */
.ag-hero { padding: 96px 0 64px; position: relative; }
.ag-hero__eyebrow { color: var(--ag-text-muted); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 24px; font-family: "JetBrains Mono", ui-monospace, monospace; text-align: center; }
.ag-hero__h1 { font-family: "Fraunces", serif; font-weight: 600; font-size: clamp(40px, 6vw, 76px); line-height: 1.05; letter-spacing: -0.02em; margin: 0 auto 24px; color: var(--ag-text); max-width: 18ch; text-align: center; }
.ag-hero__h1 em { color: var(--ag-red); font-style: normal; }
.ag-hero__sub { font-size: clamp(17px, 1.5vw, 20px); color: var(--ag-text-muted); max-width: 56ch; margin: 0 auto 32px; text-align: center; }
.ag-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--ag-border); border-bottom: 1px solid var(--ag-border); margin: 32px 0; padding: 0 8px; position: relative; }
.ag-stat { padding: 24px 0; border-right: 1px solid var(--ag-border); padding-left: 16px; padding-right: 16px; }
.ag-stat:last-child { border-right: 0; }
.ag-stat__num { font-family: "Fraunces", serif; font-weight: 600; font-size: clamp(32px, 4vw, 48px); color: var(--ag-text); }
.ag-stat__num em { color: var(--ag-red); font-style: normal; }
.ag-stat__lbl { color: var(--ag-text-muted); font-size: 13px; margin-top: 4px; font-family: "JetBrains Mono", ui-monospace, monospace; letter-spacing: 0.02em; }
.ag-hero__ctas { display: flex; gap: 16px; align-items: center; justify-content: center; margin-bottom: 56px; flex-wrap: wrap; }
.ag-hero__ctas a.ag-link { color: var(--ag-text-muted); font-size: 14px; transition: color var(--ag-in) var(--ag-ease); }
.ag-hero__ctas a.ag-link:hover { color: var(--ag-text); }

.ag-hero__shot { position: relative; }
.ag-hero__shot img { border: 1px solid var(--ag-border); border-radius: 12px; box-shadow: 0 24px 80px var(--ag-red-soft); width: 100%; height: auto; }

/* Floating embers around the hero (CSS-only, no library) */
.ag-embers { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.ag-ember { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: var(--ag-red); opacity: 0; filter: blur(0.5px); animation: ag-ember-drift 12s linear infinite; }
.ag-ember:nth-child(1)  { left: 8%;  bottom: -10px; animation-delay: 0s;    animation-duration: 13s; width: 3px; height: 3px; }
.ag-ember:nth-child(2)  { left: 18%; bottom: -20px; animation-delay: 2s;    animation-duration: 16s; }
.ag-ember:nth-child(3)  { left: 27%; bottom: -10px; animation-delay: 4s;    animation-duration: 11s; width: 2px; height: 2px; }
.ag-ember:nth-child(4)  { left: 39%; bottom: -30px; animation-delay: 1s;    animation-duration: 17s; }
.ag-ember:nth-child(5)  { left: 48%; bottom: -10px; animation-delay: 5s;    animation-duration: 14s; width: 3px; height: 3px; }
.ag-ember:nth-child(6)  { left: 57%; bottom: -20px; animation-delay: 3s;    animation-duration: 15s; }
.ag-ember:nth-child(7)  { left: 66%; bottom: -10px; animation-delay: 6s;    animation-duration: 12s; width: 2px; height: 2px; }
.ag-ember:nth-child(8)  { left: 74%; bottom: -30px; animation-delay: 2.5s;  animation-duration: 18s; }
.ag-ember:nth-child(9)  { left: 82%; bottom: -10px; animation-delay: 4.5s;  animation-duration: 13s; }
.ag-ember:nth-child(10) { left: 89%; bottom: -20px; animation-delay: 1.5s;  animation-duration: 16s; width: 3px; height: 3px; }
.ag-ember:nth-child(11) { left: 14%; bottom: -10px; animation-delay: 7s;    animation-duration: 14s; width: 2px; height: 2px; }
.ag-ember:nth-child(12) { left: 92%; bottom: -10px; animation-delay: 8s;    animation-duration: 15s; }

@keyframes ag-ember-drift {
  0%   { transform: translate(0, 0); opacity: 0; }
  10%  { opacity: 0.7; }
  90%  { opacity: 0.3; }
  100% { transform: translate(40px, -120vh); opacity: 0; }
}

@media (max-width: 768px) {
  .ag-ember:nth-child(n+5) { display: none; }
}

/* =====================================================
 * Problem §2
 * ===================================================== */
.ag-problem { padding: 80px 0; border-top: 1px solid var(--ag-border); }
.ag-problem h2 { font-family: "Fraunces", serif; font-weight: 600; font-size: clamp(28px, 3.5vw, 44px); line-height: 1.1; letter-spacing: -0.01em; margin: 0 0 32px; max-width: 22ch; }
.ag-problem ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; max-width: 64ch; }
.ag-problem li { color: var(--ag-text-muted); font-size: 17px; padding-left: 24px; position: relative; }
.ag-problem li::before { content: "—"; color: var(--ag-red); position: absolute; left: 0; top: 0; }

/* =====================================================
 * Funnel overview §3 — inline animated SVG
 * ===================================================== */
.ag-funnel { padding: 96px 0; border-top: 1px solid var(--ag-border); text-align: center; }
.ag-funnel__eyebrow { color: var(--ag-text-muted); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 16px; font-family: "JetBrains Mono", ui-monospace, monospace; }
.ag-funnel__h2 { font-family: "Fraunces", serif; font-weight: 600; font-size: clamp(28px, 3.5vw, 40px); line-height: 1.15; margin: 0 auto 48px; max-width: 24ch; }
.ag-funnel__diagram { max-width: 1100px; margin: 0 auto; }
.ag-funnel__diagram svg { width: 100%; height: auto; display: block; }

.ag-svg-funnel { font-family: "Switzer", system-ui, sans-serif; }
.ag-svg-funnel .ag-node { fill: var(--ag-surface); stroke: var(--ag-border); stroke-width: 1; }
.ag-svg-funnel .ag-node-num { fill: var(--ag-red); font-family: "JetBrains Mono", ui-monospace, monospace; font-weight: 500; font-size: 11px; letter-spacing: 0.16em; text-anchor: middle; text-transform: uppercase; }
.ag-svg-funnel .ag-node-label { fill: var(--ag-text); font-weight: 600; font-size: 13px; text-anchor: middle; }
.ag-svg-funnel .ag-node-bracket { fill: none; stroke: var(--ag-red); stroke-width: 2; stroke-linecap: square; }
.ag-svg-funnel .ag-junction-dot { fill: var(--ag-red); filter: drop-shadow(0 0 4px rgba(255,45,45,0.7)); animation: ag-junction-pulse 4s ease-in-out infinite; }
.ag-svg-funnel .ag-junction-dot:nth-child(odd) { animation-delay: 0.5s; }
.ag-svg-funnel .ag-flow-base { stroke: rgba(255,45,45,0.20); stroke-width: 2; fill: none; }
.ag-svg-funnel .ag-flow-pulse { stroke: var(--ag-red); stroke-width: 3; fill: none; stroke-linecap: round; stroke-dasharray: 80 1400; stroke-dashoffset: 1400; filter: drop-shadow(0 0 6px rgba(255,45,45,0.7)); }
.ag-svg-funnel.ag-anim .ag-flow-pulse { animation: ag-flow-pulse 6s linear infinite; }

@keyframes ag-flow-pulse {
  0%   { stroke-dashoffset: 1400; }
  100% { stroke-dashoffset: 0; }
}

@keyframes ag-junction-pulse {
  0%, 100% { opacity: 0.3; r: 3; }
  50% { opacity: 1; r: 4; }
}

@media (prefers-reduced-motion: reduce) {
  .ag-svg-funnel.ag-anim .ag-flow-pulse { animation: none; stroke-dashoffset: 0; stroke-dasharray: 1400 0; opacity: 0.6; }
  .ag-svg-funnel .ag-junction-dot { animation: none; opacity: 0.7; }
}

/* =====================================================
 * Mini-flow workflow strips (per-stage)
 * Inline SVG, ~96px tall, sits between "what we do" + "what it means"
 * ===================================================== */
.ag-mini-flow { margin: 28px 0; max-width: 100%; }
.ag-mini-flow svg { width: 100%; height: auto; display: block; max-width: 640px; }
.ag-mini-flow__sub { color: var(--ag-text-muted); font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 11px; letter-spacing: 0.04em; margin-top: 8px; max-width: 640px; }

.ag-mini-svg { font-family: "Switzer", system-ui, sans-serif; }
.ag-mini-svg .ag-mini-node { fill: var(--ag-surface); stroke: var(--ag-border); stroke-width: 1; }
.ag-mini-svg .ag-mini-node-label { fill: var(--ag-text); font-family: "Switzer", system-ui, sans-serif; font-weight: 500; font-size: 11px; text-anchor: middle; }
.ag-mini-svg .ag-mini-node-num { fill: var(--ag-red); font-family: "JetBrains Mono", ui-monospace, monospace; font-weight: 500; font-size: 9px; letter-spacing: 0.14em; text-anchor: middle; }
.ag-mini-svg .ag-mini-bracket { fill: none; stroke: var(--ag-red); stroke-width: 1.5; stroke-linecap: square; }
.ag-mini-svg .ag-mini-arrow { stroke: var(--ag-red); stroke-width: 1.5; fill: none; }
.ag-mini-svg .ag-mini-arrow-head { fill: var(--ag-red); stroke: none; }

@media (max-width: 600px) {
  .ag-mini-flow svg { max-width: 100%; }
  .ag-mini-svg .ag-mini-node-label { font-size: 10px; }
}

/* =====================================================
 * Stage sections §4–§9
 * ===================================================== */
.ag-stage { padding: 96px 0; border-top: 1px solid var(--ag-border); }
.ag-stage__grid { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; }

@media (min-width: 900px) {
  .ag-stage__grid { grid-template-columns: 5fr 8fr; gap: 56px; }
  .ag-stage--reverse .ag-stage__grid { grid-template-columns: 8fr 5fr; }
  .ag-stage--reverse .ag-stage__copy { order: 2; }
  .ag-stage--reverse .ag-stage__shot { order: 1; }
}

.ag-stage__num { color: var(--ag-red); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 12px; font-family: "JetBrains Mono", ui-monospace, monospace; }
.ag-stage__h2 { font-family: "Fraunces", serif; font-weight: 600; font-size: clamp(28px, 3.5vw, 40px); line-height: 1.1; letter-spacing: -0.01em; margin: 0 0 20px; }
.ag-stage__body { color: var(--ag-text-muted); font-size: 17px; max-width: 50ch; margin: 0; }
.ag-stage__pull { margin-top: 24px; padding: 16px 20px; background: var(--ag-surface); border: 1px solid var(--ag-border); border-radius: 10px; color: var(--ag-text); font-size: 15px; }
.ag-stage__pull em { color: var(--ag-red); font-style: normal; font-weight: 600; font-family: "JetBrains Mono", ui-monospace, monospace; }
.ag-stage__shot { position: relative; }
.ag-stage__shot img { border: 1px solid var(--ag-border); border-radius: 12px; box-shadow: 0 24px 80px var(--ag-red-soft); width: 100%; height: auto; transition: transform .3s var(--ag-ease), box-shadow .3s var(--ag-ease); cursor: zoom-in; }
.ag-stage__shot img:hover { transform: scale(1.02); box-shadow: 0 32px 100px var(--ag-red-soft), 0 0 60px rgba(255,45,45,0.08); }

/* =====================================================
 * Numbers §10
 * ===================================================== */
.ag-numbers { padding: 96px 0; border-top: 1px solid var(--ag-border); }
.ag-numbers__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--ag-border); border: 1px solid var(--ag-border); border-radius: 16px; overflow: hidden; }

@media (min-width: 900px) { .ag-numbers__grid { grid-template-columns: repeat(4, 1fr); } }

.ag-numbers__cell { background: var(--ag-bg); padding: 40px 24px; }
.ag-numbers__num { font-family: "Fraunces", serif; font-weight: 600; font-size: clamp(40px, 5vw, 64px); line-height: 1; color: var(--ag-text); }
.ag-numbers__num em { color: var(--ag-red); font-style: normal; }
.ag-numbers__lbl { color: var(--ag-text-muted); font-size: 14px; margin-top: 12px; max-width: 24ch; font-family: "JetBrains Mono", ui-monospace, monospace; letter-spacing: 0.02em; }

/* =====================================================
 * Who it's for §11
 * ===================================================== */
.ag-who { padding: 96px 0; border-top: 1px solid var(--ag-border); }
.ag-who h2 { font-family: "Fraunces", serif; font-weight: 600; font-size: clamp(28px, 3.5vw, 40px); margin: 0 0 40px; }
.ag-who__grid { display: grid; grid-template-columns: 1fr; gap: 16px; }

@media (min-width: 900px) { .ag-who__grid { grid-template-columns: repeat(4, 1fr); } }

.ag-who__card { background: var(--ag-surface); border: 1px solid var(--ag-border); border-radius: 12px; padding: 28px; transition: border-color var(--ag-in) var(--ag-ease); }
.ag-who__card:hover { border-color: var(--ag-text-muted); }
.ag-who__card h3 { font-family: "Fraunces", serif; font-weight: 600; font-size: 20px; margin: 0 0 12px; }
.ag-who__card p { color: var(--ag-text-muted); font-size: 15px; margin: 0; }

/* =====================================================
 * FAQ §12
 * ===================================================== */
.ag-faq { padding: 96px 0; border-top: 1px solid var(--ag-border); }
.ag-faq h2 { font-family: "Fraunces", serif; font-weight: 600; font-size: clamp(28px, 3.5vw, 40px); margin: 0 0 40px; }
.ag-faq__item { border-top: 1px solid var(--ag-border); }
.ag-faq__item:last-child { border-bottom: 1px solid var(--ag-border); }
.ag-faq__item summary { padding: 24px 0; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; font-family: "Fraunces", serif; font-weight: 600; font-size: 20px; }
.ag-faq__item summary::-webkit-details-marker { display: none; }
.ag-faq__item summary::after { content: "+"; color: var(--ag-red); font-size: 24px; font-family: "Switzer", sans-serif; font-weight: 400; transition: transform var(--ag-in) var(--ag-ease); }
.ag-faq__item[open] summary::after { content: "−"; }
.ag-faq__item p { color: var(--ag-text-muted); font-size: 16px; padding: 0 0 24px; margin: 0; max-width: 70ch; }

/* =====================================================
 * Multi-step Apply form §13 (bencium aesthetic)
 * ===================================================== */
.ag-apply { padding: 96px 0; border-top: 1px solid var(--ag-border); }
.ag-apply__inner { max-width: 720px; margin: 0 auto; }
.ag-apply h2 { font-family: "Fraunces", serif; font-weight: 600; font-size: clamp(32px, 4vw, 48px); margin: 0 0 16px; text-align: center; }
.ag-apply__sub { color: var(--ag-text-muted); font-size: 17px; margin-bottom: 56px; text-align: center; }

/* 5-dot micro progress (no text) */
.ag-apply__progress { display: flex; gap: 12px; justify-content: center; margin-bottom: 56px; }
.ag-apply__progress-dot { width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--ag-text-muted); transition: all var(--ag-in) var(--ag-ease); }
.ag-apply__progress-dot.ag-done { background: var(--ag-text-muted); border-color: var(--ag-text-muted); }
.ag-apply__progress-dot.ag-current { background: var(--ag-red); border-color: var(--ag-red); box-shadow: 0 0 12px var(--ag-red-soft); }

/* Step viewport + sliding strip */
.ag-apply__viewport { position: relative; overflow: hidden; min-height: 340px; }
.ag-apply__strip { display: flex; transition: transform var(--ag-in) var(--ag-ease); will-change: transform; }
.ag-apply__step { flex: 0 0 100%; min-width: 100%; padding: 8px 0 24px; }
.ag-apply__step h3 { font-family: "Fraunces", serif; font-weight: 600; font-size: clamp(28px, 4vw, 48px); line-height: 1.1; letter-spacing: -0.01em; margin: 0 0 40px; max-width: 22ch; }

/* Underline-only inputs (no labels — the H3 is the label) */
.ag-apply__field { margin-bottom: 24px; }
.ag-apply__field input,
.ag-apply__field select,
.ag-apply__field textarea {
  width: 100%;
  background: transparent;
  color: var(--ag-text);
  border: 0;
  border-bottom: 1px solid var(--ag-border);
  border-radius: 0;
  padding: 14px 0;
  font-size: 18px;
  font-family: inherit;
  outline: none;
  transition: border-color var(--ag-in) var(--ag-ease), box-shadow var(--ag-in) var(--ag-ease);
}

.ag-apply__field input::placeholder,
.ag-apply__field textarea::placeholder { color: var(--ag-text-muted); }

.ag-apply__field input:focus,
.ag-apply__field select:focus,
.ag-apply__field textarea:focus {
  border-bottom-color: var(--ag-red);
  box-shadow: 0 1px 0 0 var(--ag-red), 0 0 18px -2px var(--ag-red-soft);
}

.ag-apply__field textarea { min-height: 80px; resize: vertical; }
.ag-apply__field select { appearance: none; cursor: pointer; }

/* Radio cards w/ bracket selection state */
.ag-radiocards { display: grid; gap: 12px; }
.ag-radiocards label { position: relative; display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; background: transparent; border: 1px solid var(--ag-border); border-radius: 12px; cursor: pointer; min-height: 56px; transition: border-color var(--ag-in) var(--ag-ease); }
.ag-radiocards label:hover { border-color: var(--ag-text-muted); }
.ag-radiocards input { position: absolute; opacity: 0; pointer-events: none; }
.ag-radiocard__inner { font-size: 16px; color: var(--ag-text); }
.ag-radiocard__hint { font-size: 12px; color: var(--ag-text-muted); margin-top: 2px; font-family: "JetBrains Mono", ui-monospace, monospace; }

/* Selected state: brackets at the row corners */
.ag-radiocards label:has(input:checked) { border-color: var(--ag-red); }
.ag-radiocards label:has(input:checked)::before,
.ag-radiocards label:has(input:checked)::after { content: ""; position: absolute; width: 12px; height: 12px; border: 2px solid var(--ag-red); }
.ag-radiocards label:has(input:checked)::before { top: -2px; left: -2px; border-width: 2px 0 0 2px; }
.ag-radiocards label:has(input:checked)::after { top: -2px; right: -2px; border-width: 2px 2px 0 0; }
.ag-radiocards label:has(input:checked) .ag-radiocard__bracket-bl,
.ag-radiocards label:has(input:checked) .ag-radiocard__bracket-br { display: block; }
.ag-radiocard__bracket-bl,
.ag-radiocard__bracket-br { display: none; position: absolute; width: 12px; height: 12px; border: 2px solid var(--ag-red); }
.ag-radiocard__bracket-bl { bottom: -2px; left: -2px; border-width: 0 0 2px 2px; }
.ag-radiocard__bracket-br { bottom: -2px; right: -2px; border-width: 0 2px 2px 0; }

/* Step nav (Next / Back) */
.ag-apply__nav { display: flex; align-items: center; gap: 24px; margin-top: 24px; }
.ag-apply__next { background: var(--ag-red); color: #fff; border: 0; padding: 14px 28px; border-radius: 10px; font-size: 16px; font-weight: 600; box-shadow: 0 8px 32px var(--ag-red-soft); cursor: pointer; transition: filter var(--ag-in) var(--ag-ease); }
.ag-apply__next:hover { filter: brightness(1.1); }
.ag-apply__next:disabled { background: var(--ag-surface-2); color: var(--ag-text-muted); box-shadow: none; cursor: not-allowed; filter: none; }
.ag-apply__back { background: transparent; color: var(--ag-text-muted); border: 0; font-size: 14px; cursor: pointer; padding: 8px 0; transition: color var(--ag-in) var(--ag-ease); }
.ag-apply__back:hover { color: var(--ag-text); }
.ag-apply__hint { color: var(--ag-text-muted); font-size: 13px; margin-top: 14px; font-family: "JetBrains Mono", ui-monospace, monospace; }

/* Soft-decline panel for <€5K spend */
.ag-decline { padding: 32px; background: var(--ag-surface); border: 1px solid var(--ag-border); border-radius: 12px; }
.ag-decline h4 { font-family: "Fraunces", serif; font-weight: 600; font-size: clamp(24px, 3vw, 32px); margin: 0 0 16px; }
.ag-decline p { color: var(--ag-text-muted); margin: 0 0 24px; }
.ag-decline__actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }

/* Success panel */
.ag-apply__success { display: none; padding: 40px; background: var(--ag-surface); border: 1px solid var(--ag-red); border-radius: 16px; text-align: center; box-shadow: 0 0 32px var(--ag-red-soft); }
.ag-apply__success--show { display: block; }
.ag-apply__success h3 { font-family: "Fraunces", serif; font-weight: 600; font-size: clamp(24px, 3vw, 36px); margin: 0 0 12px; }
.ag-apply__success p { color: var(--ag-text-muted); margin: 0; font-size: 16px; }

/* =====================================================
 * Footer §14
 * ===================================================== */
.ag-foot { padding: 64px 0 32px; border-top: 1px solid var(--ag-border); color: var(--ag-text-muted); font-size: 14px; }
.ag-foot__grid { display: grid; grid-template-columns: 1fr; gap: 32px; margin-bottom: 32px; }

@media (min-width: 900px) { .ag-foot__grid { grid-template-columns: 2fr 1fr 1fr; } }

.ag-foot__col h4 { color: var(--ag-text); font-family: "Fraunces", serif; font-weight: 600; font-size: 16px; margin: 0 0 12px; }
.ag-foot__col a { display: block; padding: 4px 0; color: var(--ag-text-muted); transition: color var(--ag-in) var(--ag-ease); }
.ag-foot__col a:hover { color: var(--ag-text); }
.ag-foot__legal { border-top: 1px solid var(--ag-border); padding-top: 24px; font-size: 12px; font-family: "JetBrains Mono", ui-monospace, monospace; }

/* =====================================================
 * Mouse-follow red spotlight (desktop only)
 * ===================================================== */
.ag-spotlight { position: fixed; inset: 0; pointer-events: none; z-index: 1; background: radial-gradient(circle 600px at var(--mx, -300px) var(--my, -300px), rgba(255,45,45,0.08), transparent 60%); opacity: 0; transition: opacity .4s ease; }
.ag-spotlight--active { opacity: 1; }

@media (max-width: 1023px) { .ag-spotlight { display: none; } }
@media (prefers-reduced-motion: reduce) { .ag-spotlight { display: none; } }

/* =====================================================
 * Reveal-on-scroll
 * ===================================================== */
.ag-reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ag-ease), transform .7s var(--ag-ease); }
.ag-reveal.ag-in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .ag-reveal { opacity: 1; transform: none; transition: none; }
}

/* =====================================================
 * Mobile + sticky CTA + drawer
 * ===================================================== */
.ag-sticky-cta { display: none; }

/* Drawer hidden by default at ALL widths — only the mobile breakpoint
   actually surfaces it (via .ag-drawer--open from the burger click). */
.ag-drawer { display: none; }

@media (max-width: 768px) {
  .ag-sticky-cta { display: block; position: fixed; left: 0; right: 0; bottom: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(10,10,10,.92); backdrop-filter: blur(10px); border-top: 1px solid var(--ag-border); z-index: 40; transition: transform var(--ag-out) var(--ag-ease); }
  .ag-sticky-cta--hidden { transform: translateY(110%); }
  .ag-sticky-cta a { display: block; text-align: center; background: var(--ag-red); color: #fff; padding: 14px 18px; border-radius: 10px; font-weight: 600; }
  .ag-nav { display: none; }
  .ag-burger { display: inline-flex; }
  .ag-cta-outline--header { display: none; }
  .ag-drawer { position: fixed; inset: 0; background: rgba(10,10,10,.96); z-index: 60; padding: 80px 24px 24px; display: none; flex-direction: column; gap: 16px; }
  .ag-drawer--open { display: flex; }
  .ag-drawer a { color: var(--ag-text); font-size: 22px; padding: 12px 0; border-bottom: 1px solid var(--ag-border); }
  .ag-drawer__close { position: absolute; top: 18px; right: 18px; background: transparent; border: 0; color: var(--ag-text); font-size: 28px; cursor: pointer; }

  /* Stage sections — image always below copy on mobile */
  .ag-stage__grid { gap: 32px; }

  /* Mobile padding tighter */
  .ag-hero { padding: 56px 0 40px; }
  .ag-problem,
  .ag-funnel,
  .ag-stage,
  .ag-numbers,
  .ag-who,
  .ag-faq,
  .ag-apply { padding: 64px 0; }
}

/* =====================================================
 * Lightbox (click-to-maximize images)
 * ===================================================== */
.ag-lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,0); display: flex; align-items: center; justify-content: center; padding: 24px; opacity: 0; pointer-events: none; transition: opacity .4s var(--ag-ease), background .4s var(--ag-ease); cursor: zoom-out; backdrop-filter: blur(0px); }
.ag-lightbox--open { opacity: 1; pointer-events: auto; background: rgba(0,0,0,.94); backdrop-filter: blur(12px); }
.ag-lightbox__img { max-width: 95%; max-height: 92vh; border-radius: 12px; box-shadow: 0 40px 120px rgba(255,45,45,0.15), 0 0 0 1px rgba(255,45,45,0.1); object-fit: contain; transform: scale(0.85); transition: transform .4s var(--ag-ease); }
.ag-lightbox--open .ag-lightbox__img { transform: scale(1); }

/* =====================================================
 * Reduced motion (global)
 * ===================================================== */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .ag-ember { animation: none; opacity: 0; }
}
