/* ─── Tokens ──────────────────────────────────────────────────────────────── */
:root {
  --bg: #ffffff;
  --bg-soft: #f8f7f4;
  --bg-yellow: #fef9e7;
  --surface: #ffffff;
  --surface2: #f3f2ef;
  --border: #e8e6e0;
  --border-dark: #d0cdc5;

  --black: #0f0e0c;
  --text: #1a1917;
  --text-2: #4a4845;
  --text-muted: #8a8680;

  --yellow: #f5c800;
  --yellow-hover: #e0b600;
  --yellow-soft: #fef9e7;
  --yellow-border: #f5d560;

  --success: #16a34a;
  --error: #dc2626;

  --radius: 14px;
  --radius-sm: 8px;
  --radius-xs: 6px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.1), 0 4px 8px rgba(0,0,0,0.06);
}

/* ─── Reset ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; overflow-x: hidden; }

body:has(.result-section.show) { overflow: hidden; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

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

/* ─── Layout ──────────────────────────────────────────────────────────────── */
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 460px; margin: 0 auto; padding: 0 24px; }

/* ─── Navbar ──────────────────────────────────────────────────────────────── */
.navbar {
  border-bottom: 1px solid var(--border);
  padding: 0;
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(12px);
  z-index: 100;
}
.navbar .container,
.navbar .navbar-fluid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.navbar .navbar-fluid {
  padding: 0 24px;
  max-width: none;
  width: 100%;
}
.navbar-brand {
  font-size: 20px;
  font-weight: 800;
  color: var(--black);
  letter-spacing: -0.8px;
  text-decoration: none;
  display: flex;
  align-items: center;
}
.navbar-brand span { color: inherit; }
.navbar-logo { height: 28px; width: auto; display: block; margin-right: 8px; }
/* Logo on light background: black icon, black text */
.navbar-brand-text { font-size: 20px; font-weight: 800; color: var(--black); letter-spacing: -0.8px; }
.navbar-brand-accent { color: var(--black); }

/* Logo on dark background: white icon (inverted), yellow text */
.navbar-brand-dark .navbar-logo { filter: invert(1); }
.navbar-brand-dark .navbar-brand-text { color: #fff; }
.navbar-brand-dark .navbar-brand-accent { color: #f5c800; }
.navbar-actions { display: flex; gap: 8px; align-items: center; }

/* ─── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
  font-family: inherit;
  letter-spacing: -0.1px;
}
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

.btn-primary {
  background: var(--black);
  color: #fff;
  border-color: var(--black);
}
.btn-primary:hover:not(:disabled) {
  background: #2a2925;
  border-color: #2a2925;
  color: #fff;
  text-decoration: none;
}

.btn-yellow {
  background: var(--yellow);
  color: var(--black);
  border-color: var(--yellow);
}
.btn-yellow:hover:not(:disabled) {
  background: var(--yellow-hover);
  border-color: var(--yellow-hover);
  color: var(--black);
  text-decoration: none;
}

.btn-secondary {
  background: var(--surface2);
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover:not(:disabled) {
  background: var(--border);
  color: var(--black);
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  color: var(--text-2);
  border-color: var(--border);
}
.btn-ghost:hover:not(:disabled) {
  color: var(--black);
  background: var(--surface2);
  text-decoration: none;
}

.btn-lg { padding: 10px 20px; font-size: 14px; }
.btn-full { width: 100%; }

/* ─── Form ────────────────────────────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 6px; }

label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  letter-spacing: 0.3px;
}

.input {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 14px;
  padding: 11px 13px;
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
  outline: none;
  font-family: inherit;
}
.input:focus {
  border-color: var(--black);
  box-shadow: 0 0 0 3px rgba(15,14,12,0.08);
}
.input::placeholder { color: var(--text-muted); }
textarea.input { resize: vertical; min-height: 90px; }

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

/* ─── Card ────────────────────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

/* ─── Alert ───────────────────────────────────────────────────────────────── */
.alert { padding: 11px 14px; border-radius: var(--radius-xs); font-size: 13px; display: none; line-height: 1.5; }
.alert.show { display: block; margin-bottom: 16px; }
.alert-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}
.alert-success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #15803d;
}

/* ─── Badge ───────────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.badge-free {
  background: var(--yellow-soft);
  color: #7a6200;
  border: 1px solid var(--yellow-border);
}
.badge-premium {
  background: var(--black);
  color: var(--yellow);
  border: 1px solid var(--black);
}

/* ─── Section ─────────────────────────────────────────────────────────────── */
.section-title {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.8px;
  margin-bottom: 8px;
  color: var(--black);
}
.section-sub {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 48px;
}

/* ─── Navbar brand on dark bg ─────────────────────────────────────────────── */
.navbar-brand-dark { color: #fff; }
.navbar-brand-dark span { color: var(--yellow); }

/* ─── Landing: Hero ───────────────────────────────────────────────────────── */
.hero {
  padding: 80px 0 72px;
  background: var(--bg);
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--yellow-soft);
  border: 1px solid var(--yellow-border);
  color: #7a6200;
  padding: 5px 12px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(36px, 5.5vw, 62px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -2px;
  margin-bottom: 20px;
  color: var(--black);
  max-width: 700px;
}
.hero h1 em {
  font-style: normal;
  position: relative;
  display: inline-block;
}
.hero h1 em::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--yellow);
  border-radius: 3px;
  z-index: -1;
  opacity: 0.7;
}
.hero-sub {
  font-size: 17px;
  color: var(--text-2);
  max-width: 480px;
  margin-bottom: 32px;
  line-height: 1.65;
}
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-visual {
  position: relative;
}

/* ── Before/After Slider ── */
.ba-slider {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
  border: 1.5px solid var(--border);
  cursor: col-resize;
  user-select: none;
  aspect-ratio: 1;
}
.ba-slider.ba-auto { cursor: default; }
.ba-slider.ba-auto .ba-before-auto {
  position: absolute;
  inset: -2px;
  width: calc(100% + 4px); height: calc(100% + 4px);
  object-fit: cover;
  min-width: 0;
  animation: baAutoFade 5s ease-in-out infinite;
  will-change: opacity;
  transform: translateZ(0);
  backface-visibility: hidden;
}
.ba-slider.ba-auto .ba-after {
  transform: translateZ(0);
  backface-visibility: hidden;
}
@keyframes baAutoFade {
  0%, 42% { opacity: 1; }
  50%, 92% { opacity: 0; }
  100% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .ba-slider.ba-auto .ba-before-auto { animation: none; }
}
.ba-after {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ba-before-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  width: 50%;
}
.ba-before {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-width: var(--slider-full-width, 100%);
}
.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10;
  pointer-events: none;
}
.ba-handle-line {
  flex: 1;
  width: 2px;
  background: rgba(255,255,255,0.9);
}
.ba-handle-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0f0e0c;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
  flex-shrink: 0;
}
.ba-label {
  position: absolute;
  bottom: 16px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 5px 10px;
  border-radius: 6px;
  backdrop-filter: blur(6px);
  z-index: 5;
}
.ba-label-before {
  left: 14px;
  background: rgba(0,0,0,0.6);
  color: #fff;
}
.ba-label-after {
  right: 14px;
  background: rgba(245,200,0,0.9);
  color: #000;
}
.ba-hint {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 10px;
  letter-spacing: 0.3px;
}

.hero-before-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
}
.hero-stats {
  display: flex;
  gap: 24px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.hero-stat { }
.hero-stat strong {
  display: block;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--black);
}
.hero-stat span {
  font-size: 12px;
  color: var(--text-muted);
}
.hero-platforms {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 20px;
}
.hero-platforms-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-right: 2px;
}
.hero-platform-item {
  font-size: 11px;
  color: var(--text-muted);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2px 9px;
}

/* ─── Trust strip ─────────────────────────────────────────────────────────── */
.trust-strip {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
.trust-strip .container {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.trust-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  margin-right: 8px;
  white-space: nowrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: 99px;
}

/* ─── How it works ────────────────────────────────────────────────────────── */
.how {
  padding: 96px 0;
  background: var(--bg);
}
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1.5px solid var(--border);
}
.how-step {
  background: var(--bg);
  padding: 36px 32px;
  position: relative;
}
.how-num {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 1px;
  margin-bottom: 16px;
}
.how-step h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
  color: var(--black);
}
.how-step p { font-size: 14px; color: var(--text-2); line-height: 1.6; }

/* ─── Features ────────────────────────────────────────────────────────────── */
.features { padding: 96px 0; background: var(--bg-soft); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.feature-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.feature-icon {
  width: 40px;
  height: 40px;
  background: var(--yellow-soft);
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  color: #7a6200;
}
.feature-icon svg { display: block; }
.feature-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; color: var(--black); }
.feature-card p { font-size: 13px; color: var(--text-2); line-height: 1.6; }

/* ─── Pricing ─────────────────────────────────────────────────────────────── */
.pricing { padding: 96px 0; background: var(--bg); }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1180px;
  margin: 0 auto;
}
.pricing-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.pricing-card.featured {
  background: var(--black);
  border-color: var(--black);
  color: #fff;
}
.pricing-card.featured .pricing-header p,
.pricing-card.featured .pricing-features li { color: #aaa; }
.pricing-card.featured .pricing-price { color: #fff; }
.pricing-card.featured .pricing-price span { color: #666; }
.pricing-header h3 { font-size: 17px; font-weight: 700; margin-bottom: 3px; }
.pricing-header p { font-size: 13px; color: var(--text-muted); }
.pricing-price { font-size: 40px; font-weight: 900; letter-spacing: -1.5px; }
.pricing-price span { font-size: 15px; font-weight: 400; }
.pricing-features { list-style: none; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.pricing-features li {
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.pricing-features li::before {
  content: "✓";
  font-weight: 800;
  color: var(--yellow);
  flex-shrink: 0;
}
.pricing-card:not(.featured) .pricing-features li::before { color: var(--success); }

/* ─── CTA ─────────────────────────────────────────────────────────────────── */
.cta-section {
  padding: 96px 0;
  background: var(--black);
  text-align: center;
}
.cta-section h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  letter-spacing: -1.5px;
  margin-bottom: 12px;
  color: #fff;
}
.cta-section p { color: #666; margin-bottom: 32px; font-size: 16px; }

/* ─── Footer ──────────────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  color: var(--text-muted);
  font-size: 12px;
}
/* ─── Big footer (landing + legal pages) ─────────────────────────────────── */
.footer-big {
  padding: 56px 0 32px;
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
}
.footer-big-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 64px;
  margin-bottom: 48px;
  align-items: start;
}
.footer-big-brand { max-width: 260px; }
.footer-brand {
  font-size: 20px;
  font-weight: 800;
  color: var(--black);
  letter-spacing: -0.6px;
  margin-bottom: 10px;
}
.footer-brand span { color: var(--yellow); }
.footer-big-tagline {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}
.footer-big-cols {
  display: flex;
  gap: 56px;
}
.footer-big-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-big-col-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-2);
  margin-bottom: 4px;
}
.footer-big-col a {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1;
}
.footer-big-col a:hover { color: var(--text); }
.footer-big-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
}
.footer-copy { font-size: 12px; color: var(--text-muted); }
@media (max-width: 760px) {
  .footer-big-top { grid-template-columns: 1fr; gap: 40px; }
  .footer-big-brand { max-width: none; }
  .footer-big-cols { gap: 32px; }
}
@media (max-width: 480px) {
  .footer-big-cols { flex-wrap: wrap; gap: 28px; }
}

/* ─── Cookie consent banner ──────────────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--black);
  color: #e8e6e0;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.18);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner-text {
  flex: 1;
  font-size: 13px;
  line-height: 1.6;
  color: #aaa;
  min-width: 200px;
}
.cookie-banner-text a { color: var(--yellow); text-decoration: underline; }
.cookie-banner-text a:hover { color: #fff; }
.cookie-banner-actions { display: flex; gap: 10px; flex-shrink: 0; flex-wrap: wrap; }
.cookie-btn-accept {
  background: var(--yellow);
  color: var(--black);
  border: none;
  border-radius: var(--radius-sm);
  padding: 9px 20px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.cookie-btn-accept:hover { background: var(--yellow-hover); }
.cookie-btn-reject {
  background: transparent;
  color: #888;
  border: 1px solid #333;
  border-radius: var(--radius-sm);
  padding: 9px 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.cookie-btn-reject:hover { color: #ccc; border-color: #555; }
@media (max-width: 600px) {
  .cookie-banner { flex-direction: column; align-items: flex-start; gap: 14px; }
  .cookie-banner-actions { width: 100%; }
  .cookie-btn-accept, .cookie-btn-reject { flex: 1; text-align: center; }
}

/* ─── Legal pages ─────────────────────────────────────────────────────────── */
.legal-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}
.legal-page h1 {
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -1px;
  color: var(--black);
  margin-bottom: 6px;
}
.legal-meta {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 48px;
}
.legal-page h2 {
  font-size: 16px;
  font-weight: 700;
  color: var(--black);
  margin: 32px 0 8px;
}
.legal-page p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 0;
}
.legal-page ul {
  padding-left: 20px;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.legal-page ul li {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.7;
}

/* ─── 404 ─────────────────────────────────────────────────────────────────── */
.not-found {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 24px;
  gap: 16px;
}
.not-found-code {
  font-size: 80px;
  font-weight: 900;
  color: var(--border-dark);
  line-height: 1;
  letter-spacing: -4px;
}
.not-found h1 {
  font-size: 24px;
  font-weight: 800;
  color: var(--black);
  letter-spacing: -0.5px;
}
.not-found p { font-size: 15px; color: var(--text-muted); margin-bottom: 8px; }

/* ─── Auth ────────────────────────────────────────────────────────────────── */
.auth-wrap {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-left {
  background: var(--black);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px;
  position: relative;
  overflow: hidden;
}
.auth-left::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(245,200,0,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.auth-left-logo {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.8px;
  text-decoration: none;
  position: relative;
  z-index: 1;
}
.auth-left-logo span { color: var(--yellow); }
.auth-left-content { position: relative; z-index: 1; }
.auth-left-content h2 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 10px;
  color: #fff;
  line-height: 1.2;
}
.auth-left-content p { font-size: 14px; color: #666; line-height: 1.6; margin-bottom: 28px; }
.auth-preview {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #2a2a2a;
  background: #111;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}
.auth-preview-imgs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.auth-preview-img-wrap {
  position: relative;
  overflow: hidden;
}
.auth-preview-img-wrap:first-child {
  border-right: 1px solid #2a2a2a;
}
.auth-preview-imgs img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}
.auth-preview-label {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #666;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
  border: 1px solid #333;
  border-radius: 20px;
  padding: 3px 9px;
}
.auth-preview-label-after {
  color: var(--yellow);
  background: rgba(245,200,0,0.12);
  border-color: rgba(245,200,0,0.25);
}
.auth-preview-caption {
  padding: 11px 14px;
  background: #0e0e0e;
  border-top: 1px solid #1e1e1e;
  font-size: 11px;
  color: #444;
  letter-spacing: 0.1px;
}
.auth-left-foot { font-size: 11px; color: #333; position: relative; z-index: 1; }

.auth-right {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: var(--bg);
}
.auth-form-wrap { width: 100%; max-width: 360px; }
.auth-form-wrap h1 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 4px;
  color: var(--black);
}
.auth-form-wrap .subtitle { font-size: 14px; color: var(--text-muted); margin-bottom: 28px; }
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-bottom { text-align: center; margin-top: 18px; font-size: 13px; color: var(--text-muted); }
.auth-free-note {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: #7a6200;
  background: var(--yellow-soft);
  border: 1px solid var(--yellow-border);
  padding: 8px 12px;
  border-radius: var(--radius-xs);
  margin-bottom: 22px;
}

/* ─── Dashboard ───────────────────────────────────────────────────────────── */
.app-layout {
  height: calc(100vh - var(--layout-top, 60px));
  overflow: hidden;
  background: var(--bg-soft);
}
.app-inner {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 0;
  height: 100%;
  align-items: start;
}
.app-sidebar {
  background: var(--bg);
  box-shadow: 1px 0 0 0 var(--border);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: var(--layout-top, 60px);
  height: calc(100vh - var(--layout-top, 60px));
  overflow: hidden;
}
.app-sidebar-head {
  padding: 24px 24px 0;
  border-bottom: 1px solid var(--border);
  padding-bottom: 20px;
}
.app-sidebar-head h1 { font-size: 18px; font-weight: 800; letter-spacing: -0.3px; color: var(--black); }
.app-sidebar-head p { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

.credit-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--yellow-soft);
  border: 1px solid var(--yellow-border);
  color: #7a6200;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 99px;
  margin-top: 10px;
}
.credit-pill.premium {
  background: var(--black);
  border-color: var(--black);
  color: var(--yellow);
}

.sidebar-body { padding: 20px 24px; display: flex; flex-direction: column; gap: 20px; flex: 1; overflow-y: auto; }

.upload-zone {
  border: 2px dashed var(--border-dark);
  border-radius: var(--radius);
  padding: 36px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.18s;
  position: relative;
  background: var(--bg-soft);
}
.upload-zone:hover, .upload-zone.drag-over {
  border-color: var(--yellow);
  background: var(--yellow-soft);
}
.upload-zone input[type="file"] {
  position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%;
}
.upload-icon { font-size: 0; line-height: 0; margin-bottom: 10px; color: var(--text-muted); }
.upload-zone .upload-label { font-size: 14px; font-weight: 600; color: var(--black); margin-bottom: 4px; }
.upload-zone p { font-size: 12px; color: var(--text-muted); }
.preview-img {
  width: 100%; max-height: 240px; object-fit: contain;
  border-radius: var(--radius-sm); margin-bottom: 10px;
}

.field-hint { font-size: 12px; color: var(--text-muted); margin-top: 6px; line-height: 1.5; }

.form-section-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.form-section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.select-group { display: flex; flex-direction: column; gap: 4px; }
.select-group label { font-size: 11px; font-weight: 600; color: var(--text-muted); letter-spacing: 0.2px; }

.sidebar-footer { padding: 20px 24px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px; }
.generate-video-wrap { position: relative; }
.generate-video-btn {
  width: 100%;
  opacity: 0.38;
  cursor: not-allowed !important;
  pointer-events: none;
}
#videoTooltipPortal {
  position: fixed;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 12px;
  color: var(--text-2);
  white-space: nowrap;
  pointer-events: none;
  z-index: 9999;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}
#videoTooltipPortal.visible {
  opacity: 1;
  transform: translateX(0);
}
#videoTooltipPortal::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 100%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-right-color: var(--border);
}
#videoTooltipPortal::after {
  content: "";
  position: absolute;
  top: 50%;
  right: calc(100% - 1px);
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-right-color: var(--bg-elevated);
}

/* ─── App canvas (right side) ─────────────────────────────────────────────── */
.app-canvas {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  position: sticky;
  top: var(--layout-top, 60px);
  height: calc(100vh - var(--layout-top, 60px));
  overflow: hidden;
}
.app-canvas:has(.result-section.show) {
  padding: 0;
}

.canvas-empty {
  text-align: center;
  color: var(--text-muted);
}
.canvas-empty-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.canvas-empty h3 { font-size: 16px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.canvas-empty p { font-size: 13px; }

.canvas-spinner {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0; text-align: center; padding: 24px 20px;
}
/* Icon area with pulse rings */
.cspin-icon-area {
  position: relative; width: 72px; height: 72px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
}
.cspin-ring-1, .cspin-ring-2 {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid transparent;
}
.cspin-ring-1 {
  border-color: rgba(0,0,0,.08);
  border-top-color: var(--black);
  animation: cspinR1 1.1s linear infinite;
}
.cspin-ring-2 {
  inset: 8px;
  border-color: rgba(0,0,0,.05);
  border-bottom-color: #888;
  animation: cspinR2 1.7s linear infinite reverse;
}
@keyframes cspinR1 { to { transform: rotate(360deg); } }
@keyframes cspinR2 { to { transform: rotate(360deg); } }
.cspin-icon-box {
  width: 40px; height: 40px; border-radius: 10px;
  background: #fff; border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-2);
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
/* Message */
.cspin-msg {
  font-size: 14px; color: var(--text-2); font-weight: 500;
  margin: 0 0 16px; transition: opacity .25s ease, transform .25s ease;
}
.cspin-msg.out { opacity: 0; transform: translateY(-5px); }
/* Progress bar */
.cspin-bar-wrap {
  display: flex; align-items: center; gap: 10px;
  width: 100%; max-width: 220px; margin-bottom: 10px;
}
.cspin-bar-track {
  flex: 1; height: 4px; background: var(--border); border-radius: 99px; overflow: hidden;
}
.cspin-bar-fill {
  height: 100%; width: 0%; border-radius: 99px;
  background: var(--black);
  transition: width .4s ease;
  position: relative; overflow: hidden;
}
.cspin-bar-fill::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.35) 50%, transparent 100%);
  animation: cspinShimmer 1.4s infinite;
}
@keyframes cspinShimmer { 0% { transform: translateX(-100%); } 100% { transform: translateX(200%); } }
.cspin-bar-pct { font-size: 12px; color: var(--text-muted); font-weight: 500; min-width: 34px; text-align: right; }
.canvas-spinner small { font-size: 12px; color: var(--text-muted); }

.result-section { display: none; width: 100%; height: 100%; overflow: hidden; }
.result-section.show { display: flex; }

.result-inline {
  flex: 1;
  display: grid;
  grid-template-columns: 55% 1fr;
  height: 100%;
  overflow: hidden;
}
.result-inline .detail-left { background: #111; }
.result-inline .detail-left-bg { display: none; }
.result-inline .detail-img-after { padding: 36px; }

/* ─── Gallery ─────────────────────────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 32px 0;
}
.gallery-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
}
.gallery-card:hover { border-color: var(--border-dark); }
.gallery-card-img { position: relative; }
.gallery-card-img img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.gallery-card-ratio-badge {
  position: absolute; top: 6px; right: 6px;
  background: rgba(0,0,0,0.55); backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 5px; padding: 2px 6px;
  font-size: 9px; font-weight: 700; color: rgba(255,255,255,0.85); letter-spacing: 0.3px;
}
.gallery-card-body { padding: 12px; }
.gallery-card-desc {
  font-size: 12px; color: var(--text-2); margin-bottom: 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500;
}
.gallery-card-date { font-size: 11px; color: var(--text-muted); }
.gallery-empty {
  grid-column: 1 / -1; text-align: center; padding: 80px 0; color: var(--text-muted);
}
.gallery-empty h3 { font-size: 16px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.gallery-empty p { font-size: 13px; margin-bottom: 20px; }

/* ─── Modals ──────────────────────────────────────────────────────────────── */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.5); z-index: 200;
  align-items: center; justify-content: center; padding: 20px;
  backdrop-filter: blur(4px);
}
.modal-overlay.show { display: flex; }
.modal {
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 18px; max-width: 420px;
  width: 100%; text-align: center; box-shadow: var(--shadow-lg);
}
.modal h2 { font-size: 20px; font-weight: 800; margin-bottom: 8px; letter-spacing: -0.3px; }
.modal p { color: var(--text-2); font-size: 14px; margin-bottom: 24px; line-height: 1.6; }
.modal-actions { display: flex; gap: 10px; justify-content: center; }

/* ─── Detail modal ────────────────────────────────────────────────────────── */
.detail-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(6px);
}
.detail-modal.show { display: flex; }

.detail-box {
  background: var(--bg);
  border-radius: 18px;
  width: 100%;
  max-width: 880px;
  max-height: 92vh;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.22), 0 4px 20px rgba(0,0,0,0.1);
  position: relative;
}

.detail-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.detail-close:hover { background: var(--bg-soft); color: var(--text); }

.detail-layout {
  display: grid;
  grid-template-columns: 400px 1fr;
  height: 560px;
  overflow: hidden;
}

/* Left: image panel */
.detail-left {
  position: relative;
  overflow: hidden;
  align-self: stretch;
  background: #0c0b09;
}

/* Blurred background fill */
.detail-left-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(28px) brightness(0.35) saturate(1.2);
  transform: scale(1.1);
}

.detail-img-after {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  padding: 20px;
  box-sizing: border-box;
}
.detail-img-after img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 10px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5), 0 2px 8px rgba(0,0,0,0.3);
}
.detail-img-label {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #fff;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  padding: 3px 8px;
}
.detail-img-label-after {
  color: var(--yellow);
  border-color: rgba(245,200,0,0.3);
  background: rgba(0,0,0,0.55);
}

/* Right: info panel */
.detail-right {
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 24px 20px;
  gap: 0;
}
.detail-right-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.3px;
  line-height: 1.3;
  padding-right: 28px;
}
.detail-right-date {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}
.detail-divider-line {
  height: 1px;
  background: var(--border);
  margin: 18px 0;
}
.detail-info-block { margin-bottom: 4px; }
.detail-info-block-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.detail-info-block-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  font-family: inherit;
  letter-spacing: -0.2px;
  font-variant-numeric: normal;
}
.detail-scene-tags {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.scene-tag {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.scene-tag-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  line-height: 1.2;
}
.scene-tag-value {
  font-size: 13px;
  font-weight: 400;
  color: var(--text);
  line-height: 1.5;
  font-family: inherit;
  letter-spacing: -0.1px;
}
.detail-right-actions {
  margin-top: auto;
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.status-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 99px; font-size: 11px; font-weight: 700; }
.status-done { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.status-failed { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* ─── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .app-layout { height: auto; overflow: visible; min-height: 100vh; }
  .app-inner { grid-template-columns: 1fr; align-items: stretch; height: auto; }
  .app-sidebar { position: static; height: auto; overflow: visible; border-right: none; border-bottom: 1.5px solid var(--border); max-width: 100vw; }
  .sidebar-body { overflow-y: visible; overflow-x: hidden; flex: none; }
  .app-canvas { display: none; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .hero { padding: 32px 0 48px; }
  .hero-layout { grid-template-columns: 1fr; gap: 32px; }
  .how-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); max-width: 680px; }
  .detail-layout { grid-template-columns: 1fr; height: auto; max-height: 92vh; overflow-y: auto; }
  .detail-left { align-self: auto; min-height: 220px; max-height: 55vw; }
  .detail-img-after { min-height: 0; width: 100%; height: 100%; }
  .detail-img-after img { width: 100%; height: 100%; object-fit: contain; }
  .detail-right { border-left: none; border-top: 1px solid var(--border); padding: 18px 16px; }
  .detail-right-actions { padding-top: 14px; }
}
@media (max-width: 640px) {
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-left { display: none; }
  .auth-right { padding: 24px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .options-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
}
/* ─── Hamburger & Mobile Menu ──────────────────────────────────────────────── */
.navbar-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-xs);
}
.navbar-hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
  transform-origin: center;
}
.navbar-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar-hamburger.open span:nth-child(2) { opacity: 0; }
.navbar-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg);
  z-index: 999;
  padding: 8px 0;
  border-top: 1px solid var(--border);
  overflow-y: auto;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}
.mobile-menu.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.mobile-menu-item {
  display: block;
  padding: 16px 24px;
  font-size: 17px;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  transition: background 0.1s;
}
.mobile-menu-item:hover { background: var(--bg-soft); }
.mobile-menu-cta {
  margin: 16px 24px 8px;
  border: none;
  text-align: center;
  background: var(--yellow);
  color: var(--black);
  border-radius: var(--radius-sm);
  font-weight: 700;
  padding: 14px 24px;
}
.mobile-menu-cta:hover { background: var(--yellow-hover); }

@media (max-width: 600px) {
  .navbar-brand-text { display: none; }
  .navbar-actions { display: none; }
  .navbar-hamburger { display: flex; }
  .mobile-menu { display: flex; }
}

/* ─── App Download Section ────────────────────────────────────────────────── */
.app-section {
  background: var(--black);
  padding: 48px 0;
  overflow: hidden;
}
.app-section-inner {
  display: flex;
  flex-direction: column;
}
.app-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--yellow);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}
.app-title {
  font-size: 42px;
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 16px;
}
.app-desc {
  font-size: 16px;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  margin-bottom: 24px;
}
.app-features {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 40px;
  margin-bottom: 28px;
}
.app-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
}
.app-feature-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--yellow);
  flex-shrink: 0;
}
.app-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.app-store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  color: #000;
  border-radius: 14px;
  padding: 12px 22px;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.app-store-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.4);
  color: #000;
}
.app-store-icon { flex-shrink: 0; }
.app-store-text {
  display: flex;
  flex-direction: column;
}
.app-store-sub {
  font-size: 10px;
  font-weight: 500;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1;
}
.app-store-name {
  font-size: 18px;
  font-weight: 700;
  color: #000;
  line-height: 1.3;
}
.app-coming-note {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
}

/* Phone mockup */
.app-right {
  display: flex;
  justify-content: center;
  align-items: center;
}
.app-phone-wrap {
  position: relative;
  width: 280px;
}
.app-phone {
  width: 280px;
  background: #111;
  border-radius: 44px;
  border: 3px solid #2a2a2a;
  box-shadow: 0 32px 64px rgba(0,0,0,0.6), inset 0 0 0 1px rgba(255,255,255,0.05);
  overflow: hidden;
  padding: 20px 14px 28px;
  position: relative;
}
.app-phone-notch {
  width: 80px;
  height: 24px;
  background: #000;
  border-radius: 0 0 18px 18px;
  margin: 0 auto 16px;
}
.app-phone-screen {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.app-phone-compare {
  display: flex;
  align-items: center;
  gap: 6px;
}
.app-phone-img-wrap {
  flex: 1;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 1;
  background: #222;
}
.app-phone-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.app-phone-img-label {
  position: absolute;
  bottom: 5px;
  left: 5px;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  color: #fff;
}
.app-phone-img-label.ai { background: var(--yellow); color: #000; }
.app-phone-img-label.orig { background: rgba(0,0,0,0.6); }
.app-phone-arrow {
  font-size: 16px;
  color: var(--yellow);
  font-weight: 700;
  flex-shrink: 0;
}
.app-phone-btn {
  background: var(--yellow);
  color: #000;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  border-radius: 10px;
  padding: 11px;
  letter-spacing: -0.2px;
}
/* Floating badge */
.app-phone-badge {
  position: absolute;
  bottom: -16px;
  right: -24px;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 14px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  white-space: nowrap;
}
.app-phone-badge-icon {
  font-size: 20px;
  line-height: 1;
}
.app-phone-badge-title {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}
.app-phone-badge-sub {
  font-size: 11px;
  color: rgba(255,255,255,0.45);
}

@media (max-width: 700px) {
  .app-title { font-size: 28px; }
  .app-features { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .app-section { padding: 40px 0; }
  .app-title { font-size: 24px; }
  .app-desc { font-size: 15px; }
}

/* ─── Upgrade Banner ──────────────────────────────────────────────────────── */
.upgrade-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--black);
  color: #fff;
  padding: 14px 24px;
  border-bottom: none;
  flex-wrap: wrap;
}
.upgrade-banner-left { flex: 1; min-width: 180px; }
.upgrade-banner-title { font-size: 14px; font-weight: 700; color: #fff; }
.upgrade-banner-sub { font-size: 12px; color: rgba(255,255,255,0.6); margin-top: 2px; }
.upgrade-banner-price { font-size: 20px; font-weight: 800; color: var(--yellow); white-space: nowrap; }
.upgrade-banner-price span { font-size: 13px; font-weight: 400; color: rgba(255,255,255,0.5); }

/* ─── Inner pages (History, Settings, …) ─────────────────────────────────── */
.inner-page { background: var(--bg-soft); min-height: calc(100vh - 60px); }
.inner-header {
  background: var(--bg);
  border-bottom: 1.5px solid var(--border);
  padding: 28px 0;
}
.inner-header h1 { font-size: 22px; font-weight: 800; letter-spacing: -0.5px; color: var(--black); }
.inner-header p { font-size: 13px; color: var(--text-muted); margin-top: 2px; }

.inner-body {
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 32px 0 48px;
}

.inner-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.inner-card-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.inner-card-fields {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 16px;
}

/* Settings two-column layout */
.settings-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
  padding: 32px 0 48px;
  align-items: start;
}
.settings-left, .settings-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Account summary */
.account-summary {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 0 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
  gap: 6px;
}
.account-email {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.account-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.account-stat {
  background: var(--bg-soft);
  padding: 14px 16px;
}
.account-stat-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--black);
  line-height: 1;
}
.account-stat-label {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Plan features list */
.plan-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.plan-features-item {
  font-size: 13px;
  color: var(--text-2);
  display: flex;
  align-items: center;
  gap: 8px;
}
.plan-features-item::before { content: none; }

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

/* Subscription */
.plan-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.plan-free { background: var(--surface2); color: var(--text-2); border: 1px solid var(--border); }
.plan-premium { background: var(--yellow); color: var(--black); }

.sub-current {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.sub-current-detail { font-size: 13px; color: var(--text-muted); }

.sub-upgrade-clean {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0 0;
  border-top: 1px solid var(--border);
}
.sub-upgrade-clean-title { font-size: 14px; font-weight: 700; color: var(--black); }
.sub-upgrade-clean-desc { font-size: 12px; color: var(--text-muted); margin-top: 3px; }
.sub-upgrade-clean-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.sub-upgrade-clean-price { font-size: 18px; font-weight: 800; color: var(--black); white-space: nowrap; }
.sub-upgrade-clean-price span { font-size: 12px; font-weight: 400; color: var(--text-muted); }

.sub-premium-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 16px 0;
}
.sub-premium-item {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}
.sub-premium-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); margin-bottom: 6px; }
.sub-premium-value { font-size: 15px; font-weight: 700; color: var(--black); }

.sub-cancelled-note {
  font-size: 13px;
  color: var(--text-2);
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 12px 14px;
  margin-bottom: 12px;
}
.sub-cancel-row { margin-top: 4px; }
.sub-cancel-link {
  font-size: 13px;
  color: var(--text-muted);
  padding: 6px 0;
  border: none;
  background: none;
  text-decoration: underline;
  cursor: pointer;
}
.sub-cancel-link:hover { color: var(--error); background: none; border: none; }

/* ─── Coming Soon ─────────────────────────────────────────────────────────── */
.coming-soon {
  padding: 96px 0;
  background: var(--black);
}
.coming-soon-top {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 900px) {
  .coming-soon-top { grid-template-columns: 1fr; gap: 48px; }
}

/* Left column */
.coming-soon-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--yellow);
  margin-bottom: 18px;
}
.coming-soon-left h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  letter-spacing: -1.2px;
  color: #fff;
  line-height: 1.08;
  margin-bottom: 16px;
}
.coming-soon-left > p {
  font-size: 15px;
  color: #666;
  line-height: 1.7;
  margin-bottom: 40px;
}

/* iOS app block */
.coming-soon-app-block {
  border-top: 1px solid #1e1d1b;
  padding-top: 28px;
}
.coming-soon-app-title {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.3px;
  margin-bottom: 8px;
}
.coming-soon-app-sub {
  font-size: 13px;
  color: #555;
  line-height: 1.65;
  margin-bottom: 16px;
}
.coming-soon-app-pill {
  display: inline-block;
  border: 1px solid #2a2825;
  color: #555;
  font-size: 12px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 8px;
  letter-spacing: 0.01em;
}

/* Right column — feature list */
.coming-soon-right {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.coming-soon-item {
  padding: 24px 0;
  border-bottom: 1px solid #1a1917;
}
.coming-soon-item:first-child { border-top: 1px solid #1a1917; }
.coming-soon-item-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.coming-soon-item-title {
  font-size: 15px;
  font-weight: 700;
  color: #e8e6e0;
  letter-spacing: -0.2px;
}
.coming-soon-pill {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--yellow);
  background: rgba(245,200,0,0.1);
  border: 1px solid rgba(245,200,0,0.2);
  padding: 3px 8px;
  border-radius: 4px;
}
.coming-soon-item-desc {
  font-size: 13px;
  color: #555;
  line-height: 1.7;
  max-width: 520px;
}

/* ─── Pricing badge ───────────────────────────────────────────────────────── */
.pricing-badge {
  display: inline-block;
  background: var(--yellow);
  color: var(--black);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 4px 10px;
  border-radius: 99px;
  margin-bottom: 12px;
}

/* ─── Results section ────────────────────────────────────────────────────── */
.results-section {
  padding: 96px 0 112px;
  background: var(--bg-soft);
}
.results-header {
  text-align: center;
  margin-bottom: 48px;
}
.results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.result-card {
  border-radius: 20px;
  overflow: hidden;
  border: 1.5px solid var(--border);
  background: var(--bg);
}
.result-card-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-top: 1px solid var(--border);
}
.result-category-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--yellow);
  background: rgba(245,200,0,0.08);
  border: 1px solid rgba(245,200,0,0.2);
  border-radius: 100px;
  padding: 4px 12px;
  white-space: nowrap;
}
.result-prompt-text {
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
}

/* Shared slider styles */
.showcase-slider {
  position: relative;
  overflow: hidden;
  cursor: col-resize;
  user-select: none;
  aspect-ratio: 1;
}
.showcase-after {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.showcase-before-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  width: 50%;
}
.showcase-before {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-width: 100%;
}
.showcase-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10;
  pointer-events: none;
}
.showcase-line {
  flex: 1;
  width: 2px;
  background: rgba(255,255,255,0.8);
}
.showcase-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0f0e0c;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  flex-shrink: 0;
}
.showcase-label {
  position: absolute;
  bottom: 14px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  padding: 5px 12px;
  border-radius: 100px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 5;
  pointer-events: none;
}
.showcase-label-before {
  left: 14px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.12);
}
.showcase-label-after {
  right: 14px;
  background: rgba(245,200,0,0.92);
  color: #0c0b09;
}

@media (max-width: 700px) {
  .results-grid { grid-template-columns: 1fr; }
}

/* ─── Testimonials ────────────────────────────────────────────────────────── */
.testimonials {
  padding: 80px 0;
  background: var(--bg-soft);
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 860px) {
  .testimonials-grid { grid-template-columns: 1fr; }
}
.testimonial-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.testimonial-stars { color: var(--yellow); font-size: 15px; letter-spacing: 2px; }
.testimonial-text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-2);
  flex: 1;
}
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--black);
  color: var(--yellow);
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.testimonial-name { font-size: 13px; font-weight: 700; color: var(--black); }
.testimonial-role { font-size: 12px; color: var(--text-muted); margin-top: 1px; }

/* ─── FAQ ─────────────────────────────────────────────────────────────────── */
.faq {
  padding: 80px 0;
  background: var(--bg);
}
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 700px) {
  .faq-grid { grid-template-columns: 1fr; }
}
.faq-item {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.faq-q {
  font-size: 14px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 10px;
  line-height: 1.4;
}
.faq-a {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.7;
}

/* ─── Contact section ─────────────────────────────────────────────────────── */
.contact-section {
  padding: 80px 0;
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
}
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 760px) {
  .contact-inner { grid-template-columns: 1fr; gap: 32px; }
}
.contact-left h2 {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.8px;
  color: var(--black);
  margin-bottom: 12px;
}
.contact-left p {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.7;
}
.contact-detail {
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-muted);
}
.contact-form { display: flex; flex-direction: column; gap: 14px; }
.contact-form .btn-primary {
  margin-top: 4px;
}



/* Use cases hub (SEO internal-linking section) */
.usecases-hub {
  padding: 80px 0;
  border-top: 1px solid #181614;
  background: #0a0908;
}
.usecases-head { text-align: center; margin-bottom: 40px; }
.usecases-hub .section-title { color: #f5f3ef; }
.home-blog .section-title { color: #f5f3ef; }
.usecases-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 1180px;
  margin: 0 auto;
}
.usecase-tile {
  background: #0f0e0c;
  border: 1px solid #181614;
  border-radius: 14px;
  padding: 22px 20px;
  display: flex; flex-direction: column; gap: 6px;
  text-decoration: none; color: inherit;
  transition: border-color .2s;
}
.usecase-tile:hover { border-color: #f5c800; }
.usecase-cat {
  font-size: 10px; font-weight: 900; letter-spacing: .1em;
  text-transform: uppercase; color: #f5c800; margin-bottom: 2px;
}
.usecase-tile strong { font-size: 16px; color: #f5f3ef; }
.usecase-tile p { font-size: 13px; color: #a5a19c; margin: 2px 0 0; line-height: 1.5; }

.usecases-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 1180px;
  margin: 36px auto 0;
}
.usecases-col {
  background: #0f0e0c;
  border: 1px solid #181614;
  border-radius: 14px;
  padding: 24px 26px;
}
.usecases-col-title {
  font-size: 11px; font-weight: 900; letter-spacing: .1em;
  text-transform: uppercase; color: #a5a19c; margin-bottom: 14px;
}
.usecases-links { display: flex; flex-direction: column; gap: 10px; }
.usecases-links a {
  color: #f5f3ef; font-size: 15px; text-decoration: none;
  padding: 4px 0; transition: color .15s;
}
.usecases-links a:hover { color: #f5c800; }

@media (max-width: 960px) {
  .usecases-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .usecases-hub { padding: 56px 0; }
  .usecases-split { grid-template-columns: 1fr; }
}

/* Homepage blog feed */
.home-blog {
  padding: 80px 0;
  border-top: 1px solid #181614;
  background: #0a0908;
}
.home-blog-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  max-width: 1180px; margin: 0 auto 36px; gap: 20px;
}
.home-blog-head .section-title, .home-blog-head .section-sub { text-align: left; }
.home-blog-all {
  color: #f5c800; font-weight: 700; font-size: 15px;
  text-decoration: none; white-space: nowrap;
}
.home-blog-all:hover { text-decoration: underline; }
.home-blog-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; max-width: 1180px; margin: 0 auto;
}
.home-blog-empty {
  grid-column: 1/-1; text-align: center;
  color: #6a6764; padding: 30px; font-size: 14px;
}
.home-blog-card {
  background: #0f0e0c; border: 1px solid #181614; border-radius: 14px;
  overflow: hidden; text-decoration: none; color: inherit;
  display: flex; flex-direction: column;
  transition: border-color .2s;
}
.home-blog-card:hover { border-color: #f5c800; }
.home-blog-card img, .home-blog-card-ph {
  width: 100%; aspect-ratio: 16/9; object-fit: cover;
  background: #181614; display: block;
}
.home-blog-card-body { padding: 20px 22px; }
.home-blog-card-meta {
  font-size: 11px; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; color: #f5c800;
  display: flex; gap: 8px; margin-bottom: 10px;
}
.home-blog-card-meta span:not(:first-child) { color: #6a6764; }
.home-blog-card h3 {
  font-size: 17px; font-weight: 800; color: #f5f3ef;
  margin: 0 0 8px; line-height: 1.35;
}
.home-blog-card p {
  font-size: 14px; color: #a5a19c; margin: 0; line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
@media (max-width: 960px) { .home-blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .home-blog { padding: 56px 0; }
  .home-blog-head { flex-direction: column; align-items: flex-start; }
  .home-blog-grid { grid-template-columns: 1fr; }
}
