/* Agencies — partner program page. Quiet editorial layout: off-white and
   white bands split by hairlines, small uppercase eyebrows, two-line
   headings with a grey second line. Same type and palette as Case studies. */
body.ag-page { background: #ffffff !important; }
.ag { font-family: inherit; color: #1d1d1f; font-size: 18px; line-height: 1.5; }
.ag h1, .ag h2, .ag h3, .ag p, .ag ol, .ag figure { margin: 0; }
.ag-band { padding: clamp(72px, 9vw, 104px) 5vw; }
.ag-band.is-grey { background: #f5f5f7; }
.ag-band + .ag-band { border-top: 1px solid #e8e8ed; }
.ag-inner { max-width: 1240px; margin: 0 auto; }
.ag-split { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.ag-split > .ag-copy { flex: 1 1 380px; min-width: 0; }
.ag-split > .ag-panel { flex: 1 1 520px; min-width: 0; }
.ag-eyebrow { font-size: 12px !important; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #6e6e73; margin-bottom: 16px !important; }
.ag h1, .ag h2 { font-family: inherit !important; font-weight: 600; letter-spacing: -.035em; line-height: 1.05; }
.ag h1 { font-size: clamp(44px, 5.4vw, 76px); line-height: 1; letter-spacing: -.045em; }
.ag h2 { font-size: clamp(34px, 3.6vw, 52px); }
.ag h1 span, .ag h2 span { display: block; }
.ag h1 span + span, .ag h2 span + span { color: #8e8e93; }
.ag-lede { margin-top: 24px !important; max-width: 34em; font-size: 20px; color: #48484c; }
.ag-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 36px; }
.ag-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; border: 0; border-radius: 999px; background: #1d1d1f; color: #fff !important; font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; text-decoration: none; transition: transform .25s; }
.ag-btn:hover { transform: translateY(-2px); }
.ag-link { font-size: 16px; text-decoration: underline; text-underline-offset: 6px; color: inherit; }

/* hero */
.ag-hero { padding-top: clamp(140px, 14vw, 180px); }
.ag-hero .ag-split { align-items: center; }
.ag-hero-shot { flex: 1 1 340px !important; background: #fff; border: 1px solid #e8e8ed; border-radius: 16px; overflow: hidden; }
.ag-hero-shot > div { background: #ebeae6; height: 460px; display: flex; align-items: flex-end; justify-content: center; padding-top: 24px; box-sizing: border-box; }
.ag-hero-shot img { height: 100%; width: auto; max-width: 100%; object-fit: contain; display: block; }
.ag-hero-shot figcaption { padding: 16px 20px; font-size: 15px; color: #6e6e73; display: flex; justify-content: space-between; gap: 12px; }
.ag-hero-shot figcaption b { color: #1d1d1f; font-weight: 500; }

/* steps */
.ag-steps { margin-top: 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.ag-step { background: #f5f5f7; border-radius: 12px; padding: 28px; }
.ag-step p:first-child { font-size: 14px; color: #6e6e73; }
.ag-step h3 { margin: 18px 0 10px; font-family: inherit; font-size: 26px; line-height: 1.15; letter-spacing: -.02em; font-weight: 500; }
.ag-step p:last-child { color: #6e6e73; }

/* calculator */
.ag-card { background: #fff; border: 1px solid #e8e8ed; border-radius: 16px; padding: 32px; }
.ag-calc label { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-weight: 500; }
.ag-calc output { font-size: 28px; font-weight: 600; letter-spacing: -.02em; }
.ag-calc input[type=range] { width: 100%; height: 28px; margin: 12px 0 28px; accent-color: #1d1d1f; }
.ag-calc-label { font-weight: 500; margin-bottom: 12px !important; }
.ag-seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: #f5f5f7; border-radius: 999px; }
.ag-seg button { min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: #6e6e73; font: inherit; font-size: 15px; cursor: pointer; }
.ag-seg button[aria-pressed=true] { background: #fff; color: #1d1d1f; font-weight: 600; box-shadow: 0 1px 3px #0000001f; }
.ag-totals { margin-top: 32px; padding-top: 24px; border-top: 1px solid #e8e8ed; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.ag-totals p:first-child { font-size: 15px; color: #6e6e73; }
.ag-totals p:last-child { margin-top: 4px !important; font-size: clamp(32px, 3.2vw, 44px); font-weight: 600; letter-spacing: -.035em; line-height: 1.1; }

/* perks */
.ag-list { list-style: none; padding: 0 !important; border-top: 1px solid #e8e8ed; }
.ag-list li { display: flex; gap: 20px; align-items: baseline; padding: 22px 0; border-bottom: 1px solid #e8e8ed; font-size: 22px; }
.ag-list li span { font-size: 14px; color: #6e6e73; }

/* faq */
.ag-faq { margin-top: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); column-gap: 40px; }
.ag-faq details { border-top: 1px solid #e8e8ed; padding: 20px 0; }
.ag-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; font-size: 20px; }
.ag-faq summary::-webkit-details-marker { display: none; }
.ag-faq summary::after { content: '+'; color: #6e6e73; }
.ag-faq details[open] summary::after { content: '−'; }
.ag-faq details p { margin-top: 12px !important; color: #6e6e73; }

/* apply form */
.ag-mail { margin-top: 20px !important; font-size: 16px; color: #6e6e73; }
.ag-mail a { color: #1d1d1f; text-underline-offset: 4px; }
.ag-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; }
.ag-field { display: flex; flex-direction: column; gap: 8px; }
.ag-field.is-wide { grid-column: 1 / -1; }
.ag-field label { font-size: 15px; }
.ag-field input { font: inherit; min-height: 48px; padding: 0 14px; border: 1px solid #d2d2d7; border-radius: 10px; background: #fff; color: #1d1d1f; }
.ag-form .ag-btn { grid-column: 1 / -1; justify-self: start; }
.ag-status { grid-column: 1 / -1; font-size: 16px; color: #48484c; min-height: 1.5em; }

@media (max-width: 640px) {
  .ag-form, .ag-totals { grid-template-columns: minmax(0, 1fr); }
  .ag-hero-shot > div { height: 380px; }
}
