/* Buy From Us page — Figma frame "Buy From Us Page" (1920 wide). Builds on styles.css. */

.lead { font-size: max(16px, calc(30 * var(--u))); font-weight: 500; line-height: 1.3; letter-spacing: -.01em; color: var(--text); }
.btn-grey { background: #d9d9d9; color: #0b1118; }

/* Bulleted copy: bold lead-in on its own line, light body below */
.dots { display: grid; gap: calc(30 * var(--u)); }
/* List items carry a gold check, as on the Figma pages (client didn't like plain bullets, Nov 2026) */
.dots li { position: relative; padding-left: max(30px, calc(42 * var(--u))); font-size: max(15px, calc(22 * var(--u))); font-weight: 300; line-height: 1.4; color: var(--text); }
.dots li::before { content: ""; position: absolute; left: 0; top: .2em; width: max(18px, calc(24 * var(--u))); height: max(18px, calc(24 * var(--u))); border-radius: 50%; background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.3 2.3 4.7-5' fill='none' stroke='%23162230' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 62% no-repeat; }
.dots b { display: block; margin-bottom: calc(14 * var(--u)); color: var(--navy); font-size: max(17px, calc(26 * var(--u))); font-weight: 900; line-height: 1.2; }

/* ---------- Hero ---------- */
.hero-buy { height: calc(716 * var(--u)); margin-top: 0; background: var(--navy); --hx: 0; --hy: -53; --hw: 1920; --hh: 768; }
.hero-buy .hero-inner { padding-top: calc(121 * var(--u)); }
.hero-buy h1 { font-size: calc(74 * var(--u)); line-height: 1.08; letter-spacing: -.02em; }
.hero-buy h1 .gs { color: var(--gold); }
.hero-buy .hero-sub { max-width: calc(797 * var(--u)); margin-top: calc(26 * var(--u)); font-size: max(15px, calc(22 * var(--u))); line-height: 1.23; }
.hero-btns { display: flex; flex-wrap: wrap; gap: calc(7 * var(--u)); margin-top: calc(29 * var(--u)); }
.hero-btns .btn-hero { margin-top: 0; }

/* ---------- Rates panel ---------- */
.rates { position: relative; z-index: 3; margin-top: calc(-107 * var(--u)); padding: calc(53 * var(--u)) calc(48 * var(--u)) calc(53 * var(--u)) calc(55 * var(--u)); border: 1px solid var(--line); border-radius: 24px; background: linear-gradient(129.7deg, #f2f2f2 1.88%, #dbdbdb 98.98%); }
.rates-top { display: flex; align-items: center; justify-content: flex-end; gap: 16px; flex-wrap: wrap; }
.rates-live { display: flex; align-items: center; gap: calc(12 * var(--u)); font-size: max(13px, calc(16 * var(--u))); font-weight: 500; color: var(--navy); }
.live-pill { display: inline-flex; align-items: center; gap: calc(10 * var(--u)); height: max(36px, calc(46 * var(--u))); padding-inline: calc(24 * var(--u)); border: 1.5px solid var(--gold); border-radius: 999px; color: var(--gold); font-family: var(--inter); font-weight: 800; font-size: max(15px, calc(20 * var(--u))); }
.live-pill img { width: max(9px, calc(11 * var(--u))); box-shadow: 0 0 0 calc(3 * var(--u)) #fff, 0 0 0 calc(4.5 * var(--u)) var(--gold); border-radius: 50%; }
.rates-ctrl { display: flex; align-items: center; gap: calc(7 * var(--u)); }
.market-lg { height: max(40px, calc(54 * var(--u))); }
.ccy { display: flex; align-items: center; gap: 2px; height: max(40px, calc(54 * var(--u))); padding: calc(4 * var(--u)); border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.ccy button { height: 100%; min-width: calc(76 * var(--u)); padding-inline: calc(18 * var(--u)); border: 0; border-radius: 999px; background: none; color: #9e9e9e; font-weight: 600; font-size: max(14px, calc(18 * var(--u))); transition: background-color .2s, color .2s; }
.ccy button.is-on { background: var(--gold); color: var(--navy); font-weight: 700; }
.rates h2 { margin-top: calc(10 * var(--u)); color: var(--navy); font-size: max(28px, calc(54 * var(--u))); font-weight: 800; line-height: .93; letter-spacing: -.02em; }
.rates-desc { margin-top: calc(20 * var(--u)); max-width: calc(1333 * var(--u)); font-size: max(15px, calc(24 * var(--u))); font-weight: 300; line-height: 1.25; letter-spacing: -.01em; color: var(--text); }
.rate-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: calc(22 * var(--u)); margin-top: calc(42 * var(--u)); }
.rate { position: relative; isolation: isolate; display: flex; flex-direction: column; padding: calc(26 * var(--u)) calc(25 * var(--u)) calc(20 * var(--u)) calc(27 * var(--u)); border: 1px solid #c5c5c5; border-radius: 20px; color: var(--navy); }
.rate::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: linear-gradient(#d9d9d9, #b7b7b7); opacity: .7; }
.rate-gold { border-color: #aa790b; border-radius: 24px; }
.rate-gold::before { background: linear-gradient(134deg, #ffc300 0%, #d9ad64 98%); opacity: .5; }
.rate header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rate h3 { display: flex; align-items: center; gap: calc(8 * var(--u)); color: var(--text); font-size: max(16px, calc(22 * var(--u))); font-weight: 900; }
.rate-gold h3 { color: var(--navy); }
.rate h3 img { width: max(8px, calc(10 * var(--u))); }
.chg { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: calc(89 * var(--u)); height: max(24px, calc(30 * var(--u))); padding-inline: 10px; border-radius: 999px; background: #0b1118; color: #ff4b4b; font-size: max(11px, calc(14 * var(--u))); font-weight: 500; }
.chg img { width: max(8px, calc(11 * var(--u))); transform: rotate(180deg); }
.rate-unit { margin-top: calc(12 * var(--u)); font-size: max(12px, calc(16 * var(--u))); font-weight: 500; }
.rate-price { font-size: max(26px, calc(44 * var(--u))); font-weight: 900; line-height: 1.3; letter-spacing: -.01em; white-space: nowrap; }
.rate dl { margin: calc(14 * var(--u)) 0 0; padding-block: calc(10 * var(--u)) calc(12 * var(--u)); border-block: 1px solid rgba(22, 34, 48, .25); }
.rate dl div { display: flex; justify-content: space-between; gap: 8px; line-height: calc(30 * var(--u)); min-height: 24px; align-items: center; }
.rate dt { font-size: max(12px, calc(16 * var(--u))); font-weight: 500; }
.rate dd { margin: 0; font-size: max(13px, calc(18 * var(--u))); font-weight: 900; }
.rate > a { display: inline-flex; align-items: center; gap: 8px; margin-top: calc(16 * var(--u)); font-size: max(14px, calc(18 * var(--u))); font-weight: 900; }
.rate > a img { width: max(10px, calc(12 * var(--u))); transition: transform .2s; }
.rate > a:hover img { transform: translateX(3px); }

/* ---------- Vault inventory (reuses .dealer layout) ---------- */
.vault { padding-top: calc(120 * var(--u)); }
.vault .center-head h2 { font-size: max(30px, calc(74 * var(--u))); line-height: .95; letter-spacing: -.04em; color: var(--navy); }
.vault .dealer-body { margin-top: calc(81 * var(--u)); }
.vault .dealer-copy { padding-top: calc(31 * var(--u)); }
.vault .dealer-panel h3 { color: var(--navy); font-size: max(24px, calc(40 * var(--u))); font-weight: 900; line-height: normal; letter-spacing: -.02em; }
.vault .dealer-panel > p { margin-top: calc(20 * var(--u)); font-size: max(15px, calc(22 * var(--u))); font-weight: 300; line-height: 1.4; color: var(--text); }
.vault .dealer-panel > p b { color: var(--navy); font-weight: 700; }
/* Gold, Silver and PGM panels share the space of the tallest, so switching never shifts the list below. */
.vault .dealer-panels { min-height: calc(622 * var(--u)); }
.vault .dealer-img > img { object-position: 6% 58%; }
.vault .dealer-panel .btn { margin-top: calc(32 * var(--u)); }
.vault .dots { margin-top: calc(32 * var(--u)); }
.vault .svc-list { margin-top: calc(52 * var(--u)); }

/* ---------- Approved refineries ---------- */
.mints { padding-top: calc(144 * var(--u)); }
.mints-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.mints h2 { color: var(--navy); font-size: max(30px, calc(74 * var(--u))); font-weight: 700; line-height: 1; letter-spacing: -.04em; }
.mints-head .btn { margin-bottom: calc(14 * var(--u)); }
.mints .lead { margin-top: calc(28 * var(--u)); }
.mint-table { margin-top: calc(53 * var(--u)); border: 1px solid #9e9e9e; border-radius: 24px; overflow: hidden; background: #fff; }
.mint-row { display: grid; grid-template-columns: calc(285 * var(--u)) repeat(5, 1fr); min-height: calc(134 * var(--u)); }
.mint-row + .mint-row { border-top: 1px solid #9e9e9e; }
.mint-row > div { display: grid; place-items: center; padding: calc(16 * var(--u)); }
.mint-row > div + div { border-left: 1px solid #9e9e9e; }
.mint-label { justify-items: start !important; padding-left: calc(44 * var(--u)) !important; color: var(--navy); font-size: max(17px, calc(30 * var(--u))); font-weight: 900; line-height: 1.13; }
/* Each logo is sized to its width in the Figma table. */
.mint-row img { width: calc(var(--lw, 150) * var(--u)); max-height: calc(70 * var(--u)); object-fit: contain; }

/* ---------- Cream bands ---------- */
.cream-band { background: var(--cream); }
.choice-band { margin-top: calc(140 * var(--u)); padding: calc(136 * var(--u)) 0 calc(365 * var(--u)); }
.tag { display: inline-flex; align-items: center; height: max(48px, calc(72 * var(--u))); padding-inline: calc(35 * var(--u)); border-radius: 999px; background: var(--gold); color: var(--navy); font-size: max(20px, calc(34 * var(--u))); font-weight: 700; }
.choice h2 { margin-top: calc(21 * var(--u)); color: var(--navy); font-size: max(32px, calc(74 * var(--u))); font-weight: 700; line-height: .88; letter-spacing: -.02em; }
.choice .lead { margin-top: calc(22 * var(--u)); max-width: calc(1017 * var(--u)); line-height: 1.1; }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: calc(50 * var(--u)); margin-top: calc(44 * var(--u)); }
.choice-grid article > img { width: 100%; height: calc(380 * var(--u)); object-fit: cover; object-position: 50% 22%; border-radius: 24px; }
.choice-grid article:nth-child(2) > img { object-position: 45% 69%; }
.choice-grid h3 { margin-top: calc(46 * var(--u)); color: var(--navy); font-size: max(24px, calc(42 * var(--u))); font-weight: 900; letter-spacing: -.02em; }
.choice-grid .dots { margin-top: calc(15 * var(--u)); gap: calc(28 * var(--u)); }
.choice-grid .dots li { line-height: 1.09; }
.choice-grid article:nth-child(2) .dots li { letter-spacing: -.01em; }
.choice-grid .dots b { font-size: max(16px, calc(22 * var(--u))); line-height: 1.27; margin-bottom: calc(6 * var(--u)); }
.choice-grid article { display: flex; flex-direction: column; align-items: flex-start; }
.choice-grid .dots { margin-bottom: calc(36 * var(--u)); }
.choice-grid .btn { margin-top: auto; }

.invest-buy { margin-top: calc(-225 * var(--u)); }
.invest-buy h2 { font-size: max(24px, calc(50 * var(--u))); font-weight: 900; line-height: 1.08; }

/* ---------- Checklist ---------- */
.checks { padding-top: calc(140 * var(--u)); }
.checks h2 { color: var(--navy); font-size: max(28px, calc(64 * var(--u))); font-weight: 700; line-height: .94; letter-spacing: -.02em; }
.checks .lead { margin-top: calc(36 * var(--u)); }
.check-grid { display: grid; grid-template-columns: repeat(3, calc(412 * var(--u))); justify-content: space-between; margin-top: calc(44 * var(--u)); }
.check-ico { display: grid; place-items: center; width: max(80px, calc(117 * var(--u))); aspect-ratio: 1; border: 2px solid var(--gold); border-radius: 50%; background: #fff; }
.check-ico img { width: 52%; }
.check-grid h3 { margin-top: calc(20 * var(--u)); color: var(--navy); font-size: max(22px, calc(40 * var(--u))); font-weight: 700; line-height: 1.125; letter-spacing: -.04em; }
.check-grid p { margin-top: calc(28 * var(--u)); font-size: max(15px, calc(22 * var(--u))); font-weight: 300; line-height: 1.27; color: var(--text); }
/* Figma sets the middle column at 24px with wide tracking and the last slightly tight. */
.check-grid > :nth-child(2) p { font-size: max(15px, calc(24 * var(--u))); line-height: 1.167; letter-spacing: .02em; }
.check-grid > :nth-child(3) p { letter-spacing: -.01em; }

/* ---------- Split rows ---------- */
.split { display: grid; grid-template-columns: calc(702 * var(--u)) 1fr; gap: calc(36 * var(--u)); align-items: start; padding-top: calc(140 * var(--u)); }
.split-text { grid-template-columns: 1fr calc(702 * var(--u)); }
.split h2 { color: var(--navy); font-size: max(24px, calc(44 * var(--u))); font-weight: 700; line-height: 1.11; letter-spacing: -.02em; }
.split-copy { padding-top: calc(29 * var(--u)); }
.split-text .split-copy { padding-top: calc(42 * var(--u)); }
.split-copy > p { margin-top: calc(32 * var(--u)); font-size: max(15px, calc(24 * var(--u))); font-weight: 300; line-height: 1.33; color: var(--text); max-width: calc(679 * var(--u)); }
.split-copy > p + p { margin-top: calc(32 * var(--u)); }
.split-img { width: 100%; height: calc(504 * var(--u)); object-fit: cover; border-radius: 24px; }
.split .dots { margin-top: calc(28 * var(--u)); padding-left: calc(27 * var(--u)); }
.split .dots li, .pay .dots li { font-size: max(15px, calc(24 * var(--u))); line-height: 1.33; }
.pay .dots li { line-height: 1.083; }
.fintrac { display: grid; place-items: center; height: calc(505 * var(--u)); border-radius: 24px; background: var(--cream); }
.fintrac img { width: calc(379 * var(--u)); mix-blend-mode: multiply; }

.pay-band { margin-top: calc(140 * var(--u)); padding: calc(112 * var(--u)) 0 calc(137 * var(--u)); }
.pay h2 { color: var(--navy); font-size: max(24px, calc(44 * var(--u))); font-weight: 700; line-height: 1.11; letter-spacing: -.02em; }
.pay-grid { display: grid; grid-template-columns: calc(672 * var(--u)) 1fr; gap: calc(94 * var(--u)); margin-top: calc(64 * var(--u)); }

/* ---------- FAQ / contact tweaks ---------- */
.faq-buy { padding-top: calc(143 * var(--u)); padding-bottom: calc(199 * var(--u)); }
.faq-buy h2 { line-height: 1.05; }
.faq-buy details[open] summary { font-weight: 800; }
.faq-buy details p + p { margin-top: calc(-8 * var(--u)); }
.faq-buy details p { padding-right: calc(48 * var(--u)); font-size: max(15px, calc(22 * var(--u))); font-weight: 300; line-height: 1.41; letter-spacing: -.01em; color: var(--text); }
.faq-buy details p b { font-weight: 700; color: var(--navy); }

.contact-buy h2 { font-size: max(28px, calc(62 * var(--u))); line-height: 1.065; }
.contact-buy .contact-info { padding: calc(42 * var(--u)) calc(80 * var(--u)) calc(50 * var(--u)) calc(82 * var(--u)); }
/* The Buy frame starts the footer columns closer to the contact card than the homepage does. */
.footer-buy { padding-top: calc(318 * var(--u)); }
.contact-buy .contact-dl { margin-top: calc(32 * var(--u)); padding-block: calc(27 * var(--u)) calc(33 * var(--u)); border-bottom: 0; }
/* Figma indents each value under its label text, past the icon. */
.contact-buy .contact-dl dd { padding-left: calc(24 * var(--u)); }
.contact-buy .contact-dl > div:first-child dd { max-width: none; }
.contact-buy .contact-dl > div:nth-child(3) dd { margin-top: calc(11 * var(--u)); line-height: 1.1; }
.contact-buy .contact-dl dt { font-weight: 900; font-size: max(15px, calc(22 * var(--u))); }
.contact-buy .contact-dl dd { font-weight: 600; font-size: max(14px, calc(20 * var(--u))); line-height: 1.1; }
.contact-buy .contact-btns { margin-top: calc(32 * var(--u)); }

/* ---------- Tablet / mobile ---------- */
@media (max-width: 1024px) {
  .hero-buy { height: auto; }
  .hero-buy .hero-inner { padding: 56px 0 100px; }
  .hero-buy h1 { font-size: clamp(38px, 9vw, 60px); line-height: 1.08; }
  .rates { margin-top: -60px; padding: 22px 16px; }
  .rates-top { flex-direction: column; align-items: flex-start; }
  .rates .market { display: inline-flex; }
  .rate-cards { grid-template-columns: 1fr 1fr; gap: 12px; }
  .vault .center-head { text-align: left; }
  .vault .dealer-panels { min-height: 0; }
  .mints-head { flex-direction: column; align-items: flex-start; }
  .mint-table { overflow: visible; border: 0; background: none; display: grid; gap: 14px; }
  .mint-row { grid-template-columns: repeat(3, 1fr); border: 1px solid #9e9e9e !important; border-radius: 16px; background: #fff; overflow: hidden; }
  .mint-row > div { min-height: 70px; border-top: 1px solid #e3e3e3; }
  .mint-row > div + div { border-left: 0; }
  .mint-row > div:empty { display: none; }
  .mint-label { grid-column: 1 / -1; border-top: 0 !important; min-height: 0 !important; padding: 14px 16px !important; background: var(--cream); }
  .mint-row img { width: 96px; max-height: 44px; }
  .choice-band { padding: 64px 0 120px; }
  .choice-grid, .pay-grid { grid-template-columns: 1fr; gap: 40px; }
  .choice-grid article > img { height: 220px; }
  .invest-buy { margin-top: -60px; }
  .check-grid { grid-template-columns: 1fr; gap: 36px; }
  .split, .split-text { grid-template-columns: 1fr; gap: 24px; padding-top: 72px; }
  .split-img { height: 260px; }
  .split-text .fintrac { order: 2; height: auto; padding: 28px; }
  .fintrac img { width: 200px; }
  .pay-band { margin-top: 72px; padding: 56px 0; }
  .pay-grid { padding-left: 0; }
  .contact-buy .contact-info { padding: 40px 22px; }
  .footer-buy { padding-top: 196px; }
}
@media (max-width: 560px) {
  .rate-cards { grid-template-columns: 1fr; }
}

/* ---------- Rates footnote (doc copy the Figma frames leave out): price note + CTA under the cards ---------- */
.rates-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px calc(40 * var(--u)); margin-top: calc(32 * var(--u)); }
.rates-foot p { max-width: calc(900 * var(--u)); font-size: max(14px, calc(20 * var(--u))); font-weight: 400; line-height: 1.35; color: var(--text); }
.rates-foot .btn { flex: none; }
.rates-foot .btn img { width: max(14px, calc(16 * var(--u))); }
@media (max-width: 1024px) {
  .rates-foot { flex-direction: column; align-items: flex-start; margin-top: 20px; }
  .rates-foot .btn { white-space: normal; }
}
