/* ==========================================================================
   Nomeragram Design System — "Night Drive" v2
   Bespoke system: self-hosted variable fonts, grain, Ignition gradient,
   Plate Chips, story rings, phone frames, scroll-reveal, marquee.
   ========================================================================== */

/* ---------- Self-hosted variable fonts ---------- */
@font-face {
  font-family: "Unbounded";
  src: url("/fonts/unbounded-var.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
/* Hebrew glyphs (Unbounded/Inter have none) — unicode-range scopes Heebo to Hebrew only */
@font-face {
  font-family: "Heebo";
  src: url("/fonts/heebo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0590-05FF, U+FB1D-FB4F;
}

:root {
  /* Brand gradient — "Ignition" */
  --violet: #7c3aed;
  --rose: #f43f5e;
  --amber: #fb923c;
  --ignition: linear-gradient(120deg, var(--violet), var(--rose) 55%, var(--amber));
  --ignition-soft: linear-gradient(120deg, rgba(124,58,237,.16), rgba(244,63,94,.16) 55%, rgba(251,146,60,.16));

  /* Surfaces */
  --ink: #0b0b14;
  --ink-2: #12121f;
  --ink-3: #1a1a2c;
  --ink-4: #232338;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --glass: rgba(255, 255, 255, 0.05);

  /* Text */
  --txt: #f4f4fa;
  --txt-2: #b8b8cc;
  --txt-3: #78788f;

  /* Type */
  --display: "Unbounded", "Heebo", Verdana, sans-serif;
  --body: "Inter", "Heebo", -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "SF Mono", "Cascadia Mono", Consolas, monospace;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --glow-rose: 0 8px 40px rgba(244, 63, 94, 0.35);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  background: var(--ink);
  color: var(--txt);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Film grain over everything — the analog signature */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 999; pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--rose); color: #fff; }

/* ---------- Typography ---------- */
h1, h2, h3 { font-family: var(--display); line-height: 1.12; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 6.5vw, 4.6rem); font-weight: 900; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.7rem); font-weight: 800; }
h3 { font-size: 1.1rem; font-weight: 700; }

.grad-text {
  background: var(--ignition);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: sheen 6s ease-in-out infinite;
}
@keyframes sheen {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.kicker {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--display);
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--amber);
}
.kicker::before {
  content: ""; width: 26px; height: 2px; border-radius: 2px;
  background: var(--ignition);
}

.lead { font-size: 1.14rem; color: var(--txt-2); max-width: 42rem; }

/* ---------- Layout ---------- */
.wrap { width: min(1140px, 92vw); margin-inline: auto; }
section { padding: clamp(4rem, 9vw, 7.5rem) 0; position: relative; }

/* ---------- Scroll reveal ---------- */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.rv.in { opacity: 1; transform: none; }
.rv.d1 { transition-delay: .08s; } .rv.d2 { transition-delay: .16s; } .rv.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  .grad-text, .road, .ticker-track, .orb, .float { animation: none !important; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font: 600 1rem var(--body);
  padding: 0.85rem 1.7rem;
  border-radius: 999px; border: 0; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s;
  position: relative; overflow: hidden;
}
.btn-primary { background: var(--ignition); color: #fff; box-shadow: var(--glow-rose); }
.btn-primary::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.35) 50%, transparent 60%);
  transform: translateX(-120%);
  transition: transform .6s ease;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 44px rgba(244,63,94,.5); }
.btn-primary:hover::after { transform: translateX(120%); }
.btn-ghost { background: var(--glass); color: var(--txt); border: 1px solid var(--line-2); }
.btn-ghost:hover { background: rgba(255,255,255,.1); }

/* ---------- Signature: the Plate Chip ---------- */
.plate {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--mono); font-weight: 700;
  font-size: 1.02rem; letter-spacing: 0.14em;
  color: var(--txt);
  background: var(--ink-3);
  border-radius: var(--r-sm);
  padding: 0.35rem 0.9rem;
  position: relative;
  white-space: nowrap;
}
.plate::before {
  content: ""; position: absolute; inset: -2px; border-radius: inherit;
  padding: 2px; background: var(--ignition);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}
.plate .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }
.plate.lg { font-size: 1.5rem; padding: 0.55rem 1.3rem; }
.plate.sm { font-size: 0.68rem; padding: 0.08rem 0.5rem; letter-spacing: 0.1em; }

/* Israeli plate variant — authentic yellow with the blue IL band */
.plate.il {
  background: linear-gradient(180deg, #ffd91d, #f5c400);
  color: #16161c;
  border: 1.5px solid #2c2c3a;
  padding-left: 2rem;
  text-shadow: none;
}
.plate.il::before {
  content: "IL";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 1.35rem; display: grid; place-items: center;
  background: #0038b8; color: #fff;
  font: 800 0.55em var(--body); letter-spacing: 0;
  border-radius: 6px 0 0 6px;
  padding: 0;
  -webkit-mask: none; mask: none;
}
.plate.il .dot { display: none; }
.plate.il.sm { padding-left: 1.6rem; }
.plate.il.sm::before { width: 1.1rem; }
.plate.il.lg { padding-left: 2.6rem; border-radius: 12px; }
.plate.il.lg::before { width: 1.9rem; border-radius: 10px 0 0 10px; }

/* ---------- Cards ---------- */
.card {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.8rem;
}
.card.glass { background: var(--glass); backdrop-filter: blur(14px); }
.card.hover-lift { transition: transform .25s ease, border-color .25s, box-shadow .25s; }
.card.hover-lift:hover {
  transform: translateY(-5px);
  border-color: rgba(244,63,94,.35);
  box-shadow: 0 24px 60px rgba(0,0,0,.5), 0 0 0 1px rgba(244,63,94,.15);
}

/* ---------- Avatars & story rings ---------- */
.avatar {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  font: 700 1rem var(--display);
  color: #fff; flex: none;
}
.avatar.coral  { background: linear-gradient(135deg, #f43f5e, #fb923c); }
.avatar.violet { background: linear-gradient(135deg, #7c3aed, #f43f5e); }
.avatar.amber  { background: linear-gradient(135deg, #fb923c, #facc15); }
.avatar.slate  { background: linear-gradient(135deg, #475569, #1e293b); }
.avatar.teal   { background: linear-gradient(135deg, #14b8a6, #7c3aed); }
.avatar.lg { width: 72px; height: 72px; font-size: 1.5rem; }

.ring { position: relative; border-radius: 50%; padding: 3px; background: var(--ignition); }
.ring > .avatar { border: 3px solid var(--ink); }
.ring.seen { background: var(--ink-4); }

.story { display: grid; justify-items: center; gap: 0.45rem; width: 78px; }
.story figcaption {
  font: 600 0.7rem var(--mono); letter-spacing: 0.08em;
  color: var(--txt-2); white-space: nowrap;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 11, 20, 0.72);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 0.8rem 0; }
.nav-logo { display: flex; align-items: center; gap: 0.6rem; font: 700 1.12rem var(--display); }
.nav-logo img { width: 34px; height: 34px; border-radius: 9px; }
.nav-links { display: flex; gap: 1.5rem; align-items: center; font-size: 0.95rem; color: var(--txt-2); }
.nav-links a:hover { color: var(--txt); }
@media (max-width: 760px) { .nav-links .hide-m { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(4.5rem, 11vw, 8rem) 0 clamp(3rem, 6vw, 4.5rem); text-align: center; }
.hero .lead { margin: 1.5rem auto 2.3rem; }
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* glow orbs */
.orbs { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; animation: drift 16s ease-in-out infinite alternate; }
.orb.o1 { width: 520px; height: 520px; left: -8%; top: -18%; background: #7c3aed; }
.orb.o2 { width: 420px; height: 420px; right: -6%; top: 4%; background: #f43f5e; animation-delay: -5s; }
.orb.o3 { width: 300px; height: 300px; left: 42%; top: 46%; background: #fb923c; opacity: .28; animation-delay: -9s; }
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(48px, 36px) scale(1.12); }
}

/* floating plate chips */
.float-field { position: relative; height: 0; }
.float { position: absolute; animation: bob 5.5s ease-in-out infinite; opacity: .9; }
.float:nth-child(2) { animation-delay: -1.7s; }
.float:nth-child(3) { animation-delay: -3.2s; }
@keyframes bob { 0%,100% { transform: translateY(0) rotate(var(--tilt, 0deg)); } 50% { transform: translateY(-14px) rotate(var(--tilt, 0deg)); } }
@media (max-width: 900px) { .float { display: none; } }

/* animated road divider */
.road {
  height: 4px; margin-top: 4rem; border-radius: 2px;
  background: repeating-linear-gradient(90deg, var(--txt-3) 0 40px, transparent 40px 80px);
  background-size: 80px 4px;
  animation: drive 1.1s linear infinite;
  opacity: 0.4;
  position: relative;
}
.road::after {
  content: ""; position: absolute; top: -3px; width: 90px; height: 10px; border-radius: 6px;
  background: linear-gradient(90deg, transparent, rgba(251,146,60,.9));
  filter: blur(4px);
  animation: headlight 3.4s linear infinite;
}
@keyframes drive { to { background-position: -80px 0; } }
@keyframes headlight { from { left: -12%; } to { left: 108%; } }

/* ---------- Marquee ticker ---------- */
.ticker { overflow: hidden; border-block: 1px solid var(--line); background: var(--ink-2); padding: 0.85rem 0; }
.ticker-track {
  display: flex; gap: 3rem; width: max-content;
  animation: ticker 28s linear infinite;
  font: 700 0.82rem var(--display);
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--txt-3);
  white-space: nowrap;
}
.ticker-track b { color: var(--txt); }
.ticker-track .g { background: var(--ignition); -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Feature grid ---------- */
.grid { display: grid; gap: 1.3rem; }
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.feature .icon {
  width: 52px; height: 52px; border-radius: var(--r-md);
  display: grid; place-items: center;
  background: var(--ignition-soft);
  border: 1px solid var(--line-2);
  margin-bottom: 1.1rem;
}
.feature .icon svg { width: 26px; height: 26px; }
.feature h3 { margin-bottom: 0.5rem; }
.feature p { color: var(--txt-2); font-size: 0.97rem; }

/* ---------- Steps ---------- */
.step { display: flex; gap: 1.1rem; align-items: flex-start; }
.step-num {
  font: 900 1rem var(--display);
  width: 40px; height: 40px; flex: none;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--ignition); color: #fff;
}
.step p { color: var(--txt-2); font-size: 0.96rem; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.2rem; text-align: center; }
.stat b {
  display: block; font: 900 clamp(2.2rem, 5vw, 3.4rem) var(--display);
  background: var(--ignition); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat span { color: var(--txt-3); font-size: 0.9rem; letter-spacing: 0.06em; text-transform: uppercase; }

/* ---------- Trust ---------- */
.trust { border-left: 3px solid; border-image: var(--ignition) 1; padding-left: 1.4rem; }
.trust li { list-style: none; color: var(--txt-2); margin: 0.55rem 0; }
.trust li strong { color: var(--txt); }

/* ---------- Chat bubbles (testimonials) ---------- */
.bubbles { display: grid; gap: 1rem; }
.bubble {
  max-width: 520px; padding: 1rem 1.25rem; border-radius: 20px;
  background: var(--ink-3); border: 1px solid var(--line);
  font-size: 0.95rem; color: var(--txt-2); position: relative;
}
.bubble.me { margin-left: auto; background: var(--ignition); color: #fff; border: 0; border-bottom-right-radius: 6px; }
.bubble.them { border-bottom-left-radius: 6px; }
.bubble .meta { display: flex; gap: 0.5rem; align-items: center; margin-bottom: 0.3rem; font-size: 0.78rem; color: var(--txt-3); }
.bubble.me .meta { color: rgba(255,255,255,.75); }

/* ---------- Search / demo widgets ---------- */
.search-row { display: flex; gap: 0.7rem; flex-wrap: wrap; }
.search-row input {
  flex: 1; min-width: 200px;
  font: 700 1.1rem var(--mono);
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--txt);
  background: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 0.8rem 1.1rem;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.search-row input:focus { border-color: var(--rose); box-shadow: 0 0 0 3px rgba(244,63,94,.25); }

.result-card { margin-top: 1.2rem; }
.result-head { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 0.8rem; }
.result-head .who { line-height: 1.3; }
.result-head .who b { display: block; }
.result-head .who span { color: var(--txt-3); font-size: 0.88rem; }
.vibe-tags { display: flex; gap: 0.45rem; flex-wrap: wrap; margin-top: 0.7rem; }
.vibe-tags span {
  font-size: 0.8rem; color: var(--txt-2);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 0.2rem 0.7rem; cursor: default;
  transition: border-color .15s, color .15s;
}
.vibe-tags [role="radio"] { cursor: pointer; }

/* ---------- Feed post ---------- */
.post { display: flex; gap: 0.85rem; padding: 1rem 1.1rem; border-bottom: 1px solid var(--line); }
.post-body { flex: 1; font-size: 0.92rem; }
.post-meta { display: flex; gap: 0.5rem; align-items: baseline; flex-wrap: wrap; }
.post-meta b { font-size: 0.92rem; }
.post-meta time { color: var(--txt-3); font-size: 0.8rem; }
.post-text { margin: 0.35rem 0 0.5rem; color: var(--txt-2); }
.post-actions { display: flex; gap: 1.1rem; color: var(--txt-3); font-size: 0.85rem; }
.post-actions button {
  background: none; border: 0; color: inherit; cursor: pointer; font: inherit;
  display: inline-flex; gap: 0.3rem; align-items: center;
}
.post-actions button:hover { color: var(--rose); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 2rem; transform: translateX(-50%) translateY(20px);
  background: var(--ink-3); border: 1px solid var(--line-2); border-radius: var(--r-md);
  padding: 0.9rem 1.3rem; font-size: 0.92rem; color: var(--txt);
  opacity: 0; pointer-events: none; transition: .25s ease; max-width: min(480px, 90vw);
  box-shadow: var(--shadow); z-index: 100;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 2.5rem 0 3rem; color: var(--txt-3); font-size: 0.88rem; }
.foot-inner { display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.foot-inner nav { display: flex; gap: 1.4rem; }
.foot-inner a:hover { color: var(--txt); }

/* ---------- RTL (Hebrew) ----------
   Layout is flex/grid and mostly auto-mirrors; these are the physical-property
   holdouts. Plates and handles always render LTR — they're registration data. */
.plate, .claim-input, .search-row input, .sbar, .post-meta b, .wiz-steps { direction: ltr; }
[dir="rtl"] .trust { border-left: 0; border-right: 3px solid; border-image: var(--ignition) 1; padding-left: 0; padding-right: 1.4rem; }
[dir="rtl"] .msg { border-bottom-left-radius: 16px; border-bottom-right-radius: 5px; }
[dir="rtl"] .msg.me { margin-left: 0; margin-right: auto; border-bottom-right-radius: 16px; border-bottom-left-radius: 5px; }
[dir="rtl"] .bubble.me { margin-left: 0; margin-right: auto; border-bottom-right-radius: 6px; border-bottom-left-radius: 20px; }
[dir="rtl"] .bubble.them { border-bottom-left-radius: 6px; border-bottom-right-radius: 20px; }
[dir="rtl"] .tabbar .tab, [dir="rtl"] .stories { direction: rtl; }
[dir="rtl"] .hero, [dir="rtl"] .wizard { text-align: center; } /* unchanged, explicit */

/* language toggle */
.lang-btn {
  font: 700 0.8rem var(--body); letter-spacing: 0.04em;
  color: var(--txt-2); background: var(--glass);
  border: 1px solid var(--line-2); border-radius: 999px;
  padding: 0.35rem 0.85rem; cursor: pointer;
}
.lang-btn:hover { color: var(--txt); }

/* ---------- Utility ---------- */
.center { text-align: center; }
.mt-1 { margin-top: 0.6rem; } .mt-2 { margin-top: 1.2rem; } .mt-3 { margin-top: 2rem; }
.muted { color: var(--txt-3); }
.row { display: flex; gap: 0.8rem; align-items: center; flex-wrap: wrap; }

/* ==========================================================================
   PHONE UI KIT — high-fidelity app frames used on / and /screens
   ========================================================================== */
.phone {
  width: 300px; flex: none;
  background: linear-gradient(160deg, #2a2a3e, #14141f 30%);
  border-radius: 44px; padding: 10px;
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255,255,255,.08);
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.phone.tilt-l { transform: rotate(-4deg) translateY(12px); }
.phone.tilt-r { transform: rotate(4deg) translateY(12px); }
.phone.tilt-l:hover, .phone.tilt-r:hover { transform: rotate(0) translateY(0) scale(1.02); z-index: 5; }

.screen {
  background: var(--ink);
  border-radius: 36px; overflow: hidden;
  height: 620px;
  display: flex; flex-direction: column;
  position: relative;
  isolation: isolate;
}

/* status bar + dynamic island */
.sbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.55rem 1.3rem 0.3rem;
  font: 600 0.72rem var(--body); color: var(--txt);
  position: relative; z-index: 3;
}
.sbar::after {
  content: ""; position: absolute; left: 50%; top: 8px; transform: translateX(-50%);
  width: 84px; height: 22px; border-radius: 12px; background: #000;
}
.sbar .bat { display: inline-flex; gap: 4px; align-items: center; }
.sbar .bat i {
  width: 20px; height: 10px; border: 1px solid var(--txt-3); border-radius: 3px;
  display: inline-block; position: relative;
}
.sbar .bat i::after { content: ""; position: absolute; inset: 1px 30% 1px 1px; background: var(--txt); border-radius: 1px; }

/* app header inside screen */
.ahead {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.5rem 1rem;
}
.ahead .t { font: 800 1.05rem var(--display); display: flex; align-items: center; gap: .45rem; }
.ahead .t img { width: 22px; border-radius: 6px; }
.aicons { display: flex; gap: 0.9rem; color: var(--txt-2); }
.aicons svg { width: 21px; height: 21px; }

.sc-body { flex: 1; overflow: hidden; display: flex; flex-direction: column; }

/* bottom tab bar */
.tabbar {
  display: flex; justify-content: space-around; align-items: center;
  padding: 0.6rem 0.5rem calc(0.6rem + 6px);
  border-top: 1px solid var(--line);
  background: rgba(11,11,20,.9); backdrop-filter: blur(10px);
}
.tabbar .tab { display: grid; justify-items: center; gap: 2px; color: var(--txt-3); font-size: 0.58rem; }
.tabbar .tab svg { width: 23px; height: 23px; }
.tabbar .tab.on { color: var(--txt); }
.tabbar .tab.on svg { stroke: url(#igr); }
.tabbar .fab {
  width: 46px; height: 46px; border-radius: 16px; display: grid; place-items: center;
  background: var(--ignition); color: #fff; box-shadow: var(--glow-rose);
  margin-top: -20px;
}
.tabbar .fab svg { width: 22px; height: 22px; }
.homebar { position: absolute; bottom: 6px; left: 50%; transform: translateX(-50%); width: 110px; height: 4px; border-radius: 2px; background: var(--txt-3); opacity: .5; }

/* stories strip */
.stories { display: flex; gap: 0.7rem; padding: 0.6rem 1rem 0.8rem; overflow: hidden; }
.stories .story { width: 58px; }
.stories .avatar { width: 46px; height: 46px; font-size: .95rem; }
.stories figcaption { font-size: 0.6rem; }

/* deck card (Spotted) */
.deck { position: relative; flex: 1; margin: 0.4rem 1rem 1rem; }
.deck-card {
  position: absolute; inset: 0;
  border-radius: 22px; overflow: hidden;
  background: var(--ink-2);
  border: 1px solid var(--line-2);
  display: flex; flex-direction: column;
}
.deck-card.behind { transform: scale(.94) translateY(14px); filter: brightness(.55); }
.deck-card.behind2 { transform: scale(.88) translateY(26px); filter: brightness(.3); }
.deck-art { flex: 1; position: relative; display: grid; place-items: center; overflow: hidden; }
.deck-art svg.car { width: 82%; filter: drop-shadow(0 18px 30px rgba(0,0,0,.55)); }
.deck-art .scene { position: absolute; inset: 0; }
.deck-info { padding: 0.9rem 1rem 2.6rem; background: linear-gradient(transparent, rgba(11,11,20,.55)); }
.deck-info .row1 { display: flex; align-items: center; gap: 0.55rem; }
.deck-info .row1 b { font-size: 1.02rem; }
.deck-info p { font-size: 0.8rem; color: var(--txt-2); margin-top: 0.25rem; }
.deck-actions {
  position: absolute; bottom: -23px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 1.1rem;
}
.dbtn {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; border: 0; cursor: pointer;
  background: var(--ink-4); color: var(--txt-2);
  box-shadow: 0 10px 24px rgba(0,0,0,.5);
}
.dbtn svg { width: 24px; height: 24px; }
.dbtn.wave { width: 62px; height: 62px; background: var(--ignition); color: #fff; box-shadow: var(--glow-rose); }

/* chat screen */
.chat { flex: 1; display: flex; flex-direction: column; gap: 0.55rem; padding: 0.8rem 0.9rem; overflow: hidden; }
.msg {
  max-width: 78%; padding: 0.55rem 0.85rem; border-radius: 16px;
  font-size: 0.82rem; line-height: 1.45; color: var(--txt-2);
  background: var(--ink-3); border-bottom-left-radius: 5px;
}
.msg.me { margin-left: auto; background: var(--ignition); color: #fff; border-radius: 16px; border-bottom-right-radius: 5px; }
.msg .tick { font-size: 0.62rem; opacity: .7; display: block; text-align: right; margin-top: 2px; }
.chat-day { text-align: center; font-size: 0.62rem; color: var(--txt-3); letter-spacing: .08em; text-transform: uppercase; }
.composer {
  display: flex; gap: 0.5rem; align-items: center;
  margin: 0 0.8rem 0.9rem; padding: 0.4rem 0.4rem 0.4rem 1rem;
  background: var(--ink-3); border: 1px solid var(--line); border-radius: 999px;
  color: var(--txt-3); font-size: 0.82rem;
}
.composer .send {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ignition); color: #fff; flex: none;
}
.composer .send svg { width: 16px; height: 16px; }

/* match overlay */
.match-hero {
  flex: 1; display: grid; place-items: center; text-align: center;
  background:
    radial-gradient(50% 40% at 50% 30%, rgba(244,63,94,.28), transparent 70%),
    radial-gradient(40% 35% at 30% 70%, rgba(124,58,237,.25), transparent 70%);
  padding: 1rem;
}
.match-hero h4 { font: 900 1.7rem var(--display); line-height: 1.15; }
.match-avatars { display: flex; justify-content: center; margin-bottom: 1.1rem; }
.match-avatars .ring { margin: 0 -10px; }
.confetti { position: absolute; inset: 0; pointer-events: none; }
.confetti i { position: absolute; width: 7px; height: 12px; border-radius: 2px; opacity: .85; }

/* waves inbox */
.winbox { flex: 1; overflow: hidden; }
.wrow { display: flex; gap: 0.75rem; align-items: center; padding: 0.7rem 1rem; border-bottom: 1px solid var(--line); }
.wrow .wtxt { flex: 1; line-height: 1.35; }
.wrow .wtxt b { font-size: 0.85rem; display: flex; gap: 0.45rem; align-items: center; }
.wrow .wtxt span { font-size: 0.74rem; color: var(--txt-3); }
.wrow .vibe {
  font-size: 1.05rem; width: 38px; height: 38px; flex: none;
  display: grid; place-items: center; border-radius: 12px;
  background: var(--ignition-soft); border: 1px solid var(--line-2);
}
.wrow .when { font-size: 0.66rem; color: var(--txt-3); }
.wrow.blurred .wtxt { filter: blur(5px); pointer-events: none; }
.seg {
  display: flex; gap: 0.3rem; margin: 0.5rem 1rem; padding: 0.25rem;
  background: var(--ink-3); border-radius: 999px; font-size: 0.72rem;
}
.seg span { flex: 1; text-align: center; padding: 0.35rem 0; border-radius: 999px; color: var(--txt-3); }
.seg .on { background: var(--ignition); color: #fff; font-weight: 700; }

/* profile screen */
.pro-head { padding: 0.8rem 1rem 0; display: grid; justify-items: center; gap: 0.5rem; text-align: center; }
.screen:has(.notif) .pro-head { padding-top: 3.6rem; }
.pro-stats { display: flex; gap: 1.6rem; margin-top: 0.3rem; }
.pro-stats div { text-align: center; line-height: 1.2; }
.pro-stats b { font: 800 0.95rem var(--display); display: block; }
.pro-stats span { font-size: 0.62rem; color: var(--txt-3); text-transform: uppercase; letter-spacing: 0.08em; }
.badges { display: flex; gap: 0.4rem; flex-wrap: wrap; justify-content: center; }
.badges span {
  font-size: 0.62rem; padding: 0.18rem 0.6rem; border-radius: 999px;
  background: var(--ignition-soft); border: 1px solid var(--line-2); color: var(--txt-2);
}
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; margin-top: 0.8rem; flex: 1; }
.pgrid div { background: var(--ink-3); position: relative; overflow: hidden; }
.pgrid svg { position: absolute; inset: 12%; }

/* onboarding / claim screen */
.claim {
  flex: 1; display: flex; flex-direction: column; justify-content: center;
  padding: 0 1.4rem; gap: 1rem; text-align: center;
  background:
    radial-gradient(60% 40% at 50% 0%, rgba(124,58,237,.3), transparent 70%),
    radial-gradient(50% 35% at 80% 100%, rgba(251,146,60,.16), transparent 70%);
}
.claim h4 { font: 900 1.55rem var(--display); line-height: 1.18; }
.claim .plate-input {
  font: 900 1.5rem var(--mono); letter-spacing: 0.2em; text-align: center;
  background: var(--ink-2); color: var(--txt);
  border: 2px dashed var(--line-2); border-radius: 14px;
  padding: 0.9rem 0.5rem;
}
.claim .hint { font-size: 0.74rem; color: var(--txt-3); }
.progress-dots { display: flex; gap: 0.4rem; justify-content: center; }
.progress-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-4); }
.progress-dots i.on { background: var(--rose); width: 20px; border-radius: 4px; }

/* notification pill */
.notif {
  position: absolute; top: 52px; left: 12px; right: 12px; z-index: 6;
  display: flex; gap: 0.6rem; align-items: center;
  background: rgba(26,26,44,.92); backdrop-filter: blur(12px);
  border: 1px solid var(--line-2); border-radius: 16px;
  padding: 0.6rem 0.8rem; box-shadow: var(--shadow);
}
.notif img { width: 30px; height: 30px; border-radius: 8px; }
.notif .n-txt { flex: 1; line-height: 1.3; }
.notif .n-txt b { font-size: 0.78rem; display: block; }
.notif .n-txt span { font-size: 0.7rem; color: var(--txt-2); }
.notif time { font-size: 0.62rem; color: var(--txt-3); align-self: flex-start; }

/* ==========================================================================
   ONBOARDING WIZARD + AUTH + APP SESSION UI
   ========================================================================== */
.wizard { width: min(440px, 92vw); text-align: center; padding: 2.2rem 2rem; }
.wiz-steps {
  display: flex; align-items: center; gap: 0.5rem; justify-content: center;
  margin-bottom: 1.8rem; font: 700 0.62rem var(--display);
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--txt-3);
}
.wiz-steps i { flex: 0 0 14px; height: 2px; background: var(--ink-4); border-radius: 1px; }
.wiz-steps .ws.on { color: var(--amber); }
.wstep h2 { font-size: 1.6rem; }
.err { color: var(--rose); font-size: 0.82rem; margin-top: 0.6rem; min-height: 1.2em; }

.gbtn {
  display: flex; align-items: center; justify-content: center; gap: 0.7rem;
  width: 100%; padding: 0.85rem 1rem;
  font: 600 1rem var(--body); color: #1f1f1f;
  background: #fff; border: 0; border-radius: 999px; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.gbtn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(255,255,255,.15); }

.or { display: flex; align-items: center; gap: 0.9rem; margin: 1.3rem 0; color: var(--txt-3); font-size: 0.78rem; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.claim-input {
  width: 100%;
  font: 900 1.6rem var(--mono); letter-spacing: 0.2em; text-align: center; text-transform: uppercase;
  background: var(--ink-3); color: var(--txt);
  border: 2px dashed var(--line-2); border-radius: 14px;
  padding: 0.9rem 0.5rem; outline: none;
  transition: border-color .15s;
}
.claim-input:focus { border-color: var(--rose); }

.switch-row {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: var(--ink-3); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 0.8rem 1rem; cursor: pointer;
}
.switch { position: relative; flex: none; }
.switch input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.switch i {
  display: block; width: 46px; height: 26px; border-radius: 999px;
  background: var(--ink-4); transition: background .2s; position: relative;
}
.switch i::after {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 20px; height: 20px; border-radius: 50%; background: var(--txt-2);
  transition: transform .2s, background .2s;
}
.switch input:checked + i { background: var(--ignition); }
.switch input:checked + i::after { transform: translateX(20px); background: #fff; }

/* session bar on /app */
.session-bar {
  display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap;
  background: var(--ink-2); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 0.8rem 1.2rem; margin-bottom: 1.6rem;
}
.session-bar .who { display: flex; align-items: center; gap: 0.6rem; }
.session-bar .who img { width: 34px; height: 34px; border-radius: 50%; }
.session-bar .spacer { flex: 1; }
.pill-btn {
  position: relative;
  font: 600 0.85rem var(--body); color: var(--txt-2);
  background: var(--ink-3); border: 1px solid var(--line); border-radius: 999px;
  padding: 0.45rem 1rem; cursor: pointer; transition: color .15s, border-color .15s;
}
.pill-btn:hover { color: var(--txt); border-color: var(--line-2); }
.pill-btn .badge {
  position: absolute; top: -7px; right: -7px;
  background: var(--ignition); color: #fff;
  font: 800 0.62rem var(--body);
  min-width: 18px; height: 18px; border-radius: 9px;
  display: grid; place-items: center; padding: 0 4px;
}

/* modal (waves inbox / chat) */
.modal-back {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(5, 5, 12, 0.7); backdrop-filter: blur(6px);
  display: grid; place-items: center; padding: 1rem;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.modal-back.show { opacity: 1; pointer-events: auto; }
.modal {
  width: min(460px, 94vw); max-height: 84vh; overflow: auto;
  background: var(--ink-2); border: 1px solid var(--line-2);
  border-radius: var(--r-lg); padding: 1.4rem; box-shadow: var(--shadow);
}
.modal h3 { display: flex; justify-content: space-between; align-items: center; }
.modal .x { background: none; border: 0; color: var(--txt-3); font-size: 1.3rem; cursor: pointer; }
.modal .x:hover { color: var(--txt); }

/* match splash inside modal */
.match-splash { text-align: center; padding: 1rem 0; }
.match-splash h4 { font: 900 1.6rem var(--display); }

/* photo upload + display */
.photo-drop {
  display: grid; place-items: center; gap: 0.3rem;
  border: 2px dashed var(--line-2); border-radius: var(--r-md);
  padding: 1.1rem; cursor: pointer; color: var(--txt-3); font-size: 0.85rem;
  transition: border-color .15s, color .15s;
  position: relative; overflow: hidden; min-height: 86px;
}
.photo-drop:hover { border-color: var(--rose); color: var(--txt-2); }
.photo-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.photo-drop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-drop .re {
  position: absolute; right: 8px; bottom: 8px; z-index: 2;
  background: rgba(11,11,20,.75); border: 1px solid var(--line-2); border-radius: 999px;
  color: var(--txt); font-size: 0.72rem; padding: 0.2rem 0.7rem;
}
.result-photo {
  width: 100%; height: 150px; object-fit: cover;
  border-radius: 12px; margin-bottom: 0.8rem;
  border: 1px solid var(--line);
}

/* screens gallery page */
.shots { display: flex; gap: 2rem; flex-wrap: wrap; justify-content: center; align-items: flex-start; }
.shot { display: grid; gap: 1rem; justify-items: center; }
.shot .cap { text-align: center; max-width: 300px; }
.shot .cap b { font: 700 0.95rem var(--display); display: block; margin-bottom: 0.2rem; }
.shot .cap span { font-size: 0.85rem; color: var(--txt-3); }
