/* ==========================================================
   Lumio VSL funnel, Arabic (RTL)
   Mobile first. Breakpoints: 380, 640, 680, 880.
   To clone for a new client: change the tokens below,
   swap assets/lumio-logo.png, and edit the copy in index.html.
   ========================================================== */

:root {
  --cream: #FBF8F0;
  --deep-olive: #4E5531;
  --olive: #7C8551;
  --bright-olive: #97A368;
  --coffee: #5E4632;
  --ink: #262420;
  --soft-olive: #EDEFE2;
  --hairline: #EAE3D4;
  --white: #FFFFFF;
  --muted: #5C584F;
  --error: #A33A2A;

  --radius: 18px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(38, 36, 32, 0.04), 0 4px 14px rgba(38, 36, 32, 0.04);
  --shadow-md: 0 2px 4px rgba(38, 36, 32, 0.04), 0 14px 36px rgba(78, 85, 49, 0.12);
  --shadow-lg: 0 4px 10px rgba(38, 36, 32, 0.05), 0 30px 70px rgba(78, 85, 49, 0.18);

  --gutter: 20px;
  --section-y: 72px;
  --sticky-h: 76px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 80px;
}
html.modal-open { overflow: hidden; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Cairo", "Segoe UI", Tahoma, system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* room for the sticky mobile CTA so it never covers content */
  padding-bottom: calc(var(--sticky-h) + env(safe-area-inset-bottom, 0px));
}

img, svg { max-width: 100%; display: block; }
h1, h2, h3, p, ul, ol, dl, dd, fieldset, legend { margin: 0; }
ul, ol { padding: 0; list-style: none; }
fieldset { border: 0; padding: 0; min-width: 0; }
a { color: inherit; }
button, input { font: inherit; }

:focus-visible {
  outline: 3px solid var(--bright-olive);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  inset-inline-start: 12px;
  top: -70px;
  z-index: 100;
  background: var(--deep-olive);
  color: var(--white);
  padding: 12px 16px;
  border-radius: 10px;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.container-narrow { max-width: 800px; }

/* ---------- Type ---------- */
h1, h2, h3 { line-height: 1.35; text-wrap: balance; }
h1 {
  font-size: clamp(1.875rem, 8.2vw, 4rem);
  font-weight: 800;
  line-height: 1.3;
}
h1 .line { display: block; }
h2 {
  font-size: clamp(1.625rem, 6vw, 2.875rem);
  font-weight: 800;
}
h3 {
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.5;
}
.accent { color: var(--olive); }

.eyebrow {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--olive);
  margin-bottom: 14px;
  text-wrap: balance;
}
.eyebrow-light { color: #D5DCB8; }

.lead {
  font-size: 1.0625rem;
  color: var(--muted);
  margin-top: 14px;
  text-wrap: pretty;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 24px;
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--deep-olive);
  color: var(--white);
  box-shadow: 0 8px 22px rgba(78, 85, 49, 0.28);
}
.btn-light {
  background: var(--cream);
  color: var(--deep-olive);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}
.btn-small {
  min-height: 44px;
  padding: 8px 18px;
  font-size: 0.9375rem;
  background: var(--deep-olive);
  color: var(--white);
}
.btn-large {
  min-height: 60px;
  padding: 14px 32px;
  font-size: 1.1875rem;
  width: 100%;
  max-width: 400px;
}

/* Soft pulse on the main CTA */
.btn-pulse { animation: pulse 2.6s ease-out infinite; }
.btn-pulse-light { animation: pulse-light 2.6s ease-out infinite; }
@keyframes pulse {
  0%   { box-shadow: 0 8px 22px rgba(78, 85, 49, 0.28), 0 0 0 0 rgba(124, 133, 81, 0.55); }
  70%  { box-shadow: 0 8px 22px rgba(78, 85, 49, 0.28), 0 0 0 18px rgba(124, 133, 81, 0); }
  100% { box-shadow: 0 8px 22px rgba(78, 85, 49, 0.28), 0 0 0 0 rgba(124, 133, 81, 0); }
}
@keyframes pulse-light {
  0%   { box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18), 0 0 0 0 rgba(251, 248, 240, 0.5); }
  70%  { box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18), 0 0 0 18px rgba(251, 248, 240, 0); }
  100% { box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18), 0 0 0 0 rgba(251, 248, 240, 0); }
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--deep-olive);
  font-weight: 700;
  text-decoration: none;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 248, 240, 0.86);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--hairline);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}
.brand { display: inline-flex; align-items: center; min-height: 44px; }
.brand img { height: 30px; width: auto; }

/* ---------- Hero ---------- */
.hero { padding: 40px 0 64px; }
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  text-align: center;
}
.hero-copy,
.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.hero-video { width: 100%; }
.hero-scene { width: 100%; max-width: 440px; margin-top: 40px; }
.hero .eyebrow { max-width: 30ch; }
.hero-sub {
  margin-top: 18px;
  max-width: 32ch;
  font-size: 1.0625rem;
  color: var(--muted);
  text-wrap: pretty;
}

.video-shell {
  width: 100%;
  max-width: 820px;
  margin: 30px auto 28px;
  padding: 6px;
  border-radius: 22px;
  background: var(--white);
  border: 1px solid #D9DEC4;
  box-shadow: var(--shadow-lg);
}
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: radial-gradient(120% 90% at 50% 0%, #F6F7EE 0%, var(--soft-olive) 55%, #DFE3CD 100%);
}
.video-frame iframe,
.video-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}
.video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--deep-olive);
  font: inherit;
}
button.video-placeholder { cursor: pointer; }
.play-badge {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--deep-olive);
  color: var(--white);
  box-shadow: 0 10px 30px rgba(78, 85, 49, 0.35);
  transition: transform 0.25s ease;
  animation: float 3.6s ease-in-out infinite;
}
.play-badge svg { margin-left: 3px; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
.video-label { font-size: 0.9375rem; font-weight: 700; }

.reassure { margin-top: 14px; font-size: 0.9375rem; color: var(--muted); }

/* Hero entrance (plays once on load, only when JS is running) */
.js .hero-in {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
.js .hero-in:nth-child(2) { animation-delay: 0.08s; }
.js .hero-in:nth-child(3) { animation-delay: 0.16s; }
.js .hero-in:nth-child(4) { animation-delay: 0.26s; }
.js .hero-in:nth-child(5) { animation-delay: 0.38s; }
.js .hero-in:nth-child(6) { animation-delay: 0.46s; }
@keyframes rise {
  to { opacity: 1; transform: none; }
}
/* safety net: script.js adds .hero-ready after the entrance, so the hero can never stay hidden */
.js.hero-ready .hero-in { opacity: 1; transform: none; animation: none; }

/* ---------- Sections ---------- */
.section { padding: var(--section-y) 0; }
.section-soft { background: var(--soft-olive); }
.section-head {
  max-width: 720px;
  margin: 0 auto 40px;
  text-align: center;
}

.grid { display: grid; gap: 16px; }

.card {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.card p { color: var(--muted); font-size: 1rem; margin-top: 6px; }
.card h3 { margin-top: 16px; }
.card .card-step {
  margin-top: 16px;
  font-size: 0.9375rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--bright-olive);
  line-height: 1.4;
}
.card .card-step + h3 { margin-top: 2px; }

.icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--soft-olive);
  color: var(--deep-olive);
  transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}
.section-soft .icon { background: #F3F4EA; }
.icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card-row { display: flex; gap: 18px; align-items: flex-start; }
.card-row h3 { margin-top: 0; }

/* ---------- Timeline ---------- */
.timeline {
  position: relative;
  display: grid;
  gap: 28px;
  max-width: 560px;
  margin: 0 auto;
}
.timeline::before {
  content: "";
  position: absolute;
  inset-inline-start: 21px;
  top: 22px;
  bottom: 22px;
  width: 2px;
  background: linear-gradient(var(--bright-olive), var(--soft-olive));
}
.step { position: relative; padding-inline-start: 68px; }
.step-dot {
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--deep-olive);
  color: var(--white);
  font-weight: 800;
  box-shadow: 0 0 0 6px var(--cream);
}
.step-day {
  font-size: 0.9375rem;
  font-weight: 800;
  color: var(--coffee);
  line-height: 1.5;
}
.step h3 { font-size: 1.3125rem; margin-top: 2px; }
.step p:last-child { color: var(--muted); margin-top: 6px; }

/* ---------- Olive bands ---------- */
.band {
  background: var(--deep-olive);
  color: var(--cream);
  padding: 80px 0;
  text-align: center;
  overflow: hidden;
}
.band-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.band-title {
  font-size: clamp(1.75rem, 7vw, 3.5rem);
  line-height: 1.35;
  max-width: 18ch;
  color: var(--white);
}
.band-sub {
  margin-top: 16px;
  font-size: 1.0625rem;
  color: #DDE2C6;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  max-width: 760px;
  margin-top: 40px;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 4px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.stat dt {
  font-size: clamp(2.25rem, 10vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--white);
  font-variant-numeric: tabular-nums;
  direction: ltr;
}
.stat dd {
  margin-top: 2px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #DDE2C6;
  line-height: 1.5;
}

.band-cta .btn { margin-top: 32px; }
.band-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 20px;
  font-weight: 700;
  color: var(--cream);
}
.band-contact a,
.band-contact span:not(.sep) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.band-contact a { text-decoration: none; }
.sep { display: none; }

/* ---------- FAQ ---------- */
.faq {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.faq details + details { border-top: 1px solid var(--hairline); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 14px 20px;
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.6;
  cursor: pointer;
  list-style: none;
  transition: color 0.2s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background:
    linear-gradient(var(--deep-olive), var(--deep-olive)) center / 12px 2px no-repeat,
    linear-gradient(var(--deep-olive), var(--deep-olive)) center / 2px 12px no-repeat,
    var(--soft-olive);
  transition: transform 0.25s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details[open] summary { color: var(--deep-olive); }
.faq summary:focus-visible { outline-offset: -3px; border-radius: 12px; }
.faq-body { padding: 0 20px 20px; color: var(--muted); max-width: 62ch; }
.faq details[open] .faq-body { animation: faq-in 0.35s ease; }
@keyframes faq-in {
  from { opacity: 0; transform: translateY(-6px); }
}
.faq-body p + p { margin-top: 4px; }

/* ---------- Footer ---------- */
.site-footer {
  padding: 48px 0 40px;
  text-align: center;
  border-top: 1px solid var(--hairline);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.footer-logo { height: 34px; width: auto; }
.footer-tagline { margin-top: 10px; color: var(--muted); }
.footer-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 14px;
  font-weight: 600;
}
.footer-meta a,
.footer-meta span:not(.sep) {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
}
.footer-meta a { color: var(--deep-olive); text-decoration: none; }
.footer-copy { margin-top: 14px; font-size: 0.9375rem; color: var(--muted); }

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(251, 248, 240, 0.92);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-top: 1px solid var(--hairline);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.sticky-cta .btn { width: 100%; min-height: 56px; font-size: 1.125rem; }
.sticky-cta.is-hidden {
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
}

/* ---------- Form modal ---------- */
.modal {
  width: min(480px, calc(100vw - 24px));
  max-width: none;
  max-height: calc(100dvh - 24px);
  padding: 0;
  border: 0;
  border-radius: 22px;
  background: var(--cream);
  color: var(--ink);
  box-shadow: 0 30px 90px rgba(38, 36, 32, 0.35);
  overflow: auto;
  overscroll-behavior: contain;
}
.modal::backdrop {
  background: rgba(38, 36, 32, 0.55);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.modal[open] { animation: modal-in 0.3s cubic-bezier(0.2, 0.7, 0.2, 1); }
.modal[open]::backdrop { animation: fade-in 0.3s ease; }
@keyframes modal-in {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
}
@keyframes fade-in {
  from { opacity: 0; }
}
.modal-card { position: relative; padding: 28px 20px 22px; }
.modal-close {
  position: absolute;
  top: 10px;
  inset-inline-end: 10px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.modal-title {
  font-size: 1.4375rem;
  line-height: 1.45;
  padding-inline-end: 40px;
}
.modal-sub { margin-top: 6px; color: var(--muted); font-size: 0.9375rem; }

.field { margin-top: 20px; }
.field-label {
  display: block;
  padding: 0;
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 1rem;
}
.input {
  width: 100%;
  min-height: 52px;
  padding: 10px 16px;
  border: 1.5px solid var(--hairline);
  border-radius: 14px;
  background: var(--white);
  color: var(--ink);
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.input::placeholder { color: #9A958A; }
.input:focus {
  outline: none;
  border-color: var(--olive);
  box-shadow: 0 0 0 4px rgba(151, 163, 104, 0.25);
}
.input[aria-invalid="true"] { border-color: var(--error); }

.options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.options-stack { grid-template-columns: 1fr; }
.option { position: relative; display: block; cursor: pointer; }
.option input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.option span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 6px 8px;
  border: 1.5px solid var(--hairline);
  border-radius: 14px;
  background: var(--white);
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.4;
  text-align: center;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.option input:checked + span {
  border-color: var(--deep-olive);
  background: var(--deep-olive);
  color: var(--white);
}
.option input:focus-visible + span {
  outline: 3px solid var(--bright-olive);
  outline-offset: 2px;
}
.option input:active + span { transform: scale(0.97); }

.field-error {
  margin-top: 6px;
  color: var(--error);
  font-size: 0.9375rem;
  font-weight: 600;
}
.btn-submit { width: 100%; min-height: 56px; margin-top: 24px; font-size: 1.125rem; }
.modal-note { margin-top: 10px; text-align: center; color: var(--muted); font-size: 0.9375rem; }
.shake { animation: shake 0.35s ease; }
@keyframes shake {
  25% { transform: translateX(-6px); }
  50% { transform: translateX(6px); }
  75% { transform: translateX(-3px); }
}

/* ---------- Scroll reveal (only when JS is running) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.js .reveal.is-visible { opacity: 1; transform: none; }
/* once revealed, switch to a quick transition so hover feels snappy */
.js .reveal.is-done { transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease; }

/* ---------- Hover (only on devices that really hover) ---------- */
@media (hover: hover) {
  .btn-primary:hover, .btn-small:hover {
    background: #5A6239;
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(78, 85, 49, 0.34);
  }
  .btn-light:hover { background: var(--white); transform: translateY(-2px); }
  .btn-pulse:hover, .btn-pulse-light:hover { animation-play-state: paused; }
  .card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: #D9DEC4;
  }
  .card:hover .icon { background: var(--deep-olive); color: var(--white); transform: scale(1.06); }
  button.video-placeholder:hover .play-badge { transform: scale(1.08); animation-play-state: paused; }
  .faq summary:hover { color: var(--deep-olive); }
  .modal-close:hover { background: var(--soft-olive); color: var(--ink); }
  .option:hover span { border-color: var(--bright-olive); }
}

/* ==========================================================
   Breakpoints
   ========================================================== */

/* Very small phones */
@media (max-width: 380px) {
  :root { --gutter: 16px; }
  .brand img { height: 26px; }
  .btn-small { padding: 8px 14px; }
  .btn-large { font-size: 1.125rem; padding: 14px 16px; }
  .card { padding: 20px; }
  .card-row { gap: 14px; }
  .stats { gap: 6px; }
  .stat { padding: 14px 2px; }
  .faq summary { padding: 12px 16px; }
  .faq-body { padding: 0 16px 18px; }
  .modal-card { padding: 24px 16px 18px; }
  .modal-title { font-size: 1.3125rem; }
  .options:not(.options-stack) { gap: 6px; }
  .options:not(.options-stack) .option span { padding: 6px 4px; }
  .field { margin-top: 16px; }
}

@media (min-width: 640px) {
  :root { --gutter: 28px; --section-y: 96px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 > :last-child { grid-column: 1 / -1; }
  .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .grid-5 > :last-child { grid-column: 1 / -1; }
  .card { padding: 28px; }
  .stats { gap: 16px; }
  .stat { padding: 26px 12px; }
  .stat dd { font-size: 1.0625rem; }
  .band { padding: 104px 0; }
  .band-contact,
  .footer-meta { flex-direction: row; gap: 14px; }
  .sep {
    display: inline-block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.5;
  }
  .modal-card { padding: 34px 30px 26px; }
  .modal-title { font-size: 1.625rem; }
}

/* Sticky CTA is mobile only */
@media (min-width: 680px) {
  body { padding-bottom: 0; }
  .hero { padding: 60px 0 88px; }
  .hero-sub, .lead, .band-sub { font-size: 1.1875rem; }
  .hero-sub { max-width: 44ch; }
  .hero .eyebrow { max-width: none; font-size: 1rem; }
  .video-shell { margin: 40px auto 36px; padding: 8px; border-radius: 26px; }
  .video-frame { border-radius: 18px; }
  .play-badge { width: 84px; height: 84px; }
  .play-badge svg { width: 34px; height: 34px; }
  .video-label { font-size: 1.0625rem; }
  .btn-large { width: auto; min-width: 320px; }
  .brand img { height: 34px; }
  .header-inner { min-height: 72px; }
}

@media (min-width: 880px) {
  :root { --section-y: 120px; }
  .section-head { margin-bottom: 56px; }
  .grid { gap: 20px; }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-3 > :last-child { grid-column: auto; }

  /* 5 cards as 3 + 2, second row centered */
  .grid-5 { grid-template-columns: repeat(6, 1fr); }
  .grid-5 > * { grid-column: span 2; }
  .grid-5 > :last-child { grid-column: span 2; }
  .grid-5 > :nth-child(4) { grid-column: 2 / span 2; }

  /* Horizontal timeline */
  .timeline {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: none;
  }
  .timeline::before {
    inset-inline: calc(100% / 6);
    top: 21px;
    bottom: auto;
    width: auto;
    height: 2px;
    background: linear-gradient(to left, var(--bright-olive), var(--soft-olive));
  }
  .step { padding: 68px 12px 0; text-align: center; }
  .step-dot { inset-inline-start: 50%; transform: translateX(50%); }
  .step p:last-child { max-width: 30ch; margin-inline: auto; }

  .band { padding: 128px 0; }
  .faq summary { padding: 18px 28px; font-size: 1.1875rem; }
  .faq-body { padding: 0 28px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal, .js .hero-in { opacity: 1; transform: none; }
}

/* ==========================================================
   V2: illustrations, textures, extra motion
   ========================================================== */

/* ---------- Scroll progress bar ---------- */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  height: 3px;
  background: linear-gradient(to left, var(--bright-olive), var(--deep-olive));
  transform: scaleX(0);
  transform-origin: right center;
  will-change: transform;
}

/* ---------- Grain texture over the whole page ---------- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 45;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22180%22 height=%22180%22%3E%3Cfilter id=%22n%22%3E%3CfeTurbulence type=%22fractalNoise%22 baseFrequency=%22.85%22 numOctaves=%222%22 stitchTiles=%22stitch%22/%3E%3CfeColorMatrix values=%220 0 0 0 .15 0 0 0 0 .14 0 0 0 0 .12 0 0 0 .9 0%22/%3E%3C/filter%3E%3Crect width=%22180%22 height=%22180%22 filter=%22url(%23n)%22/%3E%3C/svg%3E");
}

/* ---------- Soft blurred blobs ---------- */
.hero, .section, .band { position: relative; }
.hero, .band { overflow: hidden; overflow: clip; }
.section > .container, .band > .container { position: relative; z-index: 1; }
.blob {
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(46px);
  animation: drift 18s ease-in-out infinite alternate;
}
.blob-a {
  width: 320px; height: 320px;
  top: -90px; inset-inline-start: -130px;
  background: radial-gradient(circle, rgba(151, 163, 104, 0.55), rgba(151, 163, 104, 0) 70%);
}
.blob-b {
  width: 360px; height: 360px;
  top: 38%; inset-inline-end: -170px;
  background: radial-gradient(circle, rgba(94, 70, 50, 0.16), rgba(94, 70, 50, 0) 70%);
  animation-delay: -6s;
}
.blob-c {
  width: 460px; height: 460px;
  top: -160px; inset-inline-end: -140px;
  background: radial-gradient(circle, rgba(151, 163, 104, 0.4), rgba(151, 163, 104, 0) 70%);
}
.blob-d {
  width: 420px; height: 420px;
  bottom: -200px; inset-inline-start: -120px;
  background: radial-gradient(circle, rgba(151, 163, 104, 0.42), rgba(151, 163, 104, 0) 70%);
}
.blob-e {
  width: 300px; height: 300px;
  top: -120px; inset-inline-end: -80px;
  background: radial-gradient(circle, rgba(251, 248, 240, 0.14), rgba(251, 248, 240, 0) 70%);
  animation-delay: -8s;
}
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(30px, 24px) scale(1.12); }
}

/* ---------- Wave dividers ---------- */
.wave { line-height: 0; margin-bottom: -1px; background: var(--from); }
.wave svg { display: block; width: 100%; height: clamp(34px, 6vw, 70px); fill: var(--to); }
.wave-cream-soft  { --from: var(--cream);      --to: var(--soft-olive); }
.wave-soft-cream  { --from: var(--soft-olive); --to: var(--cream); }
.wave-cream-olive { --from: var(--cream);      --to: var(--deep-olive); }
.wave-olive-cream { --from: var(--deep-olive); --to: var(--cream); }
.wave-soft-olive  { --from: var(--soft-olive); --to: var(--deep-olive); }

/* ---------- Illustrations ---------- */
.illo { display: block; width: 100%; height: auto; overflow: visible; }
.illo text { font-family: "Cairo", "Segoe UI", Tahoma, sans-serif; }
.illo-chairs { max-width: 300px; margin: 0 auto 22px; }
.illo-recep { max-width: 300px; margin: 0 auto; filter: drop-shadow(0 18px 30px rgba(78, 85, 49, 0.12)); }
.illo-patient { max-width: 280px; margin: 0 auto; filter: drop-shadow(0 18px 30px rgba(78, 85, 49, 0.1)); }
.scene { filter: drop-shadow(0 22px 34px rgba(78, 85, 49, 0.14)); }

.head-split { display: grid; gap: 28px; margin-bottom: 40px; }
.head-split .section-head { margin-bottom: 0; }
.why-split { display: grid; gap: 32px; }

/* looping motion inside the drawings */
.sc-doc, .rc-body, .pt-body { animation: bob 4.6s ease-in-out infinite; }
.pt-body { animation-duration: 5.2s; }
.sc-phone { animation: bob 5.6s ease-in-out -1.5s infinite; }
.sc-arm { transform-origin: 340px 206px; animation: wave-arm 2.8s ease-in-out infinite; }
.sc-leaf { transform-origin: 54px 348px; animation: sway 5s ease-in-out infinite alternate; }
.sc-clock { transform-origin: 226px 80px; animation: spin 14s linear infinite; }
.ch-clock { transform-origin: 42px 34px; animation: spin 10s linear infinite; }
.ch-ghost { animation: ghost 3.6s ease-in-out infinite; }
.sc-notif { animation: notif 7s cubic-bezier(0.2, 0.7, 0.2, 1) infinite backwards; }
.sc-notif.n2 { animation-delay: 0.9s; }
.sc-notif.n3 { animation-delay: 1.8s; }
.sc-badge { transform-origin: 500px 102px; animation: badge 2.4s ease-in-out infinite; }
.sc-spark { animation: twinkle 3.2s ease-in-out infinite; }
.sc-spark.s2 { animation-delay: -1s; }
.sc-spark.s3 { animation-delay: -2s; }
.fl { animation: bob 5s ease-in-out infinite; }
.fl.f2 { animation-delay: -2.4s; }

@keyframes bob { 50% { transform: translateY(-6px); } }
@keyframes wave-arm { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(-8deg); } }
@keyframes sway { from { transform: rotate(-3deg); } to { transform: rotate(3deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes ghost { 0%, 100% { opacity: 0.25; } 50% { opacity: 0.7; } }
@keyframes badge { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.14); } }
@keyframes twinkle { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }
@keyframes notif {
  0%        { opacity: 0; transform: translateY(18px); }
  9%, 80%   { opacity: 1; transform: translateY(0); }
  90%, 100% { opacity: 0; transform: translateY(-10px); }
}

/* ---------- Animated underline on links ---------- */
.ul {
  padding-bottom: 3px;
  background: linear-gradient(currentColor, currentColor) no-repeat right bottom / 100% 2px;
  transition: background-size 0.35s ease;
}
@media (hover: hover) {
  .ul { background-size: 0% 2px; }
  a:hover .ul, a:focus-visible .ul { background-size: 100% 2px; }
}

/* ---------- Modal: smooth close ---------- */
.modal.is-closing { animation: modal-out 0.22s ease forwards; }
.modal.is-closing::backdrop { animation: fade-out 0.22s ease forwards; }
@keyframes modal-out { to { opacity: 0; transform: translateY(14px) scale(0.98); } }
@keyframes fade-out { to { opacity: 0; } }

/* ---------- Layered card shadow ---------- */
.card {
  box-shadow:
    0 1px 1px rgba(38, 36, 32, 0.03),
    0 3px 8px rgba(38, 36, 32, 0.04),
    0 14px 30px rgba(78, 85, 49, 0.06);
}
.stat { transition: transform 0.25s ease, background-color 0.25s ease; }
@media (hover: hover) {
  .stat:hover { transform: translateY(-4px); background: rgba(255, 255, 255, 0.12); }
}

/* ---------- Floating CTA on desktop ---------- */
@media (min-width: 680px) {
  .sticky-cta {
    left: auto;
    right: auto;
    inset-inline-end: 28px;
    bottom: 28px;
    padding: 0;
    background: none;
    border: 0;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .sticky-cta .btn {
    width: auto;
    padding: 12px 30px;
    box-shadow: 0 6px 14px rgba(38, 36, 32, 0.12), 0 18px 40px rgba(78, 85, 49, 0.38);
  }
  .sticky-cta.is-hidden { transform: translateY(24px) scale(0.96); }
  .hero-scene { max-width: 480px; }
  .illo-chairs { max-width: 340px; }
}

@media (min-width: 880px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    grid-template-areas:
      "copy scene"
      "video video"
      "actions actions";
    column-gap: 48px;
    align-items: center;
  }
  .hero-copy { grid-area: copy; align-items: flex-start; text-align: start; }
  .hero-scene { grid-area: scene; margin-top: 0; max-width: none; }
  .hero-video { grid-area: video; }
  .hero-actions { grid-area: actions; }
  .hero h1 { font-size: clamp(2.5rem, 4.3vw, 3.5rem); }
  .hero .hero-sub { max-width: 34ch; }
  .video-shell { margin-top: 56px; }

  .head-split {
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: center;
    gap: 48px;
    margin-bottom: 56px;
  }
  .head-split .section-head { max-width: none; margin: 0; text-align: start; }
  .illo-recep { max-width: none; }

  .why-split {
    grid-template-columns: 300px minmax(0, 1fr);
    align-items: center;
    gap: 48px;
  }
  .illo-patient { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  .blob, .illo *, .progress { animation: none !important; transition: none !important; }
}
