/* ===== Design System ===== */
:root {
  --radius: 0.75rem;
  --radius-sm: calc(var(--radius) - 2px);
  --radius-md: var(--radius);
  --radius-lg: calc(var(--radius) + 4px);
  --radius-xl: calc(var(--radius) + 8px);

  --background: #fafaf9;
  --foreground: #1c1917;
  --card: #ffffff;
  --card-foreground: #1c1917;
  --muted: #f5f3ff;
  --muted-foreground: #78716c;
  --primary: #6366f1;
  --primary-2: #8b5cf6;
  --primary-foreground: #ffffff;
  --secondary: #f5f5f4;
  --secondary-foreground: #292524;
  --accent: #eef2ff;
  --accent-foreground: #4f46e5;
  --success: #14b8a6;
  --destructive: #dc2626;
  --destructive-foreground: #ffffff;
  --border: #e7e5e4;
  --input: #e7e5e4;
  --ring: #6366f1;
  --shadow: 0 1px 3px 0 rgb(76 29 149 / 0.05), 0 1px 2px -1px rgb(76 29 149 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(76 29 149 / 0.07), 0 2px 4px -2px rgb(76 29 149 / 0.07);
  --shadow-lg: 0 10px 15px -3px rgb(76 29 149 / 0.08), 0 4px 6px -4px rgb(76 29 149 / 0.08);
  --shadow-glow: 0 24px 48px -12px rgb(99 102 241 / 0.22);
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== Layout ===== */
.main-wrap { min-height: calc(100vh - 64px); }
.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px 96px;
}
.page-narrow { max-width: 520px; }
.page-wide { max-width: 1200px; }

/* ===== Top Bar ===== */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;
  height: 64px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
}
.topbar .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--foreground);
  text-decoration: none;
}
.topbar .brand:hover { text-decoration: none; }
.topbar .brand-logo {
  height: 40px;
  width: auto;
  display: block;
}
.topbar .brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--primary);
  color: var(--primary-foreground);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.topbar nav {
  display: flex;
  gap: 4px;
  align-items: center;
}
.topbar nav a, .topbar .nav-btn {
  color: var(--muted-foreground);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  transition: color 0.15s, background 0.15s;
  border: none;
  background: transparent;
  cursor: pointer;
}
.topbar nav a:hover, .topbar .nav-btn:hover {
  color: var(--foreground);
  background: var(--secondary);
  text-decoration: none;
}
.topbar .username {
  color: var(--muted-foreground);
  font-size: 14px;
  padding: 8px 14px;
}
.topbar .lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  margin-left: 8px;
  transition: all 0.15s ease;
}
.topbar .lang-switch:hover {
  background: var(--accent);
  border-color: var(--primary);
  text-decoration: none;
}

/* ===== Container ===== */
.container { max-width: 720px; margin: 40px auto; padding: 0 20px; }

/* ===== Panel ===== */
.panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

/* ===== Typography ===== */
h1 { font-size: 32px; font-weight: 700; margin: 0 0 16px; letter-spacing: -0.5px; line-height: 1.2; }
h2 { font-size: 24px; font-weight: 700; margin: 0 0 16px; letter-spacing: -0.3px; }
h3 { font-size: 18px; font-weight: 600; margin: 0 0 8px; }
.text-center { text-align: center; }
.text-muted { color: var(--muted-foreground); }
.text-sm { font-size: 14px; }
.text-xs { font-size: 12px; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.leading-relaxed { line-height: 1.75; }

/* ===== Buttons ===== */
.btn-primary, .btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-md);
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
  border: 1px solid transparent;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
  color: var(--primary-foreground);
  border: none;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover {
  filter: brightness(1.07);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
}
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-outline {
  background: var(--background);
  color: var(--foreground);
  border-color: var(--border);
}
.btn-outline:hover {
  background: var(--secondary);
  border-color: var(--muted-foreground);
  text-decoration: none;
}

.btn-lg { padding: 14px 28px; font-size: 16px; border-radius: var(--radius-lg); }
.btn-sm { padding: 6px 12px; font-size: 13px; }

.btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: transparent;
  color: var(--destructive);
  border: none;
  padding: 6px 12px;
  font-size: 13px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
}
.btn-danger:hover { background: #fef2f2; }

/* ===== Forms ===== */
form { display: flex; flex-direction: column; gap: 16px; }
form.panel { padding: 32px; }

label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--foreground);
  font-size: 14px;
  font-weight: 500;
}
label .label-text { font-weight: 500; }
label .label-hint {
  font-size: 13px;
  color: var(--muted-foreground);
  font-weight: 400;
}

input, select, textarea {
  background: var(--background);
  color: var(--foreground);
  border: 1px solid var(--input);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgb(99 102 241 / 15%);
}
input::placeholder { color: #94a3b8; }

/* ===== Status Messages ===== */
.status { color: var(--muted-foreground); min-height: 1.4em; font-size: 14px; }
.status.error { color: var(--destructive); }

/* ===== Result Box ===== */
.result-box { display: flex; flex-direction: column; gap: 14px; }
.result-box a { color: var(--primary); word-break: break-all; font-size: 14px; }

/* ===== Table ===== */
table { width: 100%; border-collapse: collapse; }
th, td {
  text-align: left;
  padding: 14px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
th {
  color: var(--muted-foreground);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--muted);
}
td { color: var(--foreground); }
tr:hover td { background: var(--secondary); }

/* ===== Hint ===== */
.hint { color: var(--muted-foreground); font-size: 14px; line-height: 1.6; }
[hidden] { display: none !important; }

/* ===== Select ===== */
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2378716c' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

/* ===== Landing Page ===== */
.container:has(.hero) { max-width: none; margin: 0; padding: 0; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 24px 96px;
  background: var(--background);
  border-bottom: 1px solid var(--border);
}
.hero::before, .hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.hero::before {
  width: 560px;
  height: 560px;
  top: -180px;
  right: -80px;
  background: radial-gradient(circle, rgb(139 92 246 / 0.18), transparent 70%);
}
.hero::after {
  width: 480px;
  height: 480px;
  bottom: -200px;
  left: -120px;
  background: radial-gradient(circle, rgb(20 184 166 / 0.12), transparent 70%);
}
.hero-inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid #c7d2fe;
  background: #eef2ff;
  color: #4f46e5;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(36px, 4.5vw, 54px);
  font-weight: 800;
  letter-spacing: -1.2px;
  line-height: 1.12;
  margin: 0 0 20px;
}
.hero h1 .highlight {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  color: var(--muted-foreground);
  font-size: 17px;
  line-height: 1.7;
  max-width: 520px;
  margin: 0 0 32px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 36px;
}
.hero-badges span {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted-foreground);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hero-badges span::before {
  content: "✓";
  color: var(--success);
  font-weight: 700;
}

/* Hero 上传卡片 */
.hero-upload {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-glow);
  padding: 28px;
}
.hero-upload-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.hero-upload-header h2 { font-size: 18px; margin: 0; }
.plan-chip {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-foreground);
  background: var(--accent);
  border-radius: 999px;
  padding: 4px 12px;
}
.hero-upload-note {
  margin: 16px 0 0;
  font-size: 13px;
  color: var(--muted-foreground);
  text-align: center;
}

/* 表单在 hero 卡片内的紧凑布局（选择器特异性高于 .upload-layout .panel） */
.hero-upload .upload-layout { grid-template-columns: 1fr; gap: 20px; }
.hero-upload .upload-layout .panel { border: none; box-shadow: none; padding: 0; }
.hero-upload .upload-layout .panel > h2 { display: none; }
.hero-upload .drop-zone { padding: 32px 16px; }

@media (max-width: 900px) {
  .hero { padding: 64px 20px 72px; }
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-sub { max-width: none; }
  .hero::after { display: none; }
}

/* Sections — 统一节奏：白 / 浅灰 交替 */
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 88px 24px;
}
.section-alt {
  max-width: none;
  background: var(--muted);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-alt > * { max-width: 1100px; margin-left: auto; margin-right: auto; }
.section h2 {
  text-align: center;
  font-size: 30px;
  font-weight: 800;
  margin: 0 0 14px;
  letter-spacing: -0.5px;
}
.section-subtitle {
  text-align: center;
  color: var(--muted-foreground);
  font-size: 16px;
  max-width: 640px;
  margin: 0 auto 52px;
}

/* CTA Section */
.cta-section {
  text-align: center;
  padding: 88px 24px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
  color: #ffffff;
}
.cta-section h2 {
  font-size: 30px;
  font-weight: 800;
  margin: 0 0 12px;
  letter-spacing: -0.5px;
  color: #ffffff;
}
.cta-section p { color: rgb(255 255 255 / 0.85); font-size: 16px; margin: 0 0 28px; }
.cta-section .btn-primary {
  background: #ffffff;
  color: #4f46e5;
  box-shadow: var(--shadow-lg);
}
.cta-section .btn-primary:hover { filter: none; transform: translateY(-1px); }

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.feature-card {
  padding: 32px;
  border-radius: var(--radius-lg);
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}
.feature-card:hover {
  border-color: #c7d2fe;
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #eef2ff, #f5f3ff);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.feature-card h3 { font-size: 18px; margin: 0 0 10px; }
.feature-card p { color: var(--muted-foreground); font-size: 15px; line-height: 1.7; margin: 0; }

/* Footer */
.footer {
  padding: 48px 24px;
  border-top: 1px solid var(--border);
  background: var(--background);
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--foreground);
}
.footer p { margin: 0; font-size: 14px; color: var(--muted-foreground); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--muted-foreground); font-size: 14px; }
.footer-links a:hover { color: var(--foreground); text-decoration: none; }

/* ===== Upload Page ===== */
.upload-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}
.upload-layout .panel { padding: 32px; }

/* Upload gate (anonymous users on homepage) */
.upload-gate {
  max-width: 640px;
  margin: 0 auto;
  padding: 56px 40px;
  text-align: center;
}
.upload-gate-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--accent);
  color: var(--primary);
  font-size: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.upload-gate h2 { font-size: 24px; margin-bottom: 12px; }
.upload-gate .section-subtitle { margin-bottom: 28px; }

@media (max-width: 760px) {
  .upload-layout { grid-template-columns: 1fr; }
}

/* Passphrase group */
.passphrase-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.password-field {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.password-field input {
  padding-right: 44px;
}

/* Password toggle */
.password-toggle {
  position: absolute;
  right: 10px;
  bottom: 10px;
  background: none;
  border: none;
  color: var(--muted-foreground);
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: color 0.15s;
}
.password-toggle:hover { color: var(--foreground); }

/* Password strength */
.strength-bar { display: flex; gap: 4px; margin-top: 8px; }
.strength-bar span { height: 4px; flex: 1; border-radius: 2px; background: var(--border); }
.strength-bar span.filled { background: var(--primary); }
.strength-label { font-size: 13px; color: var(--muted-foreground); margin-top: 4px; }

/* File drop zone */
.drop-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 52px 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  background: var(--muted);
}
.drop-zone:hover, .drop-zone.drag-over { border-color: var(--primary); background: var(--accent); }
.drop-zone .drop-icon { color: var(--primary); margin-bottom: 12px; display: flex; justify-content: center; }
.drop-zone p { margin: 0; font-size: 15px; font-weight: 500; }
.drop-zone .drop-hint { color: var(--muted-foreground); font-size: 13px; margin-top: 6px; font-weight: 400; }

/* File preview */
.file-preview {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--muted);
}
.file-preview img { width: 64px; height: 64px; border-radius: var(--radius-md); object-fit: cover; }
.file-preview .file-info { flex: 1; min-width: 0; }
.file-preview .file-name { font-size: 14px; font-weight: 600; margin: 0; }
.file-preview .file-meta { font-size: 13px; color: var(--muted-foreground); margin: 4px 0 0; }
.file-preview .file-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; color: var(--primary); margin-top: 6px;
  font-weight: 600;
}
.file-preview .remove-btn {
  background: none; border: none; color: var(--muted-foreground); cursor: pointer;
  font-size: 22px; padding: 4px 8px; border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
}
.file-preview .remove-btn:hover { color: var(--destructive); background: #fef2f2; }

/* ===== Success Panel ===== */
.success-panel { padding: 32px; }
.success-panel .success-header { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; }
.success-panel .success-icon {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--accent); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 700;
}
.success-panel .url-row { display: flex; gap: 10px; margin-top: 10px; }
.success-panel .url-row input { flex: 1; font-family: monospace; font-size: 14px; }
.success-panel .tips { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.success-panel .tip-card {
  padding: 20px; border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--muted);
}
.success-panel .tip-card.warn { border-color: #fecaca; background: #fef2f2; }
.success-panel .tip-card h4 { font-size: 15px; margin: 0 0 10px; display: flex; align-items: center; gap: 8px; }
.success-panel .tip-card p { font-size: 14px; color: var(--muted-foreground); margin: 0; line-height: 1.6; }
.success-panel .tip-card.warn h4 { color: var(--destructive); }
.success-panel .tip-card.warn p { color: #7f1d1d; }
@media (max-width: 540px) {
  .success-panel .tips { grid-template-columns: 1fr; }
}

/* ===== Auth Pages ===== */
.auth-section {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  background: linear-gradient(180deg, #f5f3ff 0%, #fafaf9 100%);
}

.auth-card {
  width: 100%;
  max-width: 420px;
  padding: 40px;
}

.auth-header {
  text-align: center;
  margin-bottom: 32px;
}

.auth-header h1 {
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 8px;
  letter-spacing: -0.5px;
}

.auth-header p {
  color: var(--muted-foreground);
  font-size: 15px;
  margin: 0;
}

/* Google button */
.google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 600;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--foreground);
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.google-btn:hover {
  background: var(--secondary);
  border-color: var(--primary);
  text-decoration: none;
  box-shadow: var(--shadow);
}

.google-btn:active { transform: scale(0.99); }

/* Auth divider */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 28px 0;
  color: var(--muted-foreground);
  font-size: 13px;
}

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

/* Auth tabs */
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  background: var(--secondary);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
}
.auth-tab {
  padding: 10px;
  border: none;
  background: transparent;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--muted-foreground);
  cursor: pointer;
  transition: all 0.15s;
}
.auth-tab.active {
  background: var(--background);
  color: var(--foreground);
  box-shadow: var(--shadow);
}

/* Email form */
.email-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.email-label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--foreground);
  font-size: 14px;
  font-weight: 500;
}

.email-label input {
  padding: 14px 16px;
  font-size: 15px;
  border-radius: var(--radius-md);
}

.code-row {
  display: flex;
  gap: 12px;
  align-items: stretch;
}

.code-row input {
  flex: 1;
  min-width: 0;
  text-align: center;
  letter-spacing: 6px;
  font-size: 18px;
  font-weight: 600;
  padding: 14px 16px;
}

.code-row button {
  padding: 14px 22px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.login-btn {
  width: 100%;
  padding: 14px;
  font-size: 15px;
  font-weight: 600;
  margin-top: 4px;
}

/* ===== Pricing ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}
@media (max-width: 800px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
}
.pricing-card {
  padding: 32px 28px;
  position: relative;
}
.pricing-card h3 { font-size: 18px; margin: 0 0 8px; }
.pricing-price {
  font-size: 36px;
  font-weight: 800;
  margin: 12px 0 20px;
  letter-spacing: -0.5px;
}
.pricing-period { font-size: 15px; font-weight: 500; color: var(--muted-foreground); }
.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pricing-features li {
  font-size: 14px;
  color: var(--muted-foreground);
  padding-left: 24px;
  position: relative;
  line-height: 1.5;
}
.pricing-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}
.pricing-badge {
  position: absolute;
  top: -12px;
  left: 28px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: var(--primary-foreground);
  font-size: 12px;
  font-weight: 600;
  padding: 3px 12px;
  border-radius: 20px;
}
.pricing-card.highlight {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}

/* ===== Quota bar ===== */
.quota-bar {
  margin-bottom: 28px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  border-radius: var(--radius-lg);
  background: var(--muted);
  border: 1px solid var(--border);
}
.quota-bar .progress {
  flex: 1;
  height: 8px;
  border-radius: 4px;
  background: var(--border);
  overflow: hidden;
}
.quota-bar .progress-fill {
  height: 100%;
  border-radius: 4px;
  background: var(--primary);
  transition: width 0.3s;
}
.quota-bar .quota-plan {
  text-transform: uppercase;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.5px;
  color: var(--primary);
  background: var(--accent);
  padding: 3px 10px;
  border-radius: 20px;
}

/* ===== Encryption Flow Diagram ===== */
.encrypt-diagram {
  width: 100%;
  max-width: 900px;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* ===== Pricing Preview ===== */
.pricing-preview-cards {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  max-width: 720px; margin: 0 auto;
}
@media (max-width: 640px) {
  .pricing-preview-cards { grid-template-columns: 1fr; }
}
.pricing-preview-card {
  padding: 32px; position: relative; text-align: center;
}
.pricing-preview-card.featured {
  border: 2px solid transparent;
  background: linear-gradient(var(--card), var(--card)) padding-box,
              linear-gradient(135deg, var(--primary), var(--primary-2)) border-box;
  box-shadow: var(--shadow-glow);
}
.pricing-preview-card h3 { font-size: 18px; margin: 0 0 8px; }
.pricing-preview-price {
  font-size: 32px; font-weight: 800; margin: 12px 0 16px;
}
.pricing-preview-period { font-size: 15px; font-weight: 500; color: var(--muted-foreground); }
.pricing-preview-card ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.pricing-preview-card ul li {
  font-size: 15px; color: var(--muted-foreground);
}

/* ===== Page Header ===== */
.page-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 36px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.page-header h1 { margin: 0 0 4px; }
.page-header .subtitle { color: var(--muted-foreground); font-size: 15px; margin: 0; }

/* ===== Info Banner ===== */
.info-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  margin-bottom: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid #c7d2fe;
  background: #eef2ff;
  color: #3730a3;
  font-size: 14px;
}
.info-banner > span:first-child { display: inline-flex; flex-shrink: 0; }
.info-banner a { color: var(--primary); font-weight: 600; }
.info-banner a:hover { text-decoration: underline; }

/* ===== Pro Feature Row ===== */
.pro-feature-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--muted);
  font-size: 13px;
}
.pro-feature-row .icon { font-size: 16px; color: var(--primary); }
.pro-feature-row .title { font-weight: 600; margin: 0 0 2px; }
.pro-feature-row .desc { color: var(--muted-foreground); font-size: 12px; margin: 0; }
.pro-feature-row .unlock-btn {
  margin-left: auto;
  padding: 4px 10px;
  font-size: 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--primary);
  background: transparent;
  color: var(--primary);
  cursor: pointer;
  font-weight: 600;
}
.pro-feature-row .unlock-btn:hover { background: var(--accent); }

/* ===== FAQ ===== */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--background);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  padding: 18px 22px;
  background: none;
  border: none;
  text-align: left;
  font-size: 15px;
  font-weight: 600;
  color: var(--foreground);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-answer {
  padding: 0 22px 18px;
  color: var(--muted-foreground);
  font-size: 14px;
  line-height: 1.7;
}

/* ===== Download Preview ===== */
.download-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 24px;
}
.download-preview img {
  max-width: 100%;
  max-height: 480px;
  border-radius: var(--radius-lg);
  object-fit: contain;
  border: 1px solid var(--border);
}
.download-preview-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 16px;
}
.download-preview-info p {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
  word-break: break-all;
}

/* ===== Site Footer ===== */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--background);
  margin-top: 64px;
}
.site-footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 40px 24px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: flex-start;
}
.site-footer-name { font-size: 16px; font-weight: 700; }
.site-footer-tagline {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--muted-foreground);
  max-width: 320px;
  line-height: 1.6;
}
.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}
.site-footer-links a {
  font-size: 14px;
  color: var(--muted-foreground);
  text-decoration: none;
}
.site-footer-links a:hover { color: var(--foreground); }
.site-footer-bottom {
  max-width: 1080px;
  margin: 0 auto;
  padding: 16px 24px 28px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted-foreground);
}

/* ===== Legal / Content Pages ===== */
.legal-content h2 {
  font-size: 20px;
  margin: 40px 0 12px;
}
.legal-content h3 {
  font-size: 16px;
  margin: 24px 0 8px;
}
.legal-content p, .legal-content li {
  font-size: 15px;
  line-height: 1.75;
  color: var(--foreground);
}
.legal-content p { margin: 12px 0; }
.legal-content ul, .legal-content ol {
  margin: 12px 0;
  padding-left: 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.legal-content a { color: var(--primary); }
.legal-content table { margin: 16px 0; }

.legal-steps { counter-reset: step; }

.privacy-highlight {
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-lg);
  background: var(--muted);
  padding: 20px 24px;
  margin-bottom: 8px;
}
.privacy-highlight h2 { margin-top: 0; font-size: 18px; }
.privacy-highlight ul { margin-bottom: 0; }

.about-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 20px 0;
}
@media (max-width: 640px) {
  .about-compare { grid-template-columns: 1fr; }
}
.about-compare-col { padding: 20px 24px; }
.about-compare-col h3 { margin: 0 0 12px; font-size: 16px; }
.about-compare-col ul {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.about-compare-col li { font-size: 14px; color: var(--muted-foreground); }

.about-cta {
  margin-top: 48px;
  text-align: center;
}

/* ===== Image Transform Tool ===== */
.image-tool {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.image-tool-upload .drop-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 24px;
  text-align: center;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.image-tool-upload .drop-zone.dragover,
.image-tool-upload .drop-zone:hover {
  background: var(--accent);
  border-color: var(--primary);
}

.image-tool-upload .drop-zone .drop-icon {
  color: var(--muted-foreground);
  margin-bottom: 12px;
}

.image-tool-upload .drop-zone p {
  margin: 0;
  font-weight: 600;
  color: var(--foreground);
}

.image-tool-upload .drop-zone .drop-hint {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--muted-foreground);
  font-weight: 400;
}

.canvas-wrap {
  width: 100%;
  max-height: 60vh;
  overflow: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: var(--radius-lg);
  background: var(--background);
  border: 1px solid var(--border);
}

.canvas-wrap canvas {
  max-width: 100%;
  max-height: 60vh;
  display: block;
  border-radius: var(--radius-md);
}

.image-tool-controls .control-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.image-tool-controls .control-group.actions {
  margin-top: 24px;
  margin-bottom: 0;
  justify-content: flex-end;
}

.image-tool-controls .custom-angle {
  align-items: flex-end;
  gap: 12px;
}

.image-tool-controls .custom-angle input {
  width: 120px;
}

.image-tool-controls .status {
  margin-top: 12px;
  margin-bottom: 0;
}
