/*
 * Restora home — Liquid Glass layer.
 * Loaded after the inline styles in templates/index.html and overrides them.
 * Brand palette stays: #ff6b35 (orange), #ff8c42 (amber), #ffc14d (gold).
 */

:root {
    --rg-orange: #ff6b35;
    --rg-orange-deep: #e5531f;
    --rg-amber: #ff8c42;
    --rg-gold: #ffc14d;
    --rg-ink: #1d1d1f;
    --rg-ink-2: #48484d;
    --rg-ink-3: #6e6e73;
    --rg-canvas: #fbf6f2;
    --rg-radius-lg: 28px;
    --rg-radius-md: 22px;
    --rg-radius-sm: 14px;
    --rg-ease: cubic-bezier(0.22, 1, 0.36, 1);

    /* Liquid glass recipe */
    --rg-glass-fill: linear-gradient(150deg, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0.42) 100%);
    --rg-glass-edge: rgba(255, 255, 255, 0.85);
    --rg-glass-blur: blur(22px) saturate(180%);
    --rg-glass-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        inset 0 -1px 0 rgba(255, 255, 255, 0.35),
        inset 0 0 0 1px rgba(255, 255, 255, 0.25),
        0 1px 2px rgba(80, 35, 10, 0.05),
        0 18px 40px -18px rgba(120, 50, 15, 0.22);
}

/* ---------- Canvas ---------- */
body {
    background:
        radial-gradient(1100px 680px at 8% 4%, rgba(255, 140, 66, 0.16), transparent 60%),
        radial-gradient(900px 620px at 96% 30%, rgba(255, 193, 77, 0.14), transparent 60%),
        radial-gradient(900px 700px at 20% 70%, rgba(255, 107, 53, 0.10), transparent 60%),
        radial-gradient(800px 600px at 85% 92%, rgba(255, 140, 66, 0.12), transparent 60%),
        var(--rg-canvas) !important;
    color: var(--rg-ink);
    -webkit-font-smoothing: antialiased;
}
.lc-orb { opacity: 0.42; filter: blur(60px); }

/* Sections sit on the shared canvas so the glass has something to refract */
body .features,
body .pos-detail-section,
body .home-block,
body .home-block.alt,
body .dashboard-preview,
body .pricing {
    background: transparent !important;
}
body .features::before { display: none; }

/* ---------- Section headings (Apple-style: big, tight, no decoration) ---------- */
body .section-title { margin-bottom: 0; }
body .section-title h2,
body .dashboard-title h2 {
    font-size: clamp(1.9rem, 3.6vw, 2.9rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.025em;
    color: var(--rg-ink);
    margin-bottom: 0.6rem;
}
body[data-lang="ar"] .section-title h2,
body[data-lang="ar"] .dashboard-title h2 { letter-spacing: 0; }
body .section-title h2::after { display: none; }
body .section-title p,
body .dashboard-title p {
    font-size: clamp(1rem, 1.3vw, 1.15rem);
    color: var(--rg-ink-3);
    line-height: 1.6;
    max-width: 620px;
}

/* ---------- Header: floating liquid-glass bar ---------- */
body .header {
    top: 12px;
    left: 50%;
    width: min(1340px, calc(100% - 24px));
    transform: translateX(-50%);
    border-radius: 22px;
    padding: 0.35rem 0;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.32);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 10px 30px -12px rgba(120, 40, 0, 0.35);
    -webkit-backdrop-filter: blur(18px) saturate(170%);
    backdrop-filter: blur(18px) saturate(170%);
    transition: transform 0.45s var(--rg-ease), background 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
body .header.hidden { transform: translate(-50%, calc(-100% - 24px)); }
body .header.scrolled {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.85);
    box-shadow: var(--rg-glass-shadow);
    -webkit-backdrop-filter: var(--rg-glass-blur);
    backdrop-filter: var(--rg-glass-blur);
}
body .header .logo-container { left: 1.25rem !important; }
body .nav-menu { gap: 0.25rem; }
body .nav-link {
    height: 36px;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9rem;
}
body .nav-link::after { display: none; }
body .nav-link:hover {
    transform: none;
    background: rgba(255, 255, 255, 0.22);
}
body .nav-link.active { background: rgba(255, 255, 255, 0.26); color: #fff; }
body .header.scrolled .nav-link { color: var(--rg-ink-2); }
body .header.scrolled .nav-link:hover,
body .header.scrolled .nav-link.active {
    color: var(--rg-orange);
    background: rgba(255, 107, 53, 0.1);
}
body .auth-buttons { gap: 0.5rem; }

/* Header buttons: one filled primary, the rest quiet */
body .header .btn,
body .header .language-btn {
    border-radius: 999px;
    box-shadow: none;
}
body .header .btn::before { display: none; }
body .header .btn-signin,
body .header .language-btn {
    background: transparent;
    border: 1px solid transparent;
    color: #fff;
    padding: 0.5rem 0.95rem;
    font-weight: 600;
    font-size: 0.88rem;
}
body .header .btn-signin:hover,
body .header .language-btn:hover {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
    transform: none;
}
body .header .btn-header-start,
body .header.scrolled .btn-header-start {
    background: #fff;
    color: var(--rg-orange);
    border: 0;
    padding: 0.55rem 1.2rem;
    box-shadow: 0 6px 18px -8px rgba(80, 30, 0, 0.45);
}
body .header .btn-header-start:hover { transform: translateY(-1px); background: #fff; color: var(--rg-orange-deep); }
body .header.scrolled .btn-signin,
body .header.scrolled .language-btn { color: var(--rg-ink-2); }
body .header.scrolled .btn-signin:hover,
body .header.scrolled .language-btn:hover { background: rgba(255, 107, 53, 0.1); color: var(--rg-orange); }
body .header.scrolled .btn-header-start {
    background: linear-gradient(180deg, #ff7a47 0%, var(--rg-orange) 100%);
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 8px 20px -8px rgba(255, 107, 53, 0.7);
}
body .header.scrolled .btn-header-start:hover { color: #fff; background: linear-gradient(180deg, #ff6b35 0%, var(--rg-orange-deep) 100%); }
body .language-dropdown,
body .mobile-header-lang-dropdown {
    background: rgba(255, 255, 255, 0.78);
    -webkit-backdrop-filter: var(--rg-glass-blur);
    backdrop-filter: var(--rg-glass-blur);
    border: 1px solid var(--rg-glass-edge);
    border-radius: 16px;
    box-shadow: var(--rg-glass-shadow);
}
body .mobile-menu-toggle,
body .mobile-header-lang-btn {
    border-radius: 999px;
}

/* ---------- Hero: liquid orange ---------- */
body .hero {
    background:
        radial-gradient(900px 560px at 85% 10%, rgba(255, 193, 77, 0.55), transparent 60%),
        radial-gradient(760px 520px at 10% 95%, rgba(229, 83, 31, 0.65), transparent 60%),
        radial-gradient(600px 400px at 45% 45%, rgba(255, 140, 66, 0.55), transparent 70%),
        var(--rg-orange);
    border-radius: 0 0 clamp(28px, 4vw, 48px) clamp(28px, 4vw, 48px);
    padding-top: 7rem;
}
body .hero h1 {
    letter-spacing: -0.03em;
    line-height: 1.08;
}
body[data-lang="ar"] .hero h1 { letter-spacing: 0; line-height: 1.25; }
body .hero p { opacity: 0.92; }
body .hero-buttons .btn {
    border-radius: 999px;
    padding: 0.85rem 1.6rem;
    font-weight: 700;
}
body .hero-buttons .btn::before { display: none; }
body .hero-buttons .btn-trial {
    background: #fff;
    color: var(--rg-orange);
    border: 0;
    box-shadow: 0 10px 28px -10px rgba(70, 20, 0, 0.55);
}
body .hero-buttons .btn-trial:hover { background: #fff; color: var(--rg-orange-deep); transform: translateY(-2px); }
body .hero-buttons .btn-ghost {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    backdrop-filter: blur(14px) saturate(160%);
}
body .hero-buttons .btn-ghost:hover { background: rgba(255, 255, 255, 0.28); color: #fff; }

/* ---------- Shared glass surface ---------- */
body .rg-tile,
body .how-card,
body .audience-card,
body .home-faq details,
body .pos-detail-copy {
    position: relative;
    background: var(--rg-glass-fill) !important;
    border: 1px solid var(--rg-glass-edge) !important;
    box-shadow: var(--rg-glass-shadow);
    -webkit-backdrop-filter: var(--rg-glass-blur);
    backdrop-filter: var(--rg-glass-blur);
}
/* Specular sheen along the top edge */
body .rg-tile::before,
body .how-card::before,
body .audience-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 38%);
    pointer-events: none;
    z-index: 0;
}
body .how-card::after,
body .audience-card::after { display: none; }
body .rg-tile > *,
body .how-card > *,
body .audience-card > * { position: relative; z-index: 1; }

/* ---------- Features: bento ---------- */
body .rg-features { padding: clamp(4rem, 7vw, 6rem) 0 clamp(2.5rem, 5vw, 4rem); }
body .rg-features .container { max-width: 1240px; }
.rg-bento {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: minmax(0, auto);
    gap: 16px;
    margin-top: clamp(2rem, 4vw, 3rem);
}
.rg-tile {
    border-radius: var(--rg-radius-md);
    padding: 1.5rem 1.5rem 1.6rem;
    overflow: hidden;
    transition: transform 0.5s var(--rg-ease), box-shadow 0.5s var(--rg-ease);
}
.rg-tile:hover {
    transform: translateY(-3px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        inset 0 -1px 0 rgba(255, 255, 255, 0.35),
        0 1px 2px rgba(80, 35, 10, 0.05),
        0 26px 50px -20px rgba(120, 50, 15, 0.3);
}
.rg-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    color: var(--rg-orange);
    font-size: 1.1rem;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.95), rgba(255, 236, 224, 0.7));
    border: 1px solid rgba(255, 255, 255, 0.95);
    box-shadow: inset 0 -1px 0 rgba(255, 107, 53, 0.12), 0 6px 14px -6px rgba(255, 107, 53, 0.45);
    margin-bottom: 1rem;
    flex-shrink: 0;
}
.rg-tile h3 {
    font-size: 1.12rem;
    font-weight: 800;
    color: var(--rg-ink);
    letter-spacing: -0.01em;
    margin: 0 0 0.4rem;
    line-height: 1.3;
}
.rg-tile p {
    font-size: 0.93rem;
    color: var(--rg-ink-3);
    line-height: 1.6;
    margin: 0;
}

/* Standard tiles: icon on top, copy anchored to the bottom (bento rhythm) */
.rg-tile:not(.rg-tile--hero):not(.rg-tile--row) {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.rg-tile:not(.rg-tile--hero):not(.rg-tile--row) h3 { margin-top: auto; }

/* Hero tile: POS, spans 2×2 with the product shot */
.rg-tile--hero {
    grid-column: span 2;
    grid-row: span 2;
    display: flex;
    flex-direction: column;
    padding: 2rem 2rem 0;
    background:
        radial-gradient(420px 260px at 85% 100%, rgba(255, 140, 66, 0.28), transparent 70%),
        var(--rg-glass-fill) !important;
}
.rg-tile--hero h3 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); letter-spacing: -0.02em; }
.rg-tile--hero p { font-size: 1rem; max-width: 42ch; }
.rg-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.9rem;
    color: var(--rg-orange);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
}
.rg-link::after { content: '›'; font-size: 1.25em; line-height: 1; transition: transform 0.3s var(--rg-ease); }
body[data-lang="ar"] .rg-link::after { content: '‹'; }
.rg-link:hover::after { transform: translateX(3px); }
body[data-lang="ar"] .rg-link:hover::after { transform: translateX(-3px); }
.rg-tile-media {
    margin: 1.4rem -0.5rem 0;
    flex: 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.rg-tile-media img {
    display: block;
    width: 100%;
    max-width: 430px;
    height: auto;
    filter: drop-shadow(0 22px 30px rgba(90, 40, 10, 0.22));
    transform: translateY(8%);
    transition: transform 0.7s var(--rg-ease);
}
.rg-tile--hero:hover .rg-tile-media img { transform: translateY(5%); }

/* Compact row tiles: icon beside text */
.rg-tile--row {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 1.2rem 1.25rem;
}
.rg-tile--row .rg-icon { margin-bottom: 0; width: 40px; height: 40px; border-radius: 12px; font-size: 1rem; }
.rg-tile--row h3 { font-size: 1rem; margin-bottom: 0.25rem; }
.rg-tile--row p { font-size: 0.87rem; line-height: 1.5; }

/* ---------- POS detail ---------- */
body .pos-detail-section { padding: clamp(2rem, 4vw, 3rem) 0 clamp(3.5rem, 6vw, 5rem); }
body .pos-detail { max-width: 1240px; gap: clamp(1.5rem, 3vw, 2.5rem); }
body .pos-detail-copy {
    border-radius: var(--rg-radius-lg);
    padding: clamp(1.6rem, 3vw, 2.4rem);
}
body .pos-detail-kicker {
    background: rgba(255, 107, 53, 0.1);
    color: var(--rg-orange);
}
body .pos-detail-copy h2 { color: var(--rg-ink); letter-spacing: -0.02em; font-size: clamp(1.7rem, 3vw, 2.4rem); }
body[data-lang="ar"] .pos-detail-copy h2 { letter-spacing: 0; }
body .pos-detail-copy li { color: var(--rg-ink-2); font-size: 0.97rem; }
body .pos-detail-copy li::before {
    background: linear-gradient(160deg, var(--rg-amber), var(--rg-orange));
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.14);
}
body .pos-detail-copy .btn,
body .cta .btn,
body .pricing .btn-primary {
    border-radius: 999px;
}
body .pos-detail-copy .btn-primary {
    background: linear-gradient(180deg, #ff7a47 0%, var(--rg-orange) 100%);
    border: 0;
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 10px 24px -10px rgba(255, 107, 53, 0.75);
}
body .pos-detail-copy .btn::before { display: none; }
body .pos-shot {
    border-radius: var(--rg-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.9);
    padding: 8px;
    background: var(--rg-glass-fill);
    box-shadow: var(--rg-glass-shadow);
}
body .pos-shot img { border-radius: calc(var(--rg-radius-lg) - 8px); }

/* ---------- How it works: glass on orange ---------- */
body .home-block.how-orange {
    background:
        radial-gradient(700px 420px at 90% 0%, rgba(255, 193, 77, 0.5), transparent 65%),
        radial-gradient(700px 420px at 0% 100%, rgba(229, 83, 31, 0.6), transparent 65%),
        var(--rg-orange) !important;
    border-radius: clamp(28px, 4vw, 48px);
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: clamp(3rem, 5vw, 4.2rem) 0;
}
body .home-block.how-orange .section-title h2 { color: #fff; }
body .home-block.how-orange .section-title p { color: rgba(255, 255, 255, 0.85); }
body .how-grid {
    gap: 14px;
    max-width: 1120px;
    padding: 0 clamp(1rem, 3vw, 2rem);
}
body .home-block.how-orange .how-card {
    background: linear-gradient(150deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.1)) !important;
    border: 1px solid rgba(255, 255, 255, 0.45) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 18px 36px -20px rgba(90, 25, 0, 0.55);
    border-radius: var(--rg-radius-md);
    padding: 1.4rem 1.3rem;
}
body .home-block.how-orange .how-card::before {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 45%);
}
body .home-block.how-orange .how-card h3 { color: #fff; font-size: 1.05rem; }
body .home-block.how-orange .how-card p { color: rgba(255, 255, 255, 0.85); }
body .home-block.how-orange .how-num {
    width: 2.2rem;
    height: 2.2rem;
    background: #fff;
    color: var(--rg-orange);
    box-shadow: 0 6px 14px -6px rgba(70, 20, 0, 0.5);
    margin-bottom: 0.9rem;
}

/* ---------- Audience ---------- */
body .home-block { padding: clamp(3.5rem, 6vw, 5rem) 0; }
body .audience-grid { gap: 14px; max-width: 1120px; }
body .audience-card {
    border-radius: var(--rg-radius-md);
    padding: 1.4rem 1.4rem;
}
body .audience-card h3 { color: var(--rg-ink); font-size: 1.05rem; }
body .audience-card p { color: var(--rg-ink-3); }

/* ---------- Loyalty block: rounded floating panel ---------- */
body .loyalty-najma {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    border-radius: clamp(28px, 4vw, 48px);
}

/* ---------- Dashboard preview ---------- */
body .dashboard-preview { padding-top: clamp(3.5rem, 6vw, 5rem); }
body .annotation-tip {
    background: rgba(255, 255, 255, 0.7);
    color: var(--rg-orange);
    border: 1px solid var(--rg-glass-edge);
    -webkit-backdrop-filter: var(--rg-glass-blur);
    backdrop-filter: var(--rg-glass-blur);
    box-shadow: var(--rg-glass-shadow);
    border-radius: 999px;
}

/* ---------- FAQ ---------- */
body .home-faq details {
    border-radius: 18px;
    padding: 0.1rem 1.15rem;
    margin-bottom: 10px;
}
body .home-faq summary { color: var(--rg-ink); }
body .home-faq .faq-a { color: var(--rg-ink-2); }

/* ---------- Pricing (no backdrop-filter: cards use a 3D flip) ---------- */
body .pricing-card {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.66)) !important;
    border: 1px solid rgba(255, 255, 255, 0.95) !important;
    border-radius: var(--rg-radius-md);
    box-shadow: var(--rg-glass-shadow);
}
body .pricing-card.featured {
    border: 1.5px solid rgba(255, 107, 53, 0.55) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        0 24px 50px -22px rgba(255, 107, 53, 0.55);
}

/* ---------- CTA ---------- */
body .cta {
    width: min(1240px, calc(100% - 32px));
    margin: clamp(1rem, 3vw, 2rem) auto clamp(2rem, 4vw, 3rem);
    border-radius: clamp(28px, 4vw, 48px);
    background:
        radial-gradient(700px 400px at 85% 0%, rgba(255, 193, 77, 0.55), transparent 65%),
        radial-gradient(600px 380px at 10% 100%, rgba(229, 83, 31, 0.6), transparent 65%),
        var(--rg-orange);
    padding: clamp(3rem, 6vw, 4.5rem) 1.5rem;
}
body .cta .btn::before { display: none; }
body .cta .btn-primary {
    background: #fff;
    color: var(--rg-orange);
    border: 0;
    box-shadow: 0 10px 26px -10px rgba(70, 20, 0, 0.55);
}
body .cta .btn-outline {
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    backdrop-filter: blur(14px) saturate(160%);
}
body .cta .btn-outline:hover { background: rgba(255, 255, 255, 0.28); color: #fff; }

/* ---------- Floating buttons ---------- */
body .scroll-to-top {
    background: rgba(255, 107, 53, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 10px 24px -8px rgba(255, 107, 53, 0.7);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
    backdrop-filter: blur(12px) saturate(160%);
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .rg-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rg-tile--hero { grid-column: span 2; grid-row: auto; }
    .rg-tile-media img { max-width: 480px; }
}
@media (max-width: 1199px) {
    body .header { padding: 0.25rem 0; }
}
@media (max-width: 640px) {
    .rg-bento { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .rg-tile--hero { grid-column: auto; padding: 1.5rem 1.4rem 0; }
    /* Compact rows on phones: icon beside the copy */
    .rg-tile:not(.rg-tile--hero):not(.rg-tile--row) {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        column-gap: 0.9rem;
        align-items: start;
    }
    .rg-tile:not(.rg-tile--hero) { padding: 1.1rem 1.15rem; border-radius: 20px; }
    .rg-tile:not(.rg-tile--hero) .rg-icon {
        grid-row: span 2;
        margin-bottom: 0;
        width: 40px;
        height: 40px;
        border-radius: 12px;
        font-size: 1rem;
    }
    .rg-tile:not(.rg-tile--hero):not(.rg-tile--row) h3 { margin-top: 0; }
    .rg-tile h3 { font-size: 1.02rem; margin-bottom: 0.2rem; }
    .rg-tile p { font-size: 0.88rem; line-height: 1.5; }
    .rg-tile-media img { max-width: 100%; }

    body .how-grid { padding: 0; gap: 10px; }
    body .home-block.how-orange .how-card {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        column-gap: 0.85rem;
        align-items: start;
        padding: 1rem 1.1rem;
        border-radius: 18px;
    }
    body .home-block.how-orange .how-num { grid-row: span 2; margin-bottom: 0; }
    body .home-block.how-orange .how-card h3 { margin-bottom: 0.15rem; }
    body .audience-card { padding: 1.1rem 1.15rem; border-radius: 18px; }
    body .header {
        top: 8px;
        width: calc(100% - 16px);
        border-radius: 18px;
    }
    body .hero { padding-top: 6rem; }
    body .home-block.how-orange,
    body .loyalty-najma,
    body .cta { width: calc(100% - 16px); border-radius: 28px; }
}

/* Browsers without backdrop-filter: lean on opaque fills */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    body .rg-tile,
    body .how-card,
    body .audience-card,
    body .home-faq details,
    body .pos-detail-copy,
    body .header.scrolled {
        background: rgba(255, 255, 255, 0.94) !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rg-tile,
    .rg-tile-media img,
    body .header { transition: none; }
    .rg-tile:hover { transform: none; }
}

/* FAQ: the question is one flex item so inline "Restora" spans don't get spread apart */
body .home-faq summary .faq-q { flex: 1 1 auto; min-width: 0; }

/* Dashboard iPad slider: crossfade stacked slides instead of a sliding strip.
   The strip broke in RTL (reversed order, empty frames) and showed half-cut
   slides mid-transition. */
body .ipad-slider-track {
    width: 100%;
    transform: none !important;
    transition: none;
    display: block;
}
body .ipad-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.9s var(--rg-ease), visibility 0s linear 0.9s;
}
body .ipad-slide.is-active {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.9s var(--rg-ease), visibility 0s;
}
@media (prefers-reduced-motion: reduce) {
    body .ipad-slide { transition: none; }
}
