/* Agency Partners: "your name on the front door". Porcelain studio hero (#f2f1ec) with a faint drafting grid, ink black
   text and a black primary button. The centerpiece is a large dark app window on the LEFT that bleeds off the left edge
   of the screen, with the copy on the RIGHT; the window's logo, product name and accent colour swap through three
   fictional agency brands (the white label), so the only colour in the hero is the brand being shown. It reads
   differently from every other hero: Leads (sunset photo), Ads (royal blue technician), SEO Audit (teal AI card right),
   Rank Tracker (violet dusk), Review Manager (charcoal phone left), Smart Inbox (wine, centered window), Pipeline
   (evergreen board), Ignite (paper map), Scheduling (navy, three columns), Training & Support (sunrise sky) and
   Refer & Earn (flat yellow, three-card chain).
   Below the hero it is the same road-map system as referrals/hvac-refer.css (five stops). */

.rb-agency-page {
  --rb-bg: #faf8f2;
  background: var(--rb-bg);
  color: #111418;
}
.ag-main { min-width: 0; }
.ag-main > footer { width: auto; margin: 0; padding-inline: 24px; }
.ag :is(a, button, summary):focus-visible { outline: 3px solid #111418; outline-offset: 3px; }

/* ---------------------------------------------------------------- shared */
.ag {
  --ink: #111418;
  --ink2: #3b3f47;
  --muted: #666b75;
  --sun: #ff5a36;
  --sun-deep: #ff5a36;
  --green: #0e9f6e;
  --go: #111418;
  --asphalt: #464b55;
  --road-edge: #f8f9fc;
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  background:
    radial-gradient(ellipse 40% 30% at 0% 30%, rgba(255, 90, 54, .06), transparent 70%),
    radial-gradient(ellipse 40% 30% at 100% 64%, rgba(47, 124, 246, .06), transparent 70%),
    linear-gradient(180deg, #f7f5ef 0%, #fbfaf6 40%, #f6f4ee 72%, #f1efe8 100%);
}
.ag *, .ag *::before, .ag *::after { box-sizing: border-box; }
:where(.ag) :where(h1, h2, h3, p, ul, ol, figure, blockquote) { margin: 0; padding: 0; }
:where(.ag) :where(ul, ol) { list-style: none; }
.ag img { display: block; max-width: none; }
.ag svg { display: block; overflow: visible; }
.ag h1, .ag h2, .ag h3, .ag-pin b, .ag-brand span, .ag-bigcard b {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: -0.015em;
}
.ag h1 em, .ag h2 em { font-family: inherit; font-style: normal; letter-spacing: inherit; }
.ag-i { width: 22px; height: 22px; flex: 0 0 auto; }
.ag-cap { color: var(--muted); font-size: 12px; }
.ag-stack { display: grid; }
.ag-stack > * { grid-area: 1 / 1; }

.ag-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: #111418;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08) inset, 0 10px 24px rgba(17, 20, 24, .28);
  color: #fff;
  font: 700 16px/1.1 "DM Sans", sans-serif;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.ag-btn:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(255, 255, 255, .12) inset, 0 14px 30px rgba(17, 20, 24, .36); }
.ag-btn .ag-i { width: 18px; height: 18px; }
.ag-btn--ghost { border-color: rgba(17, 20, 24, .45); background: transparent; box-shadow: none; color: var(--ink); }
.ag-btn--ghost:hover { border-color: var(--ink); background: rgba(255, 255, 255, .45); box-shadow: none; color: var(--ink); }
.ag-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.ag-note { font-family: "Caveat", cursive; font-weight: 700; font-size: 30px; line-height: .95; color: var(--ink); }
.ag-note u { text-decoration-color: var(--sun-deep); text-decoration-thickness: 3px; text-underline-offset: 4px; }

.ag-checks { display: flex; flex-direction: column; gap: 9px; }
.ag-checks li { display: flex; align-items: flex-start; gap: 10px; font-size: 15.5px; font-weight: 500; line-height: 1.3; }
.ag-checks svg { width: 20px; height: 20px; flex: 0 0 auto; }
.ag-ok { color: var(--go); }

/* Dark cards (house style): ink navy with a yellow hairline for this page. */
.ag-dark {
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 16px;
  background: linear-gradient(160deg, #1d2129 0%, #15181e 55%, #0f1115 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 2px 4px rgba(13, 15, 19, .18), 0 16px 30px -8px rgba(13, 15, 19, .4), 0 36px 64px -20px rgba(13, 15, 19, .5);
  color: #f1f2f5;
}
/* White cards: fine border + layered shadow. */
.ag-card {
  border: 1px solid rgba(17, 20, 24, .08);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 2px 4px rgba(17, 20, 24, .04), 0 16px 32px -10px rgba(17, 20, 24, .16);
}
.ag-dark, .ag-card { transition: transform .2s ease, box-shadow .2s ease; }
.ag-dark:hover, .ag-card:hover { transform: translateY(-2px); }

/* ---------------------------------------------------------------- hero */
.ag-hero {
  position: relative;
  overflow: hidden;
  padding: 28px 0 52px;
  background: #f2f1ec;
  color: var(--ink);
}
.ag-hero__grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(17, 20, 24, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(17, 20, 24, .06) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(ellipse 80% 90% at 30% 50%, #000 30%, transparent 80%);
  mask-image: radial-gradient(ellipse 80% 90% at 30% 50%, #000 30%, transparent 80%);
  pointer-events: none;
}
.ag-hero__in {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "copy" "win";
  gap: 28px;
  width: min(100% - 32px, 1320px);
  margin: 0 auto;
}
.ag-hero__copy { grid-area: copy; display: grid; gap: 18px; align-content: start; }
.ag-brand { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.ag-brand svg { width: 32px; height: 32px; }
.ag-brand span { font-size: 26px; line-height: 1; letter-spacing: -0.02em; }
.ag-brand small { flex-basis: 100%; color: var(--ink2); font-size: 14px; font-weight: 700; }
.ag h1 { margin: 0; color: var(--ink); font-size: clamp(32px, 8vw, 48px); line-height: 1.06; letter-spacing: -0.025em; text-wrap: balance; }
.ag h1 em { display: block; margin-top: 6px; color: var(--muted); }
.ag-hero__sub { color: var(--ink2); font-size: 17px; line-height: 1.5; text-wrap: pretty; }
.ag-signals { display: grid; gap: 9px; }
.ag-signals li { display: flex; align-items: center; gap: 9px; font-size: 15.5px; font-weight: 700; }
.ag-signals .ag-ok { width: 22px; height: 22px; }

/* The white-label window: logo, name and accent swap through three example agency brands. */
.ag-win { grid-area: win; display: grid; gap: 10px; min-width: 0; }
.ag-win__frame { --brand: #ff5a36; overflow: hidden; border-radius: 16px; background: #0f1115; box-shadow: 0 0 0 1px rgba(17, 20, 24, .2), 0 40px 70px -30px rgba(17, 20, 24, .65), 0 14px 26px -12px rgba(17, 20, 24, .4); color: #eef0f4; }
.ag-win__bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #1b1e25; }
.ag-win__bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a3f4a; }
.ag-win__bar span { margin-left: 10px; padding: 4px 12px; border-radius: 7px; background: #0f1115; color: #b6bbc6; font-size: 12.5px; font-weight: 600; }
.ag-win__body { display: grid; grid-template-columns: 150px minmax(0, 1fr); min-height: 300px; }
.ag-win__side { display: grid; grid-template-rows: auto 1fr auto; gap: 14px; padding: 16px 12px; background: #15181e; border-right: 1px solid rgba(255, 255, 255, .06); }
.ag-win__logo { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ag-win__mark { display: grid; place-items: center; width: 30px; height: 30px; flex: 0 0 auto; border-radius: 8px; background: var(--brand); color: #fff; font: 700 15px/1 "Space Grotesk", sans-serif; transition: background .5s ease; }
.ag-win__logo b { overflow: hidden; font: 700 14px/1.15 "Space Grotesk", sans-serif; }
.ag-win__nav { display: grid; gap: 3px; align-content: start; }
.ag-win__nav li { padding: 7px 9px; border-radius: 7px; color: #9ea4b0; font-size: 13px; font-weight: 600; }
.ag-win__nav li.is-on { background: color-mix(in srgb, var(--brand) 22%, transparent); color: #fff; box-shadow: inset 3px 0 0 var(--brand); transition: background .5s ease, box-shadow .5s ease; }
.ag-win__help { color: #8a90a0; font-size: 11.5px; }
.ag-win__help b { color: #d7dae2; }
.ag-win__main { display: grid; gap: 14px; align-content: start; padding: 18px; }
.ag-win__hi { font: 700 17px/1.2 "Space Grotesk", sans-serif; }
.ag-win__tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ag-win__tiles span { display: grid; gap: 4px; padding: 10px; border-radius: 10px; background: #1b1e25; border-top: 3px solid var(--brand); transition: border-color .5s ease; }
.ag-win__tiles small { color: #9ea4b0; font-size: 11.5px; font-weight: 600; }
.ag-win__tiles b { font: 700 22px/1 "Space Grotesk", sans-serif; }
.ag-win__rows { display: grid; gap: 8px; }
.ag-win__rows i { height: 26px; border-radius: 7px; background: #1b1e25; }
.ag-win__rows i:nth-child(2) { width: 82%; }
.ag-win__rows i:nth-child(3) { width: 64%; }
.ag-win__cap { color: var(--muted); font-size: 12.5px; }
.ag-win__cap span { color: var(--ink); font-weight: 700; }
.ag-win__cap b { color: var(--ink2); font-weight: 600; }
.ag-win :is([data-ag-name], [data-ag-mark], [data-ag-help], [data-ag-url], [data-ag-cap]) { transition: opacity .25s ease, background .5s ease; }
.ag-win.is-swapping :is([data-ag-name], [data-ag-mark], [data-ag-help], [data-ag-url], [data-ag-cap]) { opacity: 0; }

/* ---------------------------------------------------------------- road + steps (phones first) */
.ag-course { position: relative; }
.ag .ag-road, .ag .ag-drive { display: none; }
.ag-step { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 20px; max-width: 780px; margin: 0 auto; padding: 34px 16px 34px 76px; }
.ag-step::before, .ag-finish::before { content: ""; position: absolute; left: 20px; top: 0; bottom: 0; width: 22px; background: var(--asphalt); box-shadow: 0 0 0 2.5px var(--road-edge), 0 0 0 3.5px #d3d8e2; }
.ag-step::after, .ag-finish::after { content: ""; position: absolute; left: 30px; top: 0; bottom: 0; border-left: 2px dashed #fff; }
.ag-step > * { min-width: 0; }
.ag-pin { position: absolute; z-index: 1; left: 0; top: 20px; width: 62px; height: 78px; filter: drop-shadow(0 4px 5px rgba(0, 0, 0, .3)); }
.ag-pin svg { width: 100%; height: 100%; color: var(--pin); }
.ag-pin b { position: absolute; left: 0; right: 0; top: 8px; color: #fff; font-size: 36px; text-align: center; }
@keyframes ag-pin-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
.ag-step.is-in .ag-pin, .ag:not(.ag-motion) .ag-pin { animation: ag-pin-bob 2.6s ease-in-out infinite; }
.ag-step:nth-of-type(even) .ag-pin { animation-delay: -1.3s; }
.ag h2 { font-size: clamp(26px, 6.4vw, 32px); line-height: 1.08; }
.ag-intro { display: grid; gap: 12px; align-content: start; }
.ag-aside { display: grid; gap: 14px; justify-items: start; }
.ag-sub { color: var(--ink2); font-size: 16px; line-height: 1.45; text-wrap: pretty; }
.ag-visual { display: grid; gap: 12px; min-width: 0; container-type: inline-size; }

/* Stop 1: roster */
.ag-av { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 auto; border-radius: 10px; background: var(--c); color: #fff; font: 700 13px/1 "Space Grotesk", sans-serif; }
.ag-roster { display: grid; gap: 12px; max-width: 620px; padding: 18px; }
.ag-roster__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ag-roster__head b { font-size: 17px; }
.ag-seat { justify-self: end; padding: 4px 11px; border-radius: 999px; background: #f1f2f5; color: var(--ink2); font-size: 13px; font-style: normal; font-weight: 700; transition: opacity .3s ease; }
.ag-roster__list { display: grid; gap: 8px; }
.ag-roster__list li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: #f6f7f9; }
.ag-roster__list b { display: block; font-size: 15px; }
.ag-roster__list small { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12.5px; }
.ag-sent { color: #047857 !important; font-weight: 700; }
.ag-sent svg { width: 14px; height: 14px; }
.ag-roster__new { transition: opacity .45s ease, transform .45s cubic-bezier(.22, .8, .24, 1), box-shadow .45s ease; box-shadow: 0 0 0 1.5px rgba(225, 29, 72, .35) inset; }
.ag-roster__btn { justify-self: start; padding: 9px 14px; border-radius: 10px; background: #111418; color: #fff; font-size: 14px; font-weight: 800; transition: transform .2s ease; }
.ag-roster:not([data-state="done"]) .ag-roster__new { opacity: 0; transform: translateY(-8px); }
.ag-roster[data-state="done"] .ag-seat--old, .ag-roster:not([data-state="done"]) .ag-seat--new { opacity: 0; }
.ag-roster[data-state="press"] .ag-roster__btn { transform: scale(.95); }

/* Stop 2: white-label settings */
.ag-wl { display: grid; gap: 12px; max-width: 620px; padding: 18px; }
.ag-wl__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ag-wl__head b { font-size: 17px; }
.ag-wl__head em { justify-self: end; display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: 13px; font-style: normal; font-weight: 800; transition: opacity .3s ease; }
.ag-wl__wait { background: rgba(245, 158, 11, .18); color: #fcd34d; }
.ag-wl__ok { background: #059669; color: #fff; }
.ag-wl__ok svg { width: 14px; height: 14px; }
.ag-wl[data-state="done"] .ag-wl__wait, .ag-wl:not([data-state="done"]) .ag-wl__ok { opacity: 0; }
.ag-wl__rows { display: grid; gap: 7px; }
.ag-wl__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 10px; background: rgba(255, 255, 255, .04); transition: border-color .3s ease, background .3s ease; }
.ag-wl__row small { color: #9ea4b0; font-size: 13px; font-weight: 600; }
.ag-wl__row b { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; transition: opacity .3s ease; }
.ag-wl__row.is-empty b { opacity: 0; }
.ag-wl__row.is-on { border-color: rgba(255, 90, 54, .6); background: rgba(255, 90, 54, .1); }
.ag-wl__logo, .ag-wl__sw { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: #ff5a36; color: #fff; font: 700 12px/1 "Space Grotesk", sans-serif; }

/* Stop 3: markup */
.ag-rate { display: grid; gap: 12px; max-width: 640px; padding: 18px; }
.ag-rate__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.ag-rate__head b { font-size: 17px; }
.ag-rate__pct { font: 700 30px/1 "Space Grotesk", sans-serif; color: #047857; font-variant-numeric: tabular-nums; }
.ag-rate__track { display: block; height: 8px; overflow: hidden; border-radius: 4px; background: #e8ebf0; }
.ag-rate__track i { display: block; width: 100%; height: 100%; background: #059669; transform-origin: 0 50%; transform: scaleX(.6); }
.ag-rate__table { width: 100%; border-collapse: collapse; font-size: 14.5px; font-variant-numeric: tabular-nums; }
.ag-rate__table th { padding: 6px 4px; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .04em; text-align: right; text-transform: uppercase; }
.ag-rate__table th:first-child, .ag-rate__table td:first-child { text-align: left; }
.ag-rate__table td { padding: 9px 4px; border-top: 1px solid #eef0f4; text-align: right; }
.ag-rate__table td:last-child { font-weight: 800; }
.ag-rate__margin { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 12px; background: #ecfdf5; box-shadow: 0 0 0 1px rgba(5, 150, 105, .25) inset; color: #065f46; font-size: 14.5px; font-weight: 700; }
.ag-rate__margin b { font: 700 26px/1 "Space Grotesk", sans-serif; font-variant-numeric: tabular-nums; }

/* Stop 4: jump in */
.ag-jump { display: grid; gap: 12px; max-width: 620px; padding: 18px; }
.ag-jump__row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .05); }
.ag-jump__row b { flex: 1 1 auto; font-size: 15px; }
.ag-jump__open { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 9px; background: #2563eb; color: #fff; font-size: 13.5px; font-weight: 800; transition: transform .2s ease; }
.ag-jump__open svg { width: 15px; height: 15px; }
.ag-jump__tab { display: grid; gap: 10px; padding: 0 0 12px; overflow: hidden; border-radius: 12px; background: #fff; transition: opacity .45s ease, transform .45s cubic-bezier(.22, .8, .24, 1); }
.ag-jump__bar { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: #eef0f4; color: #333842; font-size: 12.5px; font-weight: 700; }
.ag-jump__bar i { width: 10px; height: 10px; border-radius: 3px; background: #ff5a36; }
.ag-jump__tab .ag-win__rows { padding: 0 12px; }
.ag-jump__tab .ag-win__rows i { background: #eef0f4; }
.ag-jump__log { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: 11px; background: rgba(37, 99, 235, .14); transition: opacity .4s ease; }
.ag-jump__log > svg { width: 22px; height: 22px; flex: 0 0 auto; padding: 3px; border-radius: 50%; background: #2563eb; color: #fff; }
.ag-jump__log b { display: block; font-size: 14.5px; }
.ag-jump__log small { display: block; color: #c3c8d3; font-size: 13px; }
.ag-jump:is([data-state="idle"], [data-state="press"]) .ag-jump__tab { opacity: .16; transform: translateY(6px) scale(.985); }
.ag-jump:not([data-state="done"]) .ag-jump__log { opacity: 0; }
.ag-jump[data-state="press"] .ag-jump__open { transform: scale(.95); }

/* Stop 5: phone approval */
.ag-phone { display: grid; gap: 12px; justify-self: start; width: min(100%, 320px); padding: 16px 14px 20px; border: 9px solid #15181e; border-radius: 34px; background: #f6f7f9; box-shadow: 0 30px 50px -24px rgba(17, 20, 24, .55); }
.ag-phone__top { color: var(--ink2); font-size: 13px; font-weight: 700; text-align: center; }
.ag-post { display: grid; gap: 10px; padding: 10px; border-radius: 16px; background: #fff; box-shadow: 0 6px 16px -8px rgba(17, 20, 24, .3); }
.ag-post__img { display: grid; align-content: end; gap: 2px; aspect-ratio: 4 / 3; padding: 14px; border-radius: 11px; background: radial-gradient(circle at 80% 20%, #ffb86b 0 18%, transparent 19%), linear-gradient(160deg, #ff5a36, #c2410c); color: #fff; }
.ag-post__img b { font: 700 22px/1.05 "Space Grotesk", sans-serif; }
.ag-post__img small { font-size: 12.5px; font-weight: 600; }
.ag-post__txt { font-size: 14px; line-height: 1.4; }
.ag-post__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; transition: opacity .3s ease; }
.ag-post__btns em { padding: 10px; border: 1.5px solid #d6dbe3; border-radius: 10px; font-size: 13.5px; font-style: normal; font-weight: 800; text-align: center; transition: transform .2s ease; }
.ag-post__btns .ag-post__yes { border-color: #111418; background: #111418; color: #fff; }
.ag-post__done { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px; border-radius: 10px; background: #ecfdf5; color: #065f46; font-size: 14.5px; transition: opacity .3s ease; }
.ag-post__done svg { width: 18px; height: 18px; }
.ag-phone[data-state="done"] .ag-post__btns, .ag-phone:not([data-state="done"]) .ag-post__done { opacity: 0; }
.ag-phone[data-state="press"] .ag-post__yes { transform: scale(.95); }

/* Finish band */
.ag-finish { position: relative; display: grid; gap: 16px; max-width: 780px; margin: 0 auto; padding: 30px 16px 44px 76px; }
.ag-finish > * { position: relative; z-index: 2; }
.ag-bigcard { position: relative; display: grid; gap: 2px; width: 190px; padding: 0 0 14px; overflow: hidden; border-radius: 14px; background: #fff; box-shadow: 0 16px 30px rgba(17, 20, 24, .16), 0 0 0 1px rgba(17, 20, 24, .06); text-align: center; transform: rotate(-3deg); }
.ag-bigcard small { display: block; padding: 7px 0; background: #111418; color: #fff; font-size: 13px; font-weight: 800; }
.ag-bigcard b { margin-top: 8px; font-size: 32px; line-height: 1; }
.ag-bigcard span { color: var(--ink2); font-size: 13.5px; font-weight: 600; }
.ag-bigcard em { justify-self: center; margin-top: 6px; padding: 3px 10px; border-radius: 999px; background: #ff5a36; color: #fff; font-size: 12px; font-style: normal; font-weight: 800; }
.ag-finish__copy { display: grid; gap: 10px; }
.ag-finish__copy h2 { font-size: clamp(24px, 5.6vw, 30px); }
.ag-finish__copy p { color: var(--ink2); font-size: 15.5px; line-height: 1.45; }
.ag-note--out { justify-self: end; transform: rotate(-5deg); }

/* ---------------------------------------------------------------- sample reviews (same design as the other road pages) */
.ag-reviews { position: relative; z-index: 3; display: grid; gap: 26px; padding: 48px 16px 56px; background: linear-gradient(180deg, #f1efe8 0%, #fbfaf6 100%); scroll-margin-top: 186px; }
.ag-reviews__head { display: grid; justify-items: center; gap: 10px; max-width: 760px; margin: 0 auto; text-align: center; }
.ag-reviews__label { padding: 4px 12px; border-radius: 999px; background: rgba(17, 20, 24, .06); color: var(--muted); font-size: 13px; font-weight: 600; }
.ag-reviews__grid { display: grid; gap: 18px; width: 100%; max-width: 1280px; margin: 0 auto; }
.ag-review { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 24px 22px 22px; border-radius: 18px; background: linear-gradient(180deg, #fff 0%, #fbfcfe 100%); box-shadow: 0 16px 34px rgba(17, 20, 24, .1), 0 2px 6px rgba(17, 20, 24, .05), 0 0 0 1px rgba(17, 20, 24, .06); }
.ag-review::before { content: ""; position: absolute; inset: 0 22px auto; height: 3px; border-radius: 0 0 3px 3px; background: var(--av); opacity: .85; }
.ag-review::after { content: "\201C"; position: absolute; top: 6px; right: 18px; color: color-mix(in srgb, var(--av) 16%, transparent); font: 700 84px/1 Georgia, serif; pointer-events: none; }
.ag-review blockquote { flex: 1 1 auto; }
.ag-review blockquote p { color: var(--ink); font-size: 16px; line-height: 1.55; text-wrap: pretty; }
.ag-review figcaption { display: flex; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid rgba(17, 20, 24, .08); }
.ag-review__av { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 auto; border-radius: 50%; background: var(--av); color: #fff; font: 700 15px/1 "Space Grotesk", sans-serif; }
.ag-review figcaption b { display: block; color: var(--ink); font-size: 16px; }
.ag-review figcaption small { display: block; color: var(--muted); font-size: 13.5px; line-height: 1.35; }

/* ---------------------------------------------------------------- FAQ */
.ag-close { position: relative; z-index: 3; padding: 44px 16px 52px; background: linear-gradient(180deg, #181b21 0%, #0f1115 100%); color: #fff; }
.ag-faq { display: grid; gap: 10px; max-width: 980px; margin: 0 auto; }
.ag-faq h2 { margin-bottom: 6px; color: #fff; font-size: clamp(24px, 5.4vw, 30px); }
.ag-faq details { border: 1px solid rgba(255, 255, 255, .12); border-radius: 10px; background: rgba(255, 255, 255, .04); }
.ag-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 16px; color: #fff; font-size: 16px; font-weight: 700; list-style: none; cursor: pointer; }
.ag-faq summary::-webkit-details-marker { display: none; }
.ag-faq .ag-plus { flex: 0 0 auto; width: 18px; height: 18px; color: #fff; transition: transform .25s ease; }
.ag-faq details[open] .ag-plus { transform: rotate(45deg); }
.ag-faq details p { padding: 0 16px 15px; color: #d7d9de; font-size: 16px; line-height: 1.55; }

/* ---------------------------------------------------------------- get started */
.ag-get { position: relative; z-index: 3; display: grid; padding: 52px 16px 56px; background: #fbfaf6; scroll-margin-top: 186px; }
.ag-plan { display: grid; gap: 20px; width: 100%; max-width: 980px; margin: 0 auto; padding: 24px; border-radius: 18px; background: #f2f1ec; box-shadow: 0 24px 48px -16px rgba(17, 20, 24, .3), 0 0 0 1px rgba(17, 20, 24, .08); color: var(--ink); }
.ag .ag-plan h2 { font-size: clamp(24px, 5.4vw, 30px); line-height: 1.12; }
.ag-plan__copy { display: grid; gap: 14px; }
.ag-plan__list { display: grid; gap: 10px; }
.ag-plan__list li { display: flex; align-items: flex-start; gap: 10px; color: #23262c; font-size: 15.5px; line-height: 1.45; }
.ag-plan__list .ag-ok { width: 20px; height: 20px; margin-top: 2px; }

/* ---------------------------------------------------------------- motion */
.ag-motion .ag-reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s cubic-bezier(.22, .8, .24, 1), transform .6s cubic-bezier(.22, .8, .24, 1); }
.ag-motion .ag-reveal.is-in { opacity: 1; transform: none; }
.ag-motion .ag-pin { transition: transform .5s cubic-bezier(.3, 1.6, .5, 1), filter .4s ease; }
.ag-motion .ag-step:not(.is-in) .ag-pin { transform: translateY(-28px) scale(.8); filter: grayscale(1) opacity(.55); }

@media (max-width: 559px) {
  .ag-win__body { grid-template-columns: 112px minmax(0, 1fr); min-height: 0; }
  .ag-win__main { padding: 14px 12px; }
  .ag-win__tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ag-win__tiles span:nth-child(3) { display: none; }
}

/* ---------------------------------------------------------------- container layouts for the widgets */
@container (max-width: 420px) {
  .ag-rate__table { font-size: 13px; }
}

/* ---------------------------------------------------------------- tablets */
@media (min-width: 700px) {
  .ag-hero { padding-top: 40px; }
  .ag-finish { grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 28px; }
  .ag-note--out { grid-column: 1 / -1; }
  .ag-reviews__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ag-plan { grid-template-columns: minmax(0, 1fr) auto; align-items: end; padding: 30px; }
  .ag-plan .ag-actions { flex-direction: column; }
  .ag-close { padding: 52px clamp(24px, 5vw, 64px) 60px; }
}
@media (min-width: 1000px) {
  /* The window LEFT, bleeding off the left edge; copy RIGHT. */
  .ag-hero__in { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); grid-template-areas: "win copy"; column-gap: clamp(32px, 4vw, 72px); align-items: center; width: auto; margin: 0 clamp(24px, 4vw, 96px) 0 0; }
  .ag-win__frame { border-radius: 0 16px 16px 0; }
  .ag-win__cap { padding-left: 20px; }
  .ag-win__body { grid-template-columns: 190px minmax(0, 1fr); min-height: 380px; }
  .ag-win__side { padding-right: 14px; }
  .ag h1 { font-size: clamp(34px, 3.1vw, 54px); }
}
@media (min-width: 1100px) { .ag-reviews__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; } }

/* ---------------------------------------------------------------- desktop rows */
@media (min-width: 1280px) {
  .ag-hero { padding: 30px 0 48px; }
  .ag-brand span { font-size: 28px; }
  .ag-hero__sub { font-size: clamp(16.5px, 1.1vw, 19px); }
  .ag-win__body { grid-template-columns: 210px minmax(0, 1fr); min-height: 420px; }
  .ag-win__main { padding: 26px; gap: 18px; }
  .ag-win__hi { font-size: 21px; }
  .ag-win__tiles b { font-size: 28px; }

  .ag-course { --edge: 92px; max-width: 1680px; margin: 0 auto; padding: 36px var(--edge) 0; }
  .ag .ag-road { position: absolute; left: 0; top: 0; z-index: 1; display: block; pointer-events: none; }
  .ag-road path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
  .ag-road__edge { stroke: var(--road-edge); stroke-width: 36; filter: drop-shadow(0 2px 3px rgba(17, 20, 24, .25)); }
  .ag-road__top { stroke: var(--asphalt); stroke-width: 30; }
  .ag-road__line { stroke: #fff; stroke-width: 2; stroke-dasharray: 12 10; stroke-linecap: butt !important; }
  .ag .ag-drive { position: absolute; z-index: 4; left: 0; top: 0; display: block; width: 140px; visibility: hidden; filter: drop-shadow(0 7px 5px rgba(17, 20, 24, .28)); pointer-events: none; will-change: transform; }
  .ag .ag-drive.is-placed { visibility: visible; }
  .ag-drive img { width: 100%; height: auto; }
  .ag-drive__right, .ag-drive.is-right .ag-drive__left { display: none !important; }
  .ag-drive.is-right .ag-drive__right { display: block !important; }

  .ag-step {
    z-index: 2;
    grid-template-columns: minmax(330px, .72fr) minmax(0, 1.45fr);
    grid-template-areas: "intro visual";
    align-items: start;
    column-gap: clamp(28px, 3vw, 56px);
    max-width: none;
    margin: 0;
    padding: 58px 36px 58px 104px;
  }
  .ag-intro { grid-area: intro; padding-top: 14px; }
  .ag-visual { grid-area: visual; }
  .ag-step::before, .ag-step::after, .ag-finish::before, .ag-finish::after { content: none; }
  .ag-pin { left: 17px; top: 28px; width: 80px; height: 100px; }
  .ag-pin b { top: 12px; font-size: 42px; }
  .ag h2 { font-size: clamp(27px, 1.95vw, 34px); line-height: 1.06; }

  .ag-finish {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "card copy note";
    align-items: center;
    column-gap: clamp(24px, 3vw, 48px);
    max-width: none;
    margin: 10px 0 0 104px;
    padding: 30px 32px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 16px 36px rgba(17, 20, 24, .1), 0 0 0 1px rgba(17, 20, 24, .05);
  }
  .ag-bigcard { grid-area: card; }
  .ag-finish__copy { grid-area: copy; }
  .ag-finish__copy h2 { font-size: clamp(24px, 1.7vw, 30px); }
  .ag-note--out { grid-column: auto; grid-area: note; font-size: 34px; }
  .ag-course::after { content: ""; display: block; height: 96px; }

  .ag-reviews, .ag-get { gap: 30px; padding: 64px clamp(40px, 5vw, 96px) 72px; }
  .ag-close { padding: 60px clamp(40px, 5vw, 96px) 68px; }
}

@media (min-width: 1280px) and (max-width: 1799px) {
  /* With the side panel open the course is ~1150px wide: visuals get the full row under a two-column intro. */
  .ag-step { grid-template-columns: minmax(0, 1fr); grid-template-areas: "intro" "visual"; row-gap: 26px; }
  .ag-step .ag-intro { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 40px; align-items: start; }
  .ag-step .ag-intro > :is(h2, .ag-sub) { grid-column: 1; }
  .ag-step .ag-intro > .ag-aside { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
  .ag-finish { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "card copy" "card note"; row-gap: 8px; }
  .ag-note--out { justify-self: end; }
  .ag-hero { padding: 24px 0 40px; }
  .ag h1 { font-size: clamp(32px, 2.7vw, 44px); }
  .ag-hero__copy { gap: 15px; }
  .ag-hero__sub { font-size: 16.5px; }
}

@media (max-width: 1180px) { .ag-step, .ag-reviews, .ag-get { scroll-margin-top: 236px; } }
@media (min-width: 1181px) { .ag-step { scroll-margin-top: 186px; } }
@media (max-width: 850px) { .ag-step, .ag-reviews, .ag-get { scroll-margin-top: 218px; } }

@media (prefers-reduced-motion: reduce) {
  .ag-btn, .ag-faq .ag-plus, .ag-dark, .ag-card, .ag-win *, .ag-seat, .ag-roster__new, .ag-roster__btn, .ag-wl__head em, .ag-wl__row, .ag-wl__row b, .ag-jump__tab, .ag-jump__log, .ag-jump__open, .ag-post__btns, .ag-post__btns em, .ag-post__done { transition: none !important; }
  .ag-pin { animation: none !important; }
  .ag-motion .ag-reveal, .ag-motion .ag-pin { opacity: 1 !important; transform: none !important; transition: none !important; }
  .ag-motion .ag-pin { filter: drop-shadow(0 4px 5px rgba(0, 0, 0, .3)) !important; }
}
