.site-doc,
.site-doc body {
  height: auto;
  overflow: auto;
  background: #f3f6fb;
}
.site-doc body {
  min-height: 100%;
  color: #071633;
  font-size: 16px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.site-doc, .site-doc body { overflow-x: hidden; }
.site-shell {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.public-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 64px;
  padding: max(8px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) 8px max(20px, env(safe-area-inset-left));
  background: #fff;
  border-bottom: 1px solid #d9e2ef;
}
.public-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: #1565d8;
}
.public-header {
  position: sticky;
}
.site-logo {
  display: flex;
  align-items: center;
  height: 48px;
  max-width: 220px;
  text-decoration: none;
}
.site-logo img {
  display: block;
  width: auto;
  height: auto;
  max-width: 210px;
  max-height: 40px;
  object-fit: contain;
  object-position: left center;
}
.public-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 2px;
}
.public-nav a,
.public-nav .nav-link {
  color: #344054;
  text-decoration: none;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 10px;
}
.public-nav a:hover,
.public-nav a:focus-visible,
.public-nav .nav-link:hover {
  background: #eef6ff;
  color: #0878ff;
  outline: none;
}
.public-nav a.is-current {
  background: #eef6ff;
  color: #0878ff;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.primary-button,
.site-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  background: #1565d8;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}
.primary-button:hover,
.site-cta:hover { background: #0f4fb0; }
.ghost-button {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid #d0d5dd;
  border-radius: 12px;
  background: #fff;
  color: #071633;
  font-weight: 700;
}
.lang-wrap { position: relative; }
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid #d0d5dd;
  border-radius: 12px;
  background: #fff;
  color: #071633;
  font-weight: 700;
}
.lang-toggle:focus-visible,
.ghost-button:focus-visible,
.primary-button:focus-visible,
.secondary-button:focus-visible,
.site-cta:focus-visible,
.danger-button:focus-visible,
.public-nav a:focus-visible {
  outline: 3px solid #b2ddff;
  outline-offset: 2px;
}
.lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  inset-inline-end: 0;
  min-width: 220px;
  max-height: min(70vh, 420px);
  overflow: auto;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: #fff;
  border: 1px solid #e4eaf3;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(6, 19, 60, 0.12);
  z-index: 50;
}
.lang-option {
  display: block;
  width: 100%;
  text-align: start;
  border: 0;
  background: transparent;
  padding: 10px 12px;
  border-radius: 8px;
  font-weight: 650;
}
.lang-option:hover,
.lang-option:focus-visible,
.lang-option.is-active {
  background: #eef6ff;
  color: #0878ff;
}
.public-menu-toggle { display: none; }
.site-main {
  flex: 1 1 auto;
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 48px;
}
.site-hero h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 42px);
  color: #06133c;
  letter-spacing: -.03em;
}
.site-hero p.lead {
  margin: 0 0 24px;
  color: #344054;
  font-size: 18px;
  line-height: 1.5;
  max-width: 720px;
}
.site-section { margin: 28px 0; }
.site-section h2 {
  margin: 0 0 12px;
  color: #06133c;
  font-size: 22px;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.how-steps {
  list-style: decimal;
  padding-left: 1.25rem;
  margin: 0;
}
.site-card,
.plan-card,
.step-card {
  background: #fff;
  border: 1px solid #e4eaf3;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 8px 24px rgba(6, 19, 60, 0.04);
}
.site-card h3,
.step-card h3 { margin: 0 0 8px; color: #06133c; }
.site-card p,
.step-card p,
.site-card li { color: #344054; line-height: 1.55; }
.pill {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  background: #ecfdf3;
  color: #027a48;
  font-size: 12px;
  font-weight: 800;
}
.pill.soon {
  background: #fff7ed;
  color: #b54708;
}
.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.feature-list li {
  padding: 10px 12px;
  background: #fff;
  border: 1px solid #e4eaf3;
  border-radius: 10px;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.plan-card .price {
  font-size: 40px;
  font-weight: 800;
  color: #06133c;
  margin: 8px 0;
}
.plan-card ul { margin: 12px 0 18px; padding-inline-start: 18px; color: #344054; line-height: 1.6; }
.plan-card.pro { border-color: #c7d7fe; }
.coming-note { color: #b54708; font-weight: 800; }
.faq details {
  background: #fff;
  border: 1px solid #e4eaf3;
  border-radius: 12px;
  padding: 12px 16px;
  margin: 8px 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 750;
  color: #06133c;
}
.faq summary:focus-visible { outline: 3px solid #b2ddff; }
.faq p { margin: 8px 0 0; color: #344054; line-height: 1.6; }
.legal-page h2 { margin-top: 28px; }
.legal-page p, .legal-page li { line-height: 1.65; color: #344054; }
.english-governs {
  background: #eef6ff;
  border: 1px solid #b2ddff;
  border-radius: 12px;
  padding: 12px 14px;
  font-weight: 650;
}
.site-footer {
  background: #06133c;
  color: #d0d5dd;
  padding: 36px 24px 24px;
}
.site-footer a { color: #eef6ff; text-decoration: none; }
.site-footer a:hover, .site-footer a:focus-visible { text-decoration: underline; }
.footer-grid {
  width: min(1080px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
}
.site-footer h2 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 14px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.app-home .home-site-footer {
  margin: 28px -8px 0;
  border-radius: 16px 16px 0 0;
}
.mic-test-elapsed {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted, #667085);
}
#micTestAudio {
  width: min(100%, 420px);
  margin-top: 8px;
}
.footer-copy {
  width: min(1080px, 100%);
  margin: 24px auto 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 13px;
}
.public-menu {
  display: none;
}
.hl-1080 {
  display: inline-block;
  margin-top: 8px;
  padding: 6px 10px;
  background: #0878ff;
  color: #fff;
  border-radius: 8px;
  font-weight: 800;
}

@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .public-header {
    grid-template-columns: auto 1fr auto;
    min-height: 72px;
    padding: 8px 12px;
  }
  .site-logo { height: 52px; max-width: 200px; }
  .site-logo img { max-width: 190px; max-height: 48px; }
  .public-nav { display: none; }
  .public-menu-toggle { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid #d0d5dd; border-radius: 12px; background: #fff; }
  .header-actions .lang-current-name { display: none; }
  .public-menu {
    display: none;
    position: fixed;
    inset: 72px 12px auto 12px;
    background: #fff;
    border: 1px solid #e4eaf3;
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(6,19,60,.16);
    padding: 12px;
    z-index: 45;
    max-height: min(75dvh, 480px);
    overflow: auto;
  }
  .public-menu.is-open { display: grid; gap: 4px; }
  .public-menu a {
    display: block;
    padding: 12px;
    border-radius: 10px;
    color: #071633;
    text-decoration: none;
    font-weight: 700;
  }
  .public-menu a.is-current, .public-menu a:hover { background: #eef6ff; color: #0878ff; }
  .pricing-grid, .footer-grid { grid-template-columns: 1fr; }
  .site-cta-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

html[dir="rtl"] .site-logo img,
html[dir="rtl"] .header-logo img {
  object-position: right center;
  transform: none;
}
html[dir="rtl"] .site-logo,
html[dir="rtl"] .header-logo {
  direction: ltr;
  unicode-bidi: isolate;
}

.header-account {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.pro-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: #0878ff;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.account-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid #d0d5dd;
  border-radius: 12px;
  color: #071633;
  text-decoration: none;
  font-weight: 700;
  background: #fff;
}
.account-form,
.account-panel {
  display: grid;
  gap: 10px;
  max-width: 420px;
}
.account-form input {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  font-size: 16px;
}
.account-msg { color: #b42318; min-height: 1.2em; }
.account-msg.is-ok { color: #0f8a56; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.account-center-page .site-main {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}
.account-greeting {
  margin: 0;
  color: #0b1f4d;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.account-center-hero .lead { margin: 8px 0 0; }
.account-display-name {
  margin: 0;
  font-size: 1.25rem;
}
html:not(.ai-shorts-public) [data-ai-shorts-public] { display: none !important; }
html:not(.ai-shorts-user) [data-ai-shorts-user] { display: none !important; }
.account-identity-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.account-avatar {
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.account-snapshot {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.account-snapshot li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #5b6b82;
}
.account-snapshot strong { color: #0b1f4d; }
.account-quota { margin: 0; color: #3d4d66; }
.account-email-readonly { color: #5b6b82; }
.account-profile-dialog {
  width: min(480px, calc(100vw - 24px));
  padding: 20px;
  border: 0;
  border-radius: 16px;
  background: #fff;
}
.account-profile-dialog::backdrop { background: rgba(8, 18, 40, 0.55); }
html.ai-shorts-user [data-ai-shorts-upgrade] { display: none !important; }
html:not(.ai-shorts-user) [data-ai-shorts-upgrade] { display: inline-flex; }
.account-center-msg { max-width: 72ch; }
.account-center {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 32px;
}
.account-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 20px;
  background: #fff;
  border: 1px solid #d9e2ef;
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(16, 36, 79, 0.06), 0 8px 24px rgba(16, 36, 79, 0.06);
}
.account-card h2,
.account-card h3 {
  margin: 0;
  color: #0b1f4d;
  font-size: 1.15rem;
}
.account-identity {
  grid-column: 1 / -1;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
}
.account-avatar {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #1565d8;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 800;
}
.account-identity-copy { min-width: 0; }
.account-email {
  margin: 2px 0 0;
  color: #5b6b82;
  font-size: 0.95rem;
  font-weight: 500;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.account-includes { margin: 0; color: #3d4d66; }
.account-logout {
  color: #5b6b82;
  border-color: transparent;
  box-shadow: none;
}
.account-avatar {
  width: 72px;
  height: 72px;
}
.account-member {
  margin: 4px 0 0;
  color: #5b6b82;
  font-size: 0.95rem;
}
.account-badges,
.account-actions,
.account-danger-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.account-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eef4ff;
  color: #0f4fb0;
  font-size: 12px;
  font-weight: 800;
}
.account-badge.is-pro { background: #1565d8; color: #fff; }
.account-badge.is-ok { background: #e8f8f0; color: #0f8a56; }
.account-badge.is-warn { background: #fff6ed; color: #b45309; }
.account-badge.is-danger { background: #fdecec; color: #c4322a; }
.account-plan-name,
.account-price {
  margin: 0;
  color: #0b1f4d;
  font-weight: 800;
}
.account-benefits {
  margin: 0;
  padding-inline-start: 1.2em;
  color: #12203a;
}
.account-period { margin: 0; color: #5b6b82; }
.account-inline-form { max-width: none; width: 100%; }
.account-warn { color: #b45309; font-weight: 700; }
.account-danger {
  grid-column: 1 / -1;
  border-color: #f3b4b0;
  background: #fff8f7;
}
.account-danger h2 { color: #c4322a; }
.danger-button {
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 12px;
  background: #c4322a;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}
.danger-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.account-center .site-cta,
.account-center .ghost-button,
.account-center .danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding-inline: 16px;
  text-align: center;
  text-decoration: none;
  white-space: normal;
}
.account-center [hidden],
.ai-short-form [hidden],
.ai-form-grid [hidden],
[data-ai-logo-upload][hidden] {
  display: none !important;
}
@media (max-width: 820px) {
  .account-center { grid-template-columns: 1fr; }
  .account-identity {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .account-identity-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .account-logout { grid-column: auto; justify-self: start; }
}
@media (max-width: 430px) {
  .account-center-page .site-main { width: min(100% - 20px, 100%); }
  .account-card { padding: 16px; }
}
.pill.soon {
  display: inline-block;
  margin-inline-end: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #fff6ed;
  color: #9a3412;
  font-size: 11px;
  font-weight: 800;
}

@media (max-width: 820px) {
  .header-account .account-link { padding: 0 10px; }
}
video,
.preview-stage,
.camera-preview,
.complete-dialog video {
  direction: ltr;
  unicode-bidi: isolate;
}

.login-page .site-main.login-split {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: calc(100dvh - var(--fvr-header, 68px));
  background-color: #0b1f4d;
  background-image: url("../img/Login_Image.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.login-pane {
  display: grid;
  place-items: center;
  width: min(440px, 42%);
  padding: 36px 48px 36px 16px;
  background: transparent;
}
.login-card {
  width: min(380px, 100%);
  display: grid;
  gap: 8px;
  padding: 28px 24px;
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 18px;
  box-shadow: 0 1px 2px rgba(16, 36, 79, 0.08), 0 18px 40px rgba(7, 22, 51, 0.18);
}
.login-card h1 {
  margin: 0;
  color: #0b1f4d;
  font-size: 1.7rem;
  letter-spacing: -0.03em;
}
.login-trust {
  margin: 0 0 8px;
  color: #5b6b82;
  font-size: 0.92rem;
  line-height: 1.4;
}
.login-page .login-form {
  max-width: none;
  width: 100%;
  gap: 8px;
}
.login-page .login-form label {
  color: #12203a;
  font-size: 0.92rem;
  font-weight: 700;
}
.login-page .login-form input {
  min-height: 46px;
  border-radius: 12px;
  border-color: #d9e2ef;
  background: #f8fbff;
}
.login-page .login-form input:focus {
  outline: 3px solid #b2ddff;
  outline-offset: 1px;
  border-color: #1565d8;
  background: #fff;
}
.login-page .login-submit {
  width: 100%;
  min-height: 48px;
  border-radius: 12px;
  background: #1565d8;
  font-size: 1rem;
}
.login-page .login-submit:hover { background: #0f4fb0; }
.login-links {
  margin: 0;
  text-align: center;
}
.login-links a {
  color: #1565d8;
  font-weight: 700;
  text-decoration: none;
}
.login-links a:hover { text-decoration: underline; }
.login-page #fvrCaptcha,
.login-page .cf-turnstile,
.login-page .h-captcha,
.login-page .g-recaptcha {
  max-width: 100%;
  overflow: hidden;
}
html[dir="rtl"] .login-page .site-main.login-split {
  justify-content: flex-start;
}
html[dir="rtl"] .login-pane {
  padding: 36px 16px 36px 48px;
}
@media (max-width: 900px) {
  .login-page .site-main.login-split,
  html[dir="rtl"] .login-page .site-main.login-split {
    justify-content: center;
  }
  .login-pane,
  html[dir="rtl"] .login-pane {
    width: 100%;
    padding: 24px 16px 32px;
  }
  .login-card {
    width: min(440px, 100%);
    background: rgba(255, 255, 255, 0.94);
  }
}
@media (max-width: 430px) {
  .login-card { padding: 22px 16px; }
  .login-page .login-form input { font-size: 16px; }
}
.demo-page .site-main { width: min(960px, calc(100% - 32px)); }
.demo-player { margin: 0 0 24px; }
.demo-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: #0b1f4d;
  border: 1px solid #d9e2ef;
}
.demo-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0b1f4d;
}
.demo-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.demo-cta {
  text-decoration: none;
  min-height: 48px;
  padding: 0 22px;
}
.demo-back {
  color: #1565d8;
  font-weight: 700;
  text-decoration: none;
}
.demo-back:hover,
.demo-back:focus-visible { text-decoration: underline; }
@media (max-width: 430px) {
  .demo-page .site-main { width: min(100% - 20px, 100%); }
}
html:not(.ai-shorts-public) [data-ai-shorts-public] { display: none !important; }
html:not(.ai-shorts-user) [data-ai-shorts-user] { display: none !important; }
