/* ==========================================================================
   iosi.live — public site: header, drawer, home page, auth screens.
   Depends on iosi-ds.css tokens. Calm by default, motion only where it helps.
   ========================================================================== */

/* ---------- base ---------- */
html body.lp { background: #fff !important; }
body.lp > header, body.lp > main, body.lp > section, body.lp > footer, body.lp > article, body.lp > .iosi-screen { position: relative; z-index: 1; }
.lp-wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
html.lp-locked { overflow: hidden; }

/* ---------- header ---------- */
.lp-nav { position: sticky !important; top: 0; z-index: 900 !important; background: rgba(255, 255, 255, 0.94); border-bottom: 1px solid transparent; transition: border-color 200ms, background-color 200ms; }
.lp-nav.is-scrolled { border-bottom-color: var(--border); background: rgba(255, 255, 255, 0.97); }
.lp-nav-in { height: 64px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; }
.lp-brand { display: inline-flex; align-items: center; }
.lp-nav .iosi-logo-mark { width: 30px; height: 30px; }
.lp-nav .iosi-logo-word { font-size: 20px; }
.lp-links { display: flex; align-items: center; gap: 2px; }
.lp-links > a, .lp-dd-btn { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border: 0; border-radius: 8px; background: none; font: 500 14.5px var(--font); color: var(--text-2) !important; cursor: pointer; transition: color 150ms, background-color 150ms; }
.lp-links > a:hover, .lp-dd-btn:hover, .lp-dd.is-open .lp-dd-btn { color: var(--text) !important; background: var(--surface-2); }
.lp-links > a.is-active, .lp-dd-btn.is-active { color: var(--text) !important; }
.lp-links > a.is-active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -14px; height: 2px; background: var(--text); }
.lp-dd-btn svg { transition: transform 200ms; }
.lp-dd.is-open .lp-dd-btn svg { transform: rotate(180deg); }
.lp-actions { display: flex; align-items: center; gap: 12px; }
.lp-sep { width: 1px; height: 22px; background: var(--border); }
.lp-login { font: 500 14.5px var(--font); color: var(--text) !important; padding: 0 6px; }
.lp-login:hover { color: var(--brand) !important; }
.lp-reg { height: 38px !important; padding: 0 16px !important; font-size: 14px !important; }
.lp-lang .lang-btn { background: #fff !important; border: 1px solid var(--border) !important; height: 34px; border-radius: 8px !important; box-shadow: none !important; }

/* "More" menu */
.lp-dd { position: relative; }
.lp-dd-menu { position: absolute; top: calc(100% + 12px); left: 50%; width: 560px; display: grid; grid-template-columns: 1.35fr 1fr; gap: 8px 20px; padding: 18px; background: #fff; border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 20px 50px -20px rgba(16, 16, 20, 0.25); opacity: 0; visibility: hidden; transform: translate(-50%, 6px); transition: opacity 160ms, transform 200ms var(--ease-out), visibility 0s 200ms; }
.lp-dd.is-open .lp-dd-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity 160ms, transform 200ms var(--ease-out); }
.lp-dd-menu h4 { margin: 2px 10px 8px; font: 600 12px var(--font); color: var(--text-3); letter-spacing: 0; }
.lp-dd-col { display: flex; flex-direction: column; gap: 2px; }
.lp-dd-col a { display: flex; align-items: flex-start; gap: 12px; padding: 9px 10px; border-radius: 10px; color: var(--text) !important; transition: background-color 140ms; }
.lp-dd-col a:hover, .lp-dd-col a.is-active { background: var(--surface-2); }
.lp-dd-col a b { display: flex; flex-direction: column; font: 600 14px/1.3 var(--font); }
.lp-dd-col a small { font: 400 12.5px/1.35 var(--font); color: var(--text-3); margin-top: 2px; }
.lp-dd-col a.is-small b { font-weight: 500; }
.lp-dd-i { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 8px; border: 1px solid var(--border); color: var(--text-2); }
.lp-dd-col a.is-small .lp-dd-i { width: 28px; height: 28px; border: 0; }
.lp-dd-opt { display: none !important; }

/* burger + drawer */
.lp-burger { display: none; width: 40px; height: 40px; place-items: center; align-content: center; gap: 5px; border: 1px solid var(--border); border-radius: 10px; background: #fff; cursor: pointer; }
.lp-burger span { display: block; width: 18px; height: 1.8px; border-radius: 2px; background: var(--text); transition: transform 200ms, opacity 200ms; }
.lp-drawer { position: fixed; inset: 0; z-index: 1200; visibility: hidden; }
.lp-drawer.is-open { visibility: visible; }
.lp-drawer-bg { position: absolute; inset: 0; background: rgba(10, 10, 14, 0.4); opacity: 0; transition: opacity 220ms; }
.lp-drawer.is-open .lp-drawer-bg { opacity: 1; }
.lp-drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(380px, 88vw); display: flex; flex-direction: column; gap: 14px; padding: 16px 18px max(18px, env(safe-area-inset-bottom)); background: #fff; overflow-y: auto; transform: translateX(100%); transition: transform 280ms var(--ease-out); }
.lp-drawer.is-open .lp-drawer-panel { transform: none; }
.lp-drawer-head { display: flex; align-items: center; justify-content: space-between; }
.lp-drawer-x { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--border); border-radius: 10px; background: #fff; color: var(--text); cursor: pointer; }
.lp-drawer-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lp-drawer-cta .iosi-btn { height: 44px; }
.lp-drawer-nav { display: flex; flex-direction: column; gap: 2px; }
.lp-drawer-nav > a { display: flex; align-items: center; gap: 12px; height: 46px; padding: 0 8px; border-radius: 10px; font: 500 15.5px var(--font); color: var(--text) !important; }
.lp-drawer-nav > a:hover, .lp-drawer-nav > a.is-active { background: var(--surface-2); }
.lp-drawer-nav h4 { margin: 14px 8px 4px; font: 600 12px var(--font); color: var(--text-3); }
.lp-drawer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.lp-drawer-grid a { display: flex; align-items: center; gap: 8px; padding: 10px 8px; border-radius: 8px; font: 500 14px var(--font); color: var(--text-2) !important; }
.lp-drawer-grid a:hover { background: var(--surface-2); color: var(--text) !important; }
.lp-drawer-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--border); font: 400 13px var(--font); color: var(--text-3); }
.lp-progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; z-index: 1000; background: var(--text); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); pointer-events: none; }

/* ---------- shared section bits ---------- */
.sx-head { max-width: 640px; margin: 0 0 32px; }
.sx-head h2 { margin: 0 0 10px; font: 700 clamp(28px, 3.4vw, 40px)/1.12 var(--font); letter-spacing: -0.03em; color: var(--text); }
.sx-head p { margin: 0; font: 400 17px/1.55 var(--font); color: var(--text-2); }
.sx-head.is-light h2 { color: #fff; }
.sx-head.is-light p { color: rgba(255, 255, 255, 0.68); }
.px-more { display: inline-flex; align-items: center; gap: 6px; font: 600 14.5px var(--font); color: var(--text) !important; }
.px-more svg { transition: transform 200ms var(--ease-out); }
a:hover .px-more svg, .px-more:hover svg { transform: translateX(3px); }

/* ---------- hero ---------- */
.hx { padding: 56px 0 72px; }
.hx-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); align-items: center; gap: 56px; }
.hx-title { margin: 0 0 20px; font: 700 clamp(42px, 5.6vw, 72px)/1.02 var(--font); letter-spacing: -0.045em; color: var(--text); }
.hx-title span { display: block; }
.hx-mute { color: #a1a1aa; }
.hx-lead { max-width: 480px; margin: 0 0 30px; font: 400 18.5px/1.55 var(--font); color: var(--text-2); }
.hx-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.hx-facts { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0 0 28px; padding: 0; list-style: none; font: 500 14px var(--font); color: var(--text-2); }
.hx-facts li { display: inline-flex; align-items: center; gap: 7px; }
.hx-facts svg { color: #16a34a; }
.hx-visual { position: relative; padding: 0 0 40px 40px; }
.hx-photo { margin: 0; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; background: var(--surface-2); }
.hx-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hx-card { position: absolute; background: #fff; border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 18px 40px -18px rgba(16, 16, 20, 0.35); }
.hx-card--live { left: 0; bottom: 0; width: 172px; padding: 6px; }
.hx-card--live img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 10px; display: block; }
.hx-card--live .iosi-live-badge { position: absolute; top: 14px; left: 14px; }
.hx-card-f { display: flex; align-items: center; justify-content: space-between; padding: 8px 4px 2px; font: 600 13.5px var(--font); }
.hx-card-f small { display: inline-flex; align-items: center; gap: 4px; font-weight: 500; color: var(--text-3); }
.hx-card--match { right: -14px; top: 26px; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; }
.hx-card--match b { display: block; font: 600 14px var(--font); }
.hx-card--match small { font: 400 12.5px var(--font); color: var(--text-3); }
.hx-avas { display: flex; }
.hx-avas img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; }
.hx-avas img + img { margin-left: -12px; }

/* ---------- product pillars ---------- */
.px { padding: 72px 28px 88px; }
.px-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.px-card { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; background: #fff; color: var(--text) !important; transition: border-color 200ms, transform 300ms var(--ease-out); }
.px-card:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.px-card figure { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface-2); }
.px-card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 600ms var(--ease-out); }
.px-card:hover img { transform: scale(1.04); }
.px-body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; flex: 1; }
.px-label { display: inline-flex; align-items: center; gap: 6px; font: 600 12.5px var(--font); color: var(--text-3); }
.px-body h3 { margin: 0; font: 700 19px/1.25 var(--font); letter-spacing: -0.015em; }
.px-body p { margin: 0 0 6px; font: 400 14.5px/1.5 var(--font); color: var(--text-2); }
.px-body .px-more { margin-top: auto; }

/* ---------- gifts ---------- */
.gx { background: #0d0d11; color: #fff; padding: 88px 0; }
.gx-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.gx-item { display: grid; justify-items: start; gap: 4px; padding: 18px; text-align: left; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 14px; background: rgba(255, 255, 255, 0.03); color: #fff; cursor: pointer; font: inherit; transition: background-color 200ms, border-color 200ms, transform 300ms var(--ease-out); }
.gx-item:hover { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.16); transform: translateY(-3px); }
.gx-3d { position: relative; display: block; width: 72px; height: 72px; margin-bottom: 8px; background-repeat: no-repeat; background-size: 800% 600%; }
.gx-3d img { width: 100%; height: 100%; display: block; transition: opacity 120ms; }
.gx-3d.is-anim { animation: gx-x 0.3333s steps(8, jump-none) infinite, gx-y 2s steps(6, jump-none) infinite; }
.gx-3d.is-anim.is-ready img { opacity: 0; }
@keyframes gx-x { from { background-position-x: 0%; } to { background-position-x: 100%; } }
@keyframes gx-y { from { background-position-y: 0%; } to { background-position-y: 100%; } }
.gx-item b { font: 600 16px var(--font); }
.gx-item small { font: 400 13.5px/1.4 var(--font); color: rgba(255, 255, 255, 0.62); }
.gx-price { display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; font: 600 12.5px var(--font); color: #fcd34d; }
.gx-note { display: flex; align-items: center; gap: 8px; margin: 22px 0 0; font: 400 13.5px var(--font); color: rgba(255, 255, 255, 0.5); }

/* ---------- creators ---------- */
.cx { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 64px; padding: 96px 28px; }
.cx-tag { display: inline-block; margin-bottom: 14px; padding: 3px 8px; border-radius: 6px; font: 700 12px var(--font); color: #b91c1c; background: #fef2f2; border: 1px solid #fecaca; }
.cx-copy h2 { margin: 0 0 12px; font: 700 clamp(28px, 3.4vw, 40px)/1.12 var(--font); letter-spacing: -0.03em; }
.cx-copy > p { margin: 0 0 22px; font: 400 17px/1.55 var(--font); color: var(--text-2); }
.cx-list { display: grid; gap: 12px; margin: 0 0 28px; padding: 0; list-style: none; }
.cx-list li { display: flex; gap: 10px; font: 400 15px/1.5 var(--font); color: var(--text-2); }
.cx-list svg { flex: none; margin-top: 3px; color: var(--text); }
.cx-list b { color: var(--text); font-weight: 600; }
.cx-mock { display: flex; justify-content: center; }
.cx-profile { width: min(400px, 100%); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; background: #fff; box-shadow: 0 30px 60px -30px rgba(16, 16, 20, 0.3); }
.cx-cover { width: 100%; height: 120px; object-fit: cover; display: block; }
.cx-id { display: flex; align-items: flex-end; gap: 12px; padding: 0 18px; margin-top: -30px; }
.cx-id img { width: 68px; height: 68px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; }
.cx-id b { display: block; font: 700 16px var(--font); }
.cx-id small { font: 400 13px var(--font); color: var(--text-3); }
.cx-sub { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 14px 18px; padding: 12px 12px 12px 14px; border-radius: 12px; background: var(--surface-2); font: 600 14px var(--font); }
.cx-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
.cx-posts span { position: relative; aspect-ratio: 1; overflow: hidden; }
.cx-posts img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cx-posts .is-locked img { filter: blur(14px) saturate(0.8); transform: scale(1.2); }
.cx-posts i { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; }

/* ---------- plans ---------- */
.plx { padding: 24px 28px 96px; }
.plx-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.plx-card { display: flex; flex-direction: column; padding: 24px; border: 1px solid var(--border); border-radius: 16px; background: #fff; color: var(--text) !important; transition: border-color 200ms; }
.plx-card:hover { border-color: var(--border-strong); }
.plx-card.is-hot { border: 1.5px solid var(--text); }
.plx-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.plx-top h3 { margin: 0; font: 700 18px var(--font); }
.plx-flag { padding: 3px 8px; border-radius: 6px; font: 600 11.5px var(--font); color: #fff; background: var(--text); }
.plx-price { margin: 14px 0 18px; display: flex; align-items: baseline; gap: 6px; }
.plx-price b { font: 700 34px/1 var(--font); letter-spacing: -0.03em; }
.plx-price small { font: 400 14px var(--font); color: var(--text-3); }
.plx-card ul { display: grid; gap: 10px; margin: 0; padding: 18px 0 0; list-style: none; border-top: 1px solid var(--border); }
.plx-card li { display: flex; gap: 9px; font: 400 14.5px/1.4 var(--font); color: var(--text-2); }
.plx-card li svg { flex: none; margin-top: 2px; color: var(--text); }
.plx-more { margin: 22px 0 0; }
.plx-more a { display: inline-flex; align-items: center; gap: 6px; font: 600 14.5px var(--font); color: var(--text) !important; }

/* ---------- safety ---------- */
.sfx { background: var(--bg); padding: 80px 0; }
.sfx-in { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.sfx-copy h2 { margin: 0 0 12px; font: 700 clamp(26px, 3vw, 36px)/1.15 var(--font); letter-spacing: -0.03em; }
.sfx-copy p { margin: 0 0 18px; font: 400 16.5px/1.55 var(--font); color: var(--text-2); }
.sfx-list { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; margin: 0; padding: 0; list-style: none; }
.sfx-list li { display: flex; gap: 14px; }
.sfx-list svg { flex: none; margin-top: 2px; color: var(--text); }
.sfx-list b { display: block; margin-bottom: 4px; font: 600 15.5px var(--font); }
.sfx-list small { font: 400 14px/1.5 var(--font); color: var(--text-2); }

/* ---------- faq ---------- */
.fqx { padding: 88px 28px 72px; max-width: 860px; }
.fqx-list { border-top: 1px solid var(--border); }
.fqx details { border-bottom: 1px solid var(--border); }
.fqx summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 2px; font: 600 16.5px var(--font); color: var(--text); cursor: pointer; list-style: none; }
.fqx summary::-webkit-details-marker { display: none; }
.fqx summary svg { flex: none; color: var(--text-3); transition: transform 250ms var(--ease-out); }
.fqx details[open] summary svg { transform: rotate(45deg); }
.fqx details p { margin: -6px 0 20px; max-width: 680px; font: 400 15.5px/1.6 var(--font); color: var(--text-2); }

/* ---------- final call ---------- */
.ctx { padding: 0 28px 88px; }
.ctx-in { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 40px 44px; border-radius: 20px; background: #111114; color: #fff; }
.ctx-in h2 { margin: 0 0 6px; font: 700 clamp(24px, 2.6vw, 32px)/1.15 var(--font); letter-spacing: -0.025em; color: #fff; }
.ctx-in p { margin: 0; font: 400 16px var(--font); color: rgba(255, 255, 255, 0.65); }
.ctx-btns { display: flex; gap: 10px; flex: none; }
.ctx .iosi-btn--ghost-w { color: #fff !important; background: transparent; border: 1px solid rgba(255, 255, 255, 0.3); }
.ctx .iosi-btn--ghost-w:hover { background: rgba(255, 255, 255, 0.08); }

/* ---------- motion (desktop, scroll-linked, compositor only) ---------- */
@media (min-width: 901px) and (prefers-reduced-motion: no-preference) {
  .hx-copy > * { animation: lp-up 700ms var(--ease-out) both; }
  .hx-copy > :nth-child(2) { animation-delay: 60ms; } .hx-copy > :nth-child(3) { animation-delay: 120ms; } .hx-copy > :nth-child(4) { animation-delay: 180ms; } .hx-copy > :nth-child(5) { animation-delay: 240ms; }
  .hx-photo { animation: lp-photo 900ms var(--ease-out) both; }
  .hx-card--live { animation: lp-up 800ms 260ms var(--ease-out) both; }
  .hx-card--match { animation: lp-up 800ms 380ms var(--ease-out) both; }
  @supports (animation-timeline: view()) {
    .hx-photo img { animation: lp-parallax linear both; animation-timeline: view(); animation-range: exit -10% exit 100%; }
    .px-card { animation: lp-rise linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
    .gx-item, .plx-card { animation: lp-rise linear both; animation-timeline: view(); animation-range: entry 0% entry 35%; }
    .cx-profile { animation: lp-tilt linear both; animation-timeline: view(); animation-range: entry 0% cover 45%; }
  }
}
@keyframes lp-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes lp-photo { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes lp-parallax { to { transform: translateY(8%) scale(1.06); } }
@keyframes lp-rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes lp-tilt { from { opacity: 0; transform: translateY(40px) rotate(2deg); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   AUTH — split screen (login / register / forgot / reset)
   ========================================================================== */
html body.au { background: #fff !important; }
body.au .iosi-hearts { z-index: 0; }
.au-split { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(440px, 45%) minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }

.au-form-side { position: relative; display: flex; flex-direction: column; padding: 34px clamp(32px, 4.2vw, 72px) 26px; background: linear-gradient(180deg, rgba(251, 250, 255, 0.92) 0%, rgba(246, 243, 253, 0.92) 100%); }
:root[data-theme="dark"] .au-form-side { background: linear-gradient(180deg, rgba(14, 10, 28, 0.92), rgba(20, 15, 38, 0.92)); }
.au-head { display: flex; align-items: center; gap: 24px; animation: lp-fade 700ms var(--ease-out) both; }
.au-sep { width: 1px; height: 30px; background: var(--border-strong); }
.au-back { display: inline-flex; align-items: center; gap: 8px; font: 600 14.5px var(--font); color: var(--text-2) !important; transition: color var(--d2), gap var(--d2) var(--ease-spring); }
.au-back span { font-size: 18px; line-height: 1; }
.au-back:hover { color: var(--brand) !important; gap: 4px; }

.au-body { width: 100%; max-width: clamp(380px, 30vw, 470px); margin: auto 0; padding: 40px 0 30px; }
.au-body > * { animation: lp-fade 420ms var(--ease-out) both; }
.au-body > *:nth-child(2) { animation-delay: 30ms; } .au-body > *:nth-child(3) { animation-delay: 60ms; } .au-body > *:nth-child(4) { animation-delay: 90ms; } .au-body > *:nth-child(n+5) { animation-delay: 120ms; }
.au-pill { display: inline-block; padding: 7px 17px; border-radius: 999px; background: #ece4ff; color: #6d28d9; font: 800 11.5px/1 var(--font); letter-spacing: 0.13em; text-transform: uppercase; }
:root[data-theme="dark"] .au-pill { background: var(--brand-tint); color: var(--brand-text); }
.au-title { margin: 20px 0 8px; font-family: var(--font-display); font-weight: 800; font-size: clamp(32px, 3vw, 46px); line-height: 1.08; letter-spacing: -0.035em; color: var(--text); }
.au-sub { margin: 0 0 26px; font-size: clamp(16px, 1.2vw, 19px); color: var(--text-2); }
.au-label { display: block; margin: 18px 0 9px; font: 700 15px var(--font); color: var(--text); }
.au-field { position: relative; display: flex; align-items: center; gap: 12px; height: clamp(50px, 3.6vw, 56px); padding: 0 14px 0 16px; border-radius: 12px; background: #faf8ff; border: 1.5px solid #e2daf6; transition: border-color var(--d2), box-shadow var(--d2), background var(--d2); }
:root[data-theme="dark"] .au-field { background: var(--surface-2); border-color: var(--border-strong); }
.au-field:hover { border-color: #cfc1f3; }
.au-field:focus-within { background: #fff; border-color: var(--brand-500); box-shadow: 0 0 0 4px rgba(139, 61, 255, 0.14); }
:root[data-theme="dark"] .au-field:focus-within { background: var(--surface); }
.au-ico { flex-shrink: 0; color: #3d3856; transition: color var(--d2), transform var(--d2) var(--ease-spring); }
:root[data-theme="dark"] .au-ico { color: var(--text-2); }
.au-field:focus-within .au-ico { color: var(--brand); transform: scale(1.08); }
.au-at { width: 20px; text-align: center; font: 700 18px var(--font); }
html body .au-field input, html body .au-field input:focus, html body .au-field input:hover { flex: 1; min-width: 0; width: auto !important; height: 100% !important; min-height: 0 !important; padding: 0 !important; margin: 0 !important; border: 0 !important; border-radius: 0 !important; outline: 0 !important; box-shadow: none !important; background: transparent !important; font: 500 15px var(--font) !important; color: var(--text) !important; }
.au-field input::placeholder { color: #6f6a88; opacity: 1; }
.au-field input[type="date"] { color: var(--text); }
.au-field input:-webkit-autofill { -webkit-box-shadow: 0 0 0 40px #faf8ff inset !important; -webkit-text-fill-color: var(--text); }
.au-eye { display: grid; place-items: center; width: 34px; height: 34px; margin-right: -6px; padding: 0; border: 0; border-radius: 10px; background: transparent; color: #3d3856; cursor: pointer; transition: color var(--d2), background var(--d2); }
.au-eye:hover { background: var(--brand-tint); color: var(--brand); }
.au-eye.is-on { color: var(--brand); }
.au-row-end { margin-top: 10px; text-align: right; }
.au-link { font: 600 14px var(--font); color: var(--brand) !important; }
.au-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.au-submit { height: clamp(52px, 3.7vw, 58px) !important; margin-top: 28px; border-radius: 12px !important; font-size: 17px !important; background: linear-gradient(100deg, #7c3aed 0%, #8b3dff 60%, #9d4dff 100%) !important; }
.au-switch { margin: 24px 0 0; text-align: center; font-size: 15px; color: var(--text-2); }
.au-switch a { font-weight: 700; color: var(--brand) !important; }
.au-switch a:hover { text-decoration: underline; text-underline-offset: 3px; }
.au-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 14px; }
.au-grid > div { min-width: 0; }
.au-alert { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; font: 600 14px/1.45 var(--font); border: 1px solid transparent; }
.au-alert.is-error { background: var(--danger-tint); border-color: var(--danger-border); color: var(--danger-text); animation: au-shake 500ms var(--ease-out) both; }
.au-alert.is-ok { background: var(--success-tint); border-color: var(--success-border); color: var(--success-text); }
.au-alert.is-ref { background: var(--brand-tint); border-color: var(--brand-border); color: var(--brand-text); }
.au-alert.is-ref img { flex-shrink: 0; animation: iosi-3d 6s var(--ease-io) infinite; }

.au-foot { display: flex; align-items: center; gap: 16px; font: 500 13px var(--font); }
.au-foot > span { width: 1px; height: 16px; background: var(--border-strong); }
.au-foot a { color: var(--text-2) !important; }
.au-foot a:hover { color: var(--brand) !important; }
.au-lang { margin-left: auto; }
.au-lang .lang-btn { background: var(--surface) !important; }

/* photo side */
.au-photo { position: relative; overflow: hidden; background: #2b0f4c; isolation: isolate; }
.au-photo-main { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 42% 30%; animation: au-photo-in 1.4s var(--ease-out) both, lp-kenburns 26s var(--ease-io) 1.4s infinite alternate; }
.au-photo::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(80% 50% at 100% 100%, rgba(124, 58, 237, 0.55), transparent 70%), linear-gradient(180deg, rgba(30, 8, 60, 0) 46%, rgba(40, 10, 82, 0.5) 72%, rgba(52, 12, 102, 0.86) 100%); }
.au-pip { position: absolute; z-index: 3; top: 21%; right: 3.2%; width: 148px; aspect-ratio: 148 / 136; border-radius: 16px; overflow: hidden; border: 3px solid rgba(255, 255, 255, 0.95); box-shadow: 0 24px 50px -16px rgba(20, 5, 50, 0.7); animation: lp-card-in 700ms 220ms var(--ease-spring) both, iosi-float 6s var(--ease-io) 1.5s infinite; }
.au-pip img { width: 100%; height: 100%; object-fit: cover; display: block; }
.au-pip::after { content: ""; position: absolute; top: 9px; right: 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--online); box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.3); animation: iosi-blink 1.6s ease-in-out infinite; }
.au-swoosh { position: absolute; z-index: 2; left: 8%; bottom: 1%; width: 84%; height: auto; pointer-events: none; overflow: visible; filter: drop-shadow(0 0 6px rgba(216, 180, 254, 0.95)) drop-shadow(0 0 18px rgba(168, 85, 247, 0.8)); }
.au-swoosh path { stroke-dasharray: 900; stroke-dashoffset: 900; animation: iosi-draw 2.4s var(--ease-out) 0.9s forwards; }
.au-slogan { position: absolute; z-index: 3; left: 0; right: 0; bottom: 8.5%; text-align: center; color: #fff; padding: 0 24px; }
.au-slogan h2 { margin: 0 0 6px; font-family: var(--font-display); font-weight: 800; font-size: clamp(32px, 3.3vw, 46px); letter-spacing: -0.035em; line-height: 1.05; color: #fff !important; text-shadow: 0 6px 30px rgba(20, 5, 50, 0.45); animation: lp-fade 900ms 500ms var(--ease-out) both; }
.au-slogan h2 .iosi-dot { color: #e43fb3; }
.au-slogan p { margin: 0; font: 500 21px var(--font); color: rgba(255, 255, 255, 0.92); animation: lp-fade 900ms 650ms var(--ease-out) both; }

@keyframes au-photo-in { from { opacity: 0; transform: scale(1.12); } to { opacity: 1; transform: scale(1.06); } }
@keyframes au-shake { 0%, 100% { transform: none; } 20% { transform: translateX(-6px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }

/* auth: tablet + phone — app-like: photo banner on top, sheet below */
@media (max-width: 980px) {
  .au-split { grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); }
  .au-form-side { padding: 28px 32px 22px; }
}
@media (max-width: 760px) {
  html body.au { background: var(--bg) !important; }
  .au-split { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .au-photo { order: -1; height: 34vh; min-height: 230px; max-height: 300px; border-radius: 0 0 30px 30px; box-shadow: 0 20px 40px -24px rgba(60, 20, 120, 0.6); }
  .au-photo-main { object-position: 42% 26%; }
  .au-pip { top: auto; bottom: 22px; right: 16px; width: 84px; border-width: 2px; border-radius: 12px; }
  .au-slogan { bottom: 18px; text-align: left; padding: 0 116px 0 20px; }
  .au-slogan h2 { font-size: 27px; }
  .au-slogan p { font-size: 15px; }
  .au-swoosh { left: 0; width: 100%; bottom: 0; }
  .au-form-side { margin-top: -18px; padding: 22px 20px calc(18px + env(safe-area-inset-bottom)); background: transparent; }
  .au-head { gap: 16px; }
  .au-head .iosi-logo-mark { width: 34px; height: 34px; } .au-head .iosi-logo-word { font-size: 22px; }
  .au-body { max-width: none; padding: 26px 0 26px; margin: 0; }
  .au-title { font-size: 30px; margin-top: 16px; }
  .au-sub { font-size: 16px; margin-bottom: 18px; }
  .au-field { height: 52px; background: #fff; }
  html body .au-field input { font-size: 16px !important; } /* prevents iOS zoom */
  .au-grid { grid-template-columns: 1fr; }
  .au-foot { justify-content: center; flex-wrap: wrap; }
  .au-lang { margin-left: 0; }
}

.au-after { position: relative; z-index: 1; background: var(--bg); }
.au-after .iosi-foot { margin-top: 0; }
.au-head { position: relative; }
.au-burger { display: grid; margin-left: auto; }
.au-hint { margin: 8px 2px 0; font-size: 12.5px; line-height: 1.45; color: var(--text-3); }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .lp-opt { display: none !important; }
  .lp-dd-opt { display: flex !important; }
  .px-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .px-card figure { aspect-ratio: 16 / 10; }
}
@media (max-width: 1024px) {
  .lp-links, .lp-sep, .lp-login { display: none; }
  .lp-burger { display: grid; }
  .lp-nav-in { grid-template-columns: auto 1fr; }
  .lp-actions { justify-content: flex-end; }
  .hx-in, .cx, .sfx-in { grid-template-columns: 1fr; gap: 36px; }
  .gx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plx-grid { grid-template-columns: 1fr; max-width: 520px; }
}
@media (max-width: 900px) {
  .lp-wrap { padding: 0 18px; }
  .lp-nav-in { height: 58px; gap: 10px; }
  .lp-reg { height: 36px !important; padding: 0 12px !important; font-size: 13.5px !important; }
  .hx { padding: 24px 0 48px; }
  .hx-title { font-size: clamp(38px, 11vw, 52px); margin-bottom: 14px; }
  .hx-lead { font-size: 16.5px; margin-bottom: 22px; }
  .hx-ctas .iosi-btn { flex: 1 1 140px; }
  .hx-facts { gap: 6px 14px; font-size: 13.5px; }
  .hx-visual { padding: 0 0 30px 0; }
  .hx-card--live { width: 128px; left: 10px; }
  .hx-card--match { right: 10px; top: auto; bottom: 0; padding: 9px 12px 9px 9px; }
  .hx-avas img { width: 30px; height: 30px; }
  .px { padding: 48px 18px 56px; }
  .sx-head { margin-bottom: 22px; }
  .sx-head p { font-size: 15.5px; }
  .px-grid { gap: 12px; }
  .px-body { padding: 14px; }
  .px-body h3 { font-size: 17px; }
  .px-body p { font-size: 13.5px; }
  .gx { padding: 56px 0; }
  .gx-item { padding: 14px; }
  .gx-3d { width: 56px; height: 56px; margin-bottom: 6px; }
  .cx { padding: 56px 18px; gap: 32px; }
  .plx { padding: 8px 18px 56px; }
  .sfx { padding: 52px 0; }
  .sfx-list { grid-template-columns: 1fr; gap: 20px; }
  .fqx { padding: 52px 18px 40px; }
  .fqx summary { font-size: 15.5px; padding: 16px 2px; }
  .ctx { padding: 0 18px 48px; }
  .ctx-in { flex-direction: column; align-items: flex-start; padding: 28px 22px; }
  .ctx-btns { width: 100%; }
  .ctx-btns .iosi-btn { flex: 1; }
  .au-after .iosi-foot { padding-left: 18px; padding-right: 18px; }
  .lp-nav { background: #fff; }
}
@media (max-width: 560px) {
  .px-grid { grid-template-columns: 1fr; }
  .px-card { flex-direction: row; }
  .px-card figure { width: 38%; flex: none; aspect-ratio: auto; }
  .lp-lang .lang-code-text, .lp-lang .lang-btn svg { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .px-card, .gx-item, .plx-card, .hx-copy > *, .hx-photo, .hx-card { animation: none !important; transition: none !important; }
}
