/* Таска landing — progressive enhancement, system fonts only. */
:root {
  color-scheme: dark;
  --bg: #05070a;
  --surface: #0b1015;
  --surface-strong: #111820;
  --line: rgba(255, 255, 255, .13);
  --line-strong: rgba(255, 255, 255, .22);
  --text: #f6f7f8;
  --muted: #9199a5;
  --accent: #c9ff00;
  --accent-soft: rgba(201, 255, 0, .12);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 17px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; }

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

.skip-link {
  position: absolute;
  top: 12px;
  left: 16px;
  z-index: 10;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  text-decoration: none;
  transform: translateY(-200%);
}

.skip-link:focus { transform: none; }

/* Layout */
.wrap {
  width: min(1100px, calc(100% - 48px));
  margin: 0 auto;
}

.section { padding-block: 96px; }

/* Typography */
h1, h2 {
  text-align: center;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

h1 { font-size: clamp(44px, 7vw, 84px); }
h2 { font-size: clamp(32px, 4.5vw, 52px); }

h3 {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.eyebrow {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.section-intro {
  max-width: 640px;
  margin: 24px auto 0;
  color: var(--muted);
  text-align: center;
}

/* Wordmark: the image carries the provided logo while the text remains the accessible label. */
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  max-width: 100%;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 1;
  text-decoration: none;
}

.wordmark-logo {
  display: block;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
  object-position: center;
}

.wordmark span { color: var(--accent); }
.wordmark-small { font-size: 22px; }
.wordmark-small .wordmark-logo {
  width: 26px;
  height: 26px;
}

/* Pill buttons: links and <button> share one look. */
.button {
  display: inline-block;
  margin: 0;
  padding: 16px 28px;
  border: 1px solid var(--text);
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease;
}

.button:hover {
  border-color: #e9e9ec;
  background: #e9e9ec;
}

/* Outline variant: shared secondary action with the site's accent contour. */
.button-outline {
  border-color: var(--accent);
  background: transparent;
  color: var(--text);
}

.button-outline:hover {
  border-color: #d9ff58;
  background: rgba(201, 255, 0, .08);
  color: var(--text);
}




/* Numbered circles */
.circle-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--text);
  color: var(--bg);
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

/* The cabinet exit is a POST form, so its <button> stands in the same row as
   the links and is stripped back to their type, colour and baseline. */
.site-header nav a,
.site-header nav button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: color .15s ease;
}

.site-header nav form {
  display: flex;
  margin: 0;
}

.site-header nav button {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.site-header nav a:hover,
.site-header nav button:hover { color: var(--text); }

/* Hero */
.hero {
  display: flex;
  align-items: center;
  min-height: 70vh;
  padding-block: 96px;
  text-align: center;
}

.hero h1 { margin-top: 20px; }

.lead {
  max-width: 620px;
  margin: 28px auto 40px;
  color: var(--muted);
  font-size: 20px;
}

.caption {
  margin-top: 20px;
  color: var(--muted);
  font-size: 14px;
}

/* Features */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin-top: 64px;
}

.feature {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.feature h3 { margin-top: 24px; }
.feature p { margin-top: 12px; color: var(--muted); }

/* Steps */
.steps {
  display: grid;
  gap: 32px;
  max-width: 720px;
  margin: 64px auto 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.steps p { margin-top: 8px; color: var(--muted); }

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 64px;
}

.price-card {
  display: flex;
  flex-direction: column;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.price-card-accent { border-color: var(--accent); }

.price {
  margin-top: 16px;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  white-space: nowrap;
}

.price span,
.price small {
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
}

.plan-description {
  flex-grow: 1;
  margin: 16px 0 28px;
  color: var(--muted);
  font-size: 15px;
}

.price-card .button { align-self: flex-start; }

.pricing-note {
  max-width: 720px;
  margin: 40px auto 0;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

/* Closing */
.closing { text-align: center; }
.closing .button { margin-top: 40px; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
}

/* A short page (checkout, cabinet, a document) keeps its footer at the bottom
   of the window instead of in the middle of it. The landing is long anyway and
   keeps its own flow. */
body:has(> main.checkout, > main.cabinet, > main.legal) {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body:has(> main.checkout, > main.cabinet, > main.legal) > .site-footer {
  margin-top: auto;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-block: 32px;
}

.footer-legal {
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: min(100%, 420px);
  gap: 4px;
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
  text-align: right;
}



/* Checkout: server-rendered form with no card data on this site. */
.checkout {
  width: min(480px, calc(100% - 40px));
  margin: 72px auto 40px;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.checkout .wordmark { margin-bottom: 32px; }

.checkout h1 {
  text-align: left;
  font-size: 40px;
}

.checkout .note {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.payment-form {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.payment-form label {
  font-size: 14px;
  font-weight: 600;
}

.payment-form .checkout-email-confirmation {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.payment-form .checkout-email-confirmation strong {
  color: var(--text);
  overflow-wrap: anywhere;
}

.payment-form input {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
}

.payment-form input:focus {
  border-color: var(--accent);
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.payment-form .button {
  width: 100%;
  margin-top: 8px;
  cursor: pointer;
  min-height: 44px;
  white-space: normal;
  overflow-wrap: anywhere;
}

.checkout-message {
  margin: 28px 0;
  color: var(--muted);
  font-size: 15px;
}

/* Legal documents: the offer and the privacy policy, long text to be read. */
.legal { padding-block: 56px 72px; }

.legal-document {
  width: min(760px, calc(100% - 40px));
  margin: 0 auto;
}

.legal-document h1 {
  margin: 0 0 8px;
  text-align: left;
  font-size: clamp(32px, 5vw, 44px);
  line-height: 1.1;
}

.legal-document h2 {
  margin: 40px 0 12px;
  text-align: left;
  font-size: 20px;
  line-height: 1.3;
}

.legal-document p {
  margin: 0 0 14px;
  color: var(--text);
  font-size: 16px;
  overflow-wrap: anywhere;
}

.legal-document .legal-subtitle,
.legal-document .legal-edition {
  margin: 0;
  color: var(--muted);
}

.legal-document .legal-edition { margin-bottom: 32px; }

.legal-document a { color: var(--accent); }

/* Cabinet: server-rendered pages, forms without JS, <progress> instead of inline
   widths. Laid out like the landing: the header spans the window, the content
   stands in the same centred container, on the same page background. */
.cabinet { padding-block: 64px; }

/* Single-purpose screens - login, codes, confirmations, errors - are one column
   of one form, so what is narrowed is the block, not the page. */
.cabinet-narrow { width: min(440px, calc(100% - 48px)); margin-inline: auto; }

.cabinet h1 {
  text-align: left;
  font-size: 40px;
}

.cabinet h2 {
  text-align: left;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.cabinet .note {
  margin-top: 20px;
  color: var(--muted);
  font-size: 14px;
}

.cabinet-message {
  margin: 20px 0 28px;
  color: var(--muted);
  font-size: 15px;
}

.cabinet form { margin: 0; }
.cabinet .code-form {
  display: flex;
  align-items: flex-end;
  gap: 12px;
}

.cabinet .code-field {
  flex: 1 1 auto;
  min-width: 0;
}

.cabinet .code-field .input {
  margin-bottom: 0;
}

.cabinet .code-form .button {
  flex: 0 0 auto;
  border-radius: 7px;
}

.card-back-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 28px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  text-decoration: none;
}

.card-back-link:hover {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.card-back-link:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
@media (max-width: 420px) {
  .cabinet .code-link-form {
    display: grid;
    align-items: stretch;
  }

  .cabinet .code-link-form .button {
    width: 100%;
  }
}


/* Login code: large, monospaced, easy to read aloud or retype. */
.code {
  margin: 8px 0 28px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: clamp(36px, 10vw, 52px);
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.1;
  text-align: center;
  user-select: all;
}

.cabinet code {
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .08);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: .95em;
}

.cabinet .button + form { margin-top: 12px; }
.cabinet .resend-form .button {
  display: block;
  width: 100%;
  border-radius: 999px;
  text-align: center;
}
.cabinet .button + .card-note { margin-top: 16px; }

/* Cards */
.card {
  margin-top: 24px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.card h2 + * { margin-top: 12px; }

.card-status {
  font-size: 17px;
  font-weight: 600;
}

.card-note {
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
}

.card .button { margin-top: 20px; }
.card form { margin-top: 20px; }
.card form .button { margin-top: 0; }

/* Usage: definition list plus native progress bars. */
.usage {
  display: grid;
  gap: 12px;
  margin: 0;
}

.usage div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.usage dt { color: var(--muted); }
.usage dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
}

.meter { margin-top: 20px; }

.meter-label {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
  font-size: 14px;
}

.meter-label span:last-child { font-weight: 600; }

.progress {
  display: block;
  width: 100%;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  overflow: hidden;
  appearance: none;
  -webkit-appearance: none;
  color: var(--accent);
}

.progress::-webkit-progress-bar {
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
}

.progress::-webkit-progress-value {
  border-radius: 999px;
  background: var(--accent);
}

.progress::-moz-progress-bar {
  border-radius: 999px;
  background: var(--accent);
}

.progress-muted { color: var(--muted); }
.progress-muted::-webkit-progress-value { background: var(--muted); }
.progress-muted::-moz-progress-bar { background: var(--muted); }

/* Danger button: outline that turns red on hover, used only for deletion. */
.button-danger {
  border-color: rgba(255, 120, 120, .6);
  background: transparent;
  color: #ff8a8a;
}

.button-danger:hover {
  border-color: #ff8a8a;
  background: rgba(255, 120, 120, .1);
}

/* Forms */
.field {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 14px;
  text-align: left;
}

.input {
  display: block;
  width: 100%;
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 17px;
}

.input:focus { border-color: var(--accent); }
.input::placeholder { color: var(--muted); }

/* Wide, spaced digits: the mailed code is retyped by hand. */
.input-code {
  letter-spacing: .4em;
  text-align: center;
}

/* A quiet aside between two forms, with a rule on each side. */
.separator {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 28px 0;
  color: var(--muted);
  font-size: 14px;
}

.separator::before,
.separator::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.card-status .code {
  display: inline;
  margin: 0;
  font-size: 20px;
  letter-spacing: .12em;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 15px;
  cursor: pointer;
}

.checkbox input {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin: 3px 0 0;
  accent-color: var(--accent);
}

.form-error {
  margin: 0 0 20px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 120, 120, .6);
  border-radius: 12px;
  color: #ff8a8a;
  font-size: 15px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

.footer-link:hover { color: var(--text); }

/* Responsive */
@media (max-width: 1000px) {
  /* Three columns still fit, but cards get tighter. */
  .feature-grid, .pricing-grid { gap: 16px; }
  .feature, .price-card { padding: 24px; }
  .price-card .button {
    align-self: stretch;
    padding-inline: 16px;
    text-align: center;
    white-space: normal;
  }
  .price { white-space: normal; }
}

@media (max-width: 760px) {
  :root { font-size: 16px; }
  .section, .hero { padding-block: 64px; }
  .cabinet { padding-block: 48px; }
  .feature-grid, .pricing-grid { grid-template-columns: 1fr; }
  .feature-grid, .pricing-grid, .steps { margin-top: 48px; }
  .lead { font-size: 18px; }
  .price { font-size: 32px; }
}

@media (max-width: 640px) {
  .site-header nav { display: none; }
  /* The cabinet has no menu and no footer to fall back on, and the exit lives
     in this row, so the links wrap under the wordmark instead of disappearing. */
  .cabinet-header .header-inner { flex-wrap: wrap; gap: 12px 20px; padding-block: 14px; }
  .cabinet-header nav { display: flex; flex-wrap: wrap; gap: 20px; }
}

@media (max-width: 420px) {
  .wrap { width: calc(100% - 32px); }
  .section, .hero { padding-block: 48px; }
  .hero { min-height: auto; }
  .steps li { gap: 16px; }
  .button { padding: 14px 24px; }
  .checkout { margin-top: 36px; padding: 24px; }
  .checkout h1 { font-size: 34px; }
  .cabinet { padding-block: 36px; }
  .cabinet-narrow { width: calc(100% - 32px); margin-inline: auto; }
  .cabinet h1 { font-size: 34px; }
  .card { padding: 20px; }
}

/* Respect reduced-motion preferences. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .site-header nav a, .site-header nav button { transition: none; }
}

/* Landing redesign: dense dark interface, bright action colour and product-led use cases. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom-color: rgba(255, 255, 255, .09);
  background: rgba(5, 7, 10, .86);
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: 76px;
}

.site-header nav {
  margin-left: auto;
  gap: 24px;
}

.site-header nav a,
.site-header nav button {
  color: #8f98a5;
  font-size: 14px;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 9px 16px;
  border: 1px solid var(--accent);
  border-radius: 7px;
  background: var(--accent);
  color: #080b05;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.header-cta:hover {
  background: #d9ff58;
  box-shadow: 0 0 24px rgba(201, 255, 0, .2);
  color: #080b05;
  transform: translateY(-1px);
}

.hero {
  min-height: min(760px, calc(100vh - 76px));
  padding-block: clamp(76px, 10vw, 132px);
  text-align: left;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .86fr);
  align-items: center;
  gap: clamp(48px, 7vw, 104px);
}

.hero-copy {
  max-width: 700px;
}

.hero h1 {
  margin-top: 20px;
  text-align: left;
  font-size: clamp(50px, 6.8vw, 92px);
  letter-spacing: -.065em;
  line-height: .98;
}

.hero h1 span,
.section-heading h2 span,
.cta-card h2 span {
  color: var(--accent);
}

.lead {
  max-width: 620px;
  margin: 30px 0 36px;
  color: #a1a8b3;
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.button-primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #080b05;
  box-shadow: 0 0 0 rgba(201, 255, 0, 0);
}

.button-primary:hover {
  border-color: #d9ff58;
  background: #d9ff58;
  color: #080b05;
  box-shadow: 0 0 28px rgba(201, 255, 0, .18);
}

.button-ghost {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, .02);
  color: var(--text);
}

.button-ghost:hover {
  border-color: rgba(255, 255, 255, .42);
  background: rgba(255, 255, 255, .06);
}

.caption {
  margin-top: 18px;
  color: #b4bdc8;
  font-size: 13px;
}

.hero-demo {
  position: relative;
  min-height: 410px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 18px;
  background:
    radial-gradient(circle at 85% 9%, rgba(201, 255, 0, .17), transparent 26%),
    linear-gradient(145deg, #111920 0%, #090d12 68%);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .35);
}

.hero-demo::before {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 32px 32px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 85%);
  pointer-events: none;
}

.demo-top,
.demo-footer {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #8f98a5;
  font-size: 12px;
}

.demo-top {
  padding: 8px 8px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.demo-top-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.demo-status {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

.demo-dots {
  color: #5d6875;
  letter-spacing: 3px;
}

.demo-thread {
  position: relative;
  display: grid;
  gap: 16px;
  padding: 34px 14px 28px;
}

.demo-message {
  max-width: 90%;
  padding: 16px 18px;
  border-radius: 12px;
  font-size: 15px;
  line-height: 1.5;
}

.demo-message-user {
  justify-self: end;
  border: 1px solid rgba(201, 255, 0, .22);
  background: rgba(201, 255, 0, .1);
  color: #e9f1d3;
}

.demo-message-assistant {
  display: grid;
  gap: 10px;
  justify-self: start;
  border: 1px solid rgba(255, 255, 255, .13);
  background: rgba(9, 13, 18, .86);
  color: #b6bec9;
}

.demo-message-assistant strong {
  color: var(--text);
  font-size: 18px;
  line-height: 1.3;
}

.demo-answer-label {
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.demo-footer {
  justify-content: flex-start;
  flex-wrap: wrap;
  padding: 14px 8px 4px;
}

.demo-footer span {
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 999px;
  color: #8c99a6;
}

.signal-strip {
  border-top: 1px solid rgba(255, 255, 255, .1);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .018);
}

.signal-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  padding-block: 24px;
}

.signal-list span {
  color: #89929e;
  font-size: 13px;
  text-align: center;
}

.signal-list span::before {
  display: block;
  width: 5px;
  height: 5px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(201, 255, 0, .5);
  content: "";
}

.use-cases {
  padding-top: clamp(88px, 10vw, 132px);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 48px;
}

.section-heading h2,
.workflow-heading h2,
.cta-card h2 {
  margin-top: 18px;
  text-align: left;
  font-size: clamp(38px, 5vw, 66px);
  letter-spacing: -.06em;
}

.section-heading .section-intro {
  max-width: 410px;
  margin: 0;
  text-align: left;
}

.use-case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 58px;
}

.use-case-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 12px;
  background: #090d12;
  transition: border-color .18s ease, transform .18s ease;
}

.use-case-card:hover {
  border-color: rgba(201, 255, 0, .4);
  transform: translateY(-3px);
}

.use-case-art {
  position: relative;
  min-height: 188px;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.use-case-art::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 42%, rgba(5, 7, 10, .46));
  content: "";
  pointer-events: none;
}

.use-case-art-research {
  display: grid;
  align-content: center;
  gap: 16px;
  padding: 26px;
  background:
    radial-gradient(circle at 75% 30%, rgba(201, 255, 0, .22), transparent 23%),
    linear-gradient(135deg, #192427, #0b1014);
}

.art-label,
.art-window-label {
  color: #8d9b88;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .13em;
}

.art-search {
  max-width: 260px;
  padding: 13px 14px;
  border: 1px solid rgba(201, 255, 0, .35);
  border-radius: 7px;
  background: rgba(5, 7, 10, .58);
  color: #dbe5cc;
  font-size: 13px;
}

.art-source {
  color: var(--accent);
  font-size: 12px;
}

.use-case-art-document {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 9px;
  background:
    radial-gradient(circle at 20% 20%, rgba(88, 140, 255, .24), transparent 27%),
    linear-gradient(140deg, #111a2b, #0a0f19);
}

.art-file {
  display: grid;
  place-items: center;
  width: 50px;
  height: 62px;
  border: 1px solid rgba(163, 194, 255, .55);
  border-radius: 5px;
  background: rgba(100, 149, 255, .16);
  color: #b6d0ff;
  font-size: 12px;
  font-weight: 700;
}

.art-document-title {
  color: #ccd9ec;
  font-size: 14px;
}

.art-document-line {
  display: block;
  width: 115px;
  height: 3px;
  border-radius: 99px;
  background: rgba(172, 198, 236, .38);
}

.art-document-line.short { width: 76px; }

.use-case-art-writing {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 30px;
  background:
    radial-gradient(circle at 78% 72%, rgba(249, 141, 89, .24), transparent 28%),
    linear-gradient(140deg, #291d22, #100e15);
}

.art-writing-line,
.art-plan-line {
  display: block;
  width: 82%;
  height: 5px;
  border-radius: 99px;
  background: rgba(255, 201, 177, .48);
}

.art-writing-line.medium,
.art-plan-line.medium { width: 64%; }

.art-writing-line.short,
.art-plan-line.short { width: 43%; }

.art-writing-cursor {
  display: block;
  width: 2px;
  height: 18px;
  margin-top: -3px;
  background: #ff9c78;
}

.use-case-art-memory {
  background:
    radial-gradient(circle at 50% 50%, rgba(182, 117, 255, .3), transparent 25%),
    linear-gradient(140deg, #201a2d, #0d0d15);
}

.art-memory-node {
  position: absolute;
  z-index: 1;
  padding: 8px 10px;
  border: 1px solid rgba(221, 191, 255, .4);
  border-radius: 999px;
  background: rgba(42, 28, 62, .72);
  color: #dfcaff;
  font-size: 11px;
}

.node-one { top: 33px; left: 26px; }
.node-two { top: 105px; right: 34px; }
.node-three { bottom: 25px; left: 48px; }

.art-memory-line {
  position: absolute;
  z-index: 0;
  height: 1px;
  transform-origin: left;
  background: rgba(210, 172, 255, .46);
}

.line-one { top: 64px; left: 98px; width: 155px; transform: rotate(20deg); }
.line-two { top: 126px; left: 96px; width: 110px; transform: rotate(-27deg); }
.line-three { top: 131px; left: 215px; width: 86px; transform: rotate(35deg); }

.use-case-art-learning {
  background:
    radial-gradient(circle at 50% 50%, rgba(54, 211, 170, .22), transparent 22%),
    linear-gradient(140deg, #102a28, #091313);
}

.art-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(107, 242, 207, .45);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(24deg);
}

.orbit-one { width: 154px; height: 62px; }
.orbit-two { width: 120px; height: 120px; transform: translate(-50%, -50%) rotate(64deg); }
.orbit-three { width: 68px; height: 154px; transform: translate(-50%, -50%) rotate(-37deg); }

.art-core {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid #8dffe0;
  border-radius: 50%;
  background: #0c2624;
  color: #b3ffe8;
  font-size: 20px;
  transform: translate(-50%, -50%);
}

.use-case-art-planning {
  display: grid;
  align-content: center;
  gap: 13px;
  padding: 32px 42px;
  background:
    radial-gradient(circle at 83% 18%, rgba(255, 208, 77, .25), transparent 23%),
    linear-gradient(140deg, #282314, #11100b);
}

.art-check {
  position: relative;
  z-index: 1;
  color: rgba(255, 229, 145, .78);
  font-size: 16px;
}

.art-check.checked { color: #d9ff4d; }

.art-plan-line {
  position: absolute;
  left: 78px;
  width: 58%;
  height: 4px;
  background: rgba(255, 218, 126, .42);
}

.art-plan-line.medium { width: 44%; }
.art-plan-line.short { width: 29%; }

.use-case-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px 24px 26px;
}

.card-kicker {
  color: #7f8b98;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  line-height: 1.3;
  text-transform: uppercase;
}

.use-case-body h3 {
  margin-top: 16px;
  font-size: 22px;
}

.use-case-body p:not(.card-kicker) {
  margin-top: 12px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 24px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.card-link span {
  color: var(--accent);
  transition: transform .15s ease;
}

.card-link:hover span { transform: translate(2px, -2px); }

.workflow {
  padding-top: 32px;
}

.workflow-panel {
  display: grid;
  grid-template-columns: minmax(240px, .75fr) minmax(0, 1.25fr);
  gap: 48px;
  padding: clamp(32px, 5vw, 64px);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 16px;
  background:
    radial-gradient(circle at 90% 0%, rgba(201, 255, 0, .1), transparent 28%),
    #0b1114;
}

.workflow-heading p:last-child {
  max-width: 340px;
  margin-top: 24px;
  color: var(--muted);
  line-height: 1.55;
}

.workflow-grid {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.workflow-step {
  position: relative;
  padding: 0 0 26px 52px;
  border-left: 1px solid rgba(201, 255, 0, .34);
}

.workflow-step + .workflow-step { padding-top: 26px; }

.workflow-step:last-child {
  padding-bottom: 0;
  border-left-color: transparent;
}

.workflow-number {
  position: absolute;
  top: 0;
  left: -16px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid rgba(201, 255, 0, .48);
  border-radius: 50%;
  background: #0b1114;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
}

.workflow-step + .workflow-step .workflow-number { top: 26px; }

.workflow-step h3 { font-size: 20px; }
.workflow-step p { margin-top: 8px; color: var(--muted); font-size: 15px; }

.plans-section {
  padding-top: clamp(96px, 11vw, 144px);
}

.plans-heading {
  align-items: end;
}

.plans-heading .section-intro { max-width: 370px; }

.pricing-grid {
  gap: 14px;
  margin-top: 54px;
}

.price-card {
  min-height: 320px;
  padding: 30px;
  border-color: rgba(255, 255, 255, .14);
  border-radius: 12px;
  background: #090d12;
}

.price-card-accent {
  border-color: rgba(201, 255, 0, .62);
  background:
    linear-gradient(155deg, rgba(201, 255, 0, .09), transparent 40%),
    #0d1310;
}

.price-card h3 { margin-top: 14px; }

.price {
  margin-top: 18px;
  font-size: 40px;
}

.price-card .button { margin-top: auto; }

.pricing-note {
  max-width: 740px;
  margin-top: 28px;
  color: #707b88;
}

.cta-section {
  padding-block: clamp(84px, 10vw, 132px);
}

.cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  padding: clamp(34px, 6vw, 70px);
  border: 1px solid rgba(201, 255, 0, .35);
  border-radius: 16px;
  background:
    radial-gradient(circle at 85% 20%, rgba(201, 255, 0, .18), transparent 24%),
    #101810;
}

.cta-card h2 { margin-top: 16px; }
.button-large { padding: 18px 26px; }

.footer-links {
  display: flex;
  align-items: center;
  gap: 22px;
}



@media (max-width: 1000px) {
  .hero-layout { grid-template-columns: minmax(0, 1fr) minmax(320px, .84fr); gap: 42px; }
  .hero h1 { font-size: clamp(48px, 6.5vw, 76px); }
  .use-case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .signal-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .hero {
    min-height: auto;
    padding-block: 76px;
  }

  .hero-layout,
  .workflow-panel {
    grid-template-columns: 1fr;
  }

  .hero-demo { min-height: 360px; }
  .section-heading,
  .plans-heading,
  .cta-card { align-items: flex-start; flex-direction: column; }
  .section-heading { gap: 24px; }
  .section-heading .section-intro,
  .plans-heading .section-intro { max-width: 620px; }
  .use-case-grid { margin-top: 42px; }
  .workflow { padding-top: 0; }
  .workflow-panel { gap: 42px; }
  .footer-legal {
    margin-left: 0;
    text-align: left;
  }

}

@media (max-width: 640px) {
  .header-inner { min-height: 68px; }
  .header-cta { padding-inline: 13px; }
  .site-header nav { display: none; }
  .hero h1 { font-size: clamp(44px, 13vw, 64px); }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button { text-align: center; }
  .signal-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
  .use-case-grid { grid-template-columns: 1fr; }
  .use-case-art { min-height: 170px; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
  .footer-links { flex-wrap: wrap; gap: 12px 18px; }
  .footer-legal { width: 100%; }

}

@media (max-width: 420px) {
  .wrap { width: calc(100% - 32px); }
  .wordmark { font-size: 23px; }
  .wordmark-logo { width: 28px; height: 28px; }
  .hero { padding-block: 58px; }
  .hero-demo { padding: 12px; border-radius: 14px; }
  .demo-message { max-width: 96%; padding: 14px; font-size: 14px; }
  .demo-message-assistant strong { font-size: 16px; }
  .section-heading h2,
  .workflow-heading h2,
  .cta-card h2 { font-size: 40px; }
  .cta-card { padding: 28px 24px; }
  .cta-card .button { width: 100%; text-align: center; }
}

/* Shared product shell for cabinet, login, checkout and return screens. */
.checkout-header .header-inner,
.cabinet-header .header-inner {
  min-height: 76px;
}

.checkout,
.cabinet-narrow {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 16px;
  background:
    radial-gradient(circle at 92% 0%, rgba(201, 255, 0, .1), transparent 28%),
    linear-gradient(145deg, #0f161a 0%, #090d12 70%);
  box-shadow: 0 28px 90px rgba(0, 0, 0, .28);
}
.checkout.return-surface {
  overflow: visible;
}


.checkout {
  width: min(640px, calc(100% - 48px));
  margin: clamp(48px, 8vw, 96px) auto;
  padding: clamp(28px, 5vw, 60px);
}

.checkout .wordmark {
  margin-bottom: 48px;
}

.checkout h1 {
  max-width: 540px;
  font-size: clamp(38px, 5vw, 62px);
  letter-spacing: -.06em;
  line-height: 1;
}

.checkout .price {
  color: var(--accent);
  font-size: clamp(36px, 5vw, 48px);
}

.checkout .payment-form .button {
  border-color: var(--accent);
  background: var(--accent);
  color: #080b05;
}

.checkout .payment-form .button:hover {
  border-color: #d9ff58;
  background: #d9ff58;
  color: #080b05;
}

.checkout > .button {
  margin-top: 8px;
}

.cabinet {
  padding-block: clamp(64px, 8vw, 112px);
}

.cabinet-narrow {
  width: min(600px, calc(100% - 48px));
  padding: clamp(28px, 5vw, 60px);
}

.cabinet-narrow h1 {
  font-size: clamp(38px, 5vw, 62px);
  letter-spacing: -.06em;
  line-height: 1;
}

.cabinet > .wrap:not(.cabinet-narrow) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.cabinet > .wrap:not(.cabinet-narrow) > h1 {
  grid-column: 1 / -1;
  margin-bottom: 14px;
  font-size: clamp(42px, 6vw, 72px);
  letter-spacing: -.06em;
  text-align: left;
}

.cabinet > .wrap:not(.cabinet-narrow) > .card {
  margin-top: 0;
}

.card {
  border-color: rgba(255, 255, 255, .14);
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .035), transparent 45%),
    #090d12;
}

.card h2 {
  font-size: 22px;
  letter-spacing: -.03em;
}

.cabinet .button:not(.button-danger):not(.button-outline) {
  border-color: var(--accent);
  background: var(--accent);
  color: #080b05;
}

.cabinet .button:not(.button-danger):not(.button-outline):hover {
  border-color: #d9ff58;
  background: #d9ff58;
  color: #080b05;
}




.checkout-header .header-cta,
.cabinet-header .header-cta {
  flex-shrink: 0;
}

@media (max-width: 760px) {
  .cabinet > .wrap:not(.cabinet-narrow) {
    grid-template-columns: 1fr;
  }

  .cabinet > .wrap:not(.cabinet-narrow) > h1 {
    margin-bottom: 10px;
  }
}

@media (max-width: 640px) {
  .checkout-header nav,
  .cabinet-header nav {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
  }

  .checkout-header .header-inner,
  .cabinet-header .header-inner {
    flex-wrap: wrap;
    gap: 12px 18px;
    padding-block: 14px;
  }

  .checkout-header nav,
  .cabinet-header nav {
    order: 3;
    width: 100%;
  }

  .checkout,
  .cabinet-narrow {
    width: calc(100% - 32px);
    padding: 28px 22px;
  }
}

/* Explicit action roles shared by the landing, checkout and cabinet shells. */
.button-primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #080b05;
}

.button-primary:hover {
  border-color: #d9ff58;
  background: #d9ff58;
  color: #080b05;
  box-shadow: 0 0 28px rgba(201, 255, 0, .18);
}



.cabinet .button-danger {
  border-color: rgba(255, 120, 120, .6);
  background: transparent;
  color: #ff8a8a;
}

.cabinet .button-danger:hover {
  border-color: #ff8a8a;
  background: rgba(255, 120, 120, .1);
  color: #ffb0b0;
}

.button-primary:focus-visible,
.button-outline:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
  margin-left: auto;
}

.header-actions .button {
  width: 148px;
  height: 38px;
  padding: 9px 16px;
  border-radius: 7px;
  text-align: center;
  font-size: 14px;
}

.header-actions .button-outline {
  border-color: var(--accent);
}



.cta-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 760px) {
  .site-header:not(.cabinet-header):not(.checkout-header) nav {
    display: none;
  }

  .site-header:not(.cabinet-header):not(.checkout-header) .header-inner {
    flex-wrap: wrap;
    gap: 12px 18px;
    padding-block: 14px;
  }

  .site-header:not(.cabinet-header):not(.checkout-header) .header-actions {
    order: 3;
    width: 100%;
    margin-left: 0;
  }

  .site-header:not(.cabinet-header):not(.checkout-header) .header-actions .button {
    flex: 1 1 0;
    width: auto;
  }
  .cabinet-header .header-inner {
    flex-wrap: wrap;
    gap: 12px 18px;
    padding-block: 14px;
  }

  .cabinet-header nav {
    order: 3;
    width: 100%;
    flex-wrap: wrap;
    gap: 18px;
  }
}

/* Cabinet dashboard keeps the landing's shell while giving each retained
   overview card a clear hierarchy. */
.cabinet > .wrap.cabinet-dashboard {
  display: block;
  grid-template-columns: none;
  gap: 0;
  min-width: 0;
}

.cabinet-intro {
  display: grid;
  gap: 14px;
  max-width: 720px;
  margin-bottom: 34px;
}

.cabinet-intro h1 {
  margin: 0;
  text-align: left;
  font-size: clamp(42px, 6vw, 72px);
  letter-spacing: -.06em;
}

.cabinet-lede {
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
}

.cabinet-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  min-width: 0;
}

.cabinet-grid .card {
  min-width: 0;
  margin-top: 0;
}

.assistant-card {
  grid-column: 1 / -1;
}

.cabinet-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  min-width: 0;
}

.cabinet-card-heading h2 {
  margin-top: 8px;
}

.assistant-card .cabinet-card-heading h2 {
  margin-top: 0;
}

.card-badge {
  flex: 0 0 auto;
  padding: 4px 8px;
  border: 1px solid rgba(201, 255, 0, .36);
  border-radius: 999px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
}
.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: 0;
  padding: 4px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
  white-space: nowrap;
}

.text-link:hover {
  background: transparent;
  color: #d9ff58;
}

.account-details {
  display: grid;
  gap: 0;
  margin: 0;
}

.account-details > div {
  display: grid;
  grid-template-columns: minmax(84px, .35fr) minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding-block: 12px;
}

.account-details > div:not(:last-child) {
  border-bottom: 1px solid var(--line);
}

.account-details > div:first-child {
  padding-top: 0;
}

.account-details dt {
  color: var(--muted);
}

.account-details dd {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  overflow-wrap: anywhere;
}

.account-details dd > span:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.account-details .account-telegram-row dd {
  justify-content: flex-end;
  gap: 8px;
}

.account-details .account-telegram-row dd > span:first-child {
  flex: 0 1 auto;
  text-align: right;
}

.account-card .account-unlink {
  flex: 0 1 auto;
  width: fit-content;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  text-align: right;
  white-space: normal;
}

.account-card .account-telegram-form {
  display: inline-flex;
  flex: 0 1 auto;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
  max-width: 100%;
  margin: 0;
}

.account-card .account-telegram-form .text-link.account-link {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  text-align: right;
  white-space: normal;
}

.account-card .text-link.account-link:disabled,
.account-card .text-link.account-link[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: .58;
}
.account-documents {
  margin-top: 26px;
}

.account-documents h3 {
  margin-bottom: 10px;
  font-size: 18px;
}

.documents-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.document-row {
  display: flex;
  min-width: 0;
  align-items: center;
  flex-wrap: nowrap;
  gap: 16px;
  padding-block: 12px;
}

.documents-list > .document-row:not(:last-child) {
  border-bottom: 1px solid var(--line);
}

.document-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
  font-weight: 600;
}

.document-action,
.document-action-form {
  flex: 0 1 auto;
  min-width: 0;
  margin-left: auto;
}

.document-action {
  max-width: 100%;
  overflow-wrap: anywhere;
  text-align: right;
  white-space: normal;
}

.document-action-muted {
  flex: 0 1 48%;
  min-width: 0;
  max-width: 18rem;
  align-self: center;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
  overflow-wrap: anywhere;
  text-align: right;
  white-space: normal;
}

.account-card .document-action-form {
  display: flex;
  justify-content: flex-end;
  margin-top: 0;
}


.document-disclosure {
  flex: 0 1 auto;
  min-width: 0;
  margin-left: auto;
}

.document-disclosure[open] {
  flex: 1 0 100%;
  width: 100%;
  margin-left: 0;
}

.document-disclosure summary {
  list-style: none;
  cursor: pointer;
}

.document-disclosure summary::-webkit-details-marker {
  display: none;
}


.document-full-text {
  margin-top: 14px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.document-consent-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}


.document-consent-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  cursor: pointer;
}

/* Required marks gate a form's button: shown inactive and not pressable until
   every required box is ticked. The browser's own `required` check and the
   server stand behind this, so it is a signal, never the only gate. */
.entry-consents {
  display: grid;
  gap: 12px;
  margin: 16px 0 24px;
}

.payment-form .document-consent-check input[type="checkbox"] {
  width: auto;
  padding: 0;
}

/* A mark's sentence wraps inside the card on a narrow screen. */
.entry-consents .document-consent-check > span,
.payment-form .document-consent-check > span {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
}

.payment-form > * { min-width: 0; }

.payment-form .checkout-notice {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.entry-consent-text summary {
  display: block;
  white-space: normal;
  overflow-wrap: anywhere;
}

/* Links inside a mark are words of the sentence, not buttons. */
.document-consent-check .text-link,
.checkout-terms .text-link {
  display: inline;
  min-height: 0;
  padding: 0;
}

.entry-consent-text {
  margin-left: 0;
  padding-left: 26px;
}

.entry-consent-text summary {
  min-height: 0;
  padding: 0;
  font-size: 14px;
  cursor: pointer;
}

.entry-consent-text .document-full-text {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.entry-form:has(input[type="checkbox"][required]:not(:checked)) button[type="submit"] {
  opacity: .45;
  pointer-events: none;
}

.document-consent-check input {
  flex: 0 0 auto;
  margin-top: 5px;
  accent-color: var(--accent);
}

.document-consent-dialog {
  display: block;
  width: min(640px, calc(100% - 32px));
  max-width: 640px;
  max-height: min(86vh, 760px);
  max-height: min(86dvh, 760px);
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  overflow-y: auto;
  overscroll-behavior: contain;
  color: var(--text);
}

.document-consent-dialog:not([open]) {
  display: none;
}

.document-consent-dialog::backdrop {
  background: rgba(5, 7, 10, .78);
}

.document-consent-dialog-panel {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface-strong);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .42);
}

.document-consent-dialog-body {
  padding: clamp(24px, 4vw, 40px);
  overflow-wrap: anywhere;
}

.document-consent-dialog-body h2 {
  margin-top: 12px;
  text-align: left;
}

.document-consent-dialog-scroll {
  max-height: min(52vh, 440px);
  margin-top: 18px;
  padding: 16px 10px 16px 0;
  border-block: 1px solid var(--line);
  overflow-y: auto;
}

.document-consent-dialog-scroll .card-note {
  margin-top: 0;
}

.document-consent-dialog-scroll .document-full-text {
  margin-top: 14px;
}

.document-consent-dialog-body > .document-consent-check {
  margin-top: 18px;
}

.document-consent-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
}

.document-consent-dialog-actions form,
.document-consent-dialog-actions .document-consent-form {
  display: block;
  margin: 0;
}

.document-consent-dialog-actions .button {
  min-height: 44px;
  margin-top: 0;
  white-space: normal;
}

@media (max-width: 420px) {
  .document-consent-dialog {
    width: calc(100% - 16px);
  }

  .document-consent-dialog-body {
    padding: 20px 16px;
  }

  .document-consent-dialog-actions {
    gap: 8px;
  }

  .document-consent-dialog-actions .button {
    padding-inline: 16px;
  }
}
@media (max-width: 640px), (max-height: 560px) {
  .document-consent-dialog {
    max-height: calc(100vh - 16px);
    max-height: calc(100vh - 16px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    max-height: calc(100dvh - 16px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    margin-block: max(8px, env(safe-area-inset-top, 0px)) max(8px, env(safe-area-inset-bottom, 0px));
  }

  .document-consent-dialog-scroll {
    max-height: none;
    overflow: visible;
  }
}
.account-card .account-logout-form {
  display: flex;
  justify-content: flex-end;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.account-card .account-logout-form .button {
  margin-top: 0;
}

.account-danger-card {
  grid-column: 1 / -1;
  border-color: rgba(255, 96, 96, .58);
  background: rgba(120, 24, 32, .16);
}

.account-danger-card .card-kicker,
.account-danger-card h2 {
  color: #ff9a9a;
}

.account-danger-card .card-note {
  max-width: 760px;
}

.account-danger-card .button-danger {
  border-color: #ff7373;
  background: #ff7373;
  color: #21080b;
}

.account-danger-card .button-danger:hover {
  border-color: #ff9a9a;
  background: #ff9a9a;
  color: #21080b;
}

@media (max-width: 390px) {
  .account-details > div {
    grid-template-columns: 1fr;
    gap: 4px;
    justify-items: center;
    text-align: center;
  }

  .account-details dd {
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    text-align: center;
  }
  .account-details .account-telegram-row {
    grid-template-columns: minmax(0, max-content) minmax(0, 1fr);
    gap: 8px;
    justify-items: stretch;
    text-align: left;
  }

  .account-details .account-telegram-row dd {
    justify-content: flex-end;
    flex-wrap: nowrap;
    text-align: left;
  }


  .document-row {
    align-items: center;
    flex-wrap: nowrap;
  }

  .document-action,
  .document-action-form {
    margin-left: auto;
  }


  .account-card .account-logout-form .button,
  .subscription-action-footer .subscription-action {
    width: 100%;
    justify-content: center;
  }
}

.assistant-card .card-status,
.usage-card .card-status,
.account-card .card-status,
.cabinet-lede,
.cabinet-grid .card-note {
  overflow-wrap: anywhere;
}

@media (max-width: 760px) {
  .cabinet-grid {
    grid-template-columns: 1fr;
  }

  .assistant-card {
    grid-column: auto;
  }

  .cta-actions {
    width: 100%;
  }
}

@media (max-width: 390px) {
  .header-inner {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px 14px;
    padding-block: 14px;
  }

  .header-actions {
    order: 3;
    width: 100%;
    margin-left: 0;
  }

  .header-actions .button {
    flex: 1 1 0;
    min-width: 0;
    padding-inline: 10px;
    text-align: center;
  }

  .cabinet-intro {
    margin-bottom: 26px;
  }

  .cabinet-card-heading {
    gap: 10px;
  }

  .cabinet-grid .card {
    padding: 20px;
  }

  .cta-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .cta-actions .button {
    width: 100%;
    text-align: center;
  }
}

/* Payment state surfaces reuse the product shell without introducing a second theme. */
.assistant-lifecycle {
  display: flex;
  flex: 0 0 auto;
  align-items: flex-end;
  min-width: 0;
}

.usage-card {
  display: flex;
  min-height: 0;
  flex-direction: column;
}

.usage-card-empty .usage-empty {
  flex: 1 1 auto;
}

.usage-empty {
  position: relative;
  display: flex;
  min-height: 188px;
  overflow: hidden;
  border-radius: 10px;
}

.usage-empty-preview {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: space-between;
  gap: 14px;
  padding: 20px 2px;
  filter: blur(7px);
  opacity: .58;
  pointer-events: none;
  user-select: none;
}

.usage-empty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.usage-empty-row span {
  display: block;
  height: 16px;
  border-radius: 5px;
  background: rgba(255, 255, 255, .35);
}

.usage-empty-row span:first-child {
  width: 42%;
}

.usage-empty-row span:last-child {
  width: 28%;
}

.usage-empty-meter {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
}

.usage-empty-meter span {
  display: block;
  width: 57%;
  height: 100%;
  border-radius: inherit;
  background: rgba(201, 255, 0, .36);
}

.usage-empty-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px;
  background: linear-gradient(90deg, rgba(11, 16, 21, .66), rgba(11, 16, 21, .82));
  text-align: center;
}

.usage-empty-overlay .card-status {
  max-width: 18rem;
  margin: 0;
}

.usage-empty-overlay .subscription-action-footer {
  align-items: center;
  justify-content: center;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
}

.usage-empty-overlay .subscription-action-footer .subscription-action {
  max-width: 100%;
  margin-top: 0;
  white-space: normal;
}


.assistant-action-footer,
.subscription-action-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.assistant-action-footer .bot-action,
.subscription-action-footer .subscription-action {
  min-height: 44px;
  margin-top: 0;
}

.bot-action-unknown {
  max-width: 15rem;
  color: var(--muted);
  text-align: right;
}

.subscription-action-footer .button:disabled {
  cursor: not-allowed;
  opacity: .58;
}

.button-disabled {
  cursor: not-allowed;
  opacity: .58;
}

.button:disabled {
  cursor: not-allowed;
  opacity: .58;
}

.subscription-confirmation-copy {
  margin-top: 18px;
  color: var(--muted);
}

.payment-modal:not([open]) {
  display: none;
}


.payment-modal {
  display: grid;
  width: min(720px, calc(100% - 32px));
  max-width: 720px;
  max-height: min(86vh, 760px);
  overflow-y: auto;
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
}
.checkout.return-surface > .payment-modal[open] {
  display: block;
  height: fit-content;
}


.payment-modal::backdrop {
  background: rgba(5, 7, 10, .78);
}

.payment-modal-dialog {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface-strong);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .42);
}

.payment-modal-body {
  padding: clamp(24px, 4vw, 40px);
}


.payment-modal-body h2 {
  margin-top: 14px;
  text-align: left;
}
.payment-modal-body h1 {
  margin-top: 14px;
  text-align: left;
}

.payment-modal-body .checkout-message {
  margin-top: 18px;
}

.payment-modal-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.payment-modal-actions .button {
  min-height: 44px;
  text-align: center;
  white-space: normal;
}

@media (max-width: 640px) {
  .assistant-action-footer,
  .subscription-action-footer {
    align-items: stretch;
  }

  .assistant-action-footer .bot-action,
  .subscription-action-footer .subscription-action {
    white-space: normal;
    text-align: right;
  }



  .payment-modal-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .payment-modal-actions .button {
    width: 100%;
  }
}

@media (max-width: 320px) {
  .payment-modal {
    width: calc(100% - 16px);
  }

  .payment-modal-body {
    padding: 20px 16px;
  }

  .payment-modal-actions {
    gap: 8px;
  }

  .payment-modal-actions .button {
    min-height: 44px;
    overflow-wrap: anywhere;
  }
}

.payment-wait {
  max-width: 720px;
  margin: 0 auto;
}

.payment-status {
  min-height: 28px;
  margin-top: 20px;
  color: var(--muted);
}

.payment-wait-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.payment-wait-actions .button {
  min-height: 44px;
}

@media (max-width: 640px) {
  .payment-wait-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .payment-wait-actions .button {
    width: 100%;
    text-align: center;
    white-space: normal;
  }
}

/* Checkout choice reuses the same card language. Each choice remains a
   direct GET step into checkout. */
.checkout-choice {
  padding-block: 56px 72px;
}

/* Three offers need a page-width surface, not the 640px payment form. */
.checkout.checkout-choice {
  width: min(1100px, calc(100% - clamp(32px, 5vw, 48px)));
}

.checkout-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.checkout-choice-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.checkout-choice-card h2,
.checkout-choice-card h3 {
  text-align: left;
}

.checkout-choice-card .checkout-choice-price {
  margin-top: 16px;
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.1;
}

.checkout-choice-card .checkout-choice-price small {
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  white-space: nowrap;
}

.checkout-choice-card .checkout-choice-note {
  flex: 1 1 auto;
  margin: 16px 0 24px;
}

.checkout-choice-card .button {
  align-self: flex-start;
  margin-top: auto;
  white-space: normal;
}

@media (max-width: 760px) {
  .checkout-choice-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .checkout-choice {
    padding-block: 36px 48px;
  }

  .checkout-choice-card {
    padding: 20px;
  }
}
