/* ==========================================================================
   RECKLESS STORE — PREMIUM HOMEPAGE
   Isolated stylesheet for index.html; extends the approved design tokens.
   Composition: huge Arabic headline behind a centered, code-built iPad.
   ========================================================================== */

/* ---------- 01 HERO ---------- */
.rs-home-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
    padding: calc(var(--rs-hero-nav-bottom, var(--rt-nav-height)) + var(--rt-space-8)) 24px 0;
    background:
        radial-gradient(900px 640px at 50% 38%, rgba(46,125,91,.26), transparent 68%),
        radial-gradient(700px 500px at 10% 78%, rgba(95,169,142,.10), transparent 64%),
        linear-gradient(150deg, #0A120D 0%, #13251A 42%, #24382B 100%);
}
.rs-hero-lights {
    position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(520px 320px at 50% 56%, rgba(95,169,142,.14), transparent 70%),
        radial-gradient(420px 300px at 88% 18%, rgba(247,248,240,.05), transparent 72%);
}
.rs-hero-aura {
    width: 680px; height: 680px; top: -260px;
    inset-inline-start: 50%; transform: translateX(-50%);
    opacity: .4;
}

/* Single measured stage: one container drives type and device geometry. */
.rs-hero-stage {
    container-type: inline-size;
    position: relative; z-index: 1;
    width: 100%;
    max-width: 1140px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Background headline — the device rises over its lower half */
.rs-hero-headline {
    /* Single control for the vertical gap between the three words. */
    --rs-hero-line-gap: clamp(14px, 2.2cqw, 34px);
    position: relative; z-index: 1;
    width: 100%; margin: 0; text-align: center; direction: rtl;
    font-family: 'Cairo', 'Cairo Fallback', sans-serif;
    font-size: clamp(1.5rem, 4vw, 5rem);
    font-size: clamp(1.5rem, 8cqw, 5rem);
    font-weight: 900; line-height: 1.16; letter-spacing: .01em;
    white-space: nowrap;
    max-width: 100%;
    color: var(--rt-text);
}
.rs-hero-headline .line { display: block; overflow: visible; padding: .20em .20em .20em; }
.rs-hero-headline .line + .line { margin-top: var(--rs-hero-line-gap); }
.rs-hero-headline .line > span {
    display: block;
    /* Quiet, brand-tinted typography — no glow, no heavy shadow. */
    background: linear-gradient(180deg, rgba(216,216,216,.84) 18%, rgba(95,169,142,.48) 92%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    transform: translateY(115%);
    opacity: 0;
    transition: transform 1.3s var(--rt-ease), opacity 1s ease;
}
.rs-revealed .rs-hero-headline .line > span { transform: translateY(0); opacity: 1; }

/* iPad scene — centered, in front of the headline */
.rs-ipad-scene {
    position: relative; z-index: 2;
    width: min(70vw, 620px);
    width: min(70cqw, 620px);
    /* CSS is the only owner of the device position. JS must not write margin-top. */
    margin-top: calc(-1 * clamp(40px, 7.5vw, 165px));
    margin-top: calc(-1 * clamp(40px, 13cqw, 165px));
    perspective: 1500px;
    font-size: clamp(6px, 1.15vw, 13px);
    font-size: clamp(6px, 1.25cqw, 13px);
}
.rs-ipad-glow {
    position: absolute; inset-inline: 8%; bottom: -3em; height: 8em;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(95,169,142,.42), transparent);
    filter: blur(3em); z-index: 0;
    opacity: 0; transition: opacity 1.6s ease .6s;
}
.rs-revealed .rs-ipad-glow { opacity: 1; }
.rs-ipad-float {
    position: relative; z-index: 1;
    animation: rs-ipad-float 7s ease-in-out infinite alternate;
    will-change: transform;
}
@keyframes rs-ipad-float { to { transform: translateY(-.9em); } }

.rs-ipad {
    position: relative; width: 100%; transform-style: preserve-3d;
    opacity: 0;
    transform: perspective(1500px) rotateX(34deg) translateY(5em) scale(.94);
    transform-origin: 50% 100%;
    transition: opacity 1s ease .2s, transform 1.9s var(--rt-ease) .25s;
}
.rs-revealed .rs-ipad {
    opacity: 1;
    transform: perspective(1500px) rotateX(0) translateY(0) scale(1);
}
.rs-ipad-frame {
    position: relative; aspect-ratio: 4 / 3; padding: .85em;
    border-radius: 2.6em;
    background: linear-gradient(145deg, #3a4740 0%, #0d1510 48%, #1c2820 100%);
    border: .1em solid rgba(216,216,216,.20);
    box-shadow:
        0 3em 6em rgba(0,0,0,.6),
        inset 0 .1em 0 rgba(247,248,240,.18),
        inset 0 -.1em 0 rgba(0,0,0,.5);
    transform: rotateY(-7deg) rotateX(3deg);
    transform-style: preserve-3d;
}
.rs-ipad-frame::before {
    content: ''; position: absolute; inset: .35em; border-radius: 2.2em;
    background: linear-gradient(125deg, rgba(247,248,240,.16), transparent 32%, transparent 70%, rgba(95,169,142,.14));
    pointer-events: none;
}
.rs-ipad-camera {
    position: absolute; top: .42em; left: 50%; width: .5em; height: .5em;
    border-radius: 50%; background: #080c09;
    box-shadow: 0 0 0 .16em rgba(247,248,240,.12); z-index: 3;
}
.rs-ipad-mic {
    position: absolute; top: .55em; left: calc(50% + 1.2em); width: .24em; height: .24em;
    border-radius: 50%; background: rgba(247,248,240,.28); z-index: 3;
}
.rs-ipad-screen {
    position: relative; height: 100%; border-radius: 1.9em; overflow: hidden;
    background: linear-gradient(160deg, #0A120D, #13251A 55%, #1b3325);
    border: .08em solid #080e0a;
    direction: rtl;
}
.rs-ipad-screen::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(118deg, rgba(247,248,240,.10), transparent 30%, transparent 70%, rgba(95,169,142,.06));
}
.rs-ipad-ui {
    height: 100%;
    display: grid; grid-template-rows: auto auto 1fr;
    gap: .65em; padding: 1em 1.15em;
    font-size: 1em;
}
.rs-ipad-topbar { display: flex; align-items: center; gap: .5em; color: var(--rt-text-muted); font-size: .8em; }
.rs-ipad-dot { width: .6em; height: .6em; border-radius: 50%; background: var(--rt-primary); opacity: .55; }
.rs-ipad-url { margin-inline: auto; background: rgba(216,216,216,.07); border-radius: 1em; padding: .18em 1.4em; }
.rs-ipad-nav {
    display: flex; align-items: center; gap: .75em;
    background: rgba(216,216,216,.04); border: .08em solid var(--rt-border);
    border-radius: .9em; padding: .55em .8em; font-size: .9em;
}
.rs-ipad-mini-brand .icon { width: 1.4em; height: 1.4em; color: var(--rt-primary); }
.rs-ipad-nav b { margin-inline-end: auto; color: var(--rt-text); font-size: 1.1em; }
.rs-ipad-nav > span:not(.rs-ipad-mini-brand) { color: var(--rt-text-muted); }
.rs-ipad-nav u {
    text-decoration: none; background: var(--rt-primary); color: var(--rt-bg);
    border-radius: .7em; padding: .22em .85em; font-weight: 700;
}
.rs-ipad-stage { position: relative; min-height: 0; overflow: hidden; }
.rs-ipad-stage > * { animation: rs-ipad-scene .65s var(--rt-ease) both; }
@keyframes rs-ipad-scene {
    from { opacity: 0; transform: translateY(1.2em) scale(.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.rs-ipad-scene-title { font-size: 1.65em; font-weight: 800; line-height: 1.25; margin-bottom: .55em; }
.rs-ipad-scene-sub { color: var(--rt-text-muted); font-size: .85em; line-height: 1.6; margin-bottom: .7em; }
.rs-ipad-chips { display: flex; gap: .45em; flex-wrap: wrap; margin-bottom: .7em; }
.rs-ipad-chips span {
    border: .08em solid var(--rt-border); border-radius: 2em;
    padding: .18em .85em; color: var(--rt-text-muted); font-size: .85em;
}
.rs-ipad-chips span.is-on {
    background: rgba(95,169,142,.2); border-color: var(--rt-border-primary); color: var(--rt-text);
}
.rs-ipad-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7em; align-content: start; }
.rs-ipad-card {
    background: rgba(216,216,216,.05); border: .08em solid var(--rt-border);
    border-radius: 1em; padding: .7em; display: grid; gap: .3em; overflow: hidden;
}
.rs-ipad-card.is-selected { border-color: var(--rt-primary); background: rgba(95,169,142,.16); }
.rs-ipad-card-top { display: flex; align-items: center; gap: .5em; }
.rs-ipad-card .icon { width: 1.5em; height: 1.5em; color: var(--rt-primary); flex: none; }
.rs-ipad-card b { font-size: .95em; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rs-ipad-card small { color: var(--rt-text-muted); font-size: .82em; }
.rs-ipad-card em {
    font-style: normal; font-size: .78em; background: var(--rt-primary); color: var(--rt-bg);
    border-radius: .5em; padding: .14em 0; text-align: center; font-weight: 700;
}
.rs-ipad-panel {
    background: rgba(216,216,216,.045); border: .08em solid var(--rt-border);
    border-radius: 1em; padding: .8em; display: grid; gap: .6em;
}
.rs-ipad-row { display: flex; align-items: center; justify-content: space-between; gap: .6em; font-size: .9em; }
.rs-ipad-row b { color: var(--rt-text); }
.rs-ipad-row span { color: var(--rt-text-muted); }
.rs-ipad-field { display: grid; gap: .25em; }
.rs-ipad-field i { font-style: normal; font-size: .8em; color: var(--rt-text-muted); }
.rs-ipad-field input {
    width: 100%; box-sizing: border-box; font: inherit; font-size: .9em;
    padding: .45em .7em; border-radius: .6em; direction: rtl;
    background: rgba(10,18,13,.65); border: .08em solid var(--rt-border); color: var(--rt-text);
}
.rs-ipad-field.is-error input { border-color: var(--rt-danger); }
.rs-ipad-field.is-ok input { border-color: var(--rt-primary); }
.rs-ipad-msg { font-size: .85em; padding: .45em .7em; border-radius: .6em; line-height: 1.5; }
.rs-ipad-msg.is-error { color: var(--rt-danger); background: rgba(217,130,130,.12); }
.rs-ipad-msg.is-ok { color: var(--rt-primary); background: rgba(95,169,142,.14); }
.rs-ipad-action {
    display: inline-flex; align-items: center; gap: .4em; justify-self: start;
    background: var(--rt-primary); color: var(--rt-bg); font-weight: 700;
    border-radius: .7em; padding: .35em 1em; font-size: .9em;
}
.rs-ipad-action .icon { width: 1.15em; height: 1.15em; }
.rs-ipad-cursor {
    position: absolute; z-index: 6; top: 62%; right: 34%;
    width: 1.4em; height: 1.4em; pointer-events: none;
    transition: top .9s var(--rt-ease), right .9s var(--rt-ease), opacity .4s;
    filter: drop-shadow(0 .2em .3em rgba(0,0,0,.6));
    opacity: 0;
}
.rs-ipad-cursor.is-visible { opacity: 1; }
.rs-ipad-cursor svg { width: 100%; height: 100%; fill: var(--rt-text); stroke: var(--rt-bg); stroke-width: 1.2; }
.rs-ipad-cursor.is-tap { animation: rs-ipad-tap .5s ease; }
@keyframes rs-ipad-tap { 50% { transform: scale(.72); } }
.rs-ipad-skeleton {
    height: 5.2em; border-radius: 1em;
    background: linear-gradient(90deg, rgba(216,216,216,.04), rgba(216,216,216,.11), rgba(216,216,216,.04));
    background-size: 200% 100%; animation: rs-shimmer 1.6s linear infinite;
}
@keyframes rs-shimmer { to { background-position: -200% 0; } }
.rs-ipad-notice {
    position: absolute; bottom: 10%; inset-inline-start: 4%;
    display: flex; align-items: center; gap: .6em;
    padding: .7em .95em; border-radius: 1em;
    background: rgba(16,29,20,.94); border: .08em solid var(--rt-border-primary);
    box-shadow: 0 1em 2em rgba(0,0,0,.45);
    color: var(--rt-text); font-size: 1em;
    opacity: 0; transform: translateY(1.6em);
    transition: opacity .7s var(--rt-ease) 3.2s, transform .7s var(--rt-ease) 3.2s;
}
.rs-revealed .rs-ipad-notice { opacity: 1; transform: translateY(0); }
.rs-ipad-notice .icon { width: 1.5em; height: 1.5em; color: var(--rt-success); flex: none; }
.rs-ipad-notice strong { display: block; font-size: 1em; }
.rs-ipad-notice small { display: block; color: var(--rt-text-muted); font-size: .85em; }

/* Screen content appears in stages */
.rs-ipad-ui > * { opacity: 0; transform: translateY(.8em); transition: opacity .8s ease, transform .8s var(--rt-ease); }
.rs-ipad-ui > *:nth-child(1) { transition-delay: 1.05s; }
.rs-ipad-ui > *:nth-child(2) { transition-delay: 1.25s; }
.rs-ipad-ui > *:nth-child(3) { transition-delay: 1.45s; }
.rs-ipad-ui > *:nth-child(3) { transition-delay: 1.65s; }
.rs-revealed .rs-ipad-ui > * { opacity: 1; transform: translateY(0); }

/* Lower supporting content */
.rs-hero-bottom {
    position: relative; z-index: 3;
    display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end;
    gap: 28px; width: 100%; max-width: 1100px;
    margin: clamp(28px, 5vh, 52px) 0 44px;
    opacity: 0; transform: translateY(24px);
    transition: opacity 1s ease 1.05s, transform 1.1s var(--rt-ease) 1.05s;
}
.rs-revealed .rs-hero-bottom { opacity: 1; transform: translateY(0); }
.rs-hero-bottom-copy { max-width: 56ch; }
.rs-hero-bottom-title { margin: 0 0 6px; font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; line-height: 1.3; }
.rs-hero-brand { display: flex; align-items: center; gap: 12px; margin-bottom: var(--rt-space-3); }
.rs-hero-brand img { width: 48px; height: auto; filter: drop-shadow(0 8px 18px rgba(46,125,91,.3)); }
.rs-hero-brand span { font-weight: var(--rt-fw-bold); letter-spacing: .12em; color: var(--rt-text); font-size: var(--rt-fs-lg); }
.rs-hero-desc { color: var(--rt-text-soft); font-size: var(--rt-fs-md); line-height: 1.9; margin: 0; }
.rs-hero-actions { display: flex; flex-wrap: wrap; gap: var(--rt-space-3); }
.rs-hero-actions .btn { min-height: 52px; }

/* Continuous Arabic ticker */
.rs-ticker {
    /* The track is a max-content flex row; in an RTL parent its static
       position starts from the right edge, which makes -50% run off the end.
       Keep the container LTR; each item stays RTL internally. */
    direction: ltr;
    position: relative; z-index: 4; width: 100%; overflow: hidden;
    border-top: 1px solid var(--rt-border);
    padding-block: var(--rt-space-4);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
    opacity: 0; transition: opacity 1s ease 1.2s;
}
.rs-revealed .rs-ticker { opacity: 1; }
.rs-ticker-track {
    display: flex; width: max-content; direction: ltr;
    will-change: transform;
    animation: rs-marquee var(--rs-marquee-duration, 32s) linear infinite;
    backface-visibility: hidden;
}
.rs-ticker-group { display: flex; flex: 0 0 auto; align-items: center; }
.rs-ticker-item {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 0 24px; direction: rtl;
    color: var(--rt-text-soft); font-size: var(--rt-fs-sm); font-weight: 500;
    white-space: nowrap;
}
.rs-ticker-item + .rs-ticker-item { border-inline-start: 1px solid var(--rt-border); }
.rs-ticker-icon {
    display: grid; place-items: center; width: 26px; height: 26px; flex: none;
    border-radius: 8px; border: 1px solid var(--rt-border);
    background: rgba(95,169,142,.10);
}
.rs-ticker-icon .icon { width: 15px; height: 15px; color: var(--rt-primary); }
@keyframes rs-marquee {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(-50%, 0, 0); }
}
/* ---------- 02 ORDER JOURNEY — editorial progress board ---------- */
.rs-journey {
    position: relative; overflow: hidden;
    padding-block: var(--rt-space-20);
    background:
        radial-gradient(900px 420px at 50% -12%, rgba(46,125,91,.11), transparent 70%),
        linear-gradient(180deg, #0A120D, #0E1A12 58%, #0A120D);
}
.rs-journey::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background-image:
        linear-gradient(rgba(216,216,216,.022) 1px, transparent 1px),
        linear-gradient(90deg, rgba(216,216,216,.022) 1px, transparent 1px);
    background-size: 72px 72px;
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 18%, #000 78%, transparent);
    mask-image: linear-gradient(180deg, transparent, #000 18%, #000 78%, transparent);
}
.rs-center-head { text-align: center; margin-bottom: var(--rt-space-12); }
.rs-center-head .section-label { justify-content: center; }
.rs-center-head p {
    color: var(--rt-text-muted); margin-top: var(--rt-space-3);
    max-width: 54ch; margin-inline: auto;
}

.rs-journey-legend {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
    margin-top: var(--rt-space-5);
}
.rs-journey-legend span {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 5px 12px; border-radius: var(--rt-radius-full);
    border: 1px solid var(--rt-border); background: rgba(216,216,216,.03);
    color: var(--rt-text-muted); font-size: var(--rt-fs-xs); font-weight: 600;
}
.rs-legend-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--rt-text-muted); flex: none; }
.rs-legend-dot.is-active { background: var(--rt-primary); }
.rs-legend-dot.is-complete { background: var(--rt-success); }

/* The board is the whole experience: a calm surface with one continuous rail */
.rs-journey-board {
    --rs-rail-x: 91px;
    position: relative;
    max-width: 1080px; margin-inline: auto;
    padding: var(--rt-space-4) var(--rt-space-6) var(--rt-space-5);
    border: 1px solid var(--rt-border);
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(19,37,26,.80), rgba(10,18,13,.94));
}
.rs-journey-board::before {
    content: ''; position: absolute; inset: 0 12% auto; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(95,169,142,.45), transparent);
}
.rs-journey-board-head {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 8px 6px var(--rt-space-5);
    border-bottom: 1px solid var(--rt-border);
}
.rs-journey-board-title {
    display: flex; align-items: center; gap: 9px;
    color: var(--rt-text); font-size: var(--rt-fs-sm); font-weight: var(--rt-fw-bold);
}
.rs-journey-board-title .icon { width: 16px; height: 16px; color: var(--rt-primary); }
.rs-journey-board-progress {
    display: flex; align-items: center; gap: 12px;
    color: var(--rt-text-muted); font-size: var(--rt-fs-xs); font-weight: 600;
}
.rs-journey-progress-track {
    display: block; width: 140px; height: 4px; border-radius: var(--rt-radius-full);
    background: rgba(216,216,216,.10); overflow: hidden;
}
.rs-journey-progress-track > span {
    display: block; height: 100%; width: 20%; border-radius: inherit;
    background: linear-gradient(90deg, #2E7D5B, #5FA98E);
    transition: width .8s var(--rt-ease);
}

.rs-journey-track {
    position: relative;
    display: flex; flex-direction: column; gap: 4px;
    padding-top: var(--rt-space-4);
}
.rs-journey-line {
    position: absolute; top: 46px; bottom: 46px;
    right: calc(var(--rs-rail-x) - 1px); width: 2px;
    background: rgba(216,216,216,.10); border-radius: var(--rt-radius-full);
    z-index: 0; overflow: hidden;
}
.rs-journey-line-fill {
    display: block; width: 100%; height: 0;
    background: linear-gradient(180deg, #2E7D5B, #5FA98E);
    border-radius: inherit; transition: height .8s var(--rt-ease);
}

.rs-journey-step {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: 44px 60px minmax(0, 1fr);
    align-items: center; column-gap: 6px;
    padding: 14px 6px;
    border: 1px solid transparent; border-radius: 16px;
    transition: border-color .4s var(--rt-ease), background .4s var(--rt-ease),
                transform .4s var(--rt-ease), opacity .4s var(--rt-ease);
}
.rs-step-index {
    text-align: center; font-size: 11px; letter-spacing: .18em;
    font-weight: 800; line-height: 1; color: var(--rt-text-muted);
}
.rs-journey-marker {
    position: relative; z-index: 2;
    display: grid; place-items: center; width: 60px; height: 60px;
}
.rs-journey-step .rs-step-icon {
    width: 56px; height: 56px; border-radius: 16px;
    display: grid; place-items: center;
    background: #0E1A12; border: 1px solid var(--rt-border);
    color: var(--rt-text-muted);
    transition: background .4s var(--rt-ease), border-color .4s var(--rt-ease), color .4s var(--rt-ease);
}
.rs-journey-step .rs-step-icon .icon { width: 24px; height: 24px; }
.rs-journey-step .rs-step-check { display: none; }

.rs-journey-body { direction: rtl; text-align: right; min-width: 0; padding-block: 2px; }
.rs-journey-step-top {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.rs-journey-step h3 {
    margin: 0; font-size: var(--rt-fs-lg); font-weight: var(--rt-fw-bold); line-height: 1.4;
}
.rs-journey-step p {
    margin: 5px 0 0; font-size: var(--rt-fs-sm); color: var(--rt-text-muted); line-height: 1.75;
}
.rs-step-state {
    display: none; flex: none;
    padding: 4px 11px; border-radius: var(--rt-radius-full);
    border: 1px solid var(--rt-border); background: rgba(10,18,13,.6);
    color: var(--rt-text-muted); font-size: 11px; font-weight: 700;
}

.rs-journey-step.is-pending { opacity: .48; }
.rs-journey-step.is-pending .rs-step-state[data-state="pending"] { display: inline-flex; }
.rs-journey-step.is-active {
    border-color: var(--rt-border-primary);
    background: linear-gradient(90deg, rgba(95,169,142,.02), rgba(95,169,142,.11));
    transform: translateX(-4px);
}
.rs-journey-step.is-active .rs-step-icon {
    background: rgba(95,169,142,.18); border-color: var(--rt-primary); color: var(--rt-text);
}
.rs-journey-step.is-active .rs-step-state[data-state="active"] {
    display: inline-flex; color: var(--rt-primary);
    border-color: var(--rt-border-primary); background: var(--rt-primary-soft);
}
.rs-journey-step.is-complete .rs-step-icon:not(.rs-step-check) { display: none; }
.rs-journey-step.is-complete .rs-step-check {
    display: grid; background: var(--rt-primary);
    border-color: var(--rt-primary); color: var(--rt-bg);
}
.rs-journey-step.is-complete .rs-step-state[data-state="done"] {
    display: inline-flex; color: var(--rt-success);
    border-color: rgba(111,199,155,.28); background: var(--rt-primary-soft);
}
.rs-journey-step.is-complete h3 { color: var(--rt-text-soft); }

.rs-journey-foot {
    display: flex; align-items: flex-start; gap: 10px;
    margin: var(--rt-space-4) 6px 0;
    padding: 12px 14px; border-radius: 12px;
    border: 1px solid var(--rt-border); background: rgba(216,216,216,.025);
    color: var(--rt-text-muted); font-size: var(--rt-fs-xs); line-height: 1.8;
}
.rs-journey-foot .icon { width: 17px; height: 17px; flex: none; color: var(--rt-primary); }
.rs-journey-foot p { margin: 0; }

/* ---------- 03 POLICIES — numbered editorial deck ---------- */
.rs-policies {
    position: relative; overflow: hidden;
    padding-block: var(--rt-space-20);
    background: linear-gradient(180deg, #0A120D, #0D1811 52%, #0A120D);
}
.rs-policies::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(760px 300px at 50% 0%, rgba(46,125,91,.09), transparent 72%);
}
.rs-policy-grid {
    --rs-policy-cols: 3;
    position: relative;
    display: grid;
    grid-template-columns: repeat(var(--rs-policy-cols), minmax(0, 1fr));
    gap: 16px;
    max-width: 1080px; margin-inline: auto;
}
.rs-policies .rs-policy-card {
    position: relative; overflow: hidden;
    display: flex; flex-direction: column; align-items: flex-start;
    min-height: 264px;
    padding: 28px;
    border: 1px solid var(--rt-border);
    border-radius: 22px;
    background: linear-gradient(160deg, rgba(19,37,26,.74), rgba(10,18,13,.94));
    transition: transform .4s var(--rt-ease), border-color .4s var(--rt-ease), background .4s var(--rt-ease);
}
.rs-policies .rs-policy-card::before {
    content: ''; position: absolute; top: 0; right: 28px; left: 28px; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(95,169,142,.55), transparent);
}
.rs-policies .rs-policy-card:hover {
    transform: translateY(-4px);
    border-color: var(--rt-border-primary);
    background: linear-gradient(160deg, rgba(19,37,26,.88), rgba(10,18,13,.96));
}
.rs-policy-no {
    position: absolute; top: 12px; left: 24px;
    font-size: 44px; font-weight: 800; line-height: 1;
    letter-spacing: -.04em;
    color: rgba(95,169,142,.13);
    pointer-events: none;
}
.rs-policy-icon {
    display: grid; place-items: center;
    width: 48px; height: 48px; border-radius: 14px;
    border: 1px solid var(--rt-border-primary);
    background: var(--rt-primary-soft);
    color: var(--rt-primary);
}
.rs-policy-icon .icon { width: 22px; height: 22px; }
.rs-policy-copy { margin-top: auto; padding-top: 34px; }
.rs-policy-copy h3 {
    margin: 0; font-size: var(--rt-fs-xl); font-weight: var(--rt-fw-bold); line-height: 1.4;
}
.rs-policy-copy p {
    margin: 10px 0 0; color: var(--rt-text-muted);
    font-size: var(--rt-fs-sm); line-height: 1.9;
}
.rs-policy-rule {
    position: absolute; bottom: 0; right: 28px;
    width: 0; height: 2px; border-radius: 2px;
    background: var(--rt-primary);
    transition: width .5s var(--rt-ease);
}
.rs-policies .rs-policy-card:hover .rs-policy-rule { width: 64px; }

/* ---------- 04 PAYMENT METHODS — large, direct logos ---------- */
/* ---------- 04 PAYMENT METHODS — curated logo board ---------- */
.rs-payments {
    position: relative; overflow: hidden;
    padding-block: var(--rt-space-20);
    background: linear-gradient(180deg, #0A120D, #0E1A12 55%, #0A120D);
}
.rs-payments::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(820px 320px at 50% 100%, rgba(46,125,91,.08), transparent 72%);
}
.rs-payment-board {
    --rs-pay-cols: 5;
    position: relative;
    max-width: 1080px; margin-inline: auto;
    border: 1px solid var(--rt-border);
    border-radius: 26px;
    background: linear-gradient(180deg, rgba(19,37,26,.76), rgba(10,18,13,.94));
    overflow: hidden;
}
.rs-payment-board-head {
    display: flex; align-items: center; gap: 10px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--rt-border);
    color: var(--rt-text); font-size: var(--rt-fs-sm); font-weight: var(--rt-fw-bold);
}
.rs-payment-board-head > .icon { width: 16px; height: 16px; color: var(--rt-primary); }
.rs-payment-board-tag {
    margin-inline-start: auto;
    padding: 4px 10px; border-radius: var(--rt-radius-full);
    border: 1px solid var(--rt-border); background: rgba(216,216,216,.03);
    color: var(--rt-text-muted); font-size: var(--rt-fs-xs); font-weight: 600;
}
.rs-payment-grid {
    display: grid;
    grid-template-columns: repeat(var(--rs-pay-cols), minmax(0, 1fr));
}
.rs-payment-card {
    position: relative;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 14px;
    min-height: 190px; padding: 24px 14px;
    border-inline-start: 1px solid var(--rt-border);
    transition: background .35s var(--rt-ease);
}
.rs-payment-card:first-child { border-inline-start: 0; }
.rs-payment-card::after {
    content: ''; position: absolute; right: 18px; left: 18px; bottom: 0;
    height: 2px; background: var(--rt-primary);
    transform: scaleX(0); transition: transform .4s var(--rt-ease);
}
.rs-payment-card:hover { background: rgba(95,169,142,.06); }
.rs-payment-card:hover::after { transform: scaleX(1); }
.rs-payment-logo-box { display: grid; place-items: center; width: 100%; height: 84px; }
.rs-payment-logo {
    display: block; height: 70px; width: auto; max-width: 86%;
    object-fit: contain; transition: transform .4s var(--rt-ease);
}
.rs-payment-logo.is-wide { height: 46px; max-width: 92%; }
.rs-payment-card:hover .rs-payment-logo { transform: translateY(-3px); }
.rs-payment-name {
    color: var(--rt-text); font-size: var(--rt-fs-sm);
    font-weight: var(--rt-fw-semibold); text-align: center;
}
.rs-payment-board-foot {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 20px;
    border-top: 1px solid var(--rt-border);
    color: var(--rt-text-muted); font-size: var(--rt-fs-xs);
}
.rs-payment-board-foot .icon { width: 14px; height: 14px; flex: none; color: var(--rt-primary); }
.rs-payment-board-foot p { margin: 0; }

/* Cart drawer styles are global in /css/cart-drawer.css */

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1100px) {
    .rs-hero-bottom { grid-template-columns: 1fr; gap: 22px; }
    .rs-hero-actions { justify-content: flex-start; }
    .rs-journey-track { gap: 6px; }
    .rs-payment-board { --rs-pay-cols: 3; }
}
@media (max-width: 820px) {
    .rs-journey-board { --rs-rail-x: 66px; padding-inline: var(--rt-space-4); border-radius: 22px; }
    .rs-journey-step { grid-template-columns: 32px 46px minmax(0, 1fr); column-gap: 4px; padding-inline: 2px; }
    .rs-journey-marker { width: 46px; height: 46px; }
    .rs-journey-step .rs-step-icon { width: 42px; height: 42px; border-radius: 13px; }
    .rs-journey-step .rs-step-icon .icon { width: 20px; height: 20px; }
    .rs-journey-step h3 { font-size: var(--rt-fs-base); }
    .rs-policy-grid { --rs-policy-cols: 1; max-width: 620px; gap: 12px; }
    .rs-payment-board { --rs-pay-cols: 2; border-radius: 22px; }
}
@media (max-width: 640px) {
    .rs-home-hero { min-height: auto; padding-top: calc(var(--rs-hero-nav-bottom, var(--rt-nav-height)) + var(--rt-space-6)); }
    .rs-ipad-frame { border-radius: 2.2em; padding: .7em; }
    .rs-ipad-screen { border-radius: 1.6em; }
    .rs-hero-bottom { margin-top: 32px; }
    .rs-hero-actions { flex-direction: column; }
    .rs-hero-actions .btn { width: 100%; }
    .rs-ticker-item { padding: 0 16px; }
    .rs-journey-board-head { gap: 8px; }
    .rs-journey-progress-track { width: 96px; }
    .rs-step-state { font-size: 10px; padding: 3px 8px; }
    .rs-policies .rs-policy-card { min-height: auto; padding: 22px; border-radius: 18px; }
    .rs-policy-no { top: 10px; left: 18px; font-size: 38px; }
    .rs-payment-board-head { padding: 12px 14px; }
    .rs-payment-card { min-height: 154px; padding: 18px 10px; gap: 10px; }
    .rs-payment-logo-box { height: 64px; }
    .rs-payment-logo { height: 54px; }
    .rs-payment-logo.is-wide { height: 38px; }
    .rs-payment-board-foot { padding: 10px 14px; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
    .rs-ipad-float, .rs-ipad-frame, .rs-ticker-track { animation: none; }
    .rs-hero-headline .line > span { transform: none; opacity: 1; }
    .rs-hero-bottom, .rs-hero-actions, .rs-ticker { opacity: 1; transform: none; }
    .rs-ipad { opacity: 1; transform: none; transition: none; }
    .rs-ipad-ui > * { opacity: 1; transform: none; transition: none; }
    .rs-ipad-notice, .rs-ipad-glow { opacity: 1; transform: none; transition: none; }
    .rs-ipad-stage > *, .rs-ipad-cursor { animation: none; transition: none; }
    .rs-journey-line-fill { transition: none; }
    .rs-journey-step.is-active { transform: none; }
}

/* ---------- 05 DISCORD COMMUNITY ---------- */
.rs-community {
    padding-block: var(--rt-space-20);
    background: linear-gradient(180deg, #0E1A12, #0A120D);
    border-top: 1px solid var(--rt-border);
}
.rs-community-grid {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
    gap: clamp(36px, 5vw, 80px);
    align-items: center;
}
.rs-community-copy .section-label { margin-bottom: var(--rt-space-4); }
.rs-community-copy .h2 { max-width: 16ch; line-height: 1.45; }
.rs-community-lead {
    margin: var(--rt-space-5) 0 0;
    max-width: 54ch;
    color: var(--rt-text-soft);
    font-size: var(--rt-fs-md);
    line-height: 1.95;
}
.rs-community-features {
    list-style: none;
    margin: var(--rt-space-8) 0 0;
    padding: 0;
    border-top: 1px solid var(--rt-border);
}
.rs-community-features li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: var(--rt-space-5) 0;
    border-bottom: 1px solid var(--rt-border);
}
.rs-community-features .rs-icon-box { flex: none; }
.rs-community-features h3 {
    margin: 0;
    font-size: var(--rt-fs-base);
    font-weight: var(--rt-fw-semibold);
}
.rs-community-features p {
    margin: 5px 0 0;
    color: var(--rt-text-muted);
    font-size: var(--rt-fs-sm);
    line-height: 1.8;
}
.rs-community-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-top: var(--rt-space-8);
}
.rs-community-join {
    transition: transform .3s var(--rt-ease), background-color .3s var(--rt-ease), border-color .3s var(--rt-ease);
}
.rs-community-join:hover { transform: translateY(-2px); }
.rs-community-join[aria-disabled="true"] { cursor: default; }
.rs-community-note {
    margin: 0;
    color: var(--rt-text-muted);
    font-size: var(--rt-fs-xs);
    line-height: 1.7;
}

/* Discord Widget — official iframe with real server data, or an honest state */
.rs-widget-shell {
    border: 1px solid var(--rt-border-strong);
    border-radius: var(--rt-radius-lg);
    background: #0C1710;
    overflow: hidden;
    transition: border-color .35s var(--rt-ease);
}
.rs-widget-shell:hover { border-color: var(--rt-border-primary); }
.rs-widget-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--rt-border);
    background: linear-gradient(180deg, rgba(95,169,142,.10), rgba(216,216,216,.02));
    color: var(--rt-text);
    font-size: var(--rt-fs-sm);
    font-weight: var(--rt-fw-semibold);
}
.rs-widget-mark {
    flex: none;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 9px;
    border: 1px solid var(--rt-border-primary);
    background: var(--rt-primary-soft);
    color: var(--rt-primary);
}
.rs-widget-mark .icon { width: 16px; height: 16px; }
.rs-widget-badge {
    margin-inline-start: auto;
    flex: none;
    padding: 4px 9px;
    border-radius: var(--rt-radius-full);
    border: 1px solid var(--rt-border);
    background: rgba(216,216,216,.04);
    color: var(--rt-text-muted);
    font-size: var(--rt-fs-xs);
    font-weight: 500;
}
.rs-widget-slot {
    width: 100%;
    min-height: 420px;
    display: grid;
    place-items: center;
    background: #23272A;
    overflow: hidden;
}
.rs-widget-slot iframe {
    display: block;
    width: 100%;
    height: 500px;
    max-width: 100%;
    border: 0;
    background: transparent;
}
.rs-community-caption {
    margin: var(--rt-space-3) 0 0;
    color: var(--rt-text-muted);
    font-size: var(--rt-fs-xs);
    line-height: 1.7;
}

@media (max-width: 1100px) {
    .rs-community-grid { grid-template-columns: 1fr; gap: var(--rt-space-10); }
    .rs-community-copy .h2 { max-width: 24ch; }
}
@media (max-width: 640px) {
    .rs-community-actions { align-items: stretch; }
    .rs-community-join { width: 100%; justify-content: center; }
    .rs-widget-head { padding: 10px 12px; }
    .rs-widget-slot { min-height: 380px; }
    .rs-widget-slot iframe { height: 460px; }
}
@media (max-width: 420px) {
    .rs-widget-badge { font-size: 11px; padding: 3px 7px; }
}
@media (prefers-reduced-motion: reduce) {
    .rs-widget-shell, .rs-community-join { transition: none; }
    .rs-community-join:hover { transform: none; }
}

/* Content must never stay hidden if the scroll observer never runs.
   The reveal still happens normally; this is only a visibility guarantee. */
@keyframes rs-ensure-visible { to { opacity: 1; transform: none; } }
.rs-community [data-reveal],
.rs-journey [data-reveal],
.rs-policies [data-reveal],
.rs-policies [data-stagger] > *,
.rs-payments [data-reveal],
.rs-payments [data-stagger] > * {
    animation: rs-ensure-visible .01s linear 2.4s forwards;
}
@media (prefers-reduced-motion: reduce) {
    .rs-community [data-reveal],
    .rs-journey [data-reveal],
    .rs-policies [data-reveal],
    .rs-policies [data-stagger] > *,
    .rs-payments [data-reveal],
    .rs-payments [data-stagger] > * { animation: none; opacity: 1; transform: none; }
}
