: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;
}

.new-page-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: linear-gradient(180deg, #fbfdff 0%, var(--background) 45%, #ffffff 100%);
}

.new-header {
  position: sticky;
  top: 0;
  left: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: minmax(10rem, 1fr) auto minmax(10rem, 1fr);
  align-items: center;
  gap: 1rem;
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  background: rgba(251, 253, 255, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.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%;
}

.new-nav {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2vw, 1.65rem);
  padding: 0.55rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--muted-foreground);
  font-size: 0.88rem;
  font-weight: 600;
}

.new-nav a:hover,
.new-nav a:focus-visible {
  color: var(--primary);
}

.is-workspace-open .new-nav {
  display: none;
}

.new-workspace-back {
  grid-column: 2;
  grid-row: 1;
  display: none;
  justify-self: center;
  min-height: 2.35rem;
  align-items: center;
  padding: 0.52rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--muted-foreground);
  font-size: 0.88rem;
  font-weight: 700;
}

.new-workspace-back:hover,
.new-workspace-back:focus-visible {
  color: var(--primary);
}

.is-workspace-open .new-workspace-back {
  display: inline-flex;
}

.new-mobile-menu {
  display: none;
  position: relative;
}

.new-mobile-menu summary {
  display: grid;
  gap: 4px;
  width: 2.45rem;
  height: 2.45rem;
  place-content: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  cursor: pointer;
  list-style: none;
}

.new-mobile-menu summary::-webkit-details-marker {
  display: none;
}

.new-mobile-menu summary span {
  display: block;
  width: 1rem;
  height: 2px;
  border-radius: 999px;
  background: var(--foreground);
}

.new-mobile-menu-panel {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  display: grid;
  width: min(18rem, calc(100vw - 1.5rem));
  padding: 0.4rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-lg);
}

.new-mobile-menu:not([open]) .new-mobile-menu-panel {
  display: none;
}

.new-mobile-menu nav {
  display: grid;
}

.new-mobile-menu nav a {
  padding: 0.72rem 0.8rem;
  border-radius: 9px;
  color: var(--foreground);
  font-size: 0.92rem;
  font-weight: 700;
}

.new-mobile-menu nav a:hover,
.new-mobile-menu nav a:focus-visible {
  background: var(--secondary);
  color: var(--primary);
}

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

.mobile-menu-account {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.35rem;
  padding: 0.35rem 0.55rem 0.45rem;
  border-top: 1px solid var(--border);
}

.mobile-menu-user,
.mobile-menu-subscription {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 0.82rem;
  line-height: 1.35;
}

.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;
}

.new-auth {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
}

.auth-actions,
.auth-main,
#tg-login {
  display: flex;
  align-items: center;
}

.auth-actions {
  justify-content: flex-end;
  gap: 0.45rem;
  min-width: 0;
}

.auth-main {
  min-height: 2.1rem;
}

#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;
}

#tg-login {
  justify-content: flex-end;
}

.auth-modal[hidden],
.email-auth-form[hidden],
.auth-divider[hidden],
.telegram-auth-block[hidden] {
  display: none !important;
}

body.auth-modal-open {
  overflow: hidden;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgb(7 10 18 / 0.48);
}

.auth-modal-panel {
  position: relative;
  width: min(26rem, 100%);
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--background);
  box-shadow: 0 24px 70px rgb(7 10 18 / 0.28);
}

.auth-modal-panel h2 {
  margin: 0 2rem 1rem 0;
  color: var(--foreground);
  font-size: 1.2rem;
  line-height: 1.2;
}

.auth-modal-close {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: var(--secondary);
  color: var(--foreground);
  cursor: pointer;
  font: inherit;
  font-size: 1.35rem;
  line-height: 1;
}

.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-modal-message,
.auth-modal-note,
.auth-mode-hint,
.telegram-auth-block p {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 0.84rem;
  line-height: 1.35;
}

.auth-modal-note {
  margin-bottom: 0.9rem;
}

.auth-mode-hint {
  margin-top: -0.15rem;
}

.auth-consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.6rem;
  align-items: start;
  color: var(--muted-foreground);
  font-size: 0.86rem;
  line-height: 1.45;
}

.auth-consent[hidden] {
  display: none;
}

.auth-consent input {
  width: 1rem;
  height: 1rem;
  margin: 0.15rem 0 0;
  accent-color: var(--primary);
}

.auth-consent a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

.auth-consent a:hover {
  text-decoration: underline;
}

.auth-modal-message {
  color: #dc2626;
}

.auth-modal-message.is-success {
  color: #15803d;
}

.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;
  min-height: 2.25rem;
  align-items: center;
  color: var(--muted-foreground);
  font-size: 0.84rem;
}

.new-main {
  position: relative;
  z-index: 10;
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 3rem) 4rem;
}

.new-landing-content {
  display: grid;
  gap: clamp(3rem, 7vw, 5.5rem);
}

.new-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(28rem, 1.05fr);
  align-items: center;
  justify-content: space-between;
  gap: clamp(2rem, 5vw, 4rem);
  padding: clamp(2rem, 4vw, 4rem) 0 0;
}

.new-hero-copy {
  display: grid;
  align-content: center;
  gap: 1.35rem;
  min-width: 0;
}

.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);
}

.new-hero h1,
.new-section h2,
.panel h2 {
  margin: 0;
  color: var(--foreground);
  font-family: var(--font-headings);
  font-weight: 700;
  letter-spacing: 0;
}

.new-hero h1 {
  max-width: 42rem;
  font-size: clamp(2.75rem, 6.2vw, 5rem);
  line-height: 1;
}

.new-hero h1 span {
  color: var(--primary);
}

.new-hero-description {
  max-width: 35rem;
  margin: 0;
  color: var(--muted-foreground);
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  line-height: 1.62;
}

.new-hero-actions,
.result-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
}

.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-hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 34rem;
  padding: clamp(0.5rem, 2vw, 1.5rem);
}

.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-file-icon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  background: rgba(11, 117, 255, 0.1);
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 800;
}

.new-file-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.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-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 1.7rem;
  padding: 0.28rem 0.56rem;
  border-radius: 999px;
  background: var(--secondary);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 800;
  white-space: nowrap;
}

.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;
}

.new-section {
  display: grid;
  gap: 1.2rem;
  padding: 0;
}

.new-section-head {
  display: grid;
  gap: 0.55rem;
  max-width: 50rem;
}

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

.new-section h2 {
  font-size: clamp(1.65rem, 2.7vw, 2.35rem);
  line-height: 1.12;
}

.new-section-head p:not(.eyebrow) {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 1rem;
  line-height: 1.6;
}

.new-feature-grid,
.new-price-grid,
.new-step-grid {
  display: grid;
  gap: 0.9rem;
}

.new-feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.new-price-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.new-step-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.new-feature-grid article,
.new-price-grid article,
.new-step-grid article,
.faq-list details,
.panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
}

.new-feature-grid article,
.new-price-grid article,
.new-step-grid article {
  display: grid;
  align-content: start;
  gap: 0.5rem;
  padding: 1.15rem;
  box-shadow: var(--shadow-sm);
}

.new-feature-grid h3,
.new-step-grid h3 {
  margin: 0;
  color: var(--foreground);
  font-family: var(--font-headings);
  font-size: 1.05rem;
  line-height: 1.25;
}

.new-feature-grid p,
.new-price-grid p,
.new-step-grid p,
.faq-list p {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 0.94rem;
  line-height: 1.5;
}

.new-step-grid article {
  position: relative;
  min-height: 10rem;
}

.new-step-grid article > span {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 50%;
  background: var(--secondary);
  color: var(--primary);
  font-size: 0.86rem;
  font-weight: 800;
}

.new-price-grid span {
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.new-price-grid strong {
  color: var(--foreground);
  font-family: var(--font-headings);
  font-size: 1.55rem;
  line-height: 1.1;
}

.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;
}

.composer {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(300px, 0.78fr);
  align-items: start;
  gap: 1rem;
  min-height: 100svh;
  padding: 7rem 0 0;
}

.main-stack,
.side-stack {
  display: grid;
  gap: 1rem;
}

.panel {
  padding: 1.2rem;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
}

.panel-head {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.panel-head-compact {
  margin-bottom: 0.75rem;
}

.panel h2 {
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  line-height: 1.16;
}

.panel-animate {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 260ms ease, transform 300ms ease;
  transition-delay: var(--panel-delay, 0ms);
}

.panel-animate.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.transcription-form {
  display: grid;
  gap: 0.9rem;
}

.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%;
}

.field-label {
  color: var(--muted-foreground);
  font-size: 0.84rem;
  font-weight: 800;
}

.field-file {
  position: relative;
}

.file-input {
  position: absolute;
  inset: 1.65rem 0 0;
  opacity: 0;
  cursor: pointer;
}

.file-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  min-height: 3.35rem;
  padding: 0.44rem 0.5rem 0.44rem 0.88rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--background);
  transition: border-color 160ms ease, background-color 160ms ease;
}

.file-trigger.is-selected {
  border-color: rgba(11, 117, 255, 0.5);
  background: var(--secondary);
}

.file-trigger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.54rem 0.78rem;
  border-radius: 8px;
  background: var(--primary);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 800;
  white-space: nowrap;
}

.file-trigger-text {
  min-width: 0;
  overflow: hidden;
  color: var(--muted-foreground);
  font-size: 0.95rem;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.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;
}

input:focus,
select:focus,
textarea:focus,
.field-file:focus-within .file-trigger {
  outline: none;
  border-color: rgba(11, 117, 255, 0.5);
  box-shadow: 0 0 0 3px rgba(11, 117, 255, 0.14);
}

.panel-status {
  box-shadow: none;
}

#status-panel {
  background: rgba(253, 253, 253, 0.92);
}

.status-list {
  display: grid;
  gap: 0.72rem;
  margin: 0;
}

.status-list div {
  display: grid;
  gap: 0.18rem;
  padding-top: 0.72rem;
  border-top: 1px solid var(--border);
}

.status-list div:first-child {
  padding-top: 0;
  border-top: 0;
}

.status-list dt {
  color: var(--muted-foreground);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.status-list dd {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
}

.job-progress {
  display: grid;
  gap: 0.38rem;
}

.job-progress-bar {
  display: block;
  width: 100%;
  height: 0.5rem;
  overflow: hidden;
  border-radius: 999px;
  background: #dce4ff;
}

.job-progress-fill {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary) 0%, #7aa7f7 100%);
  transition: width 300ms ease;
}

.job-progress-fill.is-indeterminate {
  width: 35%;
  animation: progress-indeterminate 1.25s ease-in-out infinite;
}

.panel-status[data-state="working"] {
  border-color: rgba(11, 117, 255, 0.35);
}

.panel-status[data-state="done"] {
  border-color: rgba(11, 117, 255, 0.55);
}

.panel-status[data-state="error"] {
  border-color: #dfaaaa;
}

.format-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
  row-gap: 0.42rem;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.format-options legend {
  grid-column: 1 / -1;
  padding: 0;
  margin-bottom: 0.35rem;
}

.format-option {
  position: relative;
  display: block;
  min-width: 0;
}

.format-option input {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0;
  cursor: pointer;
  opacity: 0;
}

.format-option span {
  display: grid;
  min-height: 2.65rem;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  color: var(--muted-foreground);
  font-size: 0.88rem;
  font-weight: 800;
  pointer-events: none;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.format-option input:checked + span {
  border-color: rgba(11, 117, 255, 0.45);
  background: var(--secondary);
  color: var(--primary);
  box-shadow: inset 0 0 0 1px rgba(11, 117, 255, 0.18);
}

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

.status-error {
  margin: 0.85rem 0 0;
  color: var(--danger);
  font-size: 0.92rem;
  line-height: 1.45;
}

.result-block {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.result-actions {
  justify-content: flex-start;
}

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

.subscription-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.subscription-info,
.task-stats,
.history-list {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 0.94rem;
  line-height: 1.5;
  white-space: pre-line;
}

.subscription-info {
  min-width: 0;
}

.subscription-action {
  flex: 0 0 auto;
}

.subscription-email-form {
  display: flex;
  align-items: end;
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.subscription-email-form[hidden] {
  display: none;
}

.subscription-email-form label {
  flex: 1 1 12rem;
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}

.subscription-email-form input {
  width: 100%;
}

.subscription-email-form .button {
  flex: 0 0 auto;
}

.history-list {
  display: grid;
  gap: 0.5rem;
}

.history-row {
  display: grid;
  gap: 0.18rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
  overflow-wrap: anywhere;
}

.history-row strong {
  color: var(--foreground);
  font-size: 0.95rem;
}

.history-row span {
  color: var(--muted-foreground);
  font-size: 0.86rem;
}

.history-row:first-child {
  padding-top: 0;
  border-top: 0;
}

@media (max-width: 1040px) {
  .new-header {
    grid-template-columns: auto auto minmax(0, 1fr);
  }

  .new-nav {
    display: none;
  }

  .new-workspace-back {
    display: none !important;
  }

  .new-mobile-menu {
    display: block;
  }

  .new-mobile-menu-panel {
    right: auto;
    left: 0;
  }

  .new-auth {
    grid-column: 3;
  }

  .new-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 2rem;
  }

  .new-hero-visual {
    min-height: 30rem;
    order: 2;
  }

  .composer {
    grid-template-columns: 1fr;
    padding-top: 1rem;
  }

  .new-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .new-step-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .new-main {
    padding-right: 0.75rem;
    padding-left: 0.75rem;
  }

  .new-header {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.5rem;
    padding: 0.75rem;
  }

  .new-mobile-menu {
    justify-self: end;
  }

  .new-mobile-menu-panel {
    right: 0;
    left: auto;
  }

  .new-brand {
    font-size: 1.18rem;
  }

  .new-auth {
    display: none;
  }

  .auth-actions {
    align-items: stretch;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0.35rem;
  }

  .auth-main {
    width: 100%;
  }

  #tg-login {
    max-width: 100%;
    overflow: hidden;
    width: 100%;
  }

  #tg-login iframe {
    max-width: 12.5rem;
  }

  #auth-user {
    max-width: 100%;
    padding: 0.34rem 0.52rem;
    font-size: 0.78rem;
  }

  .new-hero {
    gap: 1.5rem;
    padding-top: 1.25rem;
  }

  .new-hero-copy {
    gap: 0.85rem;
  }

  .new-pill {
    width: max-content;
    align-items: flex-start;
    border-radius: 999px;
    font-size: 0.82rem;
  }

  .new-hero h1 {
    font-size: clamp(2.35rem, 12vw, 3.25rem);
  }

  .new-hero-description {
    font-size: 1rem;
    line-height: 1.5;
  }

  .new-hero-actions,
  .result-actions,
  .subscription-row {
    align-items: stretch;
    flex-direction: column;
  }

  .format-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .button {
    min-height: 3rem;
    width: 100%;
  }

  .new-hero-actions .button {
    min-height: 3.2rem;
    font-size: 1rem;
  }

  .new-benefit-list {
    display: grid;
    gap: 0.5rem;
  }

  .new-tariff-strip {
    grid-template-columns: 1fr;
    padding: 0.85rem;
  }

  .new-hero-visual {
    min-height: auto;
    padding: 0;
  }

  .new-transcript-card {
    width: 100%;
    padding: 1rem;
  }

  .new-process-card {
    position: static;
    width: 100%;
    margin-top: 0.8rem;
  }

  .new-feature-grid,
  .new-price-grid,
  .new-step-grid {
    grid-template-columns: 1fr;
  }

  .file-trigger {
    align-items: stretch;
    flex-direction: column;
  }

  .file-trigger-text {
    width: 100%;
    text-align: center;
  }
}

@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%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (max-width: 430px) {
  .new-header {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .new-mobile-menu {
    order: 2;
  }

  .new-mobile-menu-panel {
    right: 0;
    left: auto;
  }

  .new-auth {
    grid-column: auto;
    justify-self: stretch;
  }

  .new-auth .auth-actions {
    justify-content: flex-end;
  }

  #tg-login {
    justify-content: flex-start;
  }

  .new-pill {
    width: 100%;
    border-radius: 10px;
  }

  .new-hero h1 {
    font-size: clamp(2.18rem, 13vw, 2.85rem);
  }

  .new-transcript-head {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .new-status-pill {
    grid-column: 1 / -1;
    width: max-content;
  }

  .new-transcript-lines p {
    font-size: 0.84rem;
  }
}

@media (max-width: 340px) {
  .new-main {
    padding-right: 0.65rem;
    padding-left: 0.65rem;
  }

  .new-header {
    padding-right: 0.65rem;
    padding-left: 0.65rem;
  }

  .new-brand {
    font-size: 1.05rem;
  }

  .new-hero h1 {
    font-size: 2.08rem;
  }

  .new-transcript-card,
  .new-process-card,
  .new-tariff-strip,
  .new-feature-grid article,
  .new-price-grid article,
  .new-step-grid article,
  .faq-list details {
    border-radius: 10px;
  }
}

.transcription-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.transcription-options legend {
  grid-column: 1 / -1;
  padding: 0;
  color: var(--muted-foreground);
  font-size: 0.84rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.transcription-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-width: 0;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--background);
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.transcription-option:hover,
.transcription-option:focus-within {
  border-color: rgba(11, 117, 255, 0.5);
  background: var(--secondary);
}

.transcription-option-copy {
  display: grid;
  gap: 0.16rem;
  min-width: 0;
}

.transcription-option-copy strong {
  color: var(--foreground);
  font-size: 0.88rem;
  line-height: 1.25;
}

.transcription-option-copy small {
  color: var(--muted-foreground);
  font-size: 0.75rem;
  line-height: 1.35;
}

.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;
}

.task-stats {
  display: grid;
  gap: 0.65rem;
  white-space: normal;
}

.usage-overview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.usage-badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.6rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: var(--secondary);
  color: var(--primary-strong);
  font-size: 0.74rem;
  font-weight: 800;
}

.usage-value {
  color: var(--foreground);
  font-family: var(--font-headings);
  font-size: 1.2rem;
  font-weight: 700;
}

.usage-value small {
  color: var(--muted-foreground);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
}

.usage-progress {
  height: 0.4rem;
  overflow: hidden;
  border-radius: 999px;
  background: var(--muted);
}

.usage-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
}

.usage-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--muted-foreground);
  font-size: 0.78rem;
}

.usage-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.usage-metric {
  display: grid;
  gap: 0.15rem;
  padding: 0.65rem;
  border-radius: 9px;
  background: var(--secondary);
}

.usage-metric strong {
  color: var(--foreground);
  font-size: 1.1rem;
}

.usage-metric span {
  color: var(--muted-foreground);
  font-size: 0.75rem;
}

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

.site-footer {
  position: relative;
  z-index: 2;
  margin-top: 4rem;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.site-footer-inner {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0;
}

.site-footer-brand {
  color: var(--foreground);
  font-family: var(--font-headings);
  font-size: 1.2rem;
  font-weight: 700;
  text-decoration: none;
  display: flex;
  gap: 5px;
  align-items: center;
}

.site-footer-logo {
  width: 24px;
}

.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin: 1rem 0;
}

.site-footer-links a {
  color: var(--muted-foreground);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.site-footer-links a:hover {
  color: var(--primary);
}

.site-footer p {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 0.82rem;
}

.site-footer-legal {
  max-width: 34rem;
}

.cookie-banner {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 80;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  width: min(48rem, calc(100vw - 2rem));
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 55px rgba(15, 23, 42, 0.13);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner p {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 0.88rem;
  line-height: 1.45;
}

.cookie-banner-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  white-space: nowrap;
}

.cookie-banner-actions a {
  color: var(--primary);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}

.cookie-banner-actions a:hover {
  text-decoration: underline;
}

@media (max-width: 760px) {
  .cookie-banner {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    grid-template-columns: 1fr;
    width: auto;
  }

  .cookie-banner-actions {
    justify-content: space-between;
    white-space: normal;
  }
}

.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;
}

@media (max-width: 720px) {
  .transcription-options {
    grid-template-columns: 1fr;
  }

  .site-footer {
    margin-top: 2.5rem;
  }

  .site-footer-links {
    align-items: flex-start;
    flex-direction: column;
  }

  .legal-header {
    align-items: stretch;
    flex-direction: column;
  }
}
