/* Bilikpos — navy & biru. Mobile-first. */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("fonts/jakarta-latin-ext.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("fonts/jakarta-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --navy: #0a1320;
  --blue: #1d4fd8;
  --blue-2: #3478f6;
  --blue-3: #8db0f7;
  --tint: #eaf0fa;
  --tint-2: #cfdef9;
  --soft: #f4f7fd;
  --text: #0a1320;
  --text-2: #4a5566;
  --line: #e6eaf0;
  --line-2: #cbd3df;
  --ok: #0f7b4a;
  --bad: #c4321f;

  --font: "Plus Jakarta Sans", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --pop: cubic-bezier(0.34, 1.56, 0.64, 1);
  --pad: 20px;
  --hd-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hd-h) + 12px); }
body {
  margin: 0;
  min-height: 100dvh;
  background: #fff;
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--navy); color: #fff; }
.skip:focus { left: 12px; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding-left: max(var(--pad), env(safe-area-inset-left)); padding-right: max(var(--pad), env(safe-area-inset-right)); }

/* ---------- Announcement bar ---------- */
.bar { background: var(--navy); padding: 10px max(var(--pad), env(safe-area-inset-right)) 10px var(--pad); padding-top: calc(10px + env(safe-area-inset-top)); text-align: right; }
.bar a { display: inline-flex; align-items: center; gap: 8px; min-height: 28px; font-size: 14.5px; font-weight: 600; color: var(--blue-3); }
.bar svg { transition: transform 0.3s var(--ease); }
.bar a:active svg { transform: translateX(4px); }

/* ---------- Header ---------- */
.hd { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.hd__in { display: flex; align-items: center; justify-content: space-between; height: var(--hd-h); padding: 0 max(var(--pad), env(safe-area-inset-right)) 0 max(var(--pad), env(safe-area-inset-left)); max-width: 1160px; margin: 0 auto; }
.logo { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
.logo__mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(145deg, var(--blue-2), var(--blue) 55%, var(--navy)); color: #fff; box-shadow: 0 8px 18px -8px rgba(29, 79, 216, 0.7); }
.logo__word { font-size: 22px; font-weight: 800; letter-spacing: -0.04em; }
.logo__word b { font-weight: 300; color: var(--blue); }
.hd__tools { display: flex; gap: 10px; }
.circ { position: relative; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1.5px solid var(--line-2); border-radius: 50%; background: #fff; transition: border-color 0.2s, background 0.2s, transform 0.2s var(--ease); }
.circ:active { transform: scale(0.92); background: var(--tint); }
.circ--s { width: 38px; height: 38px; }
@media (hover: hover) { .circ:hover { border-color: var(--blue); } }

.burger { position: relative; display: block; width: 20px; height: 14px; }
.burger i { position: absolute; left: 0; width: 100%; height: 2.2px; border-radius: 2px; background: var(--navy); transition: transform 0.35s var(--ease), opacity 0.2s, top 0.35s var(--ease); }
.burger i:nth-child(1) { top: 0; }
.burger i:nth-child(2) { top: 6px; }
.burger i:nth-child(3) { top: 12px; }
.is-menu .burger i:nth-child(1) { top: 6px; transform: rotate(45deg); }
.is-menu .burger i:nth-child(2) { opacity: 0; }
.is-menu .burger i:nth-child(3) { top: 6px; transform: rotate(-45deg); }

.mnav { display: grid; max-height: 0; overflow: hidden; background: #fff; transition: max-height 0.5s var(--ease); }
.is-menu .mnav { max-height: 320px; border-top: 1px solid var(--line); }
.mnav a { display: flex; align-items: baseline; gap: 16px; padding: 18px max(var(--pad), env(safe-area-inset-left)); border-bottom: 1px solid var(--line); font-size: 26px; font-weight: 800; letter-spacing: -0.03em; opacity: 0; transform: translateY(10px); transition: opacity 0.4s, transform 0.5s var(--ease), color 0.2s; }
.mnav a span { font-size: 13px; font-weight: 700; letter-spacing: 0.04em; color: var(--blue); }
.is-menu .mnav a { opacity: 1; transform: none; }
.is-menu .mnav a:nth-child(1) { transition-delay: 0.08s; }
.is-menu .mnav a:nth-child(2) { transition-delay: 0.16s; }
.is-menu .mnav a:nth-child(3) { transition-delay: 0.24s; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 56px 0 64px; text-align: center; background: linear-gradient(180deg, #eaf0fa 0%, #e2eafa 22%, #cfdef9 58%, #d0dcf7 78%, #e4ebf9 100%); }
.hero__glow { position: absolute; left: 50%; top: 42%; width: 120%; max-width: 900px; aspect-ratio: 1.3; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0)); pointer-events: none; }
.hero__in { position: relative; z-index: 2; }

.h1 { font-size: clamp(34px, 10.3vw, 84px); font-weight: 800; line-height: 1; letter-spacing: -0.035em; text-transform: uppercase; }
.h1 .ln { display: block; overflow: hidden; padding: 0.04em 0 0.1em; margin-bottom: -0.1em; }
.h1 .ln > span { display: inline-block; }
.thin { font-weight: 300; }
.dot { color: var(--blue); }

.lead { max-width: 34ch; margin: 28px auto 0; font-size: 17px; line-height: 1.65; color: var(--text-2); }
.btns { display: grid; gap: 14px; margin-top: 34px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 26px; border: 1.5px solid transparent; border-radius: 999px; font-size: 17px; font-weight: 700; letter-spacing: -0.01em; transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.2s var(--ease), box-shadow 0.3s; }
.btn svg { transition: transform 0.3s var(--ease); flex: none; }
.btn:active { transform: scale(0.97); }
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 16px 32px -14px rgba(29, 79, 216, 0.7); }
.btn--outline { background: #fff; color: var(--navy); border-color: var(--line-2); }
.btn--light { background: #fff; color: var(--navy); }
.btn--block { width: 100%; }
.btn--sm { min-height: 46px; padding: 0 18px; font-size: 15px; }
.btn:disabled { background: var(--line); color: #8c97a8; box-shadow: none; cursor: not-allowed; }
@media (hover: hover) {
  .btn--primary:not(:disabled):hover { background: #1a45bf; }
  .btn--primary:hover svg, .btn--light:hover svg { transform: translateX(5px); }
  .btn--outline:hover { border-color: var(--navy); }
}

/* floating tiles (tablet and up) */
.tiles { display: none; }
.tile { position: absolute; display: grid; place-items: center; border-radius: 28%; color: #fff; box-shadow: 0 24px 40px -18px rgba(10, 19, 32, 0.45), inset 0 2px 0 rgba(255, 255, 255, 0.35), inset 0 -6px 12px rgba(0, 0, 0, 0.18); }
.tile svg { width: 46%; height: 46%; }
.tile--blue { background: linear-gradient(150deg, var(--blue-2), var(--blue)); }
.tile--navy { background: linear-gradient(150deg, #1c2b45, var(--navy)); }
.tile--white { background: linear-gradient(150deg, #fff, #e8eefb); color: var(--blue); }
.t1 { width: 112px; height: 112px; left: 7%; top: 26%; }
.t2 { width: 92px; height: 92px; right: 9%; top: 18%; }
.t3 { width: 100px; height: 100px; right: 14%; bottom: 14%; }

/* ---------- Marquee ---------- */
.mq { overflow: hidden; background: var(--navy); padding: 16px 0; }
.mq__track { display: flex; width: max-content; will-change: transform; }
.mq__set { display: flex; align-items: center; gap: 28px; padding-right: 28px; flex: none; }
.mq__set span { font-size: 38px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.2; color: #fff; white-space: nowrap; }
.mq__set span.o { color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.6); }
.mq__set svg { flex: none; width: 22px; height: 22px; color: var(--blue-2); }

/* ---------- Sections ---------- */
.sec { position: relative; overflow: hidden; padding: 76px 0; }
.sec--soft { background: var(--soft); }
.blob { position: absolute; z-index: 0; pointer-events: none; border-radius: 50%; background: radial-gradient(closest-side, rgba(52, 120, 246, 0.9), rgba(52, 120, 246, 0)); filter: blur(30px); opacity: var(--o, 0.15); transform: rotate(var(--rot, 0deg)); animation: blobDrift 20s ease-in-out infinite alternate; }
@media (max-width: 760px) { .blob { opacity: calc(var(--o, 0.15) * 0.7); } }
.sec > .wrap { position: relative; z-index: 1; }

.kicker { font-size: 14px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--blue); }
.h2 { margin-top: 12px; font-size: clamp(28px, 8vw, 52px); font-weight: 800; line-height: 1.1; letter-spacing: -0.035em; }
.h2--light { color: #fff; }
.h2--count { font-size: clamp(34px, 10vw, 56px); }
.body { margin-top: 18px; max-width: 46ch; font-size: 17px; color: var(--text-2); }

/* ---------- Form card ---------- */
.card { margin-top: 32px; padding: 20px; border: 1px solid var(--line); border-radius: 26px; background: #fff; box-shadow: 0 30px 60px -36px rgba(10, 19, 32, 0.35); display: grid; gap: 10px; }
.lbl { display: block; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-2); }
.lbl--s { letter-spacing: 0.04em; }
.lbl-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }
.link { min-height: 44px; padding: 0 4px; white-space: nowrap; border: 0; background: none; font-size: 14px; font-weight: 700; color: var(--blue); }
.field { position: relative; }
.field input { width: 100%; height: 58px; padding: 0 52px 0 16px; border: 1.5px solid var(--line-2); border-radius: 16px; background: var(--soft); font-size: 17px; font-weight: 600; letter-spacing: -0.01em; appearance: none; -webkit-appearance: none; transition: border-color 0.2s, box-shadow 0.2s, background 0.2s; }
.field input::placeholder { color: #8c97a8; font-weight: 500; }
.field input:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(52, 120, 246, 0.18); }
.field__x { position: absolute; top: 9px; right: 8px; display: none; width: 40px; height: 40px; padding: 12px; border: 0; border-radius: 50%; background: var(--line); color: var(--text-2); }
.field__x svg { display: block; margin: auto; }
.sel { position: relative; }
.sel select { width: 100%; height: 54px; padding: 0 46px 0 16px; border: 1.5px solid var(--line-2); border-radius: 16px; background: #fff; font-size: 16px; font-weight: 600; text-overflow: ellipsis; appearance: none; -webkit-appearance: none; transition: border-color 0.2s, box-shadow 0.2s; }
.sel select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(52, 120, 246, 0.18); }
.sel svg { position: absolute; top: 50%; right: 16px; transform: translateY(-50%); pointer-events: none; color: var(--text-2); }
.hint { min-height: 24px; margin-top: 2px; font-size: 14.5px; line-height: 1.5; color: var(--text-2); transition: color 0.2s; }
.hint[data-state="ok"] { color: var(--ok); font-weight: 600; }
.hint[data-state="bad"] { color: var(--bad); font-weight: 600; }

/* ---------- States & results ---------- */
.state { display: grid; justify-items: center; gap: 14px; padding: 56px var(--pad) 8px; text-align: center; color: var(--text-2); }
.spin { width: 32px; height: 32px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--blue); animation: spin 0.8s linear infinite; }
.rs { padding-top: 36px; padding-bottom: 20px; scroll-margin-top: calc(var(--hd-h) + 8px); }
.rs__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.rs__list { display: grid; gap: 14px; }

.msg { padding: 18px; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: 0 18px 40px -30px rgba(10, 19, 32, 0.3); opacity: 0; transform: translateY(24px); animation: rise 0.8s var(--ease) forwards; animation-delay: var(--rv-delay, 0ms); }
.msg__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; }
.msg__from { max-width: 100%; padding: 5px 12px; border-radius: 999px; background: var(--tint); font-size: 12.5px; font-weight: 600; color: var(--blue); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg__date { font-size: 12.5px; color: #8c97a8; }
.msg__subj { margin-top: 14px; font-size: 19px; font-weight: 700; line-height: 1.25; letter-spacing: -0.02em; overflow-wrap: anywhere; }

.otp { display: grid; gap: 14px; margin-top: 16px; padding: 18px; border-radius: 18px; background: var(--navy); color: #fff; animation: pop 0.7s var(--pop) both; animation-delay: calc(var(--rv-delay, 0ms) + 220ms); }
.otp__lbl { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue-3); }
.otp__num { display: block; margin-top: 6px; font-size: clamp(40px, 13vw, 56px); font-weight: 800; line-height: 1; letter-spacing: 0.05em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.otp__btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 52px; border: 0; border-radius: 999px; background: #fff; color: var(--navy); font-size: 16px; font-weight: 700; transition: background 0.2s, color 0.2s, transform 0.2s var(--ease); }
.otp__btn:active { transform: scale(0.97); }
@media (hover: hover) { .otp__btn:hover { background: var(--blue-2); color: #fff; } }
.msg__reset { display: flex; align-items: center; justify-content: center; min-height: 52px; margin-top: 12px; padding: 0 18px; border-radius: 999px; background: var(--blue); color: #fff; font-size: 16px; font-weight: 700; text-align: center; transition: transform 0.2s var(--ease); }
.msg__reset:active { transform: scale(0.98); }

.acc { margin-top: 14px; border-top: 1px solid var(--line); }
.acc__btn { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 52px; padding: 0; border: 0; background: none; font-size: 15px; font-weight: 700; text-align: left; }
.acc__btn i { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--tint); transition: transform 0.35s var(--ease); }
.acc__btn i::before { content: ""; width: 6px; height: 6px; border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: translateY(-1px) rotate(45deg); }
.acc__btn[aria-expanded="true"] i { transform: rotate(180deg); }
.acc__body { padding-bottom: 6px; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.tabs button { min-height: 40px; padding: 0 16px; border: 1.5px solid var(--line-2); border-radius: 999px; background: #fff; font-size: 14px; font-weight: 600; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.tabs button[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.plain { max-height: 340px; overflow: auto; padding: 14px; border-radius: 14px; background: var(--soft); font-size: 14px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; -webkit-overflow-scrolling: touch; }
.frame { display: block; width: 100%; height: 420px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.none { padding: 36px 18px; border: 1.5px dashed var(--line-2); border-radius: 22px; text-align: center; color: var(--text-2); }
.none b { display: block; margin-bottom: 4px; font-size: 20px; letter-spacing: -0.02em; color: var(--text); }

/* ---------- Steps ---------- */
.rows { margin-top: 30px; border-bottom: 1px solid var(--line-2); }
.row { display: grid; gap: 14px; padding: 28px 0; border-top: 1px solid var(--line-2); }
.row__t { display: flex; gap: 18px; align-items: flex-start; }
.row__nr { padding-top: 6px; font-size: 14px; font-weight: 700; color: var(--blue); }
.row h3 { font-size: 26px; font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; }
.row__k { display: block; margin-top: 4px; font-size: 13.5px; font-weight: 600; color: var(--blue); }
.row p { color: var(--text-2); max-width: 46ch; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { padding: 6px 14px; border: 1px solid var(--line-2); border-radius: 999px; background: #fff; font-size: 13px; font-weight: 600; }

/* ---------- Stats ---------- */
.stats { display: grid; gap: 14px; margin-top: 32px; }
.stat { padding: 22px; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: 0 18px 40px -32px rgba(10, 19, 32, 0.3); }
.stat b { display: block; font-size: 44px; font-weight: 800; line-height: 1; letter-spacing: -0.04em; color: var(--blue); font-variant-numeric: tabular-nums; }
.stat small { font-size: 18px; font-weight: 600; letter-spacing: 0; }
.stat span { display: block; margin-top: 8px; font-size: 14.5px; color: var(--text-2); }

/* ---------- CTA + footer ---------- */
.cta-sec { padding: 72px 0; background: var(--navy); }
.cta-sec .wrap { display: grid; gap: 28px; justify-items: start; }
.ft { padding: 32px 0 calc(32px + env(safe-area-inset-bottom)); background: #060d17; color: #9ba7ba; }
.ft__in { display: grid; gap: 18px; }
.ft__brand { font-size: 22px; font-weight: 800; letter-spacing: -0.04em; color: #fff; }
.ft__brand b { font-weight: 300; color: var(--blue-3); }
.ft nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.ft nav a { min-height: 32px; display: inline-flex; align-items: center; font-size: 15px; font-weight: 600; color: #fff; }
.ft small { font-size: 13px; }

/* ---------- FAB ---------- */
.fab { position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 40; display: grid; place-items: center; width: 60px; height: 60px; padding: 0; border: 0; border-radius: 50%; background: var(--navy); color: #fff; box-shadow: 0 20px 36px -14px rgba(10, 19, 32, 0.6); opacity: 0; transform: scale(0.5) translateY(20px); pointer-events: none; transition: opacity 0.4s, transform 0.5s var(--pop); }
.fab.on { opacity: 1; transform: none; pointer-events: auto; }
.fab:active { transform: scale(0.92); }
.fab__dot { position: absolute; top: 2px; right: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--blue-2); border: 2.5px solid #fff; }
.fab.is-busy svg { animation: spin 0.8s linear infinite; }

/* ---------- Domain sheet ---------- */
.sheet { position: fixed; inset: 0; z-index: 60; }
.sheet__bg { position: absolute; inset: 0; background: rgba(10, 19, 32, 0.55); opacity: 0; transition: opacity 0.35s; }
.sheet__panel { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; max-height: 84dvh; padding: 10px var(--pad) calc(18px + env(safe-area-inset-bottom)); border-radius: 28px 28px 0 0; background: #fff; transform: translateY(100%); transition: transform 0.5s var(--ease); }
.sheet.is-open .sheet__bg { opacity: 1; }
.sheet.is-open .sheet__panel { transform: none; }
.sheet__grip { display: block; width: 44px; height: 5px; margin: 2px auto 12px; border-radius: 3px; background: var(--line-2); }
.sheet__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.sheet__head h3 { font-size: 22px; font-weight: 800; letter-spacing: -0.03em; }
.sheet__q { width: 100%; height: 54px; padding: 0 16px; border: 1.5px solid var(--line-2); border-radius: 16px; background: var(--soft); font-size: 16px; font-weight: 600; appearance: none; -webkit-appearance: none; }
.sheet__q:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(52, 120, 246, 0.18); }
.sheet__list { flex: 1; min-height: 0; margin-top: 10px; overflow: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.sheet__list li button { display: flex; align-items: center; width: 100%; min-height: 52px; padding: 0 6px; border: 0; border-bottom: 1px solid var(--line); background: none; font-size: 16px; font-weight: 600; text-align: left; overflow-wrap: anywhere; }
.sheet__list li button:active { background: var(--tint); }
.sheet__list li button span { color: var(--blue); margin-right: 1px; }
.sheet__none { padding: 28px 0; text-align: center; color: var(--text-2); }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: calc(92px + env(safe-area-inset-bottom)); z-index: 80; max-width: calc(100vw - 32px); padding: 13px 20px; border-radius: 999px; background: var(--navy); color: #fff; font-size: 14.5px; font-weight: 600; text-align: center; box-shadow: 0 18px 40px -16px rgba(10, 19, 32, 0.55); transform: translateX(-50%); animation: toastIn 0.4s var(--ease) both; }

/* ---------- Keyframes ---------- */
@keyframes blobDrift { 0% { transform: translate(0, 0) rotate(var(--rot, 0deg)); } 100% { transform: translate(30px, -20px) rotate(calc(var(--rot, 0deg) + 8deg)); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: none; } }
@keyframes mq { to { transform: translateX(-50%); } }
@keyframes floaty { from { transform: translateY(0); } to { transform: translateY(-14px); } }
@keyframes tilePop { from { opacity: 0; transform: scale(0.4); } to { opacity: 1; transform: scale(1); } }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 14px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ---------- Motion (JS only) ---------- */
.js .h1 .ln > span { transform: translateY(108%); }
.js.is-ready .h1 .ln > span { transform: none; transition: transform 1s var(--ease) calc(var(--i) * 0.12s + 0.1s); }
.js .in { opacity: 0; transform: translateY(20px); }
.js.is-ready .in { opacity: 1; transform: none; transition: opacity 0.8s var(--ease) var(--d, 0s), transform 0.8s var(--ease) var(--d, 0s); }
.js [data-rv] { opacity: 0; transform: translateY(24px); }
.js [data-rv].is-in { opacity: 1; transform: none; transition: opacity 0.8s var(--ease) var(--rv-delay, 0ms), transform 0.8s var(--ease) var(--rv-delay, 0ms); }
.mq__track { animation: mq 28s linear infinite; }

/* ---------- Larger screens ---------- */
@media (min-width: 640px) {
  :root { --pad: 32px; --hd-h: 72px; }
  .btns { grid-auto-flow: column; justify-content: center; }
  .card { padding: 28px; }
  .msg { padding: 24px; }
  .otp { grid-template-columns: 1fr auto; align-items: center; padding: 22px 24px; }
  .otp__btn { width: auto; padding: 0 28px; }
  .msg__reset { display: inline-flex; padding: 0 28px; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .row { grid-template-columns: 1.1fr 1fr; align-items: start; }
  .row .chips { grid-column: 2; }
}
@media (min-width: 760px) {
  .tiles { display: block; }
  .js .tile { animation: tilePop 0.7s var(--pop) var(--d, 0.5s) both, floaty 6s ease-in-out calc(var(--d, 0.5s) + 0.7s) infinite alternate; }
  .tile { animation: floaty 6s ease-in-out infinite alternate; }
  .hero { padding: 96px 0 104px; }
  .mq__set span { font-size: 56px; }
  .mq__set svg { width: 30px; height: 30px; }
}
@media (min-width: 960px) {
  :root { --pad: 48px; }
  .sec { padding: 112px 0; }
  .card { max-width: 640px; }
  .sheet__panel { left: 50%; right: auto; width: 520px; bottom: 50%; max-height: 70dvh; border-radius: 28px; transform: translate(-50%, 60%); opacity: 0; transition: transform 0.5s var(--ease), opacity 0.3s; }
  .sheet.is-open .sheet__panel { transform: translate(-50%, 50%); opacity: 1; }
  .sheet__grip { display: none; }
  .ft__in { grid-template-columns: 1fr auto auto; align-items: center; gap: 32px; }
}

/* Phones in landscape: keep the hero compact */
@media (orientation: landscape) and (max-height: 520px) and (min-width: 560px) {
  :root { --hd-h: 56px; }
  .hero { padding: 34px 0 44px; }
  .h1 { font-size: clamp(30px, 9.5vh, 46px); }
  .lead { margin-top: 14px; font-size: 15.5px; max-width: 52ch; }
  .btns { margin-top: 20px; }
  .btn { min-height: 48px; }
  .sec { padding: 56px 0; }
  .card { max-width: 560px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .js .h1 .ln > span, .js .in, .js [data-rv] { opacity: 1; transform: none; }
  .mq__track { animation: none; }
}
