/* TOKME — shared stylesheet for tokme.me
   Neon nightclub language, matched to the app and the brand logo:
   cyan→magenta neon on near-black, glowing outlines, soft bokeh.
   RTL-first; [dir="ltr"] pages inherit via logical properties. */

@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@400;500;700;900&display=swap');

:root {
  --bg: #070312;
  --bg2: #0c0620;
  --surface: rgba(22, 12, 46, 0.72);
  --surface2: #171033;
  --stroke: rgba(168, 85, 247, 0.35);
  --text: #f7f4ff;
  --dim: #b9b3e0;
  --faint: #7d76ad;
  --pink: #ff3da6;
  --cyan: #2fd6f6;
  --violet: #a855f7;
  --grad: linear-gradient(135deg, #ff3da6, #a855f7);
  --grad-cm: linear-gradient(90deg, #2fd6f6, #ff3da6);
  --glow-pink: 0 0 10px rgba(255, 61, 166, 0.85), 0 0 32px rgba(255, 61, 166, 0.45), 0 0 80px rgba(255, 61, 166, 0.25);
  --glow-cyan: 0 0 10px rgba(47, 214, 246, 0.85), 0 0 32px rgba(47, 214, 246, 0.4);
  --ring-pink: 0 0 0 1.5px rgba(255, 61, 166, 0.75), 0 0 18px rgba(255, 61, 166, 0.45), inset 0 0 22px rgba(255, 61, 166, 0.12);
  --ring-cyan: 0 0 0 1.5px rgba(47, 214, 246, 0.7), 0 0 18px rgba(47, 214, 246, 0.4), inset 0 0 22px rgba(47, 214, 246, 0.1);
  --focus: #7dd3fc;
  --radius: 20px;
  --font: "Rubik", "Segoe UI", "Heebo", Arial, sans-serif;
}

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

body {
  margin: 0;
  background:
    radial-gradient(900px 500px at 85% -5%, rgba(168, 85, 247, 0.28), transparent 65%),
    radial-gradient(700px 460px at 8% 22%, rgba(255, 61, 166, 0.16), transparent 65%),
    radial-gradient(700px 500px at 92% 70%, rgba(47, 214, 246, 0.10), transparent 65%),
    radial-gradient(800px 500px at 15% 105%, rgba(255, 61, 166, 0.14), transparent 65%),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

/* ---------- accessibility fundamentals ---------- */

.skip-link {
  position: absolute;
  inset-inline-start: 12px;
  top: -60px;
  z-index: 100;
  background: var(--surface2);
  color: var(--text);
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid var(--stroke);
  transition: top 0.15s;
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

html.a11y-bigtext body { font-size: 20px; }
html.a11y-bigtext .hero h1 { font-size: clamp(34px, 6vw, 56px); }
html.a11y-links a { text-decoration: underline !important; }
html.a11y-still *, html.a11y-still *::before, html.a11y-still *::after {
  animation: none !important;
  transition: none !important;
}
html.a11y-contrast {
  --bg: #000;
  --bg2: #000;
  --surface: #0a0a0a;
  --surface2: #111;
  --stroke: rgba(255, 255, 255, 0.5);
  --text: #fff;
  --dim: #ececec;
  --faint: #cfcfcf;
  --glow-pink: none;
  --glow-cyan: none;
  --ring-pink: 0 0 0 2px #fff;
  --ring-cyan: 0 0 0 2px #fff;
}
html.a11y-contrast body { background: #000; }
html.a11y-contrast .neon, html.a11y-contrast .neon-c { text-shadow: none; }

/* ---------- neon utilities ---------- */

.neon { color: var(--pink); text-shadow: var(--glow-pink); }
.neon-c { color: var(--cyan); text-shadow: var(--glow-cyan); }
.grad {
  background: var(--grad-cm);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 14px rgba(255, 61, 166, 0.55));
}
html.a11y-contrast .grad { color: var(--pink); background: none; filter: none; }

/* ---------- layout ---------- */

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 780px; }

header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 3, 18, 0.78);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 61, 166, 0.25);
  box-shadow: 0 6px 30px rgba(255, 61, 166, 0.08);
}
header.site .bar {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 68px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex: none;
}
.logo img {
  height: 46px;
  width: auto;
  display: block;
  mix-blend-mode: screen; /* melts the jpg's dark ground into ours */
  filter: drop-shadow(0 0 14px rgba(255, 61, 166, 0.35));
}
footer.site .logo img { height: 60px; }
html.a11y-contrast .logo img { mix-blend-mode: normal; border-radius: 10px; }

nav.main { display: flex; gap: 4px; flex-wrap: wrap; margin-inline-start: auto; }
nav.main a {
  color: var(--dim);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
}
nav.main a:hover { color: var(--pink); text-shadow: var(--glow-pink); }

.lang {
  color: var(--cyan);
  border: 1.5px solid rgba(47, 214, 246, 0.6);
  box-shadow: 0 0 14px rgba(47, 214, 246, 0.25), inset 0 0 10px rgba(47, 214, 246, 0.08);
  border-radius: 999px;
  padding: 6px 16px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}
.lang:hover { color: #fff; text-shadow: var(--glow-cyan); }

@media (max-width: 760px) {
  nav.main { display: none; }
  .logo img { height: 38px; }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font);
  text-decoration: none;
  border: 0;
  cursor: pointer;
}
.btn.primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 0 22px rgba(255, 61, 166, 0.7), 0 0 60px rgba(168, 85, 247, 0.35), inset 0 0 14px rgba(255, 255, 255, 0.18);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}
.btn.primary:hover { filter: brightness(1.14); box-shadow: 0 0 30px rgba(255, 61, 166, 0.9), 0 0 80px rgba(168, 85, 247, 0.5); }
.btn.ghost {
  background: rgba(47, 214, 246, 0.06);
  color: var(--cyan);
  border: 1.5px solid rgba(47, 214, 246, 0.6);
  box-shadow: 0 0 16px rgba(47, 214, 246, 0.25), inset 0 0 12px rgba(47, 214, 246, 0.08);
}
.btn.ghost:hover { color: #fff; }
.btn[aria-disabled="true"] { opacity: 0.6; cursor: default; }
.btn .sub { display: block; font-size: 11px; font-weight: 400; opacity: 0.85; }
.btn svg { flex: none; }

/* ---------- hero ---------- */

.hero { position: relative; overflow: hidden; padding: 64px 0 64px; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } }

.hero-logo {
  width: min(340px, 70vw);
  height: auto;
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 30px rgba(255, 61, 166, 0.4));
  margin-bottom: 10px;
}
html.a11y-contrast .hero-logo { mix-blend-mode: normal; border-radius: 16px; }

.hero h1 {
  font-size: clamp(32px, 5.4vw, 52px);
  line-height: 1.16;
  margin: 0 0 18px;
  font-weight: 900;
  letter-spacing: 0.5px;
}
.hero p.lead { color: var(--dim); font-size: 19px; margin: 0 0 28px; max-width: 34em; }

.stores { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 24px; }
.hero .facts { display: flex; gap: 20px; flex-wrap: wrap; color: var(--faint); font-size: 14px; padding: 0; margin: 0; list-style: none; }
.hero .facts li::before { content: "💗 "; }

/* CSS phone mockup — a neon device */
.phone {
  width: min(300px, 80vw);
  margin: 0 auto;
  aspect-ratio: 9 / 18.6;
  border-radius: 44px;
  border: 1.5px solid rgba(255, 61, 166, 0.6);
  background: linear-gradient(165deg, rgba(30, 16, 60, 0.9), rgba(10, 5, 26, 0.95));
  box-shadow: 0 0 34px rgba(255, 61, 166, 0.4), 0 0 90px rgba(168, 85, 247, 0.25), 0 34px 80px rgba(0, 0, 0, 0.6);
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.phone .notch { width: 84px; height: 8px; border-radius: 99px; background: rgba(255, 255, 255, 0.14); margin: 0 auto 2px; }
.phone .plogo { height: 30px; align-self: center; mix-blend-mode: screen; margin-bottom: 2px; }
.pcard {
  border-radius: 16px;
  background: rgba(14, 8, 34, 0.85);
  box-shadow: var(--ring-cyan);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--dim);
}
.pcard:nth-child(odd) { box-shadow: var(--ring-pink); }
.pcard .dot {
  width: 36px; height: 36px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-size: 16px;
  background: rgba(255, 61, 166, 0.12);
  box-shadow: var(--ring-pink);
}
.pcard b { color: var(--text); display: block; font-size: 14px; }
.pcard.rose { box-shadow: var(--ring-pink); background: rgba(255, 61, 166, 0.12); }
.pbar { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.pbar i { display: block; height: 100%; width: 66%; background: var(--grad-cm); box-shadow: 0 0 12px rgba(255, 61, 166, 0.8); }

/* ---------- sections ---------- */

section.block { padding: 72px 0; }
section.alt {
  background: linear-gradient(180deg, rgba(255, 61, 166, 0.05), rgba(47, 214, 246, 0.03));
  border-block: 1px solid rgba(255, 61, 166, 0.2);
}

.kicker {
  color: var(--cyan);
  text-shadow: var(--glow-cyan);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0 0 8px;
}
h2 { font-size: clamp(26px, 3.6vw, 38px); margin: 0 0 14px; line-height: 1.25; font-weight: 900; }
section h2 { color: var(--pink); text-shadow: var(--glow-pink); }
p.sub { color: var(--dim); max-width: 44em; margin: 0 0 40px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .grid { grid-template-columns: 1fr; } }

.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--ring-pink);
  padding: 26px 24px;
}
.grid .card:nth-child(even) { box-shadow: var(--ring-cyan); }
.card .ico {
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255, 61, 166, 0.1);
  box-shadow: var(--ring-pink);
  display: grid; place-items: center;
  font-size: 24px;
  margin-bottom: 16px;
}
.grid .card:nth-child(even) .ico { background: rgba(47, 214, 246, 0.08); box-shadow: var(--ring-cyan); }
.card h3 { margin: 0 0 8px; font-size: 19px; font-weight: 700; }
.card p { margin: 0; color: var(--dim); font-size: 15px; }
.card a { color: var(--cyan); }

/* stats band */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 8px; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat {
  text-align: center;
  padding: 22px 10px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--ring-cyan);
}
.stat:nth-child(odd) { box-shadow: var(--ring-pink); }
.stat b {
  display: block;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 900;
  color: var(--cyan);
  text-shadow: var(--glow-cyan);
}
.stat:nth-child(odd) b { color: var(--pink); text-shadow: var(--glow-pink); }
.stat span { color: var(--dim); font-size: 14px; }

/* steps — the neon "how it works" row */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.step {
  position: relative;
  padding: 26px 24px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--ring-cyan);
  text-align: center;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 20px rgba(255, 61, 166, 0.7);
  font-weight: 900;
  font-size: 19px;
  margin-bottom: 14px;
}
.step:not(:last-child)::after {
  content: "❯";
  position: absolute;
  top: 50%;
  inset-inline-end: -19px;
  transform: translateY(-50%);
  color: var(--pink);
  text-shadow: var(--glow-pink);
  font-size: 22px;
  z-index: 1;
}
[dir="rtl"] .step:not(:last-child)::after { content: "❮"; }
@media (max-width: 760px) { .step:not(:last-child)::after { content: "" !important; } }
.step h3 { margin: 0 0 6px; font-size: 18px; font-weight: 700; }
.step p { margin: 0; color: var(--dim); font-size: 15px; }

/* winme spotlight */
.winme {
  border-radius: 28px;
  box-shadow: var(--ring-pink), 0 0 80px rgba(168, 85, 247, 0.2);
  background:
    radial-gradient(500px 300px at 85% 0%, rgba(168, 85, 247, 0.3), transparent 70%),
    radial-gradient(400px 260px at 10% 100%, rgba(255, 61, 166, 0.16), transparent 70%),
    rgba(16, 8, 36, 0.9);
  padding: 46px 40px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 36px;
  align-items: center;
}
@media (max-width: 820px) { .winme { grid-template-columns: 1fr; padding: 32px 24px; } }
.winme h2 { color: var(--pink); text-shadow: var(--glow-pink); }
.winme ul { margin: 0 0 26px; padding: 0; list-style: none; color: var(--dim); }
.winme li { padding: 7px 0; }
.winme li::before { content: "🌹 "; }
.rosewall { display: flex; flex-direction: column; gap: 12px; }

/* FAQ */
.faq details {
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--ring-cyan);
  margin-bottom: 14px;
  overflow: hidden;
}
.faq details:nth-of-type(odd) { box-shadow: var(--ring-pink); }
.faq summary {
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 700;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; color: var(--pink); text-shadow: var(--glow-pink); flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq .a { padding: 0 22px 20px; color: var(--dim); font-size: 15px; }
.faq .a p { margin: 0 0 10px; }

/* CTA band */
.cta {
  text-align: center;
  padding: 84px 0;
  background:
    radial-gradient(600px 320px at 50% 115%, rgba(255, 61, 166, 0.28), transparent 70%),
    radial-gradient(500px 260px at 15% -10%, rgba(47, 214, 246, 0.12), transparent 70%),
    var(--bg2);
  border-top: 1px solid rgba(255, 61, 166, 0.25);
}
.cta h2 { color: var(--pink); text-shadow: var(--glow-pink); }

/* ---------- prose pages (terms / privacy / accessibility) ---------- */

main.prose { padding: 48px 0 40px; }
main.prose h1 {
  font-size: clamp(28px, 4.5vw, 40px);
  margin: 0 0 6px;
  font-weight: 900;
  color: var(--pink);
  text-shadow: var(--glow-pink);
}
main.prose .updated { color: var(--faint); font-size: 14px; margin-bottom: 34px; }
main.prose h2 { font-size: 22px; margin: 38px 0 10px; color: var(--cyan); text-shadow: var(--glow-cyan); }
main.prose h3 { font-size: 18px; margin: 26px 0 8px; }
main.prose p, main.prose li { color: var(--dim); }
main.prose strong { color: var(--text); }
main.prose a { color: var(--pink); }
main.prose .note {
  border-radius: 16px;
  box-shadow: var(--ring-pink);
  background: var(--surface);
  padding: 16px 20px;
  margin: 18px 0;
}
main.prose table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 15px; }
main.prose th, main.prose td { border: 1px solid var(--stroke); padding: 10px 14px; text-align: start; vertical-align: top; color: var(--dim); }
main.prose th { color: var(--cyan); background: rgba(47, 214, 246, 0.06); }
.tablewrap { overflow-x: auto; border-radius: 12px; }

/* ---------- footer ---------- */

footer.site {
  border-top: 1px solid rgba(255, 61, 166, 0.25);
  padding: 46px 0 96px;
  color: var(--faint);
  font-size: 14px;
  background: rgba(5, 2, 14, 0.7);
}
footer.site .cols { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; }
footer.site h4 { color: var(--pink); text-shadow: var(--glow-pink); font-size: 15px; margin: 0 0 10px; }
footer.site ul { list-style: none; margin: 0; padding: 0; }
footer.site li { padding: 4px 0; }
footer.site a { color: var(--dim); text-decoration: none; }
footer.site a:hover { color: var(--cyan); text-shadow: var(--glow-cyan); }
footer.site .fine { margin-top: 34px; border-top: 1px solid rgba(255, 255, 255, 0.08); padding-top: 18px; }

/* ---------- accessibility widget ---------- */

.a11y-btn {
  position: fixed;
  bottom: 20px;
  inset-inline-start: 20px;
  z-index: 90;
  width: 54px; height: 54px;
  border-radius: 50%;
  border: 1.5px solid rgba(47, 214, 246, 0.7);
  background: var(--surface2);
  color: var(--cyan);
  font-size: 25px;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 0 18px rgba(47, 214, 246, 0.4), 0 8px 26px rgba(0, 0, 0, 0.5);
}
.a11y-btn:hover { color: #fff; }

.a11y-panel {
  position: fixed;
  bottom: 84px;
  inset-inline-start: 20px;
  z-index: 90;
  width: 252px;
  background: var(--surface2);
  border-radius: 18px;
  box-shadow: var(--ring-cyan), 0 18px 50px rgba(0, 0, 0, 0.6);
  padding: 16px;
}
.a11y-panel[hidden] { display: none; }
.a11y-panel h2 { font-size: 16px; margin: 0 0 12px; color: var(--cyan); text-shadow: var(--glow-cyan); }
.a11y-panel button {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 8px;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
  text-align: start;
}
.a11y-panel button[aria-pressed="true"] {
  border-color: var(--pink);
  background: rgba(255, 61, 166, 0.14);
  box-shadow: 0 0 12px rgba(255, 61, 166, 0.35);
}
.a11y-panel .reset { color: var(--dim); }
.a11y-panel a { color: var(--dim); font-size: 13px; }
