/* Minimal brand treatment for registration and purchase. */
@font-face { font-family: "Onest"; src: url("/assets/fonts/Onest-Variable.ttf") format("truetype"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Unbounded"; src: url("/assets/fonts/Unbounded-Variable.ttf") format("truetype"); font-weight: 200 900; font-style: normal; font-display: swap; }
body.brand-flow {
  --bg: #f7fafc; --fg: #17212b; --muted: #526779; --card: #fff; --border: #dce6ee; --accent: #3776ab; --link: #235f91;
  margin: 0; background: #f7fafc; color: #17212b; font-family: "Onest", "Segoe UI", sans-serif; line-height: 1.6;
}
.brand-flow * { box-sizing: border-box; }
.brand-flow a { text-underline-offset: 3px; }
.brand-flow :is(a, button, input):focus-visible { outline: 3px solid #d9a900; outline-offset: 3px; }
.flow-skip { position: fixed; top: 8px; left: 12px; z-index: 3; padding: 10px 14px; background: #ffd343; color: #17212b; border-radius: 8px; transform: translateY(-180%); }
.flow-skip:focus { transform: none; }
.flow-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: min(1040px, calc(100% - 48px)); min-height: 80px; margin: auto; border-bottom: 1px solid #e2eaf1; }
.flow-brand { display: inline-flex; align-items: center; gap: 10px; color: #234a73; text-decoration: none; }
.flow-brand:hover { text-decoration: none; }
.flow-brand img { width: 36px; height: 36px; border-radius: 50%; }
.flow-brand span { font: 600 .92rem "Unbounded", sans-serif; letter-spacing: -.03em; }
.flow-header nav { display: flex; align-items: center; gap: 24px; font-size: .84rem; }
.flow-header nav > a { color: #526779; }
.flow-header .flow-nav-action { color: #235f91; }
.flow-layout { position: relative; isolation: isolate; width: min(560px, calc(100% - 40px)); margin: 48px auto 64px; }
.flow-layout::before { content: ""; position: absolute; z-index: -1; top: 36px; right: -96px; width: 160px; height: 176px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22'%3E%3Cpath d='M22 0H0V22' fill='none' stroke='%233776AB' stroke-opacity='.09'/%3E%3C/svg%3E"); }
.flow-panel { min-width: 0; padding: 32px 36px; border: 1px solid #e0e8ef; border-radius: 16px; background: #fff; }
.flow-panel::before { content: ""; display: block; width: 28px; height: 3px; margin-bottom: 22px; background: #ffd343; }
.flow-panel-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.flow-small-label { color: #64798a; font-size: .75rem; }
.flow-demo-label { color: #64798a; font-size: .72rem; }
.flow-panel h1 { margin: 0 0 12px; color: #234a73; font: 600 clamp(1.3rem, 4.8vw, 1.6rem)/1.3 "Unbounded", sans-serif; letter-spacing: -.035em; }
.flow-panel-description { margin: 0 0 26px; color: #64798a; font-size: .88rem; line-height: 1.6; }
.brand-flow .field { margin-bottom: 18px; }
.brand-flow .field label { color: #40576b; font-size: .875rem; font-weight: 500; margin-bottom: 6px; }
.brand-flow .field input { min-height: 46px; padding: 10px 12px; border: 1px solid #d3dfe8; border-radius: 9px; background: #fff; color: #17212b; font: inherit; font-size: 1rem; transition: border-color .2s; }
.brand-flow .field input::placeholder { color: #718394; font-size: .84rem; }
.brand-flow .field input:focus { border-color: #3776ab; box-shadow: none; }
.brand-flow .flow-code-input { text-transform: uppercase; letter-spacing: .13em; }
.flow-field-note { margin: 6px 0 0; color: #64798a; font-size: .74rem; }
.brand-flow .legal-checks { min-width: 0; margin: 24px 0 20px; padding: 15px 0 0; border: 0; border-top: 1px solid #e2eaf1; border-radius: 0; }
.brand-flow .legal-checks legend { padding: 0 8px 0 0; color: #64798a; font-size: .74rem; font-weight: 400; }
.brand-flow .legal-status { margin: 0 0 16px; padding: 10px 12px; border: 0; border-radius: 6px; background: #faf7ec; color: #6c5d32; font-size: .8125rem; line-height: 1.55; }
.brand-flow .legal-checks label { gap: 10px; margin: 12px 0; color: #526779; font-size: .875rem; line-height: 1.55; }
.brand-flow .legal-checks input[type=checkbox] { width: 16px; height: 16px; }
.brand-flow .legal-checks a { color: #235f91; }
.brand-flow .legal-checks > p:not(.legal-status) { margin: 16px 0 0; font-size: .76rem; }
.brand-flow .btn { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; padding: 13px 16px; border-radius: 10px; background: #3776ab; color: #fff; font: 500 .88rem/1.5 "Onest", sans-serif; box-shadow: none; transition: background-color .2s, transform .2s; }
.brand-flow .btn:hover { background: #234a73; filter: none; text-decoration: none; }
.brand-flow .btn:active { transform: translateY(1px); }
.brand-flow .btn:disabled { background: #d8e3ec; color: #526779; opacity: 1; cursor: not-allowed; transform: none; }
.flow-panel-footer { margin: 20px 0 0; color: #64798a; text-align: center; font-size: .78rem; line-height: 1.9; }
.flow-panel-footer a { color: #235f91; }
.flow-price-state { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 16px 0; margin: 0 0 16px; border-block: 1px solid #e2eaf1; font-size: .85rem; }
.flow-price-state > span { color: #64798a; }
.flow-price-state strong { color: #234a73; font-size: .88rem; font-weight: 500; }
.flow-demo-note { margin: 0; color: #64798a; font-size: .8rem; line-height: 1.65; }
.brand-flow #result:not([hidden]) { margin-top: 24px; padding-top: 18px; border-top: 1px solid #e2eaf1; }
.flow-result-title { margin: 0 0 12px; color: #234a73; font-size: .98rem; font-weight: 600; }
.brand-flow .code-box { padding: 18px 8px; border: 1px dashed #9eb8cd; border-radius: 9px; background: #f4f8fb; color: #234a73; font: 600 clamp(1.1rem, 5vw, 1.55rem) Consolas, monospace; letter-spacing: .14em; overflow-wrap: anywhere; }
.brand-flow .alert.err { color: #8e3333; background: #fff0f0; border: 1px solid #edc8c8; }
.flow-footer { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; width: min(1040px, calc(100% - 48px)); margin: 0 auto; padding: 20px 0 28px; color: #64798a; font-size: .7rem; }
.flow-footer > span { flex-basis: 100%; text-align: center; }
.flow-footer a { color: #526779; }
/* Новые элементы флоу: гейт входа, ссылка-кнопка, статус alert. */
.brand-flow .linklike { margin: 0; padding: 0; border: 0; background: none; color: #235f91; font: inherit; cursor: pointer; text-decoration: underline; }
.brand-flow .linklike:hover { color: #17212b; }
.flow-gate { margin: 0 0 8px; padding: 15px 16px; border: 1px solid #e2eaf1; border-radius: 10px; background: #f7fafc; }
.flow-gate-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.flow-gate-actions .btn { width: auto; min-width: 150px; }
.brand-flow .alert.ok { color: #1f6b3c; background: #eefaf2; border: 1px solid #bfe3ce; }
.flow-download { margin-top: 4px; }
@media (max-width: 760px) {
  .flow-layout::before { display: none; }
  .flow-header { width: calc(100% - 32px); min-height: 70px; }
  .flow-brand span { font-size: .8rem; }
  .flow-brand img { width: 32px; height: 32px; }
  .flow-header nav { gap: 15px; font-size: .78rem; }
  .flow-layout { width: calc(100% - 32px); margin: 28px auto 36px; }
  .flow-panel { padding: 26px 22px; border-radius: 14px; }
  .flow-footer { width: calc(100% - 32px); }
}
@media (max-width: 380px) {
  .flow-header nav > a:first-child { display: none; }
  .flow-brand span { font-size: .73rem; }
  .flow-panel { padding: 24px 17px; }
}
@media (prefers-reduced-motion: reduce) { .brand-flow *, .brand-flow *::before, .brand-flow *::after { transition: none !important; } }
