﻿/* Extracted from site-new.css. Legacy rules remain in site-new.css until visual verification is complete. */

:root {
  color-scheme: light;
  --background: #f7faff;
  --card: #ffffff;
  --foreground: #101827;
  --border: #dfe7f3;
  --primary: #0b75ff;
  --primary-strong: #075ecc;
  --primary-foreground: #ffffff;
  --secondary: #eef5ff;
  --muted: #f3f6fb;
  --muted-foreground: #5f7086;
  --accent: #0a9f76;
  --danger: #b64b4b;
  --shadow-sm: 0 1px 2px rgba(16, 24, 39, 0.06);
  --shadow-lg: 0 18px 44px rgba(31, 45, 74, 0.10);
  --shadow-primary: 0 12px 26px rgba(11, 117, 255, 0.22);
  --radius: 12px;
  --font-body: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-headings: "Space Grotesk", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
  font-synthesis: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
}

.toast-container {
  position: fixed;
  z-index: 1000;
  top: 1rem;
  right: 1rem;
  display: grid;
  gap: 0.55rem;
  width: min(22rem, calc(100vw - 2rem));
  pointer-events: none;
}

.toast {
  padding: 0.78rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  box-shadow: var(--shadow-lg);
  color: var(--foreground);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.35;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast-error {
  border-color: rgba(182, 75, 75, 0.35);
  background: #fff8f8;
  color: #9f3434;
}

.toast-success {
  border-color: rgba(10, 159, 118, 0.35);
  background: #f1fbf7;
  color: #087b5d;
}

.toast.is-hidden {
  opacity: 0;
  transform: translateY(-0.35rem);
}

.new-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: max-content;
  color: var(--foreground);
  font-family: var(--font-headings);
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1;
}

.new-brand-bars {
  display: inline-flex;
  align-items: end;
  gap: 2px;
  width: 1.25rem;
  height: 1.5rem;
}

.new-brand-bars i {
  width: 4px;
  border-radius: 999px;
  background: var(--primary);
}

.new-brand-bars i:nth-child(1) {
  height: 40%;
}

.new-brand-bars i:nth-child(2) {
  height: 80%;
}

.new-brand-bars i:nth-child(3) {
  height: 100%;
}

.new-brand-bars i:nth-child(4) {
  height: 60%;
}

.is-workspace-open .mobile-landing-link {
  display: none;
}

.mobile-menu-user {
  color: var(--foreground);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.mobile-menu-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.45rem;
}

.mobile-menu-actions .button {
  width: 100%;
  min-height: 2.45rem;
  white-space: nowrap;
}

:focus-visible {
  outline: 3px solid rgba(11, 117, 255, 0.22);
  outline-offset: 3px;
}

#auth-user {
  max-width: 11rem;
  margin: 0;
  padding: 0.42rem 0.72rem;
  overflow: hidden;
  border: 1px solid rgba(11, 117, 255, 0.24);
  border-radius: 999px;
  background: var(--secondary);
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
  font-family: inherit;
}

.email-auth-form {
  display: grid;
  gap: 0.75rem;
}

.auth-mode-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem;
  margin-bottom: 0.9rem;
}

.auth-mode-tab {
  min-height: 2.6rem;
  padding: 0.58rem 0.72rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--background);
  color: var(--muted-foreground);
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
}

.auth-mode-tab.is-active {
  border-color: rgba(11, 117, 255, 0.4);
  background: var(--secondary);
  color: var(--primary);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0;
  color: var(--muted-foreground);
  font-size: 0.78rem;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.telegram-auth-block {
  display: grid;
  gap: 0.75rem;
}

.telegram-widget-mount {
  display: flex;
  justify-content: center;
  min-height: 2.25rem;
  align-items: center;
  color: var(--muted-foreground);
  font-size: 0.84rem;
}

.new-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  width: max-content;
  max-width: 100%;
  padding: 0.5rem 0.78rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  color: var(--foreground);
  font-size: 0.86rem;
  font-weight: 600;
}

.new-pill span {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--primary);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.74rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  color: var(--foreground);
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease, color 160ms ease, opacity 160ms ease;
}

.button:hover,
.button:focus-visible {
  border-color: rgba(11, 117, 255, 0.34);
  transform: translateY(-1px);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  transform: none;
}

.button-primary {
  border-color: var(--primary);
  background: var(--primary);
  box-shadow: var(--shadow-primary);
  color: var(--primary-foreground);
}

.button-primary:hover,
.button-primary:focus-visible {
  border-color: var(--primary-strong);
  background: var(--primary-strong);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.9);
}

.button-small {
  min-height: 2.22rem;
  padding: 0.5rem 0.85rem;
  font-size: 0.85rem;
}

.button.is-loading {
  position: relative;
  pointer-events: none;
  padding-left: 2.15rem;
}

.button.is-loading::before {
  content: "";
  position: absolute;
  left: 0.82rem;
  width: 0.78rem;
  height: 0.78rem;
  border: 2px solid rgba(255, 255, 255, 0.38);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: button-spin 760ms linear infinite;
}

.button-icon {
  gap: 0.5rem;
}

.button-icon-mark {
  display: inline-flex;
  width: 1.05rem;
  height: 1.05rem;
}

.button-icon-mark svg {
  width: 100%;
  height: 100%;
}

.telegram-mark {
  display: inline-flex;
  width: 1.05rem;
  height: 1.05rem;
  color: #229ed9;
}

.telegram-mark svg {
  width: 100%;
  height: 100%;
}

.new-transcript-card,
.new-process-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-lg);
}

.new-transcript-card {
  position: relative;
  z-index: 20;
  display: grid;
  gap: 1.1rem;
  width: min(100%, 34rem);
  padding: clamp(1rem, 2.5vw, 1.35rem);
}

.new-transcript-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--border);
}

.new-transcript-head strong {
  display: block;
  overflow: hidden;
  color: var(--foreground);
  font-family: var(--font-headings);
  font-size: 0.95rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.new-transcript-head span {
  display: block;
  margin-top: 0.15rem;
  color: var(--muted-foreground);
  font-size: 0.78rem;
}

.new-progress-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.45rem 0.75rem;
}

.new-progress-row span {
  color: var(--muted-foreground);
  font-size: 0.84rem;
  font-weight: 700;
}

.new-progress-row strong {
  color: var(--foreground);
  font-size: 0.88rem;
}

.new-progress-row i {
  grid-column: 1 / -1;
  display: block;
  height: 0.55rem;
  overflow: hidden;
  border-radius: 999px;
  background: #dbe8fb;
}

.new-progress-row b {
  display: block;
  width: 68%;
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
  animation: demo-progress 5s ease-in-out infinite;
}

.new-transcript-lines {
  display: grid;
  gap: 0.65rem;
}

.new-transcript-lines p {
  position: relative;
  margin: 0;
  padding: 0.82rem;
  border: 1px solid #e7edf7;
  border-radius: 10px;
  background: #fbfdff;
  color: var(--foreground);
  font-size: 0.88rem;
  line-height: 1.45;
}

.new-transcript-lines p:nth-child(2) {
  background: var(--secondary);
}

.new-transcript-lines b {
  margin-right: 0.35rem;
  color: var(--primary);
}

.new-transcript-lines span {
  margin-right: 0.28rem;
  color: var(--foreground);
  font-weight: 800;
}

.new-export-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 0.2rem;
}

.new-export-row span {
  margin-right: 0.15rem;
  color: var(--muted-foreground);
  font-size: 0.82rem;
  font-weight: 800;
}

.new-export-row i {
  padding: 0.28rem 0.5rem;
  border-radius: 7px;
  background: var(--muted);
  color: var(--muted-foreground);
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 700;
}

.new-process-card {
  position: absolute;
  right: 0;
  bottom: 1.25rem;
  z-index: 30;
  width: min(18rem, 52%);
  padding: 1rem;
  box-shadow: 0 14px 30px rgba(31, 45, 74, 0.08);
}

.new-process-card span {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--muted-foreground);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.new-process-card ul {
  display: grid;
  gap: 0.42rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.new-process-card li,
.new-benefit-list li {
  position: relative;
  padding-left: 1.05rem;
  color: var(--foreground);
  font-size: 0.86rem;
  line-height: 1.35;
}

.new-process-card li::before,
.new-benefit-list li::before {
  content: "";
  position: absolute;
  top: 0.47em;
  left: 0;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--primary);
}

.new-benefit-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.new-benefit-list li {
  color: var(--muted-foreground);
  font-weight: 700;
}

.new-tariff-strip {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: center;
  gap: 0.85rem 1.2rem;
  width: min(100%, 43rem);
  margin-top: 0.25rem;
  padding: 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-sm);
}

.new-tariff-strip div {
  display: grid;
  gap: 0.12rem;
}

.new-tariff-strip span {
  color: var(--muted-foreground);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.new-tariff-strip strong {
  color: var(--foreground);
  font-size: 1rem;
  line-height: 1.2;
}

.new-tariff-strip p {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 0.88rem;
  line-height: 1.4;
}

.eyebrow {
  margin: 0;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.3;
  text-transform: uppercase;
}

.faq-list {
  display: grid;
  gap: 0.65rem;
}

.faq-list details {
  padding: 0.9rem 1rem;
}

.faq-list summary {
  color: var(--foreground);
  cursor: pointer;
  font-weight: 800;
  line-height: 1.35;
}

.faq-list summary:focus-visible {
  outline-offset: 0.35rem;
}

.faq-list p {
  padding-top: 0.55rem;
}

.form-hint {
  display: grid;
  gap: 0.18rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--secondary);
}

.form-hint strong {
  color: var(--foreground);
  font-size: 0.86rem;
}

.form-hint span {
  color: var(--muted-foreground);
  font-size: 0.84rem;
  line-height: 1.45;
}

.field {
  display: grid;
  gap: 0.42rem;
  width: 100%;
}

.separator {
  justify-self: center;
  color: var(--muted-foreground);
  font-size: 0.85rem;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--background);
  color: var(--foreground);
  font-size: 1rem;
}

input,
select {
  min-height: 0.9rem;
  padding: 0.66rem 0.8rem;
}

select {
  cursor: pointer;
}

textarea {
  min-height: 9rem;
  padding: 0.72rem;
  line-height: 1.55;
  resize: vertical;
}

@keyframes button-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes progress-indeterminate {
  0% {
    transform: translateX(-120%);
  }
  50% {
    transform: translateX(80%);
  }
  100% {
    transform: translateX(260%);
  }
}

@keyframes demo-progress {
  0%,
  100% {
    width: 62%;
  }
  50% {
    width: 74%;
  }
}

.option-switch {
  position: relative;
  flex: 0 0 auto;
  width: 2.45rem;
  height: 1.45rem;
}

.option-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  padding: 0;
  opacity: 0;
}

.option-switch span {
  position: absolute;
  inset: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--muted);
  transition: border-color 160ms ease, background-color 160ms ease;
}

.option-switch span::after {
  content: "";
  position: absolute;
  top: 0.18rem;
  left: 0.18rem;
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  transition: transform 160ms ease;
}

.option-switch input:checked + span {
  border-color: var(--primary);
  background: var(--primary);
}

.option-switch input:checked + span::after {
  transform: translateX(0.98rem);
}

.option-switch input:focus-visible + span {
  outline: 3px solid rgba(11, 117, 255, 0.18);
  outline-offset: 2px;
}

.site-logo {
    display: block;
    width: 8.6rem;
    height: auto;
    flex: 0 0 auto;
}

.legal-page {
  min-height: 100vh;
  background: var(--background);
}

.legal-header {
  width: min(1040px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.legal-main {
  width: min(920px, calc(100% - 2rem));
  margin: 2rem auto 0;
}

.legal-card {
  padding: clamp(1.25rem, 4vw, 3rem);
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--card);
  box-shadow: var(--shadow-lg);
}

.legal-card h1 {
  margin: 0.5rem 0 1.75rem;
  color: var(--foreground);
  font-family: var(--font-headings);
  font-size: clamp(1.8rem, 5vw, 3rem);
  line-height: 1.08;
}

.legal-document {
  color: var(--muted-foreground);
  font-size: 0.98rem;
  line-height: 1.72;
  white-space: pre-wrap;
}

.feedback-main {
  width: min(720px, calc(100% - 2rem));
}

.feedback-card h1 {
  margin-bottom: 0.75rem;
}

.feedback-intro {
  max-width: 38rem;
  margin: 0 0 1.75rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}

.feedback-page-form {
  display: grid;
  gap: 1.25rem;
}

.feedback-page-form textarea {
  min-height: 12rem;
  padding: 0.8rem;
  resize: vertical;
}

.feedback-upload {
  position: relative;
}

.feedback-upload-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.feedback-upload-control {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.85rem;
  align-items: center;
  min-height: 5.25rem;
  padding: 0.85rem;
  border: 1px dashed rgba(11, 117, 255, 0.38);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(11, 117, 255, 0.055), rgba(10, 159, 118, 0.035));
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.feedback-upload-control:hover {
  border-color: rgba(11, 117, 255, 0.7);
  background: var(--secondary);
  transform: translateY(-1px);
}

.feedback-upload-input:focus-visible + .feedback-upload-control {
  border-color: rgba(11, 117, 255, 0.7);
  outline: none;
  box-shadow: 0 0 0 3px rgba(11, 117, 255, 0.14);
}

.feedback-upload-control.is-selected {
  border-style: solid;
  border-color: rgba(10, 159, 118, 0.48);
  background: rgba(10, 159, 118, 0.07);
}

.feedback-upload-icon {
  display: grid;
  width: 2.8rem;
  height: 2.8rem;
  place-items: center;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 18px rgba(11, 117, 255, 0.18);
}

.feedback-upload-icon svg {
  width: 1.35rem;
  height: 1.35rem;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.feedback-upload-copy {
  display: grid;
  min-width: 0;
  gap: 0.22rem;
}

.feedback-upload-copy strong {
  color: var(--foreground);
  font-size: 0.92rem;
}

.feedback-upload-copy small {
  overflow: hidden;
  color: var(--muted-foreground);
  font-size: 0.78rem;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feedback-upload-action {
  padding: 0.56rem 0.78rem;
  border: 1px solid rgba(11, 117, 255, 0.22);
  border-radius: 8px;
  background: #fff;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}

.feedback-form-actions {
  display: grid;
  gap: 0.75rem;
  justify-items: start;
}

.feedback-page-message:empty {
  display: none;
}
