/* ==========================================================================
   Coins Online — home page in the All About style (4.10.3). Front page only.
   The hero stage, Explore the metals, the bento of promises, Collections. Motion switches off for "reduce motion".
   ========================================================================== */
body.co-theme.home {
  --hh-1: #ffffff; --hh-2: #d7dbe1; --hh-3: #9ba2ac; --hh-4: #5a606a; /* silver, for the coin on the stage */
}

/* ---------- Hero: a black stage, flush under the header (no white strip from the block gap) ---------- */
body.co-theme.home .co-main--home { margin-block-start: 0 !important; padding-top: 0; }
body.co-theme.home .co-main--home .wp-block-post-content > .co-home--stage { margin-block-start: 0; margin-top: 0; }
body.co-theme.home .co-main--home .wp-block-post-content > .co-home--stage + * { margin-block-start: 0; }
body.co-theme .co-hh { position: relative; overflow: hidden; isolation: isolate; background: #000; color: #f5f5f7; padding: clamp(56px, 8vw, 120px) 20px clamp(48px, 7vw, 104px); }
body.co-theme .co-hh__glow { position: absolute; z-index: -1; right: -10%; top: 50%; width: min(90vw, 980px); aspect-ratio: 1; transform: translateY(-50%); background: radial-gradient(closest-side, rgba(200, 214, 235, .34), rgba(200, 214, 235, .10) 45%, transparent 70%); filter: blur(10px); animation: hh-breathe 9s ease-in-out infinite; }
body.co-theme .co-hh__in { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: clamp(28px, 4vw, 64px); }
body.co-theme .co-hh__kicker { margin: 0 0 18px; font: 600 12px/1.2 var(--co-font); letter-spacing: .16em; text-transform: uppercase; color: #a1a1a6; }
body.co-theme .co-hh__h { margin: 0; font: 500 clamp(52px, 6.4vw + 10px, 112px)/0.98 var(--co-display); letter-spacing: -0.03em; color: #f5f5f7; text-wrap: balance; }
body.co-theme .co-hh__metal { display: table; font-style: italic; padding: 0 .06em .08em 0;
  background: linear-gradient(100deg, var(--hh-4) 0%, var(--hh-2) 22%, var(--hh-1) 40%, var(--hh-3) 58%, var(--hh-2) 76%, var(--hh-4) 100%);
  background-size: 220% 100%; background-position: 10% 0; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; animation: hh-sheen 9s ease-in-out infinite; }
body.co-theme .co-hh__sub { margin: 22px 0 0; max-width: 34em; font: 400 clamp(18px, .5vw + 15px, 22px)/1.45 var(--co-font); color: #c7c7cc; text-wrap: pretty; }
body.co-theme .co-hh__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
body.co-theme .co-hh__btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 26px; border-radius: 980px; background: #f5f5f7; color: #1d1d1f !important; font: 500 16px/1 var(--co-font); text-decoration: none; transition: background-color .2s, transform .2s; }
body.co-theme .co-hh__btn:hover { background: #fff; transform: translateY(-1px); }
body.co-theme .co-hh__btn--ghost { background: transparent; color: #f5f5f7 !important; box-shadow: inset 0 0 0 1px rgba(245, 245, 247, .45); }
body.co-theme .co-hh__btn--ghost:hover { background: rgba(245, 245, 247, .08); }
body.co-theme .co-hh__trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 30px 0 0; padding: 0; list-style: none; font: 500 14px/1.3 var(--co-font); color: #a1a1a6; }
body.co-theme .co-hh__trust li { display: inline-flex; align-items: center; gap: 7px; margin: 0; }
body.co-theme .co-hh__trust svg { color: #e7bd52; flex: none; }

body.co-theme .co-hh__stage { display: flex; flex-direction: column; align-items: center; gap: 22px; text-decoration: none; color: inherit; }
body.co-theme .co-hh__coin { position: relative; display: block; width: min(78vw, 470px); aspect-ratio: 1; border-radius: 50%; animation: hh-coin-in 1.5s cubic-bezier(.16, 1, .3, 1) both .1s, hh-float 7s ease-in-out infinite 1.8s; }
body.co-theme .co-hh__coinimg { display: block; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; clip-path: circle(48.2% at 50% 50%); background: radial-gradient(circle at 40% 35%, var(--hh-1), var(--hh-3)); box-shadow: 0 40px 120px rgba(200, 214, 235, .18); }
body.co-theme .co-hh__coinimg img { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1.012); mix-blend-mode: normal; }
body.co-theme .co-hh__coin::after { content: ""; position: absolute; inset: 1.8%; border-radius: 50%; background: linear-gradient(115deg, rgba(255, 255, 255, 0) 38%, rgba(255, 255, 255, .55) 49%, rgba(255, 255, 255, 0) 60%); background-size: 260% 100%; background-position: 130% 0; mix-blend-mode: soft-light; pointer-events: none; animation: hh-glint 6s ease-in-out infinite 2s; }
@supports (-webkit-box-reflect: below) {
  body.co-theme .co-hh__coinimg { -webkit-box-reflect: below 14px linear-gradient(to bottom, rgba(0, 0, 0, 0) 64%, rgba(0, 0, 0, .2)); }
  body.co-theme .co-hh__stage { gap: 44px; }
}
body.co-theme .co-hh__tag { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
body.co-theme .co-hh__name { font: 500 15px/1.35 var(--co-font); color: #c7c7cc; }
body.co-theme .co-hh__price { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; font: 600 24px/1 var(--co-font); color: #f5f5f7; font-variant-numeric: tabular-nums; }
body.co-theme .co-hh__price .woocommerce-Price-amount, body.co-theme .co-hh__price bdi { font: inherit; color: inherit; }
body.co-theme .co-hh__price :is(.co-per-oz, .co-price-note) { display: none; }
body.co-theme .co-hh__price small { display: inline-flex; align-items: center; gap: 6px; font: 600 11px/1.2 var(--co-font); letter-spacing: .1em; text-transform: uppercase; color: #a1a1a6; }
body.co-theme .co-hh__price small i { width: 7px; height: 7px; border-radius: 50%; background: #30d158; animation: hh-pulse 2.4s ease-out infinite; }
@media (hover: hover) { body.co-theme .co-hh__stage:hover .co-hh__name { color: #f5f5f7; } }

@keyframes hh-sheen { 0%, 100% { background-position: 8% 0; } 50% { background-position: 92% 0; } }
@keyframes hh-glint { 0%, 55% { background-position: 130% 0; } 85%, 100% { background-position: -30% 0; } }
@keyframes hh-breathe { 0%, 100% { opacity: .8; transform: translateY(-50%) scale(1); } 50% { opacity: 1; transform: translateY(-50%) scale(1.05); } }
@keyframes hh-pulse { 0% { box-shadow: 0 0 0 0 rgba(48, 209, 88, .55); } 70%, 100% { box-shadow: 0 0 0 8px rgba(48, 209, 88, 0); } }
@keyframes hh-coin-in { from { opacity: 0; transform: translate3d(0, 40px, 0) scale(.92) rotate(-14deg); } to { opacity: 1; transform: none; } }
@keyframes hh-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

@media (max-width: 860px) {
  body.co-theme .co-hh { text-align: center; padding-top: clamp(40px, 9vw, 64px); }
  body.co-theme .co-hh__in { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  body.co-theme .co-hh__glow { right: 50%; top: 66%; transform: translate(50%, -50%); width: 140vw; animation: none; }
  body.co-theme .co-hh__sub { margin-left: auto; margin-right: auto; }
  body.co-theme .co-hh__metal { margin: 0 auto; }
  body.co-theme .co-hh__actions, body.co-theme .co-hh__trust { justify-content: center; }
  body.co-theme .co-hh__coin { width: min(72vw, 360px); }
}
@media (max-width: 420px) {
  body.co-theme .co-hh__btn { flex: 1 1 140px; }
  body.co-theme .co-hh__trust { font-size: 13px; gap: 8px 14px; }
}

/* ---------- Explore the metals: four photo cards ---------- */
body.co-theme .co-hx { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 8px; }
body.co-theme .co-hx__card { position: relative; display: block; overflow: hidden; isolation: isolate; aspect-ratio: 4 / 5.2; border-radius: 22px; background: #111; color: #f5f5f7; text-decoration: none; transform: translateZ(0); }
body.co-theme .co-hx__photo { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.16, 1, .3, 1); }
body.co-theme .co-hx__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, .05) 20%, rgba(0, 0, 0, .55) 55%, rgba(0, 0, 0, .9) 100%); }
body.co-theme .co-hx__body { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 6px; padding: 22px 20px 20px; }
body.co-theme .co-hx__k { font: 600 11px/1 var(--co-font); letter-spacing: .14em; text-transform: uppercase; color: #c7c7cc; }
body.co-theme .co-hx__name { font: 500 clamp(36px, 2.4vw + 14px, 48px)/0.95 var(--co-display); letter-spacing: -0.02em; padding-bottom: .06em;
  background: linear-gradient(100deg, var(--x4) 0%, var(--x2) 22%, var(--x1) 40%, var(--x3) 58%, var(--x2) 76%, var(--x4) 100%); background-size: 220% 100%; background-position: 10% 0;
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; transition: background-position 1.2s ease; }
body.co-theme .co-hx--gold { --x1: #fbeeb0; --x2: #e7bd52; --x3: #b8861b; --x4: #8a6400; }
body.co-theme .co-hx--silver { --x1: #ffffff; --x2: #d7dbe1; --x3: #9ba2ac; --x4: #7a808a; }
body.co-theme .co-hx--platinum { --x1: #f6f9fb; --x2: #c6d0d8; --x3: #8795a1; --x4: #6b7784; }
body.co-theme .co-hx--palladium { --x1: #f6f1ea; --x2: #d3c8b9; --x3: #9b8f80; --x4: #7d7264; }
body.co-theme .co-hx__line { font: 400 14.5px/1.4 var(--co-font); color: #e5e5ea; text-wrap: pretty; }
body.co-theme .co-hx__spot { margin-top: 4px; font: 600 15px/1 var(--co-font); font-variant-numeric: tabular-nums; color: #f5f5f7; }
body.co-theme .co-hx__spot small { font-weight: 400; font-size: 12px; color: #c7c7cc; }
body.co-theme .co-hx__go { margin-top: 8px; font: 500 15px/1 var(--co-font); color: #f5f5f7; }
@media (hover: hover) {
  body.co-theme .co-hx__card:hover .co-hx__photo { transform: scale(1.05); }
  body.co-theme .co-hx__card:hover .co-hx__name { background-position: 90% 0; }
  body.co-theme .co-hx__card:hover .co-hx__go { text-decoration: underline; text-underline-offset: 3px; }
}
body.co-theme .co-hx__card:focus-visible { outline: 3px solid var(--co-gold); outline-offset: 3px; }
@media (max-width: 1080px) {
  body.co-theme .co-hx { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 20px; margin: -6px -20px 0; padding: 14px 20px 8px; scrollbar-width: none; } /* room for the focus ring */
  body.co-theme .co-hx::-webkit-scrollbar { display: none; }
  body.co-theme .co-hx__card { flex: 0 0 min(76vw, 300px); scroll-snap-align: start; }
}

/* ---------- Promises as a bento (Fair pricing · Locked · No gimmicks · Full circle) ---------- */
body.co-theme .co-why--bento .co-why__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
body.co-theme .co-why--bento .co-why__item { position: relative; padding: clamp(24px, 2.6vw, 34px); border: 0; border-radius: 22px; background: var(--co-paper-2); }
body.co-theme .co-why--bento .co-why__item::before { display: none; }
body.co-theme .co-why--bento .co-why__icon { display: block; width: 34px; height: 34px; margin-bottom: 16px; color: var(--co-gold); }
body.co-theme .co-why--bento .co-why__item h3 { margin: 0 0 8px; font: 500 clamp(24px, 1vw + 16px, 30px)/1.1 var(--co-display); color: var(--co-ink); }
body.co-theme .co-why--bento .co-why__item p { margin: 0; font: 400 16px/1.55 var(--co-font); color: var(--co-ink-2); }
body.co-theme .co-why--bento .co-why__item a { color: var(--co-ink); font-weight: 500; }
body.co-theme .co-why--bento .co-why__item--dark { background: var(--co-ink); }
body.co-theme .co-why--bento .co-why__item--dark h3 { color: #f8f5ee; }
body.co-theme .co-why--bento .co-why__item--dark p { color: #c3bcad; }
body.co-theme .co-why--bento .co-why__item--dark .co-why__icon { color: var(--co-gold-bright); }
@media (max-width: 700px) { body.co-theme .co-why--bento .co-why__grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Section heads with a lead (Explore) ---------- */
body.co-theme .co-band .co-section-lead { margin-top: -4px; margin-bottom: 18px; font: 400 17px/1.5 var(--co-font); color: var(--co-ink-2); }

/* ---------- Motion off ---------- */
@media (prefers-reduced-motion: reduce) {
  body.co-theme .co-hh__glow, body.co-theme .co-hh__metal, body.co-theme .co-hh__coin, body.co-theme .co-hh__coin::after, body.co-theme .co-hh__price small i { animation: none !important; }
  body.co-theme .co-hx__photo, body.co-theme .co-hx__name { transition: none; }
}
