/* ==========================================================================
   AvatarKage — pages.css
   Page-level sections: hero, steps, stats, avatar details, favourites,
   checkout, success, legal pages, contact, 404.
   ========================================================================== */

/* --- shared section scaffolding --------------------------------------- */
.section { padding: 3.25rem 0; }
.section--tight { padding: 2rem 0; }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.section__title { font-size: clamp(1.9rem, 5.5vw, 2.8rem); }
.section__sub { margin-top: 0.45rem; color: var(--color-muted); max-width: 34rem; }

.page-head { padding: 2.25rem 0 1.25rem; }
.page-head h1 { font-size: clamp(2.2rem, 7vw, 3.6rem); }
.page-head p { margin-top: 0.75rem; color: var(--color-muted); max-width: 36rem; }
.breadcrumb { display: inline-flex; align-items: center; gap: 0.4rem; margin: 1.25rem 0 0.25rem; color: var(--color-muted); font-size: 0.92rem; transition: color 0.2s; }
.breadcrumb:hover { color: #fff; }

/* --- hero -------------------------------------------------------------- */
.hero { position: relative; isolation: isolate; overflow: hidden; padding: 4.25rem 0 3rem; text-align: center; }
.hero::before {
  content: ""; position: absolute; z-index: -1; inset: -30% -20% auto; height: 85%;
  background: radial-gradient(50% 55% at 50% 0%, rgba(225, 29, 46, 0.3), transparent 72%);
}
.hero::after { /* faint scan-grid, fades out downward */
  content: ""; position: absolute; z-index: -1; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: linear-gradient(#000, transparent 70%); mask-image: linear-gradient(#000, transparent 70%);
}
.hero__eyebrow { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--color-muted); }
.hero h1 { max-width: 15ch; margin: 1.1rem auto 0; font-size: clamp(2.5rem, 9.2vw, 5.4rem); line-height: 1.02; letter-spacing: -0.035em; }
.hero__sub { max-width: 34rem; margin: 1.4rem auto 2.1rem; font-size: clamp(1.02rem, 2.7vw, 1.22rem); color: var(--color-muted); }
.hero__actions { display: flex; flex-wrap: nowrap; justify-content: center; gap: 0.5rem; }
.hero__actions .btn { flex: 0 1 auto; min-width: 0; padding-inline: 0.85rem; font-size: 0.84rem; white-space: nowrap; min-height: 2.7rem; }
@media (min-width: 360px) { .hero__actions .btn { padding-inline: 1.05rem; font-size: 0.92rem; } }
@media (min-width: 420px) { .hero__actions { gap: 0.75rem; } .hero__actions .btn { padding-inline: 1.35rem; font-size: 1rem; min-height: 3rem; } }
@media (min-width: 640px) { .hero__actions { gap: 0.9rem; } .hero__actions .btn { padding-inline: 1.9rem; } }

.showcase { position: relative; display: flex; justify-content: center; align-items: center; max-width: 44rem; margin: 3.25rem auto 0; padding-inline: 1rem; min-height: 12rem; }
.showcase__card {
  position: relative; display: block; width: 33%; aspect-ratio: 4 / 5; border-radius: 1.1rem; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.8);
  animation: fan 0.9s var(--ease-out) both;
  transition: box-shadow 0.3s, border-color 0.3s;
}
@media (hover: hover) {
  .showcase__card:hover { border-color: var(--color-accent); box-shadow: 0 34px 64px -10px rgba(225, 29, 46, 0.4); z-index: 3; }
  .showcase__card:nth-child(1):hover { transform: rotate(var(--r)) translateY(calc(var(--y) - 10px)) scale(1.03); }
  .showcase__card:nth-child(2):hover { transform: translateY(calc(var(--y) - 10px)) scale(1.03); }
  .showcase__card:nth-child(3):hover { transform: rotate(var(--r)) translateY(calc(var(--y) - 10px)) scale(1.03); }
  .showcase__card { transition: transform 0.3s var(--ease-out), box-shadow 0.3s, border-color 0.3s; }
}
.showcase__card .media { position: absolute; inset: 0; }
.showcase__card:nth-child(1) { --r: -7deg; --y: 1.4rem; margin-right: -5%; transform: rotate(var(--r)) translateY(var(--y)); }
.showcase__card:nth-child(2) { --r: 0deg; --y: -0.6rem; width: 37%; z-index: 2; transform: translateY(var(--y)); animation-delay: 0.05s; }
.showcase__card:nth-child(3) { --r: 7deg; --y: 1.4rem; margin-left: -5%; transform: rotate(var(--r)) translateY(var(--y)); }
@keyframes fan { from { opacity: 0; transform: rotate(0) translateY(1.5rem) scale(0.86); } }
.showcase--empty { visibility: hidden; }

/* --- platforms strip --------------------------------------------------- */
.platforms { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; margin-top: 1.5rem; }
.platform {
  display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.65rem 1.1rem;
  border: 1px solid var(--color-border); border-radius: var(--radius-full);
  background: var(--color-surface); color: #d9d9d9; font-weight: 500;
  transition: border-color 0.2s, background 0.2s, transform 0.2s var(--ease-out), color 0.2s;
}
.platform:hover { border-color: var(--color-accent); background: var(--color-surface-hover); color: #fff; transform: translateY(-2px); }
.platform .brand-ico { width: 1.15rem; height: 1.15rem; color: var(--color-accent); }
.center-head { text-align: center; }
.center-head .section__sub { margin-inline: auto; }

/* --- grid toolbar ------------------------------------------------------ */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 1rem; }
.toolbar__count { font-size: 0.92rem; color: var(--color-muted); min-width: 0; }
.filters-note { display: flex; align-items: center; flex-wrap: wrap; gap: 0.6rem; margin: 0.75rem 0 1rem; font-size: 0.92rem; color: var(--color-muted); }
.filters-note button { color: var(--color-accent); font-weight: 600; }
.load-more { display: grid; justify-items: center; gap: 0.6rem; margin-top: 2.25rem; color: var(--color-muted); font-size: 0.9rem; }

/* --- steps (How it works) ----------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.65rem; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; } }
.step {
  position: relative; padding: 0.9rem 0.75rem 1.05rem; min-width: 0;
  border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-surface);
  transition: transform 0.25s var(--ease-out), border-color 0.25s, background 0.25s, box-shadow 0.3s;
}
.step:hover { transform: translateY(-4px); border-color: #454545; background: var(--color-surface-hover); box-shadow: 0 18px 34px -18px rgba(0, 0, 0, 0.6); }
.step__head { display: grid; grid-template-columns: 1.8rem 1fr 1.8rem; align-items: center; gap: 0.35rem; margin-bottom: 0.5rem; }
.step__num {
  grid-column: 1; display: grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 50%;
  background: var(--color-accent-dim); color: #ff6b78; font-family: var(--font-display); font-weight: 700; font-size: 0.86rem;
}
.step__head h3 { grid-column: 2; text-align: center; font-size: 0.98rem; line-height: 1.22; overflow-wrap: break-word; }
.step p { color: var(--color-muted); font-size: 0.83rem; line-height: 1.5; }
@media (min-width: 480px) {
  .step { padding: 1.15rem 1rem 1.3rem; }
  .step__head { grid-template-columns: 2.2rem 1fr 2.2rem; gap: 0.5rem; }
  .step__num { width: 2.2rem; height: 2.2rem; font-size: 1rem; }
  .step__head h3 { font-size: 1.15rem; }
  .step p { font-size: 0.92rem; }
}
.steps--compact .step { padding: 0.8rem 0.7rem 0.95rem; }
.steps--compact .step__head h3 { font-size: 0.9rem; }
.steps--compact .step p { font-size: 0.8rem; }
@media (min-width: 480px) {
  .steps--compact .step { padding: 1rem 0.95rem 1.15rem; }
  .steps--compact .step__head h3 { font-size: 1.02rem; }
  .steps--compact .step p { font-size: 0.86rem; }
}

/* --- stats --------------------------------------------------------------- */
.stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; overflow: hidden;
  border: 1px solid var(--color-border); border-radius: var(--radius-xl); background: var(--color-border);
}
.stat {
  padding: 1.75rem 1.25rem; background: var(--color-surface); text-align: center;
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s var(--ease-out), background 0.25s, box-shadow 0.3s;
}
.stat.is-in { opacity: 1; transform: none; }
.stat:hover { background: var(--color-surface-hover); box-shadow: inset 0 0 0 1px var(--color-accent), inset 0 0 32px -12px rgba(225, 29, 46, 0.35); }
.stat__value { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.7rem, 5vw, 2.6rem); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; transition: color 0.25s; }
.stat:hover .stat__value { color: var(--color-accent); }
.stat__label { margin-top: 0.3rem; font-size: 0.92rem; color: var(--color-muted); }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .stat { opacity: 1; transform: none; } }

/* --- try-it-on teaser (home) ------------------------------------------- */
.callout {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; padding: 2rem 1.5rem; border: 1px solid var(--color-border); border-radius: var(--radius-xl);
  background: radial-gradient(70% 120% at 100% 0%, rgba(225, 29, 46, 0.16), transparent 60%), var(--color-surface);
}
.callout h2 { font-size: clamp(1.7rem, 5vw, 2.4rem); }
.callout p { color: var(--color-muted); max-width: 32rem; margin-top: 0.6rem; }
@media (min-width: 800px) { .callout { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: center; padding: 2.75rem; } .callout .platforms { justify-content: flex-end; margin: 0; } }

/* --- avatar details ---------------------------------------------------- */
.detail { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; padding: 1rem 0 2.5rem; }
.detail > * { min-width: 0; }
@media (min-width: 900px) {
  .detail { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 3.25rem; align-items: start; }
  .detail__info { position: sticky; top: calc(var(--header-h) + 1.5rem); }
}
.gallery__stage { position: relative; overflow: hidden; aspect-ratio: 4 / 5; border: 1px solid var(--color-border); border-radius: var(--radius-xl); }
.gallery__stage > .media { position: absolute; inset: 0; }
.gallery__thumbs { display: flex; gap: 0.6rem; overflow-x: auto; padding: 0.8rem 0.1rem 0.3rem; scrollbar-width: none; }
.gallery__thumbs::-webkit-scrollbar { display: none; }
.gallery__thumb { flex: none; width: 4.6rem; aspect-ratio: 4 / 5; border: 2px solid transparent; border-radius: 0.7rem; overflow: hidden; opacity: 0.6; cursor: pointer; transition: opacity 0.2s, border-color 0.2s, transform 0.2s var(--ease-out); }
.gallery__thumb:hover { opacity: 0.95; transform: translateY(-2px); border-color: #4a4a4a; }
.gallery__thumb[aria-current="true"] { border-color: var(--color-accent); opacity: 1; }
.gallery__thumb .media { width: 100%; height: 100%; }
.gallery__note { margin-top: 0.4rem; font-size: 0.82rem; color: var(--color-muted-dark); }

.detail__id { display: inline-block; padding: 0.25rem 0.7rem; border: 1px solid var(--color-border); border-radius: var(--radius-full); font-size: 0.82rem; color: var(--color-muted); background: var(--color-surface); }
.detail__info h1 { margin: 0.9rem 0 0.7rem; font-size: clamp(2.1rem, 6.5vw, 3.3rem); }
.detail__tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.detail__price-row { display: flex; align-items: baseline; gap: 0.9rem; margin: 1.4rem 0 0.4rem; }
.detail__price { font-family: var(--font-display); font-weight: 700; font-size: 2.6rem; letter-spacing: -0.03em; }
.detail__own { font-size: 0.92rem; color: var(--color-muted); }
.detail__count { display: flex; align-items: center; gap: 0.5rem; color: #d6d6d6; margin-bottom: 1.4rem; }
.detail__count .ico { color: var(--color-accent); }
.detail__actions { display: grid; grid-template-columns: 1fr auto auto; gap: 0.6rem; }
.detail__actions .btn--primary { min-height: 3.4rem; font-size: 1.05rem; }
.round-btn { display: inline-grid; place-items: center; width: 3.4rem; height: 3.4rem; cursor: pointer; border: 1px solid var(--color-border); border-radius: var(--radius-full); background: var(--color-surface); transition: border-color 0.2s, background 0.2s, transform 0.2s var(--ease-out), box-shadow 0.25s; }
.round-btn:hover { border-color: var(--color-accent); background: var(--color-surface-hover); transform: translateY(-2px); box-shadow: 0 12px 24px -12px rgba(0, 0, 0, 0.6); }
.round-btn[aria-pressed="true"] { background: var(--color-accent); border-color: var(--color-accent); }
.round-btn[aria-pressed="true"] .ico { fill: #fff; }
.detail__desc { margin-top: 1.75rem; color: #cfcfcf; white-space: pre-line; }

.panel { padding: 1.35rem; border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-surface); transition: border-color 0.3s, background 0.3s; }
.panel:hover { border-color: #444; background: var(--color-surface-hover); }
.panel h3 { font-size: 1.1rem; margin-bottom: 0.9rem; }
.included-block { margin-top: 2.5rem; }
.checklist { display: grid; gap: 0.6rem; }
.checklist li { display: flex; align-items: flex-start; gap: 0.7rem; color: #d0d0d0; font-size: 0.95rem; }
.checklist .ico { width: 1.15rem; height: 1.15rem; margin-top: 0.2rem; color: var(--color-ok); stroke-width: 2.4; }
.checklist--no .ico { color: var(--color-danger); }

/* --- fixed bottom buy bar (Avatar details page) ------------------------- */
.buybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
  background: rgba(10, 10, 10, 0.92); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-top: 1px solid var(--color-border);
  padding: 0.65rem 1rem calc(0.65rem + env(safe-area-inset-bottom, 0px));
  animation: buybar-in 0.4s var(--ease-out) both;
}
@keyframes buybar-in { from { transform: translateY(100%); } }
.buybar__inner { display: flex; align-items: center; gap: 0.6rem; max-width: var(--max-width); margin-inline: auto; }
.buybar__round { flex: none; width: 3rem; height: 3rem; background: var(--color-bg); }
.buybar__buy { flex: 1; min-width: 0; min-height: 3rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 900px) { .buybar { display: none; } }
body:has(.buybar) { padding-bottom: calc(4.85rem + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 900px) { body:has(.buybar) { padding-bottom: 0; } }

/* profile + cover crop previews */
.crops { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; margin-top: 2rem; }
@media (min-width: 700px) { .crops { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); } }
.crop { display: grid; gap: 0.7rem; padding: 1.1rem; border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-surface); transition: border-color 0.3s, background 0.3s, transform 0.3s var(--ease-out); }
.crop:hover { border-color: #444; background: var(--color-surface-hover); transform: translateY(-2px); }
.crop__label { font-size: 0.9rem; color: var(--color-muted); }
.crop__profile { display: flex; align-items: center; gap: 1rem; }
.crop__circle { width: 6rem; height: 6rem; border-radius: 50%; border: 3px solid var(--color-bg); outline: 1px solid var(--color-border); }
.crop__circle.sm { width: 2.6rem; height: 2.6rem; border-width: 2px; }
.crop__cover { aspect-ratio: 3 / 1; border-radius: var(--radius-md); }

/* Try it on */
.tryon { margin-top: 3rem; padding: 1.5rem 1.15rem; border: 1px solid var(--color-border); border-radius: var(--radius-xl); background: radial-gradient(80% 80% at 0% 0%, rgba(225, 29, 46, 0.1), transparent 60%), var(--color-surface); }
.tryon h2 { font-size: clamp(1.6rem, 5vw, 2.2rem); }
.tryon__sub { margin-top: 0.5rem; color: var(--color-muted); }
.tryon__picker { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.4rem; }
.plat-btn {
  display: inline-flex; flex-direction: column; align-items: center; gap: 0.45rem; min-width: 5.4rem; padding: 0.9rem 1.1rem; cursor: pointer;
  border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-bg); color: var(--color-muted); font-size: 0.85rem; font-weight: 500;
  transition: border-color 0.2s, color 0.2s, background 0.2s, box-shadow 0.3s, transform 0.2s var(--ease-out);
}
.plat-btn .brand-ico { width: 1.6rem; height: 1.6rem; }
.plat-btn:hover { color: #fff; border-color: #444; transform: translateY(-2px); }
.plat-btn[aria-pressed="true"] { color: #fff; border-color: var(--color-accent); background: var(--color-accent-dim); box-shadow: 0 0 0 1px var(--color-accent), 0 12px 32px -8px rgba(225, 29, 46, 0.45); }
.tryon__hint { margin-top: 0.9rem; font-size: 0.9rem; color: var(--color-muted); }
.tryon__stage { margin-top: 1.25rem; padding: 1rem 0.5rem; border-radius: var(--radius-lg); background: repeating-linear-gradient(45deg, #0d0d0d 0 14px, #0f0f0f 14px 28px); border: 1px dashed var(--color-border); overflow-x: auto; animation: stage-in 0.45s var(--ease-out); }
.tryon__stage[hidden] { display: none; }
@keyframes stage-in { from { opacity: 0; transform: translateY(10px); } }
.tryon__loading { padding: 3rem 0; display: grid; place-items: center; }
.tryon__caption { margin-top: 0.8rem; font-size: 0.82rem; color: var(--color-muted-dark); text-align: center; }

.related { margin-top: 3.5rem; }

/* --- favourites summary ------------------------------------------------ */
.summary-bar {
  display: grid; gap: 1.1rem; margin-top: 2.25rem; padding: 1.4rem; border: 1px solid var(--color-border);
  border-radius: var(--radius-xl); background: var(--color-surface);
}
.summary-bar__row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.summary-bar__total { font-family: var(--font-display); font-weight: 700; font-size: 2rem; letter-spacing: -0.03em; }
@media (min-width: 700px) { .summary-bar { grid-template-columns: 1fr auto; align-items: center; } .summary-bar .btn { min-width: 14rem; } }

/* --- checkout ---------------------------------------------------------- */
.checkout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; padding-bottom: 2rem; }
@media (min-width: 900px) {
  .checkout { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 2.5rem; align-items: start; }
  .checkout__summary { order: 2; position: sticky; top: calc(var(--header-h) + 1.5rem); }
}
.checkout__form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
.block { display: grid; gap: 1rem; padding: 1.4rem; border: 1px solid var(--color-border); border-radius: var(--radius-xl); background: var(--color-surface); }
.block h2 { font-size: 1.3rem; }
.order-item { display: grid; grid-template-columns: 4.5rem 1fr auto; gap: 0.9rem; align-items: center; padding: 0.85rem 0; border-bottom: 1px solid var(--color-border); }
.order-item:first-of-type { padding-top: 0; }
.order-item .media { width: 4.5rem; aspect-ratio: 4 / 5; border-radius: 0.6rem; }
.order-item__name { font-weight: 600; line-height: 1.25; }
.order-item__meta { font-size: 0.85rem; color: var(--color-muted); margin-top: 0.15rem; }
.order-item__price { font-family: var(--font-display); font-weight: 700; }
.order-total { display: flex; align-items: baseline; justify-content: space-between; padding-top: 0.4rem; }
.order-total strong { font-family: var(--font-display); font-size: 1.9rem; letter-spacing: -0.03em; }
.choices { display: grid; gap: 0.6rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 480px) { .choices { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.choice { display: flex; align-items: center; gap: 0.7rem; padding: 0.95rem 1rem; border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-bg); cursor: pointer; transition: border-color 0.2s, background 0.2s, transform 0.2s var(--ease-out); }
.choice:hover { border-color: #4a4a4a; transform: translateY(-2px); }
.choice:has(input:checked) { border-color: var(--color-accent); background: var(--color-accent-dim); }
.choice input { accent-color: var(--color-accent); width: 1.1rem; height: 1.1rem; margin: 0; }
.gift-fields { display: grid; gap: 1rem; animation: stage-in 0.35s var(--ease-out); }
.secure-note { display: flex; align-items: center; justify-content: center; gap: 0.5rem; font-size: 0.85rem; color: var(--color-muted); }
.notice { padding: 0.9rem 1rem; border: 1px solid rgba(225, 29, 46, 0.4); border-radius: var(--radius-md); background: var(--color-accent-dim); font-size: 0.92rem; color: #ffd9dd; }

/* --- success ----------------------------------------------------------- */
.success { display: grid; justify-items: center; gap: 1rem; padding: 4rem 0 2rem; text-align: center; }
.success .status-ico { width: 4.5rem; height: 4.5rem; }
.success .status-ico .ico { width: 2.2rem; height: 2.2rem; }
.success h1 { font-size: clamp(2.1rem, 7vw, 3.2rem); }
.success p { max-width: 30rem; color: var(--color-muted); }
.order-id { display: inline-flex; align-items: center; gap: 0.75rem; margin: 0.5rem 0; padding: 0.8rem 1.1rem 0.8rem 1.4rem; border: 1px dashed #4a1a20; border-radius: var(--radius-lg); background: var(--color-accent-dim); }
.order-id__label { font-size: 0.85rem; color: #d9a0a6; }
.order-id__value { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; letter-spacing: 0.04em; }
.copy-btn { display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; color: #ffd9dd; transition: background 0.2s; }
.copy-btn:hover { background: rgba(255, 255, 255, 0.1); }

/* --- legal / prose pages ---------------------------------------------- */
.prose { max-width: 46rem; padding-bottom: 2rem; }
.prose h2 { font-size: 1.5rem; margin: 2.25rem 0 0.75rem; }
.prose p, .prose li { color: #cdcdcd; }
.prose p + p { margin-top: 0.9rem; }
.prose ul { display: grid; gap: 0.5rem; margin: 0.9rem 0; padding-left: 1.2rem; list-style: disc; }
.prose li::marker { color: var(--color-accent); }
.prose a { color: #ff6b78; text-decoration: underline; text-underline-offset: 3px; }
.prose .updated { margin-top: 0.5rem; font-size: 0.88rem; color: var(--color-muted); }
.tagline { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.4rem, 4.5vw, 2rem); letter-spacing: -0.02em; }

.rules { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; margin: 1.5rem 0 0.5rem; }
@media (min-width: 800px) { .rules { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rule-card { padding: 1.4rem; border: 1px solid var(--color-border); border-radius: var(--radius-xl); background: var(--color-surface); transition: border-color 0.3s, background 0.3s, transform 0.3s var(--ease-out); }
.rule-card:hover { background: var(--color-surface-hover); transform: translateY(-3px); }
.rule-card h2 { margin: 0 0 1rem; font-size: 1.3rem; }
.rule-card--yes { border-color: rgba(62, 207, 142, 0.3); }
.rule-card--no { border-color: rgba(255, 85, 102, 0.3); }

/* --- contact ----------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; margin-top: 1.5rem; }
@media (min-width: 700px) { .contact-grid { grid-template-columns: repeat(2, 1fr); } }
.contact-card { display: flex; align-items: center; gap: 1rem; padding: 1.25rem; border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-surface); transition: border-color 0.2s, background 0.2s, transform 0.2s var(--ease-out), box-shadow 0.3s; }
.contact-card:hover { border-color: var(--color-accent); background: var(--color-surface-hover); transform: translateY(-3px); box-shadow: 0 20px 36px -20px rgba(0, 0, 0, 0.6); }
.contact-card__ico { display: grid; place-items: center; width: 3rem; height: 3rem; flex: none; border-radius: 50%; background: var(--color-accent-dim); color: #ff6b78; }
.contact-card__label { font-size: 0.85rem; color: var(--color-muted); }
.contact-card__value { font-weight: 600; overflow-wrap: anywhere; }

/* --- 404 --------------------------------------------------------------- */
.notfound { position: relative; display: grid; justify-items: center; gap: 1rem; padding: 4rem 0 3rem; text-align: center; overflow: hidden; isolation: isolate; }
.notfound::before { content: ""; position: absolute; z-index: -1; top: -10%; left: 50%; width: 120%; height: 80%; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(225, 29, 46, 0.22), transparent); }
.notfound__code { display: flex; align-items: center; justify-content: center; gap: 0.05em; font-family: var(--font-display); font-weight: 700; font-size: clamp(6rem, 30vw, 13rem); line-height: 0.9; letter-spacing: -0.06em; }
.notfound__code span { color: transparent; -webkit-text-stroke: 2px rgba(255, 255, 255, 0.55); }
.notfound__eyes { width: 0.72em; height: auto; margin-inline: -0.02em; }
.notfound__eyes .eye { animation: blink 5s infinite; transform-origin: center; transform-box: fill-box; }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(0.1); } }
.notfound h1 { font-size: clamp(1.7rem, 5.5vw, 2.5rem); }
.notfound p { max-width: 28rem; color: var(--color-muted); }
.notfound__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem; margin-top: 0.75rem; }

noscript .container { padding: 3rem 0; text-align: center; color: var(--color-muted); }

/* --- FAQ (How It Works) ------------------------------------------------ */
.faq { display: grid; gap: 0.6rem; max-width: 46rem; }
.faq details { border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-surface); }
.faq summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.05rem 1.2rem; font-weight: 600; transition: background 0.2s; border-radius: var(--radius-lg); }
.faq summary:hover { background: var(--color-surface-hover); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--color-accent); transition: transform 0.25s var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 1.2rem 1.2rem; color: var(--color-muted); }
.faq a { color: #ff6b78; text-decoration: underline; text-underline-offset: 3px; }


/* --- SwiftPay (inline payment overlay) ---------------------------------- */
.swiftpay { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 1.25rem; background: rgba(0, 0, 0, 0.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0s 0.3s; }
.swiftpay.is-open { opacity: 1; visibility: visible; transition: opacity 0.3s; }
.swiftpay__card { position: relative; width: min(100%, 27.5rem); max-height: calc(100dvh - 2.5rem); overflow-y: auto; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-xl); padding: 1.75rem 1.5rem; box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.9); transform: translateY(10px) scale(0.98); transition: transform 0.4s var(--ease-out); }
.swiftpay.is-open .swiftpay__card { transform: none; }
.swiftpay__close { position: absolute; top: 0.8rem; right: 0.8rem; z-index: 200; width: 2.25rem; height: 2.25rem; display: grid; place-items: center; border: 1px solid var(--color-border); border-radius: var(--radius-full); background: var(--color-surface-hover); color: var(--color-muted); cursor: pointer; transition: color 0.2s, border-color 0.2s; }
.swiftpay__close:hover { color: var(--color-fg); border-color: var(--color-muted-dark); }
.swiftpay__close[disabled] { opacity: 0.45; cursor: not-allowed; }
.swiftpay__close .ico { width: 1rem; height: 1rem; }

.swiftpay-topbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding-right: 2.25rem; }
.swiftpay-label { display: block; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--color-muted-dark); margin-bottom: 0.2rem; }
.swiftpay-order { display: block; font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; line-height: 1.2; }
.swiftpay-email { display: block; margin-top: 0.15rem; font-size: 0.78rem; color: var(--color-muted); word-break: break-all; max-width: 22ch; }
.swiftpay-topbar-right { text-align: right; }
.swiftpay-amount { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; color: var(--color-accent); }
.swiftpay-divider { height: 1px; background: var(--color-border); margin: 1rem 0; }
.swiftpay-heading { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; text-align: center; margin: 1rem 0; }

.swiftpay-section { margin-bottom: 0.25rem; }
.swiftpay-section[hidden] { display: none; }
.swiftpay-field { margin-bottom: 0.9rem; }
.swiftpay-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.swiftpay-opt { color: var(--color-muted); font-weight: 400; }

.swiftpay-input-wrap { position: relative; }
.swiftpay-input-wrap .input { padding-right: 3.4rem; }
.swiftpay-cardtype { position: absolute; right: 0.6rem; top: 50%; transform: translateY(-50%); min-width: 38px; height: 22px; padding: 0 0.35rem; display: flex; align-items: center; justify-content: center; border: 1px dashed var(--color-border); border-radius: 4px; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.02em; pointer-events: none; color: var(--color-muted-dark); }
.swiftpay-cardtype.is-brand { border-color: transparent; }

.swiftpay-subheading { font-size: 0.85rem; font-weight: 600; color: var(--color-muted); margin: 0.9rem 0; padding-top: 0.9rem; border-top: 1px dashed var(--color-border); }

.swiftpay-pay { width: 100%; margin-top: 0.75rem; }
.swiftpay-pay[disabled] { opacity: 0.55; cursor: not-allowed; }
.swiftpay-secure { margin-top: 1.4rem; display: flex; justify-content: center; }
.swiftpay-badge { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.5rem 0.9rem; border: 1px solid var(--color-border); border-radius: var(--radius-full); background: rgba(20, 20, 20, 0.6); font-size: 0.76rem; color: var(--color-muted); }
.swiftpay-badge .ico { width: 13px; height: 13px; flex-shrink: 0; color: var(--color-accent); }
.swiftpay-badge strong { color: var(--color-fg); font-weight: 600; }

/* skeleton layout blocks */
.skel-topbar { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.skel-stack { display: flex; flex-direction: column; gap: 0.5rem; }
.skel-stack-right { align-items: flex-end; }
.skel-line { height: 12px; }
.skel-line-sm { height: 10px; }
.skel-line-lg { height: 16px; }
.skel-divider { height: 1px; background: var(--color-border); margin: 1rem 0; }
.skel-heading { height: 16px; width: 60%; margin: 1rem auto; }
.skel-field { margin-bottom: 1rem; }
.skel-label { height: 10px; width: 30%; margin-bottom: 0.6rem; }
.skel-input { height: 44px; }
.skel-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.skel-btn { height: 48px; border-radius: var(--radius-full); margin-top: 1rem; }
.skel-badge { height: 30px; width: 180px; border-radius: var(--radius-full); margin: 1.4rem auto 0; }


/* --- SwiftPay inline panels (failure / success states) ----------------- */
.swiftpay__panel-layer {
  position: relative;
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 20rem;
  z-index: 10;
}
.swiftpay__panel-layer[hidden] { 
  display: none !important; 
}


.swiftpay-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem 0 1rem;
  animation: swiftpay-panel-in 0.25s var(--ease-out);
}

@keyframes swiftpay-panel-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

.swiftpay-panel .status-ico {
  width: 4rem;
  height: 4rem;
  margin-bottom: 1.25rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.swiftpay-panel .status-ico .ico {
  width: 2rem;
  height: 2rem;
}

.swiftpay-panel__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.6rem;
  max-width: 24ch;
}

.swiftpay-panel__msg {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--color-muted);
  margin-bottom: 1.5rem;
  max-width: 28ch;
}

.swiftpay-panel__actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  width: 100%;
  max-width: 20rem;
}

.swiftpay-panel__actions .btn {
  width: 100%;
  min-height: 3rem;
  font-size: 0.95rem;
}

.swiftpay-panel__actions .btn--ghost {
  border: 1px solid var(--color-border);
  background: transparent;
}
.swiftpay-panel__actions .btn--ghost:hover {
  background: var(--color-surface-hover);
}

@media (max-width: 480px) {
  .swiftpay { padding: 0.75rem; }
  .swiftpay__card { padding: 1.5rem 1.1rem; }
  .swiftpay__panel-layer { padding: 1.5rem 1.1rem; }
}