/* ─── trades/trades.css · every trade page (16 Nov). Sam: "a super nice demo for each trade… they can scroll through and
   see an example company", then "all three going off at the same time… should be on top of each other… text left demo
   right, then demo left text right", and on the first screen "super crammed in and close and busy".
   So: a calm first screen (the words, and one phone with its single caption under it); the comparison on its own; then
   one demo per full-width section, alternating sides, each playing only while it's on screen. Item 71: no photo under
   the words, no card stacks, no mono caps; nothing touches. ── */

.tp-eyebrow { display: flex; align-items: center; gap: 10px; font: 500 15px/1.3 var(--sans); color: var(--accent-2); }
.tp-eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .8; }
.tp-lede { font-size: clamp(17px, .35vw + 15.5px, 19.5px); line-height: 1.6; color: var(--ink-2); max-width: 56ch; }

/* ── 1 · the first screen: two columns, generous room ── */
.tp-hero { position: relative; isolation: isolate; overflow: clip; }
.tp-hero::before { content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none; background: radial-gradient(50% 60% at 76% 50%, rgba(210, 171, 121, .08), transparent 70%); }
.tp-hero-in { display: grid; gap: 56px; padding-block: 40px 72px; }
.tp-copy { min-width: 0; max-width: 600px; }
.tp-h1 { margin-top: 20px; font-size: clamp(2.3rem, 2vw + 1.3rem, 3.15rem); line-height: 1.06; }
.tp-copy .tp-lede { margin-top: 24px; }
.tp-steps { list-style: none; display: grid; gap: 16px; margin-top: 48px; }
.tp-steps li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 14px; align-items: baseline; font-size: 16px; line-height: 1.45; color: var(--ink-2); }
.tp-steps li > i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font: 600 13px/1 var(--sans); font-style: normal; color: var(--gold-ink); background: linear-gradient(180deg, var(--gold-hi), var(--gold)); align-self: start; }
.tp-steps li > span { padding-top: 3px; }
.tp-steps b { font-weight: 600; color: var(--ink); }
.tp-cta { margin-top: 48px; }
.tp-demo { position: relative; display: grid; justify-items: center; align-self: center; min-width: 0; }
/* the phone with its one live caption under it (never the step list beside it: the room stays under 600px) */
.tp-demo > .smd { --smd-phone-w: clamp(240px, calc((100svh - 300px) * 9 / 19.5), 290px); width: 100%; max-width: 420px; min-height: calc(var(--smd-phone-w) * 19.5 / 9 + 44px + 130px); }
@media (min-width: 1100px) {
  .tp-hero-in { grid-template-columns: minmax(0, 1fr) minmax(0, 460px); column-gap: 64px; align-items: center; padding-block: 32px 56px; min-height: calc(100svh - var(--head-h, 64px)); }
}
@media (min-width: 1100px) and (max-height: 860px) {
  .tp-steps { margin-top: 36px; } .tp-cta { margin-top: 36px; }
}
@media (max-width: 640px) {
  .tp-hero-in { padding-block: 28px 56px; gap: 48px; }
  .tp-h1 { font-size: 2.25rem; }
  .tp-steps { margin-top: 36px; } .tp-cta { margin-top: 36px; width: 100%; }
}

/* ── 2 · with us vs the old way: its own clean section ── */
.tp-pkg { margin-top: 28px; font-size: 15.5px; color: var(--ink-2); }
.tp-pkg a { color: var(--ink); font-weight: 600; }

/* ── 3 · the example firm: an intro, then one demo per section, alternating ── */
.tp-ex { padding-block: clamp(72px, 7vw, 112px) 8px; border-top: 1px solid var(--line); }
.tp-ex-head { display: grid; gap: 18px; max-width: 780px; }
.tp-ex-head h2 { font-size: clamp(2rem, 2.2vw + 1rem, 3.1rem); }
.tp-firm { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.tp-firm > span { display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 14px; color: var(--ink-2); }
.tp-firm > span b { margin-right: 6px; color: var(--ink); font-weight: 600; }
.tp-row { padding-block: clamp(56px, 6vw, 96px); }
.tp-row + .tp-row { border-top: 1px solid var(--line); }
.tp-row-in { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); column-gap: clamp(48px, 6vw, 96px); align-items: center; }
.tp-row.is-flip .tp-row-copy { order: 2; }
.tp-row-copy { display: grid; gap: 14px; align-content: center; max-width: 60ch; }
.tp-num { font: 600 15px/1 var(--sans); color: var(--gold); }
.tp-row-copy h3 { font: 400 clamp(1.8rem, 1.4vw + 1.1rem, 2.5rem)/1.12 var(--serif); letter-spacing: -.015em; }
.tp-row-copy > p:not(.tp-num) { font-size: 16.5px; line-height: 1.6; color: var(--ink-2); }
.tp-list { list-style: none; display: grid; gap: 10px; margin: 6px 0 4px; }
.tp-list li { position: relative; padding-left: 26px; font-size: 15px; line-height: 1.45; color: var(--ink); }
.tp-list li::before { content: ""; position: absolute; left: 2px; top: .42em; width: 12px; height: 7px; border-left: 1.6px solid var(--gold); border-bottom: 1.6px solid var(--gold); transform: rotate(-45deg); }
.tp-row-copy .link-arrow { margin-top: 8px; justify-self: start; }
.tp-row-demo { display: grid; justify-items: center; min-width: 0; }
/* each demo is the device with its one caption under it (kept under 600px, so no step list beside it) */
.tp-row-demo > .smd { width: 100%; max-width: 420px; --smd-phone-w: 290px; }
.tp-row.is-wide .tp-row-in { grid-template-columns: minmax(0, 360px) minmax(0, 1fr); }
.tp-row.is-wide .tp-row-demo > .smd { max-width: 760px; }
@media (max-width: 900px) {
  .tp-row-in, .tp-row.is-wide .tp-row-in { grid-template-columns: minmax(0, 1fr); row-gap: 40px; }
  .tp-row.is-flip .tp-row-copy { order: 0; }
  .tp-row-demo > .smd { --smd-phone-w: 270px; }
}
/* (17 Nov) a short phone screen (375 × 667): the device and its caption fit under the header */
@media (max-width: 900px) and (max-height: 760px) { .tp-row-demo > .smd { --smd-phone-w: clamp(230px, calc((100svh - 300px) * 9 / 19.5), 270px); }
  .tp-demo > .smd { --smd-phone-w: clamp(230px, calc((100svh - 300px) * 9 / 19.5), 290px); } }

.tp-end-cta { padding-block: clamp(64px, 6vw, 96px); border-top: 1px solid var(--line); }
.tp-end-in { display: grid; justify-items: center; gap: 20px; text-align: center; }
.tp-end-in h2 { font-size: clamp(1.9rem, 1.8vw + 1rem, 2.8rem); }

/* ── 4 · the package and the questions, side by side ── */
.tp-end { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px 64px; align-items: start; }
.tp-end .pricenote { margin: 0; grid-template-columns: minmax(0, 1fr); }
.tp-end .pricenote-price { justify-items: start; text-align: left; }
.tp-end h2 { font-size: clamp(1.9rem, 1.8vw + 1rem, 2.8rem); margin: 12px 0 24px; }
.tp-more { margin-top: 20px; font-size: 16px; color: var(--ink-2); }
@media (max-width: 960px) { .tp-end { grid-template-columns: minmax(0, 1fr); } }
/* the owner's phone ("the other phone") beside the device on a laptop, not over its header (Sam: the banner sat over
   "Summit Roofing"); the demo stays under 600px, so its single caption stays under it */
@media (min-width: 901px) {
  .tp-row-demo > .smd { max-width: 660px; }
  /* (17 Nov) clear of the handset's edge: the stage is 300px, the phone 290px, so 6px beyond the stage is ~11px clear */
  .tp-row .tp-row-demo .smd.smd-on .smd-echoes { left: calc(100% + 6px) !important; top: 16% !important; width: 170px !important; transform: none !important; }
}
