/* Agency payout & salary — studio page */
body.agency-page {
  --ag-ink: #10141c;
  --ag-muted: #5b6472;
  --ag-line: rgba(16, 20, 28, 0.1);
  --ag-paper: #f5f6f8;
  --ag-surface: #ffffff;
  --ag-accent: #1f6b2a;
  --ag-accent-2: #c8f542;
  background: var(--ag-paper);
  font-family: Sora, Outfit, "Segoe UI", sans-serif;
  color: var(--ag-ink);
}

body.agency-page .topbar {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
}

.ag-root { overflow: visible; }

.ag-hero-band {
  position: relative;
  background:
    radial-gradient(720px 280px at 90% 12%, rgba(200, 245, 66, 0.09), transparent 58%),
    radial-gradient(640px 320px at 0% 100%, rgba(31, 107, 42, 0.2), transparent 55%),
    linear-gradient(165deg, #12161d 0%, #0c0f14 52%, #141820 100%);
  color: #eef1f6;
  padding: clamp(28px, 5vw, 56px) 0 clamp(40px, 6vw, 72px);
  margin-bottom: clamp(28px, 4vw, 48px);
  overflow: hidden;
}

.ag-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(250px, 0.78fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}

.ag-eyebrow {
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ag-accent-2);
}

.ag-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(1.9rem, 4.2vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 700;
  max-width: 12em;
  color: #f5f7fb;
}

.ag-lead {
  margin: 0 0 16px;
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  line-height: 1.65;
  color: rgba(238, 241, 246, 0.72);
  max-width: 36rem;
}

.ag-trust-line {
  margin: 0 0 24px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(200, 245, 66, 0.92);
}

.ag-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ag-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.ag-btn:hover { transform: translateY(-1px); }

.ag-btn-primary {
  background: var(--ag-accent-2);
  color: #12200f;
  border: 1px solid transparent;
}

.ag-btn-primary:hover { background: #d8ff5e; }

.ag-btn-ghost {
  background: transparent;
  color: #f3f5f9;
  border: 1px solid rgba(243, 245, 249, 0.28);
}

.ag-btn-ghost:hover {
  border-color: rgba(200, 245, 66, 0.55);
  color: var(--ag-accent-2);
}

.ag-device {
  margin: 0;
  justify-self: end;
  width: min(100%, 292px);
}

.ag-device-frame {
  position: relative;
  padding: 11px;
  border-radius: 42px;
  background: linear-gradient(160deg, #3a4048 0%, #1a1f26 40%, #0b0e12 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.ag-device-notch {
  position: absolute;
  top: 20px;
  left: 50%;
  z-index: 2;
  width: 34%;
  height: 20px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #05070a;
  pointer-events: none;
}

.ag-device-screen {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  background: #07090c;
  aspect-ratio: 9 / 16;
}

.ag-page-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #07090c;
}

.ag-device-home {
  display: block;
  width: 32%;
  height: 4px;
  margin: 10px auto 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.ag-device figcaption {
  margin: 14px 0 0;
  text-align: center;
  font-size: 12px;
  line-height: 1.4;
  color: rgba(238, 241, 246, 0.55);
}

.ag-video-fallback {
  display: grid;
  place-items: center;
  height: 100%;
  color: #8b93a1;
  font-size: 13px;
}

.ag-block { padding: clamp(28px, 5vw, 56px) 0; }

.ag-block-head {
  max-width: 42rem;
  margin-bottom: clamp(22px, 3vw, 34px);
}

.ag-block-head h2 {
  margin: 0 0 12px;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  font-weight: 700;
}

.ag-block-head p {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--ag-muted);
}

.ag-intro-split {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.7fr);
  gap: clamp(22px, 4vw, 40px);
  align-items: start;
}

.ag-intro-split .ag-block-head { margin-bottom: 0; max-width: none; }

.ag-pain-logos {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.ag-pain-logos li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 2px 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--ag-line);
}

.ag-pain-logos li span {
  grid-row: 1 / span 2;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: #fdecec;
  color: #9b2c2c;
  font-size: 11px;
  font-weight: 800;
  margin-top: 2px;
}

.ag-pain-logos b {
  font-size: 12px;
  font-weight: 700;
  color: var(--ag-ink);
}

.ag-pain-logos em {
  font-style: normal;
  font-size: 11px;
  color: var(--ag-muted);
  line-height: 1.3;
}

.ag-band {
  background: var(--ag-surface);
  border-top: 1px solid var(--ag-line);
  border-bottom: 1px solid var(--ag-line);
}

.ag-diff-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 3vw, 28px);
}

.ag-diff-grid > div {
  padding: 18px 18px 14px;
  border-radius: 16px;
  border: 1px solid var(--ag-line);
  background: #f8f9fb;
}

.ag-diff-grid > div.is-zeline {
  background: #f3f7ef;
  border-color: rgba(31, 107, 42, 0.18);
}

.ag-diff-grid h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 700;
}

.ag-diff-grid ul {
  margin: 0;
  padding-left: 18px;
  color: var(--ag-muted);
}

.ag-diff-grid li {
  margin: 7px 0;
  font-size: 0.95rem;
  line-height: 1.45;
}

.ag-diff-grid .is-zeline li { color: #2c3a2c; }

.ag-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--ag-line);
  counter-reset: fl-step;
}

.ag-steps li {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  column-gap: 18px;
  row-gap: 4px;
  padding: 20px 0;
  border-bottom: 1px solid var(--ag-line);
  counter-increment: fl-step;
}

.ag-steps li::before {
  content: counter(fl-step, decimal-leading-zero);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ag-accent);
  padding-top: 3px;
  grid-row: 1 / span 2;
}

.ag-steps strong {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ag-ink);
}

.ag-steps span {
  color: var(--ag-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.ag-check-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
}

.ag-check-grid li {
  position: relative;
  padding: 12px 14px 12px 36px;
  border-radius: 12px;
  background: #f3f7ef;
  border: 1px solid rgba(31, 107, 42, 0.12);
  font-size: 0.95rem;
  font-weight: 650;
}

.ag-check-grid li::before {
  content: "✓";
  position: absolute;
  left: 12px;
  top: 12px;
  color: var(--ag-accent);
  font-weight: 800;
}

.ag-split-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 32px);
}

.ag-split-3 h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 700;
}

.ag-split-3 p {
  margin: 0;
  color: var(--ag-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.ag-split-3 a {
  color: var(--ag-accent);
  font-weight: 650;
  text-decoration: none;
}

.ag-split-3 a:hover { text-decoration: underline; }

.ag-contact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.ag-contact-card {
  display: grid;
  gap: 4px;
  padding: 16px 14px;
  border-radius: 14px;
  border: 1px solid var(--ag-line);
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.ag-contact-card:hover {
  border-color: rgba(31, 107, 42, 0.3);
  background: #f3f7ef;
  transform: translateY(-1px);
}

.ag-contact-card b {
  font-size: 14px;
  font-weight: 700;
  color: var(--ag-ink);
}

.ag-contact-card span {
  font-size: 12px;
  color: var(--ag-muted);
  line-height: 1.35;
  word-break: break-word;
}

.ag-faq { border-top: 1px solid var(--ag-line); }

.ag-faq details {
  border-bottom: 1px solid var(--ag-line);
}

.ag-faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 28px 16px 0;
  font-weight: 650;
  font-size: 1rem;
  position: relative;
}

.ag-faq summary::-webkit-details-marker { display: none; }

.ag-faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ag-accent);
  font-size: 1.25rem;
}

.ag-faq details[open] summary::after { content: "–"; }

.ag-faq p {
  margin: 0 0 16px;
  max-width: 44rem;
  color: var(--ag-muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

@media (max-width: 960px) {
  .ag-hero {
    grid-template-columns: 1fr;
  }

  .ag-hero-copy { padding-right: 64px; }

  .ag-device {
    justify-self: center;
    width: min(100%, 250px);
  }

  .ag-intro-split,
  .ag-diff-grid,
  .ag-split-3,
  .ag-check-grid,
  .ag-contact-grid {
    grid-template-columns: 1fr;
  }

  .ag-contact-grid {
    grid-template-columns: 1fr 1fr;
  }

  .ag-steps li {
    grid-template-columns: 40px minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .ag-contact-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .ag-btn,
  .ag-contact-card { transition: none; }
}

/* Interactive phone demo — white iOS theme */
.ag-device-screen {
  display: flex;
  flex-direction: column;
  background: #f4f5f7;
}

.ag-demo {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: #10141c;
  font-family: Sora, Outfit, system-ui, sans-serif;
  user-select: none;
  background: #f4f5f7;
}

.ag-demo-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 36px 12px 10px;
  background: #ffffff;
  border-bottom: 1px solid rgba(16, 20, 28, 0.08);
}

.ag-demo-brand {
  display: grid;
  gap: 2px;
}

.ag-demo-brand b {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #10141c;
}

.ag-demo-brand span {
  font-size: 10px;
  color: #6b7280;
}

.ag-demo-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  background: rgba(31, 107, 42, 0.1);
  color: #1f6b2a;
}

.ag-demo-live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #1f6b2a;
  box-shadow: 0 0 0 3px rgba(31, 107, 42, 0.15);
  animation: ag-pulse 1.4s ease-in-out infinite;
}

@keyframes ag-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

.ag-demo-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 8px 8px 0;
  background: #ffffff;
}

.ag-demo-tab {
  appearance: none;
  border: 0;
  border-radius: 10px;
  padding: 8px 4px;
  font: inherit;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #6b7280;
  background: transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.ag-demo-tab.is-on {
  color: #12200f;
  background: #c8f542;
}

.ag-demo-body {
  flex: 1;
  overflow: hidden;
  padding: 10px 10px 12px;
  position: relative;
  background: #f4f5f7;
}

.ag-demo-panel {
  display: none;
  height: 100%;
  animation: ag-panel-in 0.28s ease;
}

.ag-demo-panel.is-on { display: flex; flex-direction: column; gap: 10px; }

@keyframes ag-panel-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.ag-demo-kicker {
  margin: 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1f6b2a;
}

.ag-demo-panel h3 {
  margin: 0;
  font-size: 15px;
  letter-spacing: -0.02em;
  color: #10141c;
}

.ag-demo-hint {
  margin: 0;
  font-size: 11px;
  line-height: 1.4;
  color: #6b7280;
}

.ag-agent-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
  overflow: auto;
}

.ag-agent {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 8px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(16, 20, 28, 0.08);
  background: #ffffff;
  cursor: pointer;
  text-align: left;
  color: inherit;
  font: inherit;
  box-shadow: 0 4px 12px rgba(16, 20, 28, 0.04);
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.ag-agent:hover,
.ag-agent.is-on {
  border-color: rgba(31, 107, 42, 0.35);
  background: #f3f7ef;
  transform: translateY(-1px);
}

.ag-agent b { font-size: 12px; grid-column: 1; color: #10141c; }
.ag-agent em { font-style: normal; font-size: 10px; color: #6b7280; grid-column: 1; }
.ag-agent strong { font-size: 12px; color: #1f6b2a; grid-row: 1 / span 2; align-self: center; }

.ag-rule {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid rgba(16, 20, 28, 0.08);
  box-shadow: 0 4px 12px rgba(16, 20, 28, 0.04);
}

.ag-rule label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #4b5563;
}

.ag-rule input[type="range"] {
  width: 100%;
  accent-color: #1f6b2a;
}

.ag-rule-val {
  font-weight: 800;
  color: #1f6b2a;
  font-size: 13px;
}

.ag-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.ag-stat {
  padding: 12px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid rgba(16, 20, 28, 0.08);
  box-shadow: 0 4px 12px rgba(16, 20, 28, 0.04);
}

.ag-stat span {
  display: block;
  font-size: 10px;
  color: #6b7280;
  margin-bottom: 4px;
}

.ag-stat strong {
  font-size: 16px;
  letter-spacing: -0.02em;
  color: #10141c;
}

.ag-demo-cta {
  appearance: none;
  border: 0;
  border-radius: 999px;
  min-height: 40px;
  padding: 0 14px;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  background: #c8f542;
  color: #12200f;
  box-shadow: 0 8px 18px rgba(31, 107, 42, 0.18);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.ag-demo-cta:hover { filter: brightness(1.05); transform: translateY(-1px); }
.ag-demo-cta:disabled { opacity: 0.55; cursor: default; transform: none; box-shadow: none; }

.ag-progress {
  height: 6px;
  border-radius: 999px;
  background: rgba(16, 20, 28, 0.08);
  overflow: hidden;
}

.ag-progress > i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #1f6b2a, #c8f542);
  transition: width 0.35s ease;
}

.ag-file-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.ag-file {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(16, 20, 28, 0.08);
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(16, 20, 28, 0.04);
}

.ag-file b { display: block; font-size: 12px; color: #10141c; }
.ag-file span { display: block; font-size: 10px; color: #6b7280; margin-top: 2px; }

.ag-file button {
  appearance: none;
  border: 1px solid rgba(31, 107, 42, 0.28);
  background: #f3f7ef;
  color: #1f6b2a;
  border-radius: 999px;
  padding: 6px 10px;
  font: inherit;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.ag-file.is-ready {
  border-color: rgba(31, 107, 42, 0.28);
  background: #f3f7ef;
}

.ag-toast {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #12200f;
  color: #c8f542;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 3;
  box-shadow: 0 10px 24px rgba(16, 20, 28, 0.2);
}

.ag-toast.is-on {
  opacity: 1;
  transform: none;
}

.ag-demo-foot {
  padding: 0 10px 12px;
  font-size: 10px;
  text-align: center;
  color: #9ca3af;
  background: #f4f5f7;
}

.ag-unique-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.ag-unique-grid article {
  padding: 18px 16px;
  border-radius: 16px;
  border: 1px solid var(--ag-line);
  background: #fff;
}

.ag-unique-grid h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.ag-unique-grid p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ag-muted);
}

.ag-support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.ag-support-grid > div {
  padding: 18px 16px;
  border-radius: 16px;
  border: 1px solid rgba(31, 107, 42, 0.12);
  background: #fff;
}

.ag-support-grid h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.ag-support-grid p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ag-muted);
}

.ag-support-checks {
  margin-top: 4px;
}

.ag-seo-crawl {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ag-crosslink {
  margin: 22px 0 0;
  color: var(--ag-muted);
  font-size: 14px;
  line-height: 1.55;
  max-width: 42rem;
}

.ag-crosslink a {
  color: var(--ag-accent);
  font-weight: 650;
  text-decoration: none;
}

.ag-crosslink a:hover { text-decoration: underline; }

@media (max-width: 960px) {
  .ag-unique-grid,
  .ag-support-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ag-demo-live i,
  .ag-demo-panel { animation: none; }
}
