/* ============================================================
   Green Friday — Taqa Space
   ============================================================ */
:root {
  --bg: #f1f6f5;
  --ink: #0f2a33;
  --ink-soft: #4b646c;
  --ink-faint: #8aa0a6;
  --line: #dce8e5;
  --green: #17c58b;
  --green-bright: #35d6a0;
  --green-deep: #0c9a6b;
  --mint: #e2f7ee;
  --blue: #45b8fd;
  --blue-soft: #e4f4ff;
  --teal: #1abc9c;
  --card: #ffffff;
  --dark: #0c2229;
  --dark-2: #12303a;
  --danger: #d9463b;
  --wa: #25d366;

  --r-xl: 44px;
  --r-lg: 28px;
  --r-md: 18px;
  --r-sm: 14px;
  --shadow: 0 24px 60px -28px rgba(15, 42, 51, .35), 0 2px 8px rgba(15, 42, 51, .05);
  --shadow-sm: 0 10px 30px -16px rgba(15, 42, 51, .3);
  --font: "Readex Pro", "Segoe UI", Tahoma, system-ui, sans-serif;
  --nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ol, ul, fieldset { margin: 0; padding: 0; }
ol, ul { list-style: none; }
fieldset { border: 0; min-width: 0; }
img, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--green-bright); color: var(--ink); }

.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.wrap--narrow { width: min(820px, 100% - 40px); }
.muted { color: var(--ink-faint); font-weight: 400; }
.hl { color: var(--green); white-space: nowrap; }
span[dir="ltr"] { white-space: nowrap; }
.ico { width: 20px; height: 20px; fill: currentColor; flex: none; }
.ico--flip { transform: scaleX(-1); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 26px;
  border: 0; border-radius: 999px;
  font-weight: 600; font-size: 1rem; line-height: 1.2; white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: .93rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--green); color: #04261b; box-shadow: 0 14px 30px -14px rgba(23, 197, 139, .9); }
.btn--primary:hover { background: var(--green-bright); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #17404d; }
.btn--ghost { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--green); }
.btn--wa { background: var(--wa); color: #06301a; box-shadow: 0 14px 30px -16px rgba(37, 211, 102, .9); }
.btn--wa:hover { background: #4be083; }
.link-btn { background: none; border: 0; padding: 0; color: var(--green-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 5px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-inline: max(20px, calc((100vw - 1240px) / 2));
  transition: background-color .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
.nav.is-stuck {
  background: rgba(241, 246, 245, .82);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 1px 0 rgba(15, 42, 51, .07);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1.22rem; letter-spacing: -.01em; white-space: nowrap; }
.brand img { width: 40px; height: 40px; }
.nav__links { display: flex; gap: 30px; font-size: .96rem; color: var(--ink-soft); }
.nav__links a { position: relative; padding: 6px 0; transition: color .2s; }
.nav__links a::after { content: ""; position: absolute; inset: auto 0 0 0; height: 2px; border-radius: 2px; background: var(--green); transform: scaleX(0); transition: transform .25s ease; }
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__actions { display: flex; gap: 10px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: 100svh;
  padding: calc(var(--nav-h) + 18px) 20px 0;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.hero__waves { position: absolute; inset: auto 0 0 0; width: 100%; height: 66%; z-index: -1; }
.hero__top { text-align: center; }

.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 18px; border-radius: 999px;
  background: #fff; box-shadow: var(--shadow-sm);
  font-size: .9rem; font-weight: 500; color: var(--ink);
  animation: rise .7s .05s both;
}
.pill__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(23, 197, 139, .6); animation: pulse 2s infinite; }
.pill.is-live { background: var(--ink); color: #fff; }

.hero__title {
  margin-top: 10px;
  font-size: clamp(3.5rem, 12.4vw, 10.6rem);
  font-weight: 700; line-height: .98; letter-spacing: -.04em;
  color: var(--ink);
}
.hero__title .w { display: inline-block; animation: rise .9s cubic-bezier(.2, .8, .2, 1) both; }
.hero__title .w:nth-child(1) { animation-delay: .12s; }
.hero__title .w:nth-child(2) { animation-delay: .24s; }
.hero__sub {
  margin-top: clamp(6px, 1.4vw, 16px);
  font-size: clamp(1.3rem, 3.1vw, 2.5rem); font-weight: 500; line-height: 1.4;
  text-wrap: balance;
  animation: rise .8s .4s both;
}
.hero__sub b { color: var(--green); font-weight: 700; }

.hero__stage {
  flex: 1;
  width: min(1280px, 100%); margin-inline: auto;
  display: grid; grid-template-columns: minmax(250px, 340px) minmax(0, 1fr) minmax(250px, 340px);
  align-items: center; gap: 12px;
  padding-bottom: 64px;
}
.glass {
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  padding: 26px;
  animation: rise .9s .55s both;
}

/* Countdown */
.countdown { text-align: center; }
.countdown__label { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 1.02rem; }
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); animation: pulse 1.6s infinite; }
.countdown__grid { margin-top: 14px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; direction: ltr; /* اليوم على اليسار ← الثانية على اليمين */ }
.cd__unit { direction: rtl; }
.cd { background: var(--bg); border-radius: var(--r-sm); padding: 12px 2px 9px; display: grid; gap: 2px; }
.cd__num { font-size: clamp(1.7rem, 2.7vw, 2.35rem); font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; direction: ltr; }
.cd__num.tick { animation: tick .35s ease; }
.cd__unit { font-size: .78rem; color: var(--ink-soft); }
.countdown__foot { margin-top: 14px; font-size: .92rem; color: var(--ink-soft); }
.countdown__local { font-size: .8rem; color: var(--ink-faint); }
.countdown.is-over .countdown__grid { opacity: .4; }

/* Hero robot */
.hero__robot { position: relative; align-self: stretch; min-height: clamp(330px, 48vh, 560px); }
.robot-btn {
  position: absolute; inset: -30px -60px -64px; /* let the robot breathe beyond its column */
  background: none; border: 0; padding: 0; border-radius: 40px;
  -webkit-tap-highlight-color: transparent;
}
.robot-btn canvas { width: 100%; height: 100%; }
.robot-btn { transition: transform .35s cubic-bezier(.3, 1.4, .5, 1); }
.robot-btn:hover { transform: scale(1.03); }
.robot-btn:active { transform: scale(.98); }
.robot-fallback { display: none; position: absolute; inset: 0; place-items: center; font-size: 7rem; }
.no-webgl .robot-fallback { display: grid; }
.no-webgl canvas#robot-hero, .no-webgl canvas#robot-mini { display: none; }
.robot-say {
  position: absolute; top: 9%; left: 61%;
  max-width: 190px; padding: 10px 16px;
  background: var(--ink); color: #fff; font-size: .88rem; line-height: 1.5; font-weight: 500;
  border-radius: 18px 18px 18px 4px;
  box-shadow: var(--shadow-sm);
  opacity: 0; transform: translateY(8px) scale(.9); transform-origin: bottom left;
  transition: opacity .35s ease, transform .35s cubic-bezier(.3, 1.4, .5, 1);
  pointer-events: none;
}
.robot-say.is-on { opacity: 1; transform: none; }

/* Info card */
.info { text-align: center; animation-delay: .65s; }
.info__big { font-size: clamp(1.6rem, 2.4vw, 2.05rem); font-weight: 700; line-height: 1.3; }
.info__when { margin-top: 2px; color: var(--ink-soft); font-size: .98rem; text-wrap: balance; }
.info__cta { margin-top: 18px; display: grid; gap: 10px; }
.info__url { margin-top: 16px; font-weight: 600; font-size: 1.05rem; letter-spacing: -.01em; }

/* ---------- Sections ---------- */
.sheet {
  position: relative; z-index: 2;
  margin-top: -44px; padding: 92px 0 40px;
  background: #fff; border-radius: var(--r-xl) var(--r-xl) 0 0;
}
.head { text-align: center; max-width: 760px; margin: 0 auto 46px; }
.eyebrow {
  display: inline-block; margin-bottom: 14px; padding: 4px 16px; border-radius: 999px;
  background: var(--mint); color: var(--green-deep); font-size: .86rem; font-weight: 600;
}
.eyebrow--light { background: rgba(53, 214, 160, .14); color: var(--green-bright); }
h2 { font-size: clamp(1.75rem, 3.7vw, 2.9rem); font-weight: 700; line-height: 1.35; text-wrap: balance; }
.head__sub { margin-top: 12px; color: var(--ink-soft); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.step {
  position: relative; padding: 30px 28px 32px;
  background: var(--bg); border-radius: var(--r-lg);
  transition: transform .3s ease, box-shadow .3s ease, background-color .3s ease;
}
.step:hover { transform: translateY(-6px); background: #fff; box-shadow: var(--shadow); }
.step__n {
  display: inline-block; font-size: 3.2rem; font-weight: 700; line-height: 1; letter-spacing: -.04em;
  background: linear-gradient(120deg, var(--green) 10%, var(--blue) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.step h3 { margin-top: 14px; font-size: 1.22rem; font-weight: 600; line-height: 1.5; }
.step h3 small { font-size: .82rem; font-weight: 400; color: var(--ink-faint); }
.step p { margin-top: 8px; color: var(--ink-soft); font-size: .98rem; }

.tracks { position: relative; z-index: 2; background: #fff; padding: 70px 0 96px; border-radius: 0 0 var(--r-xl) var(--r-xl); }
.tracks__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.track {
  --tone: var(--green); --tone-bg: var(--mint);
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  padding: 34px 32px;
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, var(--tone-bg), #fff 75%);
  box-shadow: inset 0 0 0 1.5px var(--line);
  transition: transform .3s ease, box-shadow .3s ease;
}
.track--blue { --tone: #1f9fe8; --tone-bg: var(--blue-soft); }
.track:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 1.5px var(--tone), var(--shadow); }
.track::after {
  content: ""; position: absolute; inset: auto auto -90px -90px; width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--tone) 22%, transparent), transparent);
  pointer-events: none;
}
.track__icon { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 20px; background: #fff; color: var(--tone); box-shadow: var(--shadow-sm); }
.track__icon svg { width: 38px; height: 38px; }
.tag { padding: 3px 12px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-size: .78rem; color: var(--ink-soft); }
.track h3 { font-size: clamp(1.25rem, 2.1vw, 1.6rem); font-weight: 700; line-height: 1.5; }
.track p { color: var(--ink-soft); flex: 1; }
.track .btn { margin-top: 8px; position: relative; z-index: 1; }

.wa-banner {
  margin-top: 20px; padding: 24px 28px;
  display: flex; align-items: center; gap: 20px;
  border-radius: var(--r-lg);
  background: linear-gradient(100deg, #e6fbee, #f3fdf7 60%, #fff);
  box-shadow: inset 0 0 0 1.5px #bfeed2;
}
.wa-banner__icon { flex: none; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--wa); color: #fff; box-shadow: 0 14px 28px -14px rgba(37, 211, 102, .9); }
.wa-banner__icon .ico { width: 32px; height: 32px; }
.wa-banner__text { flex: 1; }
.wa-banner__text h3 { font-size: 1.25rem; font-weight: 700; line-height: 1.5; }
.wa-banner__text p { color: var(--ink-soft); }
.wa-note { margin-bottom: 14px; max-width: 520px; color: #e6f1f2; font-weight: 500; }

/* ---------- Notify ---------- */
.notify {
  position: relative; isolation: isolate; overflow: hidden;
  margin: 56px max(12px, calc((100vw - 1320px) / 2)) 0;
  padding: clamp(48px, 7vw, 92px) 0;
  background: var(--dark); color: #fff; border-radius: var(--r-xl);
}
.notify__waves { position: absolute; inset: auto 0 0 0; width: 100%; height: 70%; z-index: -1; opacity: .55; }
.notify__grid { display: grid; grid-template-columns: 1fr minmax(0, 500px); gap: clamp(28px, 5vw, 72px); align-items: center; }
.notify__text h2 { color: #fff; }
.notify__text .hl { color: var(--green-bright); white-space: nowrap; }
.notify__lead { margin-top: 16px; color: #b9cdd2; max-width: 520px; }
.ticks { margin: 22px 0 26px; display: grid; gap: 10px; }
.ticks li { display: flex; align-items: center; gap: 12px; color: #e6f1f2; }
.ticks li::before {
  content: ""; flex: none; width: 24px; height: 24px; border-radius: 50%;
  background: var(--green-bright) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6.5 12.5 3.6 3.6 7.4-7.6' fill='none' stroke='%2304261b' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}

.form-card { background: #fff; color: var(--ink); border-radius: var(--r-lg); padding: clamp(22px, 3.4vw, 36px); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .6); }
.field { margin-bottom: 18px; }
.field > label, .field > legend { display: block; margin-bottom: 7px; font-weight: 600; font-size: .95rem; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select {
  width: 100%; height: 54px; padding: 0 16px;
  background: var(--bg); border: 1.5px solid transparent; border-radius: var(--r-sm);
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.field input::placeholder { color: var(--ink-faint); }
.field input:hover, .field select:hover { border-color: var(--line); }
.field input:focus, .field select:focus { outline: 0; background: #fff; border-color: var(--green); box-shadow: 0 0 0 4px rgba(23, 197, 139, .16); }
.field.has-err input, .field.has-err select { border-color: var(--danger); background: #fff6f5; }
.field__err { min-height: 0; margin-top: 4px; font-size: .84rem; color: var(--danger); }
.field__err:empty { display: none; }
.phone { display: grid; grid-template-columns: minmax(118px, 42%) 1fr; gap: 8px; }
.phone select { padding-inline: 12px 8px; font-size: .93rem; text-overflow: ellipsis; }
.phone input { letter-spacing: .03em; }

.choices { display: grid; gap: 10px; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice__box {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 16px; border-radius: var(--r-sm);
  background: var(--bg); border: 1.5px solid transparent;
  font-size: .97rem; line-height: 1.6; font-weight: 500;
  transition: border-color .2s, background-color .2s;
}
.choice__check { flex: none; width: 22px; height: 22px; border-radius: 7px; background: #fff; box-shadow: inset 0 0 0 1.5px #b9cbc7; transition: background-color .2s, box-shadow .2s; }
.choice:hover .choice__box { border-color: var(--line); }
.choice input:checked + .choice__box { background: var(--mint); border-color: var(--green); }
.choice input:checked + .choice__box .choice__check {
  box-shadow: none;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6.5 12.5 3.6 3.6 7.4-7.6' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.choice input:focus-visible + .choice__box { outline: 3px solid var(--blue); outline-offset: 2px; }
.form-note { margin-top: 12px; font-size: .8rem; line-height: 1.6; color: var(--ink-faint); text-align: center; }

.spinner { display: none; width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid rgba(4, 38, 27, .25); border-top-color: #04261b; animation: spin .7s linear infinite; }
.is-loading .spinner { display: block; }
.is-loading { pointer-events: none; opacity: .85; }

.form-done { text-align: center; padding: 14px 0 4px; display: grid; gap: 14px; justify-items: center; }
.form-done__badge { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: var(--mint); color: var(--green-deep); animation: pop .6s cubic-bezier(.3, 1.6, .5, 1) both; }
.form-done__badge svg { width: 40px; height: 40px; }
.form-done h3 { font-size: 1.5rem; font-weight: 700; }
.form-done p { color: var(--ink-soft); max-width: 340px; }

/* ---------- FAQ ---------- */
.faq { padding: 96px 0 90px; }
.faq__list { display: grid; gap: 12px; }
.faq details { background: #fff; border-radius: var(--r-md); box-shadow: 0 1px 0 rgba(15, 42, 51, .04); transition: box-shadow .3s; }
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px; font-weight: 600; font-size: 1.06rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 32px; height: 32px; border-radius: 50%;
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 6v12M6 12h12' fill='none' stroke='%230f2a33' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center / 16px no-repeat;
  transition: transform .3s ease, background-color .3s;
}
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--mint); }
.faq details p { padding: 0 24px 22px; color: var(--ink-soft); }
.faq__more { margin-top: 26px; text-align: center; color: var(--ink-soft); }

/* ---------- Footer ---------- */
.footer { padding: 30px 0 120px; border-top: 1px solid var(--line); }
.footer__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer .brand { font-size: 1.05rem; }
.footer .brand img { width: 34px; height: 34px; }
.footer__copy { font-size: .9rem; color: var(--ink-soft); }
.footer__links { display: flex; gap: 22px; font-size: .92rem; color: var(--ink-soft); }
.footer__links a:hover { color: var(--green-deep); }

/* ---------- Floating robot + chat ---------- */
.bot { position: fixed; left: 20px; bottom: 20px; z-index: 70; }
.bot__launcher {
  position: relative; display: block; width: 84px; height: 84px;
  border: 0; padding: 0; border-radius: 50%;
  background: #fff; box-shadow: 0 18px 40px -14px rgba(15, 42, 51, .5);
  transition: transform .3s cubic-bezier(.3, 1.5, .5, 1);
  -webkit-tap-highlight-color: transparent;
}
.bot__launcher:hover { transform: scale(1.08) rotate(-3deg); }
.bot__launcher.is-nudge { animation: nudge 1s ease; }
.bot__ring {
  position: absolute; inset: -4px; border-radius: 50%; z-index: -1;
  background: conic-gradient(from 0deg, var(--green-bright), var(--blue), var(--green-bright));
  animation: spin 6s linear infinite;
}
.bot__ring::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid var(--green-bright); opacity: 0; animation: ripple 3s ease-out infinite; }
.bot__stage {
  position: absolute; left: 0; bottom: 0; width: 84px; height: 118px;
  border-radius: 0 0 42px 42px; overflow: hidden; pointer-events: none;
}
.bot__stage canvas { width: 100%; height: 100%; }
.bot__stage .robot-fallback { font-size: 2.6rem; inset: auto 0 0 0; height: 84px; }
.bot__badge {
  position: absolute; top: -2px; right: -2px; min-width: 22px; height: 22px; padding: 0 6px;
  display: grid; place-items: center; border-radius: 999px;
  background: #ff5a4f; color: #fff; font-size: .74rem; font-weight: 700; line-height: 1;
  box-shadow: 0 0 0 3px var(--bg);
  transition: transform .3s, opacity .3s;
}
.bot.is-open .bot__badge, .bot.was-opened .bot__badge { transform: scale(0); opacity: 0; }
.bot__bubble {
  position: absolute; left: calc(100% + 14px); bottom: 26px;
  width: max-content; max-width: min(240px, calc(100vw - 150px));
  padding: 10px 16px; border-radius: 18px 18px 18px 4px;
  background: var(--ink); color: #fff; font-size: .9rem; font-weight: 500; line-height: 1.5;
  box-shadow: var(--shadow-sm);
  opacity: 0; transform: translateX(-10px) scale(.9); transform-origin: left bottom;
  transition: opacity .35s ease, transform .35s cubic-bezier(.3, 1.4, .5, 1);
  pointer-events: none;
}
.bot__bubble.is-on { opacity: 1; transform: none; }
.bot.is-open .bot__bubble { opacity: 0; }

.chat {
  position: absolute; left: 0; bottom: calc(100% + 30px);
  width: min(384px, calc(100vw - 32px)); height: min(580px, calc(100svh - 170px));
  display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border-radius: 26px;
  box-shadow: 0 40px 90px -30px rgba(15, 42, 51, .55), 0 0 0 1px rgba(15, 42, 51, .06);
  transform-origin: left bottom;
  opacity: 0; visibility: hidden; transform: translateY(16px) scale(.94);
  transition: opacity .25s ease, transform .3s cubic-bezier(.3, 1.3, .5, 1), visibility 0s .3s;
}
.bot.is-open .chat { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.chat__head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: var(--dark); color: #fff; }
.chat__avatar { width: 44px; height: 44px; border-radius: 50%; background: #fff; display: grid; place-items: center; flex: none; }
.chat__who { flex: 1; display: grid; line-height: 1.5; }
.chat__who strong { font-weight: 600; }
.chat__who span { font-size: .8rem; color: #a9c0c6; display: inline-flex; align-items: center; gap: 6px; }
.chat__online { width: 8px; height: 8px; border-radius: 50%; background: var(--green-bright); }
.chat__close { width: 38px; height: 38px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; display: grid; place-items: center; transition: background-color .2s; }
.chat__close:hover { background: rgba(255, 255, 255, .2); }
.chat__close svg { width: 18px; height: 18px; }
.chat__log { flex: 1; overflow-y: auto; padding: 18px 16px 8px; display: flex; flex-direction: column; gap: 10px; background: var(--bg); overscroll-behavior: contain; scrollbar-width: thin; }
.msg { max-width: 84%; padding: 10px 15px; border-radius: 18px; font-size: .94rem; line-height: 1.7; animation: msg-in .3s ease both; white-space: pre-line; overflow-wrap: anywhere; }
.msg--bot { align-self: flex-start; background: #fff; border-start-start-radius: 6px; box-shadow: 0 1px 2px rgba(15, 42, 51, .06); }
.msg--me { align-self: flex-end; background: var(--ink); color: #fff; border-start-end-radius: 6px; }
.msg__actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.msg__actions a, .msg__actions button { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--green); color: #04261b; font-size: .86rem; font-weight: 600; }
.msg__actions a.is-wa { background: var(--wa); color: #06301a; }
.typing { display: inline-flex; gap: 5px; padding: 6px 2px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-faint); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
.chat__chips { display: flex; gap: 8px; padding: 8px 16px 10px; overflow-x: auto; background: var(--bg); scrollbar-width: none; }
.chat__chips::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--green); background: #fff; color: var(--green-deep); font-size: .86rem; font-weight: 500; transition: background-color .2s, color .2s; }
.chip:hover { background: var(--green); color: #04261b; }
.chat__form { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--line); background: #fff; }
.chat__form input { flex: 1; min-width: 0; height: 46px; padding: 0 16px; border-radius: 999px; border: 1.5px solid transparent; background: var(--bg); font-size: .95rem; }
.chat__form input:focus { outline: 0; border-color: var(--green); background: #fff; }
.chat__form button { flex: none; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--green); color: #04261b; display: grid; place-items: center; transition: transform .2s; }
.chat__form button:hover { transform: scale(1.06); }
.chat__form button svg { width: 20px; height: 20px; fill: currentColor; transform: scaleX(-1); }

.confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 90; }

/* ---------- Motion ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.js .reveal.is-in { opacity: 1; transform: none; }
.steps .reveal:nth-child(2), .tracks__grid .reveal:nth-child(2) { transition-delay: .1s; }
.steps .reveal:nth-child(3) { transition-delay: .2s; }

@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(23, 197, 139, .55); } 70% { box-shadow: 0 0 0 10px rgba(23, 197, 139, 0); } 100% { box-shadow: 0 0 0 0 rgba(23, 197, 139, 0); } }
@keyframes tick { 0% { transform: translateY(-28%); opacity: .2; } 100% { transform: none; opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes ripple { 0% { transform: scale(.9); opacity: .7; } 70%, 100% { transform: scale(1.35); opacity: 0; } }
@keyframes nudge { 0%, 100% { transform: none; } 20% { transform: translateY(-14px) rotate(-6deg); } 40% { transform: translateY(0) rotate(4deg); } 60% { transform: translateY(-7px) rotate(-3deg); } 80% { transform: translateY(0); } }
@keyframes msg-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes blink { 0%, 60%, 100% { opacity: .25; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero__stage { grid-template-columns: minmax(230px, 300px) minmax(0, 1fr) minmax(230px, 300px); }
  .glass { padding: 20px; }
  .robot-btn { inset-inline: -90px; }
}
@media (max-width: 900px) {
  .nav__links { display: none; }
  .hero { padding-top: calc(var(--nav-h) + 8px); }
  .hero__waves { height: 58%; }
  .hero__stage { grid-template-columns: 1fr; justify-items: center; gap: 0; padding-bottom: 76px; margin-top: 22px; }
  .hero__stage > .glass { width: min(440px, 100%); }
  .hero__robot { width: 100%; min-height: 0; height: clamp(300px, 86vw, 420px); margin-block: -6px -34px; }
  .robot-btn { inset: 0; }
  .robot-say { left: auto; right: max(4%, calc(50% - 210px)); top: 6%; border-radius: 18px 18px 4px 18px; transform-origin: bottom right; }
  .info { position: relative; }
  .steps { grid-template-columns: 1fr; }
  .tracks__grid { grid-template-columns: 1fr; }
  .wa-banner { flex-direction: column; text-align: center; padding: 26px 22px; }
  .wa-banner .btn { width: 100%; }
  .notify__grid { grid-template-columns: 1fr; }
  .sheet { padding-top: 72px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  :root { --r-xl: 32px; --r-lg: 24px; --nav-h: 64px; }
  .hide-sm { display: none; }
  .btn--wa.btn--sm { padding: 0; width: 44px; }
  .brand { font-size: 1.08rem; }
  .brand img { width: 34px; height: 34px; }
  .track { padding: 26px 22px; }
  .faq summary { padding: 16px 18px; font-size: 1rem; }
  .faq details p { padding: 0 18px 18px; }
  .footer__in { flex-direction: column; text-align: center; }
  .bot { left: 14px; bottom: 14px; }
  .bot__launcher { width: 72px; height: 72px; }
  .bot__stage { width: 72px; height: 102px; border-radius: 0 0 36px 36px; }
  .chat { height: min(560px, calc(100svh - 130px)); }
}

@media (max-width: 430px) {
  .nav { gap: 8px; padding-inline: 14px; }
  .nav__actions { gap: 8px; }
  .nav .btn--sm { min-height: 40px; padding: 0 14px; font-size: .86rem; }
  .nav .btn--wa.btn--sm { width: 40px; padding: 0; }
  .brand { gap: 8px; font-size: 1rem; }
  .brand img { width: 30px; height: 30px; }
}

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