/* =====================================================================
   XOOMAL — style.css
   Identity: "Dusk messaging" — deep violet base, electric violet→pink
   brand gradient, mint presence. Native two-pane app that collapses to
   a single pane on mobile.
   ===================================================================== */

:root {
  /* Palette */
  --bg:        #0E0B1A;   /* near-black violet   */
  --bg-2:      #14101F;   /* app backdrop        */
  --surface:   #191428;   /* panels              */
  --surface-2: #211A34;   /* raised / hover      */
  --line:      #2C2440;   /* hairlines           */
  --text:      #ECEAF5;   /* primary text        */
  --muted:     #9A93B8;   /* secondary text      */
  --muted-2:   #6E668C;   /* tertiary            */

  --violet:    #7C5CFF;   /* brand primary       */
  --pink:      #FF5CA8;   /* brand secondary     */
  --mint:      #34E5A0;   /* presence / online   */
  --amber:     #FFC24B;   /* warnings            */
  --danger:    #FF6B6B;   /* destructive         */

  --brand-grad: linear-gradient(135deg, var(--violet) 0%, var(--pink) 100%);

  /* Type */
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  /* Shape & depth */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-pill: 999px;
  --shadow: 0 18px 50px -18px rgba(0,0,0,.7);
  --shadow-soft: 0 6px 20px -10px rgba(0,0,0,.6);

  --sidebar-w: 336px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

/* -------- reset-ish -------- */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(1100px 600px at 15% -10%, rgba(124,92,255,.14), transparent 60%),
    radial-gradient(900px 500px at 110% 10%, rgba(255,92,168,.12), transparent 55%),
    var(--bg-2);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
button { font-family: inherit; }
a { color: var(--violet); text-decoration: none; }
a:hover { text-decoration: underline; }

.visually-hidden, .skip-link:not(:focus) {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 200;
  background: var(--violet); color: #fff; padding: 10px 14px; border-radius: var(--r-sm);
  font-weight: 600;
}
.muted { color: var(--muted); }

/* focus visibility everywhere */
:focus-visible {
  outline: 3px solid var(--violet);
  outline-offset: 2px;
  border-radius: 6px;
}

/* =====================================================================
   Brand mark
   ===================================================================== */
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__mark {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 11px;
  background: var(--brand-grad);
  font-family: var(--font-display); font-weight: 700; color: #fff;
  box-shadow: 0 6px 18px -6px rgba(124,92,255,.8);
}
.brand__mark--xl { width: 84px; height: 84px; border-radius: 26px; font-size: 44px; }
.brand__word {
  font-family: var(--font-display); font-weight: 700; letter-spacing: .5px;
  font-size: 19px;
}
.brand--lg { justify-content: center; margin-bottom: 6px; }
.brand--lg .brand__mark { width: 60px; height: 60px; border-radius: 19px; font-size: 30px; }

/* =====================================================================
   Login gate
   ===================================================================== */
.gate {
  display: flex; justify-content: center; align-items: flex-start;
  width: 100%;
}
.gate__card {
  width: min(420px, 100%);
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 140%);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  padding: 30px 26px 22px;
  text-align: center;
}
.gate__logo { display: block; margin: 0 auto 10px; border-radius: 18px; box-shadow: 0 8px 22px -8px rgba(124,92,255,.8); }
.gate__title {
  font-family: var(--font-display); font-weight: 700; font-size: 30px;
  margin: 8px 0 4px;
  background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.gate__sub { color: var(--muted); margin: 0 0 18px; font-size: 14.5px; line-height: 1.5; }

.field { text-align: left; margin-bottom: 14px; }
.field > label {
  display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--text);
}
.req { color: var(--pink); }
.opt { color: var(--muted-2); font-weight: 500; font-size: 11px; }

.field input, .field select, .composer textarea, .sidebar__search input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: var(--r-sm);
  padding: 12px 13px;
  font-size: 15px;
  transition: border-color .15s, box-shadow .15s;
}
.field input::placeholder, .composer textarea::placeholder { color: var(--muted-2); }
.field input:focus, .field select:focus {
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(124,92,255,.28);
  outline: none;
}
.field select { appearance: none; background-image:
  linear-gradient(45deg, transparent 50%, var(--muted) 50%),
  linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: right 15px center, right 10px center;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
}
.field__err { color: var(--pink); font-size: 12.5px; margin: 6px 0 0; min-height: 1em; }
.field input[aria-invalid="true"] { border-color: var(--pink); }

.gate__loc {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--muted); margin: 6px 0 16px;
}
.dot { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto; }
.dot--pending { background: var(--amber); animation: pulse 1.3s infinite; }
.dot--ok { background: var(--mint); }
.dot--off { background: var(--muted-2); }
@keyframes pulse { 0%,100% { opacity: .35; } 50% { opacity: 1; } }

.btn-primary {
  width: 100%; border: 0; cursor: pointer;
  background: var(--brand-grad); color: #fff; font-weight: 600; font-size: 15.5px;
  padding: 13px; border-radius: var(--r-sm);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  box-shadow: 0 10px 26px -12px rgba(124,92,255,.9);
  transition: transform .08s, filter .15s;
}
.btn-primary:hover { filter: brightness(1.07); }
.btn-primary:active { transform: translateY(1px); }
.btn-primary[disabled] { opacity: .6; cursor: default; }

.spinner {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.4); border-top-color: #fff;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.gate__privacy { font-size: 11.5px; color: var(--muted-2); line-height: 1.5; margin: 16px 0 0; }

/* =====================================================================
   App shell (two-pane)
   ===================================================================== */
.app {
  height: 100dvh; display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
}

/* ---------------- Sidebar ---------------- */
.sidebar {
  display: flex; flex-direction: column; min-height: 0;
  background: var(--surface);
  border-right: 1px solid var(--line);
}
.sidebar__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px; border-bottom: 1px solid var(--line);
}
.icon-btn {
  display: grid; place-items: center; width: 38px; height: 38px;
  background: transparent; border: 1px solid transparent; border-radius: var(--r-sm);
  color: var(--muted); cursor: pointer; transition: background .15s, color .15s;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }

.me {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; border-bottom: 1px solid var(--line);
}
.me__meta { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.me__name { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me__loc { font-size: 12px; color: var(--muted); }

.avatar {
  width: 44px; height: 44px; border-radius: 14px; flex: 0 0 auto;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; color: #fff; font-size: 18px;
  background: hsl(265 70% 55%);
}

.status { width: 11px; height: 11px; border-radius: 50%; flex: 0 0 auto; }
.status--online { background: var(--mint); box-shadow: 0 0 0 3px rgba(52,229,160,.2); }
.status--offline { background: var(--muted-2); }

.sidebar__search { padding: 12px 14px 6px; }
.sidebar__search input { padding: 10px 12px; font-size: 14px; }

.sidebar__count { padding: 4px 18px 8px; font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: .3px; text-transform: uppercase; }

.user-list { list-style: none; margin: 0; padding: 4px 8px 12px; overflow-y: auto; flex: 1; min-height: 0; }
.user-list:focus-visible { outline-offset: -3px; }

.user {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 10px; border-radius: var(--r-md); cursor: pointer;
  transition: background .12s; position: relative;
}
.user:hover, .user:focus-visible { background: var(--surface-2); }
.user[aria-selected="true"] { background: var(--surface-2); box-shadow: inset 3px 0 0 0 var(--violet); }
.user__meta { flex: 1; min-width: 0; }
.user__name { font-weight: 600; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user__sub { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user .status { margin-left: auto; }
.badge {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--r-pill);
  background: var(--brand-grad); color: #fff; font-size: 11px; font-weight: 700;
  display: grid; place-items: center; margin-left: auto;
}

.empty { padding: 40px 24px; text-align: center; color: var(--muted); }
.empty p { margin: 4px 0; }

/* ---------------- Chat pane ---------------- */
.chat { display: flex; flex-direction: column; min-height: 0; background: var(--bg-2); position: relative; }

.chat__welcome {
  margin: auto; text-align: center; padding: 40px; max-width: 420px;
}
.chat__welcome-art { margin-bottom: 20px; display: flex; justify-content: center; opacity: .9; }
.chat__welcome h2 { font-family: var(--font-display); font-size: 22px; margin: 0 0 8px; }

.chat__active { display: flex; flex-direction: column; height: 100%; min-height: 0; }

.chat__head {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-bottom: 1px solid var(--line);
  background: var(--surface); backdrop-filter: blur(6px);
}
.chat__back { display: none; }
.chat__peer { display: flex; flex-direction: column; min-width: 0; }
.chat__peer-name { font-weight: 600; font-size: 16px; }
.chat__peer-status { font-size: 12.5px; color: var(--muted); }
.chat__peer-status[data-online="1"] { color: var(--mint); }

.messages {
  flex: 1; min-height: 0; overflow-y: auto;
  padding: 20px 18px 8px;
  display: flex; flex-direction: column; gap: 8px;
  scroll-behavior: smooth;
}

/* message bubbles */
.bubble {
  max-width: min(74%, 520px);
  padding: 7px 12px; border-radius: 16px;
  font-size: 14.7px; line-height: 1.4; word-wrap: break-word; white-space: pre-wrap;
  position: relative; animation: rise .18s ease-out;
}
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.bubble--in {
  align-self: flex-start; background: var(--surface-2); color: var(--text);
  border-bottom-left-radius: 5px;
}
.bubble--out {
  align-self: flex-end; color: #fff;
  background: var(--brand-grad);
  border-bottom-right-radius: 5px;
}
.bubble__meta {
  display: inline-block; font-size: 10px; margin-left: 8px;
  opacity: .72; transform: translateY(2px); white-space: nowrap;
}
.bubble--pending { opacity: .65; }
.bubble__tick { margin-left: 3px; }

/* ---------------- Rich Media & Images ---------------- */
.chat-link { color: inherit; text-decoration: underline; word-break: break-all; font-weight: 500; }
.chat-link:hover { opacity: 0.85; }

/* Responsive Thumbnail Wrappers */
.preview-img-wrap {
  position: relative; display: block; 
  margin-top: 6px; margin-bottom: 2px; border-radius: 12px; 
  overflow: hidden; max-width: 100%; width: 280px; 
  border: 1px solid rgba(255,255,255,0.12); cursor: zoom-in;
  background: rgba(0,0,0,0.15);
}
.preview-img-wrap::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: rgba(0,0,0,0); transition: background 0.2s;
}
.preview-img-wrap:hover::after { background: rgba(0,0,0,0.15); }

/* Standardized Thumbnail Image */
.preview-img {
  display: block; width: 100%; height: auto; max-height: 280px;
  object-fit: cover; border-radius: 11px;
}

/* Expiry Badge (Glass-morphism) */
.ephemeral-badge {
  position: absolute; top: 8px; left: 8px; z-index: 2;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(4px);
  color: #fff; font-size: 11px; font-weight: 600;
  padding: 5px 10px; border-radius: var(--r-pill); pointer-events: none;
  display: flex; align-items: center; gap: 5px; 
  border: 1px solid rgba(255,255,255,0.15); box-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

/* Lightbox Full Screen Overlay */
.lightbox {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(6,4,14,0.95); backdrop-filter: blur(10px);
  display: flex; justify-content: center; align-items: center;
  padding: 20px; opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease;
}
.lightbox.active { opacity: 1; pointer-events: auto; }
.lightbox__img {
  max-width: 100%; max-height: 100%; border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.6);
  transform: scale(0.95); transition: transform 0.2s ease;
}
.lightbox.active .lightbox__img { transform: scale(1); }
.lightbox__close {
  position: absolute; top: 20px; right: 20px;
  background: rgba(255,255,255,0.1); border: none; color: #fff;
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; transition: background 0.15s;
}
.lightbox__close:hover { background: rgba(255,255,255,0.25); }

/* FileXL & Rich Links */
.link-card {
  display: flex; align-items: center; gap: 12px;
  margin-top: 8px; margin-bottom: 2px; padding: 10px 14px;
  background: rgba(0, 0, 0, 0.15); border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px; text-decoration: none !important; transition: all 0.2s ease;
  color: inherit;
}
.link-card:hover { background: rgba(0, 0, 0, 0.25); transform: translateY(-1px); }
.link-card__icon {
  display: grid; place-items: center; width: 40px; height: 40px; 
  border-radius: 10px; background: var(--brand-grad); color: #fff; 
  font-size: 18px; flex: none; box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.link-card__meta { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.link-card__title { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: inherit; }
.link-card__sub { font-size: 12px; opacity: 0.75; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.link-card__action { display: grid; place-items: center; color: inherit; opacity: 0.6; padding-left: 8px; }

.bubble--in .link-card { background: var(--surface); border-color: var(--line); }
.bubble--in .link-card:hover { background: var(--bg); }
/* ---------------------------------------------------------------- */

.day-sep { align-self: center; font-size: 11px; color: var(--muted-2); margin: 8px 0; }

/* typing indicator */
.typing-row { display: flex; align-items: center; gap: 8px; padding: 2px 20px 6px; color: var(--muted); font-size: 12.5px; }
.typing { display: inline-flex; gap: 3px; }
.typing span {
  width: 6px; height: 6px; border-radius: 50%; background: var(--muted);
  animation: blink 1.3s infinite;
}
.typing span:nth-child(2) { animation-delay: .2s; }
.typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%,60%,100% { opacity: .3; } 30% { opacity: 1; } }

/* quick replies */
.quick { display: flex; gap: 8px; padding: 8px 16px 4px; overflow-x: auto; scrollbar-width: none; }
.quick::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; cursor: pointer;
  background: var(--surface-2); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--r-pill);
  padding: 8px 14px; font-size: 13.5px; font-weight: 500; white-space: nowrap;
  transition: background .12s, border-color .12s;
}
.chip:hover { background: var(--surface); border-color: var(--violet); }

/* composer */
.composer {
  display: flex; align-items: flex-end; gap: 10px;
  padding: 10px 14px calc(12px + var(--safe-b));
  border-top: 1px solid var(--line); background: var(--surface);
}

.attach-btn {
  flex: 0 0 auto; width: 44px; height: 44px; padding: 0; margin-bottom: 1px;
  background: transparent; border: 1px solid transparent; border-radius: 50%;
  color: var(--muted); cursor: pointer; transition: background .15s, color .15s;
  display: grid; place-items: center;
}
.attach-btn:hover { background: var(--surface-2); color: var(--violet); }

.composer textarea {
  resize: none; max-height: 120px; line-height: 1.4; padding: 11px 14px;
  border-radius: var(--r-lg); flex: 1;
}
.send-btn {
  flex: 0 0 auto; width: 46px; height: 46px; border: 0; cursor: pointer;
  border-radius: 14px; background: var(--brand-grad); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 8px 20px -10px rgba(124,92,255,.9);
  transition: transform .08s, filter .15s;
}
.send-btn:hover { filter: brightness(1.08); }
.send-btn:active { transform: translateY(1px); }
.send-btn[disabled] { opacity: .5; cursor: default; }

/* =====================================================================
   Toasts
   ===================================================================== */
.toasts {
  position: fixed; z-index: 300; left: 50%; bottom: calc(18px + var(--safe-b));
  transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; align-items: center;
  pointer-events: none; width: min(92vw, 420px);
}
.toast {
  pointer-events: auto; width: 100%;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 12px 14px; box-shadow: var(--shadow-soft);
  display: flex; gap: 10px; align-items: center; font-size: 14px;
  animation: rise .2s ease-out;
}
.toast--err { border-color: rgba(255,107,107,.5); }
.toast strong { font-weight: 600; }
.toast__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--violet); flex: 0 0 auto; }

/* =====================================================================
   Modals
   ===================================================================== */
.modal {
  position: fixed; inset: 0; z-index: 250; display: grid; place-items: center; padding: 20px;
  background: rgba(6,4,14,.75); backdrop-filter: blur(8px);
}
.modal__card {
  width: min(400px, 100%); background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow);
}
.modal__card h2 { font-family: var(--font-display); font-size: 20px; margin: 0 0 12px; }
.modal__actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }
.privacy-list { padding-left: 18px; color: var(--muted); line-height: 1.6; font-size: 14px; }
.privacy-list strong { color: var(--text); }
.check { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 14px; color: var(--muted); }
.check input { width: 16px; height: 16px; accent-color: var(--violet); }

.btn-ghost, .btn-danger {
  border: 1px solid var(--line); background: var(--surface-2); color: var(--text);
  padding: 11px 18px; border-radius: var(--r-sm); font-weight: 600; cursor: pointer; font-size: 14.5px;
}
.btn-ghost:hover { background: var(--surface); }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #1a0808; }
.btn-danger:hover { filter: brightness(1.05); }

/* =====================================================================
   Responsive — collapse to single pane on mobile
   ===================================================================== */
@media (max-width: 760px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { border-right: 0; }
  .chat { position: fixed; inset: 0; z-index: 20; transform: translateX(100%); transition: transform .22s ease; }
  body.in-chat .chat { transform: translateX(0); }
  body.in-chat .sidebar { visibility: hidden; }
  .chat__back { display: grid; }
  .bubble { max-width: 82%; }
}

@media (min-width: 1400px) {
  .messages { padding-left: max(18px, 6vw); padding-right: max(18px, 6vw); }
}

@media (prefers-contrast: more) {
  :root { --muted: #C4BEDD; --line: #4A3F68; --surface-2: #2A2140; }
  .bubble--in { border: 1px solid var(--line); }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

.brand__logo { display: block; border-radius: 10px; }
.brand--lg { justify-content: center; margin-bottom: 6px; }

.gate__agree {
  display: flex; gap: 9px; align-items: flex-start; text-align: left;
  font-size: 12.5px; color: var(--muted); line-height: 1.45; margin: 4px 0 2px;
}
.gate__agree input { margin-top: 2px; width: 16px; height: 16px; accent-color: var(--violet); flex: none; }
.gate__agree a { color: var(--violet); }
.field__err { color: var(--danger); font-size: 12px; margin: 4px 0 0; min-height: 0; }

.chat__menu { position: relative; margin-left: auto; }
.menu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 30;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm);
  box-shadow: var(--shadow); min-width: 168px; overflow: hidden; padding: 5px;
}
.menu button {
  display: block; width: 100%; text-align: left; background: none; border: 0;
  color: var(--text); padding: 10px 12px; border-radius: 8px; cursor: pointer; font-size: 14px;
}
.menu button:hover { background: var(--surface-2); }
#report-btn { color: var(--danger); }

.user--blocked { opacity: .55; }
.user__flag { font-size: 11px; color: var(--danger); font-weight: 600; margin-left: auto; }

.landing {
  position: fixed; inset: 0; z-index: 40;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding-bottom: 40px;
}
.lnav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 16px clamp(16px, 5vw, 56px);
  max-width: 1180px; margin: 0 auto;
}
.lnav .brand { color: var(--text); }
.lnav__links { display: flex; gap: 22px; flex-wrap: wrap; }
.lnav__links a { color: var(--muted); font-size: 14.5px; font-weight: 500; }
.lnav__links a:hover { color: var(--text); text-decoration: none; }

.hero {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 5vw, 64px);
  align-items: center; max-width: 1180px; margin: 0 auto;
  padding: clamp(20px, 5vw, 60px) clamp(16px, 5vw, 56px) 40px;
}
.hero__title {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -.5px;
  font-size: clamp(34px, 5.4vw, 60px); line-height: 1.04; margin: 0 0 18px;
}
.grad {
  background: var(--brand-grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero__lead { font-size: clamp(15px, 1.8vw, 18px); color: var(--muted); line-height: 1.6; margin: 0 0 20px; max-width: 34em; }
.hero__lead strong { color: var(--text); }
.hero__points { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.hero__points li { color: var(--text); font-size: 14.8px; }
.hero__points span { color: var(--pink); margin-right: 8px; }

.content { max-width: 980px; margin: 0 auto; padding: 10px clamp(16px, 5vw, 56px) 0; }
.sec { padding: 34px 0; border-top: 1px solid var(--line); }
.sec h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(22px, 3vw, 30px); margin: 0 0 14px; }
.sec h3 { font-family: var(--font-display); font-weight: 600; font-size: 17px; margin: 0 0 8px; }
.sec p { color: var(--muted); line-height: 1.7; margin: 0 0 12px; max-width: 72ch; }
.sec p strong, .sec li strong { color: var(--text); }
.sec a { color: var(--violet); font-weight: 500; }

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 6px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px; }
.card p { margin: 0; font-size: 14.3px; }

.steps { color: var(--muted); line-height: 1.8; padding-left: 20px; margin: 0; }
.steps li { margin-bottom: 6px; }
.rules-list { color: var(--muted); line-height: 1.7; padding-left: 20px; margin: 0 0 12px; }
.rules-list li { margin-bottom: 8px; }

.sec details {
  border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 12px 16px; margin-bottom: 10px; background: var(--surface);
}
.sec details summary { cursor: pointer; font-weight: 600; color: var(--text); }
.sec details p { margin: 10px 0 0; }

.lfoot {
  max-width: 1180px; margin: 20px auto 0; padding: 26px clamp(16px, 5vw, 56px);
  border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center;
}
.lfoot__brand { display: flex; align-items: center; gap: 9px; font-family: var(--font-display); font-weight: 700; }
.lfoot__links { display: flex; gap: 20px; flex-wrap: wrap; }
.lfoot__links a { color: var(--muted); font-size: 14px; }
.lfoot__legal { color: var(--muted-2); font-size: 12.5px; width: 100%; margin: 6px 0 0; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .gate { order: -1; }
  .grid3 { grid-template-columns: 1fr; }
  .lnav__links { display: none; }
}

.article { max-width: 820px; margin: 0 auto; padding: 8px clamp(16px, 5vw, 40px) 60px; }
.article h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 4vw, 40px); line-height: 1.1; margin: 18px 0 14px; }
.article h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(20px, 2.6vw, 26px); margin: 30px 0 10px; }
.article p, .article li { color: var(--muted); line-height: 1.75; }
.article p { margin: 0 0 14px; max-width: 74ch; }
.article ul { padding-left: 20px; margin: 0 0 16px; }
.article li { margin-bottom: 7px; }
.article strong { color: var(--text); }
.article .cta {
  display: inline-block; margin: 10px 0 4px; padding: 13px 22px; border-radius: var(--r-pill);
  background: var(--brand-grad); color: #fff; font-weight: 600; box-shadow: 0 12px 30px -12px rgba(124,92,255,.9);
}
.article .cta:hover { text-decoration: none; filter: brightness(1.05); }
.article .lead { color: var(--text); font-size: 18px; }
.compare { width: 100%; border-collapse: collapse; margin: 8px 0 20px; font-size: 14.5px; }
.compare th, .compare td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; color: var(--muted); }
.compare th { background: var(--surface); color: var(--text); font-family: var(--font-display); }

.card h3 { color: #ffffff !important; font-weight: 600; margin-bottom: 0.5rem; }
.card p { color: #e2e8f0 !important; line-height: 1.5; }