/* Atomic Clinics landing page. Mobile first; breakpoints at 640, 834 (tablet) and 1024 (desktop).
   Layout uses logical properties (inline-start/end) so Arabic (dir=rtl) mirrors on its own. */

:root {
  --green: #2ce87e;
  --green-ink: #0b7a3e;
  --blue: #0909aa;
  --blue-deep: #06067a;
  --ink: #0d0d2b;
  --slate: #4b4f6b;
  --on-blue: #ffffff;
  --on-blue-muted: #c9cbf5;
  --white: #ffffff;
  --mist: #f4f5fb;
  --tint: #e9eafc;
  --line: #dcdff0;
  --warn: #e5484d;

  --font-head: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --font-body: "Libre Franklin", "Segoe UI", system-ui, sans-serif;
  --gutter: 20px;
  --max: 1200px;
  --py: 64px;
  --nav-h: 60px;
  --cut: 14px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
:lang(ar) {
  --font-head: "Cairo", "Segoe UI", Tahoma, sans-serif;
  --font-body: "Cairo", "Segoe UI", Tahoma, sans-serif;
}
@media (min-width: 640px) { :root { --gutter: 32px; } }
@media (min-width: 834px) { :root { --gutter: 40px; --py: 88px; } }
@media (min-width: 1024px) { :root { --gutter: 56px; --py: 112px; --nav-h: 72px; --cut: 24px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 16px/1.6 var(--font-body); color: var(--ink); background: var(--white); overflow-x: hidden; }
:lang(ar) body { line-height: 1.75; }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3 { font-family: var(--font-head); margin: 0; letter-spacing: -0.01em; }
:lang(ar) :is(h1, h2, h3) { letter-spacing: 0; }
p { margin: 0; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--green); color: var(--ink); padding: 10px 14px; font-weight: 600; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.icon { width: 1.25em; height: 1.25em; flex: none; }
[dir="rtl"] .icon[data-flip] { transform: scaleX(-1); }

.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.center { text-align: center; }
.center > .btn { margin-inline: auto; }

/* Chamfer: top-right and bottom-left corners cut, like the logo */
.chamfer { clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut))); }

/* ---------- Type ---------- */
.eyebrow { font: 700 13px/1.3 var(--font-head); letter-spacing: .12em; text-transform: uppercase; color: var(--green-ink); margin-block-end: 12px; }
:lang(ar) .eyebrow { letter-spacing: 0; font-size: 15px; }
.eyebrow-green, .on-dark .eyebrow { color: var(--green); }
h1 { font-size: clamp(34px, 8.6vw, 64px); line-height: 1.1; font-weight: 800; }
:lang(ar) h1 { font-size: clamp(32px, 8vw, 58px); line-height: 1.35; }
h2 { font-size: clamp(28px, 6vw, 44px); line-height: 1.18; font-weight: 800; color: var(--blue); }
:lang(ar) h2 { line-height: 1.4; }
h3 { font-size: 20px; line-height: 1.35; font-weight: 700; color: var(--blue); }
.lead { font-size: 18px; color: var(--slate); margin-block-start: 14px; }
.sec-head { max-width: 760px; margin-block-end: 40px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.on-dark h2 { color: var(--on-blue); }
.on-dark .lead { color: var(--on-blue-muted); }

/* ---------- Buttons ---------- */
.btn {
  --c: var(--green); --t: var(--ink);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 28px; border: 0; background: var(--c); color: var(--t);
  font: 700 16px/1.2 var(--font-head); text-decoration: none; white-space: nowrap;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  transition: transform .2s var(--ease), filter .2s;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.05); }
.btn:active { transform: translateY(0); }
.btn-secondary { --c: var(--blue); --t: var(--white); }
.btn-onblue { --c: rgba(255,255,255,.12); --t: var(--white); box-shadow: inset 0 0 0 2px rgba(255,255,255,.7); }
.btn-sm { min-height: 42px; padding: 8px 18px; font-size: 14px; }
.btn-block { display: flex; width: 100%; }
.btn small { font: 500 12px/1 var(--font-body); opacity: .8; }

.btn-video { --c: rgba(255,255,255,.1); --t: var(--white); padding-inline: 14px 22px; box-shadow: inset 0 0 0 2px rgba(255,255,255,.75); }
.btn-video .btn-meta { font: 500 13px/1 var(--font-body); color: var(--on-blue-muted); padding-inline-start: 10px; border-inline-start: 1px solid rgba(255,255,255,.35); }
.play-dot { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--green); color: var(--blue); flex: none; animation: pulse 2.4s infinite; }
.play-dot .icon { width: 16px; height: 16px; transform: translateX(1px); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(44,232,126,.55); } 70%, 100% { box-shadow: 0 0 0 12px rgba(44,232,126,0); } }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Check list */
.checks { display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks .icon { width: 22px; height: 22px; padding: 3px; margin-block-start: 2px; background: var(--green); color: var(--ink); stroke-width: 3; }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(10px); transition: box-shadow .2s; }
.nav.scrolled { box-shadow: 0 1px 0 var(--line), 0 8px 24px rgba(9,9,170,.06); }
.nav-row { height: var(--nav-h); display: flex; align-items: center; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 800 17px/1 "Montserrat", sans-serif; letter-spacing: .04em; color: var(--blue); text-decoration: none; white-space: nowrap; }
.nav-links { display: none; gap: 28px; margin-inline-start: auto; font-weight: 500; }
.nav-links a, .nav-login, .lang-switch { text-decoration: none; font-size: 15px; }
.nav-links a:hover, .nav-login:hover, .lang-switch:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 5px; }
.nav-actions { display: flex; align-items: center; gap: 18px; margin-inline-start: auto; }
.nav-links + .nav-actions { margin-inline-start: 0; }
.lang-switch, .nav-login, .nav-cta { display: none; }
.menu-btn { display: grid; place-items: center; width: 44px; height: 44px; margin-inline-end: -10px; border: 0; background: none; color: var(--blue); }
.menu-btn .icon { width: 26px; height: 26px; }
@media (min-width: 834px) {
  .lang-switch, .nav-login { display: inline; }
}
@media (min-width: 1024px) {
  .nav-links, .nav-cta { display: flex; }
  .nav-cta-short, .menu-btn { display: none; }
}
.menu { position: fixed; inset: 0; z-index: 60; background: var(--blue); color: var(--white); display: flex; flex-direction: column; padding: 0 var(--gutter) calc(24px + env(safe-area-inset-bottom)); }
.menu[hidden] { display: none; }
.menu .logo { color: var(--white); }
.menu .menu-btn { color: var(--white); }
.menu-top { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; }
.menu-links { display: grid; margin-block: 24px auto; }
.menu-links a { font: 700 26px/1.2 var(--font-head); text-decoration: none; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.15); }
.menu-foot { display: grid; gap: 18px; }
.menu-row { display: flex; justify-content: space-between; font-weight: 600; }
.menu-row a { text-decoration: none; padding: 8px 0; }
body.menu-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--blue); color: var(--on-blue); padding-block: 40px 48px; }
@media (max-width: 1023px) { .hero-lines path:first-child, .closing-lines { display: none; } }
.hero-lines, .closing-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-lines path, .closing-lines path { fill: none; stroke: var(--green); stroke-width: 10; vector-effect: non-scaling-stroke; stroke-linejoin: miter; }
.hero-lines path { stroke-dasharray: 2400; stroke-dashoffset: 2400; animation: draw 1.8s .3s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero-grid { position: relative; display: grid; gap: 40px; }
.hero h1 { color: var(--on-blue); margin-block: 4px 18px; }
.hero-body { font-size: 18px; color: var(--on-blue-muted); max-width: 560px; margin-block-end: 28px; }
.hero .cta-row { margin-block-end: 24px; }
.hero .cta-row .btn { flex: 1 1 100%; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; font-size: 14px; border: 1px solid rgba(255,255,255,.4); }
.chips li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.hero-media { perspective: 1400px; margin-inline: calc(var(--gutter) * -0.5); }
.hero-browser { transform-origin: 50% 0; will-change: transform; }
@media (min-width: 640px) { .hero .cta-row .btn { flex: 0 0 auto; } }
@media (min-width: 1024px) {
  .hero { padding-block: 72px 96px; }
  .hero-grid { grid-template-columns: 5fr 7fr; align-items: center; gap: 48px; }
  .hero-media { margin-inline: 0 calc((100vw - min(var(--max), 100vw - 2 * var(--gutter))) / -2 - 40px); }
}

/* Browser frame around screenshots */
.browser { background: var(--white); box-shadow: 0 30px 80px rgba(3,3,60,.35); clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut))); }
.browser-bar { display: flex; align-items: center; gap: 6px; height: 30px; padding-inline: 12px; background: var(--tint); }
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: #b9bce6; }
.browser-bar span { margin-inline-start: 10px; font-size: 11px; color: var(--slate); background: var(--white); padding: 2px 12px; direction: ltr; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.browser-body img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }

/* ---------- Video ---------- */
.video-sec { background: var(--blue-deep); color: var(--on-blue); padding-block: var(--py); }
.player { position: relative; max-width: 996px; margin-inline: auto; aspect-ratio: 1108 / 720; background: #000; outline: 2px solid var(--green); outline-offset: -2px; box-shadow: 0 30px 80px rgba(0,0,0,.4); }
.player video { width: 100%; height: 100%; object-fit: contain; }
.player-cover { position: absolute; inset: 0; border: 0; padding: 0; background: var(--blue); display: block; width: 100%; }
.player-cover img { width: 100%; height: 100%; object-fit: cover; }
.player-scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(6,6,122,.75), rgba(6,6,122,.25) 50%, rgba(6,6,122,.1)); }
.player-play { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: var(--white); }
.play-circle { display: grid; place-items: center; width: clamp(68px, 10vw, 104px); aspect-ratio: 1; border-radius: 50%; background: var(--green); color: var(--blue); box-shadow: 0 0 0 0 rgba(44,232,126,.6); animation: pulse 2.4s infinite; transition: transform .25s var(--ease); }
/* Optical centring: nudge the triangle so its centre of mass sits in the middle */
.play-circle .icon { width: 44%; height: 44%; transform: translateX(6%); }
.play-label { font: 700 16px/1 var(--font-head); text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.player-cover:hover .play-circle { transform: scale(1.08); }
.player-dur { position: absolute; inset-inline-start: 14px; bottom: 14px; padding: 4px 10px; font-size: 14px; font-weight: 600; background: rgba(6,6,122,.85); color: var(--white); }
.player.playing .player-cover { display: none; }
.chapters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-block: 24px 36px; }
.chapters button { display: inline-flex; gap: 8px; align-items: center; padding: 8px 14px; border: 1px solid rgba(255,255,255,.4); background: none; color: var(--white); font-size: 14px; transition: background .2s, border-color .2s; }
.chapters button:hover { background: rgba(255,255,255,.08); border-color: var(--green); }
.chapters b { color: var(--green); font-weight: 600; }

/* ---------- Egypt strip ---------- */
.egypt { padding-block: 48px; border-bottom: 1px solid var(--line); }
.egypt-title { text-align: center; font-size: 15px; letter-spacing: .12em; text-transform: uppercase; color: var(--slate); margin-block-end: 28px; }
:lang(ar) .egypt-title { letter-spacing: 0; font-size: 18px; }
.egypt-items { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 16px; }
.egypt-items li { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--blue); font-size: 15px; }
.egypt-items .icon { width: 40px; height: 40px; padding: 9px; background: var(--tint); color: var(--blue); }
.egypt-items li:last-child { grid-column: 1 / -1; }
@media (min-width: 1024px) {
  .egypt-items { grid-template-columns: repeat(5, 1fr); }
  .egypt-items li:last-child { grid-column: auto; }
}

/* ---------- Before / after ---------- */
.before { padding-block: var(--py); }
.ba-rows { display: grid; gap: 16px; }
.ba-row { display: grid; background: var(--mist); }
.ba-row p { padding: 18px 20px; }
.ba-before { color: var(--slate); text-decoration: line-through; text-decoration-color: rgba(229,72,77,.5); }
.ba-after { background: var(--white); border: 2px solid var(--green); font-weight: 600; color: var(--blue); }
.ba-tag { display: flex; align-items: center; gap: 6px; font: 700 12px/1 var(--font-head); letter-spacing: .08em; text-transform: uppercase; margin-block-end: 8px; text-decoration: none; display: flex; }
:lang(ar) .ba-tag { letter-spacing: 0; font-size: 13px; }
.ba-before .ba-tag { color: var(--warn); }
.ba-after .ba-tag { color: var(--green-ink); }
.ba-tag .icon { width: 16px; height: 16px; stroke-width: 3; }
@media (min-width: 834px) { .ba-row { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) {
  .before-grid { display: grid; grid-template-columns: 4fr 8fr; gap: 56px; align-items: start; }
  .before .sec-head { position: sticky; top: calc(var(--nav-h) + 40px); }
}

/* ---------- A day in the clinic (tabs) ---------- */
.day { background: var(--mist); padding-block: var(--py); }
.tabs { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); max-width: 560px; margin: 0 auto 32px; background: var(--white); border: 1px solid var(--line); padding: 4px; }
.tabs button { border: 0; background: none; padding: 12px 8px; font: 700 15px/1.2 var(--font-head); color: var(--slate); position: relative; z-index: 1; transition: color .25s; }
.tabs button[aria-selected="true"] { color: var(--white); }
.tabs::before { content: ""; position: absolute; top: 4px; bottom: 4px; inset-inline-start: calc(4px + var(--i, 0) * (100% - 8px) / 3); width: calc((100% - 8px) / 3); background: var(--blue); transition: inset-inline-start .35s var(--ease); }
.tab-progress { position: absolute; inset-inline: 0; bottom: -10px; height: 3px; background: var(--line); display: none; }
.tab-progress i { display: block; height: 100%; width: 0; background: var(--green); }
.panel { display: grid; gap: 28px; align-items: center; }
.panel[hidden] { display: none; }
.panel.enter { animation: panelIn .5s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(16px); } }
.panel-text h3 { font-size: 24px; margin-block-end: 18px; }
.day-cta { margin-block-start: 40px; }
@media (max-width: 833px) { .panel-text { order: -1; } }
@media (min-width: 1024px) {
  .panel { grid-template-columns: 7fr 5fr; gap: 56px; }
}
/* Pinned, scroll-driven tabs on large screens (enabled by JS with .pinned) */
.day.pinned { padding-block: 0; height: 300vh; }
.day.pinned .day-pin { position: sticky; top: var(--nav-h); min-height: calc(100vh - var(--nav-h)); display: flex; align-items: center; padding-block: 48px; }
.day.pinned .day-pin > .wrap { width: min(var(--max), 100% - 2 * var(--gutter)); }
.day.pinned .tab-progress { display: block; }
.day.pinned .sec-head { margin-block-end: 24px; }

/* ---------- Specialties ---------- */
.spec { padding-block: var(--py); }
.spec-cards { display: grid; gap: 24px; }
.spec-card { background: var(--mist); display: grid; }
.spec-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--tint); }
.spec-media img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .8s var(--ease); }
.spec-card:hover .spec-media img { transform: scale(1.03); }
.spec-body { padding: 24px 22px 30px; }
.spec-body .eyebrow { margin-block-end: 6px; }
.spec-body h3 { font-size: 24px; margin-block-end: 18px; }
.spec-note { text-align: center; color: var(--slate); margin-block-start: 28px; }
@media (min-width: 834px) { .spec-cards { grid-template-columns: 1fr 1fr; } }

/* ---------- Prescription ---------- */
.rx { background: var(--mist); padding-block: var(--py); overflow: hidden; }
.rx-grid { display: grid; gap: 48px; align-items: center; }
.rx-text .checks { margin-block-start: 24px; }
.rx-papers { position: relative; height: clamp(380px, 110vw, 560px); }
.paper { position: absolute; margin: 0; width: min(68%, 360px); background: var(--white); box-shadow: 0 24px 60px rgba(9,9,170,.18); transition: transform .1s linear; }
.paper img { width: 100%; }
.paper-back { inset-inline-start: 4%; top: 0; transform: rotate(-4deg); }
.paper-front { inset-inline-end: 4%; top: 12%; transform: rotate(3deg); }
[dir="rtl"] .paper-back { transform: rotate(4deg); }
[dir="rtl"] .paper-front { transform: rotate(-3deg); }
.rx-tag { position: absolute; top: 6%; inset-inline-end: -8px; background: var(--green); color: var(--ink); font: 700 13px/1 var(--font-head); padding: 8px 12px; white-space: nowrap; }
@media (min-width: 1024px) {
  .rx-grid { grid-template-columns: 5fr 7fr; gap: 56px; }
  .rx-papers { height: 600px; }
}

/* ---------- Feature reel ---------- */
/* More features: icon + title + one line, 1 / 2 / 3 columns */
.more { padding-block: var(--py); background: var(--mist); }
.more-grid { display: grid; gap: 12px; }
.more-grid li { display: flex; align-items: flex-start; gap: 14px; padding: 18px 16px; background: var(--white); border: 1px solid var(--line); }
.more-grid .icon { flex: none; width: 40px; height: 40px; padding: 9px; background: var(--tint); color: var(--blue); }
.more-grid h3 { font-size: 17px; color: var(--blue); margin-block-end: 4px; }
.more-grid p { font-size: 14.5px; color: var(--slate); margin: 0; }
@media (min-width: 640px) { .more-grid { grid-template-columns: 1fr 1fr; gap: 16px; } }
@media (min-width: 1024px) { .more-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } .more-grid li { padding: 24px 22px; } }

.reel { padding-block: var(--py); }
.reel-grid { display: grid; grid-auto-flow: column; grid-auto-columns: 82%; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-block-end: 12px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: thin; }
.reel-tile { scroll-snap-align: start; }
.reel-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--tint); border: 1px solid var(--line); }
.reel-media img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 6s linear; }
.reel-tile:hover .reel-media img { transform: scale(1.06) translateY(-2%); }
.reel-tile p { font-weight: 600; color: var(--blue); margin-block-start: 12px; }
@media (min-width: 640px) { .reel-grid { grid-auto-columns: 46%; } }
@media (min-width: 1024px) {
  .reel-grid { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; margin-inline: 0; padding-inline: 0; gap: 32px 24px; }
}

/* ---------- How you start ---------- */
.start { padding-block: var(--py); background: var(--white); }
.steps-wrap { position: relative; }
.steps { display: grid; gap: 28px; }
.step { position: relative; padding-inline-start: 64px; }
.step-n { position: absolute; inset-inline-start: 0; top: 0; display: grid; place-items: center; width: 44px; height: 44px; background: var(--blue); color: var(--white); font: 800 18px/1 var(--font-head); }
.step h3 { font-size: 19px; margin-block: 8px 6px; }
.step p { color: var(--slate); font-size: 15px; }
.steps-line { position: absolute; inset-inline-start: 21px; top: 44px; bottom: 0; width: 2px; background: var(--line); }
.steps-line i { display: block; width: 100%; height: var(--p, 0%); background: var(--green); }
@media (min-width: 834px) {
  .steps { grid-template-columns: repeat(2, 1fr); gap: 36px 32px; }
  .steps-line { display: none; }
}
@media (min-width: 1024px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
  .step { padding-inline-start: 0; padding-block-start: 64px; }
  .steps-line { display: block; inset-inline: 0 22px; top: 21px; bottom: auto; width: auto; height: 2px; }
  .steps-line i { width: var(--p, 0%); height: 100%; }
}

/* ---------- Pricing ---------- */
.pricing { background: var(--mist); padding-block: var(--py); }
.plans { display: grid; gap: 20px; align-items: stretch; }
.plan { --cut: 22px; display: flex; flex-direction: column; gap: 12px; padding: 28px 24px; background: var(--white); border: 1px solid var(--line); }
.plan-featured { background: var(--blue); color: var(--white); border-color: var(--blue); }
.plan-featured h3 { color: var(--white); }
.plan-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.plan-top h3 { font-size: 24px; }
.plan-tag { background: var(--green); color: var(--ink); font-weight: 600; font-size: 13px; padding: 4px 10px; }
.plan-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.plan-price b { font: 800 48px/1 var(--font-head); color: var(--blue); }
.plan-featured .plan-price b { color: var(--white); }
.plan-price span { color: var(--slate); }
.plan-featured .plan-price span { color: var(--on-blue-muted); }
.plan-price small { font-weight: 600; color: var(--slate); margin-inline-end: 2px; }
.plan-featured .plan-price small { color: var(--on-blue-muted); }
.plan-seats { display: grid; gap: 8px; }
.plan-seats li { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.plan-seats .icon { width: 20px; height: 20px; color: var(--green-ink); }
.plan-featured .plan-seats .icon { color: var(--green); }
.plan-extra { font-size: 15px; padding: 10px 12px; background: var(--tint); color: var(--ink); margin-block-end: 8px; }
.plan-featured .plan-extra { background: rgba(255,255,255,.1); color: var(--white); }
.plan-tag { white-space: nowrap; }
.plan:not(.plan-featured) .plan-tag { background: var(--tint); color: var(--blue); }
.plan .btn { margin-block-start: auto; }
.plan-featured .btn-primary { --c: var(--green); }
/* First-month offer and the contact-sales plan */
.plan-offer { align-self: flex-start; background: var(--green); color: var(--ink); font-weight: 700; font-size: 14px; padding: 4px 10px; }
.plan-sales-title { font: 800 26px/1.2 var(--font-head); color: var(--white); }
.plan-sales .plan-seats .icon { color: var(--green); }

/* Contact-sales popup */
.sales-modal { padding: 0; border: 0; background: transparent; width: min(760px, 100% - 24px); max-width: none; max-height: calc(100dvh - 24px); margin: auto; color: var(--ink); overflow: visible; }
.sales-modal::backdrop { background: rgba(6, 6, 50, .62); }
body.modal-open { overflow: hidden; }
.sales-box { position: relative; background: var(--white); max-height: calc(100dvh - 24px); overflow-y: auto; overscroll-behavior: contain; padding: 28px 18px 24px; display: grid; gap: 18px; }
.sales-head h2 { font-size: clamp(24px, 5vw, 32px); margin-block: 4px 8px; padding-inline-end: 40px; }
.sales-head .lead { font-size: 16px; color: var(--slate); }
.modal-close { position: absolute; inset-block-start: 12px; inset-inline-end: 12px; width: 40px; height: 40px; display: grid; place-items: center; border: 0; background: var(--tint); color: var(--blue); cursor: pointer; }
.modal-close .icon { width: 22px; height: 22px; }
.sales-form { display: grid; gap: 20px; }
.fields { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; font-weight: 600; font-size: 15px; color: var(--ink); }
.field small { font-weight: 400; color: var(--slate); }
.field input, .field select, .field textarea { font: inherit; font-weight: 400; width: 100%; padding: 11px 14px; border: 1px solid var(--line); background: var(--white); color: var(--ink); border-radius: 0; min-height: 46px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: var(--blue); }
.field textarea { resize: vertical; min-height: 80px; }
[dir="rtl"] .field input[dir="ltr"] { text-align: right; }
.sales-form .btn { justify-self: start; min-width: 180px; }
.sales-form.is-sent .fields, .sales-form.is-sent > .btn { display: none; }
.sales-form.is-sent .form-status { font-size: 18px; padding: 20px; text-align: center; }
.sales-form .btn[disabled] { opacity: .6; cursor: progress; }
@media (min-width: 640px) { .fields { grid-template-columns: 1fr 1fr; } .field-wide { grid-column: 1 / -1; } .sales-box { padding: 36px 36px 32px; } }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status:empty { display: none; }
.form-status { background: var(--tint); color: var(--blue); font-weight: 600; padding: 12px 14px; }
.form-error { color: var(--warn); font-weight: 600; }
.form-error a { color: inherit; }

.includes { padding: 28px 24px; border: 1px solid var(--line); background: var(--white); }
.includes h3 { margin-block-end: 18px; }
.includes .checks { gap: 10px; font-size: 15px; }
@media (min-width: 834px) { .plans { grid-template-columns: 1fr 1fr; } .includes { grid-column: 1 / -1; } .includes .checks { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .plans { grid-template-columns: 1fr 1fr 1.1fr; } .includes { grid-column: auto; } .includes .checks { grid-template-columns: 1fr; } }
.pay { margin-block-start: 24px; padding: 22px 24px; background: var(--white); border: 1px solid var(--line); display: grid; gap: 14px; }
.pay-steps { display: grid; gap: 10px; }
.pay-steps li { display: flex; gap: 10px; align-items: center; }
.pay-steps span { display: grid; place-items: center; flex: none; width: 26px; height: 26px; background: var(--tint); color: var(--blue); font-weight: 700; font-size: 14px; }
.pay-promo { color: var(--slate); font-size: 15px; }
@media (min-width: 1024px) {
  .pay { grid-template-columns: auto 1fr; align-items: center; column-gap: 32px; }
  .pay-steps { grid-auto-flow: column; justify-content: start; gap: 28px; }
  .pay-promo { grid-column: 1 / -1; }
}
.no-trial { margin-block-start: 24px; padding: 20px 24px; background: var(--tint); color: var(--ink); }
.no-trial a { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--blue); margin-block-start: 6px; }
.no-trial .icon { width: 18px; height: 18px; }

/* ---------- Your data ---------- */
.data { background: var(--blue); color: var(--on-blue); padding-block: var(--py); }
@media (min-width: 1024px) { 
/* ---------- FAQ ---------- */
.faq { padding-block: var(--py); }
.faq-grid { display: grid; gap: 8px; }
.faq-more { color: var(--slate); margin-block: -20px 24px; }
.faq-more a { color: var(--blue); font-weight: 700; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; cursor: pointer; list-style: none; font: 700 18px/1.4 var(--font-head); color: var(--blue); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary i { position: relative; flex: none; width: 28px; height: 28px; background: var(--tint); }
.faq-list summary i::before, .faq-list summary i::after { content: ""; position: absolute; inset: 50% 8px auto; height: 2px; margin-top: -1px; background: var(--blue); transition: transform .25s; }
.faq-list summary i::after { transform: rotate(90deg); }
.faq-list details[open] summary i::after { transform: rotate(0); }
.faq-list details.is-closing summary i::after { transform: rotate(90deg); }
.faq-list details p { transition: opacity .3s; }
.faq-list details.is-closing p { opacity: 0; }
.faq-list details p { padding-block-end: 22px; color: var(--slate); max-width: 680px; }
@media (min-width: 1024px) { .faq-grid { grid-template-columns: 4fr 8fr; gap: 56px; } }

/* ---------- Closing ---------- */
.closing { position: relative; overflow: hidden; background: var(--blue); color: var(--on-blue); padding-block: var(--py); }
.closing-lines { opacity: .9; }
[dir="rtl"] .closing-lines { transform: scaleX(-1); }
.closing-row { position: relative; display: grid; gap: 28px; }
.closing h2 { color: var(--white); max-width: 720px; }
.closing p { color: var(--on-blue-muted); margin-block-start: 14px; font-size: 18px; }
.closing .cta-row .btn { flex: 1 1 100%; }
@media (min-width: 640px) { .closing .cta-row .btn { flex: 0 0 auto; } }
@media (min-width: 1024px) { .closing-row { grid-template-columns: 1fr auto; align-items: center; } }

/* ---------- Footer ---------- */
.footer { background: var(--blue-deep); color: var(--on-blue-muted); padding-block: 56px calc(96px + env(safe-area-inset-bottom)); font-size: 15px; }
.footer .logo { color: var(--white); }
.footer-row { display: grid; gap: 36px; }
.footer-brand p { margin-block-start: 14px; max-width: 320px; }
.footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.footer-cols h3 { color: var(--white); font-size: 14px; letter-spacing: .1em; text-transform: uppercase; margin-block-end: 12px; }
:lang(ar) .footer-cols h3 { letter-spacing: 0; font-size: 16px; }
.footer-cols a { display: block; text-decoration: none; padding: 5px 0; }
.footer-cols a:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; margin-block-start: 40px; padding-block-start: 20px; border-top: 1px solid rgba(255,255,255,.15); }
.footer-bottom a { text-decoration: none; }
@media (min-width: 1024px) { .footer { padding-block-end: 40px; } .footer-row { grid-template-columns: 1fr auto; } .footer-cols { grid-template-columns: repeat(3, 160px); } }

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta { position: fixed; inset-inline: 0; bottom: 0; z-index: 40; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); backdrop-filter: blur(10px); box-shadow: 0 -8px 24px rgba(9,9,170,.1); transform: translateY(110%); transition: transform .35s var(--ease); }
.sticky-cta.show { transform: none; }
.sticky-cta .btn { gap: 12px; }
@media (min-width: 1024px) { .sticky-cta { display: none; } }

/* ---------- Reveal on scroll ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .hero-lines path { stroke-dashoffset: 0; }
}

/* Logo on blue backgrounds */
.menu .logo-mark path:first-child, .footer .logo-mark path:first-child { fill: rgba(255,255,255,.14); }
