/* ==========================================================================
   ROBBIT landing — styles
   Dizayn manbasi: "ROBBIT Landing.dc.html" ichidagi <style> bloki.
   Bu fayl vizual jihatdan 1:1 saqlangan; faqat DC runtime'ning
   style-hover / style-focus atributlari haqiqiy CSS qoidalariga ko'chirilgan.
   ========================================================================== */

@font-face {
  font-family: 'Plus Jakarta Sans';
  /* Variable font: one file covers weights 200–900, so no second request and
     no synthetic bolding. Plain format('woff2') is correct here — the legacy
     'woff2-variations' keyword makes some engines skip the source entirely. */
  src: url('../fonts/PlusJakartaSans.woff2') format('woff2');
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

html, body { margin: 0; padding: 0; background: #EAF7FF; }
body { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
* { box-sizing: border-box; }
a { color: #302763; text-decoration: none; }
a:hover { color: #5151FF; }
input, button { font-family: inherit; }
input:focus { outline: none; }

@keyframes robbitFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes auroraA { 0%,100% { transform: translate3d(0,0,0) scale(1); } 50% { transform: translate3d(6%,4%,0) scale(1.12); } }
@keyframes auroraB { 0%,100% { transform: translate3d(0,0,0) scale(1.05); } 50% { transform: translate3d(-7%,-5%,0) scale(0.95); } }
@keyframes auroraC { 0%,100% { transform: translate3d(0,0,0) scale(1); } 50% { transform: translate3d(4%,-6%,0) scale(1.1); } }
@keyframes glassRise { from { opacity: 0; transform: translateY(28px) scale(0.985); filter: blur(6px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes shimmer { 0% { transform: translateX(-120%) skewX(-18deg); } 55%, 100% { transform: translateX(320%) skewX(-18deg); } }
@keyframes pulseGlow { 0%,100% { box-shadow: 0 0 0 0 rgba(60,140,255,0.55); } 50% { box-shadow: 0 0 0 10px rgba(60,140,255,0); } }
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }

.rise { animation: glassRise .9s cubic-bezier(.2,.9,.25,1) both; }
.lift { transition: transform .45s cubic-bezier(.2,.9,.25,1), box-shadow .45s cubic-bezier(.2,.9,.25,1); }
.lift:hover { transform: translateY(-8px); }

@media (prefers-reduced-motion: reduce) { .rise { animation: none; } * { animation-duration: .001s !important; } }

.phone-full { display: inline; }
.phone-short { display: none; }
.hdr-tel { display: inline-block; }
.hdr-cta-mob { display: none; }
.mob-only { display: none !important; }

@media (max-width: 720px) {
  .phone-full { display: none; }
  .phone-short { display: inline; }
  .hdr { flex-wrap: nowrap !important; padding: 10px 10px 10px 16px !important; gap: 10px !important; }
  .hdr img { width: 100px !important; }
  .hdr-cta { display: none !important; }
  .hdr-tel { display: none !important; }
  .hdr-cta-mob { display: inline-block !important; padding: 12px 20px !important; font-size: 15px !important; }
  .mob-only { display: flex !important; }
  .quiz-shell { display: none; }
  .quiz-shell.open { display: block; position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 70; width: 100%; max-height: 92vh; overflow-y: auto; border-radius: 30px 30px 0 0 !important; animation: sheetUp .4s cubic-bezier(.2,.9,.25,1) both; }
  .quiz-backdrop { display: block !important; }
  .lift:hover { transform: none; }
}

@media (max-width: 480px) { .hdr img { width: 88px !important; } .hdr-tel { padding: 10px 10px !important; } }

/* --------------------------------------------------------------------------
   style-hover / style-focus → CSS
   -------------------------------------------------------------------------- */

.hv-tel:hover { color: #5151FF; background: rgba(255,255,255,0.6); }
.hv-white:hover { color: #FFFFFF; }
.hv-cta:hover { color: #FFFFFF; transform: translateY(-2px); box-shadow: inset 0 1px 1px rgba(255,255,255,0.75), 0 16px 34px rgba(60,90,255,0.6); }
.hv-opt:hover { background: rgba(255,255,255,0.86); box-shadow: inset 0 1px 1px rgba(255,255,255,1), 0 8px 22px rgba(31,80,180,0.16); }
.fc-input:focus { border-color: rgba(81,81,255,0.6); box-shadow: inset 0 2px 3px rgba(31,80,180,0.08), 0 0 0 4px rgba(81,81,255,0.14); }
.hv-back:hover { background: rgba(255,255,255,0.88); }
.hv-next:hover { box-shadow: inset 0 1.5px 1px rgba(255,255,255,0.8), 0 18px 40px rgba(60,90,255,0.6); }
.hv-arrow:hover { background: linear-gradient(135deg,#28DDFF 0%,#5151FF 100%); color: #FFFFFF; }
.hv-play:hover { box-shadow: inset 0 1.5px 1px rgba(255,255,255,0.85), 0 18px 36px rgba(60,90,255,0.62); }
.hv-ghost:hover { color: #5151FF; }
.hv-link:hover { color: #5151FF; }

/* --------------------------------------------------------------------------
   Image slots.
   The original page used the <image-slot> custom element, which sizes the
   image with JS: cover-fit the frame, then apply the author's zoom (s) and
   pan (x, y). app.js reproduces that math exactly; the rules below are the
   pre-JS/no-JS fallback (plain cover crop, no pan), so nothing jumps or
   letterboxes before the script runs.
   -------------------------------------------------------------------------- */

.slot { position: relative; width: 100%; height: 100%; overflow: hidden; }
.slot img {
  position: absolute;
  left: 50%; top: 50%;
  width: 100%; height: 100%;
  max-width: none;
  transform: translate(-50%, -50%);
  object-fit: cover;
  display: block;
}
/* Once app.js has measured the frame it sets width/height/left/top inline and
   drops object-fit, matching <image-slot> pixel for pixel. */
.slot img[data-fitted] { object-fit: fill; }

/* --------------------------------------------------------------------------
   Kviz — bosqichlar va holatlar
   -------------------------------------------------------------------------- */

[hidden] { display: none !important; }

.q-step { display: none; }
.q-step.is-active { display: block; }

/* Tanlangan / tanlanmagan variant tugmalari */
.opt-on { border: 1px solid rgba(255,255,255,0.9); background: linear-gradient(135deg,#28DDFF 0%,#5151FF 100%); color: #FFFFFF; }
.opt-on .dot { background: rgba(255,255,255,0.95); border: none; display: flex; align-items: center; justify-content: center; }
.opt-on .dot::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #5151FF; display: block; }
.opt-off .dot::after { content: none; }

.opt-age, .opt-branch {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  cursor: pointer;
}
.opt-age { padding: 15px 18px; border-radius: 999px; font-size: 16px; }
.opt-branch { padding: 13px 17px; border-radius: 999px; font-size: 15px; }

.opt-age.opt-off, .opt-branch.opt-off {
  border: 1px solid rgba(255,255,255,0.78);
  background: linear-gradient(140deg,rgba(255,255,255,0.62) 0%,rgba(255,255,255,0.28) 100%);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  font-weight: 700; color: #3B3670;
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.9);
}
.opt-age.opt-off { border-color: rgba(255,255,255,0.8); background: linear-gradient(140deg,rgba(255,255,255,0.66) 0%,rgba(255,255,255,0.3) 100%); }
.opt-age.opt-on { font-weight: 800; box-shadow: inset 0 1px 1px rgba(255,255,255,0.6), 0 10px 26px rgba(60,90,255,0.4); }
.opt-branch.opt-on { font-weight: 800; box-shadow: inset 0 1px 1px rgba(255,255,255,0.6), 0 8px 22px rgba(60,90,255,0.38); }

.opt-age .dot { width: 20px; height: 20px; border-radius: 50%; flex: none; }
.opt-branch .dot { width: 18px; height: 18px; border-radius: 50%; flex: none; }
.opt-age.opt-off .dot, .opt-branch.opt-off .dot { border: 2px solid rgba(60,140,255,0.45); display: block; }
.opt-branch.opt-on .dot::after { width: 7px; height: 7px; }

/* Yuborish tugmasi — yuklanish holati */
.btn-busy { opacity: .72; cursor: progress; pointer-events: none; }
.spinner {
  width: 17px; height: 17px; border-radius: 50%; display: inline-block;
  border: 2.5px solid rgba(255,255,255,0.42); border-top-color: #FFFFFF;
  animation: spin .7s linear infinite; vertical-align: -3px; margin-right: 9px;
}

/* Honeypot — botlar uchun ko'rinmas maydon */
.hp-field {
  position: absolute !important; width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* Klaviatura fokusi ko'rinishi (a11y) */
button:focus-visible, a:focus-visible, input:focus-visible {
  outline: 3px solid rgba(81,81,255,0.55);
  outline-offset: 2px;
}

/* Skroll qulfi — mobil sheet ochilganda */
body.sheet-lock { overflow: hidden; }
