.swap-page { --swap-space: clamp(48px, 7vw, 88px); }
.swap-hero { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(32px,5vw,64px); padding-top: 64px; padding-bottom: var(--swap-space); }
.swap-page h1 { font: 400 clamp(2.3rem,3.6vw,3.5rem)/1.06 var(--dashna-type); letter-spacing: -.03em; margin: 20px 0 24px; text-wrap: balance; }
.swap-page h2 { font: 400 clamp(1.8rem,2.8vw,2.5rem)/1.15 var(--dashna-type); letter-spacing: -.025em; margin: 16px 0 24px; text-wrap: balance; }
.swap-page h3 { font: 500 1.15rem/1.3 var(--dashna-type); margin: 18px 0 12px; }
.swap-page p { color: var(--muted); font-size: 1rem; line-height: 1.75; margin: 0 0 20px; }
.swap-page .swap-small { font-size: .8rem; line-height: 1.6; margin: 18px 0 0; }
.swap-page figure { margin: 0; }
.swap-page figure img { display: block; width: 100%; height: auto; }
.swap-page figcaption { font-size: .75rem; color: var(--muted); margin-top: 12px; }
.gem-picker { border: 0; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; }
.gem-picker legend { font-size: .85rem; padding: 0 0 12px; }
.gem-picker label { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 12px 4px; border: 1px solid var(--line); cursor: pointer; font-size: .73rem; line-height: 1.4; }
.gem-picker label:has(input:checked) { border-color: var(--ink); background: #e9eae6; }
.gem-picker label:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 3px; }
.gem-picker input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.gem-dot { width: 20px; height: 20px; border-radius: 50%; border: 1px solid #0002; }
.gem-dot.blue-sapphire { background: #254fb1; }.gem-dot.emerald { background: #08734d; }.gem-dot.ruby { background: #a91535; }.gem-dot.yellow-sapphire { background: #eabc21; }
.swap-how,.swap-story { background: #e9eae6; padding: var(--swap-space) 0; }
.section-intro { max-width: 700px; }
.swap-explainer { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3,1fr); gap: 40px; }
.swap-number { font-size: .75rem; color: var(--muted); letter-spacing: .1em; }
.swap-options,.swap-faq { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; padding-top: var(--swap-space); padding-bottom: var(--swap-space); }
.swap-story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.swap-story figure { max-width: 470px; }
.swap-link { display: inline-block; text-decoration: underline; text-underline-offset: 5px; padding: 8px 0; }
.swap-faq details { padding: 20px 0; border-bottom: 1px solid var(--line); }
.swap-faq summary { cursor: pointer; font-size: 1.05rem; font-weight: 500; }
.swap-faq details p { margin: 16px 0 0; font-size: .95rem; }
.swap-page .cta-band { text-align: center; padding: var(--swap-space) 0 !important; }
.swap-page .cta-band p { max-width: 480px; margin: 0 auto 24px; }
.swap-skip { position: fixed; z-index: 1000; left: 12px; top: 12px; background: #232426; color: white; padding: 14px; transform: translateY(-200%); }.swap-skip:focus { transform: translateY(0); }
@media(max-width:760px) {
 .swap-hero,.swap-options,.swap-story-grid,.swap-faq { grid-template-columns: 1fr; gap: 32px; }
 .swap-hero { padding-top: 48px; }.swap-explainer { grid-template-columns: 1fr; gap: 24px; }
 .swap-explainer p { margin-bottom: 0; }.swap-story figure { max-width: none; }
}

/* Keep the colour preview near the headline on small screens. */
.gem-picker label:has(input:checked) { box-shadow: inset 0 -3px 0 var(--ink); font-weight: 600; }
@media (max-width: 760px) {
  .swap-intro { display: contents; }
  .swap-hero { gap: 0; }
  .swap-intro > .eyebrow { grid-row: 1; }
  .swap-intro > h1 { grid-row: 2; }
  .swap-intro > p:not(.swap-small) { grid-row: 3; }
  .swap-demo { grid-row: 4; margin: 8px 0 28px; }
  .swap-intro > .btn { grid-row: 5; justify-self: start; }
  .swap-intro > .swap-small { grid-row: 6; }
}
