/* Roomexa website — brand tokens come from the app's sign-in screen (plum, ink, amber on cream) */
@font-face { font-family: "Vazirmatn"; src: url("fonts/Vazirmatn-wght.woff2") format("woff2-variations"), url("fonts/Vazirmatn-wght.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --plum: #2b1846; --plum-2: #3a2262; --plum-3: #50308a;
  --ink: #23163a; --ink-2: #4a3e60; --muted: #6f6485;
  --amber: #eb9a3c; --amber-2: #d3801f; --amber-soft: #fdf1e1;
  --cream: #fbf8f3; --tint: #f6f2fa; --surface: #ffffff; --line: #ebe4f1; --line-2: #f1ecf6;
  --lilac: #efe8f8; --lilac-ink: #5b3a96;
  --shadow: 0 1px 2px rgba(35, 22, 58, .05), 0 10px 30px rgba(35, 22, 58, .07);
  --shadow-lg: 0 30px 80px rgba(20, 8, 40, .35);
  --r: 20px; --r-sm: 12px;
  --wrap: 1180px;
  --font: "Vazirmatn", "Segoe UI", Tahoma, system-ui, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.9; }
:lang(en) body, body:lang(en) { line-height: 1.7; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.45; margin: 0; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
.ic { width: 20px; height: 20px; flex: none; }
[dir="rtl"] .flip { transform: scaleX(-1); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }
mark.todo { background: #fff3a8; color: #6b4a00; border: 1px dashed #d4a300; border-radius: 6px; padding: 0 .35em; font-weight: 600; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 24px; border-radius: 14px; font-weight: 700; font-size: 15px; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 14px; border-radius: 12px; }
.btn-amber { background: var(--amber); color: #fff; box-shadow: 0 12px 24px rgba(235, 154, 60, .3); }
.btn-amber:hover { background: var(--amber-2); }
.btn-ghost { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .28); }
.btn-ghost:hover { background: rgba(255, 255, 255, .16); }
.btn-line { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-line:hover { border-color: var(--amber); color: var(--amber-2); }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 50; background: rgba(251, 248, 243, .86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.top.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(35, 22, 58, .06); }
.top-in { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.brand img { width: 150px; }
.nav { display: flex; gap: 6px; margin-inline-end: auto; }
.nav a { text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 10px; }
.nav a:hover { color: var(--ink); background: var(--lilac); }
.top-act { display: flex; align-items: center; gap: 12px; }
.langs { display: flex; align-items: center; gap: 2px; padding: 4px 6px 4px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--muted); }
[dir="rtl"] .langs { padding: 4px 10px 4px 6px; }
.langs .ic { width: 16px; height: 16px; margin-inline-end: 4px; }
.langs a, .langs span { min-width: 30px; height: 30px; display: inline-grid; place-items: center; border-radius: 8px; font-size: 13px; font-weight: 700; text-decoration: none; padding: 0 6px; }
.langs a:hover { background: var(--lilac); color: var(--ink); }
.langs span { background: var(--plum); color: #fff; }
.menu-btn { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); place-items: center; cursor: pointer; }
.menu-btn .shut { display: none; }
.menu-btn[aria-expanded="true"] .open { display: none; }
.menu-btn[aria-expanded="true"] .shut { display: block; }

/* ---------- hero ---------- */
.hero { position: relative; overflow-x: clip; background: radial-gradient(1200px 600px at 50% -10%, var(--plum-3), transparent 60%), linear-gradient(180deg, var(--plum-2), var(--plum)); color: #fff; padding: 84px 0 0; text-align: center; }
.hero-bg { position: absolute; inset: 0; background: url("img/login-room.webp") center 60% / cover no-repeat; opacity: .22; mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .55) 45%, transparent 85%); -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .55) 45%, transparent 85%); }
.hero-in { position: relative; }
.eyebrow { display: inline-block; margin: 0 0 14px; color: var(--amber-2); font-weight: 800; font-size: 14px; letter-spacing: .02em; }
.eyebrow-light { color: var(--amber); }
.hero h1 { font-size: clamp(32px, 5vw, 56px); font-weight: 900; max-width: 900px; margin-inline: auto; line-height: 1.35; }
.hero h1 em { font-style: normal; color: var(--amber); display: block; }
.hero-lead { font-size: clamp(17px, 2vw, 20px); color: rgba(255, 255, 255, .82); margin: 20px auto 32px; max-width: 640px; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 56px; }
.shot { margin: 0; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.shot-bar { display: flex; gap: 6px; padding: 10px 14px; background: #f3eff8; border-bottom: 1px solid var(--line); direction: ltr; }
.shot-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d9cfe6; }
.shot-bar i:first-child { background: #f39a8f; } .shot-bar i:nth-child(2) { background: #f5c66b; } .shot-bar i:nth-child(3) { background: #8bd3a2; }
.shot-hero { max-width: 1080px; margin: 0 auto -150px; box-shadow: var(--shadow-lg); border-color: rgba(255, 255, 255, .25); position: relative; }

/* ---------- benefits ---------- */
.benefits { padding: 190px 0 40px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.benefit { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 26px 24px; box-shadow: var(--shadow); }
.benefit h3 { font-size: 18px; margin: 16px 0 6px; }
.benefit p { color: var(--muted); font-size: 15px; margin: 0; }
.tile { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--lilac); color: var(--lilac-ink); }
.tile .ic { width: 24px; height: 24px; }
.benefit:nth-child(2) .tile, .service:nth-child(3n+2) .tile { background: var(--amber-soft); color: var(--amber-2); }
.benefit:nth-child(3) .tile, .service:nth-child(3n) .tile { background: #e3f4ee; color: #17805e; }

/* ---------- sections ---------- */
.sec { padding: 96px 0; }
.sec-tint { background: var(--tint); }
.sec-head { margin-bottom: 40px; }
.sec-head.center { text-align: center; max-width: 780px; margin-inline: auto; margin-bottom: 52px; }
.sec-head h2 { font-size: clamp(26px, 3.2vw, 38px); font-weight: 900; }
.sec-head .lead { margin: 16px 0 0; color: var(--ink-2); font-size: 17px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 56px; align-items: center; }
.split-top { align-items: start; grid-template-columns: 1fr 1fr; }
.split-text > p { color: var(--ink-2); font-size: 16.5px; }
.split-text .sec-head { margin-bottom: 20px; }
.link-more { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--amber-2); text-decoration: none; margin-top: 8px; }
.link-more:hover { gap: 12px; }

/* 8 features around the mark, after the doc's pyramid reference */
.orbit { display: grid; grid-template-columns: 1fr 300px 1fr; gap: 32px; align-items: center; }
.orbit-side { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.orbit-side li { display: flex; gap: 16px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 18px 20px; box-shadow: var(--shadow); }
.orbit-side h3 { font-size: 17px; }
.orbit-side p { margin: 2px 0 0; color: var(--muted); font-size: 14.5px; }
.ic.dot { width: 44px; height: 44px; padding: 11px; border-radius: 50%; background: var(--plum); color: #fff; }
.orbit-core { position: relative; aspect-ratio: 1; display: grid; place-items: center; }
.ring { position: absolute; border-radius: 50%; inset: 0; }
.ring.r3 { background: radial-gradient(circle, rgba(80, 48, 138, .10), rgba(80, 48, 138, .02) 70%); border: 1px dashed rgba(80, 48, 138, .25); }
.ring.r2 { inset: 16%; background: rgba(80, 48, 138, .10); }
.ring.r1 { inset: 31%; background: var(--surface); box-shadow: 0 18px 40px rgba(43, 24, 70, .2); }
.orbit-core img { position: relative; width: 64px; }

/* generations timeline */
.eras { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; }
.eras::before { content: ""; position: absolute; top: 31px; inset-inline: 12%; height: 2px; background: linear-gradient(90deg, var(--line), var(--amber)); }
[dir="rtl"] .eras::before { background: linear-gradient(270deg, var(--line), var(--amber)); }
.era { position: relative; text-align: center; padding: 0 8px; }
.era-ic { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 2px solid var(--line); color: var(--muted); position: relative; }
.era-ic .ic { width: 26px; height: 26px; }
.era-years { display: inline-block; font-size: 13px; font-weight: 800; color: var(--lilac-ink); background: var(--lilac); padding: 2px 12px; border-radius: 99px; margin-bottom: 10px; }
.era h3 { font-size: 18px; margin-bottom: 8px; }
.era p { color: var(--muted); font-size: 15px; margin: 0; }
.era-now .era-ic { background: var(--amber); border-color: var(--amber); color: #fff; box-shadow: 0 12px 26px rgba(235, 154, 60, .35); }
.era-now .era-years { background: var(--amber-soft); color: var(--amber-2); }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: stretch; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 28px 24px; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.plan h3 { font-size: 22px; font-weight: 900; }
.plan-price { color: var(--muted); font-weight: 600; font-size: 14.5px; margin: 4px 0 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line-2); }
.plan ul { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 9px; flex: 1; }
.plan li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; line-height: 1.6; }
.plan li .ic { width: 18px; height: 18px; color: #17805e; margin-top: 2px; }
.plan li.off { color: #b2a9c0; }
.plan li.off .ic { color: #cfc6dc; }
.plan li.off span { text-decoration: line-through; text-decoration-color: rgba(178, 169, 192, .5); }
.plan .btn { width: 100%; }
.plan-top { background: linear-gradient(180deg, var(--plum-2), var(--plum)); color: #fff; border-color: var(--plum); box-shadow: var(--shadow-lg); }
.plan-top .plan-price { color: rgba(255, 255, 255, .7); border-color: rgba(255, 255, 255, .14); }
.plan-top li .ic { color: var(--amber); }
.note { text-align: center; color: var(--muted); margin: 28px auto 0; max-width: 760px; font-size: 15px; }

/* counters */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.stat { aspect-ratio: 1; border-radius: 50%; border: 3px solid var(--lilac); background: var(--surface); display: grid; place-content: center; text-align: center; box-shadow: var(--shadow); }
.stat b { font-size: clamp(26px, 3vw, 36px); font-weight: 900; color: var(--plum); line-height: 1.3; }
.stat span { color: var(--muted); font-weight: 700; font-size: 15px; }

/* about */
.goals { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.goals li { display: inline-flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 99px; padding: 8px 16px; font-weight: 700; font-size: 14.5px; }
.goals .ic { width: 18px; height: 18px; color: var(--amber-2); }

/* support band */
.support { background: linear-gradient(110deg, var(--plum), var(--plum-3)); color: #fff; padding: 64px 0; }
.support-in { display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: center; }
.support-ic { width: 84px; height: 84px; border-radius: 26px; background: rgba(255, 255, 255, .1); display: grid; place-items: center; color: var(--amber); }
.support-ic .ic { width: 40px; height: 40px; }
.support h2 { font-size: clamp(24px, 2.8vw, 32px); font-weight: 900; margin-bottom: 10px; }
.support p { color: rgba(255, 255, 255, .8); margin: 0; max-width: 680px; }
.support .eyebrow { margin-bottom: 6px; }
.support-cta { display: grid; gap: 10px; }

/* team */
.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 260px)); justify-content: center; gap: 20px; }
.member { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 26px 20px; text-align: center; box-shadow: var(--shadow); }
.member img, .monogram { width: 132px; height: 132px; border-radius: 50%; margin: 0 auto 18px; object-fit: cover; border: 4px solid var(--lilac); }
.monogram { display: grid; place-items: center; background: linear-gradient(135deg, var(--plum-3), var(--plum)); color: #fff; font-size: 38px; font-weight: 800; }
.member h3 { font-size: 18px; }
.member p { color: var(--amber-2); font-weight: 700; margin: 4px 0 0; font-size: 15px; }

/* call to action */
.cta-band { padding: 0 0 8px; }
.cta-in { background: var(--amber-soft); border: 1px solid #f5d9b3; border-radius: 28px; padding: 40px 48px; display: flex; gap: 24px; align-items: center; justify-content: space-between; }
.cta-in h2 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 900; }

/* services */
.services { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.service { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px 20px; box-shadow: var(--shadow); transition: transform .15s ease, border-color .15s ease; }
.service:hover { transform: translateY(-3px); border-color: #dccfee; }
.service h3 { font-size: 17px; margin: 16px 0 6px; }
.service p { color: var(--muted); font-size: 14.5px; margin: 0; line-height: 1.8; }

/* article */
.list-title { font-size: 18px; margin: 28px 0 12px; }
.keylist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.keylist li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); }
.keylist .ic { width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: #e3f4ee; color: #17805e; margin-top: 4px; }
.keylist b { color: var(--ink); }

/* faq */
.faq-wrap { max-width: 900px; }
.faq { display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; font-weight: 800; font-size: 16.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { color: var(--muted); transition: transform .2s ease; }
.faq details[open] summary .ic { transform: rotate(180deg); color: var(--amber-2); }
.faq details p { margin: 0; padding: 0 22px 20px; color: var(--ink-2); }

/* footer */
.foot { background: var(--ink); color: rgba(255, 255, 255, .78); margin-top: 96px; }
.foot-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-block: 64px 40px; }
.foot-brand img { width: 170px; margin-bottom: 16px; }
.foot-brand p { max-width: 420px; font-size: 15px; }
.foot h3 { color: #fff; font-size: 16px; margin-bottom: 14px; }
.foot nav a { display: block; text-decoration: none; padding: 4px 0; font-size: 15px; }
.foot a:hover { color: var(--amber); }
.contact { display: flex; align-items: center; gap: 10px; text-decoration: none; margin: 0 0 10px; font-size: 15px; }
.contact .ic { width: 18px; height: 18px; color: var(--amber); }
.foot mark.todo { font-size: 14px; }
.foot-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 20px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 14px; color: rgba(255, 255, 255, .55); }
.foot-langs a { text-decoration: none; }
.foot-langs b { color: #fff; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .services { grid-template-columns: repeat(3, 1fr); }
  .orbit { grid-template-columns: 1fr 1fr; }
  .orbit-core { display: none; }
  .plans { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .nav { position: fixed; inset: 76px 0 auto; flex-direction: column; gap: 0; background: var(--cream); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; box-shadow: 0 20px 40px rgba(35, 22, 58, .12); display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 12px; font-size: 16px; }
  .menu-btn { display: grid; }
  .top-in { gap: 12px; }
  .top-act { margin-inline-start: auto; }
  .split, .split-top { grid-template-columns: 1fr; gap: 36px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .eras { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .eras::before { display: none; }
  .support-in { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .support-cta { grid-auto-flow: column; }
  .cta-in { flex-direction: column; text-align: center; padding: 32px 24px; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .wrap { padding-inline: 16px; }
  .top-act .btn-sm { display: none; }
  .brand img { width: 124px; }
  .hero { padding-top: 56px; }
  .hero-cta { margin-bottom: 36px; }
  .hero-cta .btn { width: 100%; }
  .shot-hero { margin-bottom: -60px; border-radius: 10px; }
  .shot-bar { padding: 7px 10px; } .shot-bar i { width: 7px; height: 7px; }
  .benefits { padding-top: 96px; }
  .sec { padding: 64px 0; }
  .grid-4, .orbit, .plans, .eras, .services { grid-template-columns: 1fr; }
  .team { grid-template-columns: 1fr; justify-content: stretch; }
  .grid-4, .services { gap: 12px; }
  .benefit, .service { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; padding: 18px; }
  .benefit .tile, .service .tile { grid-row: span 2; width: 46px; height: 46px; }
  .benefit h3, .service h3 { margin: 0 0 4px; }
  .plan li.off { display: none; }
  .stats { gap: 10px; }
  .stat b { font-size: 24px; }
  .stat span { font-size: 13px; }
  .support-cta { grid-auto-flow: row; width: 100%; }
  .support-cta .btn { width: 100%; }
  .cta-in .btn { width: 100%; }
  .foot-in { grid-template-columns: 1fr; }
  .faq summary { padding: 16px 18px; font-size: 15.5px; }
}
