/* Clinifie landing: one clinic day. Night is brand-green black, day is drenched lime. */
:root {
  --night: #0F1A13;
  --night-2: #16261B;
  --dawn: #1D3524;
  --dusk: #24402B;
  --lime: #66CC33;
  --lime-2: #6DBD45;
  --green-3: #589F44;
  --green: #437839;
  --ink: #211F1D;
  --ink-2: #3A3A33;
  --paper: #FFFFFF;
  --paper-2: #F3F8EF;
  --on-night: #F2FBEA;
  --on-night-2: #AFC6B4;
  --hair-night: #2A3D30;
  --hair-paper: #DCE5D6;
  --wa-head: #008069;
  --wa-bg: #EFE7DE;
  --wa-in: #D9FDD3;
  --wa-ink: #111B21;
  --display: 'Alexandria', 'Segoe UI', Tahoma, sans-serif;
  --body-ar: 'Alexandria', 'Segoe UI', Tahoma, sans-serif;
  --body-en: 'Lato', 'Segoe UI', sans-serif;
  --gutter: clamp(16px, 5vw, 96px);
  --section: clamp(88px, 12vw, 168px);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

@font-face { font-family: 'Alexandria'; font-style: normal; font-weight: 400 900; font-display: swap; src: url("fonts/alexandria-arabic.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: 'Alexandria'; font-style: normal; font-weight: 400 900; font-display: swap; src: url("fonts/alexandria-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Lato'; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/lato-400.woff2") format("woff2"); }
@font-face { font-family: 'Lato'; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/lato-700.woff2") format("woff2"); }
@font-face { font-family: 'Lato'; font-style: normal; font-weight: 900; font-display: swap; src: url("fonts/lato-900.woff2") format("woff2"); }

* { box-sizing: border-box; }
.em { display: inline-block; margin-inline: .22em; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 124px; scrollbar-color: var(--green-3) var(--night); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--night);
  color: var(--on-night);
  font-family: var(--body-ar);
  font-size: 1.0625rem;
  line-height: 1.75;
  caret-color: var(--lime);
  -webkit-font-smoothing: antialiased;
}
:lang(en) body, html[lang="en"] body { font-family: var(--body-en); line-height: 1.6; }
h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .25em; }
::selection { background: var(--lime); color: var(--ink); }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 6px; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--night); }
::-webkit-scrollbar-thumb { background: var(--green); border-radius: 10px; border: 2px solid var(--night); }

.skip { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100; background: var(--lime); color: var(--ink); padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip:focus { top: 12px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 52px; padding: 0 28px; border-radius: 999px;
  font-family: var(--display); font-weight: 800; font-size: 1.0625rem; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .5s var(--ease-out), background-color .3s, color .3s, border-color .3s, box-shadow .5s var(--ease-out);
}
.btn-lime { background: var(--lime); color: var(--ink); box-shadow: 0 10px 22px -12px rgba(0, 0, 0, .45); }
.btn-lime:hover { background: #77D847; transform: translateY(-2px); box-shadow: 0 16px 28px -14px rgba(0, 0, 0, .5); }
.btn-lime:active { transform: translateY(0); }
.btn-ghost { color: var(--on-night); border-color: var(--green-3); }
.btn-ghost:hover { border-color: var(--lime); color: var(--lime); }
.btn-small { min-height: 42px; padding: 0 18px; font-size: .9375rem; background: var(--lime); color: var(--ink); }
.btn-small:hover { background: #77D847; }
.nav .btn-small { transition: opacity .3s var(--ease-out), transform .4s var(--ease-out), visibility 0s, background-color .3s; }
.nav:not(.show-cta) .btn-small { opacity: 0; transform: translateY(-6px); visibility: hidden; pointer-events: none; transition: opacity .3s, transform .4s, visibility 0s .3s; }
.btn[aria-busy="true"] { opacity: .7; cursor: progress; }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background-color .4s, border-color .4s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: var(--night); border-bottom-color: var(--hair-night); }
.offer-bar { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px 14px; min-height: 36px; padding: 6px var(--gutter); background: var(--lime); color: var(--ink); font-weight: 600; font-size: .9375rem; line-height: 1.4; text-decoration: none; text-align: center; }
.offer-more { font-weight: 800; text-decoration: underline; text-underline-offset: .25em; }
.offer-bar:hover .offer-more { text-decoration-thickness: 2px; }
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; padding: 0 var(--gutter); }
.brand img { width: 150px; height: auto; }
.links { display: flex; gap: 32px; font-size: .9688rem; }
.links a { text-decoration: none; color: var(--on-night-2); transition: color .25s; }
.links a:hover { color: var(--on-night); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.lang { font-family: var(--body-en); font-weight: 700; font-size: .875rem; letter-spacing: .04em; color: var(--on-night); background: none; border: 1px solid var(--hair-night); border-radius: 999px; padding: 8px 14px; cursor: pointer; }
.lang:hover { border-color: var(--green-3); }
html[lang="en"] .lang { font-family: var(--body-ar); letter-spacing: 0; }

/* ---------- hero ---------- */
.hero {
  position: relative; z-index: 2;
  min-height: max(720px, 100svh);
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; gap: clamp(32px, 4vw, 72px);
  padding: 148px var(--gutter) 56px;
  background: var(--night);
}
.hero-copy { position: relative; z-index: 2; container-type: inline-size; }
.hero h1 { font-weight: 900; font-size: clamp(2.5rem, 10.4cqi, 5.5rem); line-height: 1.4; letter-spacing: -.01em; }
.hero h1 span { display: block; }
.hero h1 span + span { margin-top: .34em; }
html[lang="en"] .hero h1 { letter-spacing: -.03em; line-height: 1.04; }
html[lang="en"] .hero h1 span + span { margin-top: .04em; }
.lime { color: var(--lime); }
.hero-sub { margin-top: 28px; max-width: 34em; font-size: clamp(1.0625rem, 1.5vw, 1.3125rem); color: var(--on-night-2); }
.hero-actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 14px; }

/* the conversation stands beside the mascot; the mascot listens, types in its own face, then answers */
.hero-stage { display: flex; align-items: flex-end; gap: clamp(14px, 1.6vw, 24px); max-width: 600px; }
.convo { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.mascot {
  --lean: 1;
  position: relative; flex: none;
  width: clamp(170px, 16vw, 270px);
  transform-origin: 50% 85%;
  transform: rotate(calc(var(--lean) * -4deg));
  filter: drop-shadow(0 18px 18px rgba(0, 0, 0, .35));
  transition: transform .7s var(--ease-out);
}
html[dir="ltr"] .mascot { --lean: -1; }
.mascot.listening { transform: rotate(calc(var(--lean) * 7deg)) translateY(-6px); }
/* a chat arrives: badge + wide eyes, then it hops over to the conversation and stays close until it's done */
.mascot { --reach-x: 16px; --reach-y: -56px; transition: transform .9s cubic-bezier(.34, 1.45, .5, 1); }
.mascot.engaged { transform: translate(calc(var(--lean) * var(--reach-x)), var(--reach-y)) rotate(calc(var(--lean) * 3deg)); }
.mascot.engaged.listening { transform: translate(calc(var(--lean) * var(--reach-x)), calc(var(--reach-y) - 6px)) rotate(calc(var(--lean) * 8deg)); }
.mascot.alert .eye { scale: 1.2 1.3; }
.mascot-svg .eye { transition: translate .45s var(--ease-out), opacity .2s, scale .25s var(--ease-out); }
.ping {
  position: absolute; z-index: 3; top: 3%; left: 70%;
  min-width: 36px; height: 36px; padding: 0 10px; border-radius: 999px;
  display: grid; place-items: center;
  background: var(--paper); color: var(--ink); font-family: var(--display); font-weight: 900; font-size: .9375rem; line-height: 1;
  box-shadow: 0 6px 14px rgba(0, 0, 0, .35);
  opacity: 0; transform: scale(.3);
  transition: opacity .2s, transform .45s cubic-bezier(.34, 1.6, .5, 1);
}
.mascot.alert .ping { opacity: 1; transform: scale(1); }
.mascot:not(.engaged) .mascot-svg { animation: breathe 3.4s ease-in-out infinite; }
@keyframes breathe { 50% { transform: translateY(-4px) scale(1.015); } }
.mascot.engaged .mascot-svg { animation: hop .7s var(--ease-out); }
@keyframes hop { 35% { transform: translateY(-22px) rotate(-3deg); } 70% { transform: translateY(2px); } }
.mascot.reply .mascot-svg { animation: reply .7s var(--ease-out); }
@keyframes reply { 30% { transform: translateY(-10px) scale(1.03); } }
.mascot-svg .eye { transform-box: fill-box; transform-origin: center; animation: blink 5.5s infinite; transition: translate .45s var(--ease-out), opacity .2s; }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.12); } }
.mascot.typing .eye { opacity: 0; }
.face-dots { position: absolute; z-index: 2; left: 58%; top: 37%; width: 34%; display: flex; justify-content: space-between; transform: translate(-50%, -50%); opacity: 0; transition: opacity .2s; pointer-events: none; }
html[dir="ltr"] .face-dots { left: 58%; }
.face-dots i { width: 24%; aspect-ratio: 1; border-radius: 50%; background: var(--lime-2); animation: dot 1s infinite var(--ease-out); }
.face-dots i:nth-child(2) { background: var(--green-3); animation-delay: .15s; }
.face-dots i:nth-child(3) { background: var(--green); animation-delay: .3s; }
.mascot.typing .face-dots { opacity: 1; }

.thread {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.thread.live { height: 380px; justify-content: flex-start; overflow: hidden; transition: opacity .4s var(--ease-out), transform .45s var(--ease-out), filter .4s; }
.thread.leaving { opacity: 0; transform: translateY(-18px); filter: blur(4px); }
.convo-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.count { font-size: .875rem; color: var(--on-night-2); }
.count b { font-family: var(--display); font-weight: 900; font-size: 1.25rem; color: var(--lime); margin-inline-start: 6px; font-variant-numeric: tabular-nums; }
.done-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.thread.live + .done-list { min-height: 124px; }
.done-list li { align-self: flex-start; display: flex; align-items: center; gap: 8px; padding: 5px 14px; border: 1px solid var(--hair-night); border-radius: 999px; font-size: .875rem; color: var(--on-night-2); }
.done-list svg { width: 16px; height: 16px; flex: none; color: var(--lime); }
.done-list .enter { animation: bubble .6s var(--ease-out) both; }
.stamp { align-self: center; font-size: .8125rem; color: var(--on-night-2); background: rgba(242, 251, 234, .08); padding: 3px 12px; border-radius: 8px; }
.msg { max-width: 86%; padding: 10px 14px 11px; border-radius: 16px; font-size: .9688rem; line-height: 1.55; color: var(--wa-ink); box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .5); }
.msg-patient { align-self: flex-start; background: var(--wa-in); border-start-start-radius: 4px; }
.msg-clinic { align-self: flex-end; background: var(--paper); border-start-end-radius: 4px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; animation: dot 1.2s infinite var(--ease-out); }
.dots i:nth-child(1) { background: var(--lime-2); }
.dots i:nth-child(2) { background: var(--green-3); animation-delay: .15s; }
.dots i:nth-child(3) { background: var(--green); animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { transform: translateY(0); opacity: .55; } 30% { transform: translateY(-5px); opacity: 1; } }
.thread .enter { animation: bubble .6s var(--ease-out) both; }
@keyframes bubble { from { opacity: 0; transform: translateY(12px) scale(.96); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }

.example-note { font-size: .8125rem; color: var(--on-night-2); }

/* ---------- the day ---------- */
.day {
  --ground: var(--night); --fg: var(--on-night); --fg-2: var(--on-night-2);
  position: relative; overflow-x: clip;
  background: var(--ground); color: var(--fg);
  padding: var(--section) var(--gutter);
  transition: background-color 1s var(--ease-out), color .8s;
}
.day[data-tone="dawn"] { --ground: var(--dawn); }
.day[data-tone="day"] { --ground: var(--green); --fg: #F2FBEA; --fg-2: #D2E6C6; }
.day[data-tone="dusk"] { --ground: var(--dusk); }
.day-intro { max-width: 46rem; }
.day-intro h2 { font-weight: 800; font-size: clamp(2rem, 4.4vw, 3.5rem); line-height: 1.3; }
.day-intro p { margin-top: 18px; font-size: 1.1875rem; color: var(--fg-2); transition: color .8s; }

.day-grid { margin-top: clamp(56px, 8vw, 112px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 112px); }
.clock { position: sticky; top: 22vh; align-self: start; order: 2; height: min(60vh, 520px); display: flex; flex-direction: column; justify-content: center; gap: 28px; }
.clock-face { display: flex; flex-direction: column; gap: 6px; }
.clock-time {
  display: block; font-family: var(--display); font-weight: 900; font-variant-numeric: tabular-nums;
  font-size: clamp(5rem, 13vw, 12rem); line-height: 1; letter-spacing: -.02em; direction: ltr; text-align: start;
}
html[dir="rtl"] .clock-time { text-align: end; }
.clock-time.tick { animation: tick .7s var(--ease-out); }
@keyframes tick { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.clock-period { font-family: var(--display); font-weight: 600; font-size: clamp(1.25rem, 2vw, 1.75rem); color: var(--fg-2); transition: color .8s; }
.dots { display: inline-flex; gap: 8px; }
.dots i { width: 14px; height: 14px; }
.day[data-tone="day"] .dots i:nth-child(1) { background: var(--lime); }
.day[data-tone="day"] .dots i:nth-child(2) { background: #B9E39A; }
.day[data-tone="day"] .dots i:nth-child(3) { background: var(--paper); }

/* the narrator: the hero mascot, small, beside the clock; leans in at night, sits up by day, nods on every new hour */
.narrator { width: clamp(96px, 9vw, 140px); }
.narrator-svg { display: block; transform: rotate(-10deg); transition: transform .9s var(--ease-out); filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .35)); }
.day[data-tone="day"] .narrator-svg { transform: rotate(4deg) translateY(-4px); }
.day[data-tone="night"] .narrator-svg .eye { animation-duration: 3.4s; }
.narrator.talk { animation: nod .8s var(--ease-out); }
@keyframes nod { 0% { transform: none; } 35% { transform: translateY(-10px) rotate(-4deg); } 100% { transform: none; } }
.narrator.talk ~ .dots i { animation-duration: .5s; }

.moments { order: 1; display: flex; flex-direction: column; gap: clamp(120px, 22vh, 260px); padding-bottom: 12vh; }
.moment { max-width: 34rem; opacity: .45; transition: opacity .6s var(--ease-out); }
.moment.active { opacity: 1; }
.moment-time { display: none; font-family: var(--display); font-weight: 800; font-size: 1rem; color: var(--fg-2); margin-bottom: 8px; }
.moment h3 { font-weight: 800; font-size: clamp(1.625rem, 2.8vw, 2.375rem); line-height: 1.35; }
.moment > p:not(.moment-time) { margin-top: 12px; font-size: 1.125rem; color: var(--fg-2); max-width: 32em; transition: color .8s; }

.demo { margin-top: 28px; color: var(--wa-ink); }
.phone { width: min(100%, 380px); border-radius: 26px; overflow: hidden; background: var(--wa-bg); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .55), 0 0 0 8px var(--ink); }
.wa-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: var(--wa-head); color: #fff; font-weight: 600; font-size: .9375rem; }
.wa-avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--paper) url("assets/mark.svg") center / 70% no-repeat; flex: none; }
.wa-body { display: flex; flex-direction: column; gap: 8px; padding: 14px; }
.bubble { max-width: 88%; padding: 9px 13px 10px; border-radius: 14px; font-size: .9375rem; line-height: 1.55; }
.bubble.in { align-self: flex-start; background: var(--wa-in); border-start-start-radius: 4px; }
.bubble.out { align-self: flex-end; background: var(--paper); border-start-end-radius: 4px; }
.chips { display: flex; gap: 6px; margin-top: 8px; direction: ltr; justify-content: flex-end; }
.chips span { font-family: var(--body-en); font-weight: 700; font-size: .8125rem; padding: 4px 10px; border-radius: 8px; border: 1px solid #C9E6DD; color: var(--wa-head); }
.chips .picked { background: var(--wa-head); color: #fff; border-color: var(--wa-head); }
.quick { align-self: flex-end; display: flex; flex-wrap: wrap; gap: 6px; max-width: 88%; justify-content: flex-end; }
.quick span { background: var(--paper); color: var(--wa-head); font-weight: 600; font-size: .875rem; padding: 7px 14px; border-radius: 12px; }

.panel { width: min(100%, 420px); background: var(--paper); border-radius: 18px; padding: 20px 22px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .5); }
.panel-title { font-family: var(--display); font-weight: 800; font-size: 1.0625rem; color: var(--ink); padding-bottom: 12px; border-bottom: 1px solid var(--hair-paper); }
.brief { margin: 0; }
.brief div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid #EEF2EA; font-size: .9375rem; }
.brief div:last-child { border-bottom: 0; }
.brief dt { color: #5B6157; }
.brief dd { margin: 0; font-weight: 600; color: var(--ink); text-align: end; }
.sev { background: #FFF1D6; color: #7A4A00; padding: 2px 10px; border-radius: 999px; font-size: .8125rem; }
.reach { list-style: none; margin: 0; padding: 0; }
.reach li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #EEF2EA; font-size: .9375rem; font-weight: 600; color: var(--ink); }
.reach li:last-child { border-bottom: 0; }
.reason { font-weight: 600; font-size: .8125rem; color: #2E5A27; background: #E7F5DE; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.day-note { margin-top: 40px; color: var(--fg-2); }

/* ---------- control: drenched lime ---------- */
.control { background: var(--green); color: #F2FBEA; padding: var(--section) var(--gutter); }
.control h2 { max-width: 20em; font-weight: 900; font-size: clamp(2rem, 4.6vw, 3.75rem); line-height: 1.3; }
.trio { margin-top: clamp(48px, 7vw, 96px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid #F2FBEA; }
.trio > div { padding: 28px 0 0; padding-inline-end: 32px; }
.trio > div + div { border-inline-start: 1px solid rgba(242, 251, 234, .28); padding-inline-start: 32px; }
.trio h3 { font-weight: 800; font-size: 1.5rem; }
.trio p { margin-top: 10px; color: #D2E6C6; font-size: 1.0625rem; }

/* ---------- everything ---------- */
.all { background: var(--paper); color: var(--ink); padding: var(--section) var(--gutter); display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.all-head { position: sticky; top: 120px; }
.all h2 { font-weight: 900; font-size: clamp(2rem, 4.4vw, 3.5rem); line-height: 1.3; }
.all-head p { margin-top: 14px; font-size: 1.125rem; color: #4A5145; }
.features { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 48px; }
.features li { break-inside: avoid; display: flex; align-items: baseline; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--hair-paper); font-size: 1.0625rem; font-weight: 500; }
.features li::before { content: ""; flex: none; width: 22px; height: 8px; background: url("assets/dots.svg") center / contain no-repeat; transform: translateY(-2px); }

/* ---------- pilot ---------- */
.pilot { background: var(--night); padding: var(--section) var(--gutter); position: relative; overflow: hidden; }
.pilot h2 span { display: block; }
.pilot-lead { margin-top: 18px; font-size: clamp(1.125rem, 1.6vw, 1.375rem); color: var(--on-night-2); }
.pilot h2 { position: relative; max-width: 15em; font-weight: 900; font-size: clamp(2.25rem, 5.6vw, 4.75rem); line-height: 1.38; }
.pilot-grid { position: relative; margin-top: clamp(48px, 6vw, 80px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 5vw, 80px); max-width: 64rem; }
.pilot h3 { font-weight: 800; font-size: 1.375rem; color: var(--lime); padding-bottom: 14px; border-bottom: 1px solid var(--hair-night); }
.pilot ul { list-style: none; margin: 0; padding: 0; }
.pilot li { padding: 14px 0; border-bottom: 1px solid var(--hair-night); font-size: 1.0938rem; }
.pilot-note { position: relative; margin: 36px 0 32px; font-size: .9375rem; color: var(--on-night-2); max-width: 40em; }

/* ---------- start ---------- */
.start { background: var(--paper); color: var(--ink); padding: var(--section) var(--gutter); }
.start-head h2 { font-weight: 900; font-size: clamp(2rem, 4.4vw, 3.5rem); line-height: 1.3; }
.start-head p { margin-top: 12px; font-size: 1.125rem; color: #4A5145; }
.tabs { margin-top: 40px; display: inline-flex; gap: 4px; padding: 5px; border-radius: 999px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--hair-paper); }
.tabs button { font-family: var(--display); font-weight: 800; font-size: 1rem; color: #4A5145; background: none; border: 0; border-radius: 999px; padding: 12px 22px; cursor: pointer; transition: background-color .3s, color .3s; }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.panel-wrap { margin-top: 32px; max-width: 52rem; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 22px; }
.fields .wide { grid-column: 1 / -1; }
.fields label, .mode label { display: flex; flex-direction: column; gap: 8px; font-weight: 600; font-size: .9688rem; }
.fields input, .fields textarea {
  font: inherit; font-weight: 400; color: var(--ink); background: var(--paper);
  border: 1.5px solid #C9D4C2; border-radius: 12px; padding: 13px 14px; min-height: 52px;
  transition: border-color .25s, box-shadow .25s;
}
.fields textarea { resize: none; }
.fields input:hover, .fields textarea:hover { border-color: #A7B79E; }
.fields input:focus, .fields textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(102, 204, 51, .28); }
.fields input[aria-invalid="true"], .fields textarea[aria-invalid="true"] { border-color: #B3261E; }
.fields input[aria-invalid="true"]:focus, .fields textarea[aria-invalid="true"]:focus { border-color: #B3261E; box-shadow: 0 0 0 4px rgba(179, 38, 30, .14); }
.field-error { font-size: .875rem; font-weight: 600; color: #B3261E; }
.lead-form .btn { margin-top: 26px; }
.honey { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { margin-top: 14px; font-weight: 600; min-height: 1.6em; }
.form-status.ok { color: var(--green); }
.form-status.err { color: #B3261E; }
.mode { border: 0; margin: 0 0 24px; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.mode legend { font-family: var(--display); font-weight: 800; font-size: 1.125rem; margin-bottom: 12px; padding: 0; }
.mode label { flex-direction: row; align-items: center; gap: 10px; background: var(--paper); border: 1.5px solid #C9D4C2; border-radius: 999px; padding: 10px 18px; cursor: pointer; }
.mode label:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.mode input { accent-color: var(--green); width: 18px; height: 18px; margin: 0; }
.demo-online p { max-width: 36em; font-size: 1.0625rem; color: #3E453A; }
.demo-online .btn { margin-top: 20px; }

/* ---------- footer ---------- */
.foot { padding: 64px var(--gutter) 48px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; color: var(--on-night-2); font-size: .9375rem; border-top: 1px solid var(--hair-night); }
.foot img { width: 140px; height: auto; margin-inline-end: auto; }
.foot a { color: var(--on-night); }

/* ---------- small screens ---------- */
@media (max-width: 960px) {
  .links { display: none; }
  .brand img { width: 124px; }
  .hero { grid-template-columns: 1fr; align-items: start; padding-top: 136px; gap: 28px; min-height: 0; }
  .hero-stage { align-items: flex-start; }
  .mascot { width: 96px; --reach-x: 6px; --reach-y: 26px; filter: drop-shadow(0 14px 20px rgba(0, 0, 0, .45)); }
  .ping { min-width: 22px; height: 22px; padding: 0 5px; font-size: .75rem; }
  .msg { font-size: .9063rem; max-width: 100%; }
  .thread.live { height: 400px; }
  .convo-meta { flex-direction: column; align-items: flex-start; gap: 0; }
  .day-grid { grid-template-columns: 1fr; margin-top: 40px; }
  .clock { order: 0; position: sticky; top: 112px; z-index: 5; height: auto; flex-direction: row; align-items: center; justify-content: space-between; padding: 12px 0; margin: 0 calc(var(--gutter) * -1); padding-inline: var(--gutter); background: var(--ground); transition: background-color 1s var(--ease-out); }
  .clock-face { flex-direction: row; align-items: baseline; gap: 12px; margin-inline-end: auto; }
  .narrator { width: 46px; margin-inline-end: 12px; }
  .clock-time { font-size: 2.5rem; }
  .clock-period { font-size: 1.0625rem; }
  .dots i { width: 10px; height: 10px; }
  .moments { gap: 96px; padding-bottom: 0; margin-top: 24px; }
  .moment { opacity: 1; }
  .trio { grid-template-columns: 1fr; }
  .trio > div, .trio > div + div { padding: 24px 0; border-inline-start: 0; border-bottom: 1px solid rgba(242, 251, 234, .28); }
  .all { grid-template-columns: 1fr; }
  .all-head { position: static; }
  .features { columns: 1; }
  .pilot-grid { grid-template-columns: 1fr; }
  .fields { grid-template-columns: 1fr; }
  .tabs { display: flex; width: 100%; }
  .tabs button { flex: 1; padding: 12px 10px; font-size: .9375rem; }
}
@media (max-width: 520px) {
  .nav-actions { gap: 8px; }
  .btn-small { padding: 0 12px; }
  .theme { width: 34px; height: 34px; }
  .lang { padding: 6px 10px; }
  .brand img { width: 108px; }
  .hero-actions .btn { flex: 1 1 auto; padding: 0 20px; }
  .offer-more { display: none; }
  .offer-bar { font-size: .8125rem; padding-inline: 12px; }
}

/* ---------- the brand name inside running text: green, and optically matched to Arabic ---------- */
.bw { color: var(--bw, var(--lime)); }
html[lang="ar"] .bw { font-size: 1.14em; }
.control, .day[data-tone="day"] { --bw: #B9F08F; }
.all, .start { --bw: var(--green); }

/* ---------- theme switch ---------- */
.theme { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; color: var(--on-night); background: none; border: 1px solid var(--hair-night); border-radius: 50%; cursor: pointer; transition: border-color .25s, color .25s; }
.theme:hover { border-color: var(--green-3); }
.theme svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme .icon-moon { display: none; }
.on-light { display: none; }

/* ---------- light version: same world by day; the hour story and lime stay, the night grounds turn pale ---------- */
html[data-theme="light"] {
  --night: #F7FAF4;
  --dawn: #EDF5E7;
  --dusk: #E2EFD9;
  --on-night: #211F1D;
  --on-night-2: #4E5A49;
  --hair-night: #D5E2CC;
  --bw: var(--green);
  color-scheme: light;
}
html[data-theme="light"] .on-dark { display: none; }
html[data-theme="light"] .on-light { display: block; }
html[data-theme="light"] .theme .icon-sun { display: none; }
html[data-theme="light"] .theme .icon-moon { display: block; }
html[data-theme="light"] .lime,
html[data-theme="light"] .count b,
html[data-theme="light"] .pilot h3,
html[data-theme="light"] .done-list svg,
html[data-theme="light"] .clock-time { color: var(--green); }
html[data-theme="light"] .day[data-tone="day"] .clock-time { color: #F2FBEA; }
html[data-theme="light"] .control, html[data-theme="light"] .day[data-tone="day"] { --bw: #B9F08F; }
html[data-theme="light"] :focus-visible { outline-color: var(--green); }
html[data-theme="light"] .nav.scrolled { background: #FFFFFF; }
html[data-theme="light"] .stamp { background: rgba(33, 31, 29, .06); }
html[data-theme="light"] .msg { box-shadow: 0 8px 18px -12px rgba(33, 31, 29, .35); }
html[data-theme="light"] .msg-clinic { box-shadow: 0 0 0 1px var(--hair-night), 0 8px 18px -12px rgba(33, 31, 29, .35); }
html[data-theme="light"] .mascot { filter: drop-shadow(0 16px 18px rgba(33, 31, 29, .18)); }
html[data-theme="light"] .narrator-svg { filter: drop-shadow(0 10px 14px rgba(33, 31, 29, .16)); }
html[data-theme="light"] .moment:not(.active) { opacity: .55; }
html[data-theme="light"] .pilot { background: var(--dawn); }
html[data-theme="light"] .foot { background: var(--night); }

/* ---------- section transitions (added by main.js only when motion is allowed) ---------- */
.reveal-ready [data-window] { clip-path: inset(5% 3% 0 3% round 48px); transition: clip-path 1.1s var(--ease-out); }
.reveal-ready [data-window].in { clip-path: inset(0 0 0 0 round 0); }
.reveal-ready [data-reveal] { transition: opacity .8s var(--ease-out) var(--d, 0ms), transform .9s var(--ease-out) var(--d, 0ms), filter .8s var(--ease-out) var(--d, 0ms); }
.reveal-ready [data-reveal]:not(.in) { opacity: 0; transform: translateY(32px); filter: blur(6px); }

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