/* ==========================================================================
   Paid Ads page only (paid-ads.html, _build/paid_page.py, behaviour in
   assets/paid.js). Loaded after signals.css, which supplies the shared
   pieces (tabs, marquee, climb, scope builder, cards). Same outbound-style
   vocabulary: thin rules, tinted cards, the ember tint for a selected state.
   ========================================================================== */

/* ---- hero: one offer, every feed ---------------------------------------- */
.pd-hero__stage { position: relative; height: 420px; margin: 16px 0 14px; }
.pd-hero__unit { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transform: translateY(8px) scale(.98); pointer-events: none; transition: opacity .55s var(--ease), transform .55s var(--ease); }
.pd-hero__unit.is-on { opacity: 1; transform: none; pointer-events: auto; }
html:not(.sg-js) .pd-hero__unit:not(:first-child) { display: none; }
.pd-hero__tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding-bottom: 14px; }
.pd-hero__tab {
  display: flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 6px; border-radius: 100px; border: 1px solid var(--line);
  background: rgba(var(--ov), .02); color: var(--text-2); font: inherit; font-size: 12.5px; white-space: nowrap; cursor: pointer; transition: background var(--fast), border-color var(--fast), color var(--fast);
}
.pd-hero__tab svg { width: 14px; height: 14px; fill: currentColor; flex: none; }
.pd-hero__tab:hover { background: rgba(var(--ov), .05); color: var(--text); }
.pd-hero__tab.is-on { border-color: rgba(226, 82, 15, .55); background: rgba(226, 82, 15, .10); color: var(--text); }

/* The ad units, drawn in CSS so none of them is a screenshot of a real ad. Unbranded on purpose:
   the monogram is a "Y" for "Your Brand" and the art is abstract, so no industry shows through. */
.pd-ad { width: 100%; max-width: 380px; font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 1.45; color: #202124; }
.pd-ad i:not(.pd-i) { font-style: normal; }
.pd-ad .pd-i { width: 22px; height: 22px; fill: #fff; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .35)); }
/* the brand's monogram, shared by every unit */
.pd-ad__site i, .pd-ad__who i, .pd-ad__face, .pd-ad__under i {
  display: grid; place-items: center; flex: none; border-radius: 50%; color: #fff; font-weight: 700;
  background: conic-gradient(from 200deg, #E2520F, #F2C230, #7FB8F0, #2F5BD3, #E2520F);
}
/* abstract art: two soft orbs on a gradient */
.pd-ad__orb { position: absolute; width: 58%; aspect-ratio: 1; right: -8%; top: -18%; border-radius: 50%; background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 62%); }
.pd-ad__orb--2 { width: 34%; right: auto; left: 8%; top: auto; bottom: -10%; background: radial-gradient(circle at 40% 40%, rgba(47, 91, 211, .55), rgba(47, 91, 211, 0) 65%); }
.pd-ad__prog { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .25); }
.pd-ad__prog i { display: block; height: 100%; width: 0; background: #F2C230; }
.pd-hero__unit.is-on .pd-ad__prog i { animation: pd-prog 3.4s linear forwards; }
@keyframes pd-prog { to { width: 100%; } }

/* search */
.pd-ad--search { padding: 18px 20px; border-radius: 14px; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 14px 34px -14px rgba(0, 0, 0, .2); }
.pd-ad__spon { margin: 0 0 8px; font-weight: 700; font-size: 12px; }
.pd-ad__site { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.pd-ad__site i { width: 26px; height: 26px; font-size: 13px; }
.pd-ad__site span { display: grid; }
.pd-ad__site b { font-size: 13px; font-weight: 400; color: #202124; }
.pd-ad__site small { font-size: 11.5px; color: #4d5156; }
.pd-ad__h { margin: 0 0 6px; font-size: 19px; line-height: 1.3; color: #1a0dab; }
.pd-ad__d { margin: 0 0 6px; color: #4d5156; }
.pd-ad__stars { margin: 0 0 12px; font-size: 12px; color: #70757a; }
.pd-ad__stars span { color: #E8A317; letter-spacing: 1px; }
.pd-ad__sitelinks { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid #ebebeb; }
.pd-ad__sitelinks span { display: grid; gap: 1px; padding: 9px 0; border-bottom: 1px solid #ebebeb; }
.pd-ad__sitelinks span:nth-child(odd) { padding-right: 10px; }
.pd-ad__sitelinks b { font-weight: 400; color: #1a0dab; font-size: 14px; }
.pd-ad__sitelinks small { font-size: 11.5px; color: #4d5156; }

/* feed */
.pd-ad--feed { max-width: 330px; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 14px 34px -14px rgba(0, 0, 0, .28); }
.pd-ad__who { display: grid; grid-template-columns: 32px 1fr auto; grid-template-rows: auto auto; column-gap: 8px; align-items: center; padding: 10px 12px 6px; }
.pd-ad__who i { grid-row: 1 / 3; width: 32px; height: 32px; font-size: 14px; }
.pd-ad__who b { font-size: 13px; }
.pd-ad__who span { font-size: 11px; color: #65676b; }
.pd-ad__who em { grid-row: 1 / 3; grid-column: 3; font-style: normal; color: #65676b; letter-spacing: 1px; }
.pd-ad__txt { margin: 0; padding: 0 12px 10px; font-size: 13px; }
.pd-ad__img { position: relative; display: grid; place-items: center; aspect-ratio: 1.6; overflow: hidden; background: linear-gradient(135deg, #E2520F 0%, #EE8A22 45%, #F2C230 100%); }
.pd-ad__art { position: relative; font-family: var(--font-display); font-size: 30px; line-height: 1.02; color: #fff; text-align: center; letter-spacing: -.02em; }
.pd-ad__art em { font-style: italic; }
.pd-ad__cta { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; background: #f0f2f5; }
.pd-ad__cta span { display: grid; font-size: 11px; color: #65676b; }
.pd-ad__cta b { font-size: 13.5px; color: #050505; }
.pd-ad__cta button { padding: 8px 14px; border: 0; border-radius: 6px; background: #e4e6eb; font: inherit; font-size: 12.5px; font-weight: 700; color: #050505; }
.pd-ad__react { display: flex; justify-content: space-between; padding: 8px 12px; font-size: 11.5px; color: #65676b; }
.pd-ad__react span:first-child { display: flex; align-items: center; }
.pd-ad__react i { width: 15px; height: 15px; margin-right: -3px; border-radius: 50%; border: 2px solid #fff; background: #2F5BD3; }
.pd-ad__react i + i { margin-right: 6px; background: #E2520F; }

/* short-form vertical */
.pd-ad--short { display: grid; place-items: center; }
.pd-ad__phone {
  position: relative; width: 214px; aspect-ratio: 9 / 16; border-radius: 26px; overflow: hidden; border: 6px solid #141414;
  background: linear-gradient(165deg, #1b2a5c 0%, #2F5BD3 38%, #8C95E8 66%, #F2C230 100%); color: #fff; box-shadow: 0 18px 38px -16px rgba(0, 0, 0, .45);
}
.pd-ad__glow { position: absolute; inset: 22% 10% auto; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .45), rgba(255, 255, 255, 0) 65%); }
.pd-ad__chip { position: absolute; top: 10px; left: 10px; padding: 2px 7px; border-radius: 4px; background: rgba(0, 0, 0, .35); font-size: 10px; }
.pd-ad__pov { position: absolute; top: 22%; left: 12px; right: 12px; padding: 6px 8px; border-radius: 6px; background: #fff; color: #111; font-size: 14px; font-weight: 700; line-height: 1.25; text-align: center; box-shadow: 0 4px 0 rgba(0, 0, 0, .15); }
.pd-ad__rail { position: absolute; right: 6px; bottom: 66px; display: grid; gap: 6px; justify-items: center; font-size: 10px; font-weight: 700; text-shadow: 0 1px 2px rgba(0, 0, 0, .4); }
.pd-ad__rail > span { display: grid; justify-items: center; gap: 1px; }
.pd-ad__face { width: 30px; height: 30px; border: 2px solid #fff; font-size: 13px; text-shadow: none; }
.pd-ad__cap { position: absolute; left: 10px; right: 46px; bottom: 44px; display: grid; gap: 2px; font-size: 11px; line-height: 1.3; text-shadow: 0 1px 2px rgba(0, 0, 0, .45); }
.pd-ad__cap b { font-size: 12px; }
.pd-ad__cap small { font-size: 10px; opacity: .9; }
.pd-ad__btn { position: absolute; left: 10px; right: 10px; bottom: 12px; padding: 7px; border-radius: 4px; background: #E2520F; font-size: 12px; font-weight: 700; text-align: center; }
.pd-ad--short .pd-ad__prog { height: 2px; }

/* video */
.pd-ad--video { border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 14px 34px -14px rgba(0, 0, 0, .28); }
.pd-ad__screen { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; overflow: hidden; background: radial-gradient(120% 140% at 15% 20%, #2F5BD3, #141414 70%); color: #fff; }
.pd-ad__screen .pd-ad__orb { background: radial-gradient(circle at 35% 35%, rgba(242, 194, 48, .7), rgba(226, 82, 15, 0) 62%); }
.pd-ad__title { position: relative; font-family: var(--font-display); font-size: 30px; line-height: 1; text-align: center; letter-spacing: -.02em; }
.pd-ad__title em { font-style: italic; color: #F2C230; }
.pd-ad__tag { position: absolute; left: 10px; bottom: 12px; padding: 2px 6px; border-radius: 3px; background: rgba(0, 0, 0, .55); font-size: 11px; }
.pd-ad__skip { position: absolute; right: 0; bottom: 14px; padding: 7px 14px; border: 1px solid rgba(255, 255, 255, .35); border-right: 0; background: rgba(0, 0, 0, .65); font-size: 13px; }
.pd-ad__under { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; }
.pd-ad__under i { width: 34px; height: 34px; font-size: 14px; }
.pd-ad__under span { display: grid; }
.pd-ad__under b { font-size: 13.5px; }
.pd-ad__under small { font-size: 11.5px; color: #606060; }
.pd-ad__under button { padding: 8px 14px; border: 0; border-radius: 100px; background: #2F5BD3; font: inherit; font-size: 12.5px; font-weight: 700; color: #fff; }

/* ---- platforms: icon tabs, a 2 x 2 panel ---------------------------------- */
.pd-tab { grid-template-columns: 34px 1fr; column-gap: 12px; }
.pd-tab .pd-tab__ico {
  grid-row: 1 / 3; align-self: center; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  border: 1px solid var(--line-2); color: var(--text-2); transition: color var(--fast), background var(--fast), border-color var(--fast);
}
.pd-tab .pd-tab__ico svg { width: 16px; height: 16px; fill: currentColor; }
.pd-tab[aria-selected="true"] .pd-tab__ico { color: #fff; border-color: transparent; background: linear-gradient(140deg, var(--violet), #E2520F); }
.pd-panel { display: block; }
.pd-panel__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.pd-panel__head .h3 { margin: 0; }
.pd-panel__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 28px; }
.pd-panel__grid p:not(.sg-k) { margin: 0; font-size: 15px; line-height: 1.6; color: var(--text-2); }
.pd-panel__grid .sg-trap p { color: var(--text); }
#platforms { padding-bottom: clamp(36px, 4.5vw, 60px); }
.sg-marquee .plat__chip { flex: none; }

/* ---- small screens -------------------------------------------------------- */
@media (max-width: 900px) {
  .pd-panel__grid { grid-template-columns: 1fr; }
  .pd-tab .pd-tab__ico { display: none; }
  .pd-tab { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .pd-hero__stage { height: 400px; }
  .pd-hero__tab span { display: none; }
  .pd-ad__sitelinks small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .pd-hero__unit { transition: none; }
  .pd-hero__unit.is-on .pd-ad__prog i { animation: none; width: 40%; }
}

/* ---- the ridge: the first six weeks --------------------------------------
   The Lead Signals climb on its side: time across, results up. Reuses the
   climb's callout, marker and control styles (.sg-climb in signals.css) but
   overrides its two-column grid: the figure is full width, the panel below. */
.pd-ridge.sg-climb { display: block; }
.pd-ridge__scroll { width: 100%; }
.pd-ridge__fig { position: relative; width: 100%; aspect-ratio: 1100 / 500; }
.pd-ridge__cv, .pd-ridge__svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pd-ridge__svg { overflow: visible; font-family: var(--font-mono); }
.pd-ridge__front { fill: none; stroke: url(#pdRidgeGrad); stroke-width: 7; stroke-linecap: round; }
.pd-ridge.is-ready .pd-ridge__front { display: none; }
.pd-ridge__axis path { fill: none; stroke: var(--text-3); stroke-width: 1; }
.pd-ridge__axis text, .pd-ridge__yl { fill: var(--text-3); font-size: 12px; letter-spacing: .08em; }
.pd-ridge__yaxis { fill: none; stroke: var(--line-2); stroke-width: 1; stroke-dasharray: 2 4; }
.pd-ridge .sg-co__t { text-anchor: start; }
.pd-ridge__hit { fill: transparent; cursor: ew-resize; touch-action: pan-y; }
.pd-ridge__panel { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); align-items: end; margin-top: clamp(18px, 2.5vw, 30px); padding-top: clamp(18px, 2.5vw, 28px); border-top: 1px solid var(--line); }
.pd-ridge__text { display: grid; gap: 14px; }
.pd-ridge__ctrl { display: grid; gap: 16px; }
.pd-ridge__hint { margin: 0; font-size: 11.5px; }
.pd-ridge .sg-climb__step p { max-width: 58ch; }
html:not(.sg-js) .pd-ridge__ctrl { display: none; }
@media (max-width: 900px) {
  .pd-ridge__panel { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  /* the ridge needs width to read, so on a phone it scrolls sideways inside its own box */
  .pd-ridge__scroll { overflow-x: auto; margin-inline: calc(var(--gutter, 16px) * -1); padding-inline: var(--gutter, 16px); -webkit-overflow-scrolling: touch; }
  .pd-ridge__fig { width: 720px; }
}
