/* ============================================================
   ريع — Ray Estates · platform landing page
   WARM HOSPITALITY edition · RTL-first · terracotta + sand + cream
   Palette: clay #A95740 · sand #E7D5BE · cream #FCFAF6 · charcoal #352B27
   ============================================================ */

:root {
  /* brand */
  --clay: #A95740;           /* primary / accent */
  --clay-2: #BE6A50;
  --clay-deep: #8A4433;
  --clay-tint: #F3E4DC;      /* soft terracotta wash */
  --sand: #E7D5BE;           /* secondary */
  --sand-soft: #F3E9DA;

  /* canvas */
  --bg: #FCFAF6;             /* cream page */
  --bg-2: #F6EEE2;           /* sand panel (.soft sections) */
  --surface: #FFFFFF;        /* cards */
  --line: #ECE1D0;           /* sand hairline */
  --line-2: #E2D4BF;

  /* text */
  --ink: #352B27;            /* charcoal — headings & body */
  --ink-soft: #4C4039;
  --muted: #8C7C6E;

  --white: #FFFFFF;
  --radius: 18px;
  --radius-sm: 13px;
  --radius-lg: 26px;
  --maxw: 1200px;
  --shadow-sm: 0 2px 10px rgba(53,43,39,.05);
  --shadow: 0 24px 60px -32px rgba(90,58,42,.35);
  --shadow-lg: 0 44px 100px -44px rgba(90,58,42,.42);
  --font: "Tajawal", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Cairo", "Tajawal", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.ray {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* :where() keeps these resets at zero specificity so component classes (e.g. .ray-btn-primary) win */
:where(.ray) a { color: inherit; text-decoration: none; }
:where(.ray) img { max-width: 100%; display: block; }
:where(.ray) ul { list-style: none; }
.ray h1, .ray h2, .ray h3, .ray h4 { font-family: var(--font-head); }
.ray-wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; position: relative; }
.ray ::selection { background: rgba(169,87,64,.18); color: var(--clay-deep); }

/* ---- shared bits ---- */
.ray-eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13px; font-weight: 700; letter-spacing: .2px;
  color: var(--clay-deep); background: var(--clay-tint);
  padding: 8px 16px; border-radius: 100px; border: 1px solid #ECD6CC;
}
.ray-eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--clay);
  box-shadow: 0 0 0 4px rgba(169,87,64,.14); }
.ray-h2 { font-size: clamp(28px, 3.6vw, 44px); font-weight: 800; line-height: 1.25; letter-spacing: -.5px; color: var(--ink); }
.ray-lead { color: var(--ink-soft); font-size: 16.5px; max-width: 640px; }
.ray-center { text-align: center; }
.ray-center .ray-lead { margin-inline: auto; }

.ray-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-head); font-size: 15.5px; font-weight: 700; cursor: pointer;
  padding: 14px 28px; border-radius: 100px; border: 1.5px solid transparent;
  transition: transform .2s ease, box-shadow .25s ease, background .2s ease, color .2s, border-color .2s;
  white-space: nowrap;
}
.ray-btn svg { width: 18px; height: 18px; }
.ray-btn-primary { background: var(--clay); color: #fff; box-shadow: 0 16px 34px -14px rgba(169,87,64,.55); }
.ray-btn-primary:hover { background: var(--clay-deep); transform: translateY(-2px); color: #fff; box-shadow: 0 22px 44px -16px rgba(138,68,51,.6); }
.ray-btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.ray-btn-ghost:hover { border-color: var(--clay); color: var(--clay-deep); transform: translateY(-2px); }
.ray-btn-gold { background: var(--ink); color: #fff; }
.ray-btn-gold:hover { transform: translateY(-2px); color: #fff; background: #2a221f; }
.ray-btn-light { background: #fff; color: var(--clay-deep); }
.ray-btn-light:hover { transform: translateY(-2px); color: var(--clay-deep); }

/* ---- reveal (GSAP-driven; CSS only hides to prevent FOUC) ---- */
.gsap-on .ray-reveal:not(.is-in) { opacity: 0; }
.ray-reveal.is-in { opacity: 1 !important; transform: none !important; }

/* ============================================================
   header
   ============================================================ */
.ray-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(252,250,246,.82);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.ray-header.is-stuck { border-color: var(--line); background: rgba(252,250,246,.92);
  box-shadow: 0 12px 34px -26px rgba(90,58,42,.4); }
.ray-nav { display: flex; align-items: center; gap: 28px; height: 78px; }
.ray-brand { display: flex; align-items: center; gap: 12px; }
.ray-brand .mark { width: 44px; height: 44px; flex: 0 0 auto; filter: drop-shadow(0 8px 16px rgba(169,87,64,.22)); }
/* bilingual lockup: [mark] ريع │ RAY/ESTATES — horizontal, so Cairo's deep «ع» descender never meets the Latin */
.ray-brand .word { display: flex; align-items: center; gap: 11px; line-height: 1; }
.ray-brand .word b { font-family: var(--font-head); font-size: 29px; font-weight: 800; line-height: 1; color: var(--ink); letter-spacing: 0; /* never track Arabic */ position: relative; top: -2px; /* optical: lift the descender-heavy word */ }
.ray-brand .word .sep { width: 1px; height: 24px; background: var(--line-2); flex: none; }
.ray-brand .word .latin { font-family: "Inter", sans-serif; font-size: 8.5px; font-weight: 600; line-height: 1.35; letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted); text-align: left; }
.ray-menu { display: flex; align-items: center; gap: 2px; margin-inline-start: auto; }
.ray-menu a { font-size: 15px; font-weight: 600; color: var(--ink-soft); padding: 9px 15px; border-radius: 10px; transition: color .18s, background .18s; }
.ray-menu a:hover { color: var(--clay-deep); background: var(--clay-tint); }
.ray-nav-actions { display: flex; align-items: center; gap: 11px; }
.ray-lang select {
  font-family: var(--font); font-size: 14px; font-weight: 600; color: var(--ink-soft);
  border: 1.4px solid var(--line-2); background: var(--surface); border-radius: 100px;
  padding: 9px 13px; cursor: pointer;
}
.ray-burger { display: none; width: 46px; height: 46px; border-radius: 13px; border: 1.4px solid var(--line-2); background: var(--surface); cursor: pointer; align-items: center; justify-content: center; }
.ray-burger span { display: block; width: 20px; height: 2px; background: var(--ink); position: relative; }
.ray-burger span::before, .ray-burger span::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--ink); }
.ray-burger span::before { top: -6px; } .ray-burger span::after { top: 6px; }

/* ============================================================
   hero — centered, warm cream
   ============================================================ */
.ray-hero { position: relative; padding: 58px 0 46px; overflow: hidden; }
.ray-hero-aura { position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(900px 540px at 50% -8%, rgba(169,87,64,.12), transparent 62%),
    radial-gradient(620px 420px at 86% 8%, rgba(231,213,190,.5), transparent 60%),
    radial-gradient(620px 420px at 10% 14%, rgba(231,213,190,.4), transparent 60%); }
.ray-hero::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(138,68,51,.06) 1px, transparent 1px); background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(72% 60% at 50% 32%, #000, transparent 75%);
  mask-image: radial-gradient(72% 60% at 50% 32%, #000, transparent 75%); }
.ray-hero .ray-wrap { position: relative; z-index: 1; }

.ray-hero-head { max-width: 860px; margin: 0 auto; text-align: center; }
.ray-hero-head .ray-eyebrow { margin-bottom: 24px; }
.ray-hero h1 { font-family: var(--font-head); font-size: clamp(38px, 5.6vw, 66px); font-weight: 800; line-height: 1.15; letter-spacing: -1px; color: var(--ink); }
.ray-hero h1 .hl { color: var(--clay); position: relative; white-space: nowrap; }
.ray-hero h1 .hl::after { content: ""; position: absolute; inset-inline: -2px; bottom: .08em; height: .32em; background: var(--sand); z-index: -1; border-radius: 4px; }
.ray-hero p.sub { font-size: clamp(16px,1.6vw,19px); color: var(--ink-soft); max-width: 680px; margin: 22px auto 0; }
.ray-hero-cta { display: flex; flex-wrap: wrap; gap: 13px; justify-content: center; margin: 34px 0 22px; }
.ray-hero-points { display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: center; }
.ray-hero-points li { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.ray-hero-points svg { width: 18px; height: 18px; color: var(--clay); flex: 0 0 auto; }

/* ---- wide product showcase (light app window) ---- */
.ray-showcase { position: relative; max-width: 1000px; margin: 44px auto 0; perspective: 1500px; }
.ray-show-glow { position: absolute; inset: -6% -4% -16%; z-index: 0; pointer-events: none;
  background: radial-gradient(60% 70% at 50% 25%, rgba(169,87,64,.16), transparent 70%),
              radial-gradient(42% 55% at 82% 90%, rgba(231,213,190,.5), transparent 70%);
  filter: blur(8px); }
.ray-window { position: relative; z-index: 1; border-radius: 20px; overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow-lg); will-change: transform; }
.ray-window-bar { display: flex; align-items: center; gap: 14px; padding: 13px 18px;
  border-bottom: 1px solid var(--line); background: var(--bg-2); }
.ray-window-bar .dots { display: flex; gap: 7px; }
.ray-window-bar .dots i { width: 11px; height: 11px; border-radius: 50%; background: #E0CFB8; display: block; }
.ray-window-bar .url { margin-inline: auto; display: inline-flex; align-items: center; gap: 7px; direction: ltr;
  font-size: 12.5px; font-weight: 600; color: var(--muted);
  background: var(--surface); border: 1px solid var(--line); border-radius: 100px; padding: 6px 16px; }
.ray-window-bar .url svg { width: 14px; height: 14px; color: var(--clay); }

.ray-app { display: grid; grid-template-columns: 62px 1fr; min-height: 338px; }
.ray-app-side { background: var(--bg-2); border-inline-end: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 18px 0; }
.ray-app-logo { width: 36px; height: 36px; border-radius: 11px; display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--clay-2), var(--clay-deep));
  box-shadow: 0 8px 20px -8px rgba(169,87,64,.6); }
.ray-app-side .s-dot { width: 22px; height: 7px; border-radius: 100px; background: #E0CFB8; }
.ray-app-side .s-dot.active { background: var(--clay); width: 26px; box-shadow: 0 0 12px rgba(169,87,64,.4); }
.ray-app-main { padding: 20px 22px 22px; }
.ray-app-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.ray-app-top b { display: block; font-family: var(--font-head); font-size: 16px; font-weight: 800; color: var(--ink); }
.ray-app-top small { color: var(--muted); font-size: 12.5px; }
.ray-app-live { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; color: #2E7D52;
  background: rgba(46,125,82,.1); border: 1px solid rgba(46,125,82,.22); border-radius: 100px; padding: 6px 13px; }
.ray-app-live i { width: 7px; height: 7px; border-radius: 50%; background: #2E7D52; animation: rayPulse 1.8s infinite; }
@keyframes rayPulse { 0%,100% { opacity: 1; box-shadow: 0 0 0 0 rgba(46,125,82,.5); } 50% { opacity: .5; box-shadow: 0 0 0 5px rgba(46,125,82,0); } }

.ray-app-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-bottom: 16px; }
.ray-app-stats .st { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 13px 14px; position: relative; overflow: hidden; }
.ray-app-stats .st .k { display: block; font-size: 11.5px; color: var(--muted); font-weight: 600; }
.ray-app-stats .st .v { display: block; font-family: var(--font-head); font-size: 23px; font-weight: 800; color: var(--ink); line-height: 1.3; letter-spacing: -.5px; }
.ray-app-stats .st.gold .v { color: var(--clay); }
.ray-app-stats .spark { display: flex; align-items: flex-end; gap: 3px; height: 22px; margin-top: 2px; }
.ray-app-stats .spark i { flex: 1; border-radius: 3px; background: linear-gradient(180deg, var(--clay), rgba(169,87,64,.25)); }
.ray-app-stats .spark.g i { background: linear-gradient(180deg, var(--sand), rgba(231,213,190,.3)); }

.ray-app-list { display: grid; gap: 10px; }
.ray-app-list .bk { display: flex; align-items: center; gap: 13px; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 12px 15px; }
.ray-app-list .bk-ic { width: 40px; height: 40px; border-radius: 11px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center;
  background: var(--clay-tint); color: var(--clay); }
.ray-app-list .bk-ic svg { width: 21px; height: 21px; }
.ray-app-list .bk-info { flex: 1; min-width: 0; }
.ray-app-list .bk-info b { display: block; font-size: 14px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ray-app-list .bk-info small { color: var(--muted); font-size: 12px; }
.ray-app-list .bk-amt { font-family: var(--font-head); font-size: 14.5px; font-weight: 800; color: var(--ink); white-space: nowrap; }
.ray-app-list .bk-amt small { font-size: 11px; color: var(--muted); font-weight: 700; }
.ray-app-list .bk-st { font-size: 11.5px; font-weight: 800; padding: 5px 11px; border-radius: 100px; white-space: nowrap; }
.ray-app-list .bk-st.ok { color: #2E7D52; background: rgba(46,125,82,.12); border: 1px solid rgba(46,125,82,.24); }

/* floating glass chips */
.ray-chip { position: absolute; z-index: 3; display: flex; align-items: center; gap: 11px;
  background: #fff; border-radius: 15px; padding: 12px 15px; border: 1px solid var(--line);
  box-shadow: 0 24px 50px -18px rgba(90,58,42,.4); animation: rayFloat 5s ease-in-out infinite; }
.ray-chip b { display: block; font-size: 13.5px; font-weight: 800; color: var(--ink); white-space: nowrap; }
.ray-chip small { color: var(--muted); font-size: 11.5px; font-weight: 600; }
.ray-chip-ic { width: 38px; height: 38px; border-radius: 11px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; }
.ray-chip-ic svg { width: 20px; height: 20px; }
.ray-chip-ic.wa { background: #25D366; color: #fff; }
.ray-chip-ic.gold { background: var(--clay); color: #fff; }
.ray-chip.wa { top: -5%; inset-inline-start: -5%; }
.ray-chip.pay { bottom: -4%; inset-inline-end: -4%; animation-delay: 1.4s; }
@keyframes rayFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* ============================================================
   payments / trust strip
   ============================================================ */
.ray-strip { padding: 26px 0 8px; }
.ray-strip p { text-align: center; font-size: 12px; font-weight: 700; letter-spacing: 1.5px; color: var(--muted); margin-bottom: 20px; text-transform: uppercase; }
.ray-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.ray-pill { font-size: 14px; font-weight: 700; color: var(--ink-soft); background: var(--surface); border: 1px solid var(--line); border-radius: 100px; padding: 9px 20px; transition: border-color .2s, color .2s; white-space: nowrap; }
.ray-pill:hover { border-color: var(--clay); color: var(--clay-deep); }
.ray-marquee { position: relative; overflow: hidden; margin-top: 8px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.ray-marquee-track { display: flex; gap: 12px; width: max-content; animation: rayMarquee 34s linear infinite; }
.ray-marquee:hover .ray-marquee-track { animation-play-state: paused; }
@keyframes rayMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ray-marquee-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; } .ray-marquee { -webkit-mask-image: none; mask-image: none; } }

/* ============================================================
   section base
   ============================================================ */
.ray-sec { padding: 104px 0; position: relative; }
.ray-sec.soft { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ray-sec-head { max-width: 700px; margin: 0 auto 56px; text-align: center; }
.ray-sec-head .ray-eyebrow { margin-bottom: 18px; }
.ray-sec-head p { margin-top: 14px; }

/* ============================================================
   white-label banner
   ============================================================ */
.ray-wl { position: relative; overflow: hidden; color: #F7ECE3;
  background: radial-gradient(760px 440px at 14% 0%, rgba(190,106,80,.5), transparent 62%),
              radial-gradient(640px 420px at 92% 100%, rgba(231,213,190,.22), transparent 60%),
              linear-gradient(135deg, #7A3B2C 0%, #4A2A20 100%); }
.ray-wl::after { content: ""; position: absolute; inset: 0; opacity: .4; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px); background-size: 24px 24px; }
.ray-wl .ray-wrap { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; padding-block: 86px; }
.ray-wl h2 { color: #fff; font-family: var(--font-head); font-size: clamp(27px, 3.5vw, 42px); font-weight: 800; line-height: 1.28; letter-spacing: -.5px; }
.ray-wl p { color: #E9D6C9; font-size: 17px; margin-top: 16px; }
.ray-wl-list { display: grid; gap: 15px; margin-top: 28px; }
.ray-wl-list li { display: flex; align-items: flex-start; gap: 13px; font-size: 15.5px; color: #F7ECE3; font-weight: 600; }
.ray-wl-list .ic { width: 28px; height: 28px; border-radius: 9px; background: rgba(231,213,190,.2); color: var(--sand); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; margin-top: 2px; }
.ray-wl-list svg { width: 15px; height: 15px; }
.ray-wl-card { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.15); border-radius: var(--radius-lg); padding: 28px; backdrop-filter: blur(8px); box-shadow: var(--shadow); }
.ray-wl-card .bar { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; }
.ray-wl-card .bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.25); }
.ray-wl-chip { display: flex; align-items: center; gap: 11px; background: #fff; color: var(--ink); border-radius: 13px; padding: 13px 16px; font-weight: 800; }
.ray-wl-chip .logo { width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(135deg,var(--clay-2),var(--clay-deep)); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; }
.ray-wl-url { direction: ltr; text-align: center; margin-top: 16px; font-weight: 700; color: #EAD6C8; font-size: 14px; letter-spacing: .4px; }
.ray-wl-ph { margin-top: 20px; height: 11px; border-radius: 6px; background: rgba(255,255,255,.14); }
.ray-wl-ph.s { width: 60%; margin-top: 11px; }

/* ============================================================
   features
   ============================================================ */
.ray-feat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ray-feat .card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s; box-shadow: var(--shadow-sm); }
.ray-feat .card:hover { transform: translateY(-6px); border-color: #EAD0C4; box-shadow: 0 30px 60px -34px rgba(90,58,42,.4); }
.ray-feat .ic { width: 54px; height: 54px; border-radius: 15px; background: var(--clay-tint); color: var(--clay); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; border: 1px solid #EFD9CF; }
.ray-feat .ic svg { width: 26px; height: 26px; }
.ray-feat h3 { font-size: 19px; font-weight: 800; margin-bottom: 9px; color: var(--ink); }
.ray-feat p { color: var(--ink-soft); font-size: 15px; }

/* ============================================================
   themes showcase
   ============================================================ */
.ray-themes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.ray-theme { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .25s, box-shadow .25s, border-color .25s; box-shadow: var(--shadow-sm); }
.ray-theme:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: #EAD0C4; }
.ray-theme .shot { height: 230px; overflow: hidden; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.ray-theme .shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: object-position 3.5s ease; }
.ray-theme:hover .shot img { object-position: bottom; }
.ray-theme .meta { padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ray-theme .meta h3 { font-size: 18px; font-weight: 800; color: var(--ink); }
.ray-theme .meta span { font-size: 13.5px; color: var(--muted); font-weight: 600; }
.ray-theme .tag { font-size: 12px; font-weight: 800; color: var(--clay-deep); background: var(--clay-tint); border: 1px solid #EFD9CF; padding: 5px 12px; border-radius: 100px; }

/* ============================================================
   steps
   ============================================================ */
.ray-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.ray-step { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; box-shadow: var(--shadow-sm); }
.ray-step .n { width: 50px; height: 50px; border-radius: 15px; background: linear-gradient(135deg,var(--clay-2),var(--clay-deep)); color: #fff; font-family: var(--font-head); font-size: 21px; font-weight: 800; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; box-shadow: 0 12px 26px -12px rgba(169,87,64,.6); }
.ray-step h3 { font-size: 19px; font-weight: 800; margin-bottom: 9px; color: var(--ink); }
.ray-step p { color: var(--ink-soft); font-size: 15px; }

/* ============================================================
   pricing
   ============================================================ */
.ray-toggle { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 100px; padding: 5px; gap: 4px; margin: 0 auto 42px; box-shadow: var(--shadow-sm); }
.ray-toggle button { font-family: var(--font-head); font-size: 14.5px; font-weight: 700; color: var(--ink-soft); border: none; background: transparent; padding: 10px 24px; border-radius: 100px; cursor: pointer; transition: all .2s; }
.ray-toggle button.active { background: var(--clay); color: #fff; box-shadow: 0 10px 24px -12px rgba(169,87,64,.7); }
.ray-plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: stretch; }
.ray-plans.cols-3 { grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 1100px) { .ray-plans { grid-template-columns: repeat(2, 1fr); } }
.ray-plan { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-lg); padding: 34px 30px; display: flex; flex-direction: column; position: relative; transition: transform .25s, border-color .25s; box-shadow: var(--shadow-sm); }
.ray-plan:hover { transform: translateY(-4px); }
.ray-plan.pop { border-color: var(--clay); background: linear-gradient(180deg, var(--clay-tint), var(--surface));
  box-shadow: 0 40px 90px -46px rgba(169,87,64,.5); }
.ray-plan .pop-badge { position: absolute; top: -13px; inset-inline-start: 30px; background: var(--clay); color: #fff; font-size: 12.5px; font-weight: 800; padding: 6px 15px; border-radius: 100px; box-shadow: 0 10px 22px -10px rgba(169,87,64,.7); }
.ray-plan h3 { font-size: 20px; font-weight: 800; color: var(--ink); }
.ray-plan .desc { color: var(--muted); font-size: 14px; margin: 4px 0 18px; }
.ray-plan .price { display: flex; align-items: baseline; gap: 6px; margin: 14px 0 22px; }
.ray-plan .price b { font-family: var(--font-head); font-size: 40px; font-weight: 800; letter-spacing: -1.5px; color: var(--ink); white-space: nowrap; }
.ray-plan .price b small { font-size: 16px; font-weight: 700; color: var(--muted); letter-spacing: 0; margin-inline-start: 5px; }
.ray-plan .price b.price-custom { font-size: 26px; letter-spacing: -.5px; }
.ray-plan .price span { color: var(--muted); font-size: 14.5px; font-weight: 600; }
.ray-plan ul { display: grid; gap: 13px; margin-bottom: 28px; }
.ray-plan ul li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; color: var(--ink-soft); }
.ray-plan ul svg { width: 18px; height: 18px; color: var(--clay); flex: 0 0 auto; margin-top: 3px; }
.ray-plan .ray-btn { margin-top: auto; width: 100%; }

/* ============================================================
   faq
   ============================================================ */
.ray-faq { max-width: 840px; margin: 0 auto; display: grid; gap: 13px; }
.ray-q { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; transition: border-color .2s, box-shadow .2s; box-shadow: var(--shadow-sm); }
.ray-q[open] { border-color: #EAD0C4; }
.ray-q summary { list-style: none; cursor: pointer; padding: 21px 24px; font-family: var(--font-head); font-weight: 700; font-size: 16.5px; color: var(--ink); display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.ray-q summary::-webkit-details-marker { display: none; }
.ray-q summary .chev { width: 24px; height: 24px; flex: 0 0 auto; color: var(--clay); transition: transform .3s; }
.ray-q[open] summary .chev { transform: rotate(180deg); }
.ray-q .a { padding: 0 24px 22px; color: var(--ink-soft); font-size: 15px; }

/* ============================================================
   final CTA
   ============================================================ */
.ray-cta-band { padding: 0 0 104px; }
.ray-cta-inner { position: relative; overflow: hidden; border-radius: var(--radius-lg); text-align: center; color: #fff; padding: 72px 28px;
  background: radial-gradient(640px 340px at 80% 0%, rgba(231,213,190,.28), transparent 60%),
              radial-gradient(560px 340px at 12% 100%, rgba(190,106,80,.45), transparent 60%),
              linear-gradient(135deg, #A95740 0%, #7A3B2C 100%);
  box-shadow: var(--shadow-lg); }
.ray-cta-inner::after { content: ""; position: absolute; inset: 0; opacity: .4; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.1) 1px, transparent 1px); background-size: 22px 22px; }
.ray-cta-inner > * { position: relative; z-index: 2; }
.ray-cta-inner h2 { color: #fff; font-family: var(--font-head); font-size: clamp(28px, 3.8vw, 46px); font-weight: 800; letter-spacing: -.8px; }
.ray-cta-inner p { color: #F3E3D8; font-size: 17.5px; margin: 16px auto 30px; max-width: 560px; }
.ray-cta-actions { display: flex; flex-wrap: wrap; gap: 13px; justify-content: center; }

/* ============================================================
   footer
   ============================================================ */
.ray-footer { background: #2E2521; color: #CBBDB2; padding: 76px 0 0; border-top: 1px solid #efe3d4; }
.ray-footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.2fr; gap: 44px; }
.ray-footer .ray-brand .word b { color: #fff; }
.ray-footer .ray-brand .word .latin { color: #A8988B; }
.ray-footer .ray-brand .word .sep { background: rgba(255,255,255,.2); }
.ray-footer .about { margin-top: 20px; max-width: 330px; font-size: 14.5px; color: #A8988B; }
.ray-footer h4 { color: #fff; font-family: var(--font-head); font-size: 16px; font-weight: 800; margin-bottom: 20px; }
.ray-footer-links { display: grid; gap: 12px; }
.ray-footer-links a { font-size: 14.5px; color: #BEAEA1; transition: color .18s; }
.ray-footer-links a:hover { color: var(--sand); }
.ray-contact li { display: flex; align-items: flex-start; gap: 11px; font-size: 14.5px; color: #BEAEA1; margin-bottom: 14px; }
.ray-contact svg { width: 18px; height: 18px; color: var(--clay-2); flex: 0 0 auto; margin-top: 3px; }
.ray-social { display: flex; gap: 10px; margin-top: 22px; }
.ray-social a { width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; color: #CBBDB2; transition: all .2s; }
.ray-social a:hover { background: var(--clay); color: #fff; border-color: var(--clay); transform: translateY(-2px); }
.ray-social svg { width: 18px; height: 18px; }
.ray-copy { margin-top: 60px; border-top: 1px solid rgba(255,255,255,.08); padding: 24px 0; text-align: center; font-size: 13.5px; color: #9C8B7E; }
.ray-copy span { color: #BEAEA1; }

/* ============================================================
   mobile menu
   ============================================================ */
.ray-mobile { position: fixed; inset: 0; z-index: 80; background: rgba(53,43,39,.4); opacity: 0; pointer-events: none; transition: opacity .25s; backdrop-filter: blur(3px); }
.ray-mobile.open { opacity: 1; pointer-events: auto; }
.ray-mobile-panel { position: absolute; inset-inline-end: 0; top: 0; height: 100%; width: min(84%, 340px); background: var(--bg); border-inline-start: 1px solid var(--line); padding: 24px; transform: translateX(100%); transition: transform .3s ease; display: flex; flex-direction: column; gap: 6px; }
[dir="rtl"] .ray-mobile-panel { transform: translateX(-100%); }
.ray-mobile.open .ray-mobile-panel { transform: none; }
.ray-mobile-panel a.m-link { font-size: 16px; font-weight: 700; color: var(--ink); padding: 14px 10px; border-radius: 10px; }
.ray-mobile-panel a.m-link:hover { background: var(--clay-tint); color: var(--clay-deep); }
.ray-mobile-panel .ray-btn { margin-top: 6px; }
.ray-mobile-close { align-self: flex-end; width: 44px; height: 44px; border-radius: 13px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 20px; cursor: pointer; margin-bottom: 10px; }

/* ============================================================
   word-mask split (GSAP headline reveal)
   ============================================================ */
.ray-hero h1 .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .14em; margin-bottom: -.14em; }
.ray-hero h1 .i { display: inline-block; will-change: transform; }

/* responsive hardening — prevent mobile overflow without breaking desktop caps */
html, body.ray { overflow-x: clip; }
.ray-app, .ray-app-main, .ray-app-side, .ray-app-top, .ray-app-stats,
.ray-app-list, .ray-app-list .bk, .ray-app-stats .st { min-width: 0; }
.ray-window { max-width: 100%; }
.ray-window-bar .url { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ray-hero h1, .ray-hero p.sub { overflow-wrap: break-word; }

/* mobile performance: drop GPU-heavy backdrop blur for smoother scrolling */
@media (max-width: 760px) {
  .ray-header, .ray-eyebrow, .ray-wl-card, .ray-mobile, .ray-lang select {
    -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  }
  .ray-header { background: rgba(252,250,246,.96); }
}

/* ============================================================
   responsive
   ============================================================ */
@media (max-width: 991px) {
  .ray-menu, .ray-nav-actions .ray-lang, .ray-nav-actions .d-desk { display: none; }
  .ray-burger { display: flex; }
  .ray-wl .ray-wrap { grid-template-columns: 1fr; gap: 40px; }
  .ray-feat, .ray-themes, .ray-steps, .ray-plans { grid-template-columns: 1fr 1fr; }
  .ray-footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
  .ray-showcase { max-width: 640px; }
  .ray-chip.wa { inset-inline-start: 0; }
  .ray-chip.pay { inset-inline-end: 0; }
}
@media (max-width: 640px) {
  .ray-sec { padding: 72px 0; }
  .ray-feat, .ray-themes, .ray-steps, .ray-plans, .ray-footer-grid { grid-template-columns: 1fr; }
  .ray-hero { padding: 44px 0 40px; }
  .ray-app-stats { grid-template-columns: 1fr; }
  .ray-app-stats .st { display: flex; align-items: center; justify-content: space-between; }
  .ray-app-stats .spark { display: none; }
  .ray-app-list .bk-st { display: none; }
  .ray-chip.wa { top: 6%; }
  .ray-chip small { display: none; }
}
@media (max-width: 460px) {
  .ray-app { grid-template-columns: 1fr; }
  .ray-app-side { flex-direction: row; justify-content: center; border-inline-end: none; border-bottom: 1px solid var(--line); padding: 12px 0; }
  .ray-chip.wa { inset-inline-start: 2%; transform: scale(.9); }
  .ray-chip.pay { inset-inline-end: 2%; transform: scale(.9); }
}
