/* ─── Skripta Design System ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #070a09;
  --bg-raised: #0d1210;
  --bg-surface: #131a17;
  --bg-hover: #1a2320;
  --border: #243330;
  --border-subtle: #1a2623;
  --text: #ecf0ee;
  --text-secondary: #8a9692;
  --text-tertiary: #5c6965;
  --accent: #34d399;
  --accent-dim: #1fa672;
  --accent-glow: rgba(52, 211, 153, 0.12);
  --accent-glow-strong: rgba(52, 211, 153, 0.25);
  --green: #34d399;
  --red: #f87171;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

html {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', -apple-system, system-ui, sans-serif;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body { overflow-x: hidden; }

/* Grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 128px;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Navigation ─── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  background: rgba(8, 8, 10, 0.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.3s;
}

nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: baseline;
  gap: 3px;
  text-decoration: none;
}

.nav-brand-name {
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  font-size: 24px;
  color: var(--text);
  letter-spacing: -0.5px;
}

.nav-brand-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  margin-left: 1px;
  box-shadow: 0 0 8px var(--accent-glow-strong);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--text); }

/* ─── Nav Auth ─── */
.nav-auth-group {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  margin-left: 8px;
  padding-left: 20px;
  border-left: 1px solid var(--border-subtle);
}

.nav-user-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 4px 10px 4px 4px;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.2s;
}

.nav-user-btn:hover {
  border-color: var(--text-tertiary);
  color: var(--text);
}

.nav-user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-glow);
  border: 1px solid rgba(52, 211, 153, 0.25);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.5px;
}

.nav-user-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 260px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--border-subtle);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s ease;
  z-index: 200;
  overflow: hidden;
}

.nav-user-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-header {
  padding: 16px 16px 12px;
}

.nav-dropdown-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.nav-dropdown-email {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 2px;
}

.nav-dropdown-stats {
  padding: 0 16px 12px;
}

.nav-stat-label {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.nav-stat-bar {
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: var(--bg-hover);
  overflow: hidden;
}

.nav-stat-fill {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent-dim), var(--accent));
  transition: width 0.3s ease;
}

.nav-dropdown-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 0;
}

.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  background: none;
  border: none;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
  text-align: left;
}

.nav-dropdown-item:hover {
  background: var(--bg-hover);
  color: var(--text);
}

.nav-dropdown-logout:hover {
  color: var(--red);
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #000 !important;
  box-shadow: 0 1px 2px rgba(0,0,0,0.3), 0 0 20px var(--accent-glow);
}

.btn-primary:hover {
  background: #f7b84a;
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3), 0 0 30px var(--accent-glow-strong);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: var(--bg-hover);
  border-color: var(--text-tertiary);
}

.btn-small {
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 700;
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none !important;
  transform: none !important;
}

.btn:active:not(:disabled) { transform: translateY(1px); }

/* ─── Hero ─── */
.hero {
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  text-align: left;
  max-width: 680px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 100px;
  background: var(--accent-glow);
  border: 1px solid rgba(52, 211, 153, 0.2);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 28px;
  animation: fadeInUp 0.6s ease both;
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2s ease infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: clamp(44px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -2px;
  color: var(--text);
  margin-bottom: 24px;
  animation: fadeInUp 0.6s ease 0.1s both;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero-sub {
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: 40px;
  animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-actions {
  display: flex;
  gap: 12px;
  animation: fadeInUp 0.6s ease 0.3s both;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 56px;
  padding-top: 36px;
  border-top: 1px solid var(--border-subtle);
  animation: fadeInUp 0.6s ease 0.4s both;
}

.hero-stat-value {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 4px;
}

.hero-stat-label {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Floating docs */
.hero-visual {
  position: absolute;
  right: -40px;
  top: 180px;
  width: 420px;
  height: 500px;
  pointer-events: none;
  animation: fadeInUp 0.8s ease 0.3s both;
}

.floating-doc {
  position: absolute;
  border-radius: var(--radius-lg);
  background: var(--bg-raised);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.floating-doc-1 {
  width: 280px;
  height: 360px;
  top: 0;
  right: 60px;
  animation: float-1 6s ease-in-out infinite;
}

.floating-doc-2 {
  width: 240px;
  height: 180px;
  bottom: 20px;
  right: 0;
  animation: float-2 5s ease-in-out 1s infinite;
  z-index: 2;
}

.doc-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 8px;
}

.doc-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.doc-lines {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.doc-line {
  height: 8px;
  border-radius: 4px;
  background: var(--bg-hover);
}

.doc-line.typing {
  position: relative;
  overflow: hidden;
}

.doc-line.typing::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--accent-glow) 0%, var(--accent-glow-strong) 50%, var(--accent-glow) 100%);
  border-radius: 4px;
  animation: shimmer 2s ease infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@keyframes float-1 {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-16px) rotate(-1deg); }
}

@keyframes float-2 {
  0%, 100% { transform: translateY(0) rotate(1deg); }
  50% { transform: translateY(-12px) rotate(2deg); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── Section headings ─── */
.section-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 64px;
}

/* ─── How It Works ─── */
.how-it-works {
  padding: 100px 0;
}

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

.step {
  padding: 48px 36px;
  background: var(--bg-raised);
  position: relative;
  transition: background 0.3s;
}

.step:first-child { border-radius: var(--radius-xl) 0 0 var(--radius-xl); }
.step:last-child { border-radius: 0 var(--radius-xl) var(--radius-xl) 0; }
.step:hover { background: var(--bg-surface); }

.step-number {
  font-family: 'Playfair Display', serif;
  font-size: 56px;
  font-weight: 900;
  color: var(--border);
  line-height: 1;
  margin-bottom: 24px;
  transition: color 0.3s;
}

.step:hover .step-number { color: var(--accent-dim); }

.step-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}

.step-desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ─── App Section ─── */
.app-section {
  padding: 100px 0;
}

.app-window {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.4), 0 0 0 1px var(--border-subtle);
}

.app-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg);
}

.toolbar-dots {
  display: flex;
  gap: 8px;
}

.toolbar-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg-hover);
  border: 1px solid var(--border);
}

.toolbar-title {
  font-size: 13px;
  color: var(--text-tertiary);
  font-weight: 500;
}

/* ─── App Config Panel ─── */
.app-config {
  padding: 24px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
}

.config-block {
  flex: 1;
  min-width: 200px;
}

.config-block.config-upload {
  flex-basis: 100%;
}

.config-block label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.config-block p {
  margin: 6px 0 0;
  font-size: 11px;
  color: var(--text-tertiary);
}

.config-block select {
  width: 100%;
  font-size: 13px;
  font-family: inherit;
  border-radius: 8px;
  border: 1px solid var(--border);
  padding: 8px 12px;
  outline: none;
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.2s;
}

.config-block select:focus {
  border-color: var(--accent-dim);
  box-shadow: 0 0 0 2px var(--accent-glow);
}

.toggle-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-secondary);
}

.toggle-row input[type='checkbox'] {
  accent-color: var(--accent);
  transform: scale(1.1);
}

.model-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.model-row select {
  flex: 1;
  min-width: 180px;
}

/* ─── Dropzone ─── */
.dropzone {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: var(--radius-lg);
  border: 2px dashed var(--border);
  background: var(--bg);
  min-width: 360px;
  -webkit-user-select: none;
  user-select: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dropzone:focus {
  outline: none;
  border-color: var(--accent-dim);
  box-shadow: 0 0 0 2px var(--accent-glow);
}

.dropzone.is-dragover {
  border-color: var(--accent);
  background: var(--accent-glow);
  box-shadow: 0 0 0 3px var(--accent-glow-strong);
}

.dropzone.is-disabled { opacity: 0.5; pointer-events: none; }

.dropzone-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text-secondary);
  transition: all 0.3s;
}

.dropzone:hover .dropzone-icon,
.dropzone.is-dragover .dropzone-icon {
  background: var(--accent-glow);
  border-color: var(--accent-dim);
  color: var(--accent);
}

.dropzone-text { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.dropzone-title { font-size: 14px; font-weight: 600; color: var(--text); }
.dropzone-sub { font-size: 12px; color: var(--text-tertiary); }

/* ─── Model Picker (Pro) ─── */
.model-picker {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-subtle);
}
.model-picker-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  margin-bottom: 10px;
  display: block;
}
.model-picker-options {
  display: flex;
  gap: 10px;
}
.model-option {
  flex: 1;
  cursor: pointer;
}
.model-option input { display: none; }
.model-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-raised);
  transition: border-color 0.2s, background 0.2s;
}
.model-option input:checked + .model-card {
  border-color: var(--accent);
  background: var(--accent-glow);
}
.model-option:hover .model-card {
  border-color: var(--accent-dim);
}
.model-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.model-desc {
  font-size: 12px;
  color: var(--text-tertiary);
}

.model-picker-disclaimer {
  margin: 6px 0 0;
  padding: 0 4px;
  font-size: 11px;
  line-height: 1.4;
  color: var(--text-tertiary);
  font-style: italic;
}

/* ─── Trial Notice ─── */
.trial-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  font-size: 13px;
  color: var(--text-secondary);
  background: var(--bg-hover);
  border-bottom: 1px solid var(--border-subtle);
}

.trial-notice svg { flex-shrink: 0; color: var(--accent); }

.trial-notice a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.trial-notice a:hover { text-decoration: underline; }

/* ─── Action Bar ─── */
.action-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

.action-spacer { flex: 1; }

/* ─── Status + Progress ─── */
.status-bar {
  padding: 0 24px;
}

.status-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0 8px;
}

#status {
  font-size: 13px;
  color: var(--text-secondary);
}

.progress-label {
  font-size: 12px;
  color: var(--text-tertiary);
  white-space: nowrap;
}

#progressBar {
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: var(--bg-hover);
  overflow: hidden;
  margin-bottom: 0;
}

#progressInner {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-dim), var(--accent));
  border-radius: 2px;
  transition: width 0.25s ease;
  box-shadow: 0 0 12px var(--accent-glow-strong);
}

#progressInner.phase-transcribe {
  background: linear-gradient(90deg, #16a34a, #4ade80);
  box-shadow: 0 0 12px rgba(74, 222, 128, 0.3);
}

/* ─── Content Area ─── */
.content-row {
  display: flex;
  gap: 0;
  align-items: stretch;
  min-height: 500px;
}

#previewContainer {
  width: 42%;
  min-width: 280px;
  padding: 20px;
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
}

.preview-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 12px;
}

#previewTitle {
  font-size: 13px;
  color: var(--text-tertiary);
}

.preview-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.page-select {
  font-size: 12px;
  font-family: inherit;
  border-radius: 6px;
  border: 1px solid var(--border);
  padding: 5px 8px;
  background: var(--bg);
  color: var(--text);
  outline: none;
}

.page-select:focus {
  border-color: var(--accent-dim);
}

#pagePreview {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  border: 1px solid var(--border-subtle);
  background: var(--bg);
}

.preview-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 320px;
  border-radius: var(--radius);
  border: 1px dashed var(--border);
  color: var(--text-tertiary);
}

.preview-empty svg { opacity: 0.35; }

.preview-empty p {
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}

.transcript-card {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.transcript-header-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
}

.transcript-header-row h2 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0;
}

.transcript-meta {
  display: flex;
  gap: 14px;
  font-size: 12px;
  color: var(--text-tertiary);
}

#transcriptOutput {
  width: 100%;
  flex: 1;
  resize: none;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 16px;
  font-size: 13px;
  line-height: 1.7;
  font-family: 'DM Sans', system-ui, sans-serif;
  outline: none;
  background: var(--bg);
  color: var(--text);
  min-height: 400px;
}

#transcriptOutput:focus {
  border-color: var(--accent-dim);
  box-shadow: 0 0 0 2px var(--accent-glow);
}

#transcriptOutput::placeholder {
  color: var(--text-tertiary);
}

/* ─── Pricing ─── */
.pricing {
  padding: 100px 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  max-width: 800px;
  margin: 0 auto;
}

.price-card {
  padding: 48px 40px;
  background: var(--bg-raised);
  position: relative;
  transition: background 0.3s;
}

.price-card:first-child { border-radius: var(--radius-xl) 0 0 var(--radius-xl); }
.price-card:last-child { border-radius: 0 var(--radius-xl) var(--radius-xl) 0; }
.price-card:hover { background: var(--bg-surface); }

.price-card.featured {
  background: var(--bg-surface);
  box-shadow: inset 0 1px 0 var(--accent-dim);
}

.price-card.featured::before {
  content: 'Best value';
  position: absolute;
  top: -1px;
  left: 40px;
  padding: 4px 12px;
  background: var(--accent);
  color: var(--bg);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 0 0 6px 6px;
}

.price-name {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-tertiary);
  margin-bottom: 20px;
}

.price-amount {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 8px;
}

.price-currency {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-secondary);
}

.price-value {
  font-family: 'Playfair Display', serif;
  font-size: 56px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -2px;
}

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

.price-period {
  font-size: 16px;
  color: var(--text-tertiary);
  font-weight: 400;
}

.price-desc {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.5;
}

/* Billing toggle */
.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
}

.pricing-toggle-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-tertiary);
  transition: color 0.2s;
}

.pricing-toggle-label.active {
  color: var(--text);
  font-weight: 600;
}

.pricing-toggle-switch {
  position: relative;
  width: 48px;
  height: 26px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 13px;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, border-color 0.2s;
}

.pricing-toggle-switch:hover {
  border-color: var(--accent-dim);
}

.pricing-toggle-switch.active {
  background: var(--accent);
  border-color: var(--accent);
}

.pricing-toggle-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: var(--text);
  border-radius: 50%;
  transition: transform 0.2s;
}

.pricing-toggle-switch.active .pricing-toggle-knob {
  transform: translateX(22px);
  background: var(--bg);
}

.pricing-toggle-badge {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid rgba(52, 211, 153, 0.2);
  border-radius: 20px;
  padding: 4px 10px;
}

.price-promo {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid rgba(52, 211, 153, 0.2);
  border-radius: var(--radius);
  padding: 8px 14px;
  margin-top: -20px;
  margin-bottom: 28px;
  text-align: center;
}

.price-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 36px;
}

.price-features li {
  font-size: 14px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.price-features li::before {
  content: '';
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-glow);
  border: 1px solid rgba(52, 211, 153, 0.2);
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%2334d399' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.price-card .btn { width: 100%; }

/* ─── Disclaimer ─── */
.disclaimer {
  padding: 60px 0;
}

.disclaimer-box {
  padding: 32px 40px;
  background: var(--bg-raised);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.disclaimer-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.disclaimer-text h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.disclaimer-text p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.disclaimer-text strong {
  color: var(--text);
}

/* ─── Footer ─── */
footer {
  padding: 48px 0;
  border-top: 1px solid var(--border-subtle);
}

footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-brand {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 18px;
}

.footer-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-tertiary);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--text-secondary); }

.footer-copy {
  font-size: 12px;
  color: var(--text-tertiary);
}

/* ─── Dashboard ─── */
.dash-page {
  padding: 120px 0 80px;
  min-height: 100vh;
}

.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 16px;
}

.dash-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.dash-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2px;
  margin-bottom: 48px;
}

.dash-card {
  padding: 32px 28px;
  background: var(--bg-raised);
  transition: background 0.3s;
}

.dash-card:first-child { border-radius: var(--radius-xl) 0 0 var(--radius-xl); }
.dash-card:last-child { border-radius: 0 var(--radius-xl) var(--radius-xl) 0; }
.dash-card:hover { background: var(--bg-surface); }

.dash-card-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-tertiary);
  margin-bottom: 12px;
}

.dash-card-value {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 6px;
}

.dash-card-value.accent { color: var(--accent); }

.dash-card-sub {
  font-size: 13px;
  color: var(--text-secondary);
}

.dash-usage-bar {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--bg-hover);
  overflow: hidden;
  margin: 12px 0 6px;
}

.dash-usage-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent-dim), var(--accent));
  transition: width 0.4s ease;
}

.dash-section {
  margin-bottom: 48px;
}

.dash-section-title {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-tertiary);
  margin-bottom: 20px;
}

.dash-table {
  width: 100%;
  background: var(--bg-raised);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.dash-table-row {
  display: grid;
  grid-template-columns: 1fr 100px 120px 120px;
  align-items: center;
  padding: 14px 24px;
  font-size: 13px;
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.15s;
}

.dash-table-row:last-child { border-bottom: none; }

.dash-table-row:hover { background: var(--bg-surface); }

.dash-table-head {
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 11px;
}

.dash-table-head:hover { background: transparent; }

.dash-table-filename {
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-table-meta {
  color: var(--text-secondary);
}

.dash-empty {
  text-align: center;
  padding: 60px 24px;
  background: var(--bg-raised);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
}

.dash-empty-icon {
  font-size: 40px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.dash-empty h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.dash-empty p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.dash-plan-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dash-plan-badge.free {
  background: var(--bg-hover);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.dash-plan-badge.pro {
  background: var(--accent-glow);
  color: var(--accent);
  border: 1px solid rgba(52, 211, 153, 0.25);
}

.dash-plan-badge.payg {
  background: rgba(247, 184, 74, 0.1);
  color: #f7b84a;
  border: 1px solid rgba(247, 184, 74, 0.2);
}

/* ─── Scroll Reveal ─── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .hero-visual { display: none; }
  .hero-content { max-width: 100%; }
  .steps { grid-template-columns: 1fr; gap: 1px; }
  .step:first-child { border-radius: var(--radius-xl) var(--radius-xl) 0 0; }
  .step:last-child { border-radius: 0 0 var(--radius-xl) var(--radius-xl); }
  .content-row { flex-direction: column; }
  #previewContainer { width: 100%; border-right: none; border-bottom: 1px solid var(--border-subtle); }
  .pricing-grid { grid-template-columns: 1fr; }
  .price-card:first-child { border-radius: var(--radius-xl) var(--radius-xl) 0 0; }
  .price-card:last-child { border-radius: 0 0 var(--radius-xl) var(--radius-xl); }
  .hero-stats { gap: 32px; flex-wrap: wrap; }
  footer .container { flex-direction: column; gap: 16px; text-align: center; }
  .footer-left { flex-direction: column; gap: 12px; }
  .dropzone { min-width: 100%; }
  .action-bar { gap: 8px; }
  .app-config { gap: 16px; }
  .nav-links { gap: 16px; }
  .dash-grid { grid-template-columns: 1fr; gap: 1px; }
  .dash-card:first-child { border-radius: var(--radius-xl) var(--radius-xl) 0 0; }
  .dash-card:last-child { border-radius: 0 0 var(--radius-xl) var(--radius-xl); }
  .dash-table-row { grid-template-columns: 1fr 80px 100px; }
  .dash-table-row > :last-child { display: none; }
}

@media (max-width: 600px) {
  .nav-links a:not(.btn):not(.nav-link-auth) { display: none; }
  .nav-auth-group a.btn.btn-ghost { display: none; }
  .hero { padding: 120px 0 60px; }
  .how-it-works, .app-section, .pricing { padding: 60px 0; }
  .section-title { margin-bottom: 40px; }
  .dash-header { flex-direction: column; align-items: flex-start; }
}
