/* SMM-LeadPay design system: tokens, base, shared components.
 * Concept: "agreed before payment" — a quote ticket, a status track, lime only as the go/approved signal.
 * Body text 16px, secondary text never below 14px; sizes in rem. */

/* Inter and Manrope, self-hosted variable WOFF2, SIL OFL 1.1 (assets/fonts). */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/assets/fonts/inter-cyrillic-var.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/assets/fonts/inter-latin-ext-var.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/assets/fonts/inter-latin-var.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 600 800; font-display: swap; src: url(/assets/fonts/manrope-cyrillic-var.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 600 800; font-display: swap; src: url(/assets/fonts/manrope-latin-ext-var.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 600 800; font-display: swap; src: url(/assets/fonts/manrope-latin-var.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

@view-transition { navigation: auto; }

@property --ring-angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

:root {
  color-scheme: light;
  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Manrope', 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;

  --bg: #F3F3F7;
  --bg-tint: #ECECF2;
  --surface: #FFFFFF;
  --surface-2: #FAFAFD;
  --surface-sunken: #EFEFF4;
  --ink: #0C0C14;
  --ink-2: #33344A;
  --muted: #5A5C6E;
  --faint: #868899;
  --line: #E1E1EA;
  --line-2: #D0D0DC;
  --line-soft: #EAEAF1;
  --grid: rgba(12, 12, 20, .055);

  --violet: #5B4FE9;
  --violet-hover: #4B3FDB;
  --violet-text: #4C40DC;
  --violet-soft: #EEECFF;
  --violet-line: #D6D1FF;
  --lime: #C8FF3D;
  --lime-hover: #BCF52B;
  --lime-ink: #142000;
  --lime-text: #3F5A00;
  --lime-soft: #F0FCCB;

  --invert-bg: #0C0C14;
  --invert-ink: #FFFFFF;

  --amber-bg: #FFF3D4; --amber-ink: #7E5300;
  --blue-bg: #E3EFFF; --blue-ink: #1550AE;
  --green-bg: #DFF6E8; --green-ink: #126B3C;
  --red-bg: #FDE7E6; --red-ink: #AF2116;
  --slate-bg: #E9EBF1; --slate-ink: #454D66;

  --shadow-sm: 0 1px 2px rgba(16, 16, 32, .05);
  --shadow: 0 1px 2px rgba(16, 16, 32, .04), 0 6px 16px -8px rgba(16, 16, 32, .10);
  --shadow-lg: 0 2px 4px rgba(16, 16, 32, .04), 0 28px 56px -28px rgba(36, 26, 130, .30);
  --highlight: inset 0 1px 0 rgba(255, 255, 255, .7);

  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 64px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #08080D;
  --bg-tint: #0D0D14;
  --surface: #101018;
  --surface-2: #14141D;
  --surface-sunken: #0B0B11;
  --ink: #F2F2F7;
  --ink-2: #CACBD8;
  --muted: #9C9EB2;
  --faint: #6F7185;
  --line: #23232F;
  --line-2: #30303E;
  --line-soft: #1A1A24;
  --grid: rgba(255, 255, 255, .045);

  --violet: #7166FF;
  --violet-hover: #8278FF;
  --violet-text: #ABA5FF;
  --violet-soft: #1A1736;
  --violet-line: #39336E;
  --lime-text: #C8FF3D;
  --lime-soft: #1C2409;

  --invert-bg: #F2F2F7;
  --invert-ink: #0C0C14;

  --amber-bg: #2A2110; --amber-ink: #F2C25A;
  --blue-bg: #0F1D35; --blue-ink: #82B6FF;
  --green-bg: #0D251A; --green-ink: #66D49E;
  --red-bg: #2C1414; --red-ink: #FF8D85;
  --slate-bg: #1A1C26; --slate-ink: #AAB2CA;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 8px 20px -10px rgba(0, 0, 0, .6);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 32px 64px -32px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .02);
  --highlight: inset 0 1px 0 rgba(255, 255, 255, .05);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --bg: #08080D; --bg-tint: #0D0D14; --surface: #101018; --surface-2: #14141D; --surface-sunken: #0B0B11;
    --ink: #F2F2F7; --ink-2: #CACBD8; --muted: #9C9EB2; --faint: #6F7185;
    --line: #23232F; --line-2: #30303E; --line-soft: #1A1A24; --grid: rgba(255, 255, 255, .045);
    --violet: #7166FF; --violet-hover: #8278FF; --violet-text: #ABA5FF; --violet-soft: #1A1736; --violet-line: #39336E;
    --lime-text: #C8FF3D; --lime-soft: #1C2409; --invert-bg: #F2F2F7; --invert-ink: #0C0C14;
  }
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 24px); interpolate-size: allow-keywords; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink);
  font: 400 1rem/1.6 var(--font-sans); letter-spacing: -.006em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
svg.icon { display: inline-block; width: 1.125em; height: 1.125em; flex: none; vertical-align: -.2em; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 700; letter-spacing: -.03em; line-height: 1.12; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2.125rem, 1.45rem + 2.4vw, 3.5rem); letter-spacing: -.04em; line-height: 1.04; }
h2 { font-size: clamp(1.625rem, 1.2rem + 1.5vw, 2.5rem); }
h3 { font-size: 1.1875rem; letter-spacing: -.02em; line-height: 1.3; }
h4 { font-size: 1.0625rem; letter-spacing: -.015em; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
strong, b { font-weight: 650; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd, figure { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
legend { padding: 0; }
time { font-variant-numeric: tabular-nums; }
address { font-style: normal; }
::selection { background: var(--lime); color: var(--lime-ink); }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }
[hidden] { display: none !important; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: 12px; z-index: 100; padding: 10px 16px; border-radius: var(--radius-sm); background: var(--invert-bg); color: var(--invert-ink); font-weight: 600; transform: translateY(-160%); transition: transform .2s var(--ease); }
.skip-link:focus { transform: none; }
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.pre-wrap { white-space: pre-wrap; overflow-wrap: anywhere; }
.num, .tabular { font-variant-numeric: tabular-nums; }

/* Eyebrow: index-style label, never uppercase-shouting */
.eyebrow, .section-pill {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px;
  font: 600 .875rem/1.4 var(--font-sans); letter-spacing: .01em; color: var(--violet-text);
}
.eyebrow::before, .section-pill::before { content: ''; width: 14px; height: 2px; border-radius: 2px; background: currentColor; }
a.eyebrow:hover { color: var(--ink); }

/* Brand */
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 1.0625rem/1 var(--font-display); letter-spacing: -.03em; color: var(--ink); white-space: nowrap; }
.brand-icon, .mobile-brand-icon {
  display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 9px; color: #fff;
  background: linear-gradient(140deg, #6C61FF 0%, #5B4FE9 55%, #4639D6 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 4px 12px -4px rgba(91, 79, 233, .55);
}
.brand-icon svg, .mobile-brand-icon svg { width: 20px; height: 20px; }

/* Buttons: lime = go, ink = firm, outline = secondary */
.button {
  --btn-bg: var(--lime); --btn-ink: var(--lime-ink); --btn-line: transparent; --btn-hover: var(--lime-hover);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 20px; border: 1px solid var(--btn-line); border-radius: 10px;
  background: var(--btn-bg); color: var(--btn-ink); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 1px 2px rgba(16, 16, 32, .08);
  font: 600 1rem/1.2 var(--font-sans); letter-spacing: -.01em; white-space: nowrap; cursor: pointer;
  transition: background-color .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease), box-shadow .18s var(--ease);
}
.button:hover { background: var(--btn-hover); }
.button .icon { transition: transform .2s var(--ease); }
.button:hover .icon { transform: translateX(2px); }
.button:active { box-shadow: inset 0 1px 2px rgba(0, 0, 0, .12); }
.button:disabled, .button[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.button-dark { --btn-bg: var(--invert-bg); --btn-ink: var(--invert-ink); --btn-hover: color-mix(in srgb, var(--invert-bg) 86%, var(--violet)); box-shadow: var(--highlight), var(--shadow-sm); }
.button-violet { --btn-bg: var(--violet); --btn-ink: #fff; --btn-hover: var(--violet-hover); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 4px 14px -6px rgba(91, 79, 233, .6); }
.button-outline { --btn-bg: var(--surface); --btn-ink: var(--ink); --btn-line: var(--line-2); --btn-hover: var(--surface-2); box-shadow: var(--shadow-sm); }
.button-outline:hover { border-color: color-mix(in srgb, var(--ink) 35%, var(--line-2)); }
.button-ghost { --btn-bg: transparent; --btn-ink: var(--ink); --btn-hover: var(--bg-tint); box-shadow: none; }
.button-small { min-height: 38px; padding: 0 14px; font-size: .9375rem; gap: 8px; border-radius: 9px; }
.button-block { display: flex; width: 100%; white-space: normal; text-align: left; }
.button-block .icon:last-child { margin-left: auto; }
.text-button, .logout-button {
  display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0; border: 0; background: none;
  color: var(--violet-text); font-weight: 600; font-size: .9375rem; cursor: pointer;
}
.text-button:hover { color: var(--ink); }
.text-button.muted { color: var(--muted); font-weight: 500; }
.text-button.muted:hover { color: var(--red-ink); }
.text-link, .link-arrow {
  display: inline-flex; align-items: center; gap: 6px; color: var(--violet-text); font-weight: 600;
  transition: color .18s var(--ease);
}
.text-link .icon, .link-arrow .icon { transition: transform .2s var(--ease); }
.text-link:hover, .link-arrow:hover { color: var(--ink); }
.text-link:hover .icon, .link-arrow:hover .icon { transform: translateX(3px); }

/* Notices */
.notice {
  position: relative; display: block; margin: 16px 0; padding: 14px 16px 14px 38px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); color: var(--ink-2); font-size: .9375rem; line-height: 1.55; box-shadow: var(--shadow-sm);
}
.notice::before { content: ''; position: absolute; top: 22px; left: 16px; width: 8px; height: 8px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 0 4px var(--violet-soft); }
.notice.success { border-color: color-mix(in srgb, var(--green-ink) 30%, var(--line)); background: color-mix(in srgb, var(--green-bg) 55%, var(--surface)); }
.notice.success::before { background: var(--green-ink); box-shadow: 0 0 0 4px var(--green-bg); }
.notice.error, .notice.notice-error { border-color: color-mix(in srgb, var(--red-ink) 30%, var(--line)); background: color-mix(in srgb, var(--red-bg) 55%, var(--surface)); color: var(--ink); }
.notice.error::before, .notice.notice-error::before { background: var(--red-ink); box-shadow: 0 0 0 4px var(--red-bg); }
.notice.info { background: color-mix(in srgb, var(--violet-soft) 60%, var(--surface)); border-color: var(--violet-line); }

/* Platform marks */
.platform-mark {
  --pm-bg: var(--surface-sunken); --pm-ink: var(--ink);
  display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 11px;
  background: var(--pm-bg); color: var(--pm-ink); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--pm-ink) 10%, transparent);
}
.platform-mark svg { width: 20px; height: 20px; }
.platform-mark.vk { --pm-bg: #E6F0FF; --pm-ink: #0062D6; }
.platform-mark.facebook { --pm-bg: #E7EFFF; --pm-ink: #0757D8; }
.platform-mark.reddit { --pm-bg: #FFECE3; --pm-ink: #D13A00; }
.platform-mark.x { --pm-bg: #ECECF0; --pm-ink: #0C0C14; }
.platform-mark.youtube { --pm-bg: #FFE9EC; --pm-ink: #D3132A; }
.platform-mark.claude { --pm-bg: #F9ECE5; --pm-ink: #B0502B; }
.platform-mark.chatgpt { --pm-bg: #E2F3ED; --pm-ink: #0F6B52; }
.platform-mark.gemini { --pm-bg: #E9EEFF; --pm-ink: #3F5BD0; }
.platform-mark.google { --pm-bg: var(--violet-soft); --pm-ink: var(--violet-text); }
.platform-mark.xai { --pm-bg: #ECECF0; --pm-ink: #22232E; }
:root[data-theme="dark"] .platform-mark.vk { --pm-bg: #0E1E36; --pm-ink: #6AAEFF; }
:root[data-theme="dark"] .platform-mark.facebook { --pm-bg: #0F1C38; --pm-ink: #7FA9FF; }
:root[data-theme="dark"] .platform-mark.reddit { --pm-bg: #33190F; --pm-ink: #FF8A5B; }
:root[data-theme="dark"] .platform-mark.x { --pm-bg: #22222C; --pm-ink: #F3F3F7; }
:root[data-theme="dark"] .platform-mark.youtube { --pm-bg: #36161B; --pm-ink: #FF7A88; }
:root[data-theme="dark"] .platform-mark.claude { --pm-bg: #33221B; --pm-ink: #F2A27E; }
:root[data-theme="dark"] .platform-mark.chatgpt { --pm-bg: #12291F; --pm-ink: #74D3B3; }
:root[data-theme="dark"] .platform-mark.gemini { --pm-bg: #18203F; --pm-ink: #9DB2FF; }
:root[data-theme="dark"] .platform-mark.xai { --pm-bg: #22222C; --pm-ink: #E6E8F3; }

/* Surfaces */
.panel {
  position: relative; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface);
  box-shadow: var(--highlight), var(--shadow);
}
.form-panel { padding: clamp(20px, 2.4vw, 28px); }
.form-panel > h2, .panel-heading h2 { font-size: 1.1875rem; letter-spacing: -.02em; }
.form-panel > h2 { margin-bottom: 16px; }
.form-panel > p:not(.field-hint):not(.eyebrow) { color: var(--ink-2); }
.form-panel > p + p { margin-top: 8px; }

/* Spotlight surface (pointer-follow glow, set by app.js) */
.spot { position: relative; isolation: isolate; }
.spot::after {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--violet) 9%, transparent), transparent 60%);
  transition: opacity .3s var(--ease);
}
.spot:hover::after { opacity: 1; }

/* Theme + language controls */
.theme-toggle {
  display: inline-grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); color: var(--ink-2); box-shadow: var(--shadow-sm); transition: color .15s, border-color .15s;
}
.theme-toggle:hover { color: var(--ink); border-color: var(--line-2); }
.theme-toggle .icon { width: 18px; height: 18px; }
.theme-toggle > span { display: none; }
.theme-toggle[data-mode="light"] .theme-light, .theme-toggle[data-mode="dark"] .theme-dark, .theme-toggle[data-mode="system"] .theme-system { display: inline-grid; }
.language-switch { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); box-shadow: var(--shadow-sm); }
.language-switch a { display: grid; place-items: center; min-width: 34px; height: 30px; padding: 0 6px; border-radius: 7px; color: var(--muted); font-size: .875rem; font-weight: 600; transition: color .15s, background-color .15s; }
.language-switch a:hover { color: var(--ink); }
.language-switch a[aria-current="page"] { background: var(--invert-bg); color: var(--invert-ink); }

/* Motion */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes ring-spin { to { --ring-angle: 360deg; } }
@keyframes pulse-dot { 50% { opacity: .35; } }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  @supports (animation-timeline: view()) {
    .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .22s; }

/* Live buttons: a 1px lift, a soft glow in the button's own colour, one sheen across the lime CTA, a press-down on click. */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .button { transition: background-color .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease), box-shadow .24s var(--ease), transform .24s var(--ease); }
  .button:not(:disabled):hover { transform: translateY(-1px); }
  .button:not(:disabled):active { transform: translateY(0) scale(.985); transition-duration: .08s; }
  .button:not(.button-outline):not(.button-ghost):not(.button-on-dark):not(:disabled):hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 12px 24px -14px color-mix(in srgb, var(--btn-bg) 70%, #000); }
  .button-dark:not(:disabled):hover { box-shadow: var(--highlight), 0 12px 26px -14px rgba(91, 79, 233, .75); }
  .button-outline:not(:disabled):hover { box-shadow: 0 10px 20px -14px rgba(16, 16, 32, .4); }
  .button:not(.button-dark):not(.button-violet):not(.button-outline):not(.button-ghost):not(.button-on-dark)::after {
    content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .62) 50%, transparent 62%) no-repeat; background-size: 260% 100%; background-position: 130% 0;
  }
  .button:not(:disabled):hover::after { background-position: -30% 0; transition: background-position .75s var(--ease); }
}
.button:focus-visible, .text-button:focus-visible, .text-link:focus-visible, .link-arrow:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; }
.num, .tabular { font-variant-numeric: tabular-nums; }

@media (max-width: 420px) {
  .button { max-width: 100%; white-space: normal; text-align: center; }
}
@media print {
  .reveal { animation: none !important; opacity: 1 !important; transform: none !important; }
  .site-header, .theme-toggle, .menu-toggle, .ticket-seal { display: none !important; }
}
