/* whatsapp.mizanen.com — extends site.css (same tokens, fonts, header, footer, buttons, FAQ). */

.wa .hdr-in .nav a { font-size: 14px; }

/* reveal on scroll (only when JS runs and motion is allowed) */
.js [data-rv] { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js [data-rv].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js [data-rv] { opacity: 1; transform: none; transition: none; } }

/* ---------- hero ---------- */
.wa-hero { min-height: auto; padding: 128px 0 96px; }
.wa-hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.wa-h1 { font: 400 clamp(2.6rem, 5.2vw, 4.6rem)/1.04 var(--f-display); letter-spacing: -0.02em; text-wrap: balance; }
.wa-h1 span { display: block; margin-top: 14px; font-size: 0.5em; line-height: 1.2; color: var(--gold-hi); font-style: italic; letter-spacing: -0.01em; }
[dir="rtl"] .wa-h1 { line-height: 1.28; letter-spacing: 0; }
[dir="rtl"] .wa-h1 span { font-style: normal; letter-spacing: 0; line-height: 1.45; }
[dir="rtl"] .msg-time { right: auto; left: 10px; }
[dir="rtl"] .msg.lead .bubble { border-bottom-right-radius: 16px; border-bottom-left-radius: 5px; }
[dir="rtl"] .msg.bot .bubble { border-bottom-left-radius: 16px; border-bottom-right-radius: 5px; }
.wa .hero-lead { max-width: 52ch; font-size: clamp(17px, 1.4vw, 19px); }
.wa-micro { margin-top: 18px; max-width: 52ch; font-size: 14.5px; color: var(--on-ink-muted); }
.wa-hero-vis { display: grid; justify-items: center; gap: 14px; }
.phone-note { max-width: 360px; text-align: center; font-size: 13px; color: var(--on-ink-muted); }

/* ---------- phone + chat (generic, no third-party marks) ---------- */
.phone { margin: 0; width: min(100%, 372px); border-radius: 40px; padding: 10px; background: linear-gradient(160deg, #2a2d32, #16181b); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(244, 239, 229, 0.08) inset; }
.phone-top { display: flex; align-items: center; gap: 10px; padding: 14px 14px 12px; border-radius: 30px 30px 0 0; background: #1b1d21; border-bottom: 1px solid rgba(244, 239, 229, 0.06); }
.avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); flex: none; }
.avatar-mark { width: 22px; }
.avatar-mark .mk-l, .avatar-mark .mk-r { fill: var(--on-ink); }
.avatar-mark .mk-dot { fill: var(--gold); }
.who { display: grid; line-height: 1.25; }
.who b { font-weight: 600; font-size: 14.5px; }
.who small { font-size: 12px; color: var(--on-ink-muted); }
.replay { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--on-ink-rule); border-radius: 999px; background: none; color: var(--on-ink-muted); font-size: 12.5px; cursor: pointer; }
.replay[hidden] { display: none; }
.replay:hover { color: var(--on-ink); border-color: rgba(244, 239, 229, 0.3); }
.replay .ic { width: 14px; height: 14px; }
.chat { display: flex; flex-direction: column; gap: 7px; padding: 16px 12px 18px; border-radius: 0 0 30px 30px; background: #111316; }
.msg { display: flex; flex-direction: column; max-width: 86%; }
.msg.lead { align-self: flex-end; align-items: flex-end; }
.msg.bot { align-self: flex-start; align-items: flex-start; }
.bubble { position: relative; padding: 8px 12px 20px; border-radius: 16px; font-family: "Geist", "Plex Arabic", ui-sans-serif, system-ui, sans-serif; font-size: 13.5px; line-height: 1.45; unicode-bidi: plaintext; }
.chips span { font-family: "Geist", "Plex Arabic", ui-sans-serif, system-ui, sans-serif; }
.msg.lead .bubble { background: #3a2d14; color: #f6ead2; border-bottom-right-radius: 5px; }
.msg.bot .bubble { background: #22252a; color: var(--on-ink); border-bottom-left-radius: 5px; }
.msg-time { position: absolute; right: 10px; bottom: 5px; font-size: 11px; line-height: 1; color: rgba(244, 239, 229, 0.7); }
/* privacy and 404 pages: keep the product name visible on phones, footer pinned to the bottom on short pages */
.logo-t small { display: block; }
.doc-page { min-height: 100svh; display: flex; flex-direction: column; }
.doc-page .doc { flex: 1; }
.chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.chips span { padding: 6px 10px; border-radius: 999px; border: 1px solid rgba(226, 180, 95, 0.45); color: var(--gold-hi); font-size: 12px; }
.typing { display: none; align-self: flex-start; gap: 4px; padding: 12px 14px; border-radius: 16px; background: #22252a; }
.typing span { width: 6px; height: 6px; border-radius: 50%; background: rgba(244, 239, 229, 0.5); animation: dot 1.2s infinite ease-in-out; }
.typing span:nth-child(2) { animation-delay: 0.15s; }
.typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes dot { 0%, 60%, 100% { opacity: 0.3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
/* playback states (JS); without JS every message is visible */
.chat.playing .msg { display: none; }
.chat.playing .msg.shown { display: flex; animation: pop 0.4s var(--ease); }
.chat.playing .typing.on { display: flex; }
@keyframes pop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- sections ---------- */
.wa-sec { padding: clamp(80px, 11vw, 144px) 0; }
.wa-sec .display-2 { max-width: 22ch; }
.wa-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(48px, 7vw, 80px); border-top: 1px solid var(--rule); }
.wa-stats li { padding: 30px 28px 0 0; }
.wa-stats li + li { padding-inline-start: 28px; border-inline-start: 1px solid var(--rule); }
.wa-stats b { display: block; font: 400 clamp(3rem, 6vw, 4.6rem)/1 var(--f-display); color: var(--gold-deep); }
.wa-stats p { margin-top: 12px; color: var(--muted); max-width: 30ch; }

.wa-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: clamp(40px, 6vw, 64px); counter-reset: s; }
.wa-steps li { padding: 28px; border: 1px solid var(--rule); border-radius: 18px; background: var(--paper); }
.wa-step-n { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold-deep); font-weight: 600; font-size: 14px; }
.wa-steps h3 { margin-top: 20px; font: 400 1.7rem/1.2 var(--f-display); }
.wa-steps p { margin-top: 10px; color: var(--muted); font-size: 16px; }

.wa-report-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.wa-caption { margin-top: 26px; font: italic 400 1.35rem/1.4 var(--f-display); color: var(--on-ink); max-width: 30ch; }
.lead-card { background: var(--paper); color: var(--text); border-radius: 20px; padding: 26px 28px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7); }
.lead-card-h { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding-bottom: 16px; border-bottom: 1px solid var(--ivory-2); }
.lead-card-h h3 { font: 500 17px/1.3 var(--f-ui); }
.hot { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border-radius: 999px; background: var(--ink); color: var(--ivory); font-size: 13px; font-weight: 500; white-space: nowrap; }
.hot i { width: 7px; height: 7px; border-radius: 50%; background: var(--gold-hi); box-shadow: 0 0 0 3px rgba(226, 180, 95, 0.25); }
.hot b { color: var(--gold-hi); font-weight: 600; }
.lead-row { display: grid; grid-template-columns: 92px 1fr; gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--ivory-2); }
.lead-row dt { font-size: 14px; color: var(--muted); }
.lead-row dd { margin: 0; font-size: 15px; line-height: 1.5; }
.lead-row q { display: block; margin-top: 6px; font: italic 400 15.5px/1.4 var(--f-display); color: var(--gold-deep); quotes: "“" "”"; }
.lead-card-act { margin-top: 18px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: var(--gold); color: var(--ink); font-size: 14px; font-weight: 500; }
.pill .ic { width: 17px; height: 17px; }
.wa .logo-t small { display: block; }

.wa-feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: clamp(40px, 6vw, 64px); border-top: 1px solid var(--rule); }
.wa-feats li { padding: 26px 26px 30px 0; border-bottom: 1px solid var(--rule); }
.wa-feats li:not(:nth-child(3n + 1)) { padding-inline-start: 26px; border-inline-start: 1px solid var(--rule); }
.wa-feats h3 { font: 500 18px/1.3 var(--f-ui); }
.wa-feats p { margin-top: 8px; color: var(--muted); font-size: 15.5px; }

.wa-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); gap: 20px; margin-top: clamp(40px, 6vw, 64px); }
.plan { display: flex; flex-direction: column; padding: 30px; border: 1px solid var(--on-ink-rule); border-radius: 22px; background: rgba(255, 255, 255, 0.03); }
.plan-main { border-color: rgba(201, 138, 36, 0.55); background: rgba(201, 138, 36, 0.08); }
.plan h3 { font: 500 16px/1.3 var(--f-ui); color: var(--on-ink-muted); }
.plan-price { margin-top: 12px; }
.plan-price b { font: 400 clamp(2.6rem, 4.6vw, 3.4rem)/1 var(--f-display); font-weight: 400; color: var(--on-ink); }
.plan-main .plan-price b { color: var(--gold-hi); }
.plan-price span { color: var(--on-ink-muted); font-size: 15px; }
.plan ul { display: grid; gap: 12px; margin: 24px 0 28px; }
.plan li { display: flex; gap: 10px; font-size: 15.5px; }
.plan li .ic { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--gold-hi); }
.plan .btn { margin-top: auto; align-self: flex-start; }

.wa .faq .qa-a a { color: var(--text); }
.wa-close { text-align: center; }
.wa-close .display-2, .wa-close .lead-p { margin-inline: auto; }
.wa-close .hero-cta { justify-content: center; }
.doc-list { display: grid; gap: 8px; margin-top: 12px; padding-inline-start: 20px; list-style: disc; color: var(--muted); }

/* mobile sticky demo button */
.wa-sticky { visibility: hidden; position: fixed; inset: auto 0 0; z-index: 40; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(13, 14, 16, 0.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--on-ink-rule); transform: translateY(110%); transition: transform 0.35s var(--ease); }
.wa-sticky.on { transform: none; visibility: visible; }
.wa-sticky:not(.on) { transition: transform 0.35s var(--ease), visibility 0s linear 0.35s; }
.wa-sticky .btn { width: 100%; }
@media (min-width: 761px) { .wa-sticky { display: none; } }

@media (max-width: 960px) {
  .wa-hero-grid, .wa-report-grid { grid-template-columns: 1fr; }
  .wa-steps { grid-template-columns: 1fr; gap: 14px; }
  .wa-feats { grid-template-columns: 1fr 1fr; }
  .wa-feats li:not(:nth-child(3n + 1)) { padding-inline-start: 0; border-inline-start: 0; }
  .wa-feats li:nth-child(even) { padding-inline-start: 22px; border-inline-start: 1px solid var(--rule); }
}
@media (max-width: 760px) {
  .wa-hero { padding: 108px 0 72px; }
  .wa-stats { grid-template-columns: 1fr; }
  .wa-stats li, .wa-stats li + li { padding: 24px 0; border-inline-start: 0; border-bottom: 1px solid var(--rule); }
  .wa-feats { grid-template-columns: 1fr; }
  .wa-feats li, .wa-feats li:nth-child(even) { padding: 22px 0; border-inline-start: 0; }
  .wa-plans { grid-template-columns: 1fr; }
  .lead-card { padding: 22px 18px; }
  .lead-row { grid-template-columns: 1fr; gap: 4px; }
  .wa-close .hero-cta .btn, .wa .wa-hero .hero-cta .btn { width: 100%; }
  .wa .ftr { padding-bottom: 96px; }
}

/* ---------- 30-second video ---------- */
.wa-video-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: clamp(40px, 7vw, 110px); align-items: center; }
.wa-video { margin: 0; justify-self: center; width: min(100%, 360px); }
.wa-video video { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; border-radius: 26px; background: #111316 center / cover no-repeat; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(244, 239, 229, 0.1); }
.wa-video video:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.wa-video-box { position: relative; }
/* big centred play button over the poster (the native one is tiny with preload="none") */
/* the button covers the whole poster (any tap plays); the gold disc is drawn by the inner svg */
.wa-play { position: absolute; inset: 0 0 64px; border: 0; border-radius: 26px 26px 0 0; background: transparent; color: var(--ink); cursor: pointer; }
.wa-play[hidden] { display: none; }
.wa-play svg { position: absolute; left: 50%; top: 72%; width: 76px; height: 76px; margin: -38px 0 0 -38px; padding: 23px 21px 23px 25px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 10px rgba(201, 138, 36, 0.2), 0 16px 30px -10px rgba(0, 0, 0, 0.7); transition: transform 0.3s var(--ease), background-color 0.3s; }
.wa-play:hover svg { transform: scale(1.06); background: var(--gold-hi); }
.wa-play:focus-visible { outline: 2px solid var(--ivory); outline-offset: 4px; }
.wa-disclaimer { margin-top: 12px; font-size: 12.5px; line-height: 1.5; color: var(--on-ink-muted); text-align: center; }
@media (max-width: 760px) {
  .wa-video-grid { grid-template-columns: 1fr; }
  .wa-video { width: min(100%, 320px); }
}
