/* Partner landing pages: /vipet and /d20, English and Arabic.
   Shared shell first (pt-), then V.I.PET (pv-), then D20 Cafe (pd-).
   Layout is logical (inline-start/end) so the Arabic pages mirror without overrides,
   except where an image's own geometry decides the side. */

:root {
  --ink: #2E3338; --ink-soft: #5F6770; --blue: #1565C0; --deep: #0D47A1; --line: #E3E7EC;
  --font: 'Archivo', 'Noto Kufi Arabic', system-ui, sans-serif;
  --gut: clamp(18px, 4.5vw, 64px);
  --sc-font-display: var(--font); --sc-font-text: var(--font);
}
:root[dir="rtl"] { --font: 'Noto Kufi Arabic', 'Archivo', system-ui, sans-serif; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font: 400 17px/1.6 var(--font); color: var(--ink); overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -0.01em; font-weight: 750; }
:root[dir="rtl"] h1, :root[dir="rtl"] h2, :root[dir="rtl"] h3 { letter-spacing: 0; line-height: 1.35; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.pt-wrap { width: min(1180px, 100%); margin-inline: auto; padding-inline: var(--gut); }
.pt-skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 50; background: #fff; color: var(--ink); padding: 10px 14px; border-radius: 8px; }
.pt-skip:focus { top: 12px; }

/* header */
.pt-top { position: relative; z-index: 20; }
.pt-top__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.pt-brands { display: flex; align-items: center; gap: 14px; min-width: 0; }
.pt-brand { display: block; border-radius: 8px; }
.pt-brand__reamaze { height: 62px; width: auto; }
.pt-brand__partner { height: 62px; width: auto; }
.pt-x { font-size: 22px; opacity: .55; }
.pt-lang { display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px; border-radius: 999px; border: 1px solid currentColor; text-decoration: none; font: 650 13px/1 var(--font); white-space: nowrap; min-height: 40px; }
.pt-lang span { font-family: 'Noto Kufi Arabic', 'Archivo', sans-serif; }
:root[dir="rtl"] .pt-lang span { font-family: 'Archivo', sans-serif; }
.pt-flag { width: 24px; height: 10px; border-radius: 1px; flex: none; }
.pt-flag--en { width: auto; height: auto; font: 750 10px/1 'Archivo', sans-serif; letter-spacing: .06em; padding: 3px 4px; border-radius: 3px; background: currentColor; }
.pt-flag--en { color: inherit; }
.pt-lang .pt-flag--en { background: none; border: 1px solid currentColor; }

/* buttons */
.pt-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.pt-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 50px; padding: 13px 22px; border-radius: 999px; border: 1.5px solid transparent; font: 700 16px/1.2 var(--font); text-decoration: none; cursor: pointer; transition: transform .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease; }
.pt-btn:active { transform: translateY(1px); }
.pt-btn svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
.pt-btn--primary { background: var(--blue); color: #fff; }
.pt-btn--primary:hover { background: var(--deep); }
.pt-btn--ghost { background: transparent; border-color: currentColor; }
.pt-btn--light { background: transparent; color: inherit; border-color: currentColor; }
.pt-btn--small { min-height: 40px; padding: 8px 16px; font-size: 14px; }
.pt-float { position: fixed; z-index: 40; inset-inline-end: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: #25D366; color: #fff; box-shadow: 0 8px 22px rgba(10, 30, 20, .28); }
.pt-float svg { width: 30px; height: 30px; fill: currentColor; }
.pt-float { opacity: 0; transform: translateY(12px) scale(.9); pointer-events: none; transition: opacity .25s ease, transform .25s ease; }
.pt-float.is-on { opacity: 1; transform: none; pointer-events: auto; }

/* footer */
.pt-foot { padding-block: 44px calc(44px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.pt-foot__in { display: grid; gap: 18px; justify-items: start; }
.pt-foot__links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.pt-foot__links a { text-decoration: none; font-weight: 600; padding-block: 6px; }
.pt-foot__links a:hover { text-decoration: underline; }
.pt-foot__line { font-size: 14px; opacity: .75; }
.pt-brands--foot .pt-brand__reamaze, .pt-brands--foot .pt-brand__partner { height: 56px; }

/* ===================================================================== V.I.PET */
.pv { --cream: #FBF7F1; --warm: #F3ECE2; --orange: #F39020; --teal: #2D8FA8; background: var(--cream); }
.pv .pt-top { color: var(--ink); }

/* hero: split stage, photo and figurine in one frame */
.pv-hero__stage { height: 100vh; height: 100svh; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.pv-hero__copy { grid-row: 1; grid-column: 1; align-self: center; padding: 96px var(--gut) 48px; max-width: 560px; justify-self: end; }
.pv-hero h1 { font-size: clamp(2.5rem, 4.6vw, 4.6rem); }
.pv-hero h1 span, .pv-close h2 span { color: var(--blue); }
.pv-lead { margin-top: 18px; font-size: clamp(1.05rem, 1.35vw, 1.2rem); color: var(--ink-soft); max-width: 34rem; }
.pv-hint { margin-top: 22px; font-size: 14px; color: var(--teal); font-weight: 650; }
.pv-hint__touch { display: none; }
@media (hover: none) { .pv-hint__fine { display: none; } .pv-hint__touch { display: inline; } }
.pv-note { color: var(--ink-soft); font-weight: 400; font-size: 13px; }
.pv-hero .pv-frame { grid-row: 1; grid-column: 2; }

.pv-frame { position: relative; overflow: hidden; touch-action: pan-y; background: var(--warm); --cut: .5; user-select: none; -webkit-user-select: none; }
.pv-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 58% 60%; max-width: none; }
.pv-print { clip-path: inset(0 0 0 calc(var(--cut) * 100%)); }
:root[dir="rtl"] .pv-print { clip-path: inset(0 calc(var(--cut) * 100%) 0 0); }
.pv-lens { clip-path: circle(0 at 50% 50%); z-index: 2; pointer-events: none; }
.pv-frame.is-lens .pv-lens { filter: drop-shadow(0 0 0 transparent); }
.pv-divider { position: absolute; inset: 0; z-index: 3; pointer-events: none; transform: translateX(calc(var(--cut) * 100%)); }
:root[dir="rtl"] .pv-divider { transform: translateX(calc(var(--cut) * -100%)); }
.pv-divider::before { content: ""; position: absolute; top: 0; bottom: 0; inset-inline-start: -1px; width: 2px; background: #fff; box-shadow: 0 0 0 1px rgba(46, 51, 56, .12); }
.pv-divider span { position: absolute; top: 22px; padding: 6px 12px; border-radius: 999px; font: 700 13px/1 var(--font); white-space: nowrap; background: rgba(255, 255, 255, .92); color: var(--ink); box-shadow: 0 4px 14px rgba(46, 51, 56, .14); }
.pv-divider__l { inset-inline-end: calc(100% + 10px); }
.pv-divider__r { inset-inline-start: 10px; background: var(--blue) !important; color: #fff !important; }
.pv-frame.is-lens .pv-divider { opacity: .35; transition: opacity .2s; }

/* the two columns: care and making */
.pv-split { padding-block: clamp(72px, 10vw, 128px); }
.pv-split__rule { display: flex; align-items: center; gap: 14px; margin-bottom: 40px; font: 700 14px/1 var(--font); color: var(--ink-soft); }
.pv-split__rule i { flex: 1; height: 2px; background: linear-gradient(90deg, var(--teal), var(--blue)); }
:root[dir="rtl"] .pv-split__rule i { background: linear-gradient(-90deg, var(--teal), var(--blue)); }
.pv-split__cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); }
.pv-col { padding: clamp(26px, 3.4vw, 44px); border-radius: 26px; background: #fff; box-shadow: 0 20px 50px -30px rgba(46, 51, 56, .35); }
.pv-col--care { border-top: 5px solid var(--teal); }
.pv-col--make { border-top: 5px solid var(--blue); }
.pv-col h2 { font-size: clamp(1.8rem, 2.8vw, 2.6rem); }
.pv-col__p { margin-top: 10px; color: var(--ink-soft); }
.pv-care { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.pv-care li { display: grid; gap: 2px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.pv-care b { font-weight: 700; }
.pv-care span { color: var(--ink-soft); font-size: 15.5px; }
.pv-steps { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 18px; }
.pv-steps li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.pv-steps i { font-style: normal; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #E8F1FB; color: var(--blue); font-weight: 750; }
.pv-col .pt-btn--teal { background: var(--teal); color: #fff; }
.pv-col .pt-btn--teal:hover { background: #20788F; }
.pv-col .pt-btn--ghost { color: var(--ink); }

/* the offer ticket */
.pv-offer { padding-block: 0 clamp(72px, 10vw, 128px); }
.pv-ticket { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 28px 40px; align-items: center; padding: clamp(28px, 4vw, 52px); border-radius: 28px; color: #fff;
  background: radial-gradient(120% 140% at 100% 0, #1E78D6 0, #0D47A1 55%, #0A2F6B 100%); }
.pv-kicker { font-weight: 700; font-size: 14px; color: #FFD39A; margin-bottom: 10px; }
.pv-ticket h2 { font-size: clamp(2rem, 3.4vw, 3.2rem); }
.pv-ticket p { color: #DCE8F7; }
.pv-ticket__copy p:last-child { margin-top: 12px; max-width: 36rem; }
.pv-ticket__code { justify-self: stretch; display: grid; justify-items: center; gap: 10px; padding: 24px; border-radius: 20px; border: 2px dashed rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .06); }
.pv-ticket__code small { font-size: 13px; color: #DCE8F7; }
.pv-ticket__code strong { font: 800 clamp(2rem, 3.4vw, 2.8rem)/1 'Archivo', sans-serif; letter-spacing: .06em; }
.pv-ticket__code .pt-btn { background: #fff; color: var(--deep); }
.pv-ticket__code .pt-btn.is-done { background: #DFF5E6; color: #146C2E; }
.pv-ticket__actions { grid-column: 1 / -1; margin-top: 0; }
.pv-ticket .pt-btn--primary { background: #fff; color: var(--deep); }
.pv-ticket .pt-btn--primary:hover { background: #EAF2FC; }
.pv-ticket .pt-btn--ghost { color: #fff; }

/* the close: the dog prints to the full frame */
.pv-close__stage { height: 100vh; height: 100svh; }   /* no position here: the engine makes the stage sticky */
.pv-frame--close { position: absolute; inset: 0; }
.pv-frame--close img { object-position: 50% 62%; }
.pv-close__copy { position: absolute; z-index: 5; inset-inline-start: var(--gut); bottom: clamp(28px, 7vh, 72px); width: min(34rem, calc(100% - 2 * var(--gut))); padding: clamp(22px, 3vw, 34px); border-radius: 24px; background: rgba(251, 247, 241, .94); box-shadow: 0 24px 60px -28px rgba(46, 51, 56, .45); }
.pv-close h2 { font-size: clamp(2.2rem, 4vw, 3.6rem); }
.pv-close__copy > p { margin-top: 10px; color: var(--ink-soft); }
.pv-close__copy .pv-note { margin-top: 14px; }
.pt-btn--wa { background: #1FAF54 !important; color: #fff !important; }
.pt-btn--wa:hover { background: #178C43 !important; }
.pv-close .pt-btn--light { color: var(--ink); }

.pv .pt-foot { background: var(--cream); }

@media (max-width: 860px) {
  .pt-brand__reamaze, .pt-brand__partner { height: 50px; }
  .pv-hero__stage { grid-template-columns: 1fr; grid-template-rows: 46% 54%; }
  .pv-hero .pv-frame { grid-row: 1; grid-column: 1; }
  .pv-hero__copy { grid-row: 2; padding: 22px var(--gut) 24px; align-self: start; justify-self: stretch; max-width: none; }
  .pv-hero h1 { font-size: clamp(2rem, 8.6vw, 2.6rem); }
  .pv-lead { margin-top: 10px; font-size: 1rem; }
  .pv-hero .pt-actions { margin-top: 16px; }
  .pv-hint { margin-top: 12px; }
  .pv-frame img { object-position: 58% 62%; }
  .pv-split__cols { grid-template-columns: 1fr; }
  .pv-ticket { grid-template-columns: 1fr; }
  .pv-frame--close { bottom: auto; height: 50%; }
  .pv-frame--close img { object-position: 50% 45%; }
  .pv-close__copy { inset-inline: 0; top: 50%; bottom: 0; width: auto; border-radius: 0; box-shadow: none; background: var(--cream); padding: 22px var(--gut) 90px; }
  .pv-close h2 { font-size: clamp(1.9rem, 8vw, 2.4rem); }
  .pv-divider span { top: 14px; font-size: 12px; }
}
@media (max-width: 860px) and (max-height: 700px) {
  .pv-hero__stage { grid-template-rows: 38% 62%; }
  .pv-lead { display: none; }
}

/* ======================================================================== D20 */
.pd { --night: #14110D; --walnut: #241B14; --felt: #1C3328; --brass: #E3A94E; --cream: #F6EBDA; --cream-soft: #CDBFA9;
  background: var(--night); color: var(--cream); }
.pd .pt-top { position: absolute; inset-inline: 0; top: 0; color: var(--cream); }
.pd .pt-brand__reamaze { content: url("/img/brand/logo-full-light.png"); }
.pd :focus-visible { outline-color: var(--brass); }

.pd-hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; align-items: end; overflow: hidden; isolation: isolate; }
.pd-hero__bg { position: absolute; inset: -6% 0 -10%; z-index: -3; }
.pd-hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; max-width: none; }
.pd-hero__shade { position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background: linear-gradient(180deg, rgba(20, 17, 13, .78) 0, rgba(20, 17, 13, .12) 26%, rgba(20, 17, 13, .2) 48%, rgba(20, 17, 13, .92) 82%, var(--night) 100%); }
.pd-hero__die { position: absolute; z-index: -1; inset-inline-end: 7vw; top: 22vh; width: clamp(110px, 13vw, 190px); filter: drop-shadow(0 24px 30px rgba(0, 0, 0, .55)); }
.pd-hero__die svg { width: 100%; height: auto; animation: pd-bob 6s ease-in-out infinite; }
@keyframes pd-bob { 0%, 100% { transform: translateY(0) rotate(-8deg); } 50% { transform: translateY(-14px) rotate(4deg); } }
.pd-hero__copy { padding-block: 120px clamp(48px, 9vh, 96px); }
.pd-hero h1 { font-size: clamp(2.5rem, 5.4vw, 5.2rem); max-width: 15ch; text-shadow: 0 2px 24px rgba(0, 0, 0, .45); }
:root[dir="rtl"] .pd-hero h1 { max-width: 17ch; }
.pd-hero h1 span { color: var(--brass); }
.pd-lead { margin-top: 18px; max-width: 36rem; font-size: clamp(1.02rem, 1.3vw, 1.18rem); color: #EADFCB; text-shadow: 0 1px 14px rgba(0, 0, 0, .5); }
.pt-btn--brass { background: var(--brass); color: #1D140A; }
.pt-btn--brass:hover { background: #F0BC66; }
.pd .pt-btn--light { color: var(--cream); }
.pd .pt-btn--light:hover { background: rgba(246, 235, 218, .1); }

/* the die */
.pd-die__outline { fill: #1565C0; stroke: #0A2F6B; stroke-width: 6; stroke-linejoin: round; }
.pd-die__face { fill: #2A7BD6; }
.pd-die__edges { fill: none; stroke: rgba(255, 255, 255, .55); stroke-width: 4; stroke-linejoin: round; }
.pd svg text { fill: #fff; font: 800 118px/1 'Archivo', 'Noto Kufi Arabic', sans-serif; }

.pd-roll { padding-block: clamp(80px, 11vw, 140px); background: radial-gradient(90% 70% at 50% 45%, #2A2016 0, var(--night) 70%); }
.pd-roll__in { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.pd-roll h2 { font-size: clamp(2.1rem, 3.8vw, 3.6rem); }
.pd-roll__copy p { margin-top: 14px; color: var(--cream-soft); }
.pd-die { width: clamp(180px, 22vw, 280px); aspect-ratio: 484 / 588; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 30px; filter: drop-shadow(0 26px 34px rgba(0, 0, 0, .55)); transition: transform .2s ease; }
.pd-die:hover { transform: translateY(-4px) rotate(-3deg); }
.pd-die svg { width: 100%; height: 100%; }
.pd-die.is-rolling svg { animation: pd-tumble .82s cubic-bezier(.2, .7, .2, 1); }
@keyframes pd-tumble { 0% { transform: translateY(0) rotate(0); } 30% { transform: translateY(-46px) rotate(220deg) scale(.92); } 62% { transform: translateY(0) rotate(470deg) scale(1.04); } 80% { transform: translateY(-10px) rotate(520deg); } 100% { transform: translateY(0) rotate(720deg); } }
.pd-card { min-height: 220px; padding: 28px; border-radius: 24px; background: linear-gradient(160deg, #2B2117, #1C1610); border: 1px solid rgba(227, 169, 78, .35); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); display: grid; align-content: center; }
.pd-card__kicker { font-weight: 700; color: var(--brass); font-size: 15px; }
.pd-card__idea { margin-top: 8px; font: 750 clamp(1.5rem, 2.3vw, 2rem)/1.2 var(--font); min-height: 1.2em; }
:root[dir="rtl"] .pd-card__idea { line-height: 1.5; }
.pd-card.is-rolled .pd-card__idea { animation: pd-pop .45s ease-out; }
@keyframes pd-pop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.pd-card__actions { margin-top: 20px; }
.pd-card__actions[hidden] { display: none; }

/* the gallery rail */
.pd-gallery__stage { height: 100vh; height: 100svh; overflow: hidden; background: linear-gradient(180deg, var(--night), #1A1510 50%, var(--night)); }
/* Arabic: the engine pans right-to-left only, so the stage is mirrored and each card is mirrored back.
   The rail then starts on the right and travels to the left edge, the way Arabic reads. */
:root[dir="rtl"] .pd-gallery__stage, :root[dir="rtl"] .pd-rail { direction: ltr; }
:root[dir="rtl"] .pd-gallery__stage { transform: scaleX(-1); }
:root[dir="rtl"] .pd-rail > * { direction: rtl; transform: scaleX(-1); }
.pd-rail { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 32px); height: 100%; width: max-content; padding-inline: var(--gut); }
.pd-rail__lead { width: min(24rem, 76vw); flex: none; }
.pd-rail__lead h2 { font-size: clamp(2.1rem, 3.8vw, 3.6rem); }
.pd-rail__lead p { margin-top: 12px; color: var(--cream-soft); }
.pd-rail__lead .pd-note { font-size: 13px; opacity: .8; }
.pd-piece { flex: none; width: clamp(15rem, 24vw, 21rem); }
.pd-piece img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 18px; background: var(--walnut); }
.pd-piece h3 { margin-top: 14px; font-size: 1.2rem; }
.pd-piece p { margin-top: 4px; color: var(--cream-soft); font-size: 15px; }
.pd-piece__link { display: inline-block; margin-top: 8px; color: var(--brass); font-weight: 700; text-decoration: none; padding-block: 6px; }
.pd-piece__link:hover { text-decoration: underline; }
.pd-rail__end { flex: none; width: min(18rem, 70vw); }
.pd-rail__end h3 { font-size: 1.6rem; margin-bottom: 18px; }

/* beyond the table */
.pd-beyond { padding-block: clamp(80px, 10vw, 130px); background: #F6F1E8; color: var(--ink); }
.pd-beyond__head { max-width: 40rem; }
.pd-beyond h2 { font-size: clamp(2rem, 3.6vw, 3.2rem); }
.pd-beyond__head p { margin-top: 12px; color: var(--ink-soft); }
.pd-services { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.pd-services li { padding: 22px; border-radius: 18px; background: #fff; border: 1px solid #E8E0D2; }
.pd-services h3 { font-size: 1.12rem; }
.pd-services p { margin-top: 8px; color: var(--ink-soft); font-size: 15px; }
.pd-tag { display: inline-block; margin-top: 12px; font: 700 12px/1 'Archivo', sans-serif; letter-spacing: .06em; color: var(--blue); }
.pd-how__h { margin-top: clamp(56px, 7vw, 88px); font-size: clamp(1.6rem, 2.6vw, 2.2rem) !important; }
.pd-how { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; counter-reset: s; }
.pd-how li { border-top: 2px solid var(--ink); padding-top: 16px; }
.pd-how i { font-style: normal; font-weight: 800; color: var(--blue); }
.pd-how h3 { margin-top: 6px; font-size: 1.08rem; }
.pd-how p { margin-top: 6px; color: var(--ink-soft); font-size: 15px; }

/* the close */
.pd-close { padding-block: clamp(80px, 10vw, 130px); background: radial-gradient(80% 90% at 85% 10%, #22392D 0, var(--felt) 35%, #10201A 100%); }
.pd-close__in { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.pd-close__brands { display: flex; align-items: center; gap: 14px; font-size: 28px; color: var(--cream-soft); }
.pd-close__brands img { width: clamp(72px, 9vw, 120px); height: auto; }
.pd-close h2 { font-size: clamp(2.2rem, 4vw, 3.6rem); }
.pd-close h2 span { color: var(--brass); }
.pd-close__copy > p { margin-top: 14px; max-width: 38rem; color: #DCE6DE; }
.pd-contact { list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-wrap: wrap; gap: 12px; }
.pd-contact a { display: grid; gap: 2px; padding: 12px 18px; min-width: 12rem; border-radius: 14px; background: rgba(0, 0, 0, .22); border: 1px solid rgba(246, 235, 218, .18); text-decoration: none; }
.pd-contact a:hover { border-color: var(--brass); }
.pd-contact small { font-size: 12px; color: var(--cream-soft); }
.pd-contact span { font-weight: 700; }
:root[dir="rtl"] .pd-contact span { text-align: right; }
.pt-foot--dark { background: #0E0C09; border-top-color: #2A231B; color: var(--cream); }
.pt-foot--dark .pt-brand__reamaze { height: 60px; }

@media (max-width: 960px) {
  .pd-roll__in { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .pd-roll__copy { max-width: 32rem; }
  .pd-card { width: 100%; max-width: 32rem; text-align: center; }
  .pd-card__actions { justify-content: center; }
  .pd-services { grid-template-columns: 1fr 1fr; }
  .pd-how { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .pt-brand__reamaze, .pt-brand__partner { height: 44px; }
  .pt-brands { gap: 10px; }
  .pt-lang { padding: 7px 10px; font-size: 12px; }
  .pd-hero__die { top: 15vh; inset-inline-end: 6vw; width: 96px; }
  .pd-hero__copy { padding-bottom: 40px; }
  .pd-hero h1 { font-size: clamp(2.1rem, 9.4vw, 2.7rem); }
  .pd-services, .pd-how { grid-template-columns: 1fr; }
  .pd-close__in { grid-template-columns: 1fr; }
  .pd-contact a { min-width: 0; flex: 1 1 100%; }
  .pd-piece { width: 72vw; }
  .pt-actions .pt-btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  .pd-hero__die svg, .pd-die.is-rolling svg, .pd-card.is-rolled .pd-card__idea { animation: none; }
}

/* D20 Cafe offer: the same ticket as V.I.PET, dressed for the cafe */
.pd-offer { padding-block: clamp(56px, 8vw, 104px); background: var(--night); }
.pd-ticket { background: radial-gradient(120% 140% at 100% 0, #2E5440 0, var(--felt) 55%, #10201A 100%); border: 1px solid rgba(227, 169, 78, .35); }
.pd-ticket .pv-kicker { color: var(--brass); }
.pd-ticket p { color: #DCE6DE; }
.pd-ticket .pv-ticket__code { border-color: rgba(227, 169, 78, .6); }
.pd-ticket .pv-ticket__code small { color: var(--cream-soft); }
.pd-ticket .pv-ticket__code strong { color: var(--cream); }
.pd-ticket .pv-ticket__code .pt-btn { background: var(--brass); color: #1D140A; }

/* ReAmaze social links in the footers */
.pt-social { display: grid; gap: 10px; }
.pt-social__h { font-weight: 700; font-size: 14px; }
.pt-social ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.pt-social a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border-radius: 999px; border: 1px solid currentColor; text-decoration: none; font-weight: 650; font-size: 14px; }
.pt-social a:hover { background: rgba(127, 127, 127, .12); }
.pt-social svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.pv .pt-social a { border-color: #CFD6DE; }
.pt-foot--dark .pt-social a { border-color: rgba(246, 235, 218, .3); }
.pt-foot--dark .pt-social__h { color: var(--cream-soft); }
.pt-foot { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }   /* room for the floating WhatsApp button */
.pd-lead + .pd-lead { margin-top: 10px; }

/* the 3D die (d20-die.js); the SVG stays underneath as the fallback */
.pd-die { position: relative; }
.pd-die.is-3d { aspect-ratio: 1; width: clamp(200px, 24vw, 300px); filter: none; }
.pd-die.is-3d:hover { transform: translateY(-3px); }
.pd-die.is-3d > svg { visibility: hidden; }
.pd-die.is-3d.is-rolling > svg { animation: none; }
.pd-die__gl { position: absolute; inset: 0; width: 100%; height: 100%; }
.pd-die__shadow { position: absolute; left: 50%; bottom: 6%; width: 62%; height: 12%; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,.6), transparent); opacity: .55; pointer-events: none; }

/* ===================================================================== KEEPSAKE */
.ks-main { padding-block: 24px 80px; max-width: 980px; }
.ks h1 { font-size: clamp(2.3rem, 5vw, 4rem); margin-top: 18px; }
.ks h1 span { color: var(--blue); }
.ks-form { display: grid; gap: 22px; margin-top: 32px; }
.ks-step { margin: 0; padding: clamp(20px, 3vw, 32px); border: 0; border-radius: 24px; background: #fff; box-shadow: 0 20px 50px -34px rgba(46, 51, 56, .4); min-width: 0; }
.ks-step legend { float: left; width: 100%; display: flex; align-items: center; gap: 12px; margin-bottom: 18px; font: 750 clamp(1.3rem, 2.2vw, 1.6rem)/1.25 var(--font); }
:root[dir="rtl"] .ks-step legend { float: right; }
.ks-step legend + * { clear: both; }
.ks-step legend i { font-style: normal; flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #E8F1FB; color: var(--blue); font-size: 16px; }
.ks-help { color: var(--ink-soft); }
.ks-tips { margin: 12px 0 18px; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.ks-tips li { padding: 6px 12px; border-radius: 999px; background: #F3ECE2; font-size: 14px; }
.ks-type, .ks-sizes { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.ks-choice { position: relative; display: grid; gap: 4px; padding: 16px 18px; border-radius: 16px; border: 2px solid var(--line); cursor: pointer; transition: border-color .15s, background-color .15s; }
.ks-choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.ks-choice:has(input:checked) { border-color: var(--blue); background: #F2F7FD; }
.ks-choice:has(input:focus-visible) { outline: 3px solid var(--blue); outline-offset: 2px; }
.ks-choice small { color: var(--ink-soft); font-size: 14px; }
.ks-choice b { font-weight: 700; }
.ks-poses { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.ks-choice--img { padding: 8px 8px 12px; text-align: center; font-weight: 650; }
.ks-choice--img img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.ks-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.ks-slot { position: relative; display: grid; gap: 2px; padding: 10px; border-radius: 16px; border: 2px dashed #C9D3DE; cursor: pointer; text-align: center; }
.ks-slot input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.ks-slot:focus-within { outline: 3px solid var(--blue); outline-offset: 2px; }
.ks-slot__img { display: block; aspect-ratio: 1; border-radius: 10px; margin-bottom: 6px; background: #F3ECE2 center / cover no-repeat; }
.ks-slot:not(.is-set) .ks-slot__img { background-image: linear-gradient(transparent, transparent); }
.ks-slot.is-set { border-style: solid; border-color: var(--blue); }
.ks-slot__t { font-weight: 700; font-size: 15px; }
.ks-slot small { color: var(--ink-soft); font-size: 13px; }
.ks-slot em { font-style: normal; color: var(--blue); font-weight: 700; font-size: 14px; margin-top: 4px; }
.ks-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ks-fields label { display: grid; gap: 6px; font-weight: 650; font-size: 15px; }
.ks-fields .ks-wide { grid-column: 1 / -1; }
.ks-fields input, .ks-fields textarea { font: 400 16px/1.4 var(--font); padding: 12px 14px; border-radius: 12px; border: 1.5px solid #CFD6DE; background: #fff; color: var(--ink); width: 100%; }
:root[dir="rtl"] .ks-fields input[dir="ltr"] { text-align: right; }
.ks-fields input:focus, .ks-fields textarea:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px #CFE1F7; }
.ks-err { margin-top: 16px; padding: 12px 16px; border-radius: 12px; background: #FDECEC; color: #9B1C1C; font-weight: 650; }
.ks .pt-btn--ghost { color: var(--ink); }
.ks-done { margin-top: 32px; padding: clamp(24px, 4vw, 44px); border-radius: 26px; background: #fff; box-shadow: 0 20px 50px -30px rgba(46, 51, 56, .4); border-top: 5px solid #1FAF54; }
.ks-done h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.ks-done > p { margin-top: 10px; color: var(--ink-soft); }
@media (max-width: 640px) {
  .ks-fields { grid-template-columns: 1fr; }
  .ks-slots { grid-template-columns: 1fr 1fr; }
  .ks-poses { grid-template-columns: 1fr 1fr; }
}
.ks [hidden] { display: none !important; }
.ks-choice > span { display: grid; gap: 4px; }
.ks-type .ks-choice > span { gap: 2px; }

/* V.I.PET: more personalised products */
.pv-more { padding-block: 0 clamp(72px, 10vw, 128px); }
.pv-more__head { max-width: 40rem; margin-bottom: 28px; }
.pv-more__head h2 { font-size: clamp(2rem, 3.4vw, 3rem); }
.pv-more__head p { margin-top: 10px; color: var(--ink-soft); }
.pv-more__grid { list-style: none; padding: 0; margin: 0 0 14px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.pv-more__grid li { display: flex; flex-direction: column; gap: 8px; padding: 12px 12px 18px; border-radius: 20px; background: #fff; box-shadow: 0 20px 50px -34px rgba(46, 51, 56, .4); }
.pv-more__grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; }
.pv-more__grid h3 { font-size: 1.2rem; margin-top: 6px; }
.pv-more__grid p { color: var(--ink-soft); font-size: 15px; flex: 1; }
.pv-more__grid .pt-btn { align-self: flex-start; color: var(--ink); }
.pv-more__grid .pt-btn--primary { color: #fff; }
@media (max-width: 860px) { .pv-more__grid { grid-template-columns: 1fr 1fr; gap: 12px; } }

.pd-code { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 10px 16px; border-radius: 999px; border: 1.5px dashed var(--brass); background: rgba(20, 17, 13, .6); color: var(--cream); font-weight: 650; text-decoration: none; }
.pd-code b { color: var(--brass); letter-spacing: .04em; }
.pd-code:hover { background: rgba(227, 169, 78, .18); }

/* V.I.PET products: six tiles, three across */
.pv-more__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) { .pv-more__grid { grid-template-columns: 1fr 1fr; } }
