/* ==========================================================================
   Pixel Summit — "Summit" redesign layer (loaded after site.css / saas.css / tour.css)
   Look: soft surfaces on cream paper, a teal sunrise over navy night, one lemon action.
   Motion: scroll-driven scenes (assets/js/motion.js). Everything here still works
   without JavaScript and with prefers-reduced-motion: scenes fall back to static blocks.
   Direction: RTL (Arabic, default) and LTR (English) through logical properties.
   ========================================================================== */

/* --- 1. Tokens --- */
:root {
  --paper: #f6f5ee;
  --paper-2: #efeee5;
  --card: #ffffff;
  --ink-deep: #071726;
  --ink-2: #0c2238;
  --sun: #12b7b2;
  --sun-hot: #3ad4cd;
  --sun-pale: #c5efeb;
  --sun-deep: #0a6f73;
  --flood: #0b8d8a;

  --surface: var(--card);
  --sunk: #ecebe2;
  --hair: rgba(16, 42, 67, 0.08);
  --ring: 0 0 0 1px rgba(16, 42, 67, 0.06);
  --shadow-card: var(--ring), 0 1px 2px rgba(16, 42, 67, 0.05), 0 18px 40px -28px rgba(8, 70, 80, 0.4);
  --shadow-lift: 0 0 0 1px rgba(16, 42, 67, 0.08), 0 1px 2px rgba(16, 42, 67, 0.06), 0 24px 44px -26px rgba(8, 70, 80, 0.5);

  /* The old system drew 2px ink borders and hard offset shadows from these tokens */
  --border: 0 solid transparent;
  --border-thin: 0 solid transparent;
  --shadow-sm: var(--shadow-card);
  --shadow: var(--shadow-card);
  --shadow-lg: var(--shadow-lift);

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 24px;
  --header-height: 86px;
  --container-max: 1080px;
  --w: 880px;
  --gutter: 16px;

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --t-in: 0.14s;
  --t-out: 0.2s;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

:root[data-theme='dark'] {
  --card: #112a41;
  --surface: var(--card);
  --sunk: #0f2438;
  --hair: rgba(247, 246, 237, 0.09);
  --ring: 0 0 0 1px rgba(247, 246, 237, 0.08);
  --shadow-card: var(--ring), 0 18px 40px -28px rgba(0, 0, 0, 0.7);
  --shadow-lift: 0 0 0 1px rgba(247, 246, 237, 0.1), 0 24px 44px -26px rgba(0, 0, 0, 0.8);
  --flood: #0b8d8a;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --card: #112a41;
    --surface: var(--card);
    --sunk: #0f2438;
    --hair: rgba(247, 246, 237, 0.09);
    --ring: 0 0 0 1px rgba(247, 246, 237, 0.08);
    --shadow-card: var(--ring), 0 18px 40px -28px rgba(0, 0, 0, 0.7);
    --shadow-lift: 0 0 0 1px rgba(247, 246, 237, 0.1), 0 24px 44px -26px rgba(0, 0, 0, 0.8);
  }
}

/* --- 2. Base --- */
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto; }
.lenis.lenis-stopped { overflow: hidden; }

body { font-size: 16.5px; }

h1, h2, h3, h4 { font-weight: 700; }

html[lang='en'] :is(h1, h2, h3) { letter-spacing: -0.035em; }

:focus-visible { outline: 2px solid var(--teal-dark); outline-offset: 3px; border-radius: 6px; }

.shell { width: min(100% - var(--gutter) * 2, var(--container-max)); }

/* Pages without the dark hero sit below the floating header */
.app-container:not(:has(.hero)) { padding-top: 96px; }

.page-particles { display: none; }

/* --- 3. Floating header --- */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 18px;
  z-index: 80;
  height: auto;
  background: none;
  border: 0;
  pointer-events: none;
  translate: 0 0;
  transition: translate 0.36s var(--ease-out-expo);
}

.site-header.is-tucked { translate: 0 calc(-100% - 44px); transition: translate 0.28s var(--ease-in-out); }

.header-inner {
  pointer-events: auto;
  position: relative;
  isolation: isolate;
  width: min(980px, 100% - var(--gutter) * 2);
  height: 54px;
  gap: 16px;
  padding-inline: 10px 8px;
  border-radius: 16px;
}

.header-inner::before, .header-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  transition: opacity 0.35s ease;
}

.header-inner::before {
  background: color-mix(in srgb, var(--card) 76%, transparent);
  box-shadow: var(--ring), 0 8px 24px -14px rgba(8, 70, 80, 0.45);
}

.header-inner::after {
  opacity: 0;
  background: linear-gradient(rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.1)), rgba(7, 23, 38, 0.38);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08);
}

.site-header.on-dark .header-inner::before { opacity: 0; }
.site-header.on-dark .header-inner::after { opacity: 1; }

.site-header .brand-wrapper { gap: 9px; }

.site-header .brand-icon-box { width: 32px; height: 32px; border-radius: 9px; box-shadow: none; }

.site-header .brand-icon-box img { width: 23px; height: 13px; }

.site-header .brand-title { font-size: 15.5px; font-weight: 900; letter-spacing: 0; transition: color 0.3s ease; }

.site-header .brand-subtitle { display: none; }

.desktop-nav { gap: 2px; }

.nav-link {
  position: relative;
  padding: 6px 10px;
  font-size: 15px;
  font-weight: 500;
  color: color-mix(in srgb, var(--ink) 74%, transparent);
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  inset-inline: 10px;
  bottom: 1px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform var(--t-out) var(--ease);
}

.nav-link:hover { color: var(--ink); }

.nav-link:hover::after { transform: scaleX(1); transform-origin: 0 50%; transition-duration: var(--t-in); }

.header-actions { gap: 6px; }

.site-header .btn-icon, .drawer-header .btn-icon {
  width: 36px;
  height: 36px;
  font-size: 17px;
  background: color-mix(in srgb, var(--ink) 6%, transparent);
  border-radius: 10px;
  box-shadow: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.site-header .btn-icon:hover { transform: none; box-shadow: none; background: color-mix(in srgb, var(--ink) 11%, transparent); }

.lang-switch { min-height: 36px; padding: 0 8px; font-size: 14px; font-weight: 700; color: color-mix(in srgb, var(--ink) 74%, transparent); }

.header-cta-btn, :root[data-theme='dark'] .header-cta-btn {
  min-height: 36px;
  padding: 0 13px;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--paper);
  background: var(--ink);
  border: 0;
  border-radius: 11px;
  transition: color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.header-cta-btn:hover { color: var(--navy); background: var(--lemon); box-shadow: none; transform: none; }

html[dir='rtl'] .header-cta-btn .ph-arrow-right { transform: scaleX(-1); }

.site-header.on-dark :is(.brand-title, .nav-link, .lang-switch, .btn-icon) { color: rgba(255, 255, 255, 0.86); }
.site-header.on-dark .brand-title { color: #fff; }
.site-header.on-dark .nav-link:hover { color: #fff; }
.site-header.on-dark .btn-icon { background: rgba(255, 255, 255, 0.1); }
.site-header.on-dark .header-cta-btn { color: var(--navy); background: #fff; box-shadow: inset 0 0 6px 1px rgba(197, 239, 235, 0.7), 0 4px 12px -4px rgba(7, 23, 38, 0.4); }
.site-header.on-dark .header-cta-btn:hover { background: var(--lemon); }

.mobile-drawer-backdrop { background: rgba(7, 23, 38, 0.5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }

.mobile-drawer-panel { box-shadow: var(--shadow-lift); }

.drawer-header { border-bottom: 1px solid var(--hair); }

.drawer-nav-item { border-bottom: 1px solid var(--hair); }

/* --- 4. Buttons --- */
.btn {
  min-height: 48px;
  padding: 0 20px;
  gap: 8px;
  font-size: 15.5px;
  font-weight: 700;
  border: 0;
  border-radius: 13px;
  background: var(--surface);
  box-shadow: var(--ring), 0 1px 2px rgba(16, 42, 67, 0.06), 0 10px 24px -18px rgba(8, 70, 80, 0.6);
  transition: background-color var(--t-out) var(--ease), box-shadow var(--t-out) var(--ease), scale var(--t-out) var(--ease), color var(--t-out) var(--ease);
}

.btn:hover { transform: none; box-shadow: var(--shadow-lift); transition-duration: var(--t-in); }

.btn:active { transform: none; scale: 0.98; box-shadow: var(--ring); }

.btn-lg { min-height: 52px; padding: 0 24px; font-size: 16px; }

.btn-primary, :root[data-theme='dark'] .btn-primary {
  font-weight: 900;
  color: var(--navy);
  background: var(--lemon);
  box-shadow: 0 1px 2px rgba(16, 42, 67, 0.2), 0 14px 30px -16px rgba(140, 130, 0, 0.75);
}

.btn-primary:hover { background: var(--lemon-soft); box-shadow: 0 1px 2px rgba(16, 42, 67, 0.2), 0 18px 34px -16px rgba(140, 130, 0, 0.85); }

.btn-dark { color: #fff; background: var(--navy); box-shadow: 0 1px 2px rgba(7, 23, 38, 0.2), 0 14px 30px -16px rgba(7, 60, 70, 0.7); }

.btn-dark:hover { background: #17395a; box-shadow: 0 1px 2px rgba(7, 23, 38, 0.2), 0 18px 34px -16px rgba(7, 60, 70, 0.8); }

.btn-glass { color: #fff; background: rgba(255, 255, 255, 0.12); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }

.btn-glass:hover { background: rgba(255, 255, 255, 0.2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22); }

.btn-glass .ph-whatsapp-logo { color: #7dffb0; }

html[dir='rtl'] :is(.btn, .text-link, .hero-pill) .ph-arrow-right { transform: scaleX(-1); }

.text-link { padding: 4px 0; font-family: var(--font-heading); font-size: 15.5px; font-weight: 700; }

.text-link i { transition: translate var(--t-out) var(--ease); }

.text-link:hover { text-decoration: none; }

.text-link:hover i { translate: 3px 0; }

html[dir='rtl'] .text-link:hover i { translate: -3px 0; }

/* --- 5. Sections and headings --- */
.section, .faq-section { padding-block: clamp(56px, 7vw, 88px); position: relative; }

.section-header-center, .section-head, .pricing-head {
  max-width: var(--w);
  margin-inline: auto;
  margin-bottom: clamp(32px, 4vw, 48px);
  text-align: center;
}

.section-header-center .section-lead, .section-head .section-lead { margin-inline: auto; }

.section-header-split { flex-direction: column; align-items: center; text-align: center; gap: 0; }

.section-header-split > :first-child { max-width: var(--w); }

.section-header-split .section-lead { max-width: 34rem; margin-inline: auto; }

.section-kicker, .kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: var(--teal-dark);
}

.section-kicker::before {
  content: '';
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: var(--teal);
  box-shadow: inset -4px -4px 0 rgba(16, 42, 67, 0.22);
}

.section-title, .drum-title {
  margin-bottom: 18px;
  font-size: clamp(30px, 4.1vw, 46px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.038em;
}

html[lang='ar'] :is(.section-title, .drum-title) { line-height: 1.4; letter-spacing: 0; }

.section-lead, .section-desc, .drum-lede { max-width: 34rem; font-size: 17px; line-height: 1.6; color: var(--muted); }

html[lang='ar'] :is(.section-lead, .drum-lede) { line-height: 1.8; }

/* The lemon highlighter band is retired; headings stay plain */
.highlight-text, .section-title span, .marker,
:root[data-theme='dark'] :is(.highlight-text, .section-title span, .marker) { background: none; padding: 0; color: inherit; }

/* Enter motion: rise 28px and fade, staggered 70ms (classes are added by motion.js) */
html.js .rise { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease-out-expo) var(--d, 0ms), transform 0.9s var(--ease-out-expo) var(--d, 0ms); }
html.js .rise.is-in { opacity: 1; transform: none; }

.reveal { transform: translateY(28px); transition: opacity 0.9s var(--ease-out-expo), transform 0.9s var(--ease-out-expo); }

/* Cells: one surface split into tiles by hairlines */
.cells {
  list-style: none;
  display: grid;
  gap: 1px;
  overflow: hidden;
  background: var(--hair);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
}

.cells > * { background: var(--surface); transition: background-color var(--t-out) var(--ease); }

.surface { background: var(--surface); border-radius: 24px; box-shadow: var(--shadow-card); }

/* --- 6. Hero --- */
.hero { position: relative; isolation: isolate; }

.hero-top {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(140px, 22vh, 208px) var(--gutter) 300px;
  background: linear-gradient(180deg, var(--ink-deep) 0%, var(--ink-2) 22%, var(--sun-deep) 56%, var(--sun) 76%, var(--sun-hot) 83%, var(--sun-pale) 92%, var(--paper) 100%);
}

.hero-top::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: var(--grain); opacity: 0.22; mix-blend-mode: overlay; }

.hero-glow { position: absolute; inset: 0; z-index: -2; pointer-events: none; -webkit-mask-image: linear-gradient(#000 70%, transparent 88%); mask-image: linear-gradient(#000 70%, transparent 88%); }

.hero-sun { position: absolute; top: 44%; left: -10%; width: 120%; height: 72%; }

.hero-sun-core { position: absolute; inset: 0; background: radial-gradient(closest-side, rgba(98, 238, 231, 0.6) 0%, rgba(40, 203, 196, 0.44) 26%, rgba(40, 203, 196, 0.16) 52%, rgba(40, 203, 196, 0) 74%); }

.hero-sun-core::after { content: ''; position: absolute; top: 18%; left: 30%; width: 40%; height: 52%; background: radial-gradient(closest-side, rgba(244, 237, 66, 0.3), rgba(190, 245, 220, 0.12) 55%, rgba(190, 245, 220, 0) 100%); }

.hero-copy { display: flex; flex-direction: column; align-items: center; text-align: center; }

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  max-width: 100%;
  min-height: 34px;
  margin-bottom: 28px;
  padding: 4px 12px 4px 4px;
  font-size: 14px;
  color: rgba(238, 250, 248, 0.86);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: background-color var(--t-out) var(--ease);
}

html[dir='rtl'] .hero-pill { padding: 4px 4px 4px 12px; }

.hero-pill:hover { background: rgba(255, 255, 255, 0.16); transition-duration: var(--t-in); }

.hero-pill-mark { width: 26px; height: 26px; flex: 0 0 auto; display: grid; place-items: center; background: var(--lemon); border-radius: 999px; }

.hero-pill-mark img { width: 17px; height: 10px; object-fit: contain; }

.hero-pill strong { color: #fff; font-weight: 700; }

.hero-pill .arrow { font-size: 13px; transition: translate var(--t-out) var(--ease); }

.hero-pill:hover .arrow { translate: 3px 0; }

html[dir='rtl'] .hero-pill:hover .arrow { translate: -3px 0; }

.hero-title {
  max-width: 15em;
  font-size: clamp(40px, 6vw, 84px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.042em;
  color: #f4fbfa;
  text-wrap: balance;
}

html[lang='ar'] .hero-title { line-height: 1.3; letter-spacing: 0; font-size: clamp(38px, 5.6vw, 76px); }

.hero-title .marker, :root[data-theme='dark'] .hero-title .marker { color: var(--lemon); }

.hero-word { display: inline-block; vertical-align: top; overflow: clip; margin: -0.14em -0.08em -0.3em; padding: 0.14em 0.08em 0.3em; }

.hero-word > span { display: inline-block; }

.hero-lead { max-width: 36rem; margin-top: 24px; font-size: clamp(16px, 1.45vw, 19px); line-height: 1.55; color: rgba(238, 250, 248, 0.94); text-wrap: pretty; }

html[lang='ar'] .hero-lead { line-height: 1.8; }

.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 100%; margin-top: 36px; }

/* Load-in (uses translate/opacity so it never fights the scroll transforms) */
html.js .hero-word > span { transform: translateY(115%); transition: transform 1.1s var(--ease-out-expo) calc(var(--wi, 0) * 55ms + 120ms); }
html.js .hero.is-ready .hero-word > span { transform: none; }
html.js .hero :is(.hero-pill, .hero-lead, .hero-actions, .work) { opacity: 0; translate: 0 22px; transition: opacity 1s var(--ease-out-expo) var(--hd, 0ms), translate 1s var(--ease-out-expo) var(--hd, 0ms), background-color var(--t-out) var(--ease); }
html.js .hero.is-ready :is(.hero-pill, .hero-lead, .hero-actions, .work) { opacity: 1; translate: 0 0; }
.hero-pill { --hd: 60ms; }
.hero-lead { --hd: 420ms; }
.hero-actions { --hd: 520ms; }
.work { --hd: 640ms; }

/* Tabs */
.tabs { position: relative; isolation: isolate; display: inline-flex; gap: 2px; max-width: 100%; padding: 4px; overflow-x: auto; scrollbar-width: none; background: var(--sunk); border-radius: 13px; }

.tabs::-webkit-scrollbar { display: none; }

.tab {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  height: 34px;
  padding: 0 14px;
  font: inherit;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  color: color-mix(in srgb, var(--ink) 66%, transparent);
  background: none;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  transition: color var(--t-out) var(--ease);
}

.tab:hover { color: var(--ink); transition-duration: var(--t-in); }

.tab[aria-selected='true'], .billing-toggle button[aria-pressed='true'] { color: var(--ink); background: var(--surface); box-shadow: var(--ring), 0 2px 6px -2px rgba(8, 70, 80, 0.3); }

.tabs-chip { position: absolute; inset: 4px; pointer-events: none; }

.tabs-chip > span { position: absolute; top: 0; left: 0; height: 100%; visibility: hidden; background: var(--surface); border-radius: 10px; box-shadow: var(--ring), 0 2px 6px -2px rgba(8, 70, 80, 0.35); transition: transform 0.45s var(--ease-out-expo), width 0.45s var(--ease-out-expo); }

.tabs[data-chip] .tabs-chip > span { visibility: visible; }

.tabs[data-chip] .tab[aria-selected='true'] { background: none; box-shadow: none; }

/* Product frame under the hero */
.work { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; width: min(var(--container-max), 100% - var(--gutter) * 2); margin: -232px auto 0; }

.work .tabs { background: rgba(255, 255, 255, 0.5); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }

.work .tab { color: rgba(16, 42, 67, 0.7); }

.work .tab:hover, .work .tab[aria-selected='true'] { color: #102a43; }

.work .tabs-chip > span, .work .tab[aria-selected='true'] { background-color: #fff; }

.work .tabs[data-chip] .tab[aria-selected='true'] { background: none; }

.work-scene { width: 100%; margin-top: 18px; perspective: 1250px; perspective-origin: 50% 0; }

.work-frame {
  position: relative;
  padding: 6px;
  background: rgba(255, 255, 255, 0.68);
  border-radius: 26px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5), 0 1px 2px rgba(16, 42, 67, 0.05), 0 40px 90px -40px rgba(8, 90, 100, 0.6);
  transform-origin: 50% 0;
  will-change: transform;
}

.work-stage { position: relative; display: grid; overflow: hidden; background: var(--ink-deep); border-radius: 20px; box-shadow: 0 0 0 1px rgba(16, 42, 67, 0.06); }

.work-shot { grid-area: 1 / 1; min-width: 0; }

.work-shot[hidden] { display: none; }

.work-shot.is-on { animation: shot-in 0.7s var(--ease-out-expo) both; }

@keyframes shot-in { from { opacity: 0; transform: scale(1.02); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }

.work-stage .clip { border-radius: 0; box-shadow: none; }

.work .tour-note { margin-top: 16px; }

/* Clip chrome in the soft system */
.app-bar { border-bottom: 1px solid var(--hair); }

.app-bar .dots span { border: 0; background: color-mix(in srgb, var(--ink) 18%, transparent); }

.clip { box-shadow: var(--shadow-card); }

.clip-ctrl { border-top: 1px solid var(--hair); }

.clip-btn { border: 0; }

/* --- 7. Channels (cells) --- */
.channels { padding-block: clamp(48px, 6vw, 80px) clamp(24px, 3vw, 40px); }

.channels-label { margin-bottom: 20px; text-align: center; font-family: var(--font-body); font-size: 15px; font-weight: 500; color: var(--muted); }

.channels .cells { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: var(--w); margin-inline: auto; }

.channels .cells li { display: flex; flex-direction: column; gap: 14px; padding: 22px 20px; font-family: var(--font-heading); font-size: 15.5px; font-weight: 700; }

.channels .cells li:hover { background: color-mix(in srgb, var(--teal-soft) 40%, var(--surface)); }

.channels .cells i { width: 36px; height: 36px; display: grid; place-items: center; font-size: 19px; color: var(--teal-dark); background: var(--teal-soft); border-radius: 10px; }

.channels .cells .ph-whatsapp-logo { color: var(--whatsapp); }

@media (max-width: 640px) { .channels .cells { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* --- 8. Scroll scenes --- */
.scene, .scene > .scene-stage { position: relative; }

html.js .scene.is-live { height: calc((var(--hold, 2) + 1) * 100vh); height: calc((var(--hold, 2) + 1) * 100svh); }

html.js .scene.is-live > .scene-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: clip; contain: layout paint; }

/* --- 9. Drum (features) --- */
.drum-scene { --drum-ink: var(--ink); --drum-accent: var(--teal-dark); --drum-gutter: clamp(16px, 4vw, 40px); }

.drum-scene:not(.is-live) > .scene-stage { padding: clamp(56px, 7vw, 88px) var(--gutter); }

.drum-head { text-align: center; margin: 0 auto 48px; max-width: var(--w); }

.drum-title { margin-inline: auto; font-size: clamp(34px, 4.6vw, 66px); line-height: 1.02; letter-spacing: -0.042em; }

html[lang='ar'] .drum-title { line-height: 1.35; letter-spacing: 0; font-size: clamp(32px, 4.2vw, 58px); }

.drum-lede { margin: 0 auto; }

.drum { list-style: none; margin: 0 auto; padding: 0; text-align: center; }

.drum-item { font-family: var(--font-heading); font-weight: 700; letter-spacing: -0.03em; }

html[lang='ar'] .drum-item { letter-spacing: 0; }

.drum-scene:not(.is-live) .drum { display: grid; gap: 18px; max-width: 46rem; }

.drum-scene:not(.is-live) .drum-item { font-size: clamp(22px, 2.6vw, 34px); line-height: 1.25; }

.drum-scene:not(.is-live) .drum-name { display: block; }

.drum-scene:not(.is-live) .drum-meta { display: block; margin-top: 4px; font-family: var(--font-body); font-size: 16px; font-weight: 400; letter-spacing: 0; color: var(--muted); }

.drum-window, .drum-count, .drum-detail { display: none; }

.drum-close { text-align: center; margin: 56px auto 0; }

.drum-deal { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 auto 30px; padding: 0; }

.drum-deal-card { display: inline-flex; align-items: center; gap: 10px; padding: 12px 16px; font-family: var(--font-heading); font-size: 15px; font-weight: 700; background: var(--surface); border-radius: 14px; box-shadow: var(--shadow-card); }

.drum-deal-card i { font-size: 16px; color: var(--teal-dark); }

.drum-close-line { max-width: 22ch; margin: 0 auto 26px; font-family: var(--font-heading); font-size: clamp(26px, 3vw, 42px); font-weight: 700; line-height: 1.1; letter-spacing: -0.038em; text-wrap: balance; }

html[lang='ar'] .drum-close-line { line-height: 1.45; letter-spacing: 0; font-size: clamp(24px, 2.7vw, 38px); }

/* Live: a cylinder of names turned by scroll */
.drum-scene.is-live > .scene-stage { background: var(--paper); }

.drum-scene.is-live .drum-head { position: absolute; top: 13svh; left: var(--drum-gutter); right: var(--drum-gutter); z-index: 3; margin: 0 auto; will-change: transform, opacity; }

.drum-scene.is-live :is(.drum-view, .drum-window) { transform: translate3d(0, var(--drum-shift, 0px), 0); }

.drum-scene.is-live .drum-view { position: absolute; inset: 0; pointer-events: none; perspective: var(--drum-persp, 1350px); perspective-origin: 50% var(--drum-y, 50%); }

.drum-scene.is-live .drum { position: absolute; top: 0; left: 0; right: 0; height: calc(var(--drum-y, 50svh) * 2); max-width: none; margin: 0; display: block; transform-style: preserve-3d; transform: translateZ(calc(var(--drum-r, 450px) * -1)) rotateX(var(--drum-turn, 0deg)); will-change: transform; }

.drum-scene.is-live .drum-item {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1.1em;
  margin-top: -0.55em;
  padding: 0 var(--drum-gutter);
  font-size: var(--drum-fs, 64px);
  line-height: 1.1;
  white-space: nowrap;
  text-align: center;
  opacity: 0;
  backface-visibility: hidden;
  transform: rotateX(calc(var(--i, 0) * var(--drum-step, 13deg) * -1)) translateZ(var(--drum-r, 450px));
}

html[lang='ar'] .drum-scene.is-live .drum-item { height: 1.5em; margin-top: -0.75em; line-height: 1.5; }

.drum-scene.is-live .drum-name { color: var(--drum-ink); }

.drum-scene.is-live .drum-item.is-lit .drum-name { color: var(--drum-accent); }

.drum-scene.is-live .drum-meta { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.drum-scene.is-live .drum-window { display: block; position: absolute; left: 0; right: 0; top: var(--drum-y, 50%); z-index: 1; pointer-events: none; }

.drum-glow { position: absolute; left: 0; right: 0; top: calc(var(--drum-fs, 64px) * -1.7); height: calc(var(--drum-fs, 64px) * 3.4); background: radial-gradient(closest-side, rgba(18, 183, 178, 0.16), rgba(18, 183, 178, 0.08) 48%, rgba(18, 183, 178, 0) 100%); will-change: transform, opacity; }

.drum-rule { position: absolute; left: var(--drum-gutter); right: var(--drum-gutter); height: 1px; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--teal-dark) 34%, transparent) 12%, color-mix(in srgb, var(--teal-dark) 34%, transparent) 88%, transparent); }

.drum-rule--top { top: calc(var(--drum-fs, 64px) * -0.66); }

.drum-rule--bottom { top: calc(var(--drum-fs, 64px) * 0.66); }

.drum-pointer { position: absolute; top: -7px; width: 0; height: 0; border-block: 7px solid transparent; }

.drum-pointer--left { left: calc(var(--drum-gutter) - 14px); border-left: 9px solid var(--teal-dark); }

.drum-pointer--right { right: calc(var(--drum-gutter) - 14px); border-right: 9px solid var(--teal-dark); }

.drum-scene.is-live :is(.drum-count, .drum-detail) { display: block; position: absolute; bottom: 8svh; z-index: 2; max-width: calc(50% - 24px); margin: 0; font-family: var(--font-heading); font-size: clamp(14px, 1.3vw, 17px); font-weight: 600; line-height: 1.5; white-space: nowrap; }

.drum-scene.is-live .drum-count { display: flex; align-items: center; inset-inline-start: var(--drum-gutter); font-variant-numeric: tabular-nums; color: var(--muted); white-space: pre; }

.drum-scene.is-live .drum-detail { inset-inline-end: var(--drum-gutter); text-align: end; }

.drum-count-now { color: var(--drum-accent); }

.drum-roll { display: inline-grid; vertical-align: top; overflow: clip; }

.drum-roll > * { grid-area: 1 / 1; display: inline-block; }

.drum-scene.is-live .drum-close { position: absolute; top: 64svh; left: 0; right: 0; z-index: 3; width: fit-content; max-width: calc(100% - 2 * var(--drum-gutter)); margin: 0 auto; opacity: 0; }

.drum-scene.is-live .drum-close.is-off { visibility: hidden; }

.drum-scene.is-live .drum-deal-card { will-change: transform, opacity; }

@media (max-height: 640px) { .drum-scene.is-live .drum-close-line { display: none; } }

/* --- 10. Feature cards (product tour) --- */
.feats-section { padding-top: clamp(40px, 5vw, 72px); }

.feats { display: grid; gap: 12px; }

.feature { display: grid; grid-template-columns: minmax(0, 1.14fr) minmax(0, 1fr); padding: 6px; background: var(--surface); border-radius: 28px; box-shadow: var(--shadow-card); }

.feature.flip .feature-art { order: 2; }

.feature-art { position: relative; isolation: isolate; overflow: hidden; display: grid; place-items: center; min-height: clamp(320px, 38vw, 470px); padding: clamp(28px, 5vw, 64px) clamp(18px, 4vw, 44px); border-radius: 22px; }

.feature-art::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: var(--grain); opacity: 0.18; mix-blend-mode: overlay; }

.feature.is-teal .feature-art { background: radial-gradient(120% 90% at 50% 108%, #9fe6e0, #d9f5f2 55%, #f1fbfa); }

.feature.is-dark .feature-art { background: radial-gradient(90% 70% at 50% 112%, rgba(18, 183, 178, 0.75), rgba(18, 183, 178, 0) 70%), linear-gradient(#0c2238, #071726); }

.feature.is-lemon .feature-art { background: radial-gradient(120% 90% at 50% 108%, #f6ef74, #faf7bd 55%, #fdfce9); }

.feature.is-dawn .feature-art { background: radial-gradient(120% 90% at 50% 108%, #bdeeea, #eaf7e4 50%, #fbf8c9); }

.feature-copy { align-self: center; padding: clamp(24px, 4vw, 56px); min-width: 0; }

.feature-copy .section-kicker { margin-bottom: 12px; }

.feature-copy h3 { margin-bottom: 12px; font-size: clamp(22px, 2.5vw, 30px); font-weight: 700; line-height: 1.14; letter-spacing: -0.032em; }

html[lang='ar'] .feature-copy h3 { line-height: 1.45; letter-spacing: 0; }

.feature-copy p { margin-bottom: 18px; font-size: 16.5px; line-height: 1.6; color: var(--muted); }

.feature-copy .tour-points { margin-bottom: 20px; }

.feature-copy .tour-points li { font-weight: 500; }

@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; }
  .feature.flip .feature-art { order: 0; }
}

/* Mock fragments: fixed light palette, like a screenshot */
.mock {
  --card: #ffffff;
  --paper-2: #f1f0e8;
  --ink: #102a43;
  --muted: #5d6d7c;
  --line: rgba(16, 42, 67, 0.14);
  --teal-soft: #dff7f5;
  --teal-dark: #087c7a;
  width: min(100%, 400px);
  padding: 14px;
  color: #102a43;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 0 0 1px rgba(16, 42, 67, 0.06), 0 30px 60px -30px rgba(7, 40, 60, 0.55);
  transform: translate3d(0, var(--py, 0px), 0);
  will-change: transform;
}

.mock + .mock-toast { margin-top: 12px; }

.mock-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; font-family: var(--font-heading); font-size: 13.5px; font-weight: 700; }

.mock-title span { padding: 2px 9px; font-size: 12px; font-weight: 600; color: var(--teal-dark); background: var(--teal-soft); border-radius: 999px; }

.mock-row { display: flex; align-items: center; gap: 10px; padding: 8px 6px; font-size: 13.5px; font-weight: 600; border-radius: 10px; }

.mock-row + .mock-row { border-top: 1px solid rgba(16, 42, 67, 0.07); }

.mock-row.is-new { background: var(--teal-soft); border-top-color: transparent; }

.mock-row.is-new + .mock-row { border-top-color: transparent; }

.mock-av { width: 28px; height: 28px; flex: 0 0 auto; display: grid; place-items: center; font-family: var(--font-heading); font-size: 12.5px; font-weight: 700; color: #102a43; background: #f1f0e8; border-radius: 8px; }

.mock-tag { margin-inline-start: auto; padding: 2px 9px; font-size: 11.5px; font-weight: 700; color: #3b4d5f; background: #f1f0e8; border-radius: 999px; white-space: nowrap; }

.mock-tag.wa { color: #0c6b3a; background: #dcf8e7; }

.mock-toast { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; font-size: 13px; font-weight: 700; color: #fff; background: #102a43; border-radius: 12px; box-shadow: 0 16px 30px -18px rgba(7, 23, 38, 0.8); transform: translate3d(0, var(--py, 0px), 0); }

.mock-toast i { color: #7dffb0; font-size: 16px; }

.mock-stack { display: flex; flex-direction: column; align-items: center; width: 100%; }

.mock .app-panel { padding: 0; border: 0; }

.mock .convo .av, .mock .mini-deal { border: 0; box-shadow: 0 0 0 1px rgba(16, 42, 67, 0.1); }

.mock .convo .av { background: #f6f5ee; }

.mock .mini-deal.is-new { box-shadow: none; }

.mock .app-auto { margin-top: 10px; border: 0; background: #f1f0e8; }

.mock .app-kpi { background: #f1f0e8; }

.mock-bars { display: flex; align-items: flex-end; gap: 6px; height: 96px; margin-top: 12px; padding: 12px 10px 0; background: #f6f5ee; border-radius: 12px; }

.mock-bars span { flex: 1; height: var(--h); background: #bfe9e6; border-radius: 5px 5px 0 0; transform-origin: 50% 100%; }

.mock-bars span.is-hot { background: #12b7b2; }

html.js .feature .mock-bars span { transform: scaleY(0); transition: transform 0.9s var(--ease-out-expo) calc(var(--i) * 60ms + 200ms); }

html.js .feature.is-in .mock-bars span { transform: none; }

html.js .feature :is(.mock-row, .convo, .mini-deal, .app-kpi) { opacity: 0; translate: 0 10px; transition: opacity 0.7s var(--ease-out-expo) calc(var(--n, 0) * 80ms + 250ms), translate 0.7s var(--ease-out-expo) calc(var(--n, 0) * 80ms + 250ms); }

html.js .feature.is-in :is(.mock-row, .convo, .mini-deal, .app-kpi) { opacity: 1; translate: 0 0; }

/* --- 11. How it works (pinned steps) --- */
.showcase { padding-inline: var(--gutter); margin-top: 40px; }

.ba-stage { padding-block: clamp(56px, 7vw, 88px); }

.ba-grid { display: grid; grid-template-columns: 340px minmax(0, 1fr); align-items: start; gap: 56px; width: 100%; max-width: 1240px; margin: 0 auto; }

.ba-side .section-head { margin: 0 0 28px; text-align: start; }

.ba-side .section-title { font-size: clamp(26px, 2.7vw, 36px); margin-bottom: 0; }

.ba-steps { list-style: none; display: grid; gap: 2px; margin: 0; padding: 0; }

.ba-step { position: relative; padding-block: 12px; padding-inline-start: 20px; }

.ba-step button { display: block; width: 100%; padding: 0; font: inherit; color: inherit; text-align: start; background: none; border: 0; cursor: pointer; }

.ba-title { display: block; font-family: var(--font-heading); font-size: 17px; font-weight: 700; line-height: 1.35; color: var(--ink); transition: color 0.3s ease; }

.ba-desc-wrap { display: grid; grid-template-rows: 1fr; transition: grid-template-rows 0.5s var(--ease-out-expo), opacity 0.4s ease; }

.ba-desc { display: block; min-height: 0; overflow: hidden; font-size: 15px; line-height: 1.5; color: var(--muted); }

.ba-desc > span { display: block; padding-top: 6px; }

.ba-rail { position: absolute; top: 12px; bottom: 12px; inset-inline-start: 0; width: 2px; background: color-mix(in srgb, var(--ink) 12%, transparent); border-radius: 2px; }

.ba-rail i { position: absolute; inset: 0; border-radius: inherit; background: var(--teal); transform-origin: 50% 0; transform: scaleY(0); }

.ba-frame { position: relative; min-width: 0; padding: 5px; background: var(--surface); border-radius: 24px; box-shadow: var(--shadow-card); }

.ba-screen { position: relative; isolation: isolate; aspect-ratio: 880 / 540; overflow: hidden; border-radius: 20px; container-type: inline-size; background: radial-gradient(110% 80% at 50% 110%, #a9e8e3, #e2f6f3 52%, #f6f5ee); }

.ba-shot { position: absolute; inset: 0; display: grid; place-items: center; padding: 5cqw; font-size: clamp(9px, 1.9cqw, 17px); color: #102a43; }

.ba-shot:not(:first-child) { opacity: 0; }

.showcase:not(.is-live) .ba-shot { opacity: 0; }

.showcase:not(.is-live) .ba-shot:last-of-type { opacity: 1; }

.ba-chip { position: absolute; z-index: 3; bottom: 17px; inset-inline-end: 17px; display: grid; min-width: 94px; height: 26px; padding: 0 11px; overflow: hidden; font-size: 12.5px; font-weight: 600; color: #fff; background: rgba(7, 23, 38, 0.8); border-radius: 999px; }

.ba-chip b { grid-area: 1 / 1; font-weight: inherit; line-height: 26px; text-align: center; white-space: nowrap; }

.showcase:not(.is-live) .ba-chip b:not(:last-child) { visibility: hidden; }

.showcase.is-live > .ba-stage { display: grid; place-items: center; padding: 72px 0 24px; }

.showcase.is-live .ba-grid { align-items: center; }

.showcase.is-live .ba-frame { justify-self: end; width: min(100%, calc(-300px + 163svh)); will-change: transform; }

.showcase.is-live .ba-step:not(.is-active) .ba-desc-wrap { grid-template-rows: 0fr; opacity: 0; }

.showcase.is-live .ba-step:not(.is-active) .ba-title { color: color-mix(in srgb, var(--ink) 55%, transparent); }

.showcase.is-live .ba-chip b { transition: transform 0.5s var(--ease-out-expo), opacity 0.4s ease; }

.showcase.is-live .ba-chip b:not(.is-on) { opacity: 0; transform: translateY(100%); }

.showcase.is-live .ba-chip b.is-past { transform: translateY(-100%); }

@media (max-width: 860px) {
  .ba-grid { grid-template-columns: 1fr; gap: 28px; }
  .ba-side .section-head { text-align: center; }
}

/* Step screens */
.sh-card { width: min(100%, 34em); padding: 1.3em; background: #fff; border-radius: 1.2em; box-shadow: 0 0 0 1px rgba(16, 42, 67, 0.06), 0 2em 4em -2em rgba(7, 40, 60, 0.5); }

.sh-title { display: flex; align-items: center; justify-content: space-between; gap: 1em; margin-bottom: 1em; font-family: var(--font-heading); font-size: 1.05em; font-weight: 700; }

.sh-title small { padding: 0.15em 0.8em; font-size: 0.8em; font-weight: 700; color: #087c7a; background: #dff7f5; border-radius: 999px; }

.sh-toggle { display: inline-flex; gap: 0.2em; margin-bottom: 1em; padding: 0.25em; background: #efeee5; border-radius: 0.8em; }

.sh-toggle span { padding: 0.35em 1em; font-family: var(--font-heading); font-size: 0.85em; font-weight: 700; color: #5d6d7c; border-radius: 0.6em; }

.sh-toggle span.on { color: #102a43; background: #fff; box-shadow: 0 0 0 1px rgba(16, 42, 67, 0.06), 0 2px 6px -2px rgba(8, 70, 80, 0.3); }

.sh-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.7em; }

.sh-plan { position: relative; display: flex; flex-direction: column; gap: 0.6em; padding: 1em; font-family: var(--font-heading); font-size: 0.95em; font-weight: 700; background: #f6f5ee; border-radius: 0.9em; transition: background-color 0.4s ease, box-shadow 0.4s ease, transform 0.6s var(--ease-out-expo); }

.sh-plan i { width: 2.1em; height: 2.1em; display: grid; place-items: center; font-size: 1.05em; color: #087c7a; background: #dff7f5; border-radius: 0.6em; }

.sh-plan::after { content: ''; position: absolute; top: 0.8em; inset-inline-end: 0.8em; width: 1.1em; height: 1.1em; border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(16, 42, 67, 0.18); transition: box-shadow 0.3s ease, background-color 0.3s ease; }

.sh-plan.is-on { background: #fff; box-shadow: 0 0 0 2px #12b7b2, 0 1.2em 2em -1.2em rgba(8, 70, 80, 0.6); transform: translateY(-0.3em); }

.sh-plan.is-on::after { background: #12b7b2; box-shadow: inset 0 0 0 0.3em #fff, 0 0 0 2px #12b7b2; }

.sh-toast { display: inline-flex; align-items: center; gap: 0.6em; margin-top: 1.1em; padding: 0.6em 1em; font-size: 0.9em; font-weight: 700; color: #fff; background: #102a43; border-radius: 0.8em; opacity: 0; translate: 0 0.8em; transition: opacity 0.5s ease, translate 0.6s var(--ease-out-expo); }

.sh-toast i { color: #f4ed42; }

.sh-toast.is-on { opacity: 1; translate: 0 0; }

.sh-list { list-style: none; display: grid; gap: 0.55em; margin: 0; padding: 0; }

.sh-list li { display: flex; align-items: center; gap: 0.8em; padding: 0.7em 0.9em; font-size: 0.95em; font-weight: 600; background: #f6f5ee; border-radius: 0.8em; transition: background-color 0.4s ease; }

.sh-list li::before { content: ''; width: 1.25em; height: 1.25em; flex: 0 0 auto; border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(16, 42, 67, 0.2); transition: background-color 0.3s ease, box-shadow 0.3s ease; }

.sh-list li em { margin-inline-start: auto; font-style: normal; font-size: 0.82em; font-weight: 700; color: #087c7a; opacity: 0; transition: opacity 0.3s ease; }

.sh-list li.is-on { background: #e9f8f6; }

.sh-list li.is-on::before { background: #12b7b2 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.3l2.6 2.6L12 5.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; box-shadow: none; }

.sh-list li.is-on em { opacity: 1; }

.sh-file { display: flex; align-items: center; gap: 0.8em; margin-bottom: 0.8em; font-size: 0.95em; font-weight: 700; }

.sh-file i { width: 2.3em; height: 2.3em; display: grid; place-items: center; font-size: 1.15em; color: #0c6b3a; background: #dcf8e7; border-radius: 0.6em; }

.sh-file span { direction: ltr; }

.sh-bar { height: 0.5em; margin-bottom: 1em; overflow: hidden; background: #ecebe2; border-radius: 999px; }

.sh-bar i { display: block; height: 100%; background: #12b7b2; border-radius: inherit; transform-origin: 0 50%; transform: scaleX(var(--t, 0)); }

html[dir='rtl'] .sh-bar i { transform-origin: 100% 50%; }

.sh-rows { display: grid; gap: 0.4em; }

.sh-rows .mock-row { padding: 0.5em 0.4em; font-size: 0.9em; opacity: 0; translate: 0 0.6em; transition: opacity 0.4s ease, translate 0.5s var(--ease-out-expo); border-top: 0; }

.sh-rows .mock-row.is-on { opacity: 1; translate: 0 0; }

.sh-rows .mock-av { width: 2em; height: 2em; font-size: 0.85em; border-radius: 0.5em; }

.sh-rows .mock-tag { font-size: 0.78em; }

.sh-sell { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; gap: 1.2em; width: min(100%, 40em); }

.sh-chat { display: flex; flex-direction: column; gap: 0.6em; }

.sh-bubble { max-width: 88%; padding: 0.7em 0.95em; font-size: 0.95em; line-height: 1.45; background: #f6f5ee; border-radius: 0.3em 1em 1em 1em; opacity: 0; translate: 0 0.7em; transition: opacity 0.4s ease, translate 0.5s var(--ease-out-expo); }

html[dir='rtl'] .sh-bubble { border-radius: 1em 0.3em 1em 1em; }

.sh-bubble.out { align-self: flex-end; color: #fff; background: #087c7a; border-radius: 1em 0.3em 1em 1em; }

html[dir='rtl'] .sh-bubble.out { border-radius: 0.3em 1em 1em 1em; }

.sh-bubble.is-on { opacity: 1; translate: 0 0; }

.sh-deal { padding: 1.1em; text-align: center; background: #fff; border-radius: 1.1em; box-shadow: 0 0 0 1px rgba(16, 42, 67, 0.06), 0 2em 4em -2em rgba(7, 40, 60, 0.5); opacity: 0; scale: 0.92; transition: opacity 0.5s ease, scale 0.7s var(--ease-out-expo); }

.sh-deal.is-on { opacity: 1; scale: 1; }

.sh-deal i { width: 2.4em; height: 2.4em; display: grid; place-items: center; margin: 0 auto 0.6em; font-size: 1.3em; color: #102a43; background: #f4ed42; border-radius: 50%; }

.sh-deal b { display: block; font-family: var(--font-heading); font-size: 1.05em; }

.sh-deal span { font-size: 0.85em; font-weight: 700; color: #087c7a; }

/* --- 12. Consolidation --- */
.consolidate { gap: 20px; max-width: var(--w); margin-inline: auto; }

.tool-pile { gap: 1px; overflow: hidden; background: var(--hair); border-radius: 20px; box-shadow: var(--shadow-card); }

.tool-pile li { padding: 18px 16px; font-size: 15px; font-weight: 600; background: var(--surface); border: 0; border-radius: 0; }

.tool-pile li s { text-decoration: none; background: linear-gradient(var(--teal), var(--teal)) no-repeat 0 58% / 100% 2px; }

html[dir='rtl'] .tool-pile li s { background-position: 100% 58%; }

html.js .tool-pile li s { background-size: 0 2px; transition: background-size 0.8s var(--ease-out-expo) calc(var(--i, 0) * 110ms + 350ms); }

html.js .consolidate.is-in .tool-pile li s { background-size: 100% 2px; }

.tool-pile li:nth-child(2) { --i: 1; } .tool-pile li:nth-child(3) { --i: 2; } .tool-pile li:nth-child(4) { --i: 3; } .tool-pile li:nth-child(5) { --i: 4; } .tool-pile li:nth-child(6) { --i: 5; }

.consolidate-arrow, :root[data-theme='dark'] .consolidate-arrow { width: 44px; height: 44px; font-size: 20px; color: var(--teal-dark); background: var(--teal-soft); border: 0; box-shadow: none; }

.one-card { border-radius: 24px; box-shadow: var(--shadow-card); }

.one-card h3 { font-size: 1.4rem; font-weight: 700; }

.badge-pill { border: 0; box-shadow: var(--ring); font-family: var(--font-heading); }

.badge-pill.lemon { box-shadow: none; }

/* --- 13. Pricing --- */
.billing-toggle { gap: 2px; padding: 4px; background: var(--sunk); border: 0; border-radius: 13px; box-shadow: none; }

.billing-toggle button { min-height: 38px; padding: 0 16px; font-size: 14.5px; color: color-mix(in srgb, var(--ink) 66%, transparent); border-radius: 10px; transition: color var(--t-out) var(--ease), background-color var(--t-out) var(--ease), box-shadow var(--t-out) var(--ease); }

:root[data-theme='dark'] .billing-toggle button[aria-pressed='true'] { color: var(--ink); background: var(--surface); }

.billing-toggle button[aria-pressed='true'] .save-tag { background: var(--lemon); }

.plans-grid { gap: 14px; }

.plan { border: 0; border-radius: 26px; box-shadow: var(--shadow-card); transition: box-shadow 0.3s ease; }

.plan:hover { box-shadow: var(--shadow-lift); }

.plan.is-featured { box-shadow: 0 0 0 2px var(--teal), 0 30px 60px -30px rgba(8, 110, 115, 0.7); }

@media (min-width: 1021px) { .plan.is-featured { transform: none; } }

.plan-badge { top: -13px; padding: 3px 13px; font-size: 13px; border: 0; box-shadow: 0 6px 14px -8px rgba(140, 130, 0, 0.9); }

.plan-name h3 { font-weight: 700; letter-spacing: -0.02em; }

.svc-icon { border: 0; }

.plan-price { border-block: 1px solid var(--hair); }

.price-num { font-weight: 700; letter-spacing: -0.04em; }

.plan-trial { border: 0; }

.plan-all { border: 0; background: var(--sunk); }

.faq-chevron { width: 30px; height: 30px; font-size: 14px; background: color-mix(in srgb, var(--ink) 6%, transparent); border: 0; border-radius: 9px; }

.included-all, .extras-card, .compare { border: 0; border-radius: 24px; box-shadow: var(--shadow-card); }

.included-all h3, .extras-card h3 { font-weight: 700; }

.addon-list li { border-top: 1px solid var(--hair); }

.wallet-card { background: radial-gradient(90% 70% at 100% 110%, rgba(18, 183, 178, 0.5), rgba(18, 183, 178, 0) 70%), var(--ink-deep); box-shadow: none; }

.wallet-items span { border: 0; box-shadow: inset 0 0 0 1px rgba(247, 246, 237, 0.25); }

.compare > summary { font-weight: 700; }

.compare-scroll { border-top: 1px solid var(--hair); }

.compare th, .compare td { border-bottom: 1px solid var(--hair); }

.compare thead th.is-featured { background: var(--teal-soft); color: var(--ink); }

.compare td.is-featured { background: color-mix(in srgb, var(--teal-soft) 45%, transparent); }

/* --- 14. FAQ (open cells) --- */
.faq-split { grid-template-columns: 1fr; gap: clamp(28px, 4vw, 40px); max-width: var(--w); }

.faq-intro { align-items: center; text-align: center; gap: 14px; }

.faq-intro .section-kicker { margin-bottom: 0; }

.faq-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; overflow: hidden; background: var(--hair); border: 0; border-radius: 20px; box-shadow: var(--shadow-card); }

.faq-item { padding: 26px 28px 28px; background: var(--surface); border: 0; }

.faq-item:last-child:nth-child(odd) { grid-column: 1 / -1; }

.faq-question { min-height: 0; padding: 0; font-size: 17px; line-height: 1.4; cursor: default; pointer-events: none; }

.faq-question .faq-chevron { display: none; }

.faq-answer, .faq-item.is-open .faq-answer { max-height: none; overflow: visible; }

.faq-answer-inner { padding: 10px 0 0; font-size: 15.5px; line-height: 1.6; }

html[lang='ar'] .faq-answer-inner { line-height: 1.8; }

@media (max-width: 700px) { .faq-list { grid-template-columns: 1fr; } }

/* --- 15. Closing scene: the light floods, then night --- */
.lf { --lf-gutter: clamp(16px, 4vw, 48px); margin-top: clamp(24px, 4vw, 56px); }

.lf > .scene-stage { isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; min-height: 70svh; overflow: clip; background: var(--flood); container-type: inline-size; }

.lf.is-live > .scene-stage { min-height: 0; background: var(--paper); }

.lf :is(.lf-sun, .lf-night, .lf-grain, .lf-ground) { position: absolute; pointer-events: none; }

.lf-ground { inset: 0; z-index: 0; background: var(--flood); opacity: 0; }

.lf-sun { z-index: 1; left: 50%; top: 100%; width: max(150%, 190svh); aspect-ratio: 1.25; display: none; }

.lf-halo, .lf-core { position: absolute; border-radius: 50%; }

.lf-halo { inset: 2%; background: var(--sun-pale); filter: blur(6.5cqw); }

.lf-core { inset: 12%; background: var(--flood); filter: blur(4.5cqw); }

.lf-night { z-index: 2; inset: 0 -10% auto; height: 200%; display: none; background: linear-gradient(180deg, var(--ink-deep) 0, var(--ink-deep) 62%, rgba(7, 23, 38, 0) 100%); }

.lf-grain { inset: 0; z-index: 3; background-image: var(--grain); opacity: 0.22; mix-blend-mode: overlay; }

.lf.is-live :is(.lf-sun, .lf-night) { display: block; will-change: transform; }

.lf-line { position: relative; z-index: 4; grid-area: 1 / 1; display: flex; flex-direction: column; align-items: center; gap: 0.06em; width: 100%; margin: 0; padding: 4svh var(--lf-gutter) 0; text-align: center; font-weight: 700; line-height: 1; letter-spacing: -0.048em; }

html[lang='ar'] .lf-line { line-height: 1.4; letter-spacing: 0; }

.lf-lead, .lf-key { display: block; max-width: 100%; padding-bottom: 0.08em; text-wrap: balance; }

.lf-lead { font-size: clamp(2.5rem, 7.6cqw, 8.5rem); color: var(--navy); }

.lf-key { font-size: clamp(3.125rem, 9.5cqw, 10.625rem); color: #f4fbfa; }

.lf.is-live :is(.lf-lead, .lf-key) { will-change: opacity, transform, filter; }

.lf.is-live .lf-lead { color: var(--ink); }

/* --- 16. Footer (night) --- */
.site-footer {
  --ink: #f4fbfa;
  --muted: rgba(232, 244, 242, 0.66);
  --line: rgba(255, 255, 255, 0.1);
  --hair: rgba(255, 255, 255, 0.1);
  --teal-dark: #62eee7;
  --whatsapp: #3ddc84;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(56px, 7vw, 88px) 0;
  color: var(--muted);
  background: var(--ink-deep);
  border: 0;
}

.site-footer .brand-title { color: #fff; }

.site-footer .brand-icon-box { width: 36px; height: 36px; border-radius: 10px; box-shadow: none; }

.site-footer .brand-icon-box img { width: 26px; height: 15px; }

.foot-cta { display: flex; flex-direction: column; align-items: center; text-align: center; padding-block: clamp(24px, 5vw, 72px) clamp(64px, 9vw, 128px); }

.foot-cta h2 { max-width: 16em; font-size: clamp(34px, 5vw, 60px); font-weight: 700; line-height: 1.04; letter-spacing: -0.042em; color: #fff; }

html[lang='ar'] .foot-cta h2 { line-height: 1.4; letter-spacing: 0; font-size: clamp(30px, 4.4vw, 52px); }

.foot-cta p { max-width: 34rem; margin-top: 18px; font-size: 17px; line-height: 1.6; color: var(--muted); }

.foot-cta .hero-actions { margin-top: 30px; }

.footer-top-grid { padding-top: 40px; border-top: 1px solid var(--hair); }

.footer-col-title { font-size: 14px; font-weight: 600; color: rgba(232, 244, 242, 0.5); }

.footer-link:hover { color: #fff; text-decoration: none; }

.footer-bottom-bar { border-top: 1px solid var(--hair); margin-top: 28px; }

.foot-mark { position: relative; z-index: -1; height: clamp(84px, 15.5vw, 300px); margin-top: clamp(40px, 6vw, 96px); pointer-events: none; user-select: none; }

.foot-mark::before { content: ''; position: absolute; left: -10%; right: -10%; bottom: 0; height: 190%; background: radial-gradient(52% 78% at 50% 100%, var(--sun-hot), rgba(18, 183, 178, 0.62) 36%, rgba(18, 183, 178, 0) 74%); }

.foot-mark span { position: absolute; left: 0; right: 0; bottom: -0.23em; direction: ltr; text-align: center; white-space: nowrap; font-family: var(--font-heading); font-size: clamp(48px, 14.6vw, 300px); font-weight: 900; line-height: 1; letter-spacing: -0.045em; color: transparent; background: linear-gradient(180deg, #f4fbfa 18%, rgba(244, 251, 250, 0.3) 88%); -webkit-background-clip: text; background-clip: text; will-change: transform; }

/* --- 17. Other pages on the same system --- */
.signup-card, .legal-card-shell, .contact-form-card { border-radius: 24px; box-shadow: var(--shadow-card); }

.form-input, .form-select, .form-textarea { background: var(--surface); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 16%, transparent); }

.form-input:focus, .form-select:focus, .form-textarea:focus { box-shadow: inset 0 0 0 2px var(--teal-dark), 0 0 0 4px var(--teal-soft); }

.form-input[aria-invalid], .form-select[aria-invalid] { box-shadow: inset 0 0 0 2px #b3261e; }

.legal-card-shell h2 { font-weight: 700; border-bottom: 1px solid var(--hair); }

#toast-msg { border: 0; box-shadow: var(--shadow-lift); }

/* --- 18. Small screens and motion preferences --- */
@media (max-width: 700px) {
  .hero-top { padding-bottom: 240px; }
  .work { margin-top: -180px; }
  .work-frame { padding: 4px; border-radius: 18px; }
  .work-stage { border-radius: 14px; }
  .feature { border-radius: 22px; }
  .feature-art { border-radius: 17px; }
  .site-header { top: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html.js .rise, .reveal, html.js .hero-word > span, html.js .hero :is(.hero-pill, .hero-lead, .hero-actions, .work),
  html.js .feature :is(.mock-row, .convo, .mini-deal, .app-kpi), html.js .feature .mock-bars span { opacity: 1; transform: none; translate: 0 0; }
  html.js .tool-pile li s { background-size: 100% 2px; }
  .site-header.is-tucked { translate: 0 0; }
}

/* Dark theme: the hero sun sets straight into navy paper, without the pale band */
:root[data-theme='dark'] .hero-top { background: linear-gradient(180deg, var(--ink-deep) 0%, var(--ink-2) 22%, var(--sun-deep) 56%, var(--sun) 74%, #0d7c84 86%, var(--paper) 100%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .hero-top { background: linear-gradient(180deg, var(--ink-deep) 0%, var(--ink-2) 22%, var(--sun-deep) 56%, var(--sun) 74%, #0d7c84 86%, var(--paper) 100%); } }

/* Dark theme: the ink button flips to cream so it stays visible on navy paper */
:root[data-theme='dark'] .btn-dark { color: #102a43; background: #f7f6ed; }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .btn-dark { color: #102a43; background: #f7f6ed; } }
