/* rf-family v3.3.0 2026-10-23 */
/*
  ReyDen family design system v3 (Direction B). Canonical file: ReyDen/src/styles/family.css.
  Copies in ReyTV, ReyUpload/frontend and ReyLink are byte-identical (node scripts/sync-family-css.mjs).
  Edit only here. Site-specific CSS goes in each site's own stylesheet.
  Dark only. Per-product accent comes from [data-product]; that block is GENERATED from family/products.json
  (node family/tools/gen_accents.mjs). Do not hand-edit between the GENERATED markers.
  Sections: 1 fonts / 2 tokens / 3 base / 4 type + layout / 5 buttons, forms, data / 6 shell / 7 hero frame /
  8 layered card + step card / 9 responsive + reduced motion / 10 steps rail / 11 living hero / 12 tilt / 13 ecosystem / 14 legacy v2 components.
*/

/* ===== 1. Fonts (absolute /fonts/ URLs so the file is identical in every repo) ===== */
@font-face {
  font-family: "Vazirmatn";
  src: url(/fonts/Vazirmatn-Variable.woff2) format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face { font-family: "Inter"; src: url(/fonts/Inter-400.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url(/fonts/Inter-500.woff2) format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url(/fonts/Inter-600.woff2) format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url(/fonts/Inter-700.woff2) format("woff2"); font-weight: 700 800; font-style: normal; font-display: swap; }
@font-face {
  font-family: "JetBrains Mono";
  src: url(/fonts/JetBrainsMono-Variable.woff2) format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}
/* Legacy v2 face, still referenced by --rf-font-latin until the sites are rebuilt (fetched only where used) */
@font-face {
  font-family: "Space Grotesk";
  src: url(/fonts/SpaceGrotesk-Variable.woff2) format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
/* Upload only uses this (fetched only where referenced): glyphs of the footer credit */
@font-face {
  font-family: "Vazirmatn Credit";
  src: url(/fonts/Vazirmatn-Credit.woff2) format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
/* Metric-matched fallbacks (protect CLS) */
@font-face {
  font-family: "Vazirmatn Fallback";
  src: local("Tahoma");
}
@font-face {
  font-family: "Space Grotesk Fallback";
  src: local("Arial");
  size-adjust: 108%;
  ascent-override: 91%;
  descent-override: 27%;
  line-gap-override: 0%;
}

/* ===== 2. Tokens ===== */
:root{
  /* 2.1 primitives */
  --rf-p-ink-0:#06080C; --rf-p-ink-1:#080B11; --rf-p-ink-2:#0E131B; --rf-p-ink-3:#141A24; --rf-p-ink-4:#1B2230;
  --rf-p-line-1:#222A37; --rf-p-line-2:#323C4D; --rf-p-line-3:#6B7486;
  --rf-p-fg-1:#F3F5F8; --rf-p-fg-2:#A7B0BF; --rf-p-fg-3:#8590A2; --rf-p-white:#FFFFFF;
  /* product primitives: text/icon, fill, ink */
  --rf-hub-text:#4C9AFF; --rf-hub-fill:#2F6FEB; --rf-hub-ink:#0B2A63;
  --rf-tv-text:#FF5C6C; --rf-tv-fill:#D7263D; --rf-tv-ink:#5C0A15;
  --rf-link-text:#3DDC84; --rf-link-fill:#3DDC84; --rf-link-ink:#04210F;
  --rf-up-text:#B084FF; --rf-up-fill:#7C4DFF; --rf-up-ink:#2A0F6B;
  /* semantic status */
  --rf-live:#FF4D5E; --rf-danger:#FF5A5F; --rf-success:#3DDC84; --rf-warning:#FFC24B; --rf-info:#4C9AFF;

  /* 2.2 semantic */
  --rf-bg:var(--rf-p-ink-1); --rf-raised:var(--rf-p-ink-2); --rf-panel:var(--rf-p-ink-3); --rf-hover:var(--rf-p-ink-4);
  --rf-line:var(--rf-p-line-1); --rf-line-strong:var(--rf-p-line-2); --rf-line-input:var(--rf-p-line-3);
  --rf-text:var(--rf-p-fg-1); --rf-muted:var(--rf-p-fg-2); --rf-faint:var(--rf-p-fg-3);
  --rf-scrim:rgb(6 8 12 / .72);
  --rf-glass-bg:rgb(14 19 27 / .58); --rf-glass-line:rgb(255 255 255 / .10);
  --rf-glass-hi:inset 0 1px 0 rgb(255 255 255 / .08);
  --rf-shadow-1:0 8px 24px -12px rgb(0 0 0 / .6);
  --rf-shadow-2:0 18px 48px -18px rgb(0 0 0 / .7);
  --rf-shadow-3:0 32px 80px -24px rgb(0 0 0 / .8);
  --rf-z-nav:50; --rf-z-menu:60; --rf-z-modal:80;

  /* 2.7 motion */
  --rf-dur-1:120ms; --rf-dur-2:200ms; --rf-dur-3:320ms; --rf-dur-card:500ms; --rf-dur-hero:800ms;
  --rf-ease-out:cubic-bezier(.22,1,.36,1); --rf-ease-card:cubic-bezier(.2,.8,.2,1); --rf-ease-sheet:cubic-bezier(.32,.72,0,1);

  /* 2.5 layout */
  --rf-gutter:clamp(16px,4vw,40px);
  --rf-dir:1;
  --rf-font-fa:"Vazirmatn",system-ui,sans-serif;
  --rf-font-en:"Inter",system-ui,sans-serif;
  --rf-font-display-en:"Plus Jakarta Sans","Inter",system-ui,sans-serif; /* Plus Jakarta is not in any repo: Inter stands in */
  --rf-font-mono:"JetBrains Mono",ui-monospace,monospace;
}
[dir="rtl"]{--rf-dir:-1}

/* 2.3 Per-product accent. GENERATED from family/products.json: do not hand-edit between the markers. */
/* GENERATED:accents begin (family/tools/gen_accents.mjs from family/products.json) */
:root{--rf-accent:#4C9AFF;--rf-accent-fill:#2F6FEB;--rf-accent-hover:#4C9AFF;--rf-on-accent:#FFFFFF;--rf-accent-ink:#0B2A63;}
[data-product="reyden"]{--rf-accent:#4C9AFF;--rf-accent-fill:#2F6FEB;--rf-accent-hover:#4C9AFF;--rf-on-accent:#FFFFFF;--rf-accent-ink:#0B2A63;}
[data-product="reytv"]{--rf-accent:#FF5C6C;--rf-accent-fill:#D7263D;--rf-accent-hover:#E24A5E;--rf-on-accent:#FFFFFF;--rf-accent-ink:#5C0A15;}
[data-product="reylink"]{--rf-accent:#3DDC84;--rf-accent-fill:#3DDC84;--rf-accent-hover:#6AE8A2;--rf-on-accent:#04210F;--rf-accent-ink:#04210F;}
[data-product="reyupload"]{--rf-accent:#B084FF;--rf-accent-fill:#7C4DFF;--rf-accent-hover:#9A74FF;--rf-on-accent:#FFFFFF;--rf-accent-ink:#2A0F6B;}
[data-product="reyconnect"]{--rf-accent:#FFB454;--rf-accent-fill:#B85C00;--rf-accent-hover:#FFC879;--rf-on-accent:#FFFFFF;--rf-accent-ink:#512600;}
/* GENERATED:accents end */
:root,[data-product]{
  --rf-accent-dim:color-mix(in srgb,var(--rf-accent-fill) 16%,var(--rf-bg));
  --rf-accent-glow:color-mix(in srgb,var(--rf-accent-fill) 40%,transparent);
  --rf-focus:0 0 0 2px var(--rf-bg),0 0 0 4px var(--rf-accent);
}

/* 2.8 Legacy v2 token aliases. Kept so site CSS written against v2 keeps resolving. New code uses the v3 tokens above. */
:root {
  --rf-panel-2: var(--rf-p-ink-4);
  --rf-brand: var(--rf-accent);       /* v2 names follow the product accent now; no fixed lime or green */
  --rf-brand-ink: var(--rf-accent-ink);
  --rf-lime: var(--rf-accent);        --rf-violet: var(--rf-up-text);  --rf-aqua: var(--rf-link-text);  --rf-sky: var(--rf-hub-text);
  --rf-violet-ink: var(--rf-up-ink);  --rf-aqua-ink: var(--rf-link-ink); --rf-sky-ink: var(--rf-hub-ink);
  --rf-accent-text: var(--rf-accent);
  --rf-on-semantic: #0A0B0D;
  --rf-font-latin: var(--rf-font-en);
  --rf-font-body: var(--rf-font-fa);
  --rf-fs-xs: clamp(.75rem, .72rem + .15vw, .8125rem);
  --rf-fs-sm: clamp(.875rem, .85rem + .12vw, .9375rem);
  --rf-fs-base: clamp(1rem, .97rem + .15vw, 1.0625rem);
  --rf-fs-lg: clamp(1.125rem, 1.07rem + .25vw, 1.25rem);
  --rf-fs-xl: clamp(1.375rem, 1.25rem + .55vw, 1.75rem);
  --rf-fs-2xl: clamp(1.75rem, 1.5rem + 1.1vw, 2.5rem);
  --rf-fs-3xl: clamp(2.25rem, 1.8rem + 2vw, 3.5rem);
  --rf-fs-display: clamp(2.75rem, 1.9rem + 4.2vw, 5.5rem);
  --rf-lh-body: 1.9; --rf-lh-tight: 1.15;
  --rf-space-1: 4px; --rf-space-2: 8px; --rf-space-3: 12px; --rf-space-4: 16px;
  --rf-space-5: 24px; --rf-space-6: 32px; --rf-space-7: 48px; --rf-space-8: 64px; --rf-space-9: 96px; --rf-space-10: 128px;
  --rf-container: 1200px; --rf-measure: 68ch;
  --rf-radius-xs: 6px; --rf-radius-sm: 10px; --rf-radius-md: 16px; --rf-radius-lg: 24px; --rf-radius-pill: 999px;
  --rf-glow: 0 0 0 1px var(--rf-accent-glow), 0 0 32px -4px var(--rf-accent-glow);
  --rf-header-h: 64px;
  --rf-bp-sm: 480px; --rf-bp-md: 768px; --rf-bp-lg: 1024px; --rf-bp-xl: 1280px;
  --rf-z-base: 0; --rf-z-raised: 10; --rf-z-sticky: 100; --rf-z-header: 200;
  --rf-z-fab: 300; --rf-z-drawer: 400; --rf-z-toast: 600; --rf-z-skip: 700;
  --rf-dur-4: 480ms; --rf-dur-5: 700ms;
  --rf-ease-in-out: cubic-bezier(.65,0,.35,1);
  --rf-rise: 24px; --rf-stagger: 60ms;
}
@media (max-width: 767px) { :root { --rf-header-h: 56px; } }
@media (prefers-reduced-motion: reduce) {
  :root { --rf-dur-4: 0ms; --rf-dur-5: 0ms; --rf-rise: 0px; --rf-stagger: 0ms; }
}

/* ===== 3. Base. Dark only. Element resets are scoped to .rf-body through :where() (zero specificity), so existing site CSS is not reset ===== */
html { -webkit-text-size-adjust: 100%; color-scheme: dark; background: var(--rf-bg); scroll-padding-top: calc(var(--rf-header-h) + 8px); }
html:has(dialog[open]) { overflow: hidden; }
.rf-body { margin: 0; min-height: 100vh; background: var(--rf-bg); color: var(--rf-text); font-family: var(--rf-font-fa); font-size: 16px; line-height: 1.85; -webkit-font-smoothing: antialiased; overflow-x: hidden; overflow-x: clip; /* FIX4: clip never makes the body a scroll container, so position: sticky (legal TOC) works */ }
html[lang="en"] .rf-body { font-family: var(--rf-font-en); line-height: 1.6; }
:where(.rf-body) *, :where(.rf-body) *::before, :where(.rf-body) *::after { box-sizing: border-box; }
:where(.rf-body) :is(img, svg) { display: block; max-width: 100%; }
:where(.rf-body) :is(h1, h2, h3, h4, p, ul, ol, figure) { margin: 0; }
:where(.rf-body) :is(ul, ol) { padding: 0; list-style: none; }
:where(.rf-body) a { color: inherit; text-decoration: none; }
:where(.rf-body) :is(button, input, select, textarea) { font: inherit; color: inherit; }
:where(.rf-body) button { cursor: pointer; background: none; border: 0; padding: 0; }
bdi, .ltr { direction: ltr; unicode-bidi: isolate; }
.mono { font-family: var(--rf-font-mono); direction: ltr; unicode-bidi: isolate; }
:where(.rf-body) :focus-visible { outline: none; box-shadow: var(--rf-focus); border-radius: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rf-flip-rtl { display: inline-block; }
[dir="rtl"] .rf-flip-rtl { transform: scaleX(-1); }

/* ===== 4. Type, layout, icons ===== */

.rf-display{font-size:clamp(2.5rem,1.6rem + 3.6vw,4rem);font-weight:800;line-height:1.25;letter-spacing:0}
html[lang="en"] .rf-display{font-family:var(--rf-font-display-en);font-weight:700;line-height:1.05;letter-spacing:-.025em;font-size:clamp(2.25rem,1.4rem + 3.4vw,4rem)}
html[lang="en"] .rf-hero__copy{max-width:900px}
.rf-h1{font-size:clamp(2.25rem,1.9rem + 1.4vw,3rem);font-weight:800;line-height:1.3}
.rf-h2{font-size:clamp(1.75rem,1.5rem + 1vw,2.25rem);font-weight:700;line-height:1.35}
.rf-h3{font-size:clamp(1.375rem,1.2rem + .6vw,1.75rem);font-weight:700;line-height:1.4}
html[lang="en"] .rf-h1,html[lang="en"] .rf-h2,html[lang="en"] .rf-h3{font-family:var(--rf-font-display-en);letter-spacing:-.02em}
html[lang="en"] .rf-h1{font-weight:700;line-height:1.1}
html[lang="en"] .rf-h2{line-height:1.15}
.rf-lead{font-size:clamp(1rem,.95rem + .3vw,1.1875rem);color:var(--rf-muted);max-width:52ch}
.rf-small{font-size:.8125rem;line-height:1.7}
.rf-muted{color:var(--rf-muted)}
.rf-accent{color:var(--rf-accent)}

.rf-container{width:100%;max-width:calc(1280px + 2 * var(--rf-gutter));margin-inline:auto;padding-inline:var(--rf-gutter)}
.rf-container--app{max-width:calc(1440px + 2 * 24px);padding-inline:24px}
.rf-section{padding-block:96px}
.rf-section + .rf-section{padding-top:32px}
.rf-hero + .rf-section{padding-top:48px}
.rf-eyebrow{display:inline-flex;align-items:center;gap:8px;padding:6px 14px;border-radius:999px;border:1px solid var(--rf-glass-line);background:var(--rf-glass-bg);box-shadow:var(--rf-glass-hi);color:var(--rf-muted);font-size:.8125rem;font-weight:600}
html[lang="en"] .rf-eyebrow{font-size:.6875rem;letter-spacing:.2em;text-transform:uppercase}
.rf-eyebrow::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--rf-accent)}
.rf-section-head{display:grid;gap:12px;margin-bottom:48px;justify-items:start}

.ic{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round;flex:none}
.ic-sm{width:16px;height:16px}.ic-lg{width:24px;height:24px}.ic-xl{width:32px;height:32px}
.ic-dir{transition:transform var(--rf-dur-2) var(--rf-ease-out)}
[dir="rtl"] .ic-dir{transform:scaleX(-1)}

/* ===== 5. Buttons, forms, data ===== */
.rf-btn{--h:48px;display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:var(--h);padding:0 22px;border-radius:999px;font-weight:600;font-size:.9375rem;line-height:1;white-space:nowrap;border:1px solid transparent;transition:transform var(--rf-dur-2) var(--rf-ease-out),background var(--rf-dur-2),border-color var(--rf-dur-2),box-shadow var(--rf-dur-2),color var(--rf-dur-2)}
.rf-btn:active{transform:translateY(0) scale(.98);transition-duration:var(--rf-dur-1)}
/* Primary (variant B, applied by the owner): glass pill with accent border and inner glow. Dark tint keeps the white label AA over hero images. */
.rf-btn--primary,.rf-btn--accent,.rf-btn--vb{background:color-mix(in srgb,var(--rf-accent-fill) 13%,rgb(8 11 17 / .78));border-color:color-mix(in srgb,var(--rf-accent) 75%,transparent);color:var(--rf-text);box-shadow:inset 0 0 12px -6px color-mix(in srgb,var(--rf-accent-glow) 70%,transparent),0 6px 20px -12px var(--rf-accent-glow);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}
/* variant A (reference, buttons.html): solid accent gradient pill */
.rf-btn--va{background:linear-gradient(to bottom,var(--rf-accent-fill),color-mix(in srgb,var(--rf-accent-fill) 88%,#000));color:var(--rf-on-accent);box-shadow:inset 0 1px 0 rgb(255 255 255 / .25),0 6px 20px -10px var(--rf-accent-glow)}
/* Secondary: quiet neutral glass over a dark tint (label stays AA over bright images), no accent border, so it never reads as B */
.rf-btn--ghost{background:color-mix(in srgb,#fff 5%,rgb(8 11 17 / .78));border-color:rgb(255 255 255 / .14);color:var(--rf-text);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}
.rf-btn--sm{--h:40px;padding:0 16px;font-size:.875rem}
.rf-btn--plain{padding:0 16px}
.rf-btn--danger{background:var(--rf-danger);color:#2a0709;box-shadow:none}
.rf-btn--ghost.rf-btn--danger{background:transparent;color:var(--rf-danger);border-color:color-mix(in srgb,var(--rf-danger) 45%,transparent)}
.rf-btn__arrow{display:inline-grid;place-items:center;transition:transform var(--rf-dur-2) var(--rf-ease-out)}
.rf-btn__arrow .ic{width:18px;height:18px}
[dir="rtl"] .rf-btn__arrow .ic{transform:scaleX(-1)}
/* hover and focus: .is-hover / .is-focus mirror the pseudo-classes so buttons.html can show them still */
@media (hover:hover) and (pointer:fine){
  .rf-btn:hover{transform:translateY(-1px)}
  .rf-btn:hover .rf-btn__arrow{transform:translateX(calc(4px * var(--rf-dir)))}
  .rf-btn--primary:hover,.rf-btn--accent:hover{box-shadow:inset 0 0 14px -5px var(--rf-accent-glow),0 8px 28px -12px var(--rf-accent-fill);border-color:var(--rf-accent)}
  .rf-btn--va:hover{box-shadow:inset 0 1px 0 rgb(255 255 255 / .25),0 8px 28px -8px var(--rf-accent-fill)}
  .rf-btn--ghost:hover{background:color-mix(in srgb,#fff 12%,rgb(8 11 17 / .78));border-color:rgb(255 255 255 / .3)}
  .rf-btn--vb:hover{box-shadow:inset 0 0 14px -5px var(--rf-accent-glow),0 8px 28px -12px var(--rf-accent-fill)}
}
.rf-btn.is-hover{transform:translateY(-1px)}
.rf-btn.is-hover .rf-btn__arrow{transform:translateX(calc(4px * var(--rf-dir)))}
.rf-btn--primary.is-hover,.rf-btn--accent.is-hover{box-shadow:inset 0 0 14px -5px var(--rf-accent-glow),0 8px 28px -12px var(--rf-accent-fill);border-color:var(--rf-accent)}
.rf-btn--va.is-hover{box-shadow:inset 0 1px 0 rgb(255 255 255 / .25),0 8px 28px -8px var(--rf-accent-fill)}
.rf-btn--ghost.is-hover{background:color-mix(in srgb,#fff 12%,rgb(8 11 17 / .78));border-color:rgb(255 255 255 / .3)}
.rf-btn--vb.is-hover{box-shadow:inset 0 0 14px -5px var(--rf-accent-glow),0 8px 28px -12px var(--rf-accent-fill)}
.rf-btn:focus-visible,.rf-btn.is-focus{box-shadow:inset 0 1px 0 rgb(255 255 255 / .2),var(--rf-focus)}

.rf-iconbtn{display:inline-grid;place-items:center;width:44px;height:44px;border-radius:12px;color:var(--rf-muted);transition:transform var(--rf-dur-2) var(--rf-ease-out),background var(--rf-dur-2),color var(--rf-dur-2)}
.rf-iconbtn--sm{width:36px;height:36px;border-radius:10px}
@media (hover:hover) and (pointer:fine){.rf-iconbtn:hover{background:var(--rf-hover);color:var(--rf-text);transform:scale(1.06)}}
.rf-iconbtn--danger:hover{color:var(--rf-danger)}

.rf-chip{display:inline-flex;align-items:center;gap:8px;min-height:32px;padding:0 12px;border-radius:8px;border:1px solid var(--rf-line);background:var(--rf-raised);color:var(--rf-muted);font-size:.8125rem;font-weight:500;line-height:1.2;transition:background var(--rf-dur-2),border-color var(--rf-dur-2),color var(--rf-dur-2)}
.rf-chip.is-active,.rf-chip[aria-pressed="true"]{background:var(--rf-accent-dim);border-color:var(--rf-accent);color:var(--rf-text)}
.rf-chip--pill{border-radius:999px}
button.rf-chip:hover{background:var(--rf-hover);color:var(--rf-text)}

.rf-badge{display:inline-flex;align-items:center;gap:8px;min-height:26px;padding:0 10px;border-radius:999px;font-size:.75rem;font-weight:600;background:rgb(255 255 255 / .06);color:var(--rf-muted);white-space:nowrap}
.rf-badge::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}
.rf-badge--live{background:rgb(255 77 94 / .16);color:var(--rf-live);padding-inline:10px}
.rf-badge--live::before{background:var(--rf-live)} /* static dot: no pulse (frequency gate) */
.rf-badge--ok{background:rgb(61 220 132 / .14);color:var(--rf-success)}
.rf-badge--warn{background:rgb(255 194 75 / .14);color:var(--rf-warning)}
.rf-badge--danger{background:rgb(255 90 95 / .14);color:var(--rf-danger)}
.rf-badge--accent{background:var(--rf-accent-dim);color:var(--rf-accent)}
.rf-badge--plain::before{display:none}

.rf-field{display:grid;gap:8px}
.rf-label{font-size:.8125rem;font-weight:600;color:var(--rf-muted)}
.rf-input,.rf-select,.rf-textarea{width:100%;min-height:48px;padding:0 16px;border-radius:12px;border:1px solid var(--rf-line-input);background:var(--rf-p-ink-4);color:var(--rf-text);font-size:.9375rem;transition:border-color var(--rf-dur-2),box-shadow var(--rf-dur-2)}
.rf-input::placeholder,.rf-textarea::placeholder{color:var(--rf-faint)}
.rf-input:focus-visible,.rf-select:focus-visible,.rf-textarea:focus-visible,.rf-input:focus,.rf-textarea:focus{border-color:var(--rf-accent);box-shadow:var(--rf-focus)}
.rf-textarea{padding:14px 16px;min-height:140px;resize:vertical;line-height:1.7}
.rf-input--ltr{direction:ltr;text-align:start;font-family:var(--rf-font-mono);font-size:.9375rem}
:root[dir="rtl"] .rf-input--ltr{text-align:left}
.rf-selectwrap{position:relative}
.rf-selectwrap .ic{position:absolute;inset-inline-end:14px;top:50%;margin-top:-8px;width:16px;height:16px;pointer-events:none;color:var(--rf-muted)}
.rf-select{appearance:none;padding-inline-end:40px}
.rf-inputwrap{position:relative}
.rf-inputwrap .ic{position:absolute;inset-inline-start:14px;top:50%;margin-top:-10px;color:var(--rf-faint)}
.rf-inputwrap .rf-input{padding-inline-start:44px}

/* segmented: always fills its container, equal segments (defect 9) */
.rf-seg{display:flex;width:100%;gap:4px;padding:4px;border-radius:14px;background:var(--rf-raised);border:1px solid var(--rf-line)}
.rf-seg>*{flex:1 1 0;min-width:0;display:flex;align-items:center;justify-content:center;gap:8px;min-height:40px;padding:0 12px;border-radius:10px;color:var(--rf-muted);font-weight:600;font-size:.875rem;transition:background var(--rf-dur-2),color var(--rf-dur-2)}
.rf-seg>[aria-pressed="true"],.rf-seg>.is-active{background:var(--rf-hover);color:var(--rf-text);box-shadow:inset 0 0 0 1px var(--rf-line-strong)}
.rf-seg>[aria-pressed="true"] .ic,.rf-seg>.is-active .ic{color:var(--rf-accent)}
.rf-seg>:not([aria-pressed="true"]):not(.is-active):hover{color:var(--rf-text)}
.rf-seg--compact{width:auto;display:inline-flex}
.rf-seg--compact>*{flex:0 0 auto;min-height:34px;padding:0 14px}

.rf-card{background:var(--rf-panel);border:1px solid var(--rf-line);border-radius:16px}
.rf-bezel{padding:6px;border-radius:24px;background:rgb(255 255 255 / .03);border:1px solid var(--rf-glass-line)}
.rf-bezel>.rf-bezel__in{border-radius:18px;background:var(--rf-panel);box-shadow:var(--rf-glass-hi);overflow:hidden}
.rf-glass{background:var(--rf-glass-bg);border:1px solid var(--rf-glass-line);box-shadow:var(--rf-glass-hi);-webkit-backdrop-filter:blur(18px) saturate(140%);backdrop-filter:blur(18px) saturate(140%)}
@supports not (backdrop-filter:blur(1px)){.rf-glass{background:rgb(14 19 27 / .94)}}
@media (prefers-reduced-transparency:reduce){.rf-glass{background:var(--rf-panel);-webkit-backdrop-filter:none;backdrop-filter:none}}

.rf-table-wrap{border:1px solid var(--rf-line);border-radius:12px;background:var(--rf-panel);overflow:auto}
.rf-table{width:100%;border-collapse:collapse;font-size:.875rem;line-height:1.5}
.rf-table th{position:sticky;top:0;background:var(--rf-raised);text-align:start;font-weight:600;color:var(--rf-muted);font-size:.8125rem;padding:0 16px;height:44px;border-bottom:1px solid var(--rf-line);white-space:nowrap}
.rf-table td{padding:0 16px;height:56px;border-bottom:1px solid var(--rf-line);white-space:nowrap}
.rf-table tr:last-child td{border-bottom:0}
.rf-table tbody tr{transition:background var(--rf-dur-1)}
.rf-table tbody tr:hover{background:var(--rf-hover)}
.rf-check{appearance:none;width:18px;height:18px;border-radius:6px;border:1px solid var(--rf-line-input);background:var(--rf-p-ink-4);display:inline-grid;place-items:center;vertical-align:middle;margin:0}
.rf-check:checked{background:var(--rf-accent-fill);border-color:var(--rf-accent-fill)}
.rf-check:checked::after{content:"";width:9px;height:5px;border:2px solid var(--rf-on-accent);border-top:0;border-inline-end:0;transform:rotate(-45deg) translate(1px,-1px)}
.rf-fileicon{display:grid;place-items:center;width:36px;height:36px;border-radius:10px;background:var(--rf-accent-dim);color:var(--rf-accent);flex:none}
.rf-progress{height:8px;border-radius:999px;background:var(--rf-p-ink-4);overflow:hidden}
.rf-progress>i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--rf-accent-fill),var(--rf-accent))}
.rf-progress--indet>i{width:38%;animation:rf-indet 1.4s var(--rf-ease-out) infinite}
@keyframes rf-indet{from{transform:translateX(calc(-100% * var(--rf-dir)))}to{transform:translateX(calc(260% * var(--rf-dir)))}}
.rf-empty{display:grid;justify-items:center;gap:12px;text-align:center;padding:48px 16px;color:var(--rf-muted)}
.rf-skeleton{border-radius:8px;background:linear-gradient(100deg,var(--rf-panel) 30%,var(--rf-hover) 50%,var(--rf-panel) 70%);background-size:200% 100%;animation:rf-shimmer 1.4s linear infinite}
@keyframes rf-shimmer{to{background-position:-200% 0}}

.rf-dialog-scrim{position:fixed;inset:0;z-index:var(--rf-z-modal);display:grid;place-items:center;padding:16px;background:var(--rf-scrim)}
.rf-dialog{width:min(440px,100%);border-radius:20px;padding:28px;display:grid;gap:16px;box-shadow:var(--rf-shadow-3),var(--rf-glass-hi)}
.rf-dialog__icon{display:grid;place-items:center;width:48px;height:48px;border-radius:14px;background:rgb(255 90 95 / .14);color:var(--rf-danger)}
.rf-dialog__actions{display:flex;gap:12px;justify-content:flex-end;flex-wrap:wrap;margin-top:8px}

.rf-faq{display:grid;gap:12px}
.rf-faq details{border:1px solid var(--rf-line);border-radius:16px;background:var(--rf-panel);transition:border-color var(--rf-dur-2)}
.rf-faq summary{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:60px;padding:0 20px;cursor:pointer;font-weight:600;list-style:none}
.rf-faq summary::-webkit-details-marker{display:none}
.rf-faq summary .ic{transition:transform var(--rf-dur-2) var(--rf-ease-out);color:var(--rf-muted)}
.rf-faq details[open]{border-color:var(--rf-line-strong)}
.rf-faq details[open]:not(.is-closing) summary .ic{transform:rotate(180deg)}
.rf-faq p{padding:0 20px 18px;color:var(--rf-muted)}

/* ===== 6. Shell (nav, appbar, side, footer) ===== */
.rf-nav-wrap{position:fixed;top:12px;inset-inline:0;z-index:var(--rf-z-nav);padding-inline:var(--rf-gutter);pointer-events:none;animation:rf-navin var(--rf-dur-3) var(--rf-ease-out) backwards} /* backwards, not both: a retained transform would trap the fixed mobile menu inside the nav */
@keyframes rf-navin{from{opacity:0;transform:translateY(-8px)}}
.rf-nav{pointer-events:auto;display:flex;align-items:center;gap:8px;height:52px;max-width:1280px;margin-inline:auto;padding-inline:10px 10px;border-radius:999px;background:var(--rf-glass-bg);border:1px solid var(--rf-glass-line);box-shadow:var(--rf-glass-hi),var(--rf-shadow-2);-webkit-backdrop-filter:blur(18px) saturate(140%);backdrop-filter:blur(18px) saturate(140%)}
.rf-lockup{direction:ltr;display:inline-flex;align-items:center;gap:10px;padding-inline:8px 6px;height:40px}
.rf-lockup__r{display:none;width:28px;height:auto}
.rf-lockup__word{height:16px;width:auto}
.rf-lockup__prod{font-family:var(--rf-font-display-en);font-weight:700;font-size:.875rem;letter-spacing:.2em;color:var(--rf-accent);padding-inline-start:10px;border-inline-start:1px solid var(--rf-glass-line);line-height:1;direction:ltr}
.rf-nav__links{display:flex;align-items:center;gap:4px;margin-inline-start:12px}
.rf-nav__link{position:relative;display:inline-flex;align-items:center;height:40px;padding:0 14px;border-radius:999px;font-size:.875rem;font-weight:500;color:var(--rf-muted);transition:color var(--rf-dur-2),background var(--rf-dur-2)}
.rf-nav__link::after{content:"";position:absolute;inset-inline:14px;bottom:5px;height:2px;border-radius:2px;background:var(--rf-accent);transform:scaleX(0);transform-origin:var(--rf-origin,right);transition:transform var(--rf-dur-2) var(--rf-ease-out)}
:root[dir="ltr"] .rf-nav__link::after{--rf-origin:left}
.rf-nav__link:hover{color:var(--rf-text)}
.rf-nav__link:hover::after,.rf-nav__link[aria-current="page"]::after{transform:scaleX(1)}
.rf-nav__link[aria-current="page"]{color:var(--rf-accent)}
.rf-nav__end{display:flex;align-items:center;gap:8px;margin-inline-start:auto}
.rf-langseg{display:inline-flex;padding:3px;border-radius:999px;background:rgb(255 255 255 / .05);border:1px solid var(--rf-glass-line)}
.rf-langseg a,.rf-langseg span{display:grid;place-items:center;min-width:36px;height:30px;padding:0 8px;border-radius:999px;font-size:.75rem;font-weight:700;color:var(--rf-muted);font-family:var(--rf-font-en)}
.rf-langseg .is-active{background:rgb(255 255 255 / .12);color:var(--rf-text)}
.rf-switcher{display:inline-flex;align-items:center;gap:8px;height:40px;padding:0 12px;border-radius:999px;color:var(--rf-muted);font-size:.8125rem;font-weight:600;transition:background var(--rf-dur-2),color var(--rf-dur-2)}
.rf-switcher:hover{background:rgb(255 255 255 / .08);color:var(--rf-text)}
.rf-menubtn{display:none}
.rf-avatar{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:var(--rf-accent-dim);border:1px solid var(--rf-accent);color:var(--rf-accent);font-weight:700;font-size:.8125rem}
.rf-switch{position:relative}
.rf-switch__panel{position:absolute;top:calc(100% + 14px);inset-inline-end:0;width:min(380px,calc(100vw - 32px));padding:8px;border-radius:20px;display:grid;gap:2px;z-index:var(--rf-z-menu);background:rgb(14 19 27 / .97);box-shadow:var(--rf-shadow-3),var(--rf-glass-hi);animation:rf-rise var(--rf-dur-2) var(--rf-ease-out) both}
.rf-switch__panel[hidden]{display:none}
.rf-switch__item{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:14px;transition:background var(--rf-dur-2)}
.rf-switch__item:hover{background:rgb(255 255 255 / .06)}
.rf-switch__item span{display:grid;line-height:1.5;min-width:0}
.rf-switch__item b{font-size:.9375rem}.rf-switch__item small{color:var(--rf-muted);font-size:.75rem}
.rf-switch.is-open .rf-switcher{background:rgb(255 255 255 / .08);color:var(--rf-text)}

.rf-appbar{position:sticky;top:0;z-index:var(--rf-z-nav);height:56px;background:var(--rf-raised);border-bottom:1px solid var(--rf-line)}
.rf-appbar__in{display:flex;align-items:center;gap:8px;height:100%;max-width:1488px;margin-inline:auto;padding-inline:24px}
.rf-appbar .rf-nav__link{height:56px;border-radius:0}
.rf-appbar .rf-nav__link::after{bottom:0;inset-inline:10px}
.rf-appbar .rf-nav__links{height:56px;margin-inline-start:8px;gap:0}

.rf-side{width:240px;flex:none;border-inline-end:1px solid var(--rf-line);background:var(--rf-raised);padding:16px 12px;display:flex;flex-direction:column;gap:4px;position:sticky;top:56px;height:calc(100vh - 56px);align-self:flex-start}
.rf-side__item{display:flex;align-items:center;gap:12px;min-height:44px;padding:0 12px;border-radius:12px;color:var(--rf-muted);font-size:.9375rem;font-weight:500;transition:background var(--rf-dur-1),color var(--rf-dur-1)}
.rf-side__item:hover{background:var(--rf-hover);color:var(--rf-text)}
.rf-side__item[aria-current="page"]{background:var(--rf-accent-dim);color:var(--rf-text);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--rf-accent) 40%,transparent)}
.rf-side__item[aria-current="page"] .ic{color:var(--rf-accent)}
.rf-side__label{font-size:.75rem;color:var(--rf-faint);padding:12px 12px 6px;font-weight:600}
.rf-tabrail{display:none}

.rf-footer{background:var(--rf-raised);border-top:1px solid var(--rf-line);padding-block:64px 0}
.rf-footer__grid{display:grid;grid-template-columns:1.3fr 1fr 1fr 1fr;gap:48px;padding-bottom:48px}
.rf-footer__brand{display:grid;gap:16px;align-content:start}
.rf-footer__brand p{color:var(--rf-muted);font-size:.9375rem;max-width:32ch}
.rf-footer details>summary{list-style:none;font-weight:700;font-size:.9375rem;margin-bottom:16px;display:flex;justify-content:space-between;align-items:center;cursor:default}
.rf-footer details>summary::-webkit-details-marker{display:none}
.rf-footer details>summary .ic{display:none}
.rf-footer ul{display:grid;gap:10px}
.rf-footer li a{color:var(--rf-muted);font-size:.9375rem;display:inline-flex;gap:8px;align-items:center;position:relative;transition:color var(--rf-dur-2)}
.rf-footer li a:hover{color:var(--rf-text)}
.rf-footer__bottom{display:flex;flex-wrap:wrap;align-items:center;gap:16px 24px;padding-block:20px;border-top:1px solid var(--rf-line);color:var(--rf-faint);font-size:.8125rem}
.rf-footer__bottom .rf-langseg{margin-inline-end:auto}
.rf-credit{margin:0;font-family:var(--rf-font-fa);font-size:.8125rem;color:var(--rf-faint);direction:rtl}
.rf-credit a{color:var(--rf-muted);text-decoration:underline;text-decoration-color:transparent;text-underline-offset:4px;transition:text-decoration-color var(--rf-dur-2),color var(--rf-dur-2)}
.rf-credit a:hover{color:var(--rf-text);text-decoration-color:currentColor}
.rf-hosttag{font-family:var(--rf-font-mono);font-size:.75rem;direction:ltr;unicode-bidi:isolate}

/* ===== 7. Hero frame ===== */
.rf-hero{position:relative;isolation:isolate;min-height:min(84svh,800px);display:flex;flex-direction:column;overflow:hidden;background:var(--rf-bg)}
.rf-hero__img{position:absolute;inset:0;z-index:-2;width:100%;height:100%;object-fit:cover;object-position:left center;animation:rf-heroimg var(--rf-dur-hero) var(--rf-ease-out) both}
:root[dir="ltr"] .rf-hero__img{transform:scaleX(-1);object-position:right center;animation-name:rf-heroimg-en}
@keyframes rf-heroimg{from{opacity:0;transform:scale(1.04)}}
@keyframes rf-heroimg-en{from{opacity:0;transform:scaleX(-1.04) scaleY(1.04)}}
.rf-hero::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
  background:
    linear-gradient(var(--rf-scrim-dir,to left),rgb(8 11 17 / .88) 0%,rgb(8 11 17 / .72) 34%,rgb(8 11 17 / .3) 56%,rgb(8 11 17 / 0) 70%),
    linear-gradient(to bottom,rgb(8 11 17 / .55) 0%,rgb(8 11 17 / 0) 22%,rgb(8 11 17 / 0) 55%,var(--rf-bg) 94%)}
:root[dir="ltr"] .rf-hero::before{--rf-scrim-dir:to right}
.rf-hero__inner{flex:1;display:flex;flex-direction:column;justify-content:center;gap:36px;padding-block:112px 40px}
.rf-hero__copy{display:grid;gap:22px;max-width:620px;justify-items:start}
.rf-hero__copy>*{animation:rf-rise var(--rf-dur-hero) var(--rf-ease-out) both}
.rf-hero__copy>:nth-child(2){animation-delay:80ms}.rf-hero__copy>:nth-child(3){animation-delay:160ms}.rf-hero__copy>:nth-child(4){animation-delay:240ms}
.rf-hero__ctas{display:flex;flex-wrap:wrap;gap:12px}
@keyframes rf-rise{from{opacity:0;transform:translateY(16px)}}
.rf-hero__second{color:var(--rf-accent)}
.rf-hero__strip{animation:rf-rise var(--rf-dur-hero) var(--rf-ease-out) 400ms both}
.rf-ph-tag{position:absolute;z-index:3;inset-inline-end:12px;bottom:12px;padding:3px 9px;border-radius:999px;background:rgb(6 8 12 / .72);border:1px solid var(--rf-glass-line);color:var(--rf-p-fg-2);font-size:11px;line-height:1.6;pointer-events:none;font-family:var(--rf-font-fa)}
/* owner: hide every placeholder label with this one line:  .rf-ph-tag{display:none}  */

/* ===== 8. Layered card + step card ===== */
.rf-lcard{position:relative;display:block;padding:6px;border-radius:24px;background:var(--rf-p-ink-2);border:1px solid var(--rf-line);box-shadow:var(--rf-shadow-1);aspect-ratio:4/5;color:inherit;transform:translateY(var(--lift,0px));
  transition:transform 380ms var(--rf-ease-card),box-shadow 380ms var(--rf-ease-card),border-color 380ms var(--rf-ease-card)}
.rf-lcard--sq{aspect-ratio:1/1}
.rf-lcard__in{position:relative;height:100%;border-radius:18px;overflow:hidden;background:var(--rf-panel);display:flex;flex-direction:column;box-shadow:var(--rf-glass-hi)}
.rf-lcard__fill{position:absolute;inset:0;background:radial-gradient(80% 70% at 50% 40%,color-mix(in srgb,var(--rf-accent-fill) 55%,transparent),transparent 70%),linear-gradient(170deg,color-mix(in srgb,var(--rf-accent-fill) 38%,var(--rf-p-ink-0)),var(--rf-p-ink-0) 80%);opacity:0;transition:opacity 380ms var(--rf-ease-card)}
.rf-lcard__stage{position:relative;flex:0 0 66%;min-height:0;background:radial-gradient(70% 60% at 50% 58%,color-mix(in srgb,var(--rf-accent-fill) 14%,transparent),transparent 72%);container-type:size}
.rf-lcard__glow{position:absolute;left:50%;top:56%;width:92%;aspect-ratio:1;translate:-50% -50%;background:radial-gradient(circle,var(--rf-accent-glow),transparent 64%);opacity:0;transition:opacity 380ms var(--rf-ease-card);pointer-events:none}
.rf-lcard__obj{--x:var(--rx,0);--y:var(--ry,0);--s:var(--rs,1);--r:var(--rr,0deg);position:absolute;left:50%;top:54%;width:var(--w,64%);height:auto;margin:calc(var(--w,64%) / -2) 0 0 calc(var(--w,64%) / -2);
  transform:translate(calc(var(--x) * var(--rf-dir) * 1cqw),calc(var(--y) * 1cqh)) scale(var(--s)) rotate(calc(var(--r) * var(--rf-dir)));
  transition:transform 380ms var(--rf-ease-card);will-change:transform;user-select:none;-webkit-user-drag:none}
.rf-lcard__badge{position:absolute;z-index:2;top:14px;inset-inline-start:14px;display:inline-flex;align-items:center;gap:6px;height:28px;padding:0 12px;border-radius:999px;border:1px solid var(--rf-glass-line);background:rgb(6 8 12 / .35);color:var(--rf-muted);font-size:.75rem;font-weight:600;transition:background 380ms var(--rf-ease-card),color 380ms var(--rf-ease-card),border-color 380ms var(--rf-ease-card)}
.rf-lcard__chip{position:absolute;z-index:2;inset-inline-end:14px;bottom:12px;display:inline-flex;align-items:center;gap:6px;height:28px;padding:0 10px;border-radius:10px;background:rgb(6 8 12 / .55);border:1px solid var(--rf-glass-line);color:var(--rf-text);font-size:.75rem;font-weight:600;transition:transform 380ms var(--rf-ease-card);direction:ltr}
.rf-lcard__panel{position:relative;flex:1;display:flex;align-items:flex-start;gap:12px;padding:20px 20px 0;z-index:1}
.rf-lcard__panel::before{content:"";position:absolute;inset:0;background:linear-gradient(to bottom,rgb(6 8 12 / 0),rgb(6 8 12 / .92) 38%);opacity:0;transition:opacity 380ms var(--rf-ease-card)}
.rf-lcard__text{position:relative;display:grid;gap:2px;flex:1;min-width:0}
.rf-lcard__title{font-size:1.25rem;font-weight:700;line-height:1.4;transition:color 380ms var(--rf-ease-card)}
html[lang="en"] .rf-lcard__title{font-family:var(--rf-font-display-en);font-weight:700}
.rf-lcard__line{font-size:.875rem;line-height:1.7;color:var(--rf-muted);transition:color 380ms var(--rf-ease-card)}
.rf-lcard__go{position:relative;display:grid;place-items:center;width:40px;height:40px;border-radius:50%;border:1px solid var(--rf-glass-line);color:var(--rf-text);flex:none;transition:transform 380ms var(--rf-ease-card),background 380ms var(--rf-ease-card),color 380ms var(--rf-ease-card)}
:root[dir="rtl"] .rf-lcard__go .ic{transform:scaleX(-1)}
.rf-lcard__ph{position:absolute;z-index:3;inset-inline-end:10px;top:12px;padding:2px 8px;border-radius:999px;background:rgb(6 8 12 / .72);border:1px solid var(--rf-glass-line);color:var(--rf-p-fg-2);font-size:10px;line-height:1.6;pointer-events:none}
.rf-lcard .rf-ph-tag{inset-inline-end:10px;top:12px;bottom:auto;font-size:10px}

/* hover / focus: one rule set for hover (pointer: fine) and one for focus. Kept identical. */
@media (hover:hover) and (pointer:fine){
  .rf-lcard:hover{--lift:-6px;border-color:var(--rf-accent);box-shadow:0 28px 64px -16px var(--rf-accent-glow);transition-duration:var(--rf-dur-card)}
  .rf-lcard:hover .rf-lcard__fill{opacity:1;transition-duration:var(--rf-dur-card)}
  .rf-lcard:hover .rf-lcard__glow{opacity:.9;transition-duration:var(--rf-dur-card)}
  .rf-lcard:hover .rf-lcard__obj{--x:var(--hx);--y:var(--hy);--s:var(--hs);--r:var(--hr);transition-duration:var(--rf-dur-card)}
  .rf-lcard:hover .rf-lcard__obj:nth-of-type(2){transition-delay:40ms}
  .rf-lcard:hover .rf-lcard__obj:nth-of-type(3){transition-delay:80ms}
  .rf-lcard:hover .rf-lcard__badge{background:#fff;color:var(--rf-accent-ink);border-color:#fff}
  .rf-lcard:hover .rf-lcard__panel::before{opacity:1}
  .rf-lcard:hover .rf-lcard__title{color:#fff}
  .rf-lcard:hover .rf-lcard__line{color:var(--rf-p-fg-2)}
  .rf-lcard:hover .rf-lcard__go{background:#fff;color:var(--rf-p-ink-1);border-color:#fff;transform:translateX(calc(3px * var(--rf-dir)))}
  .rf-lcard:hover .rf-lcard__chip{transform:translate(calc(6% * var(--rf-dir)),6%) scale(.96)}
}
.rf-lcard:is(:focus-visible,:focus-within){--lift:-6px;border-color:var(--rf-accent);box-shadow:0 28px 64px -16px var(--rf-accent-glow),0 0 0 2px var(--rf-bg),0 0 0 4px var(--rf-accent);transition-duration:var(--rf-dur-card)}
.rf-lcard:is(:focus-visible,:focus-within) .rf-lcard__fill{opacity:1}
.rf-lcard:is(:focus-visible,:focus-within) .rf-lcard__glow{opacity:.9}
.rf-lcard:is(:focus-visible,:focus-within) .rf-lcard__obj{--x:var(--hx);--y:var(--hy);--s:var(--hs);--r:var(--hr);transition-duration:var(--rf-dur-card)}
.rf-lcard:is(:focus-visible,:focus-within) .rf-lcard__badge{background:#fff;color:var(--rf-accent-ink);border-color:#fff}
.rf-lcard:is(:focus-visible,:focus-within) .rf-lcard__panel::before{opacity:1}
.rf-lcard:is(:focus-visible,:focus-within) .rf-lcard__title{color:#fff}
.rf-lcard:is(:focus-visible,:focus-within) .rf-lcard__line{color:var(--rf-p-fg-2)}
.rf-lcard:is(:focus-visible,:focus-within) .rf-lcard__go{background:#fff;color:var(--rf-p-ink-1);border-color:#fff;transform:translateX(calc(3px * var(--rf-dir)))}
.rf-lcard:focus-visible{outline:none}
/* touch: no hover pose, fill-only active state for 120ms */
@media (hover:none){.rf-lcard:active .rf-lcard__fill{opacity:1;transition-duration:var(--rf-dur-1)}}

/* step card (6.4): flat at rest, lifts on hover */
.rf-steps{display:grid;grid-template-columns:repeat(var(--cols,4),1fr);gap:20px;padding-block:20px}
.rf-step{--tilt:-2.5deg;--lift:0px;position:relative;display:grid;gap:14px;align-content:start;padding:28px 24px 26px;border-radius:20px;background:var(--rf-panel);border:1px solid var(--rf-line);box-shadow:var(--rf-shadow-1);
  transform:translateY(var(--lift)) rotate(calc(var(--tilt) * var(--rf-dir)));transition:transform var(--rf-dur-card) var(--rf-ease-card),border-color var(--rf-dur-card) var(--rf-ease-card),background var(--rf-dur-card) var(--rf-ease-card)}
/* FIX4b: steps rest flat on every site; the lift is a hover / focus motion only */
.rf-step:nth-child(n){--tilt:0deg;--lift:0px}
.rf-step__num{font-family:var(--rf-font-display-en);font-weight:800;font-size:3.25rem;line-height:1;color:var(--rf-accent);letter-spacing:-.02em}
html[lang="fa"] .rf-step__num{font-family:var(--rf-font-fa);font-size:3.5rem}
.rf-step__icon{position:absolute;inset-inline-end:22px;top:24px;color:var(--rf-faint);transition:color var(--rf-dur-card)}
.rf-step h3{font-size:1.25rem;font-weight:700;line-height:1.4}
.rf-step p{color:var(--rf-muted);font-size:.9375rem;line-height:1.8}
@media (hover:hover) and (pointer:fine){.rf-step:hover{transform:translateY(-8px) rotate(0);border-color:var(--rf-accent);background:var(--rf-accent-dim)}.rf-step:hover .rf-step__icon{color:var(--rf-accent)}}
.rf-step:focus-within{transform:translateY(-8px) rotate(0);border-color:var(--rf-accent);background:var(--rf-accent-dim)}

/* ===== 9. Responsive shell + reduced-motion fallbacks ===== */
@media (max-width:1023px){
  .rf-nav__links{display:none}
  .rf-footer__grid{grid-template-columns:1fr 1fr;gap:32px}
}
@media (max-width:767px){
  .rf-section{padding-block:64px}
  .rf-nav{height:52px}
  .rf-lockup--prod .rf-lockup__word{display:none}
  .rf-lockup--prod .rf-lockup__r{display:block}
  .rf-nav .rf-langseg,.rf-nav .rf-switcher span,.rf-appbar .rf-switcher span{display:none}
  .rf-switcher{padding:0;width:40px;justify-content:center}
  .rf-appbar .rf-switcher{padding:0;width:40px;justify-content:center}
  .rf-appbar .rf-btn--accent{padding-inline:14px;font-size:.8125rem}
  .rf-appbar .rf-lockup{padding-inline:4px 2px;gap:8px}
  .rf-lcard{aspect-ratio:5/4}
  .rf-section + .rf-section{padding-top:16px}
  .rf-menubtn{display:inline-grid}
  .rf-hero{min-height:78svh}
  .rf-hero__inner{padding-block:96px 44px;justify-content:flex-end}
  .rf-hero .rf-ph-tag{top:auto;bottom:8px;inset-inline-start:16px;inset-inline-end:auto}
  .rf-hero__img{height:64%;object-position:6% 30%;-webkit-mask-image:linear-gradient(to bottom,#000 55%,transparent);mask-image:linear-gradient(to bottom,#000 55%,transparent)}
  :root[dir="ltr"] .rf-hero__img{object-position:94% 30%}
  .rf-hero::before{background:
    linear-gradient(to bottom,rgb(8 11 17 / .5) 0%,rgb(8 11 17 / 0) 14%,rgb(8 11 17 / .52) 28%,rgb(8 11 17 / .72) 46%,rgb(8 11 17 / .92) 68%,var(--rf-bg) 100%)}
  .rf-footer__grid{grid-template-columns:1fr;gap:0}
  .rf-footer__brand{padding-bottom:24px}
  .rf-footer details{border-top:1px solid var(--rf-line)}
  .rf-footer details>summary{margin:0;min-height:56px;cursor:pointer}
  .rf-footer details>summary .ic{display:block;transition:transform var(--rf-dur-2)}
  .rf-footer details[open]:not(.is-closing)>summary .ic{transform:rotate(180deg)}
  .rf-footer details ul{padding-bottom:16px}
  .rf-footer__bottom{flex-direction:column;align-items:flex-start;gap:12px}
  .rf-appbar__in{padding-inline:16px}
  .rf-appbar .rf-nav__links,.rf-appbar .rf-langseg{display:none}
  .rf-steps{grid-template-columns:1fr;gap:14px;padding-block:0}
  .rf-step,.rf-step:nth-child(n){--tilt:0deg;--lift:0px}
}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms !important;animation-iteration-count:1 !important;animation-delay:0s !important;scroll-behavior:auto !important}
  .rf-btn,.rf-iconbtn,.rf-step,.rf-lcard,.rf-lcard__obj,.rf-lcard__go,.rf-lcard__chip{transform:none !important;transition-property:opacity,background,color,border-color !important;transition-duration:150ms !important;transition-delay:0s !important}
  .rf-lcard__obj{transform:translate(0,0) !important}
  .rf-skeleton{animation:none}
  .rf-progress--indet>i{animation:none;width:100%;opacity:.5}
}

/* ===== 10. Steps rail variant ===== */
.rf-steps--rail{position:relative}
.rf-steps--rail .rf-step,.rf-steps--rail .rf-step:nth-child(n){--tilt:0deg;--lift:0px}
.rf-steps--rail::before{content:"";position:absolute;inset-inline:12%;top:64px;height:2px;background:linear-gradient(to left,var(--rf-accent),color-mix(in srgb,var(--rf-accent) 20%,transparent))}
:root[dir="ltr"] .rf-steps--rail::before{background:linear-gradient(to right,var(--rf-accent),color-mix(in srgb,var(--rf-accent) 20%,transparent))}
.rf-steps--rail .rf-step{z-index:1}
.rf-steps--rail .rf-step__icon{position:static;width:32px;height:32px;color:var(--rf-accent)}
@media (max-width:767px){.rf-steps--rail::before{display:none}}

/* ===== 11. Living hero: plate + floating cut-outs. transform and opacity only. Driven by family.js ===== */
.hl{position:absolute;inset:0;z-index:0;pointer-events:none;container-type:size}
.rf-hero:has(.hl) .rf-hero__inner{position:relative;pointer-events:none}
.rf-hero:has(.hl) .rf-hero__inner>*{pointer-events:auto}
.hl__o{position:absolute;left:calc(var(--x) * 1cqw);top:calc(var(--y) * 1cqw);width:calc(var(--w) * 1cqw);aspect-ratio:1;pointer-events:auto;will-change:transform}
html[lang="en"] .hl__o{left:auto;right:calc(var(--x) * 1cqw)}
.hl__e{position:relative;display:block;animation:hl-in 700ms var(--rf-ease-card) calc(var(--n) * 120ms + 200ms) backwards;transition:scale 300ms var(--rf-ease-card)}
.hl__e::before{content:"";position:absolute;inset:-22%;border-radius:50%;background:radial-gradient(circle,var(--oc,var(--rf-accent-glow)),transparent 66%);opacity:0;transition:opacity 300ms var(--rf-ease-card);pointer-events:none}
.hl__i{position:relative;width:100%;height:auto;animation:hl-float var(--f,7s) ease-in-out var(--p,0s) infinite;user-select:none;-webkit-user-drag:none}
@keyframes hl-in{from{opacity:0;transform:translateY(24px) scale(.9)}}
@keyframes hl-float{0%,100%{transform:translateY(-8px) rotate(-2deg)}50%{transform:translateY(8px) rotate(2deg)}}
@media (hover:hover) and (pointer:fine){
  .hl__o:hover .hl__e{scale:1.08}
  .hl__o:hover .hl__e::before{opacity:.9}
}
.hl__lines{position:absolute;left:0;top:0;width:100cqw;height:56cqw;overflow:visible}
html[lang="en"] .hl__lines{transform:scaleX(-1)}
.hl__ln,.hl__ld{fill:none;vector-effect:non-scaling-stroke;stroke-linecap:round}
.hl__ln{stroke-width:1.2;opacity:.22}
.hl__ld{stroke-width:2;stroke-dasharray:3 26;opacity:.95;animation:hl-dash 2.6s linear calc(var(--n) * -.6s) infinite}
@keyframes hl-dash{to{stroke-dashoffset:-58}}
/* FIX4 (ADD1 rule): below 768px the floating objects never sit on the headline or subtitle. The living layer becomes
   its own band ABOVE the copy (in flow, order -1); the plate stays behind everything and the copy keeps its scrim. */
@media (max-width:767px){
  .hl__o:nth-of-type(n+4){display:none}
  .hl__lines{display:none}
  .rf-hero:has(.hl) .hl{position:relative;inset:auto;order:-1;flex:none;width:100%;height:min(62vw,260px);margin-top:76px}
  .rf-hero:has(.hl) .rf-hero__inner{padding-block:8px 40px;justify-content:flex-start;flex:none}
  .hl__o{left:calc(var(--x) * 1.7cqw + 4cqw);top:calc(var(--y) * 1.5cqw + 6cqw);width:calc(var(--w) * 2.1cqw)}
  html[lang="en"] .hl__o{left:auto;right:calc(var(--x) * 1.7cqw + 4cqw)}
}

/* ===== 12. Tilt helper: data-tilt, optional data-tilt-max. Vars --tx/--ty are set by family.js (mouse only) ===== */
[data-tilt][data-tilt]{--rf-tiltx:perspective(var(--tp,800px)) rotateX(var(--ty,0deg)) rotateY(var(--tx,0deg));transform:translateY(var(--lift,0px)) var(--rf-tiltx);transition-property:transform,border-color,box-shadow,background,opacity;transition-duration:260ms;transition-timing-function:var(--rf-ease-out)}
/* A reveal stagger delay (rf-rise/rf-reveal --i) must not delay the tilt: each pointermove would restart it and the card never moves. */
[data-tilt][data-tilt]:hover{transition-delay:0s}
[data-drop].is-drag .drop__edge rect{animation:rf-breathe 1.4s ease-in-out infinite}
@keyframes rf-breathe{0%,100%{stroke-opacity:.55;stroke-width:1.5}50%{stroke-opacity:1;stroke-width:3}}
[data-drop].is-settle{animation:rf-settle 260ms var(--rf-ease-out)}
@keyframes rf-settle{0%{transform:perspective(800px) scale(.97)}60%{transform:perspective(800px) scale(1.012)}100%{transform:perspective(800px) scale(1)}}

/* ===== 13. Ecosystem diagram, scales to N products ===== */
.eco{position:relative;width:100%;max-width:640px;justify-self:center}
@media (prefers-reduced-motion:reduce){
  .hl__e,.hl__i,.hl__ld{animation:none !important}
  [data-tilt][data-tilt]{transform:none !important;transition-duration:150ms}
  [data-drop].is-drag .drop__edge rect,[data-drop].is-settle{animation:none}
}

/* ===== 14. Legacy v2 components. Still used by the pre-redesign sites; removed when P1-P4 retire them. Dropped because v3 owns them: .rf-header nav pill (.rf-nav, .rf-nav__link), .rf-switcher popover root, .rf-progress scroll bar, v2 footer markup, .rf-skeleton base, .rf-btn base look ===== */
/* ---------- Icons ---------- */
.rf-icon {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
  vertical-align: middle;
}
.rf-icon--16 { width: 16px; height: 16px; }
.rf-icon--24 { width: 24px; height: 24px; }
/* sprite marks use their own fill/stroke inside the symbol */
.rf-tile .rf-icon { stroke: none; fill: currentColor; stroke-width: 0; }

/* ---------- Skip link, sentinel ---------- */
.rf-skip {
  position: fixed; inset-block-start: 8px; inset-inline-start: 8px;
  z-index: var(--rf-z-skip);
  padding: 10px 16px;
  background: var(--rf-accent); color: var(--rf-on-accent);
  border-radius: var(--rf-radius-sm);
  font-weight: 600; text-decoration: none;
  transform: translateY(-200%);
}
.rf-skip:focus, .rf-skip:focus-visible { transform: none; }
.rf-sentinel {
  position: absolute; inset-block-start: 0; inset-inline-start: 0;
  width: 1px; height: 8px; pointer-events: none;
}

/* ---------- Tile and wordmark ---------- */
.rf-tile {
  display: inline-grid; place-items: center; flex: none;
  width: 32px; height: 32px;
  background: var(--tile, var(--rf-accent)); color: var(--rf-on-accent);
  border-radius: var(--rf-radius-sm);
}
.rf-tile--40 { width: 40px; height: 40px; }
.rf-tile--40 .rf-icon { width: 24px; height: 24px; }
.rf-tile--56 { width: 56px; height: 56px; border-radius: var(--rf-radius-md); }

.rf-wordmark {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--rf-text); text-decoration: none;
  min-height: 44px;
}
.rf-wordmark__text {
  font-family: var(--rf-font-latin); font-weight: 700; font-size: 1.125rem;
  letter-spacing: -.01em; line-height: 1; direction: ltr; unicode-bidi: isolate;
}
.rf-wordmark__product { color: var(--rf-accent-text); }

/* ---------- Header ---------- */
.rf-header {
  position: sticky; inset-block-start: 0;
  z-index: var(--rf-z-header);
  height: var(--rf-header-h);
  background: transparent;
  border-block-end: 1px solid transparent;
  transition: background-color var(--rf-dur-2) var(--rf-ease-out), border-color var(--rf-dur-2) var(--rf-ease-out);
}
.rf-header[data-scrolled="true"], .rf-header.is-scrolled {
  background: color-mix(in srgb, var(--rf-raised) 85%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-block-end-color: var(--rf-line);
}
.rf-header__inner {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 100%; max-width: var(--rf-container);
  margin-inline: auto; padding-inline: var(--rf-gutter);
}
.rf-header__actions {
  position: relative;
  display: flex; align-items: center; gap: 4px; flex: none;
}
.rf-pop-anchor { position: relative; }

.rf-iconbtn[aria-expanded="true"], .rf-iconbtn[aria-pressed="true"] { background: var(--rf-hover); }
@media (min-width: 1024px) { .rf-menu { display: none; } }
.rf-account {
  display: inline-grid; place-items: center;
  width: 36px; height: 36px; margin: 4px;
  background: var(--rf-accent-dim); color: var(--rf-accent-text);
  border: 1px solid var(--rf-line-strong); border-radius: var(--rf-radius-pill);
  font: inherit; font-weight: 700; cursor: pointer; padding: 0;
  transition: border-color var(--rf-dur-2) var(--rf-ease-out);
}
@media (hover: hover) { .rf-account:hover { border-color: var(--rf-accent); } }

/* ---------- Popover (family switcher, account menu) ---------- */
.rf-pop {
  position: absolute; inset-block-start: calc(100% + 8px); inset-inline-end: 0;
  width: min(360px, calc(100vw - 32px));
  z-index: var(--rf-z-drawer);
  padding: 16px;
  background: var(--rf-panel); color: var(--rf-text);
  border: 1px solid var(--rf-line-strong); border-radius: var(--rf-radius-md);
  box-shadow: var(--rf-shadow-2);
  opacity: 0; transform: scale(.98); transform-origin: top right;
  transition: opacity var(--rf-dur-2) var(--rf-ease-out), transform var(--rf-dur-2) var(--rf-ease-out);
}
[dir="rtl"] .rf-pop { transform-origin: top left; }
.rf-pop[hidden] { display: none; }
.rf-pop[data-open="true"] {
  opacity: 1; transform: none;
  transition-duration: var(--rf-dur-3);
}
.rf-pop[data-instant] { transition: none; }
.rf-pop--menu { width: min(260px, calc(100vw - 32px)); padding: 8px; }

.rf-switcher__title { margin: 0 0 12px; font-size: var(--rf-fs-sm); font-weight: 600; color: var(--rf-muted); }
.rf-switcher__grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px;
  margin: 0; padding: 0; list-style: none;
}
.rf-switcher__item {
  display: grid; align-content: start; gap: 8px;
  height: 100%; padding: 12px;
  color: var(--rf-text); text-decoration: none;
  background: var(--rf-panel-2); border-radius: var(--rf-radius-sm);
  transition: background-color var(--rf-dur-2) var(--rf-ease-out), transform var(--rf-dur-2) var(--rf-ease-out);
}
@media (hover: hover) { .rf-switcher__item:hover { background: var(--rf-hover); transform: translateY(-1px); } }
.rf-switcher__item[aria-current="page"] { box-shadow: 0 0 0 1px var(--rf-accent); }
.rf-switcher__name { font-family: var(--rf-font-latin); font-weight: 700; direction: ltr; text-align: start; }
/* Footer product rows: the Latin name (ltr) and the localized desc share one start edge */
.rf-family-row .rf-switcher__name { justify-self: start; unicode-bidi: isolate; }
.rf-switcher__desc { font-size: var(--rf-fs-xs); line-height: 1.5; color: var(--rf-muted); }
/* ---------- Drawer (native dialog) ---------- */
.rf-drawer {
  position: fixed; inset-block: 0; inset-inline-start: auto; inset-inline-end: 0;
  margin: 0; padding: 0;
  width: min(88vw, 360px); max-width: none; height: 100svh; max-height: none;
  background: var(--rf-panel); color: var(--rf-text);
  border: 0; border-inline-start: 1px solid var(--rf-line-strong);
  overflow-y: auto; overscroll-behavior: contain;
  transform: translateX(100%);
  transition: transform var(--rf-dur-2) var(--rf-ease-sheet), overlay var(--rf-dur-2) allow-discrete, display var(--rf-dur-2) allow-discrete;
}
[dir="rtl"] .rf-drawer { transform: translateX(-100%); }
.rf-drawer[open] { transform: none; transition-duration: var(--rf-dur-3); }
@starting-style {
  .rf-drawer[open] { transform: translateX(100%); }
  [dir="rtl"] .rf-drawer[open] { transform: translateX(-100%); }
}
.rf-drawer::backdrop {
  background: var(--rf-scrim);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity var(--rf-dur-2) var(--rf-ease-out), overlay var(--rf-dur-2) allow-discrete, display var(--rf-dur-2) allow-discrete;
}
.rf-drawer[open]::backdrop { opacity: 1; transition-duration: var(--rf-dur-3); }
@starting-style { .rf-drawer[open]::backdrop { opacity: 0; } }
.rf-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 8px 16px; min-height: var(--rf-header-h); border-block-end: 1px solid var(--rf-line); }
.rf-drawer__nav { display: grid; padding: 8px 8px 0; }
.rf-drawer__nav a {
  display: flex; align-items: center; min-height: 48px; padding-inline: 12px;
  color: var(--rf-text); text-decoration: none; border-radius: var(--rf-radius-sm);
  transition: background-color var(--rf-dur-2) var(--rf-ease-out);
}
.rf-drawer__nav a[aria-current="page"] { color: var(--rf-accent-text); }
@media (hover: hover) { .rf-drawer__nav a:hover { background: var(--rf-hover); } }
.rf-drawer__family { padding: 16px; }
.rf-drawer__family h2 { margin: 0 0 8px; font-size: var(--rf-fs-sm); font-weight: 600; color: var(--rf-muted); }
.rf-drawer__family .rf-switcher__grid { grid-template-columns: 1fr; gap: 4px; }
.rf-drawer__family .rf-switcher__item { grid-template-columns: auto 1fr; align-items: center; gap: 2px 12px; background: transparent; }
.rf-drawer__family .rf-switcher__item .rf-tile { grid-row: span 2; }
.rf-drawer__foot { display: grid; gap: 12px; padding: 16px; border-block-start: 1px solid var(--rf-line); }
.rf-scrim { background: var(--rf-scrim); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.rf-btn:disabled, .rf-btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; }
.rf-btn[aria-busy="true"] { cursor: progress; }
.rf-btn--secondary { background: var(--rf-panel); border-color: var(--rf-line-strong); }
.rf-btn--hero { padding-inline-end: 6px; gap: 16px; background: var(--rf-accent); color: var(--rf-on-accent); border-radius: var(--rf-radius-pill); min-height: 56px; padding-inline-start: 24px; }
.rf-btn--hero > .rf-btn__tile {
  display: inline-grid; place-items: center; width: 36px; height: 36px;
  background: var(--rf-on-accent); color: var(--rf-accent); border-radius: var(--rf-radius-pill);
  transition: transform var(--rf-dur-2) var(--rf-ease-out);
}
@media (hover: hover) { .rf-btn--hero:hover > .rf-btn__tile { transform: translateX(2px); } [dir="rtl"] .rf-btn--hero:hover > .rf-btn__tile { transform: translateX(-2px); } }
.rf-spinner {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid currentColor; border-inline-end-color: transparent;
  animation: rf-spin .7s linear infinite;
}
@keyframes rf-spin { to { transform: rotate(360deg); } }
a.rf-card, .rf-card--link {
  display: block; color: inherit; text-decoration: none;
  transition: transform var(--rf-dur-2) var(--rf-ease-out), border-color var(--rf-dur-2) var(--rf-ease-out);
}
@media (hover: hover) { a.rf-card:hover, .rf-card--link:hover { transform: translateY(-2px); border-color: var(--rf-line-input); } }
.rf-card--bezel { padding: 6px; background: var(--rf-panel-2); border-radius: var(--rf-radius-lg); border: 1px solid var(--rf-line); }
.rf-card--bezel > .rf-card__inner { background: var(--rf-panel); border-radius: calc(var(--rf-radius-lg) - 6px); height: 100%; }
.rf-card--product { border-block-start: 2px solid var(--rf-accent); }
.rf-input[aria-invalid="true"], .rf-select[aria-invalid="true"], .rf-textarea[aria-invalid="true"] { border-color: var(--rf-danger); }
.rf-help { margin-block-start: 6px; font-size: var(--rf-fs-xs); color: var(--rf-faint); }
.rf-error { display: flex; align-items: center; gap: 6px; margin-block-start: 6px; font-size: var(--rf-fs-xs); color: var(--rf-danger); }
.rf-badge--neutral { background: var(--rf-panel-2); color: var(--rf-muted); }
.rf-copyright { margin: 0; font-size: var(--rf-fs-sm); color: var(--rf-muted); }
/* ---------- Support FAB and panel (reyden.ir) ---------- */
.rf-fab {
  position: fixed;
  inset-block-end: max(24px, calc(env(safe-area-inset-bottom) + 16px)); inset-inline-end: 24px;
  z-index: var(--rf-z-fab);
  display: grid; place-items: center; width: 56px; height: 56px; padding: 0;
  background: var(--rf-accent-fill); color: var(--rf-on-accent);
  border: 0; border-radius: 50%; box-shadow: var(--rf-shadow-2); cursor: pointer;
  transition: transform var(--rf-dur-2) var(--rf-ease-out), opacity var(--rf-dur-2) var(--rf-ease-out);
}
@media (hover: hover) { .rf-fab:hover { transform: translateY(-2px); } }
.rf-fab:active { transform: scale(.96); transition-duration: var(--rf-dur-1); }
.rf-fab[data-hidden="true"] { opacity: 0; pointer-events: none; transform: translateY(8px); }

.rf-support {
  position: fixed; margin: 0; padding: 20px;
  inset-block: auto 0; inset-inline: 0; width: 100%; max-width: none; max-height: 85svh;
  background: var(--rf-panel); color: var(--rf-text);
  border: 1px solid var(--rf-line-strong); border-radius: var(--rf-radius-lg) var(--rf-radius-lg) 0 0;
  overflow-y: auto; overscroll-behavior: contain;
  transform: translateY(100%);
  transition: transform var(--rf-dur-2) var(--rf-ease-sheet), overlay var(--rf-dur-2) allow-discrete, display var(--rf-dur-2) allow-discrete;
}
.rf-support[open] { transform: none; transition-duration: var(--rf-dur-3); }
@starting-style { .rf-support[open] { transform: translateY(100%); } }
.rf-support::backdrop { background: var(--rf-scrim); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.rf-support h2 { margin: 0 0 12px; font-size: var(--rf-fs-lg); }
.rf-support a { display: flex; align-items: center; gap: 12px; min-height: 48px; color: var(--rf-text); text-decoration: none; }
@media (min-width: 768px) {
  .rf-support {
    inset-block: auto 96px; inset-inline: auto 24px; width: 320px;
    border-radius: var(--rf-radius-md);
    transform: scale(.98); opacity: 0; transform-origin: bottom right;
    transition: transform var(--rf-dur-2) var(--rf-ease-out), opacity var(--rf-dur-2) var(--rf-ease-out), overlay var(--rf-dur-2) allow-discrete, display var(--rf-dur-2) allow-discrete;
  }
  [dir="rtl"] .rf-support { transform-origin: bottom left; }
  .rf-support[open] { transform: none; opacity: 1; transition-duration: var(--rf-dur-3); }
  @starting-style { .rf-support[open] { transform: scale(.98); opacity: 0; } }
  .rf-support::backdrop { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* ---------- Modal (native dialog) ---------- */
.rf-modal {
  width: min(560px, calc(100vw - 32px)); max-width: none; max-height: 85dvh;
  margin: auto; padding: 16px;
  background: var(--rf-panel); color: var(--rf-text);
  border: 1px solid var(--rf-line-strong); border-radius: var(--rf-radius-lg); box-shadow: var(--rf-shadow-2);
  overflow-y: auto; overscroll-behavior: contain;
  opacity: 0; transform: scale(.98);
  transition: opacity var(--rf-dur-2) var(--rf-ease-out), transform var(--rf-dur-2) var(--rf-ease-out), overlay var(--rf-dur-2) allow-discrete, display var(--rf-dur-2) allow-discrete;
}
@media (min-width: 480px) { .rf-modal { padding: 24px; } }
.rf-modal[open] { opacity: 1; transform: none; transition-duration: var(--rf-dur-3); }
@starting-style { .rf-modal[open] { opacity: 0; transform: scale(.98); } }
.rf-modal::backdrop { background: var(--rf-scrim); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.rf-modal > header { position: relative; padding-inline-end: 52px; margin-block-end: 16px; }
.rf-modal > header h2 { margin: 0; font-size: var(--rf-fs-xl); line-height: var(--rf-lh-tight); }
.rf-modal__close { position: absolute; inset-block-start: 0; inset-inline-end: 0; }
.rf-modal > footer { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-block-start: 24px; }
@media (max-width: 767px) {
  .rf-modal, .rf-modal--sheet {
    width: 100%; margin: auto 0 0; max-width: none;
    border-radius: var(--rf-radius-lg) var(--rf-radius-lg) 0 0;
    opacity: 1; transform: translateY(100%);
    transition: transform var(--rf-dur-2) var(--rf-ease-sheet), overlay var(--rf-dur-2) allow-discrete, display var(--rf-dur-2) allow-discrete;
  }
  .rf-modal[open], .rf-modal--sheet[open] { transform: none; transition-duration: var(--rf-dur-3); }
  @starting-style { .rf-modal[open], .rf-modal--sheet[open] { transform: translateY(100%); } }
}

/* ---------- Toast ---------- */
.rf-toasts {
  position: fixed; inset-block-end: 24px; inset-inline-start: 24px;
  z-index: var(--rf-z-toast);
  display: flex; flex-direction: column; gap: 8px;
  width: min(360px, calc(100vw - 32px)); pointer-events: none;
}
.rf-toast {
  display: flex; align-items: flex-start; gap: 12px; pointer-events: auto;
  padding: 12px; padding-inline: 16px 8px;
  background: var(--rf-panel-2); color: var(--rf-text);
  border-radius: var(--rf-radius-md); box-shadow: var(--rf-shadow-2);
  animation: rf-toast-in var(--rf-dur-3) var(--rf-ease-out) both;
}
.rf-toast[data-leaving="true"] { opacity: 0; transition: opacity var(--rf-dur-2) var(--rf-ease-out); }
.rf-toast__icon { flex: none; margin-block-start: 2px; color: var(--rf-accent-text); }
.rf-toast--success .rf-toast__icon { color: var(--rf-success); }
.rf-toast--error .rf-toast__icon { color: var(--rf-danger); }
.rf-toast__text { flex: 1; font-size: var(--rf-fs-sm); line-height: 1.6; padding-block: 2px; }
.rf-toast__close { flex: none; }
@keyframes rf-toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.rf-skeleton--text { height: 1em; border-radius: var(--rf-radius-xs); }
.rf-skeleton--card { aspect-ratio: 4 / 3; width: 100%; border-radius: var(--rf-radius-md); }
.rf-skeleton--row { height: 48px; width: 100%; border-radius: var(--rf-radius-xs); }
.rf-skeleton--avatar { width: 36px; height: 36px; border-radius: 50%; }
@keyframes rf-shimmer { to { background-position: -200% 0; } }
/* ---------- Motion utilities ---------- */
.rf-reveal {
  opacity: 0; transform: translateY(var(--rf-rise));
  transition: opacity var(--rf-dur-4) var(--rf-ease-out), transform var(--rf-dur-4) var(--rf-ease-out);
  transition-delay: calc(min(var(--i, 0), 5) * var(--rf-stagger));
}
.rf-reveal.is-in { opacity: 1; transform: none; }
@keyframes rf-reveal-view { from { opacity: 0; transform: translateY(var(--rf-rise)); } to { opacity: 1; transform: none; } }
@supports (animation-timeline: view()) {
  .rf-reveal-view { animation: rf-reveal-view linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
}
.rf-stagger > * { transition-delay: calc(min(var(--i, 0), 5) * var(--rf-stagger)); }

.rf-lift { transition: transform var(--rf-dur-2) var(--rf-ease-out); }
@media (hover: hover) { .rf-lift:hover { transform: translateY(-2px); } }
.rf-press { transition: transform var(--rf-dur-1) var(--rf-ease-out); }
.rf-press:active { transform: scale(.98); }

.rf-underline {
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat; background-size: 0 1px; background-position: 0 100%;
  transition: background-size var(--rf-dur-2) var(--rf-ease-out);
  text-decoration: none;
}
[dir="rtl"] .rf-underline { background-position: 100% 100%; }
@media (hover: hover) { .rf-underline:hover { background-size: 100% 1px; } }
.rf-underline:focus-visible { background-size: 100% 1px; }

.rf-icon-nudge .rf-icon { transition: transform var(--rf-dur-2) var(--rf-ease-out); }
@media (hover: hover) {
  .rf-icon-nudge:hover .rf-icon { transform: translateX(2px); }
  [dir="rtl"] .rf-icon-nudge:hover .rf-icon { transform: translateX(-2px); }
  [dir="rtl"] .rf-icon-nudge:hover .rf-icon.rf-flip-rtl { transform: scaleX(-1) translateX(2px); }
}

.rf-zoom { overflow: clip; }
.rf-zoom img { transition: transform var(--rf-dur-4) var(--rf-ease-out); }
@media (hover: hover) { .rf-zoom:hover img { transform: scale(1.04); } }

.rf-clip-reveal { clip-path: inset(0 0 100% 0); transition: clip-path var(--rf-dur-4) var(--rf-ease-out); }
.rf-clip-reveal.is-in { clip-path: inset(0); }
@keyframes rf-clip-view { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }
@supports (animation-timeline: view()) {
  .rf-clip-reveal.rf-reveal-view { clip-path: none; animation: rf-clip-view linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
}

.rf-live-pulse { position: relative; }
.rf-live-pulse::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: 0 0 0 0 var(--rf-live);
  animation: rf-pulse 2.4s var(--rf-ease-out) infinite; pointer-events: none;
}
@keyframes rf-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--rf-live) 55%, transparent); } 70%, 100% { box-shadow: 0 0 0 12px transparent; } }

.rf-wave { display: inline-flex; align-items: center; gap: 3px; height: 16px; }
.rf-wave > i { display: block; width: 3px; height: 100%; background: currentColor; border-radius: 2px; transform-origin: center; animation: rf-wave 1.1s ease-in-out infinite; }
.rf-wave > i:nth-child(2) { animation-delay: .12s; }
.rf-wave > i:nth-child(3) { animation-delay: .24s; }
.rf-wave > i:nth-child(4) { animation-delay: .36s; }
.rf-wave > i:nth-child(5) { animation-delay: .48s; }
@keyframes rf-wave { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }

.rf-drop-active { outline: 2px dashed var(--rf-accent); outline-offset: -2px; animation: rf-dash 1s linear infinite; }
@keyframes rf-dash { to { outline-offset: -4px; } }

.rf-tilt { transform: perspective(800px) rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg)); transition: transform var(--rf-dur-3) var(--rf-ease-out); }

.rf-ground-swap { transition: background-color var(--rf-dur-5) var(--rf-ease-in-out), color var(--rf-dur-5) var(--rf-ease-in-out); }

/* CSS cube: fallback and emblem. Markup: .rf-cube > .rf-cube__face.rf-cube__face--f|b|r|l|t|d > 9 x <i> */
.rf-cube {
  --s: 120px;
  position: relative; width: var(--s); height: var(--s);
  transform-style: preserve-3d; transform: rotateX(-24deg) rotateY(32deg);
}
.rf-cube__face {
  position: absolute; inset: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); gap: calc(var(--s) / 24);
  transform: var(--face) translateZ(calc(var(--s) / 2));
  backface-visibility: hidden;
}
.rf-cube__face > i {
  display: block; border-radius: calc(var(--s) / 24);
  /* fixed graphite so the cube stays dark on Bone grounds too */
  background: #1D2026;
  border: 1px solid var(--rf-accent);
}
.rf-cube__face--t > i { background: color-mix(in srgb, #F3F1EA 6%, #1D2026); }
.rf-cube__face--f { --face: rotateY(0deg); }
.rf-cube__face--b { --face: rotateY(180deg); }
.rf-cube__face--r { --face: rotateY(90deg); }
.rf-cube__face--l { --face: rotateY(-90deg); }
.rf-cube__face--t { --face: rotateX(90deg); }
.rf-cube__face--d { --face: rotateX(-90deg); }
.rf-cube--spin { animation: rf-cube-spin 40s linear infinite; }
@keyframes rf-cube-spin { from { transform: rotateX(-24deg) rotateY(0deg); } to { transform: rotateX(-24deg) rotateY(360deg); } }

/* ---------- Reduced motion: final states, no loops ---------- */
@media (prefers-reduced-motion: reduce) {
  .rf-reveal, .rf-clip-reveal { opacity: 1; transform: none; clip-path: none; }
  .rf-reveal-view, .rf-clip-reveal.rf-reveal-view { animation: none; opacity: 1; clip-path: none; transform: none; }
  .rf-skeleton { animation: none; background-image: none; }
  .rf-live-pulse::after, .rf-wave > i, .rf-drop-active, .rf-cube--spin, .rf-spinner { animation: none; }
  .rf-wave > i { transform: scaleY(.65); }
  .rf-spinner { border-inline-end-color: currentColor; opacity: .6; }
  .rf-toast { animation: none; }
  .rf-tilt { transform: none; }
  .rf-btn:hover, .rf-lift:hover, a.rf-card:hover, .rf-fab:hover, .rf-switcher__item:hover { transform: none; }
  .rf-drawer, .rf-support, .rf-modal, .rf-pop { transition: none; }
}


/* ===== 15. F0 components (v3.1): page top offset, accent controls, toggle, accordion, support widget, seals, footer structure, breadcrumb, legal layout, chart tip, account menu, mobile menu ===== */

/* 15.1 Page top offset. --rf-nav-h = floating nav bottom edge (12 + 52) plus 12px air. Appbar sites (sticky 56px bar) use 56px. */
:root { --rf-nav-h: 76px; }
:root:has(.rf-appbar) { --rf-nav-h: 56px; }
html { scroll-padding-top: calc(var(--rf-nav-h) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
:root:has(.rf-nav-wrap) .rf-pt { padding-top: calc(var(--rf-nav-h) + 20px); } /* first block of every page without a full-bleed hero */

/* 15.2 Accent everywhere: native controls, caret, selection. */
:root, .rf-body { accent-color: var(--rf-accent-fill); caret-color: var(--rf-accent); }
.rf-body ::selection { background: color-mix(in srgb, var(--rf-accent-fill) 42%, var(--rf-bg)); color: var(--rf-text); }
.rf-input:focus-visible, .rf-select:focus-visible, .rf-textarea:focus-visible, .rf-input:focus, .rf-textarea:focus, .rf-select:focus { border-color: var(--rf-accent); box-shadow: var(--rf-focus); outline: none; }
.rf-check:focus-visible { box-shadow: var(--rf-focus); }
.rf-input:-webkit-autofill { -webkit-text-fill-color: var(--rf-text); box-shadow: 0 0 0 100px var(--rf-p-ink-4) inset; caret-color: var(--rf-accent); }

/* 15.3 Toggle (.rf-toggle; .rf-switch is the family switcher). The knob always sits inside the track. */
.rf-toggle { position: relative; display: inline-flex; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; font-size: .9375rem; }
.rf-toggle__in { position: absolute; inset-inline-start: 0; top: 50%; width: 46px; height: 28px; margin: -14px 0 0; opacity: 0; cursor: pointer; z-index: 1; }
.rf-toggle__track { position: relative; flex: none; width: 46px; height: 28px; border-radius: 999px; background: var(--rf-p-ink-4); border: 1px solid var(--rf-line-input); transition: background var(--rf-dur-2), border-color var(--rf-dur-2), box-shadow var(--rf-dur-2); }
.rf-toggle__track::after { content: ""; position: absolute; top: 50%; inset-inline-start: 3px; width: 20px; height: 20px; margin-top: -10px; border-radius: 50%; background: var(--rf-muted); box-shadow: 0 1px 3px rgb(0 0 0 / .4); transition: transform var(--rf-dur-2) var(--rf-ease-out), background var(--rf-dur-2); }
.rf-toggle__in:checked + .rf-toggle__track { background: var(--rf-accent-fill); border-color: var(--rf-accent-fill); }
.rf-toggle__in:checked + .rf-toggle__track::after { background: var(--rf-on-accent); transform: translateX(calc(18px * var(--rf-dir))); }
.rf-toggle__in:focus-visible + .rf-toggle__track { box-shadow: var(--rf-focus); }
.rf-toggle__in:disabled + .rf-toggle__track { opacity: .5; }
.rf-toggle__in:disabled { cursor: not-allowed; }
.rf-toggle__label { display: grid; line-height: 1.5; }
.rf-toggle__label small { color: var(--rf-muted); font-size: .8125rem; }
@media (hover: hover) and (pointer: fine) { .rf-toggle:hover .rf-toggle__track { border-color: var(--rf-muted); } .rf-toggle:hover .rf-toggle__in:checked + .rf-toggle__track { border-color: var(--rf-accent); } }

/* 15.4 Accordion. Height and chevron animate (family.js drives details.rf-acc, .rf-faq details, .rf-footer details, [data-acc] details). */
.rf-acc { border: 1px solid var(--rf-line); border-radius: 16px; background: var(--rf-panel); transition: border-color var(--rf-dur-2); }
.rf-acc > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; padding: 0 20px; cursor: pointer; font-weight: 600; list-style: none; }
.rf-acc > summary::-webkit-details-marker { display: none; }
.rf-acc > summary .ic, .rf-acc__chev { color: var(--rf-muted); transition: transform var(--rf-dur-2) var(--rf-ease-out); flex: none; }
.rf-acc[open] { border-color: var(--rf-line-strong); }
.rf-acc[open]:not(.is-closing) > summary .ic, .rf-acc[open]:not(.is-closing) > summary .rf-acc__chev { transform: rotate(180deg); }
.rf-acc__body { padding: 0 20px 18px; color: var(--rf-muted); }
details.is-anim { overflow: hidden; }
details > summary:focus-visible { border-radius: 12px; }

/* 15.5 Support widget. Root .rf-sup (data-popover), trigger .rf-sup__fab, panel .rf-sup__panel. Each row = link + copy button. */
.rf-sup { --rf-sup-size: 52px; position: fixed; z-index: var(--rf-z-fab); inset-block-end: max(16px, calc(env(safe-area-inset-bottom) + 8px)); inset-inline-end: 16px; transition: opacity var(--rf-dur-2), transform var(--rf-dur-2) var(--rf-ease-out); }
/* FIX4: the button steps aside (fades, not clickable) while the footer bottom row, a [data-sup-avoid] element or a text field is in its corner; family.js toggles .is-dodge */
.rf-sup.is-dodge:not(.is-open) { opacity: 0; transform: translateY(10px); pointer-events: none; }
/* pages reserve room under the last block so nothing ends beneath the button */
.rf-body:has(.rf-sup) .rf-footer { padding-bottom: calc(var(--rf-sup-size) + 28px + env(safe-area-inset-bottom)); }
.rf-sup__fab { display: grid; place-items: center; width: var(--rf-sup-size); height: var(--rf-sup-size); border-radius: 50%; color: var(--rf-text); background: color-mix(in srgb, var(--rf-accent-fill) 18%, rgb(8 11 17 / .86)); border: 1px solid color-mix(in srgb, var(--rf-accent) 70%, transparent); box-shadow: var(--rf-shadow-2), inset 0 0 14px -6px var(--rf-accent-glow); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: transform var(--rf-dur-2) var(--rf-ease-out), box-shadow var(--rf-dur-2), opacity var(--rf-dur-2); }
.rf-sup__fab .ic { width: 22px; height: 22px; color: var(--rf-accent); transition: transform var(--rf-dur-2) var(--rf-ease-out); }
.rf-sup__fab:active { transform: scale(.95); }
.rf-sup.is-open .rf-sup__fab .ic { transform: scale(.92); }
@media (hover: hover) and (pointer: fine) { .rf-sup__fab:hover { transform: translateY(-2px); box-shadow: var(--rf-shadow-3), inset 0 0 16px -4px var(--rf-accent-glow); } }
.rf-sup__fab:focus-visible { box-shadow: var(--rf-focus); }
.rf-sup__panel { position: absolute; inset-block-end: calc(100% + 12px); inset-inline-end: 0; width: min(344px, calc(100vw - 32px)); padding: 14px; border-radius: 22px; background: rgb(14 19 27 / .97); box-shadow: var(--rf-shadow-3), var(--rf-glass-hi); transform-origin: bottom right; visibility: hidden; opacity: 0; transform: translateY(10px) scale(.97); pointer-events: none; transition: opacity var(--rf-dur-2) var(--rf-ease-out), transform var(--rf-dur-2) var(--rf-ease-out), visibility 0s linear var(--rf-dur-2); }
[dir="rtl"] .rf-sup__panel { transform-origin: bottom left; }
.rf-sup.is-open .rf-sup__panel { visibility: visible; opacity: 1; transform: none; pointer-events: auto; transition-delay: 0s; }
.rf-sup__head { display: flex; align-items: center; gap: 12px; padding: 4px 4px 14px; }
.rf-sup__mark { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 14px; background: var(--rf-accent-dim); color: var(--rf-accent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--rf-accent) 35%, transparent); }
.rf-sup__title { display: grid; line-height: 1.45; min-width: 0; margin-inline-end: auto; }
.rf-sup__title b { font-size: 1rem; }
.rf-sup__title small { color: var(--rf-muted); font-size: .8125rem; }
.rf-sup__list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.rf-sup__row { display: flex; align-items: center; gap: 4px; border-radius: 14px; border: 1px solid var(--rf-line); background: rgb(255 255 255 / .03); transition: background var(--rf-dur-2), border-color var(--rf-dur-2); }
.rf-sup__row:hover { background: rgb(255 255 255 / .06); border-color: var(--rf-line-strong); }
.rf-sup__link { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; min-height: 52px; padding: 6px 10px; border-radius: 13px; }
.rf-sup__ico { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 10px; background: var(--rf-accent-dim); color: var(--rf-accent); transition: transform var(--rf-dur-2) var(--rf-ease-out); }
.rf-sup__row:hover .rf-sup__ico { transform: scale(1.08) rotate(-4deg); }
.rf-sup__txt { display: grid; line-height: 1.4; min-width: 0; }
.rf-sup__txt small { color: var(--rf-muted); font-size: .75rem; }
.rf-sup__txt b { font-size: .9375rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; direction: ltr; unicode-bidi: isolate; text-align: start; }
.rf-sup__copy, .rf-copy { display: grid; place-items: center; width: 40px; height: 40px; flex: none; margin-inline-end: 4px; border-radius: 10px; color: var(--rf-muted); transition: background var(--rf-dur-2), color var(--rf-dur-2); }
.rf-sup__copy:hover, .rf-copy:hover { background: var(--rf-hover); color: var(--rf-text); }
.rf-sup__copy .ic, .rf-copy .ic { width: 18px; height: 18px; }
.rf-sup__copy .ic + .ic, .rf-copy .ic + .ic { display: none; }
.rf-sup__copy.is-copied, .rf-copy.is-copied { color: var(--rf-success); }
.is-copied > .ic:first-child { display: none; }
.is-copied > .ic + .ic { display: block; animation: rf-pop var(--rf-dur-3) var(--rf-ease-out); }
@keyframes rf-pop { from { transform: scale(.4); opacity: 0; } }
.rf-sup__more { margin-top: 12px; width: 100%; }
.rf-sup__scrim { display: none; }
@media (max-width: 767px) {
  .rf-sup { --rf-sup-size: 46px; inset-inline-end: 12px; }
  .rf-sup__panel { position: fixed; inset-inline: 0; inset-block-end: 0; width: 100%; max-height: 85svh; overflow-y: auto; border-radius: 24px 24px 0 0; padding: 18px 16px max(18px, env(safe-area-inset-bottom)); transform: translateY(100%); transform-origin: bottom; }
  .rf-sup.is-open .rf-sup__panel { transform: none; }
  .rf-sup.is-open .rf-sup__fab { opacity: 0; pointer-events: none; }
  .rf-sup__scrim { display: block; position: fixed; inset: 0; background: var(--rf-scrim); opacity: 0; visibility: hidden; transition: opacity var(--rf-dur-2), visibility 0s linear var(--rf-dur-2); }
  .rf-sup.is-open .rf-sup__scrim { opacity: 1; visibility: visible; transition-delay: 0s; }
  .rf-sup__panel { z-index: 1; }
}

/* 15.6 Seals strip: a row that becomes a scroll-snap slider when it overflows. N seals, each with a designed fallback tile. */
.rf-seals { display: flex; gap: 14px; margin: 0; padding: 4px 2px 10px; list-style: none; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: var(--rf-line-strong) transparent; -webkit-overflow-scrolling: touch; }
.rf-seal { position: relative; flex: none; scroll-snap-align: start; width: 96px; height: 104px; border-radius: 16px; }
.rf-seal__a { display: grid; place-items: center; width: 100%; height: 100%; border-radius: inherit; background: rgb(255 255 255 / .04); border: 1px solid var(--rf-glass-line); box-shadow: var(--rf-glass-hi); transition: transform var(--rf-dur-2) var(--rf-ease-out), border-color var(--rf-dur-2), background var(--rf-dur-2); }
@media (hover: hover) and (pointer: fine) { .rf-seal__a:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--rf-accent) 55%, transparent); background: rgb(255 255 255 / .07); } }
.rf-seal__img { width: auto; height: 100%; max-width: 100%; object-fit: contain; border-radius: inherit; }
.rf-seal__fb { display: none; position: absolute; inset: 0; place-items: center; align-content: center; gap: 4px; text-align: center; border-radius: inherit; pointer-events: none; color: var(--rf-text); background: radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--rf-accent-fill) 22%, transparent), transparent 70%), var(--rf-raised); border: 1px solid color-mix(in srgb, var(--rf-accent) 35%, var(--rf-glass-line)); }
.rf-seal__fb::before { content: ""; position: absolute; inset: 5px; border-radius: 12px; border: 1px dashed var(--rf-line-strong); }
.rf-seal__fb .ic { width: 28px; height: 28px; color: var(--rf-accent); }
.rf-seal__fb b { font-size: .8125rem; line-height: 1.3; }
.rf-seal__fb small { font-size: .625rem; color: var(--rf-muted); line-height: 1.3; padding-inline: 8px; }
.rf-seal.is-failed .rf-seal__img { visibility: hidden; }
.rf-seal.is-failed .rf-seal__fb { display: grid; }
.rf-footer__seals { padding-bottom: 12px; }
/* FIX4: seals sit in the bottom footer row next to the copyright, compact (not a lone tile under the brand column) */
.rf-footer__bottom .rf-footer__seals { padding: 0; }
.rf-footer__bottom .rf-seals { padding: 0; overflow: visible; gap: 10px; }
.rf-footer__bottom .rf-seal { width: 52px; height: 57px; border-radius: 12px; }
.rf-footer__bottom .rf-seal__fb small { display: none; }
.rf-footer__bottom .rf-seal__fb::before { inset: 3px; border-radius: 9px; }
.rf-footer__bottom .rf-seal__fb .ic { width: 18px; height: 18px; }
.rf-footer__bottom .rf-seal__fb b { font-size: .6875rem; }
/* mirrored icons (.ic-dir) keep their flip on hover */
[dir="rtl"] .rf-acct__item:hover .ic-dir { transform: translateX(calc(2px * var(--rf-dir))) scaleX(-1); }

/* 15.7 Footer structure. Order on every site: brand | services (registry) | this site | support and contact | legal. Then seals, then the bottom bar. */
.rf-footer__grid--5 { grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)); gap: 40px; }
.rf-footer__contact li a { gap: 10px; }
.rf-footer__contact .ic { width: 18px; height: 18px; color: var(--rf-accent); }
.rf-footer__contact bdi { direction: ltr; unicode-bidi: isolate; }
@media (max-width: 1279px) { .rf-footer__grid--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .rf-footer__grid--5 .rf-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 1023px) { .rf-footer__grid--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .rf-footer__grid--5 { grid-template-columns: 1fr; gap: 0; } }

/* 15.8 Breadcrumb */
.rf-crumbs { margin-bottom: 20px; font-size: .8125rem; color: var(--rf-faint); }
.rf-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; list-style: none; margin: 0; padding: 0; }
.rf-crumbs li { display: inline-flex; align-items: center; gap: 8px; min-height: 28px; }
/* FIX4: physical borders so the chevron always points the way the trail reads: right in LTR, left in RTL (never down) */
.rf-crumbs li + li::before { content: ""; width: 6px; height: 6px; flex: none; border-top: 1.5px solid var(--rf-faint); border-right: 1.5px solid var(--rf-faint); border-left: 0; transform: rotate(45deg); opacity: .7; }
[dir="rtl"] .rf-crumbs li + li::before, html[lang="fa"] .rf-crumbs li + li::before { border-right: 0; border-left: 1.5px solid var(--rf-faint); transform: rotate(-45deg); }
.rf-crumbs a { color: var(--rf-muted); border-radius: 6px; transition: color var(--rf-dur-2); }
.rf-crumbs a:hover { color: var(--rf-text); }
.rf-crumbs [aria-current="page"] { color: var(--rf-text); font-weight: 600; }

/* 15.9 Legal / document layout */
.rf-legal { display: grid; grid-template-columns: 272px minmax(0, 1fr); gap: 56px; align-items: start; padding-block: 8px 96px; }
.rf-legal__toc { position: sticky; top: calc(var(--rf-nav-h) + var(--rf-toc-gap, 24px)); z-index: 1; max-height: calc(100svh - var(--rf-nav-h) - var(--rf-toc-gap, 24px) - 16px); overflow-y: auto; border-radius: 20px; padding: 6px; background: var(--rf-raised); border: 1px solid var(--rf-line); }
.rf-legal__toc > details > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 0 14px; list-style: none; font-size: .8125rem; font-weight: 700; color: var(--rf-muted); cursor: default; }
.rf-legal__toc > details > summary::-webkit-details-marker { display: none; }
.rf-legal__toc > details > summary .ic { display: none; transition: transform var(--rf-dur-2) var(--rf-ease-out); }
.rf-legal__list { display: grid; gap: 2px; margin: 0; padding: 2px 0 4px; list-style: none; }
.rf-legal__list a { position: relative; display: flex; align-items: flex-start; gap: 10px; padding: 9px 14px; border-radius: 12px; color: var(--rf-muted); font-size: .875rem; line-height: 1.55; transition: color var(--rf-dur-2), background var(--rf-dur-2); }
.rf-legal__list a:hover { color: var(--rf-text); background: rgb(255 255 255 / .04); }
.rf-legal__list a .rf-legal__n { display: grid; place-items: center; min-width: 24px; height: 24px; margin-top: 1px; border-radius: 8px; flex: none; background: rgb(255 255 255 / .05); font-size: .75rem; font-weight: 700; color: var(--rf-faint); transition: background var(--rf-dur-2), color var(--rf-dur-2); }
.rf-legal__list a.is-active { color: var(--rf-text); background: var(--rf-accent-dim); }
.rf-legal__list a.is-active::before { content: ""; position: absolute; inset-inline-start: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: var(--rf-accent); }
.rf-legal__list a.is-active .rf-legal__n { background: var(--rf-accent-fill); color: var(--rf-on-accent); }
.rf-legal__doc { max-width: 74ch; min-width: 0; }
.rf-legal__head { display: grid; gap: 12px; margin-bottom: 40px; }
.rf-legal__updated { color: var(--rf-faint); font-size: .8125rem; }
.rf-legal__sec { padding-block: 28px; border-top: 1px solid var(--rf-line); }
.rf-legal__sec:first-of-type { border-top: 0; padding-top: 0; }
.rf-legal__h { display: flex; align-items: center; gap: 14px; margin: 0 0 14px; font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem); font-weight: 700; line-height: 1.4; }
.rf-legal__num { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--rf-accent-dim); color: var(--rf-accent); font-size: .9375rem; font-weight: 800; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--rf-accent) 30%, transparent); }
/* FIX4: the section icon sits inline at the heading start (after the number tile), in a tile, not at the far edge */
.rf-legal__num { order: -2; }
.rf-legal__h > .ic { order: -1; flex: none; box-sizing: content-box; width: 20px; height: 20px; padding: 10px; border-radius: 12px; background: rgb(255 255 255 / .05); color: var(--rf-accent); }
.rf-legal__body { color: var(--rf-muted); line-height: 2; font-size: 1rem; }
html[lang="en"] .rf-legal__body { line-height: 1.75; }
.rf-legal__body > * + * { margin-top: 14px; }
.rf-legal__body ul { display: grid; gap: 8px; padding-inline-start: 22px; list-style: disc; }
.rf-legal__body ul li::marker { color: var(--rf-accent); }
.rf-legal__body strong, .rf-legal__body b { color: var(--rf-text); font-weight: 600; }
.rf-legal__body a { color: var(--rf-accent); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: color-mix(in srgb, var(--rf-accent) 40%, transparent); }
@media (max-width: 1023px) {
  .rf-legal { grid-template-columns: 1fr; gap: 24px; }
  .rf-legal__toc { position: relative; top: auto; max-height: none; overflow: visible; }
  .rf-legal__toc > details > summary { cursor: pointer; }
  .rf-legal__toc > details > summary .ic { display: block; }
  .rf-legal__toc > details[open]:not(.is-closing) > summary .ic { transform: rotate(180deg); }
}

/* 15.10 Chart tooltip (FIX4). Direction follows the page language (never the chart wrapper), the date and the value are separate lines and every
   dynamic part sits in its own <bdi>. Markup: .rf-chart-tip > .rf-chart-tip__label>bdi (date) + .rf-chart-tip__row > .rf-chart-tip__dot + .rf-chart-tip__name>bdi + .rf-chart-tip__val>bdi.
   ReyFamily.chartTip({date, name, value, unit}) builds it. */
.rf-chart-tip { display: grid; gap: 4px; min-width: 132px; padding: 10px 14px; border-radius: 12px; background: rgb(14 19 27 / .97); border: 1px solid var(--rf-line-strong); box-shadow: var(--rf-shadow-2); font-size: .8125rem; line-height: 1.5; pointer-events: none; direction: ltr; text-align: start; }
html[lang="fa"] .rf-chart-tip, [dir="rtl"] .rf-chart-tip { direction: rtl; }
.rf-chart-tip bdi { unicode-bidi: isolate; }
.rf-chart-tip__label { display: block; color: var(--rf-muted); }
.rf-chart-tip__row { display: flex; align-items: center; gap: 8px; }
.rf-chart-tip__name { color: var(--rf-muted); }
.rf-chart-tip__val { margin-inline-start: auto; padding-inline-start: 12px; color: var(--rf-text); font-size: 1rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.rf-chart-tip__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--rf-accent); flex: none; }
/* Smooth area sparkline (ReyStats style): ReyFamily.sparkline(values, opts) returns the svg. Never stepped, never thin bars. */
.rf-spark { display: block; width: 100%; height: 100%; overflow: visible; color: var(--rf-accent); }
.rf-spark__line { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.rf-spark__dot { fill: currentColor; stroke: rgb(14 19 27); stroke-width: 2; opacity: 0; transition: opacity var(--rf-dur-2); }
.rf-spark:hover .rf-spark__dot, .rf-spark:focus-visible .rf-spark__dot { opacity: 1; }

/* 15.11 Account menu. Same avatar, dropdown and signed-out button on every site. Open state = .is-open on .rf-acct. */
.rf-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.rf-avatar--lg { width: 44px; height: 44px; font-size: 1rem; }
.rf-acct { position: relative; }
.rf-acct__btn { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: 50%; }
.rf-acct__btn .rf-avatar { transition: box-shadow var(--rf-dur-2), background var(--rf-dur-2); }
@media (hover: hover) and (pointer: fine) { .rf-acct__btn:hover .rf-avatar { box-shadow: 0 0 0 4px var(--rf-accent-dim); } }
.rf-acct.is-open .rf-avatar { box-shadow: 0 0 0 4px var(--rf-accent-dim); }
.rf-acct__btn:focus-visible { box-shadow: var(--rf-focus); }
.rf-acct__menu { position: absolute; top: calc(100% + 12px); inset-inline-end: 0; width: min(300px, calc(100vw - 32px)); padding: 8px; border-radius: 20px; z-index: var(--rf-z-menu); background: rgb(14 19 27 / .97); box-shadow: var(--rf-shadow-3), var(--rf-glass-hi); visibility: hidden; opacity: 0; transform: translateY(-6px) scale(.98); transform-origin: top right; pointer-events: none; transition: opacity var(--rf-dur-2) var(--rf-ease-out), transform var(--rf-dur-2) var(--rf-ease-out), visibility 0s linear var(--rf-dur-2); }
[dir="rtl"] .rf-acct__menu { transform-origin: top left; }
.rf-acct.is-open .rf-acct__menu { visibility: visible; opacity: 1; transform: none; pointer-events: auto; transition-delay: 0s; }
.rf-acct__head { display: flex; align-items: center; gap: 12px; padding: 10px 10px 12px; margin-bottom: 6px; border-bottom: 1px solid var(--rf-line); }
.rf-acct__who { display: grid; line-height: 1.5; min-width: 0; }
.rf-acct__who b { font-size: .9375rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rf-acct__who small { color: var(--rf-muted); font-size: .8125rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; direction: ltr; unicode-bidi: isolate; text-align: start; }
.rf-acct__item { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 0 12px; border-radius: 12px; color: var(--rf-text); font-size: .9375rem; text-align: start; transition: background var(--rf-dur-2), color var(--rf-dur-2); }
.rf-acct__item .ic { color: var(--rf-muted); transition: color var(--rf-dur-2), transform var(--rf-dur-2) var(--rf-ease-out); }
.rf-acct__item:hover, .rf-acct__item:focus-visible { background: rgb(255 255 255 / .06); }
.rf-acct__item:hover .ic { color: var(--rf-accent); transform: translateX(calc(2px * var(--rf-dir))); }
.rf-acct__item--out:hover, .rf-acct__item--out:hover .ic { color: var(--rf-danger); }
.rf-acct__sep { height: 1px; margin: 6px 4px; border: 0; background: var(--rf-line); }

/* 15.12 Family mobile menu sheet (FIX4, one build for all four sites). Root .rf-mmenu[data-popover] sits in .rf-nav__end; open state = .is-open on the root.
   The panel is a full-screen opaque sheet. Order inside: head (lockup + close), apps switcher, site links, account, language, support. */
.rf-mmenu { position: relative; }
.rf-mmenu__panel { position: fixed; inset: 0; z-index: var(--rf-z-drawer); display: flex; flex-direction: column; gap: 22px; overflow-y: auto; overscroll-behavior: contain; padding: max(14px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom)); background: rgb(11 15 22); background-image: radial-gradient(70% 40% at 50% 0%, var(--rf-accent-dim), transparent 70%); visibility: hidden; opacity: 0; transform: translateY(-10px); pointer-events: none; transition: opacity var(--rf-dur-2) var(--rf-ease-out), transform var(--rf-dur-2) var(--rf-ease-out), visibility 0s linear var(--rf-dur-2); }
.rf-mmenu.is-open .rf-mmenu__panel { visibility: visible; opacity: 1; transform: none; pointer-events: auto; transition-delay: 0s; }
html:has(.rf-mmenu.is-open) { overflow: hidden; }
html:has(.rf-mmenu.is-open) .rf-body { overflow: hidden; } /* FIX4b: body scroll lock while the sheet is open (iOS needs the body too) */
.rf-mmenu__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; }
.rf-mmenu__sec { display: grid; gap: 8px; }
.rf-mmenu__h { margin: 0; padding-inline: 4px; color: var(--rf-faint); font-size: .75rem; font-weight: 700; letter-spacing: .04em; }
.rf-mmenu__sec .rf-switch__items { display: grid; gap: 2px; }
.rf-mmenu__sec .rf-switch__item { min-height: 56px; }
.rf-mmenu__links { display: grid; gap: 2px; }
.rf-mmenu__links .rf-nav__link, .rf-mmenu__out { display: flex; align-items: center; gap: 12px; height: 52px; width: 100%; padding: 0 14px; justify-content: flex-start; border-radius: 14px; font-size: 1.0625rem; }
.rf-mmenu__links .rf-nav__link::after { display: none; }
.rf-mmenu__links .rf-nav__link[aria-current="page"] { background: var(--rf-accent-dim); color: var(--rf-text); }
.rf-mmenu__acct { display: grid; gap: 4px; }
.rf-mmenu__acct .rf-acct__item { min-height: 48px; }
.rf-mmenu__lang { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-inline: 4px; }
.rf-nav .rf-mmenu .rf-langseg { display: inline-flex; }
.rf-mmenu__support { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 8px 12px; border-radius: 16px; border: 1px solid var(--rf-line); background: rgb(255 255 255 / .03); transition: background var(--rf-dur-2), border-color var(--rf-dur-2); }
.rf-mmenu__support:hover { background: rgb(255 255 255 / .06); border-color: var(--rf-line-strong); }
.rf-mmenu__support .rf-sup__ico { flex: none; }
.rf-mmenu__out { background: none; border: 0; cursor: pointer; font: inherit; font-size: 1.0625rem; color: var(--rf-muted); }
.rf-mmenu__out:hover { color: var(--rf-danger); }
.rf-mmenu.is-open .rf-mmenu__sec, .rf-mmenu.is-open .rf-mmenu__links, .rf-mmenu.is-open .rf-mmenu__acct, .rf-mmenu.is-open .rf-mmenu__lang, .rf-mmenu.is-open .rf-mmenu__support { animation: rf-rise var(--rf-dur-3) var(--rf-ease-out) both; }
.rf-mmenu.is-open .rf-mmenu__links { animation-delay: 60ms; } .rf-mmenu.is-open .rf-mmenu__acct { animation-delay: 110ms; } .rf-mmenu.is-open .rf-mmenu__lang { animation-delay: 150ms; } .rf-mmenu.is-open .rf-mmenu__support { animation-delay: 190ms; }
@media (max-width: 1023px) {
  .rf-menubtn { display: inline-grid; }
  /* a backdrop-filter on .rf-nav would trap the fixed sheet inside the pill: move the glass to a pseudo layer below 1024px */
  .rf-nav { position: relative; isolation: isolate; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .rf-nav::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%); }
}
@media (min-width: 1024px) { .rf-mmenu { display: none; } }

@media (prefers-reduced-motion: reduce) {
  .rf-toggle__track::after, .rf-sup__panel, .rf-acct__menu, .rf-mmenu__panel, .rf-sup__fab, .rf-seal__a { transition-duration: 1ms !important; }
  .rf-mmenu.is-open * { animation: none !important; }
}

/* 15.13 Family 404 (FIX4b, one layout for all four sites; each site keeps a real HTTP 404).
   Markup: .rf-404-page (+ .rf-404-page--top on a bare main) > .rf-404 > [img.rf-404__obj] + p.rf-404__num[dir=ltr][aria-hidden] + h1 + p.rf-404__line + .rf-404__acts[data-sup-avoid] (primary + ghost) + optional .rf-404__extra (site extras: live list, switcher, drop tile). */
.rf-404-page { min-height: 60svh; display: grid; place-items: center; padding: 24px var(--rf-gutter, 16px) 64px; }
.rf-404-page--top { padding-top: calc(var(--rf-nav-h, 76px) + 24px); } /* use when the page wrapper is a bare <main> with no nav offset of its own */
.rf-404 { display: grid; gap: 14px; justify-items: center; text-align: center; width: min(100%, 520px); position: relative; animation: rf-rise var(--rf-dur-3) var(--rf-ease-out) both; }
.rf-404__obj { width: clamp(120px, 28vw, 180px); height: auto; animation: rf-404-float 6s ease-in-out infinite; }
.rf-404__num { margin: 0; font-family: var(--rf-font-display-en); font-weight: 800; font-size: clamp(4.5rem, 18vw, 8rem); line-height: 1; letter-spacing: -.03em; color: var(--rf-accent); direction: ltr; unicode-bidi: isolate; font-variant-numeric: tabular-nums; }
.rf-404 h1 { margin: 0; font-size: 1.5rem; font-weight: 700; line-height: 1.5; text-wrap: balance; }
.rf-404__line { margin: 0; color: var(--rf-muted); line-height: 1.9; max-width: 44ch; }
.rf-404__acts { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 6px; }
.rf-404__extra { width: 100%; margin-top: 18px; text-align: start; }
@keyframes rf-404-float { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-10px) rotate(3deg); } }
@media (prefers-reduced-motion: reduce) { .rf-404, .rf-404__obj { animation: none; } }
