/* Visual style from the supplied reference. Existing copy and UI logic stay in app.js. */
@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('/loyalty/manrope.ttf') format('truetype');
}
:root {
  --ink: #19172c;
  --muted: #656173;
  --paper: #fbfaff;
  --line: #e8e5ef;
  --green: #6c48df;
  --mint: #f1ecfd;
  --lime: #e9dcff;
  --red: #a82745;
  font-family: Manrope, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
html { scroll-behavior: smooth; }
body { background: var(--paper); }
::selection { background: #e2d6ff; color: var(--ink); }
:focus-visible { outline: 3px solid #5932c6; outline-offset: 5px; }
h1, h2, h3 { font-weight: 800; }
h1 { line-height: 1.1; letter-spacing: -.05em; }
p { line-height: 1.8; }
.site-header {
  padding: 20px 28px;
  border-bottom: 0;
  gap: 24px;
}
.brand { gap: 18px; min-width: 0; }
.site-logo { display: block; width: 246px; height: auto; border-radius: 8px; }
.brand-product { font-size: 13px; line-height: 1.25; letter-spacing: -.025em; }
.brand-caption { font-size: 9px; line-height: 1.4; font-weight: 500; }
.company-settings { margin-top: 28px; border-top: 1px solid var(--line); padding-top: 20px; }
.company-settings summary { cursor: pointer; padding: 8px 0; font-weight: 700; }
.company-settings > p { font-size: 14px; margin: 12px 0 20px; }
.shop-grid > .empty { grid-column: 1 / -1; }
.consent-table time { white-space: nowrap; }
.consent-table .consent-state { font-weight: 700; }
.consent-table tr.consent-ended > td { background: #fff0f2; color: #8f1d35; border-bottom-color: #f3ced8; }
.consent-table tr.consent-ended .muted { color: #923349; }
.site-header nav { gap: 24px; }
.site-header nav > a:not(.button) { font-weight: 700; color: #514c63; }
.site-footer { padding: 32px 28px 44px; border-color: var(--line); }
main { padding: 46px 28px 80px; }
.button, button {
  border-radius: 15px;
  padding: 15px 24px;
  font-size: 14px;
  font-weight: 750;
  transition: background-color .18s, box-shadow .18s, transform .18s;
}
.button.primary, button.primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 10px 24px #7152ed22;
}
.button.outline, button.outline { background: #fff; border-color: var(--line); }
.button.small, button.small { font-size: 13px; padding: 12px 18px; }
.button.primary:hover, button.primary:not(:disabled):hover {
  background: #5b37cb;
  box-shadow: 0 14px 30px #7152ed33;
}
button:disabled { cursor: not-allowed; box-shadow: none; }
.hero {
  grid-template-columns: 1.08fr .92fr;
  gap: 48px;
  padding: 10px 0 86px;
}
.hero > div:first-child { min-width: 0; }
.hero h1 { font-size: clamp(46px, 5.1vw, 68px); margin: 24px 0 26px; }
.hero h1 em { color: var(--green); }
.hero p { font-size: 16px; line-height: 1.85; }
.hero > div > .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 15px;
  border: 1px solid #e5dcfb;
  border-radius: 100px;
  background: #f2edff;
  color: #5f3ac9;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .02em;
  line-height: 1.4;
}
.hero > div > .eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: #9c7cff;
}
.hero-note { margin-top: 24px; color: var(--muted); }
.demo-frame {
  position: relative;
  isolation: isolate;
  background: none;
  padding: 36px 34px;
  border-radius: 0;
  transform: none;
}
.demo-frame::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 -20px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, #e4dcff 0, #f1ebff 46%, transparent 72%);
}
.phone {
  position: relative;
  width: 256px;
  max-width: 100%;
  padding: 29px 18px 20px;
  border: 8px solid #292536;
  border-radius: 38px;
  background: #fff;
  box-shadow: 20px 28px 52px #2d1e6b28;
  transform: rotate(-6deg);
}
.phone::before {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 64px;
  height: 12px;
  background: #292536;
  border-radius: 0 0 12px 12px;
}
.phone .eyebrow { color: #615a72; font-size: 10px; letter-spacing: .08em; }
.phone .offer {
  padding: 22px 12px;
  margin: 17px 0 12px;
  border-radius: 20px;
  background: linear-gradient(140deg, #704aed, #a579f3);
  color: #fff;
  font-size: 64px;
  line-height: 1.05;
}
.phone p { font-size: 12px; line-height: 1.6; margin-bottom: 14px; }
.phone small { font-size: 10px; }
.phone .fake-input { font-size: 12px; padding: 12px 9px; border-color: var(--line); }
.phone .button { min-height: 40px; padding: 11px 12px; font-size: 12px; }
.phone p:last-child { margin: 14px 0 0; }
.demo-checks { gap: 5px; margin: 12px 0; }
.chip { background: #f2edff; color: #5133a6; padding: 6px 7px; font-size: 10px; }
.floating-tag {
  right: -5px;
  bottom: 76px;
  padding: 17px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 18px 44px #28204418;
  font-size: 12px;
  font-weight: 700;
  transform: rotate(5deg);
}
#how {
  padding: 44px;
  border-radius: 32px;
  background: #f2effb;
}
#how > h2 { margin-bottom: 30px; }
.step-grid { gap: 18px; }
.step { padding: 28px 25px; border-radius: 23px; border-color: #e9e3f6; }
.step .number { color: #6743c6; background: #f2edff; margin-bottom: 23px; }
.step h3 { font-size: 19px; }
.step p { line-height: 1.85; }
.evotor-section { margin-top: 52px; padding: 42px; border-radius: 32px; }
.evotor-heading { align-items: flex-start; }
.evotor-heading h2 { max-width: 660px; }
.version-tag { background: #6c48df; border-radius: 12px; padding: 11px 16px; }
.evotor-models { gap: 10px; margin-bottom: 26px; }
.evotor-models li { background: #f5f1ff; border-color: #e6def7; padding: 11px 15px; }
.evotor-install { padding-top: 28px; margin-top: 28px; }
.hero ~ .section:last-child {
  margin-top: 48px;
  padding: 44px;
  border-radius: 32px;
  background: #20193e;
  color: #fff;
}
.hero ~ .section:last-child .muted { color: #d3cde5; margin-bottom: 0; }
.card { border-color: var(--line); border-radius: 24px; box-shadow: 0 10px 32px #30204405; }
.field input, .field textarea, .field select { border-color: #d8d2e3; border-radius: 12px; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: #8260e5; }
.field input[readonly] { background: #f9f7fd; }
.logo-preview { background: #f7f4fd; border-color: var(--line); }
.logo-editor { border-color: var(--line); border-radius: 16px; }
.channel-label { border-color: #ddd7e9; border-radius: 12px; }
.channel-label:has(input:checked) { border-color: #7550d9; background: #f1ebfc; }
.notice, .phone-call { border-radius: 16px; }
.phone-call { border-color: #e1d8f3; background: #fcfaff; }
.form-message.success { color: #246d52; }
.notice.error, .form-message.error { color: var(--red); }
.shop-card { border-radius: 24px; min-width: 0; }
.affiliate-card { margin: 0 0 28px; min-width: 0; }
.affiliate-card h2 { margin-top: 0; }
.affiliate-card .field { margin-bottom: 10px; min-width: 0; }
.affiliate-card input { min-width: 0; max-width: 100%; }
.affiliate-stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin: 24px 0 10px; }
.affiliate-stats > div { padding: 15px; border-radius: 14px; background: #f5f1ff; min-width: 0; }
.affiliate-stats dt { color: var(--muted); font-size: 13px; }
.affiliate-stats dd { margin: 6px 0 0; font-size: 24px; font-weight: 750; overflow-wrap: anywhere; }
.affiliate-card .affiliate-help, .affiliate-card > small { font-size: 13px; line-height: 1.6; }
.affiliate-card > small { display: block; margin-top: 18px; }
.affiliate-card button { max-width: 100%; white-space: normal; }
.affiliate-history { margin-top: 18px; }
.affiliate-history summary { cursor: pointer; font-weight: 650; }
.affiliate-history ul { padding-left: 20px; }
.affiliate-history li { margin-top: 12px; overflow-wrap: anywhere; }
@media (max-width: 560px) { .affiliate-stats { grid-template-columns: 1fr; gap: 8px; } .affiliate-stats > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; } .affiliate-stats dd { margin: 0; font-size: 22px; } }
.shop-card .shop-head > :first-child { min-width: 0; overflow-wrap: anywhere; }
.shop-action-groups { display: grid; gap: 22px; margin-top: 24px; }
.shop-action-group { min-width: 0; padding-top: 20px; border-top: 1px solid var(--line); }
.shop-action-group > h3 { margin: 0 0 12px; font-size: 15px; line-height: 1.4; }
.shop-action-group .actions { margin: 0; gap: 10px; }
.shop-action-group .actions > * { max-width: 100%; text-align: center; white-space: normal; }
.shop-terminal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.terminal-actions { min-width: 0; padding: 16px; border-radius: 16px; background: #f8f5ff; }
.terminal-actions h4 { margin: 0 0 12px; font-size: 14px; line-height: 1.4; }
.terminal-actions .actions { align-items: stretch; }
.terminal-actions .actions > * { width: 100%; }
.terminal-actions .pair-notice { margin: 14px 0 0; padding: 14px; font-size: 13px; overflow-wrap: anywhere; }
.terminal-access { margin-top: 18px; }
.terminal-access > p { margin: 8px 0 0; font-size: 12px; line-height: 1.6; }
#editorArea, #storeEditor, :is(#widgetSettingsForm, #wheelSettingsForm, #cartSettingsForm, #timerSettingsForm, #telegramForm), :is(#widgetSnippet, #wheelSnippet, #cartSnippet, #timerSnippet) { min-width: 0; max-width: 100%; }
#telegramForm > *, #telegramForm .section-heading > *, #telegramForm .actions > * { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
#telegramForm fieldset { margin: 0; padding: 16px; border: 1px solid var(--line); border-radius: 14px; display: grid; gap: 14px; }
#telegramForm legend { max-width: 100%; padding: 0 6px; font-size: 14px; font-weight: 650; white-space: normal; }
:is(#widgetSettingsForm, #wheelSettingsForm, #cartSettingsForm, #timerSettingsForm) { grid-template-columns: minmax(0, 1fr); }
:is(#widgetSettingsForm, #wheelSettingsForm, #cartSettingsForm, #timerSettingsForm) > *, :is(#widgetSettingsForm, #wheelSettingsForm, #cartSettingsForm, #timerSettingsForm) .field, :is(#widgetSettingsForm, #wheelSettingsForm, #cartSettingsForm, #timerSettingsForm) .section-heading > * { min-width: 0; max-width: 100%; }
:is(#widgetSettingsForm, #wheelSettingsForm, #cartSettingsForm, #timerSettingsForm) p, :is(#widgetSettingsForm, #wheelSettingsForm, #cartSettingsForm, #timerSettingsForm) .check span, :is(#widgetSnippet, #wheelSnippet, #cartSnippet, #timerSnippet) a { overflow-wrap: anywhere; }
:is(#widgetSettingsForm, #wheelSettingsForm, #cartSettingsForm, #timerSettingsForm) input, :is(#widgetSettingsForm, #wheelSettingsForm, #cartSettingsForm, #timerSettingsForm) textarea { min-width: 0; max-width: 100%; }
:is(#widgetSettingsForm, #wheelSettingsForm, #cartSettingsForm, #timerSettingsForm) textarea { resize: vertical; }
:is(#widgetSettingsForm, #wheelSettingsForm, #cartSettingsForm, #timerSettingsForm) button { white-space: normal; max-width: 100%; }
:is(#widgetSnippet, #wheelSnippet, #cartSnippet, #timerSnippet) pre {
  display: block; width: 100%; min-width: 0; max-width: 100%;
  margin: 14px 0; padding: 14px; border: 1px solid var(--line); border-radius: 12px;
  background: #f8f5ff; font: 12px/1.6 ui-monospace, monospace;
  white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; overflow-x: auto;
}
@media (max-width: 1100px) { .shop-terminal-grid { grid-template-columns: 1fr; } }
.badge { background: #f1ecfd; color: #53349d; }
.customer .offer-number { color: var(--green); }
.customer .store-label { color: #625c71; }
.qr-large { border-radius: 26px; border-color: var(--line); }
.qr-large img { display: block; }
.receipt-mark { color: #5836b3; background: #eee7fc; }
.document pre { border-radius: 22px; border-color: var(--line); }
.table-wrap { border-color: var(--line); }
.terminal-shop { border-color: var(--line); border-radius: 18px; }
@media (max-width: 1000px) {
  .hero { gap: 24px; }
  .demo-frame { padding: 34px 16px; }
  .hero h1 { font-size: 52px; }
  .site-logo { width: 214px; }
  .floating-tag { right: 0; font-size: 11px; padding: 14px; }
  #how, .evotor-section { padding: 32px; }
  .step-grid { grid-template-columns: 1fr; }
}
@media (max-width: 850px) {
  .hero { grid-template-columns: 1fr; padding: 10px 0 60px; }
  .hero h1 { max-width: 680px; font-size: clamp(46px, 7.5vw, 62px); }
  .hero p { max-width: 640px; }
  .demo-frame { width: min(460px, 100%); margin: 12px auto 0; padding: 32px 34px; }
  .floating-tag { right: 0; bottom: 65px; }
}
@media (max-width: 600px) {
  .site-header { padding: 16px 20px 12px; flex-wrap: wrap; gap: 12px; }
  .brand { gap: 14px; }
  .site-logo { width: 190px; }
  .brand-product { font-size: 11px; }
  .brand-caption { font-size: 8px; }
  .site-header nav { width: 100%; justify-content: flex-end; gap: 22px; }
  .site-header nav > a:not(.button) { font-size: 13px; }
  .site-header .button.small { padding: 11px 16px; font-size: 12px; }
  main { padding: 28px 20px 52px; }
  .hero { gap: 26px; padding: 8px 0 40px; }
  .hero h1 { font-size: clamp(40px, 10.5vw, 49px); letter-spacing: -.045em; }
  .hero p { font-size: 14px; }
  .hero .actions { gap: 10px; }
  .hero .actions .button { font-size: 12px; padding: 14px 17px; }
  .hero .demo-frame { width: min(370px, 100%); max-width: 370px; padding: 26px 20px; transform: none; }
  .phone { width: 246px; padding: 29px 16px 19px; transform: rotate(-5deg); }
  .floating-tag { right: -2px; bottom: 60px; padding: 12px 14px; font-size: 10px; }
  .demo-frame::before { inset: 8px 0; }
  #how, .evotor-section, .hero ~ .section:last-child { padding: 28px 22px; border-radius: 26px; }
  .step { padding: 25px 23px; }
  .evotor-section { margin-top: 32px; }
  .evotor-heading h2 { margin-bottom: 20px; }
  .evotor-models li { font-size: 12px; padding: 10px 12px; }
  .hero ~ .section:last-child { margin-top: 32px; }
  .site-footer { padding: 28px 20px 36px; }
}
@media (max-width: 360px) {
  .site-logo { width: 162px; }
  .brand { gap: 10px; }
  .brand-product { font-size: 10px; }
  .brand-caption { font-size: 7px; }
  .hero .demo-frame { padding: 24px 12px; }
  .phone { width: 232px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, button { transition: none; }
}
@media print {
  body { background: #fff; }
  main { padding: 0; }
  .qr-large { border: 0; width: 105mm; }
}

/* WhatsApp stays visible but cannot be selected for new subscriptions. */
.channel-label.channel-unavailable { background: #f3f2f6; border-color: #dddbe4; color: #686573; cursor: not-allowed; }
.channel-label.channel-unavailable input { cursor: not-allowed; }
.channel-label.channel-unavailable span { display: flex; flex-direction: column; gap: 2px; }
.channel-label.channel-unavailable small { font-size: 11px; font-weight: 400; }
.chip.channel-unavailable { background: #f3f2f6; color: #686573; }
/* The navigation stays hidden until the landing session is checked. */
.site-header nav[hidden] { display: none; }
.wheel-probabilities { padding: 18px; border-radius: 16px; background: #f6f2fc; min-width: 0; }
.wheel-probabilities h3 { margin: 0 0 8px; }
.wheel-probabilities p { font-size: 14px; color: #686573; margin: 0 0 12px; }
.wheel-probabilities dl { margin: 0; }
.wheel-probabilities dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; }
.wheel-probabilities dt { min-width: 0; overflow-wrap: anywhere; }
.wheel-probabilities dd { margin: 0; font-weight: 700; white-space: nowrap; }

.consent-table tr.consent-removal-pending > td { background:#fff7e5; }
.pending-removal-note { display:block; margin-top:8px; color:#76613c; line-height:1.5; }
.consent-table [data-cancel-removal] { border-color:#6c48df; color:#5932c6; font-weight:700; }

.shop-billing{margin:20px 0;padding:18px;border:1px solid #dfd5f4;border-radius:14px;background:#f7f3ff}.shop-billing.expired{border-color:#e2a4b3}.shop-billing h3{font-size:18px;margin:0 0 8px}.shop-billing p{font-size:13px;margin:8px 0}.shop-billing small{display:block;color:#64616e;font-size:12px;line-height:1.5}.shop-billing [data-payment-message]:empty{display:none}

.autopay-settings{margin-top:14px}.autopay-settings summary{cursor:pointer;font-weight:700}.autopay-settings form{padding-top:10px}.shop-billing .check{align-items:flex-start;overflow-wrap:anywhere}.shop-billing button,.shop-billing a.button{margin:5px 5px 5px 0;white-space:normal}.shop-billing [data-autopay-message]:empty{display:none}
