/* Standalone landing pages (/for-trades, /for-developers). Loaded after style.css, which
   owns the tokens, the buttons and the footer strip. Plain stacked pages: no stage, no JS. */

html { scroll-behavior: auto; }
body.pg { background: var(--ivory); }

/* Compact top bar: the same mark and tabs as the stage bar, as ordinary links */
.pg-bar { border-bottom: 1px solid var(--hairline-ivory); }
.pg-bar .bar__home { min-width: 44px; min-height: 44px; }
.pg-bar .bar__close { flex: none; min-width: 44px; min-height: 44px; }
.pg-bar__in { height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 var(--gutter); max-width: 1500px; margin: 0 auto; }

.pg-wrap { max-width: 1180px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* ---------- Hero ---------- */
.pg-hero { padding-top: clamp(44px, 7vw, 88px); }
.pg-label { display: block; margin-bottom: 18px; }
.pg-h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(40px, 6.6vw, 88px); line-height: 1.04; letter-spacing: -0.01em; max-width: 14em; }
.pg-h1 em { font-style: italic; font-weight: 500; color: var(--ember); }
.pg-lede { margin-top: 22px; max-width: 60ch; font-family: var(--font-ui); font-weight: 300; font-size: clamp(16px, 1.5vw, 18px); line-height: 1.6; color: var(--body-ivory); }
.pg-actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.pg-note { margin-top: 14px; font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: 18px; line-height: 1.3; color: var(--secondary-ivory); }

/* Desktop screenshot, phone overlapping its bottom-right corner */
.shot { position: relative; margin: clamp(36px, 5vw, 56px) 0 0; padding-bottom: 56px; }
.shot__desk { display: block; border-radius: 2px; overflow: hidden; background: var(--paper); box-shadow: 0 0 0 1px var(--hairline-ivory), 0 28px 50px -34px var(--shadow); }
.shot__desk img { width: 100%; height: auto; }
.shot__phone { position: absolute; right: clamp(10px, 3.5%, 40px); bottom: 0; width: clamp(96px, 19%, 210px); border-radius: clamp(12px, 1.6vw, 20px); overflow: hidden; background: var(--paper); box-shadow: 0 0 0 1px var(--hairline-ivory), 0 24px 40px -20px var(--shadow); }
.shot__phone img { width: 100%; height: auto; }

/* ---------- Three steps ---------- */
.pg-section { margin-top: clamp(64px, 9vw, 120px); }
.trio { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; }
@media (min-width: 760px) { .trio { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; } }
.trio li { border-top: 1px solid var(--ink-text); padding-top: 18px; }
.trio__no { display: block; font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: 48px; line-height: 1; color: var(--ember); margin-bottom: 14px; }
.trio__title { font-family: var(--font-display); font-weight: 500; font-size: 26px; line-height: 1.12; margin-bottom: 8px; }
.trio__line { font-family: var(--font-ui); font-weight: 300; font-size: 15px; line-height: 1.6; color: var(--body-ivory); max-width: 34ch; }

/* ---------- Try it on your phone ---------- */
.try { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: center; }
@media (min-width: 760px) { .try { grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: 64px; } }
.pg-h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(34px, 5vw, 56px); line-height: 1.08; }
.pg-h2 em { font-style: italic; font-weight: 500; color: var(--ember); }
.try__copy { align-self: center; }
.try__line { margin-top: 16px; max-width: 44ch; font-family: var(--font-ui); font-weight: 300; font-size: 16px; line-height: 1.6; color: var(--body-ivory); }
.try__fine { margin-top: 14px; font-family: var(--font-ui); font-weight: 300; font-size: 13px; line-height: 1.5; color: var(--secondary-ivory); }
.try__shot { border-radius: 14px; overflow: hidden; background: var(--paper); box-shadow: 0 0 0 1px var(--hairline-ivory), 0 28px 44px -26px var(--shadow); max-width: 300px; }
.try__shot img { width: 100%; height: auto; }
@media (max-width: 759px) { .try__shot { max-width: 280px; } }

/* ---------- Sand band: what it costs / the closing ask ---------- */
.band { margin-top: clamp(64px, 9vw, 120px); background: var(--sand); padding: clamp(44px, 7vw, 88px) 0; }
.band__in { max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.band__price { margin-top: 14px; font-family: var(--font-display); font-weight: 500; font-size: clamp(46px, 7vw, 84px); line-height: 1; }
.band__terms { margin-top: 14px; font-family: var(--font-ui); font-weight: 500; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--secondary-ivory); }
.band__line { margin-top: 18px; max-width: 54ch; font-family: var(--font-ui); font-weight: 300; font-size: 16px; line-height: 1.6; color: var(--body-ivory); }
.band .pg-actions { margin-top: 28px; }

/* ---------- /for-developers: centred ---------- */
.dev { text-align: center; }
.dev .pg-h1 { margin-left: auto; margin-right: auto; max-width: 12em; }
.dev .pg-lede { margin-left: auto; margin-right: auto; }
.dev .pg-actions { justify-content: center; }
.dev .pg-note { margin-top: 16px; }
.dev .shot { padding-bottom: 0; }
.cols4 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; text-align: center; }
@media (min-width: 600px) { .cols4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 32px; } }
@media (min-width: 1000px) { .cols4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; } }
.cols4 li { border-top: 1px solid var(--hairline-ivory); padding-top: 20px; }
.cols4__title { font-family: var(--font-display); font-weight: 500; font-size: 26px; line-height: 1.12; margin-bottom: 8px; }
.cols4__line { margin: 0 auto; max-width: 28ch; font-family: var(--font-ui); font-weight: 300; font-size: 15px; line-height: 1.6; color: var(--body-ivory); }
.band--centre { text-align: center; }
.band--centre .band__line { margin-left: auto; margin-right: auto; }
.band--centre .pg-actions { justify-content: center; }

/* Footer strip on the standalone pages */
.pg .foot { margin-top: 0; }
/* style.css hides .foot without JS (the SPA has its own); these standalone pages need it shown */
html:not(.js) .pg .foot { display: flex; }

.pg-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* The caption sits left of the phone that overlaps the screenshot's corner, never under it */
.shot figcaption { padding-right: clamp(112px, 25%, 260px); }

/* Phones: no overlap. Desktop screenshot, then the phone mockup below it, then the caption. */
@media (max-width: 767px) {
  .shot { padding-bottom: 0; }
  .shot__phone { position: static; width: 150px; margin-top: 20px; }
  .shot figcaption { padding-right: 0; margin-top: 16px; }
}
