/* AMC Marketplace (marketplace.php) */

/* Device frames */
.device { position: relative; margin: 0; }
.device img { display: block; width: 100%; height: auto; }
.device--browser { border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.device__bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #EEF2F8; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.device__bar i { width: 10px; height: 10px; border-radius: 50%; background: #F87171; }
.device__bar i:nth-child(2) { background: #FBBF24; }
.device__bar i:nth-child(3) { background: #34D399; }
.device__bar span { margin-left: 10px; background: #fff; border-radius: 6px; padding: 3px 12px; flex: 1; max-width: 320px; }
.device--phone { border-radius: 34px; padding: 9px; background: #0B1220; box-shadow: 0 30px 60px -24px rgba(4, 12, 31, .6), inset 0 0 0 2px #2A3550; }
.device--phone img { border-radius: 26px; aspect-ratio: 430 / 932; object-fit: cover; object-position: top; }
.device--phone::before { content: ""; position: absolute; top: 16px; left: 50%; transform: translateX(-50%); width: 34%; height: 18px; border-radius: 12px; background: #0B1220; z-index: 1; }
.device--laptop { border-radius: 14px 14px 6px 6px; padding: 10px 10px 14px; background: #1A2236; box-shadow: var(--shadow-lg); }
.device--laptop img { border-radius: 6px; }
.device--laptop::after { content: ""; position: absolute; left: -7%; right: -7%; bottom: -14px; height: 14px; border-radius: 0 0 14px 14px; background: linear-gradient(#C9D1DF, #8C97AC); }

/* Hero */
.mp-hero { background: radial-gradient(900px 420px at 80% 20%, rgba(46, 168, 255, .25), transparent 60%), linear-gradient(135deg, #050F28 0%, #0A1F4D 100%); color: #D3DDF0; overflow: hidden; }
.mp-hero__inner { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: center; padding-block: 44px 80px; }
.mp-hero h1 { color: #fff; font-size: clamp(34px, 4vw, 52px); line-height: 1.1; }
.mp-hero h1 em { color: var(--sky-400); }
.mp-hero__text { font-size: 17.5px; max-width: 560px; margin-bottom: 28px; }
.mp-hero__chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.mp-hero__chips a { display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .22); color: #fff; font-size: 13.5px; }
.mp-hero__chips a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.mp-hero__visual { position: relative; padding: 10px 40px 30px 0; }
.mp-hero__phone { position: absolute; width: 30%; right: 0; bottom: -10px; }
@media (max-width: 960px) { .mp-hero__inner { grid-template-columns: 1fr; } .mp-hero__visual { max-width: 620px; } }

/* Buy strip */
.buy-strip { background: linear-gradient(90deg, #0B3FD6, #1E74FF 60%, #2EA8FF); color: #EAF2FF; }
.buy-strip__inner { display: flex; align-items: center; gap: 20px; padding-block: 16px; flex-wrap: wrap; }
.buy-strip__inner p { margin: 0; flex: 1; min-width: 240px; font-size: 15px; }
.buy-strip__inner > a { color: #fff; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.buy-strip__inner > a .icon { width: 16px; height: 16px; }
.buy-strip__tag { display: inline-flex; align-items: center; gap: 8px; font: 700 12px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; background: #fff; color: var(--blue-700); padding: 9px 14px 9px 12px; border-radius: 999px; }
.buy-strip__tag .icon { width: 16px; height: 16px; }

/* Product sections */
.mp-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.mp-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--blue-700); background: var(--sky-100); padding: 6px 12px; border-radius: 999px; }
.mp-badge .icon { width: 14px; height: 14px; }
.mp-badge--ready { background: #E8F7EE; color: #0B6B35; }
.mp-product { scroll-margin-top: calc(var(--header-h) + 10px); }
.mp-product [id], #perfect-fit, #payments, #pwa, #cymorth { scroll-margin-top: calc(var(--header-h) + 10px); }
.mp-product__head { display: grid; grid-template-columns: .9fr 1.1fr; gap: 44px; align-items: center; margin-bottom: 40px; }
.mp-product__logo { width: 100%; height: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow); border: 1px solid var(--line); }
.mp-cy { color: #D21F3C !important; font-style: italic; font-weight: 600; }
@media (max-width: 900px) { .mp-product__head { grid-template-columns: 1fr; } }
.mp-gallery { display: grid; grid-template-columns: 1.55fr 1fr; gap: 24px; align-items: center; }
.mp-gallery .device--browser img { max-height: 520px; object-fit: cover; object-position: top; }
@media (max-width: 900px) { .mp-gallery { grid-template-columns: 1fr; } }
.mp-journey { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 36px; }
.mp-journey__step { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font: 600 14px var(--font-head); color: var(--ink); box-shadow: var(--shadow-sm); }
.mp-journey__step b { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; color: #fff; background: linear-gradient(135deg, #E11D48, #F97316); }
.mp-journey__step:not(:last-child)::after { content: "→"; margin-left: 6px; color: var(--muted); font-weight: 400; }

/* Impact (education + Wales) */
.mp-impact { background: radial-gradient(700px 300px at 10% 0%, rgba(225, 29, 72, .18), transparent 60%), linear-gradient(160deg, #071530, #0B2A6B); color: #C5D1E8; }
.mp-impact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 900px) { .mp-impact__grid { grid-template-columns: 1fr; } }
.mp-impact__col { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 38px); }
.mp-impact__col--wales { border-color: rgba(225, 29, 72, .45); background: linear-gradient(160deg, rgba(225, 29, 72, .12), rgba(255, 255, 255, .04)); }
.mp-impact__col h2 { color: #fff; font-size: clamp(22px, 2.2vw, 28px); }
.mp-impact__icon { width: 54px; height: 54px; border-radius: 14px; background: rgba(46, 168, 255, .16); color: var(--sky-400); display: grid; place-items: center; margin-bottom: 16px; }
.mp-impact__icon .icon { width: 28px; height: 28px; }
.mp-impact__col--wales .mp-impact__icon { background: #fff; }
.mp-impact .ticks li { padding-block: 7px; line-height: 1.55; }
.mp-impact .ticks strong { color: #fff; }
.mp-cta-row { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 36px; }

/* Perfect Fit */
.mp-product--alt { background: linear-gradient(180deg, #F7F3EC, #fff); }
.mp-product__intro { max-width: 780px; margin: 0 auto 40px; text-align: center; }
.mp-product__intro .mp-badges { justify-content: center; }
.mp-phones { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
@media (max-width: 1100px) { .mp-phones { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .mp-phones { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
.mp-phones__item { margin: 0; text-align: center; }
.mp-phones__item:nth-child(even) { transform: translateY(26px); }
@media (max-width: 560px) { .mp-phones__item:nth-child(even) { transform: none; } }
.mp-phones__item figcaption { margin-top: 14px; font-size: 13px; color: var(--muted); line-height: 1.45; }
.mp-phones__item figcaption strong { display: block; color: var(--ink); font: 600 14.5px var(--font-head); }
.mp-cta-row--light { margin-top: 40px; }

/* Payments */
.mp-pay { background: radial-gradient(800px 360px at 85% 0%, rgba(46, 168, 255, .2), transparent 60%), linear-gradient(180deg, #050F28, #071A42); color: #C5D1E8; scroll-margin-top: calc(var(--header-h) + 10px); }
.mp-pay .section-head h2 { color: #fff; }
.mp-pay .section-head h2 em { color: var(--sky-400); }
.mp-pay .section-head p { color: #A9B7D2; }
.mp-pay__grid { display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 22px; align-items: stretch; }
@media (max-width: 1000px) { .mp-pay__grid { grid-template-columns: 1fr; } }
.mp-pay__card { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius-lg); padding: 28px; }
.mp-pay__card h3 { color: #fff; font-size: 20px; }
.mp-pay__card p { font-size: 15px; }
.mp-pay__card strong { color: #fff; }
.mp-pay__card--feature { background: linear-gradient(160deg, rgba(30, 116, 255, .28), rgba(11, 42, 107, .4)); border-color: rgba(46, 168, 255, .5); box-shadow: 0 30px 60px -30px rgba(30, 116, 255, .6); }
.mp-pay__icon { width: 52px; height: 52px; border-radius: 14px; background: rgba(46, 168, 255, .16); color: var(--sky-400); display: grid; place-items: center; margin-bottom: 16px; }
.mp-pay__icon .icon { width: 26px; height: 26px; }
.mp-pay .ticks li { font-size: 14px; padding-block: 5px; }
.mp-pay__mc { display: flex; gap: 12px; align-items: flex-start; margin: 16px 0 0; padding: 14px; border-radius: 12px; background: rgba(0, 0, 0, .25); font-size: 13.5px !important; line-height: 1.5; }
.mc-logo { position: relative; width: 44px; height: 28px; flex: none; margin-top: 2px; }
.mc-logo i { position: absolute; top: 0; width: 28px; height: 28px; border-radius: 50%; }
.mc-logo i:first-child { left: 0; background: #EB001B; }
.mc-logo i:last-child { right: 0; background: #F79E1B; mix-blend-mode: screen; opacity: .95; }
.token-flow { margin-top: 32px; padding: 26px; border-radius: var(--radius-lg); background: #fff; color: var(--text); }
.token-flow h3 { font-size: 18px; margin-bottom: 18px; }
.token-flow ol { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
@media (max-width: 900px) { .token-flow ol { grid-template-columns: 1fr; } }
.token-flow li { position: relative; padding: 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.token-flow li > span { width: 28px; height: 28px; border-radius: 50%; background: var(--btn-blue); color: #fff; display: grid; place-items: center; font: 600 13px var(--font-head); margin-bottom: 10px; }
.token-flow li strong { display: block; color: var(--ink); font-family: var(--font-head); font-size: 15px; }
.token-flow li small { color: var(--muted); font-size: 13px; line-height: 1.45; }
@media (min-width: 901px) { .token-flow li:not(:last-child)::after { content: "→"; position: absolute; right: -12px; top: 50%; transform: translateY(-50%); color: var(--blue-600); font-weight: 700; } }

/* PWA */
.mp-pwa { position: relative; max-width: 300px; margin: 0 auto; }
.mp-pwa__badges { position: absolute; left: -70px; top: 22%; display: grid; gap: 12px; }
.mp-pwa__badges span { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; background: #fff; box-shadow: var(--shadow); font: 600 14px var(--font-head); color: var(--ink); }
.mp-pwa__badges .icon { color: var(--blue-600); width: 18px; height: 18px; }
@media (max-width: 560px) { .mp-pwa__badges { left: -10px; } }

/* Buy panel */
.buy-panel { background: radial-gradient(800px 300px at 90% 10%, rgba(46, 168, 255, .25), transparent 60%), linear-gradient(135deg, #071530, #0B2A6B); color: #C5D1E8; padding-block: 64px; }
.buy-panel__inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; }
.buy-panel h2 { color: #fff; font-size: clamp(26px, 2.6vw, 34px); margin-top: 18px; }
.buy-panel__card { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius); padding: 28px; }
.buy-panel__email { display: block; font: 600 clamp(16px, 1.6vw, 20px) var(--font-head); color: #fff; margin-bottom: 20px; }
.buy-panel__email:hover { color: var(--sky-400); }
@media (max-width: 860px) { .buy-panel__inner { grid-template-columns: 1fr; } }

/* Alignment fixes */
.mp-hero__visual { padding: 10px 0 30px; }
.mp-hero__visual .device--laptop { width: 84%; }
.mp-hero__phone { width: 27%; right: 0; bottom: -18px; }
.mp-gallery { align-items: start; }
.mp-gallery .device--browser img { height: 470px; max-height: none; object-fit: cover; object-position: top center; }
.mp-gallery .device--browser:not(.mp-gallery__main) img { object-position: center top; }
@media (max-width: 900px) { .mp-gallery .device--browser img { height: auto; } }

/* PWA showcase image */
.mp-pwa { max-width: 440px; }
.mp-pwa__shot { margin: 0; border-radius: 22px; overflow: hidden; background: #fff; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.mp-pwa__shot img { display: block; width: 100%; height: auto; }
.mp-pwa__badges { left: -64px; top: 18%; }
/* Gallery: main shot shows in full; side shot fills the same height */
.mp-gallery { align-items: stretch; }
.mp-gallery .device--browser { display: flex; flex-direction: column; }
.mp-gallery .mp-gallery__main img { height: auto; object-fit: initial; }
.mp-gallery .device--browser:not(.mp-gallery__main) img { flex: 1 1 0; height: 0; min-height: 260px; object-fit: cover; object-position: center top; }

/* Hero: laptop only, centred in its column */
.mp-hero__visual { padding: 10px 7% 34px; }
.mp-hero__visual .device--laptop { width: 100%; margin: 0 auto; }
