/* =============================================================
 * Sanid Advanced Reports page (index.html is built by marketing/source/reports-page.js)
 * Day theme by default; html[data-theme="dark"] for night. Language: html[lang] (ui.css).
 * ============================================================= */
:root {
    --page: #f5f7fb; --surface: #ffffff; --surface-2: #eef1f6; --line: rgba(15, 23, 42, .09);
    --text: #0f172a; --text-2: #475569; --text-3: #556274;
    --accent: linear-gradient(135deg, #2563EB, #0284c7); --accent-solid: #1d4ed8; --accent-soft: rgba(37, 99, 235, .10);
    --shadow: 0 30px 60px rgba(15, 23, 42, .18), 0 8px 18px rgba(15, 23, 42, .10);
    --hex-l: rgba(255, 255, 255, .95); --hex-d: rgba(15, 23, 42, .07); --hex-base: #eceef2;
}
html[data-theme="dark"] {
    --page: #060913; --surface: #0e1527; --surface-2: #141d33; --line: rgba(255, 255, 255, .08);
    --text: #ffffff; --text-2: #a8b3c7; --text-3: #7f8ba3; --accent-solid: #60a5fa; --accent-soft: rgba(96, 165, 250, .12);
    --shadow: 0 30px 60px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .06);
    --hex-l: rgba(255, 255, 255, .05); --hex-d: rgba(0, 0, 0, .55); --hex-base: #0a1020;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Tajawal', sans-serif; background: var(--page); color: var(--text); line-height: 1.65; transition: background .3s, color .3s; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 16px; }

/* ---------- top bar: logo, language, theme ---------- */
.rp-top { position: absolute; top: 0; inset-inline: 0; z-index: 20; padding: 16px 0; }
.rp-top .wrap { display: flex; align-items: center; justify-content: space-between; }
.rp-brand { display: flex; align-items: center; gap: 10px; font: 800 1.2rem 'Tajawal'; white-space: nowrap; }
.rp-brand img { height: 34px; width: auto; }
.rp-actions { display: flex; gap: 8px; }
.logo-on-dark { display: none; }
html[data-theme="dark"] .logo-on-dark { display: block; }
html[data-theme="dark"] .logo-on-light { display: none; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; font: 800 1rem 'Tajawal'; padding: 12px 22px; border: 0; cursor: pointer; white-space: nowrap; transition: transform .15s; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 22px rgba(37, 99, 235, .35); }
.btn-dark { background: #0d1117; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
html[data-theme="dark"] .btn-dark { background: #161f35; }
.btn:hover { transform: translateY(-2px); }

/* ---------- hero (same family as the Sanid page) ---------- */
.hexbg { background-color: var(--hex-base); background-image: radial-gradient(ellipse at 50% 40%, transparent 30%, var(--page) 100%), var(--hex, none); background-size: 100% 100%, 168px 291px; }
.r-hero { padding: 96px 0 36px; overflow: hidden; }
.r-grid { display: grid; grid-template-columns: 1fr minmax(0, 620px) 1fr; align-items: center; gap: 24px; }
.r-word { display: grid; gap: 6px; }
.r-word h1 { display: grid; gap: 6px; font-weight: inherit; }
.r-word.end { justify-items: end; text-align: end; }
.r-eyebrow { color: var(--text-2); font: 500 1.02rem 'Tajawal'; white-space: nowrap; }
.r-big { font-weight: 900; line-height: .95; white-space: nowrap; color: var(--text); }
.r-big .lat { font: 900 clamp(3.2rem, 7vw, 7rem)/.95 'Outfit'; letter-spacing: -.04em; }
.r-big .ara { font: 900 clamp(3.8rem, 8.4vw, 8.4rem)/.95 'Tajawal'; }
.r-sub { color: var(--text-2); font-size: .95rem; margin-top: 4px; white-space: nowrap; }
.r-ctas { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.r-word.end .r-ctas { justify-content: flex-end; }
.quote { text-align: center; color: var(--text-2); max-width: 780px; margin: 30px auto 0; font-size: 1.08rem; }
.quote strong { color: var(--text); }
.facts { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 16px; list-style: none; }
.facts li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-weight: 800; font-size: .88rem; white-space: nowrap; }
.facts b { color: var(--accent-solid); font-family: 'Outfit'; }

/* ---------- devices: laptop + a thin silver phone ---------- */
.device { position: relative; padding-inline-end: 12%; padding-bottom: 5%; }
.lt-lid { background: #0b0f19; border-radius: 16px 16px 6px 6px; padding: 9px 9px 11px; box-shadow: var(--shadow); }
html[data-theme="dark"] .lt-lid { box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, .12); }
.lt-bar { display: flex; align-items: center; gap: 6px; background: #e9edf3; border-radius: 8px 8px 0 0; padding: 6px 10px; direction: ltr; }
.lt-bar i { width: 9px; height: 9px; border-radius: 50%; background: #ff5f57; }
.lt-bar i:nth-child(2) { background: #febc2e; } .lt-bar i:nth-child(3) { background: #28c840; }
.lt-bar span { margin-inline-start: 10px; font: 600 .74rem 'Outfit'; color: #475569; background: #fff; border-radius: 6px; padding: 2px 10px; flex: 1; max-width: 340px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.lt-screen { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #fff; border-radius: 0 0 6px 6px; }
.lt-screen img { width: 100%; height: 100%; object-fit: cover; transition: opacity .28s; }
.lt-base { height: 13px; margin: 0 -4%; background: linear-gradient(#cfd5de, #9aa3b2); border-radius: 0 0 16px 16px; position: relative; }
.lt-base::after { content: ""; position: absolute; left: 50%; top: 0; width: 16%; height: 6px; transform: translateX(-50%); background: #8b93a1; border-radius: 0 0 8px 8px; }
html[data-theme="dark"] .lt-base { background: linear-gradient(#3a4256, #1f2638); }
.phone { position: absolute; inset-inline-end: 0; bottom: 0; width: 21%; z-index: 3; transition: opacity .3s, transform .3s; }
/* إطار فضي لامع ونحيف، بنسبة هاتف حديث (≈ 9:19) */
.ph-frame {
    padding: 3px; border-radius: 30px;
    background: linear-gradient(140deg, #f4f6f8 0%, #b9c0c8 22%, #eef1f4 45%, #9ea6b0 70%, #e6e9ed 100%);
    box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, .7);
}
.ph-screen { aspect-ratio: 540 / 1125; border-radius: 27px; overflow: hidden; background: #0b0f19; position: relative; border: 3px solid #0b0f19; }
.ph-screen::before { content: ""; position: absolute; top: 7px; left: 50%; width: 26%; height: 14px; transform: translateX(-50%); background: #0b0f19; border-radius: 10px; z-index: 1; }
.ph-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 23px; transition: opacity .28s; }
.fade { opacity: 0 !important; }

/* ---------- works with ---------- */
.works { padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.works .wrap { display: flex; align-items: center; justify-content: center; gap: 12px 28px; flex-wrap: wrap; }
.works small { color: var(--text-3); font-weight: 700; }
.works b { font: 800 1.05rem 'Outfit'; white-space: nowrap; }
.works em { font-style: normal; color: var(--text-3); font-size: .85rem; }

/* ---------- sections ---------- */
.r-sec { padding: 64px 0 20px; }
.r-head { text-align: center; max-width: 780px; margin: 0 auto 28px; }
.r-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 900; line-height: 1.2; }
.r-head h2 em { font-style: normal; color: var(--accent-solid); }
.r-head p { color: var(--text-2); margin-top: 6px; }

/* ---------- tour: menu and screen are one block (they scroll together) ---------- */
.show { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 26px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: 26px; padding: 18px; }
.side { display: grid; gap: 2px; }
.side .co { display: flex; align-items: center; gap: 8px; padding: 6px 10px 12px; margin-bottom: 6px; border-bottom: 1px solid var(--line); font-weight: 900; white-space: nowrap; overflow: hidden; }
.side .co i { width: 10px; height: 10px; border-radius: 50%; background: #16a34a; flex-shrink: 0; }
.side button { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: transparent; color: var(--text-2); font: 700 .93rem 'Tajawal'; padding: 8px 10px; border-radius: 12px; cursor: pointer; text-align: start; white-space: nowrap; }
.side button .ic { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--surface-2); flex-shrink: 0; font-size: .95rem; }
.side button:hover { background: var(--surface-2); color: var(--text); }
.side button[aria-selected="true"] { background: var(--accent-soft); color: var(--accent-solid); }
.side button[aria-selected="true"] .ic { background: var(--accent); color: #fff; }
.stage { min-width: 0; }
.stage-top { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 12px; margin-bottom: 10px; flex-wrap: wrap; }
.stage-top h3 { font-size: 1.3rem; font-weight: 900; white-space: nowrap; }
.stage-top .who { color: var(--text-3); font-size: .85rem; font-weight: 700; white-space: nowrap; }
.stage-top p { color: var(--text-2); font-size: .95rem; flex-basis: 100%; }
.spots { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.spot { position: absolute; border: 2px solid transparent; border-radius: 10px; transition: border-color .25s, box-shadow .25s; pointer-events: none; }
.spot.on { border-color: #2563EB; background: rgba(37, 99, 235, .06); box-shadow: 0 0 0 4000px rgba(15, 23, 42, .16); }
.pin { position: absolute; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #2563EB; border: 2px solid #2563EB; font: 800 .8rem 'Outfit'; cursor: pointer; transform: translate(-40%, -40%); transition: transform .2s, background .2s, color .2s; z-index: 2; }
.pin.on, .pin:hover { background: #2563EB; color: #fff; transform: translate(-40%, -40%) scale(1.12); }
.explain { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; margin-top: 14px; background: var(--page); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; min-height: 74px; }
.explain b.n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #2563EB; color: #fff; font: 800 .85rem 'Outfit'; }
.explain h4 { font-size: 1rem; font-weight: 900; line-height: 1.3; }
.explain p { color: var(--text-2); font-size: .9rem; }
.ctl { display: flex; align-items: center; gap: 6px; }
.ctl i { width: 22px; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; position: relative; }
.ctl i.on { background: var(--accent-solid); }
.ctl i.run::after { content: ""; position: absolute; inset: 0; background: var(--accent-solid); transform-origin: left; animation: prog 3.6s linear forwards; }
html[dir="rtl"] .ctl i.run::after { transform-origin: right; }
@keyframes prog { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.ctl button { border: 0; background: var(--surface-2); color: var(--text); width: 30px; height: 30px; border-radius: 50%; cursor: pointer; font-size: .8rem; }
.keys-wrap { margin-top: 16px; }
.keys-wrap small { display: block; color: var(--text-3); font-weight: 800; margin-bottom: 6px; }
.keys { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 16px; }
.keys li button { width: 100%; display: flex; gap: 8px; align-items: baseline; border: 0; background: transparent; color: var(--text); cursor: pointer; text-align: start; padding: 6px 8px; border-radius: 10px; font: 800 .92rem 'Tajawal'; min-width: 0; }
.keys li button[disabled] { cursor: default; }
.keys li button > b { white-space: nowrap; }
.keys li button > span { color: var(--text-2); font-weight: 500; font-size: .86rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.keys li button:not([disabled]):hover, .keys li button[aria-pressed="true"] { background: var(--accent-soft); }
.keys li button[aria-pressed="true"] > b { color: var(--accent-solid); }
.langnote { margin-top: 14px; color: var(--text-3); font-size: .86rem; text-align: center; }

/* ---------- platform ---------- */
.feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feat { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; }
.feat .ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-soft); font-size: 1.1rem; }
.feat h3 { font-size: 1.02rem; font-weight: 900; line-height: 1.3; }
.feat p { grid-column: 1 / -1; color: var(--text-2); font-size: .9rem; margin-top: 8px; }

/* ---------- customer voices (from marketing/customer-voices.html) ---------- */
.r-kicker { display: block; color: var(--accent-solid); font-weight: 800; font-size: .95rem; margin-bottom: 6px; white-space: nowrap; }
.v-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 18px; }
.v-filters button { font: 700 .92rem 'Tajawal'; white-space: nowrap; cursor: pointer; border: 1px solid var(--line); background: var(--surface); color: var(--text); padding: 7px 16px; border-radius: 999px; }
.v-filters button[aria-pressed="true"] { background: var(--accent-solid); border-color: var(--accent-solid); color: #fff; }
html[data-theme="dark"] .v-filters button[aria-pressed="true"] { color: #06101f; }
.v-filters button:focus-visible { outline: 2px solid var(--accent-solid); outline-offset: 2px; }
.v-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.v-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.v-card[hidden] { display: none; }
.v-card.wide { grid-column: 1 / -1; }
.v-body { display: grid; grid-template-columns: 1.4fr 1fr; gap: 26px; align-items: start; }
.v-side { display: flex; flex-direction: column; gap: 14px; }
.v-who { display: flex; align-items: center; gap: 14px; }
.v-av { flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font: 800 1.05rem 'Tajawal'; color: #fff; }
.v-name { font-weight: 900; font-size: 1.08rem; white-space: nowrap; }
.v-role { color: var(--text-3); font-size: .9rem; }
.v-card blockquote p { margin-bottom: 8px; color: var(--text-2); }
.v-card blockquote .pull { font-weight: 800; font-size: clamp(1.08rem, 1.8vw, 1.25rem); line-height: 1.55; color: var(--text); }
.v-card blockquote .pull::before { content: "“"; color: var(--accent-solid); }
.v-card blockquote .pull::after { content: "”"; color: var(--accent-solid); }
html[lang="ar"] .v-card blockquote .pull::before { content: "«"; }
html[lang="ar"] .v-card blockquote .pull::after { content: "»"; }
.gain { background: var(--accent-soft); border-radius: 14px; padding: 12px 14px; }
.gain strong { display: block; font-size: .9rem; color: var(--accent-solid); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; }
.tags li { font-size: .8rem; white-space: nowrap; border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; color: var(--text-3); }
.v-note { text-align: center; color: var(--text-3); font-size: .85rem; margin-top: 14px; }

/* ---------- book a demo (same form as sanid.html #booking) ---------- */
.demo { display: grid; grid-template-columns: 1fr minmax(0, 520px); gap: 32px; align-items: center; }
.demo-info h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); font-weight: 900; line-height: 1.25; }
.demo-info h2 em { font-style: normal; color: var(--accent-solid); }
.demo-info .r-ctas { margin-top: 22px; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: 26px; padding: 32px; box-shadow: var(--shadow); }
.form-card[hidden] { display: none; }
.form-card h3 { font-size: clamp(1.1rem, 4.6vw, 1.45rem); white-space: nowrap; font-weight: 900; text-align: center; margin-bottom: 6px; }
.form-card .card-header p { font-size: .9rem; color: var(--text-2); text-align: center; margin-bottom: 24px; }
#demo-form { display: flex; flex-direction: column; gap: 18px; }
.input-group { display: flex; flex-direction: column; gap: 7px; }
.input-group label { font-size: .88rem; font-weight: 700; }
.input-wrapper { position: relative; }
.input-icon { position: absolute; top: 50%; inset-inline-start: 15px; transform: translateY(-50%); font-size: 1.05rem; pointer-events: none; }
.input-wrapper:has(textarea) .input-icon { top: 16px; transform: none; }
.input-wrapper input, .input-wrapper select, .input-wrapper textarea {
    width: 100%; background: var(--page); border: 1px solid var(--line); border-radius: 12px; color: var(--text);
    padding: 13px 16px; padding-inline-start: 44px; font: 500 .95rem 'Tajawal'; transition: border-color .15s, box-shadow .15s;
}
.input-wrapper input::placeholder, .input-wrapper textarea::placeholder { color: var(--text-3); }
.input-wrapper select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-inline-end: 40px;
    background-image: url("data:image/svg+xml;utf8,<svg fill='%2364748b' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat; background-position: left 12px center; }
html[dir="ltr"] .input-wrapper select { background-position: right 12px center; }
.input-wrapper textarea { resize: vertical; min-height: 84px; }
.input-wrapper input:focus, .input-wrapper select:focus, .input-wrapper textarea:focus { border-color: var(--accent-solid); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.error-message { display: none; font-size: .8rem; font-weight: 700; color: #dc2626; }
html[data-theme="dark"] .error-message { color: #f87171; }
.input-group.invalid input, .input-group.invalid select { border-color: #dc2626; }
.input-group.invalid .error-message { display: block; }
.btn-block { width: 100%; justify-content: center; white-space: normal; }
.btn:disabled { opacity: .7; cursor: wait; transform: none; }
.form-card.shake { animation: rp-shake .45s; }
@keyframes rp-shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.success-card { text-align: center; }
.success-icon { width: 70px; height: 70px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center; font-size: 2.1rem; background: rgba(16, 185, 129, .12); }
.success-message { font-size: 1.05rem; margin: 6px 0 10px; }
.next-steps-info { color: var(--text-2); font-size: .92rem; margin-bottom: 24px; }

.trial { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding: 8px 16px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-solid); font-weight: 800; font-size: 1.05rem; white-space: nowrap; }
.trial b { font-weight: 900; }
.btn .num { font-family: 'Outfit'; font-weight: 700; }

/* ---------- FAQ (details, works without JavaScript) ---------- */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 10px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.faq-item[open] { border-color: var(--accent-solid); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 20px; font-weight: 800; font-size: 1.02rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-solid); font: 700 1.2rem/1 'Outfit'; transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:focus-visible { outline: 2px solid var(--accent-solid); outline-offset: 2px; border-radius: 16px; }
.faq-a { padding: 0 20px 18px; color: var(--text-2); }
.faq-a ul { margin: 8px 0 0; padding-inline-start: 20px; display: grid; gap: 6px; }

/* ---------- footer: same content and look as the home page ---------- */
.rp-footer { margin-top: 64px; background: #030712; border-top: 1px solid rgba(255, 255, 255, .05); color: #cbd5e1; padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-brand-info { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.footer-logo { height: 52px; width: auto; }
.footer-desc { font-size: .88rem; color: #cbd5e1; line-height: 1.75; max-width: 340px; }
.footer-links-col h4, .footer-contact-col h4 { font-size: 1.1rem; color: #fff; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 1px solid rgba(255, 255, 255, .08); white-space: nowrap; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer-links a { color: #94a3b8; font-size: .88rem; transition: color .15s; }
.footer-links a:hover { color: #fff; }
.footer-contact-col p { font-size: .88rem; color: #cbd5e1; margin-bottom: 12px; }
.footer-contact-col a { color: #38bdf8; white-space: nowrap; display: inline-block; padding: 3px 0; }
.footer-social { display: flex; gap: 10px; margin-top: 4px; }
.footer-social-link { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .12); color: #94a3b8; transition: .15s; }
.footer-social-link svg { width: 18px; height: 18px; }
.footer-social-link:hover { color: #fff; background: #0284c7; border-color: #0284c7; transform: translateY(-2px); }
.footer-divider { height: 1px; background: rgba(255, 255, 255, .05); margin: 36px 0 18px; }
.footer-bottom { text-align: center; font-size: .8rem; }
.footer-bottom .copyright { color: #8b98ab; }
body.ui-has-dock .rp-footer { padding-bottom: 110px; }

/* ---------- small screens ---------- */
@media (max-width: 980px) {
    .r-grid { grid-template-columns: 1fr; justify-items: center; text-align: center; }
    .r-word, .r-word.end { justify-items: center; text-align: center; }
    .r-word h1 { justify-items: center; }
    .r-word.end .r-ctas, .r-ctas { justify-content: center; }
    .r-word.start { order: 1; } .r-grid .device { order: 2; width: 100%; } .r-word.end { order: 3; }
    .r-sub, .r-eyebrow { white-space: normal; }
    .show { grid-template-columns: 1fr; padding: 12px; }
    .side { display: flex; overflow-x: auto; gap: 4px; scrollbar-width: none; }
    .side .co { display: none; }
    .side button { width: auto; flex-shrink: 0; }
    .keys { grid-template-columns: 1fr; }
    .explain { grid-template-columns: auto 1fr; }
    .explain .ctl { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
    .feats { grid-template-columns: 1fr; }
    .v-grid, .v-body, .demo { grid-template-columns: 1fr; }
    .v-card, .form-card { padding: 20px; }
    .demo-info { text-align: center; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}
@media (max-width: 560px) {
    .footer-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .lt-screen img, .ph-screen img, .spot, .pin { transition: none; }
}
.keys[hidden], .panel[hidden] { display: none; }

/* مسافات أقل بين الأقسام (ملاحظة حمزة 31/10) */
.r-sec { padding: 44px 0 12px; }
.rp-footer { margin-top: 40px; padding-top: 44px; }
