:root {
  --bg: #f5f2ec;
  --surface: #edeae2;
  --surface-strong: #ffffff;
  --border: #d9d4c8;
  --text: #1a1915;
  --muted: #7a7669;
  --accent: #2d5a3d;
  --accent-light: #4a8a62;
  --accent-soft: #e7f0e8;
  --shadow: 0 20px 60px rgba(26, 25, 21, 0.08);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --max-width: 1200px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(74, 138, 98, 0.16), transparent 30%),
    radial-gradient(circle at bottom right, rgba(45, 90, 61, 0.08), transparent 30%),
    var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

button,
input {
  font: inherit;
}

img,
video {
  max-width: 100%;
}

.site-main {
  min-height: calc(100vh - 170px);
}

.site-nav,
.site-footer {
  max-width: 1400px;
  margin: 0 auto;
  padding-left: 64px;
  padding-right: 64px;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.logo,
.footer-logo {
  font-family: "DM Serif Display", serif;
  letter-spacing: -0.04em;
}

.logo {
  font-size: 22px;
}

.logo span,
.footer-logo span,
.stat-num span,
.cta-section h2 em,
.hero h1 em,
.auth-copy h1 em {
  color: var(--accent);
}

.nav-links,
.footer-links,
.lang-pills {
  display: flex;
  align-items: center;
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-links {
  gap: 22px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a,
.footer-links a,
.nav-pill,
.nav-link-button {
  font-size: 14px;
  color: var(--muted);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover,
.nav-link-button:hover,
.footer-links a:hover {
  color: var(--text);
}

.nav-logout-form {
  margin: 0;
}

.nav-link-button {
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
}

.nav-cta,
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  background: var(--accent);
  color: var(--surface-strong);
  transition: transform 0.18s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.nav-cta {
  padding: 10px 18px;
  border-radius: 8px;
}

.nav-cta:hover,
.btn-primary:hover {
  background: var(--accent-light);
  color: var(--surface-strong);
  transform: translateY(-1px);
}

.btn-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--text);
  transition: transform 0.18s ease, border-color 0.2s ease, background 0.2s ease;
}

.btn-secondary:hover {
  border-color: var(--accent-light);
  background: #fff;
  transform: translateY(-1px);
}

.hero,
.section,
.cta-section,
.auth-layout {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: 64px;
  padding-right: 64px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 480px);
  align-items: center;
  gap: 80px;
  padding-top: 96px;
  padding-bottom: 96px;
}

.hero-tag,
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.45);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-tag::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(45, 90, 61, 0.12);
  animation: pulse 2.2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.55;
    transform: scale(0.86);
  }
}

.hero h1,
.section-title,
.cta-section h2,
.auth-copy h1,
.auth-title {
  font-family: "DM Serif Display", serif;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.hero h1 {
  margin: 26px 0 22px;
  font-size: clamp(42px, 5vw, 64px);
}

.hero p,
.cta-section p,
.auth-copy p,
.auth-subtitle,
.step p,
.langs-sub,
.stat-label,
.video-title small {
  color: var(--muted);
}

.hero p {
  max-width: 470px;
  margin: 0 0 36px;
  font-size: 17px;
  line-height: 1.8;
  font-weight: 300;
}

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

.btn-primary {
  padding: 15px 30px;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(45, 90, 61, 0.18);
}

.btn-large {
  padding: 17px 42px;
  font-size: 16px;
}

.btn-block {
  width: 100%;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  transition: color 0.2s ease;
}

.btn-ghost svg {
  transition: transform 0.2s ease;
}

.btn-ghost:hover {
  color: var(--text);
}

.btn-ghost:hover svg {
  transform: translateX(3px);
}

.hero-visual {
  position: relative;
  padding-top: 20px;
}

.float-chip,
.video-card,
.auth-card,
.auth-note-card {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(217, 212, 200, 0.8);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.float-chip {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 600;
  pointer-events: none;
}

.chip-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #5cb87a;
  box-shadow: 0 0 0 4px rgba(92, 184, 122, 0.18);
}

.video-card {
  border-radius: var(--radius-lg);
  padding: 28px;
}

.video-card + .video-card {
  margin-top: 16px;
}

.video-thumb {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  margin-bottom: 20px;
  border-radius: 14px;
  background: linear-gradient(135deg, #edf7ef 0%, #d8eadf 100%);
}

.video-thumb-live {
  padding: 0;
  background: #0f110f;
}

.video-thumb-live::before,
.video-thumb-live::after {
  display: none;
}

.video-thumb::before,
.video-thumb::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.video-thumb::before {
  width: 140px;
  height: 140px;
  background: rgba(255, 255, 255, 0.42);
  top: -30px;
  right: -20px;
}

.video-thumb::after {
  width: 120px;
  height: 120px;
  background: rgba(45, 90, 61, 0.08);
  bottom: -30px;
  left: -20px;
}

.play-btn {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 10px 30px rgba(45, 90, 61, 0.28);
}

.hero-demo-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.video-meta,
.progress-label,
.stats {
  display: flex;
}

.video-meta {
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.video-title {
  font-size: 14px;
  font-weight: 600;
}

.video-title small {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 400;
}

.lang-badge,
.lang-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
}

.lang-badge {
  gap: 6px;
  padding: 6px 12px;
  border-radius: 9px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.progress-wrap {
  margin-top: 6px;
}

.progress-label {
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 11px;
  color: var(--muted);
}

.progress-bar {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface);
}

.progress-fill {
  width: 68%;
  height: 100%;
  border-radius: 999px;
  background: var(--accent);
  animation: progress-anim 2.5s ease-in-out infinite alternate;
}

.progress-fill-complete {
  width: 100%;
  animation: none;
}

@keyframes progress-anim {
  from {
    width: 50%;
  }

  to {
    width: 80%;
  }
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stat {
  padding: 42px 64px;
  border-right: 1px solid var(--border);
}

.stat:last-child {
  border-right: none;
}

.stat-num {
  margin-bottom: 6px;
  font-family: "DM Serif Display", serif;
  font-size: 44px;
  letter-spacing: -0.04em;
}

.stat-label {
  font-size: 13px;
}

.section {
  padding-top: 100px;
  padding-bottom: 100px;
}

.section-tag {
  color: var(--accent);
}

.section-title {
  max-width: 520px;
  margin: 18px 0 64px;
  font-size: clamp(30px, 3.5vw, 44px);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.step {
  padding: 42px 36px;
  background: rgba(237, 234, 226, 0.86);
  border: 1px solid rgba(217, 212, 200, 0.8);
  border-radius: 18px;
}

.step-num {
  margin-bottom: 18px;
  font-family: "DM Serif Display", serif;
  font-size: 48px;
  line-height: 1;
  color: #bcb5a7;
}

.step h3 {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 600;
}

.step p {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  font-weight: 300;
}

.langs-section {
  padding: 84px 64px;
  text-align: center;
  background: rgba(237, 234, 226, 0.75);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.langs-title {
  margin: 0 0 8px;
  font-family: "DM Serif Display", serif;
  font-size: 32px;
  letter-spacing: -0.03em;
}

.langs-sub {
  margin: 0 0 46px;
  font-size: 14px;
  font-weight: 300;
}

.lang-pills {
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 760px;
  margin: 0 auto;
}

.lang-pill {
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

.lang-pill.active {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--surface-strong);
}

.cta-section {
  padding-top: 120px;
  padding-bottom: 120px;
  text-align: center;
}

.cta-section h2 {
  margin: 0 0 18px;
  font-size: clamp(38px, 5vw, 58px);
}

.cta-section p {
  max-width: 620px;
  margin: 0 auto 36px;
  font-size: 16px;
  line-height: 1.8;
  font-weight: 300;
}

.auth-page .site-main {
  display: flex;
  align-items: center;
}

.videos-page {
  width: 100%;
}

.videos-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}

.videos-hero .section-title {
  margin: 22px 0 14px;
  max-width: 680px;
}

.videos-subtitle {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
  font-weight: 300;
}

.videos-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.video-status-card {
  display: grid;
  gap: 18px;
  padding: 24px;
}

.video-status-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.video-status-head small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.video-status-meta {
  display: grid;
  gap: 10px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.video-status-meta p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.video-status-meta strong {
  color: var(--text);
}

.empty-videos-card {
  max-width: 560px;
}

.billing-page {
  width: 100%;
}

.legal-page {
  width: 100%;
}

.legal-header {
  margin-bottom: 28px;
}

.legal-card {
  display: grid;
  gap: 20px;
}

.legal-prose {
  display: grid;
  gap: 16px;
}

.legal-prose h2 {
  margin: 8px 0 0;
  font-size: 20px;
  line-height: 1.3;
}

.legal-prose p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.legal-prose a,
.legal-contact-grid a,
.auth-legal-note a,
.footer-legal-line a {
  color: var(--accent);
  font-weight: 600;
}

.legal-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.billing-grid,
.billing-columns {
  display: grid;
  gap: 20px;
}

.billing-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 28px;
  align-items: stretch;
}

.preview-pricing-grid {
  margin-top: 24px;
  margin-bottom: 0;
}

.billing-grid > * {
  min-width: 0;
}

.billing-grid .video-card + .video-card {
  margin-top: 0;
}

.billing-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.billing-card,
.billing-history-card {
  display: grid;
  gap: 18px;
}

.billing-card {
  height: 100%;
  align-content: start;
}

.billing-card form {
  margin-top: auto;
}

.billing-custom-card {
  margin-bottom: 28px;
}

.billing-custom-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 420px);
  gap: 28px;
  align-items: start;
}

.billing-custom-copy {
  display: grid;
  gap: 14px;
}

.billing-custom-copy .auth-title,
.billing-custom-copy .auth-subtitle {
  margin: 0;
}

.billing-custom-form {
  display: grid;
  gap: 14px;
  max-width: 420px;
  width: 100%;
  margin-left: auto;
  justify-self: end;
}

.billing-price-list {
  display: grid;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(217, 212, 200, 0.8);
}

.billing-price-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
}

.billing-price-row span:first-child {
  color: var(--muted);
}

.billing-price-row span:last-child {
  font-weight: 600;
  text-align: right;
}

.billing-rate-note {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}

.billing-list {
  display: grid;
  gap: 10px;
}

.billing-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(237, 234, 226, 0.4);
  font-size: 14px;
}

.billing-row-content {
  display: grid;
  gap: 4px;
}

.billing-row-title {
  font-weight: 600;
}

.billing-row-note,
.billing-row-status {
  font-size: 12px;
  color: var(--muted);
}

.billing-row-status {
  text-align: right;
  white-space: nowrap;
}

.auth-layout {
  display: grid;
  justify-items: center;
  grid-template-columns: 1fr;
  gap: 56px;
  padding-top: 72px;
  padding-bottom: 72px;
}

.auth-layout-single {
  justify-content: center;
  justify-items: stretch;
  grid-template-columns: minmax(220px, 460px);
}

.auth-layout-split {
  justify-items: stretch;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 620px);
  align-items: start;
}

.auth-layout-split .auth-copy {
  max-width: 560px;
}

.auth-layout-split .auth-card {
  justify-self: end;
}

.auth-copy {
  align-self: center;
  max-width: 600px;
}

.auth-copy h1 {
  margin: 24px 0 20px;
  font-size: clamp(38px, 4.5vw, 58px);
}

.auth-copy p {
  max-width: 500px;
  margin: 0;
  font-size: 17px;
  line-height: 1.8;
  font-weight: 300;
}

.auth-note-card,
.auth-card {
  width: 100%;
  max-width: 720px;
  border-radius: var(--radius-lg);
}

.auth-note-card {
  max-width: 440px;
  margin-top: 34px;
  padding: 24px 24px 22px;
}

.auth-note-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.auth-note-card p {
  font-size: 14px;
  line-height: 1.7;
}

.auth-card {
  padding: 34px 32px;
}

.auth-panel {
  width: min(100%, 560px);
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}

.auth-layout:not(.auth-layout-split) .auth-card {
  width: min(100%, 560px);
  max-width: 560px;
}

.auth-layout-single .auth-card,
.auth-layout-single .auth-panel {
  width: 100%;
  max-width: 560px;
}

.auth-title {
  margin: 18px 0 10px;
  font-size: clamp(30px, 4vw, 38px);
}

.auth-subtitle {
  margin: 0 0 28px;
  font-size: 14px;
  font-weight: 300;
}

.auth-form {
  display: grid;
  gap: 18px;
}

.auth-checklist {
  display: grid;
  gap: 10px;
}

.auth-checklist p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
}

.form-group {
  display: grid;
  gap: 8px;
}

.upload-input-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.upload-dropzone {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 28px 24px;
  border: 1.5px dashed rgba(45, 90, 61, 0.28);
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(74, 138, 98, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(237, 234, 226, 0.88));
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.upload-dropzone:hover,
.upload-dropzone.is-dragover {
  border-color: var(--accent-light);
  box-shadow: 0 18px 34px rgba(45, 90, 61, 0.12);
  transform: translateY(-1px);
}

.upload-dropzone-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: var(--accent);
  color: var(--surface-strong);
  font-size: 30px;
  line-height: 1;
  box-shadow: 0 14px 28px rgba(45, 90, 61, 0.2);
}

.upload-dropzone-copy {
  display: grid;
  gap: 4px;
}

.upload-dropzone-copy strong {
  font-size: 16px;
}

.upload-dropzone-copy span,
.upload-dropzone-meta {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.upload-dropzone-meta {
  max-width: 100%;
  overflow-wrap: anywhere;
}

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

.form-input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.form-input:focus {
  border-color: var(--accent-light);
  box-shadow: 0 0 0 4px rgba(74, 138, 98, 0.12);
  background: #fff;
}

[type="range"].form-input {
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  accent-color: var(--accent);
}

[type="range"].form-input:focus {
  box-shadow: none;
}

.form-input-large {
  font-size: 20px;
  font-weight: 600;
  text-align: center;
}

.form-hint {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.checkbox-stack {
  display: grid;
  gap: 12px;
}

.checkbox-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
}

.checkbox-option input {
  margin-top: 3px;
  accent-color: var(--accent);
}

.checkbox-option > span {
  display: grid;
  gap: 4px;
}

.checkbox-option strong {
  font-size: 14px;
}

.checkbox-option > span > span {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}

.form-errors,
.field-error {
  font-size: 13px;
  color: #a23b36;
}

.form-errors {
  padding: 12px 14px;
  border: 1px solid rgba(162, 59, 54, 0.22);
  border-radius: 12px;
  background: rgba(162, 59, 54, 0.08);
}

.form-errors p,
.field-error {
  margin: 0;
}

.auth-switch {
  margin: 22px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.auth-legal-note {
  margin: 16px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.auth-inline-note {
  padding: 14px 16px;
  border: 1px solid rgba(45, 90, 61, 0.12);
  border-radius: 14px;
  background: rgba(231, 240, 232, 0.72);
  color: var(--text);
  font-size: 13px;
  line-height: 1.65;
}

.auth-inline-note a {
  color: var(--accent);
  font-weight: 600;
}

.billing-legal-note {
  margin-bottom: 20px;
}

.auth-email-pill,
.status-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.86);
}

.auth-email-pill {
  margin: 0 0 24px;
  padding: 10px 16px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.status-badge {
  padding: 8px 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-status-card {
  display: grid;
  gap: 18px;
  align-content: start;
}

.status-summary {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.status-summary-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
}

.status-summary-row span:first-child {
  color: var(--muted);
}

.status-summary-row span:last-child {
  font-weight: 600;
  text-align: right;
}

.video-preview-card {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(45, 90, 61, 0.12);
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(74, 138, 98, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(237, 234, 226, 0.86));
}

.video-preview-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.video-preview-kicker,
.video-preview-title,
.video-preview-note {
  margin: 0;
}

.video-preview-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.video-preview-title {
  margin-top: 4px;
  font-family: "DM Serif Display", serif;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.result-video-frame {
  overflow: hidden;
  border-radius: 18px;
  background: #0f110f;
  box-shadow: 0 18px 32px rgba(26, 25, 21, 0.18);
}

.result-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-preview-note {
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
}

.artifact-card {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(45, 90, 61, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
}

.artifact-links {
  display: grid;
  gap: 10px;
}

.artifact-link {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(237, 234, 226, 0.44);
  transition: transform 0.18s ease, border-color 0.2s ease, background 0.2s ease;
}

.artifact-link:hover {
  border-color: var(--accent-light);
  background: rgba(231, 240, 232, 0.7);
  transform: translateY(-1px);
}

.artifact-link-label,
.artifact-link-note {
  display: block;
}

.artifact-link-label {
  font-size: 14px;
  font-weight: 600;
}

.artifact-link-note {
  font-size: 12px;
  color: var(--muted);
}

.auth-status-card .auth-title,
.auth-status-card .auth-subtitle {
  margin: 0;
}

.auth-actions {
  display: grid;
  gap: 12px;
}

.auth-external-action {
  margin-top: 10px;
}

.auth-google-btn {
  gap: 10px;
}

.auth-provider-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

.auth-switch a {
  color: var(--accent);
  font-weight: 600;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 32px;
  padding-bottom: 32px;
  border-top: 1px solid var(--border);
}

.footer-meta {
  display: grid;
  gap: 6px;
}

.footer-logo {
  font-size: 18px;
}

.site-footer p,
.footer-links a {
  font-size: 12px;
  color: var(--muted);
}

.footer-legal-line {
  max-width: 620px;
  line-height: 1.7;
}

@media (max-width: 980px) {
  .site-nav,
  .site-footer,
  .hero,
  .section,
  .cta-section,
  .auth-layout,
  .langs-section {
    padding-left: 28px;
    padding-right: 28px;
  }

  .hero,
  .auth-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-ghost {
    width: 100%;
    justify-content: center;
  }

  .videos-grid {
    grid-template-columns: 1fr;
  }

  .billing-columns {
    grid-template-columns: 1fr;
  }

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

  .auth-layout-split,
  .billing-columns {
    grid-template-columns: 1fr;
  }

  .billing-custom-row {
    grid-template-columns: 1fr;
  }

  .billing-custom-form {
    max-width: none;
    justify-self: stretch;
  }

  .legal-contact-grid {
    grid-template-columns: 1fr;
  }

  .auth-layout-split .auth-card {
    justify-self: stretch;
  }

  .video-status-head,
  .video-preview-top,
  .status-summary-row,
  .billing-price-row,
  .billing-row {
    gap: 10px;
  }

  .float-chip {
    position: static;
    margin-bottom: 14px;
    pointer-events: auto;
  }

  .stats,
  .steps {
    grid-template-columns: 1fr;
  }

  .stat,
  .step {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .step {
    border-radius: 22px;
  }

  .stats .stat:last-child,
  .steps .step:last-child {
    border-bottom: none;
  }

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

@media (max-width: 720px) {
  .auth-page .site-main {
    align-items: flex-start;
  }

  .site-nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .videos-hero {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 28px;
  }

  .nav-links {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
  }

  .nav-links li {
    width: 100%;
    display: flex;
  }

  .nav-links a,
  .nav-link-button,
  .nav-pill {
    display: flex;
    width: 100%;
    min-height: 44px;
    justify-content: center;
    text-align: center;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.76);
    padding: 10px 14px;
  }

  .nav-logout-form {
    width: 100%;
  }

  .nav-cta {
    width: 100%;
    justify-content: center;
  }

  .hero {
    padding-top: 68px;
    padding-bottom: 72px;
    gap: 28px;
  }

  .hero h1,
  .auth-copy h1 {
    margin: 18px 0 16px;
    font-size: clamp(34px, 10vw, 46px);
  }

  .hero p,
  .auth-copy p,
  .videos-subtitle {
    font-size: 15px;
    line-height: 1.7;
  }

  .float-chip {
    width: 100%;
    justify-content: center;
  }

  .video-meta,
  .video-status-head,
  .video-preview-top,
  .status-summary-row,
  .billing-price-row,
  .billing-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .lang-badge,
  .billing-row-status,
  .status-summary-row span:last-child,
  .billing-price-row span:last-child {
    text-align: left;
    white-space: normal;
  }

  .video-preview-title {
    font-size: 20px;
  }

  .legal-prose h2 {
    font-size: 18px;
  }

  .billing-grid {
    grid-template-columns: 1fr;
  }

  .section,
  .cta-section,
  .auth-layout {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .site-nav,
  .site-footer,
  .hero,
  .section,
  .cta-section,
  .auth-layout,
  .langs-section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .auth-card,
  .video-card {
    padding: 22px;
  }

  .auth-layout,
  .auth-layout-single,
  .auth-layout-split {
    gap: 28px;
  }

  .auth-layout-single {
    grid-template-columns: 1fr;
  }

  .auth-card,
  .auth-panel,
  .auth-layout-single .auth-card,
  .auth-layout-single .auth-panel {
    max-width: none;
  }

  .auth-copy {
    max-width: none;
  }

  .upload-dropzone {
    padding: 22px 18px;
    border-radius: 18px;
  }

  .upload-dropzone-icon {
    width: 48px;
    height: 48px;
    font-size: 26px;
  }

  .form-input-large {
    font-size: 18px;
  }

  .videos-hero .btn-primary,
  .auth-actions .btn-primary,
  .auth-actions .btn-secondary {
    width: 100%;
  }

  .stat {
    padding: 28px;
  }

  .langs-section {
    padding-top: 64px;
    padding-bottom: 64px;
  }
}

@media (max-width: 520px) {
  .site-nav,
  .site-footer,
  .hero,
  .section,
  .cta-section,
  .auth-layout,
  .langs-section {
    padding-left: 14px;
    padding-right: 14px;
  }

  .auth-card,
  .video-card,
  .auth-note-card {
    padding: 18px;
    border-radius: 18px;
  }

  .section-title {
    margin-bottom: 34px;
  }

  .video-thumb,
  .result-video {
    border-radius: 14px;
  }

  .artifact-link,
  .checkbox-option,
  .billing-row {
    padding: 12px 13px;
  }

  .btn-primary,
  .btn-secondary {
    padding: 14px 18px;
  }
}
.btn-primary.is-disabled {
  opacity: 0.72;
  cursor: not-allowed;
  transform: none;
}

.btn-primary.is-disabled:hover {
  background: var(--accent);
  color: var(--surface-strong);
  transform: none;
}

.btn-timer {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}
