/* =============================================
   POLISH - one visual language below the hero
   Display type (Karantina) for chapter headings, SVG icons instead of emoji,
   compact mobile cards, a vertical timeline for the process, cursor spotlight.
   ============================================= */

:root { --sec-y: clamp(64px, 12vw, 130px); --lav: #c7a6ff; }

/* ---------- scroll progress: a playhead across the whole page ---------- */
.scroll-bar {
  position: fixed; top: 0; inset-inline: 0; height: 3px; z-index: 1000;
  background: var(--accent); transform-origin: right center; transform: scaleX(var(--p, 0));
  pointer-events: none;
}
html[dir="ltr"] .scroll-bar { transform-origin: left center; }

/* ---------- header: gets out of the way when reading down on phones ---------- */
@media (max-width: 768px) {
  .hdr { transition: transform 0.35s var(--ease-out), padding 0.3s var(--ease), background 0.3s var(--ease); }
  .hdr.is-hidden { transform: translateY(-110%); }
}

/* ---------- chapter headings ---------- */
.h2, .cta-h {
  font-family: 'Karantina', 'Heebo', sans-serif;
  font-weight: 700; letter-spacing: 0; text-wrap: balance;
}
.h2 { font-size: clamp(2.7rem, 9vw, 4.6rem); line-height: 1.0; margin-bottom: 18px; }
.cta-h { font-size: clamp(2.7rem, 9vw, 4.8rem); line-height: 1.02; max-width: 820px; }
.accent-txt { color: var(--lav); }
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.95rem; font-weight: 800; letter-spacing: 0; color: var(--lav); margin-bottom: 14px;
}
.kicker::before { content: ''; width: 22px; height: 2px; border-radius: 2px; background: var(--accent); }
.lead { line-height: 1.8; }

/* ---------- services ---------- */
.srv-card {
  display: grid; grid-template-columns: 46px 1fr; column-gap: 16px; align-items: start;
  padding: 22px 20px; text-align: start; overflow: hidden;
}
.srv-num { position: absolute; top: 14px; inset-inline-end: 18px; margin: 0; font-size: 0.8rem; opacity: 0.5; }
.srv-icon {
  grid-row: 1 / span 2; width: 46px; height: 46px; margin: 0; border-radius: 13px;
  display: grid; place-items: center; color: var(--lav);
  background: rgba(147,51,234,0.16); border: 1px solid rgba(199,166,255,0.18);
}
.srv-icon .ico { width: 24px; height: 24px; }
.srv-title { margin: 0 0 6px; font-size: 1.08rem; }
.srv-desc { grid-column: 2; font-size: 0.9rem; }
@media (min-width: 769px) {
  .srv-card { display: block; padding: 32px 28px; }
  .srv-icon { margin-bottom: 18px; }
  .srv-num { top: 22px; inset-inline-end: 24px; }
}
.srv-card--wide { display: grid; }

/* ---------- AI feature list ---------- */
.ai-fi { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; color: var(--lav); background: rgba(147,51,234,0.16); margin-top: 0; }
.ai-fi .ico { width: 21px; height: 21px; }
.ai-feat { align-items: flex-start; }

/* ---------- process: a vertical timeline on phones ---------- */
@media (max-width: 768px) {
  .proc-grid { grid-template-columns: 1fr; gap: 0; margin-top: 36px; }
  .proc-step { text-align: start; display: grid; grid-template-columns: 54px 1fr; column-gap: 18px; padding-bottom: 30px; }
  .proc-step:last-child { padding-bottom: 0; }
  .proc-num { width: 54px; height: 54px; margin: 0; grid-row: 1 / span 2; font-size: 1.3rem; background: var(--bg-3); border-color: rgba(199,166,255,0.28); }
  .proc-step:not(:last-child)::before {
    content: ''; position: absolute; inset-inline-start: 26px; top: 56px; bottom: 2px; width: 2px;
    background: linear-gradient(var(--accent), rgba(147,51,234,0.05)); border-radius: 2px;
  }
  .proc-t br { display: none; }
  .proc-t { margin-bottom: 4px; align-self: end; }
  .proc-d { grid-column: 2; }
}

/* ---------- client cards ---------- */
.client-card.reveal.in { animation-fill-mode: backwards; }
@media (hover: hover) and (pointer: fine) {
  .client-card:hover { transform: perspective(900px) translateY(-6px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
}

/* ---------- cursor spotlight on cards ---------- */
@media (hover: hover) and (pointer: fine) {
  .srv-card, .ai-feat, .client-card { --mx: 50%; --my: 50%; }
  .srv-card::after, .ai-feat::after, .client-card::after {
    content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2;
    background: radial-gradient(260px 260px at var(--mx) var(--my), rgba(199,166,255,0.14), transparent 70%);
    opacity: 0; transition: opacity 0.3s var(--ease-out);
  }
  .srv-card:hover::after, .ai-feat:hover::after, .client-card:hover::after { opacity: 1; }
  .ai-feat { position: relative; }
}

/* ---------- contact buttons: one family ---------- */
.contact-actions .btn { gap: 10px; }
.btn .ico, .c-pill .ico { width: 20px; height: 20px; flex-shrink: 0; }
.btn-wa { background: #25d366; color: #04210f; box-shadow: none; }
.btn-ig { background: rgba(255,255,255,0.04); color: var(--txt-hi); border: 1px solid rgba(214,196,255,0.22); box-shadow: none; }
@media (hover: hover) and (pointer: fine) {
  .btn-wa:hover { background: #3ee37f; box-shadow: none; transform: none; }
  .btn-ig:hover { opacity: 1; border-color: var(--accent); background: var(--accent-dim); box-shadow: none; transform: none; }
}
.contact-availability { letter-spacing: 0; }
@media (max-width: 560px) {
  .contact-actions { flex-direction: column; align-items: stretch; gap: 10px; }
  .contact-actions .btn { width: 100%; }
  .c-pill { width: 100%; justify-content: center; }
  .contact-row { width: 100%; }
}
.c-pill { gap: 10px; }

/* ---------- floating whatsapp ---------- */
.float-wa { color: #fff; }
.float-wa .ico { width: 26px; height: 26px; }
.foot-socials a { display: inline-grid; place-items: center; width: 40px; height: 40px; }
.foot-socials .ico { width: 22px; height: 22px; }
.form-success-icon .ico { width: 42px; height: 42px; color: #25d366; }

/* ---------- landing showcase on phones: keep the device mock inside the page ---------- */
@media (max-width: 560px) {
  .lp-showcase { padding: 0 8px 44px 0; }
}

:focus-visible { outline: 2px solid var(--txt-hi); outline-offset: 3px; }

/* ---------- process: the playhead fills as you scroll ---------- */
.proc-grid { --prog: 0; }
.proc-num { transition: background-color 0.4s var(--ease-out), color 0.4s var(--ease-out), border-color 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out); }
.proc-step.is-done .proc-num { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: 0 0 0 6px rgba(147,51,234,0.16); }
@media (min-width: 1025px) {
  .proc-grid::after {
    content: ''; position: absolute; top: 35px; right: calc(12.5% + 4px); left: calc(12.5% + 4px); height: 2px; z-index: 0;
    background: var(--accent); transform-origin: right center; transform: scaleX(var(--prog));
  }
}
@media (max-width: 768px) {
  .proc-step:not(:last-child)::before { content: none; }
  .proc-grid::before {
    display: block; content: ''; position: absolute; z-index: 0;
    inset-inline-start: 26px; top: 27px; bottom: 27px; width: 2px; height: auto; left: auto; right: auto; border-radius: 2px;
    background: rgba(199,166,255,0.16);
  }
  html[dir="rtl"] .proc-grid::before { right: 26px; left: auto; }
  .proc-grid::after {
    content: ''; position: absolute; z-index: 0; top: 27px; bottom: 27px; width: 2px; border-radius: 2px;
    background: var(--accent); transform-origin: top; transform: scaleY(var(--prog));
  }
  html[dir="rtl"] .proc-grid::after { right: 26px; }
  html[dir="ltr"] .proc-grid::after { left: 26px; }
}

/* ---------- services: cards stack like a deck on phones ---------- */
@media (max-width: 768px) {
  .srv-grid { display: block; margin-top: 36px; }
  .srv-card {
    position: sticky; top: calc(76px + var(--k, 0) * 12px);
    margin-bottom: 16px; background: rgb(22, 16, 36);
    transform: scale(var(--s, 1)); transform-origin: 50% 0;
    transition: filter 0.2s linear; will-change: transform;
  }
  .srv-card.reveal { opacity: 1; }
}

/* ---------- landing mock: the phone sits on a nearer layer ---------- */
.lp-phone { transform: translate3d(0, calc(var(--lp, 0) * -34px), 0); }
@media (hover: hover) and (pointer: fine) {
  .lp-showcase:hover .lp-phone { transform: translate3d(0, calc(var(--lp, 0) * -34px - 10px), 0); }
}

/* ---------- brand: one clean wordmark, same face as the hero ---------- */
.logo { display: inline-flex; align-items: center; flex-shrink: 0; letter-spacing: 0; font-size: 1rem; color: var(--txt-hi); }
.logo-word {
  direction: ltr; white-space: nowrap;
  font-family: 'Archivo', 'Heebo', sans-serif; font-stretch: 125%; font-weight: 900;
  font-size: 1.05rem; letter-spacing: -0.01em; line-height: 1;
}
@media (min-width: 769px) { .logo-word { font-size: 1.2rem; } }

/* faces stay in frame when a vertical thumbnail is cropped into a wide featured card */
.client-card.featured .card-media img { object-position: 50% 24%; }

/* comfortable touch targets */
.burger { padding: 11px; margin: -11px; }
.logo { min-height: 44px; }
.foot-nav a, .foot-legal a, .foot-legal button, .foot-access-link { display: inline-flex; align-items: center; min-height: 40px; padding-inline: 6px; }
.foot-nav { gap: 4px 16px; flex-wrap: wrap; }
.foot-legal { gap: 0 10px; }
.drawer a { padding-block: 6px; }

.float-wa { transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out), box-shadow 0.3s; }
.float-wa.is-away { opacity: 0; transform: scale(0.8); pointer-events: none; }
