/* SCEPTERIX — page polish (flag: pagesV2) */

/* ---- form success: a tick draws in, then the message ---- */
.form-status.is-success { display: flex; align-items: center; gap: 14px; animation: fs-in .5s var(--ease-out, ease) both; }
.form-status.is-success::before {
  content: ""; flex: none; width: 34px; height: 34px; border-radius: 50%;
  background: var(--live) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23051024' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 20px no-repeat;
  box-shadow: 0 0 0 0 rgba(63, 224, 176, .6); animation: fs-tick .6s var(--ease-out, ease) .1s both, fs-ring 1.2s ease-out .35s;
}
@keyframes fs-in { from { opacity: 0; transform: translateY(6px); } }
@keyframes fs-tick { from { transform: scale(.3) rotate(-30deg); opacity: 0; } 70% { transform: scale(1.12); } }
@keyframes fs-ring { to { box-shadow: 0 0 0 14px rgba(63, 224, 176, 0); } }

/* ---- footer launch-news signup ---- */
.footer-signup { display: grid; gap: 20px 40px; align-items: center; padding: 28px clamp(20px, 3vw, 36px); margin-bottom: 48px; border-radius: var(--r-lg, 20px); border: 1px solid var(--line); background: linear-gradient(120deg, rgba(30, 95, 217, .14), rgba(63, 224, 245, .06)); }
@media (min-width: 900px) { .footer-signup { grid-template-columns: 1fr 1.2fr; } }
.footer-signup h2 { font-size: 1.15rem; text-transform: none; letter-spacing: 0; margin: 0 0 6px; color: var(--white); }
.footer-signup p { margin: 0; }
.footer-signup .form { gap: 10px; }
.footer-signup__row { display: flex; gap: 10px; align-items: flex-start; }
.footer-signup__row .field { flex: 1; margin: 0; }
.footer-signup__row .btn { flex: none; min-height: 48px; }
.footer-signup .checkbox { font-size: .82rem; }
@media (max-width: 480px) { .footer-signup__row { flex-direction: column; align-items: stretch; } }

/* ---- legal: active TOC entry + back to top ---- */
.toc a { transition: color .2s; position: relative; }
.toc a.is-active { color: var(--cyan); font-weight: 600; }
.toc li:has(> a.is-active)::marker { color: var(--cyan); }
.to-top {
  position: fixed; right: 22px; bottom: 90px; z-index: 40; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
  color: var(--white); background: rgba(10, 26, 51, .85); border: 1px solid var(--line-strong); backdrop-filter: blur(8px);
  opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .3s, transform .3s var(--ease-out, ease), border-color .2s;
}
.to-top svg { width: 20px; height: 20px; }
.to-top.is-shown { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { border-color: var(--cyan); color: var(--cyan); }
@media (max-width: 600px) { .to-top { right: 16px; bottom: 76px; width: 40px; height: 40px; } }

/* ---- WhatsApp button steps aside over the footer and while typing on phones ---- */
.wa-float { transition: opacity .3s, transform .3s var(--ease-out, ease), box-shadow .3s; }
.wa-away .wa-float, .wa-typing .wa-float { opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none; }
.wa-away .to-top { bottom: 22px; }

/* ---- home: product cards swipe sideways on phones ---- */
@media (max-width: 767px) {
  #products .grid-5 { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin-inline: calc(-1 * var(--gutter, 20px)); padding: 4px var(--gutter, 20px) 18px; scroll-padding-inline: var(--gutter, 20px); scrollbar-width: none; }
  #products .grid-5::-webkit-scrollbar { display: none; }
  #products .grid-5 > * { flex: 0 0 82%; scroll-snap-align: start; }
  #products .swipe-hint { display: block; }
}
.swipe-hint { display: none; font-size: .8rem; color: var(--muted); margin: 4px 0 0; }

/* ---- home: honest "designed around" strip ---- */
.rules-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 12px; margin: 36px auto 0; padding: 0; list-style: none; }
.rules-strip li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--r-pill, 999px); border: 1px solid var(--line); background: rgba(15, 37, 71, .5); font-size: .85rem; color: #D5E1EE; }
.rules-strip li::before { content: ""; width: 6px; height: 6px; transform: rotate(45deg); background: var(--cyan); box-shadow: 0 0 6px var(--cyan); }
.rules-strip-label { text-align: center; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 40px 0 0; }

/* ---- contact: what happens next ---- */
.next-steps { list-style: none; counter-reset: ns; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 768px) { .next-steps { grid-template-columns: repeat(3, 1fr); } }
.next-steps li { counter-increment: ns; position: relative; padding: 22px 22px 22px 70px; border-radius: var(--r-md, 14px); border: 1px solid var(--line); background: rgba(15, 37, 71, .45); }
.next-steps li::before { content: counter(ns); position: absolute; left: 20px; top: 20px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; font: 800 .95rem/1 var(--font-head); color: var(--midnight); background: var(--cyan); }
.next-steps strong { display: block; color: var(--white); margin-bottom: 4px; }
.next-steps p { margin: 0; font-size: .92rem; }

/* ---- 404: soft-edged render, product shortcuts ---- */
.nf__scepter { -webkit-mask-image: radial-gradient(closest-side, #000 62%, transparent 100%); mask-image: radial-gradient(closest-side, #000 62%, transparent 100%); }
.nf .code { margin: 0 0 20px; } /* the generic 1em paragraph margin was 128px at this size */
.nf-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px; margin: 28px 0 0; padding: 0; list-style: none; }
.nf-links a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); color: #D5E1EE; font-size: .88rem; transition: border-color .2s, color .2s; }
.nf-links a:hover { border-color: var(--line-strong); color: var(--white); }
.nf-links i { width: 8px; height: 8px; transform: rotate(45deg); background: currentColor; box-shadow: 0 0 8px currentColor; }
