/* RADIANT — sales engine components (chat, dialogs, calculator, available units, landing pages). Uses the site's tokens. */

/* ---------- chat ---------- */
.rchat { position: fixed; z-index: 85; bottom: 22px; inset-inline-end: 22px; font-family: var(--f-body); }
html[lang="ar"] .rchat { font-family: var(--f-ar); }
.rchat__launch { width: 56px; height: 56px; border-radius: 50%; border: 0; cursor: pointer; background: var(--charcoal-d); color: var(--white);
  display: grid; place-items: center; box-shadow: 0 10px 28px rgba(0,0,0,.32); transition: transform .3s var(--ease-out); position: relative; }
.rchat__launch:hover { transform: translateY(-3px) scale(1.05); }
.rchat__launch svg { width: 24px; height: 24px; }
.rchat__dot { position: absolute; top: 6px; inset-inline-end: 6px; width: 11px; height: 11px; border-radius: 50%; background: #5fbf7f; border: 2px solid var(--charcoal-d); }
.rchat.is-open .rchat__launch { transform: scale(.9); }
.rchat__panel { position: absolute; bottom: 70px; inset-inline-end: 0; width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100vh - 120px));
  display: flex; flex-direction: column; background: var(--paper); color: var(--ink); border-radius: 18px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.rchat__panel[hidden] { display: none; }
.rchat__head { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; background: var(--charcoal-d); color: var(--white); }
.rchat__head strong { display: block; font-size: 15px; font-weight: 500; }
.rchat__head small { opacity: .7; font-size: 12px; }
.rchat__close { background: none; border: 0; color: inherit; font-size: 26px; line-height: 1; cursor: pointer; padding: 0 4px; }
.rchat__log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.rchat__msg { max-width: 85%; padding: 10px 14px; border-radius: 14px; font-size: 14px; line-height: 1.6; white-space: pre-wrap; word-wrap: break-word; }
.rchat__msg--company { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-end-start-radius: 4px; }
.rchat__msg--me { align-self: flex-end; background: var(--charcoal); color: var(--white); border-end-end-radius: 4px; }
.rchat__msg--note { align-self: center; background: transparent; color: var(--muted); font-size: 12px; text-align: center; }
.rchat__msg--typing { align-self: flex-start; color: var(--muted); font-size: 12px; font-style: italic; }
.rchat__actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.rchat__actions .btn { padding: 10px 16px; font-size: 12px; }
.rchat__chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 10px; }
.rchat__chips:empty { display: none; }
.rchat__chips button { border: 1px solid var(--sand); background: transparent; color: var(--ink); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 13px; cursor: pointer; }
.rchat__chips button:hover { background: var(--sand); color: var(--white); }
.rchat__form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); background: #fff; }
.rchat__form[hidden] { display: none; }
.rchat__form textarea { flex: 1; resize: none; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font: inherit; font-size: 14px; max-height: 110px; background: var(--paper); color: var(--ink); }
.rchat__form button { border: 0; border-radius: 10px; background: var(--sand-d); color: #fff; padding: 0 16px; font: inherit; font-size: 13px; cursor: pointer; }
.rchat__note { margin: 0; padding: 6px 14px 10px; font-size: 10.5px; color: var(--muted); background: #fff; }
@media (max-width: 720px) { .rchat { bottom: 16px; inset-inline-end: 16px; } .rchat__launch { width: 50px; height: 50px; } .rchat__panel { bottom: 62px; } }

/* ---------- dialogs ---------- */
.rmodal { position: fixed; inset: 0; margin: auto; height: fit-content; max-height: calc(100vh - 32px); overflow: auto; border: 0; padding: 0; border-radius: 18px; width: min(440px, calc(100vw - 32px)); background: var(--paper); color: var(--ink); box-shadow: 0 30px 80px rgba(0,0,0,.4); }
.rmodal::backdrop { background: rgba(22,20,19,.55); backdrop-filter: blur(3px); }
.rmodal__form { display: grid; gap: 14px; padding: 30px 26px 24px; position: relative; }
.rmodal__form h3 { margin: 0; font-family: var(--f-display); font-size: 28px; font-weight: 400; }
html[lang="ar"] .rmodal__form h3 { font-family: var(--f-ar); font-size: 22px; }
.rmodal__form p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.rmodal__x { position: absolute; top: 10px; inset-inline-end: 14px; background: none; border: 0; font-size: 28px; cursor: pointer; color: var(--muted); }
.rmodal__hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; opacity: 0; }
.rmodal__consent { color: var(--muted); font-size: 11px; line-height: 1.5; }
.rmodal .btn { justify-self: start; }

/* ---------- calculator ---------- */
.rcalc-section { background: var(--charcoal-d); color: var(--white); }
.rcalc__head .display { margin-top: 18px; }
.rcalc__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px); margin-top: 40px; align-items: start; }
.rcalc__label { font-size: 10px; letter-spacing: .3em; text-transform: uppercase; opacity: .7; margin: 18px 0 10px; }
html[lang="ar"] .rcalc__label { letter-spacing: 0; font-size: 13px; }
.rcalc__chips, .rcalc__cur { display: flex; flex-wrap: wrap; gap: 8px; }
.rcalc__chips button, .rcalc__cur button { border: 1px solid var(--line-l); background: transparent; color: inherit; border-radius: 999px; padding: 9px 16px; font: inherit; font-size: 14px; cursor: pointer; transition: .25s; }
.rcalc__chips button.is-on, .rcalc__cur button.is-on { background: var(--sand); border-color: var(--sand); color: var(--black); }
.rcalc__cur { margin-top: 22px; }
.rcalc__out { background: rgba(238,236,229,.06); border: 1px solid var(--line-l); border-radius: 18px; padding: clamp(20px, 3vw, 34px); }
.rcalc__out dl { margin: 0; display: grid; gap: 14px; }
.rcalc__out dl div { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line-l); padding-bottom: 12px; }
.rcalc__out dt { opacity: .75; }
.rcalc__out dd { margin: 0; font-size: 18px; text-align: end; }
.rcalc__out dd small { display: block; font-size: 12px; opacity: .7; }
.rcalc__note { font-size: 12px; opacity: .65; margin: 16px 0 0; line-height: 1.6; }
.rcalc__cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.rcalc-section .btn--ghost, .lp-dark .btn--ghost { color: var(--white); border-color: var(--line-l); }
@media (max-width: 860px) { .rcalc__grid { grid-template-columns: 1fr; } }

/* ---------- available units ---------- */
.runits { margin-top: 26px; border-top: 1px solid var(--line); padding-top: 18px; }
.runits h4 { margin: 0 0 12px; font-weight: 500; font-size: 14px; letter-spacing: .04em; }
.runits ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.runits li { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.runits .btn { padding: 9px 14px; font-size: 11px; }
.runits p { color: var(--muted); font-size: 13px; }
.rbrochure { margin-top: 14px; margin-inline-start: 10px; }
.contact__info .rbrochure { margin-inline-start: 0; }

/* ---------- landing pages ---------- */
.lp { background: var(--paper); color: var(--ink); min-height: 100vh; }
.lp-bar { position: sticky; top: 0; z-index: 50; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 14px var(--gutter); background: rgba(22,20,19,.92); color: var(--white); backdrop-filter: blur(6px); }
.lp-bar img { height: 30px; width: auto; }
.lp-bar nav { display: flex; gap: 10px; }
.lp-bar a { color: inherit; text-decoration: none; font-size: 14px; }
.lp-hero { position: relative; min-height: min(78vh, 760px); display: grid; align-items: end; color: var(--white); overflow: hidden; }
.lp-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lp-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(22,20,19,.15) 0%, rgba(22,20,19,.82) 100%); }
.lp-hero__body { position: relative; z-index: 1; padding: 0 var(--gutter) clamp(36px, 7vw, 80px); max-width: 860px; }
.lp-hero h1 { font-family: var(--f-display); font-weight: 400; font-size: clamp(38px, 6vw, 76px); line-height: 1.05; margin: 14px 0 18px; }
html[lang="ar"] .lp-hero h1 { font-family: var(--f-ar); font-size: clamp(30px, 5vw, 56px); line-height: 1.3; }
.lp-hero p { font-size: clamp(16px, 1.6vw, 19px); line-height: 1.7; opacity: .9; max-width: 640px; }
.lp-hero .lp-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.lp-hero .btn--ghost { color: var(--white); border-color: var(--line-l); }
.lp-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); }
.lp-facts div { background: var(--paper); padding: 26px var(--gutter); }
.lp-facts b { display: block; font-family: var(--f-display); font-size: 40px; font-weight: 400; }
html[lang="ar"] .lp-facts b { font-family: var(--f-ar); font-size: 30px; }
.lp-facts small { color: var(--muted); }
.lp-section { padding: clamp(50px, 8vw, 100px) var(--gutter); }
.lp-dark { background: var(--charcoal-d); color: var(--white); }
.lp-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 80px); align-items: start; max-width: 1240px; margin: 0 auto; }
.lp-points { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.lp-points li { padding-inline-start: 28px; position: relative; line-height: 1.7; }
.lp-points li::before { content: ""; position: absolute; inset-inline-start: 0; top: .7em; width: 14px; height: 1px; background: var(--sand); }
.lp-form { background: #fff; color: var(--ink); border-radius: 18px; padding: clamp(22px, 3vw, 36px); display: grid; gap: 16px; box-shadow: 0 20px 50px rgba(0,0,0,.12); }
.lp-form h2 { margin: 0; font-weight: 500; font-size: 22px; }
.lp-form .btn { justify-self: start; }
.lp-sticky { display: none; }
@media (max-width: 860px) {
  .lp-grid { grid-template-columns: 1fr; }
  .lp-facts { grid-template-columns: repeat(2, 1fr); }
  .lp-sticky { display: grid; grid-template-columns: 1fr 1fr; position: fixed; bottom: 0; inset-inline: 0; z-index: 80; background: var(--black); }
  .lp-sticky a { color: var(--white); text-align: center; padding: 15px 8px; font-size: 14px; text-decoration: none; }
  .lp-sticky a + a { background: #1f8f4e; }
  .lp .rchat { bottom: 70px; }
  .lp { padding-bottom: 52px; }
}
.lp-foot { padding: 30px var(--gutter); font-size: 12px; color: var(--muted); display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between; }
.lp-foot a { color: inherit; }

/* ---------- brokers page ---------- */
.brokers { padding: calc(var(--header-h) + 60px) var(--gutter) 90px; max-width: 1240px; margin: 0 auto; }
.brokers .lp-grid { margin-top: 30px; }
