/* Spinclub v2 — replica of the 2026-08 landing design */

/* Poppins, self-hosted (latin subset) — the mockup's face; no Google requests */
@font-face { font-family: "Poppins"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("../assets/fonts/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("../assets/fonts/poppins-500.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("../assets/fonts/poppins-600.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("../assets/fonts/poppins-700.woff2") format("woff2"); }

:root {
  --purple: #5b45fb;
  --icon-purple: #3d24f5;
  --purple-dark: #4634e0;
  --purple-soft: #efecfd;
  --panel: #f1eefc;
  --ink: #16162e;
  --muted: #5f5f7a;
  --line: #e8e8f3;
  --soft: #f7f7fc;
  --white: #ffffff;
  --radius: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
}
.site-header .wrap {
  display: flex; align-items: center; gap: 28px;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 22px; letter-spacing: -0.01em; }
.brand img { width: 34px; height: 33px; }

.main-nav { display: flex; gap: 26px; margin-left: 14px; font-size: 15px; font-weight: 500; color: #3c3c58; }
.main-nav a:hover { color: var(--purple); }
.main-nav a.active { color: var(--purple); font-weight: 600; }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }

.lang-chip {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--line); border-radius: 10px;
  padding: 8px 12px; font-size: 14px; font-weight: 600;
  background: var(--white); cursor: default;
}
.lang-chip .chev { display: inline-flex; color: var(--muted); }
.lang-chip .flag, .lang-menu .flag { width: 21px; height: 15px; border-radius: 3px; overflow: hidden; display: inline-flex; }
.lang-chip { cursor: pointer; }
.lang-wrap { position: relative; display: inline-flex; }
.lang-menu {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 60;
  display: flex; flex-direction: column; min-width: 140px;
  background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 10px 30px rgba(35, 25, 100, 0.12); padding: 6px; gap: 2px;
}
.lang-menu[hidden] { display: none; }
.lang-menu button {
  display: flex; align-items: center; gap: 9px;
  border: 0; background: none; cursor: pointer; text-align: left;
  font: inherit; font-size: 14px; font-weight: 600; color: var(--ink);
  padding: 8px 10px; border-radius: 8px;
}
.lang-menu button:hover { background: var(--soft); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border: 0; border-radius: 10px; cursor: pointer;
  font: inherit; font-size: 15px; font-weight: 600;
  padding: 10px 20px; transition: background 0.15s, color 0.15s;
}
.btn-primary { background: var(--purple); color: #fff; }
.btn-primary:hover { background: var(--purple-dark); }
.btn-ghost { background: var(--white); color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: #c9c9e2; }
.btn-lg { padding: 14px 26px; font-size: 16px; border-radius: 12px; }

/* logged-in header state (filled in by app.js) */
.coin-chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: #fff7e3; border: 1px solid #f3e2ae; color: #8a6400;
  border-radius: 999px; padding: 7px 14px; font-size: 14px; font-weight: 700;
}
.coin-chip .coin { width: 18px; height: 18px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffe9a0, #f5b81e 65%, #d99a00);
  color: #9a6d00; font-size: 11px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center; }
.user-chip {
  display: inline-flex; align-items: center; gap: 9px;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 5px 14px 5px 5px; font-size: 14px; font-weight: 600; background: var(--white);
}
.user-chip:hover { border-color: #c9c9e2; }
.avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--purple); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700;
}

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

.hero { position: relative; overflow: hidden; background: #fafafe; }
.hero .wrap {
  display: grid; grid-template-columns: 1fr 1.05fr; gap: 30px;
  align-items: center; padding-top: 34px;
}
.hero-copy { padding-bottom: 48px; }

.pill {
  display: inline-block; background: var(--purple-soft); color: var(--purple);
  font-size: 13px; font-weight: 700; letter-spacing: 0.04em;
  border-radius: 999px; padding: 7px 15px; margin-bottom: 22px;
}
.hero h1 {
  font-size: 50px; line-height: 1.12; letter-spacing: -0.01em; font-weight: 600;
  margin-bottom: 20px;
}
.hero h1 .accent { color: var(--purple); display: block; }
.hero-sub { font-size: 17px; color: var(--muted); max-width: 380px; margin-bottom: 26px; }

.checks { display: flex; gap: 26px; margin-top: 26px; font-size: 14px; font-weight: 600; color: #3c3c58; }
.check { display: flex; align-items: flex-start; gap: 9px; max-width: 135px; }
.check .tick {
  flex: none; width: 20px; height: 20px; border-radius: 50%;
  background: var(--purple); color: #fff; font-size: 11px;
  display: inline-flex; align-items: center; justify-content: center; margin-top: 2px;
}

.hero-art { align-self: end; }
.hero-art img { width: 100%; }

/* ---------- feature strip ---------- */

.features { padding: 0 0 10px; background: #fafafe; }
.feature-card {
  background: var(--white); border-radius: 20px;
  box-shadow: 0 8px 30px rgba(35, 25, 100, 0.07);
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 34px 10px;
}
.feature { text-align: center; padding: 0 22px; border-left: 1px solid var(--line); }
.feature:first-child { border-left: 0; }
.feature h3 { font-size: 16px; margin: 14px 0 7px; }
.feature p { font-size: 13.5px; color: var(--muted); }

.icon-disc {
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--purple-soft); color: var(--icon-purple);
  display: inline-flex; align-items: center; justify-content: center;
}
.icon-disc svg { width: 29px; height: 29px; }

/* ---------- welcome bonus ---------- */

.bonus { padding: 44px 0 10px; background: #fafafe; }
.bonus-panel { background: var(--panel); border-radius: 22px; overflow: hidden; }
.bonus-main {
  display: grid; grid-template-columns: 1.1fr 1fr 0.75fr; gap: 20px;
  align-items: center; padding: 40px 44px 30px;
}
.bonus-copy .pill { background: #e2ddfc; }
.bonus-copy h2 { font-size: 32px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 12px; }
.bonus-copy p { color: var(--muted); max-width: 300px; margin-bottom: 22px; }
.bonus-copy p strong { color: var(--ink); }
.bonus-fineprint { font-size: 13px; color: var(--muted); margin-top: 12px; }
.bonus-art img { border-radius: 14px; }

.bonus-amount {
  background: var(--white); border-radius: 16px; text-align: center;
  padding: 30px 20px; box-shadow: 0 6px 24px rgba(35, 25, 100, 0.08);
}
.bonus-amount .big { font-size: 38px; font-weight: 700; color: var(--purple); line-height: 1; }
.bonus-amount .unit { font-size: 19px; font-weight: 700; margin-top: 6px; }
.bonus-amount .note { font-size: 13px; color: var(--muted); margin-top: 8px; }

.bonus-info {
  display: flex; gap: 10px; align-items: center;
  background: #eae6fb; padding: 14px 44px;
  font-size: 13.5px; color: #4c4c68;
}
.bonus-info .i {
  flex: none; width: 18px; height: 18px; border-radius: 50%;
  border: 1.5px solid #8f8fae; color: #8f8fae; font-size: 11px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; font-style: normal;
}

/* ---------- how it works ---------- */

.how { padding: 56px 0 30px; background: #fafafe; }
.how h2, .section-title { font-size: 26px; font-weight: 600; text-align: center; letter-spacing: -0.01em; margin-bottom: 40px; }
.steps { display: grid; grid-template-columns: repeat(7, auto); justify-content: center; align-items: start; gap: 8px; }
.step { text-align: center; width: 170px; }
.step-icon { position: relative; display: inline-block; }
.step-num {
  position: absolute; top: -4px; right: -8px;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--purple); color: #fff; font-size: 13px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  border: 2px solid #fafafe;
}
.step h3 { font-size: 15.5px; margin: 13px 0 6px; }
.step p { font-size: 13px; color: var(--muted); }
.step-arrow { color: #c4c4dd; font-size: 20px; margin-top: 22px; }

/* ---------- trust strip ---------- */

.trust { padding: 34px 0 46px; background: #fafafe; }
.trust-card {
  background: var(--soft); border: 1px solid var(--line); border-radius: 18px;
  display: grid; grid-template-columns: repeat(4, 1fr); padding: 26px 8px;
}
.trust-item { display: flex; gap: 13px; padding: 0 20px; border-left: 1px solid var(--line); }
.trust-item:first-child { border-left: 0; }
.trust-item .icon-disc { width: 46px; height: 46px; flex: none; background: #edecf9; color: #232350; }
.trust-item .icon-disc svg { width: 21px; height: 21px; }
.trust-item .badge18 { font-weight: 700; font-size: 14px; }
.trust-item h4 { font-size: 14.5px; margin-bottom: 3px; }
.trust-item p { font-size: 12.5px; color: var(--muted); }

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

.site-footer { border-top: 1px solid var(--line); padding: 44px 0 26px; background: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 0.8fr 0.9fr 0.8fr 1.2fr; gap: 26px; }
.footer-brand .brand { margin-bottom: 16px; }
.social { display: flex; gap: 10px; }
.social a {
  width: 34px; height: 34px; border-radius: 9px;
  border: 1px solid var(--line); color: #56567a;
  display: inline-flex; align-items: center; justify-content: center;
}
.social a:hover { color: var(--purple); border-color: #c9c9e2; }
.social svg { width: 16px; height: 16px; }

.footer-col h5 { font-size: 14px; margin-bottom: 12px; }
.footer-col a { display: block; font-size: 13.5px; color: var(--muted); margin-bottom: 9px; }
.footer-col a:hover { color: var(--purple); }

.anywhere {
  background: var(--soft); border: 1px solid var(--line); border-radius: 14px;
  padding: 18px 20px; font-size: 13px; color: var(--muted); align-self: start;
}
.anywhere h5 { font-size: 14px; color: var(--ink); margin-bottom: 5px; }
.devices { display: flex; gap: 12px; margin-top: 12px; color: #56567a; }
.devices svg { width: 20px; height: 20px; }

.copyright { text-align: center; font-size: 13px; color: var(--muted); margin-top: 34px; }

/* ---------- subpages ---------- */

.page-hero { background: #fafafe; padding: 52px 0 40px; }
.page-hero h1 { font-size: 38px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 12px; }
.page-hero .lede { font-size: 17px; color: var(--muted); max-width: 560px; }
.page-hero .pill { margin-bottom: 18px; }

.page-body { padding: 44px 0 64px; }
.page-body h2 { font-size: 22px; margin: 34px 0 12px; letter-spacing: -0.01em; }
.page-body h2:first-child { margin-top: 0; }
.page-body p { color: var(--muted); max-width: 640px; margin-bottom: 12px; }
.page-body ul { color: var(--muted); max-width: 640px; margin: 0 0 12px 20px; }
.page-body li { margin-bottom: 7px; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; margin: 24px 0; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px;
}
.card h3 { font-size: 16px; margin: 12px 0 6px; }
.card p { font-size: 13.5px; color: var(--muted); margin: 0; }

.split { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 36px; align-items: center; }
.split img { border-radius: 18px; }

.notice {
  background: var(--soft); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 18px; font-size: 13.5px; color: #4c4c68; margin: 20px 0; max-width: 640px;
}

.cta-band {
  background: var(--panel); border-radius: 20px; text-align: center;
  padding: 40px 24px; margin-top: 48px;
}
.cta-band h2 { font-size: 26px; margin-bottom: 8px; }
.cta-band p { color: var(--muted); margin-bottom: 20px; }

.sparse { color: #9a9ab4; font-size: 14px; font-style: italic; }

/* ---------- auth pages ---------- */

.auth-shell { min-height: calc(100vh - 72px); display: grid; grid-template-columns: 1fr 1fr; }
.auth-side {
  background: #0d0b1e url("../assets/logo-glow.png") center / cover no-repeat;
  display: flex; align-items: flex-end; padding: 40px;
}
.auth-side .tag { color: #cfc8ff; font-size: 15px; font-weight: 600; text-shadow: 0 2px 12px rgba(0,0,0,0.6); }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 48px 24px; background: #fafafe; }
.auth-card { width: 100%; max-width: 400px; }
.auth-card h1 { font-size: 28px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 8px; }
.auth-card .sub { color: var(--muted); font-size: 14.5px; margin-bottom: 26px; }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 15px;
  border: 1px solid var(--line); border-radius: 10px;
  padding: 11px 14px; background: var(--white);
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--purple-soft); border-color: var(--purple); }
.form-note { font-size: 13px; color: var(--muted); margin-top: 14px; text-align: center; }
.form-note a { color: var(--purple); font-weight: 600; }
.form-error { color: #c02942; font-size: 13.5px; margin-bottom: 12px; display: none; }

/* ---------- account ---------- */

.account-main { background: #fafafe; padding: 26px 0 56px; }

.account-greeting { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 20px; }
.account-greeting h1 { font-size: 21px; font-weight: 700; letter-spacing: -0.01em; }
.account-greeting .lede { font-size: 13.5px; color: var(--muted); }

.info-banner {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  background: var(--purple-soft); border-radius: 12px;
  padding: 14px 20px; font-size: 14px; color: #45456a; text-align: center;
}
.info-banner .i {
  flex: none; width: 20px; height: 20px; border-radius: 50%;
  border: 1.5px solid #7a7aa0; color: #7a7aa0;
  font-size: 12px; font-weight: 700; font-style: normal;
  display: inline-flex; align-items: center; justify-content: center;
}

.account-head { text-align: center; margin: 34px 0 26px; }
.account-head h2 { font-size: 33px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 8px; }
.account-head p { font-size: 16px; color: #3f3f5e; }

/* the Spinny / Finn chooser */

.chooser { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.chooser-vs {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 4;
  width: 62px; height: 62px; border-radius: 50%;
  background: var(--white); color: var(--purple);
  font-size: 19px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(35, 25, 100, 0.18);
}
.chooser-card {
  position: relative; overflow: hidden; border-radius: 20px;
  min-height: 620px; padding: 18px;
  display: flex; flex-direction: column; color: #fff;
  background: linear-gradient(180deg, var(--grad-top), var(--grad-bottom));
}
.chooser-spinny { --grad-top: #8a63f6; --grad-bottom: #4415cd; --tag-ink: #d6349e; }
.chooser-finn   { --grad-top: #9dbdf7; --grad-bottom: #1550db; --tag-ink: #1550db; }
.chooser-art {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%;
  object-fit: contain; object-position: center top;
}
.chooser-card::after {
  content: ""; position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, var(--grad-bottom) 78%);
}
.vol-tag, .chooser-body { position: relative; z-index: 3; }
.vol-tag {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--white); color: var(--tag-ink);
  border-radius: 999px; padding: 6px 13px; font-size: 12.5px; font-weight: 600;
}
.vol-tag svg { width: 14px; height: 14px; }
.chooser-body { margin-top: auto; padding: 0 6px; }
.chooser-body h3 { font-size: 34px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 8px; }
.chooser-body p { font-size: 15px; color: rgba(255, 255, 255, 0.93); max-width: 290px; margin-bottom: 16px; }
.chooser-traits { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 0; }
.chooser-traits li {
  background: rgba(255, 255, 255, 0.22); border-radius: 999px;
  padding: 6px 13px; font-size: 12.5px; font-weight: 600;
}
.btn-choose {
  width: 100%; background: var(--white); color: var(--grad-bottom);
  font-size: 17px; font-weight: 700; padding: 16px 20px; border-radius: 12px;
}
.btn-choose:hover { background: #f1eefc; }
.chooser-card.is-chosen { box-shadow: 0 0 0 3px #ffce4d; }

/* balance panel */

.balance-panel {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px;
  background: var(--white); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 8px 30px rgba(35, 25, 100, 0.06);
  padding: 22px 26px; margin-top: 26px;
}
.balance-figure { display: flex; align-items: center; gap: 18px; }
.balance-figure .coin-stack { flex: none; display: inline-flex; }
.balance-figure .label { font-size: 14.5px; color: #3f3f5e; }
.balance-figure .amount { font-size: 34px; font-weight: 700; color: var(--purple); line-height: 1.15; }
.balance-figure .unit { font-size: 14px; color: var(--muted); }
.balance-note {
  font-size: 14.5px; color: #3f3f5e; max-width: 330px;
  border-left: 1px solid var(--line); padding-left: 28px;
}
.balance-how {
  display: flex; align-items: center; gap: 12px;
  background: var(--purple-soft); border-radius: 14px; padding: 15px 20px;
}
.balance-how:hover { background: #e4dffc; }
.balance-how .disc {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  background: var(--purple); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
}
.balance-how .disc svg { width: 15px; height: 15px; }
.balance-how strong { display: block; color: var(--purple); font-size: 15.5px; }
.balance-how .sub { display: block; font-size: 13px; color: var(--muted); }

/* "How Play for Me works" panel */

.account-panel {
  background: var(--white); border: 1px solid var(--line); border-radius: 18px;
  padding: 30px 20px; margin-top: 22px;
}
.panel-title { font-size: 21px; font-weight: 700; text-align: center; letter-spacing: -0.01em; margin-bottom: 28px; }
.account-panel .step-num { border-color: var(--white); }

/* safe & fair banner */

.safe-banner {
  display: flex; align-items: center; gap: 18px;
  background: var(--purple-soft); border-radius: 18px;
  padding: 20px 24px; margin-top: 22px;
}
.safe-banner .icon-disc { flex: none; width: 52px; height: 52px; background: #ddd6fb; color: var(--icon-purple); }
.safe-banner .icon-disc svg { width: 25px; height: 25px; }
.safe-banner h3 { font-size: 17px; color: var(--purple); margin-bottom: 3px; }
.safe-banner p { font-size: 14.5px; color: #3f3f5e; }
.btn-learn { margin-left: auto; flex: none; background: #ddd6fb; color: var(--purple); padding: 14px 26px; }
.btn-learn:hover { background: #cec4f9; }

.account-fineprint { font-size: 12.5px; color: var(--muted); text-align: center; margin-top: 22px; }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .main-nav { display: none; }
  .hero .wrap, .split, .auth-shell { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .bonus-main { grid-template-columns: 1fr; padding: 30px 26px 24px; }
  .feature-card, .trust-card { grid-template-columns: 1fr 1fr; row-gap: 26px; }
  .feature, .trust-item { border-left: 0; }
  .steps { grid-template-columns: 1fr; }
  .step { width: auto; }
  .step-arrow { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 38px; }

  /* account: the two chooser cards stack, VS drops into the gap between them */
  .chooser { grid-template-columns: 1fr; gap: 10px; }
  .chooser-vs { position: static; transform: none; margin: -14px auto; }
  .chooser-card { min-height: 540px; }
  .account-head h2 { font-size: 26px; }
  .balance-panel { grid-template-columns: 1fr; gap: 20px; }
  .balance-note { border-left: 0; padding-left: 0; max-width: none; }
  .balance-how { justify-content: center; }
  .safe-banner { flex-wrap: wrap; }
  .btn-learn { margin-left: 0; width: 100%; }
}

.icon-disc .cut { fill: var(--purple-soft); stroke: none; }
.icon-disc .cutstroke { stroke: var(--purple-soft); }
