/* Orvo. One stylesheet for both languages; logical properties only, so RTL needs no overrides.
   One type family drawn for both scripts (IBM Plex Sans + IBM Plex Sans Arabic). Green fills mean "act". */

:root {
  --paper: #FFFFFF;
  --fog: #F3F5F4;
  --fog-2: #E8EDEB;
  --ink: #0F1F1C;
  --ink-2: #4F5D59;
  --ink-3: #737F7B;
  --line: rgb(15 31 28 / 0.1);
  --line-2: rgb(15 31 28 / 0.16);
  --ring: #1D9E75;            /* the logo's second ring */
  --act: #11805E;             /* filled actions: 4.9:1 against white text */
  --act-hover: #0D6E51;
  --act-ink: #0B6B4F;         /* green text and links on paper */
  --act-soft: rgb(29 158 117 / 0.1);
  --night: #08110F;           /* the demo stage */
  --chrome: rgb(255 255 255 / 0.74);
  --lift: 0 1px 2px rgb(15 31 28 / 0.05), 0 18px 40px -24px rgb(15 31 28 / 0.28);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: 20px;
  --max: 1160px;
  --head: 64px;
  color-scheme: light dark;
  interpolate-size: allow-keywords;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0A1110;
    --fog: #111A18;
    --fog-2: #18231F;
    --ink: #EEF3F1;
    --ink-2: #AAB6B2;
    --ink-3: #85918D;
    --line: rgb(238 243 241 / 0.1);
    --line-2: rgb(238 243 241 / 0.16);
    --act: #12865F;
    --act-hover: #17996D;
    --act-ink: #6FD6B0;
    --act-soft: rgb(43 185 139 / 0.14);
    --night: #040908;
    --chrome: rgb(10 17 16 / 0.72);
    --lift: 0 1px 2px rgb(0 0 0 / 0.4), 0 18px 40px -24px rgb(0 0 0 / 0.8);
  }
}

html:lang(ar) { --font: "IBM Plex Sans Arabic", "IBM Plex Sans", system-ui, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
html:lang(ar) body { line-height: 1.8; }
img, svg, iframe { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgb(29 158 117 / 0.22); }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
@media (min-width: 760px) { :root { --gutter: 40px; } }

/* ---------- Type: tracking and leading change with size ---------- */
h1, h2, h3 { margin: 0; font-weight: 600; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6.4vw, 5rem); line-height: 1.02; letter-spacing: -0.04em; }
h2 { font-size: clamp(2rem, 4.4vw, 3.25rem); line-height: 1.06; letter-spacing: -0.032em; }
h3 { font-size: 1.1875rem; line-height: 1.3; letter-spacing: -0.012em; }
p { margin: 0; text-wrap: pretty; }
html:lang(ar) :is(h1, h2, h3) { letter-spacing: 0; }
html:lang(ar) h1 { line-height: 1.22; font-size: clamp(2.4rem, 5.8vw, 4.4rem); }
html:lang(ar) h2 { line-height: 1.3; }
.lede { font-size: clamp(1.125rem, 1.7vw, 1.3125rem); line-height: 1.5; color: var(--ink-2); letter-spacing: -0.005em; max-width: 36em; }
html:lang(ar) .lede { line-height: 1.75; letter-spacing: 0; }
.muted { color: var(--ink-3); }
.small { font-size: 0.875rem; letter-spacing: 0.004em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font: 600 1rem/1 var(--font); letter-spacing: -0.005em; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, border-color 200ms ease, color 200ms ease;
  -webkit-tap-highlight-color: transparent;
}
html:lang(ar) .btn { letter-spacing: 0; }
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--act); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 0.9375rem; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn[disabled] { opacity: 0.55; cursor: progress; }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--act-hover); }
  .btn-ghost:hover { border-color: var(--ink-3); }
}
.wa-green { color: #25D366; }

/* ---------- Header: translucent chrome, content scrolls under it ---------- */
.top {
  position: sticky; top: 0; z-index: 30;
  background: var(--chrome);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  box-shadow: 0 1px 0 transparent;
  transition: box-shadow 200ms ease;
}
.top.scrolled { box-shadow: 0 1px 0 var(--line); }
.top .wrap { display: flex; align-items: center; gap: 12px; min-height: var(--head); }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; font-weight: 600; font-size: 1.25rem; letter-spacing: -0.03em; font-family: "IBM Plex Sans", system-ui, sans-serif; }
.brand svg { width: 34px; height: auto; }
.ring-a { stroke: var(--ink); }
.nav { display: none; margin-inline-start: auto; gap: 4px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 12px; border-radius: 10px; text-decoration: none; font-size: 0.9375rem; color: var(--ink-2); transition: color 200ms ease; }
.top-actions { display: flex; align-items: center; gap: 6px; margin-inline-start: auto; }
.lang { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 12px; text-decoration: none; font-size: 0.9375rem; color: var(--ink-2); }
.menu-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; background: none; color: var(--ink); border-radius: 12px; cursor: pointer; transition: transform 160ms var(--ease-out); }
.menu-btn svg { width: 22px; height: 22px; }
.menu-btn:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) { .nav a:hover, .lang:hover { color: var(--ink); } }
@media (min-width: 900px) {
  .nav { display: flex; }
  .top-actions { margin-inline-start: 8px; }
  .menu-btn { display: none; }
}
/* Mobile menu sheet: drops from the header it belongs to, and leaves the way it came */
.sheet {
  position: fixed; inset-inline: 0; top: var(--head); z-index: 29;
  background: var(--chrome);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  box-shadow: 0 1px 0 var(--line), 0 24px 40px -24px rgb(0 0 0 / 0.3);
  padding: 8px var(--gutter) 20px;
  opacity: 0; transform: translateY(-8px); visibility: hidden;
  transition: opacity 200ms var(--ease-out), transform 240ms var(--ease-out), visibility 0s linear 240ms;
}
.sheet.open { opacity: 1; transform: none; visibility: visible; transition: opacity 200ms var(--ease-out), transform 240ms var(--ease-out); }
.sheet a { display: flex; align-items: center; min-height: 52px; font-size: 1.25rem; font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--line); }
.sheet a:last-child { border-bottom: 0; }
@media (min-width: 900px) { .sheet { display: none; } }

/* ---------- Sections ---------- */
section { padding-block: clamp(80px, 11vw, 140px); }
.fog { background: var(--fog); }
.head { display: grid; gap: 16px; max-width: 760px; margin-block-end: clamp(40px, 6vw, 64px); }
.head p { color: var(--ink-2); font-size: 1.1875rem; max-width: 34em; }
.head.center { margin-inline: auto; text-align: center; justify-items: center; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(56px, 9vw, 104px) 0; overflow: hidden; }
.hero-copy { display: grid; justify-items: center; text-align: center; gap: 22px; }
.hero-copy h1 { max-width: 12.5em; }
.hero-copy .lede { margin-inline: auto; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-block-start: 6px; }
.hero-note { color: var(--ink-3); font-size: 0.9375rem; }

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise 700ms var(--ease-out) both; }
  .hero-copy > :nth-child(2) { animation-delay: 60ms; }
  .hero-copy > :nth-child(3) { animation-delay: 120ms; }
  .hero-copy > :nth-child(4) { animation-delay: 160ms; }
  .stage { animation: rise 900ms var(--ease-out) 220ms both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* The stage: the demos themselves, running live in a browser and a phone */
.stage { margin-block-start: clamp(48px, 7vw, 80px); }
.stage-box {
  position: relative;
  background: var(--night); color: #EEF3F1;
  border-radius: 28px;
  padding: clamp(20px, 3vw, 36px) clamp(16px, 3vw, 40px) clamp(28px, 4vw, 48px);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.06);
}
@media (prefers-color-scheme: dark) { .stage-box { box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.08); } }
.stage-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-block-end: clamp(20px, 3vw, 32px); }
.seg {
  display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px;
  background: rgb(255 255 255 / 0.08); box-shadow: inset 0 1px 2px rgb(0 0 0 / 0.4);
}
.seg button {
  min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px; cursor: pointer;
  background: transparent; color: rgb(238 243 241 / 0.72);
  font: 500 0.9375rem/1 var(--font);
  transition: background-color 200ms ease, color 200ms ease, transform 160ms var(--ease-out);
}
.seg button:active { transform: scale(0.96); }
.seg button[aria-pressed="true"] { background: rgb(255 255 255 / 0.94); color: #0F1F1C; box-shadow: 0 1px 2px rgb(0 0 0 / 0.3); }
.seg button[lang="ar"] { font-family: "IBM Plex Sans Arabic", system-ui, sans-serif; }
.seg button[lang="en"] { font-family: "IBM Plex Sans", system-ui, sans-serif; }
@media (hover: hover) and (pointer: fine) { .seg button:not([aria-pressed="true"]):hover { color: #fff; } }

.devices { position: relative; direction: ltr; }
.browser {
  margin: 0; border-radius: 14px; overflow: hidden; background: #fff;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.08), 0 40px 80px -40px rgb(0 0 0 / 0.9);
  inline-size: 100%;
}
.browser-bar { display: flex; align-items: center; gap: 7px; height: 36px; padding-inline: 14px; background: #EDEFEE; }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #D3D7D5; flex: none; }
.url {
  flex: 1; max-width: 340px; margin-inline: auto; height: 24px; border-radius: 7px; background: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 0.75rem; color: #59655F; font-family: "IBM Plex Sans", system-ui, sans-serif;
}
.screen { position: relative; overflow: hidden; background: #fff; }
.browser .screen { aspect-ratio: 16 / 9.4; }
.screen iframe {
  position: absolute; top: 0; left: 0; border: 0;
  transform-origin: 0 0; pointer-events: none; max-width: none;
  opacity: 0; transition: opacity 320ms ease;
}
.screen iframe.on { opacity: 1; }
.phone {
  position: absolute; right: 0; bottom: -28px;
  width: clamp(190px, 21vw, 248px); margin: 0;
  padding: 9px; border-radius: 40px; background: #121514;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.1), 0 40px 70px -24px rgb(0 0 0 / 0.95);
}
.phone .screen { aspect-ratio: 390 / 800; border-radius: 31px; }
@media (min-width: 760px) {
  .browser { inline-size: 88%; }
  html[dir="rtl"] .browser { margin-inline-start: auto; }
  html[dir="rtl"] .phone { right: auto; left: 0; }
}
/* Small screens: the phone is the whole show */
@media (max-width: 759px) {
  .browser { display: none; }
  .phone { position: relative; right: auto; bottom: auto; width: min(300px, 82%); margin-inline: auto; }
}
.stage-foot { display: flex; flex-wrap: wrap; gap: 4px 20px; justify-content: space-between; align-items: center; margin-block-start: 20px; color: var(--ink-3); font-size: 0.9375rem; }
.stage-foot a { color: var(--act-ink); text-decoration: none; font-weight: 500; display: inline-flex; align-items: center; min-height: 44px; }
@media (hover: hover) and (pointer: fine) { .stage-foot a:hover { text-decoration: underline; } }

/* Facts under the stage: plain statements, divided by hairlines */
.facts { list-style: none; margin: clamp(48px, 6vw, 72px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.facts li { padding: 22px 16px 0 0; display: grid; gap: 4px; align-content: start; }
html[dir="rtl"] .facts li { padding: 22px 0 0 16px; }
.facts strong { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
html:lang(ar) .facts strong { letter-spacing: 0; line-height: 1.4; }
.facts span { color: var(--ink-2); font-size: 0.9375rem; }
@media (max-width: 759px) { .facts li:nth-child(n+3) { padding-top: 26px; } }
@media (min-width: 760px) { .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- How it works: a sequence, so it is ordered by time ---------- */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 40px; position: relative; }
.timeline li { display: grid; gap: 10px; position: relative; padding-inline-start: 30px; align-content: start; }
.timeline li::before { content: ""; position: absolute; inset-inline-start: 0; top: 0.4em; width: 11px; height: 11px; border-radius: 50%; background: var(--paper); box-shadow: 0 0 0 2px var(--ring); }
.timeline li:last-child::before { background: var(--ring); }
.timeline li:not(:last-child)::after { content: ""; position: absolute; inset-inline-start: 5px; top: calc(0.4em + 18px); bottom: -34px; width: 1px; background: var(--line-2); }
.when { font-size: 0.9375rem; font-weight: 600; color: var(--act-ink); }
.timeline p { color: var(--ink-2); max-width: 30em; }
@media (min-width: 900px) {
  .timeline { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
  .timeline li { padding-inline-start: 0; padding-top: 36px; }
  .timeline li::before { top: 0; }
  .timeline li:not(:last-child)::after { top: 5px; bottom: auto; inset-inline-start: 24px; inset-inline-end: -28px; width: auto; height: 1px; }
}

/* ---------- Included: a split layout with a quiet list, not a card grid ---------- */
.split { display: grid; gap: 40px; }
@media (min-width: 960px) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
  .split > .head { position: sticky; top: calc(var(--head) + 32px); margin: 0; }
}
.list { display: grid; }
@media (min-width: 640px) { .list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; } }
.item { display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 16px; row-gap: 6px; padding-block: 24px; border-top: 1px solid var(--line); align-content: start; }
.item svg { width: 24px; height: 24px; color: var(--act-ink); grid-row: span 2; margin-top: 2px; }
html:lang(ar) .item svg { margin-top: 6px; }
.item p { color: var(--ink-2); font-size: 1rem; }

/* ---------- Work: a horizontal rail ---------- */
.rail-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-block-end: clamp(32px, 5vw, 48px); }
.rail-head .head { margin: 0; }
.rail-nav { display: none; gap: 8px; flex: none; }
.rail-nav button {
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--fog-2); color: var(--ink); display: grid; place-items: center;
  transition: transform 160ms var(--ease-out), opacity 200ms ease, background-color 200ms ease;
}
.rail-nav button:active { transform: scale(0.94); }
.rail-nav button:disabled { opacity: 0.35; cursor: default; }
.rail-nav svg { width: 18px; height: 18px; }
html[dir="rtl"] .rail-nav svg { transform: scaleX(-1); }
@media (min-width: 760px) { .rail-nav { display: flex; } }
.rail {
  --edge: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
  display: grid; grid-auto-flow: column; grid-auto-columns: min(84%, 500px); gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  padding-inline: var(--edge); scroll-padding-inline: var(--edge);
  padding-block-end: 8px; scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.tile { scroll-snap-align: start; display: grid; grid-template-rows: auto 1fr; border-radius: 22px; overflow: hidden; background: var(--paper); box-shadow: 0 0 0 1px var(--line); }
.tile-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--fog-2); }
.tile-img picture { display: contents; }
.tile-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 600ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .tile:hover .tile-img img { transform: scale(1.02); } }
.tile-body { display: flex; flex-direction: column; gap: 8px; padding: 22px 24px 24px; }
.tile-kind { font-size: 0.9375rem; color: var(--ink-3); }
.tile-body p { color: var(--ink-2); font-size: 1rem; }
.tile-links { display: flex; gap: 8px; margin-block-start: auto; padding-block-start: 10px; flex-wrap: wrap; }
.tile-links a { min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--fog); text-decoration: none; display: inline-flex; align-items: center; font-weight: 500; font-size: 0.9375rem; transition: transform 160ms var(--ease-out), background-color 200ms ease; }
.tile-links a:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .tile-links a:hover { background: var(--fog-2); } }
.tile-links a[lang="ar"] { font-family: "IBM Plex Sans Arabic", system-ui, sans-serif; }
.tile-links a[lang="en"] { font-family: "IBM Plex Sans", system-ui, sans-serif; }
.tile.yours { background: var(--ink); color: var(--paper); box-shadow: none; grid-template-rows: 1fr; }
.tile.yours .tile-body { padding: 32px; justify-content: end; gap: 14px; }
.tile.yours h3 { color: var(--paper); font-size: clamp(1.625rem, 2.6vw, 2.125rem); letter-spacing: -0.03em; line-height: 1.12; }
html:lang(ar) .tile.yours h3 { letter-spacing: 0; line-height: 1.4; }
.tile.yours p { color: color-mix(in srgb, var(--paper) 72%, transparent); }
.tile.yours .btn { align-self: flex-start; margin-block-start: 8px; }
.work-note { margin-block-start: 20px; color: var(--ink-3); font-size: 0.9375rem; }

/* ---------- Pricing ---------- */
.price-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; margin-block-end: clamp(32px, 5vw, 48px); }
.price-head .head { margin: 0; }
.currency { display: grid; gap: 8px; justify-items: start; }
.currency-label { font-size: 0.875rem; color: var(--ink-3); }
.cur { display: inline-flex; flex-wrap: wrap; padding: 3px; gap: 2px; border-radius: 14px; background: var(--fog-2); }
.cur button {
  min-height: 40px; min-width: 54px; padding: 0 10px; border: 0; border-radius: 11px; cursor: pointer;
  background: transparent; color: var(--ink-2); font: 500 0.875rem/1 "IBM Plex Sans", system-ui, sans-serif; letter-spacing: 0.01em;
  transition: background-color 200ms ease, color 200ms ease, transform 160ms var(--ease-out);
}
.cur button:active { transform: scale(0.95); }
/* Phones: all seven currencies in one even row instead of wrapping one onto its own line */
@media (max-width: 599px) {
  .currency { width: 100%; }
  .cur { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); width: 100%; }
  .cur button { min-width: 0; padding: 0 2px; }
}
.cur button[aria-pressed="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 1px 2px rgb(15 31 28 / 0.14), 0 0 0 0.5px var(--line); }

.plans { display: grid; gap: 16px; }
@media (min-width: 960px) { .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; } }
.plan { display: flex; flex-direction: column; gap: 18px; padding: 32px 28px; border-radius: 24px; background: var(--paper); box-shadow: 0 0 0 1px var(--line); }
.plan h3 { font-size: 1.375rem; }
.plan .for { color: var(--ink-2); font-size: 1rem; }
@media (min-width: 960px) { .plan .for { min-height: 3.2em; } }
.price { display: grid; gap: 6px; }
.amount { font-size: clamp(2.5rem, 4vw, 3.25rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; font-family: "IBM Plex Sans", system-ui, sans-serif; }
.amount small { font-size: 0.42em; font-weight: 500; letter-spacing: 0; color: var(--ink-3); font-family: var(--font); }
.price-note { font-size: 0.875rem; color: var(--ink-3); min-height: 1.5em; }
.ticks { list-style: none; margin: 0; padding: 18px 0 0; display: grid; gap: 10px; border-top: 1px solid var(--line); flex: 1; align-content: start; }
.ticks li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; font-size: 1rem; }
.ticks svg { width: 20px; height: 20px; color: var(--act-ink); margin-top: 3px; }
html:lang(ar) .ticks svg { margin-top: 6px; }
.plan .not { font-size: 0.875rem; color: var(--ink-3); }
.plan .btn { width: 100%; }
.plan.featured { background: var(--ink); color: var(--paper); box-shadow: var(--lift); }
.plan.featured h3, .plan.featured .amount { color: var(--paper); }
.plan.featured .for, .plan.featured .ticks li { color: color-mix(in srgb, var(--paper) 84%, transparent); }
.plan.featured .price-note, .plan.featured .not, .plan.featured .amount small { color: color-mix(in srgb, var(--paper) 60%, transparent); }
.plan.featured .ticks { border-color: color-mix(in srgb, var(--paper) 16%, transparent); }
.plan.featured .ticks svg { color: #5FD3A9; }
@media (prefers-color-scheme: dark) {
  .plan.featured { background: #F1F5F3; color: #0F1F1C; }
  .plan.featured h3, .plan.featured .amount { color: #0F1F1C; }
  .plan.featured .for, .plan.featured .ticks li { color: #34413D; }
  .plan.featured .price-note, .plan.featured .not, .plan.featured .amount small { color: #5F6B67; }
  .plan.featured .ticks { border-color: rgb(15 31 28 / 0.12); }
  .plan.featured .ticks svg { color: #0B6B4F; }
  .plan.featured .badge { background: rgb(17 128 94 / 0.12); color: #0B6B4F; }
}
.plan-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.badge { font-size: 0.8125rem; font-weight: 600; padding: 5px 11px; border-radius: 999px; background: rgb(95 211 169 / 0.16); color: #7FE0BE; white-space: nowrap; }

.extras { display: grid; gap: 16px; margin-block-start: 16px; }
@media (min-width: 960px) { .extras { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
.panel { padding: 28px; border-radius: 24px; background: var(--paper); box-shadow: 0 0 0 1px var(--line); display: grid; gap: 4px; align-content: start; }
.panel > h3 { margin-block-end: 8px; }
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; padding-block: 14px; border-top: 1px solid var(--line); align-items: baseline; }
.rows li:first-child { border-top: 0; }
.row-price { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.row-desc { grid-column: 1 / -1; color: var(--ink-2); font-size: 0.9375rem; }
.price-fine { margin-block-start: 24px; color: var(--ink-3); font-size: 0.9375rem; max-width: 52em; }

/* ---------- Promises ---------- */
.promises { display: grid; }
@media (min-width: 760px) { .promises { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; } }
@media (min-width: 1100px) { .promises { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 32px; } }
.promise { display: grid; gap: 10px; padding-block: 28px; border-top: 1px solid var(--line-2); align-content: start; }
.promise svg { width: 26px; height: 26px; color: var(--act-ink); }
.promise p { color: var(--ink-2); font-size: 1rem; }

/* ---------- Studio statement ---------- */
.statement { max-width: 940px; }
.statement blockquote { margin: 0; font-size: clamp(1.5rem, 3.2vw, 2.375rem); line-height: 1.28; letter-spacing: -0.022em; font-weight: 500; text-wrap: pretty; }
html:lang(ar) .statement blockquote { letter-spacing: 0; line-height: 1.7; }
.statement blockquote span { color: var(--ink-3); }
.statement .sig { display: block; margin-block-start: 28px; color: var(--ink-2); font-size: 1rem; }

/* ---------- FAQ ---------- */
.faq { display: grid; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: 64px; padding-block: 18px; font-weight: 500; font-size: 1.125rem; letter-spacing: -0.01em;
}
html:lang(ar) .faq summary { letter-spacing: 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 10px; height: 10px; margin-inline-end: 4px;
  border-right: 1.75px solid var(--ink-3); border-bottom: 1.75px solid var(--ink-3);
  transform: translateY(-3px) rotate(45deg); transition: transform 240ms var(--ease-out);
}
.faq details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.faq details p { padding-block-end: 22px; color: var(--ink-2); max-width: 40em; }
.faq details::details-content { block-size: 0; overflow: clip; transition: block-size 260ms var(--ease-out), content-visibility 260ms allow-discrete; }
.faq details[open]::details-content { block-size: auto; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 48px; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 72px; align-items: start; } }
.contact-copy { display: grid; gap: 20px; }
.contact-copy > p { color: var(--ink-2); font-size: 1.1875rem; }
.next-steps { list-style: none; margin: 8px 0 0; padding: 0; display: grid; counter-reset: s; }
.next-steps li { counter-increment: s; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; padding-block: 14px; border-top: 1px solid var(--line); color: var(--ink-2); }
.next-steps li::before { content: counter(s); font-weight: 600; color: var(--act-ink); font-variant-numeric: tabular-nums; }
.direct { display: grid; gap: 2px; margin-block-start: 4px; }
.direct a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; font-weight: 500; justify-self: start; }
.direct svg { width: 20px; height: 20px; }
.direct a[hidden] { display: none; }
@media (hover: hover) and (pointer: fine) { .direct a:hover { text-decoration: underline; } }

.form { display: grid; gap: 18px; padding: clamp(24px, 4vw, 36px); border-radius: 24px; background: var(--paper); box-shadow: var(--lift), 0 0 0 1px var(--line); }
.field { display: grid; gap: 8px; }
.field > label, .field > .label { font-size: 0.9375rem; font-weight: 500; }
.opt { color: var(--ink-3); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--line-2); background: var(--fog); color: var(--ink);
  font: 400 1rem/1.4 var(--font); /* 16px: no zoom on iOS focus */
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}
.field input[type="tel"] { direction: ltr; }
html[dir="rtl"] .field input[type="tel"] { text-align: right; }
.field textarea { min-height: 96px; resize: vertical; }
.field :is(input, select, textarea):focus { outline: none; border-color: var(--ring); background: var(--paper); box-shadow: 0 0 0 4px rgb(29 158 117 / 0.16); }
.field.bad :is(input, select, textarea) { border-color: #C4413A; }
.err { font-size: 0.875rem; color: #B3372F; display: none; }
@media (prefers-color-scheme: dark) { .err { color: #F08A82; } .field.bad :is(input, select, textarea) { border-color: #F08A82; } }
.field.bad .err { display: block; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choices label { position: relative; display: inline-flex; }
.choices input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choices span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--paper); font-size: 0.9375rem; font-weight: 500;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms var(--ease-out);
  pointer-events: none;
}
.choices input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.choices input:focus-visible + span { outline: 2px solid var(--ring); outline-offset: 2px; }
.choices label:active span { transform: scale(0.97); }
.hp { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); }
.form .btn { width: 100%; min-height: 52px; }
.form-status, .form-fine { margin: 0; font-size: 0.875rem; }
.form-status { color: var(--ink-2); }
.form-status:empty { display: none; }
.form-fine { color: var(--ink-3); }
.form-fine a { color: var(--ink-2); }
.form-done { display: grid; gap: 12px; padding: clamp(28px, 4vw, 40px); border-radius: 24px; background: var(--paper); box-shadow: var(--lift), 0 0 0 1px var(--line); outline: none; }
.form-done svg { width: 44px; height: 44px; color: var(--ring); }
.form-done p { color: var(--ink-2); }
.form-done .btn { justify-self: start; }
/* Author display rules beat the UA's [hidden]; restate it for the two swapped states. */
.form[hidden], .form-done[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) { .form-done:not([hidden]) { animation: rise 500ms var(--ease-out) both; } }

/* ---------- Footer ---------- */
footer { padding-block: 64px 32px; border-top: 1px solid var(--line); font-size: 0.9375rem; color: var(--ink-2); }
.foot { display: grid; gap: 36px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.foot-brand { grid-column: 1 / -1; display: grid; gap: 12px; align-content: start; }
@media (min-width: 760px) { .foot { grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); } .foot-brand { grid-column: auto; } }
.foot-brand p { max-width: 24em; }
.foot h2 { margin: 0 0 6px; font-size: 0.875rem; font-weight: 600; letter-spacing: 0; line-height: 1.4; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; }
.foot ul a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .foot ul a:hover { color: var(--ink); } }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-block-start: 40px; padding-block-start: 20px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 0.875rem; }
footer .links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
footer .links a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }

/* Floating WhatsApp, phones only, and only once a number exists */
.wa-fab {
  position: fixed; inset-inline-end: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 20;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: #25D366; color: #fff; box-shadow: 0 10px 28px -8px rgb(0 0 0 / 0.45);
  transition: transform 160ms var(--ease-out);
}
.wa-fab svg { width: 28px; height: 28px; }
.wa-fab:active { transform: scale(0.94); }
.wa-fab[hidden] { display: none; }
@media (min-width: 900px) { .wa-fab { display: none; } }

/* ---------- Legal and 404 ---------- */
.legal { padding-block: clamp(56px, 8vw, 104px); }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(2.25rem, 5vw, 3.25rem); margin-block-end: 8px; }
.legal h2 { font-size: 1.3125rem; letter-spacing: -0.012em; line-height: 1.3; margin-block: 44px 12px; }
html:lang(ar) .legal h2 { letter-spacing: 0; }
.legal p, .legal li { color: var(--ink-2); max-width: 40em; }
.legal ul { padding-inline-start: 1.25em; }
.legal li { margin-block: 8px; }
.legal a { color: var(--act-ink); }
.legal + footer { padding-block: 24px; }
.legal + footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: center; }
.legal + footer a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.notfound { min-height: 72vh; display: grid; place-items: center; text-align: center; padding-block: 64px; }
.notfound .wrap { display: grid; gap: 18px; justify-items: center; }
.notfound .hero-cta { justify-content: center; }

/* ---------- Accessibility preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; animation: none !important; }
  .screen iframe { transition: opacity 200ms ease !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .top, .sheet { background: var(--paper); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  :root { --line: rgb(15 31 28 / 0.3); --line-2: rgb(15 31 28 / 0.45); --ink-3: var(--ink-2); }
  .top { background: var(--paper); box-shadow: 0 1px 0 var(--ink); }
}
