:root {
  --ink: #14120f;
  --muted: #5b5248;
  --accent: #ff6b3d;
  --accent-2: #1f7a8c;
  --accent-3: #f3b33d;
  --surface: #fff8f1;
  --surface-2: #f3eee6;
  --line: rgba(20, 18, 15, 0.12);
  --shadow: 0 40px 70px rgba(20, 18, 15, 0.18);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --font-display: "Fraunces", "Times New Roman", serif;
  --font-body: "Manrope", "Arial", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: linear-gradient(135deg, #fff2df 0%, #f4f0e7 45%, #e7f7f1 100%);
  min-height: 100vh;
  line-height: 1.6;
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(0px);
  opacity: 0.45;
}

body::before {
  top: -120px;
  right: -120px;
  background: radial-gradient(circle, rgba(255, 107, 61, 0.7), rgba(255, 107, 61, 0));
}

body::after {
  bottom: -160px;
  left: -140px;
  background: radial-gradient(circle, rgba(31, 122, 140, 0.5), rgba(31, 122, 140, 0));
}

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

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
  background: rgba(255, 248, 241, 0.8);
  border-bottom: 1px solid rgba(20, 18, 15, 0.05);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.logo img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 24px;
  font-weight: 500;
  color: var(--muted);
}

.nav-links a {
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.25s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.user-menu {
  position: relative;
}

.user-menu-toggle {
  gap: 6px;
}

.user-menu-caret {
  font-size: 0.8rem;
}

.user-menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 180px;
  padding: 8px;
  display: none;
  grid-template-columns: 1fr;
  gap: 6px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(20, 18, 15, 0.08);
  box-shadow: 0 20px 40px rgba(20, 18, 15, 0.18);
}

.user-menu.open .user-menu-panel {
  display: grid;
}

.user-menu-item {
  border: none;
  background: transparent;
  border-radius: 12px;
  padding: 10px 12px;
  font-family: var(--font-body);
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  color: var(--ink);
}

.user-menu-item:hover {
  background: rgba(20, 18, 15, 0.06);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  color: #fff;
  box-shadow: 0 18px 30px rgba(255, 107, 61, 0.3);
}

.button.primary:hover {
  transform: translateY(-1px);
}

.button.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
  transform: none;
}

.button.ghost {
  background: rgba(255, 255, 255, 0.6);
  border-color: var(--line);
  color: var(--ink);
}

.button.danger {
  border-color: rgba(244, 67, 54, 0.5);
  color: #b71c1c;
}

.button.danger:hover {
  background: rgba(244, 67, 54, 0.08);
}

.button.small {
  padding: 8px 16px;
  font-size: 0.95rem;
}

.button.large {
  padding: 14px 28px;
  font-size: 1rem;
}

.button.full {
  width: 100%;
}

.hero {
  padding: 80px 0 70px;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-2);
  margin-bottom: 18px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 3vw, 3.4rem);
  line-height: 1.1;
  margin-bottom: 18px;
}

.lede {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 28px;
}

.hero-benefits {
  list-style: none;
  display: grid;
  gap: 10px;
  margin: 0 0 24px;
  color: var(--ink);
}

.hero-benefits li::before {
  content: "•";
  color: var(--accent);
  margin-right: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.01em;
  background: rgba(243, 179, 61, 0.22);
  color: #6f4300;
  vertical-align: middle;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
}

.hero-note {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 24px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.metric-value {
  display: block;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.metric-label {
  font-size: 0.85rem;
  color: var(--muted);
}

.metrics-note {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--muted);
}

.hero-visual {
  display: grid;
  gap: 22px;
}

.visual-card {
  padding: 20px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow);
  border: 1px solid rgba(20, 18, 15, 0.08);
  position: relative;
  overflow: hidden;
}

.visual-card.original {
  transform: rotate(-2deg);
}

.visual-card.pro {
  transform: rotate(2deg);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 246, 241, 0.98));
  border-color: rgba(20, 18, 15, 0.1);
}

.card-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(20, 18, 15, 0.08);
  font-size: 0.8rem;
  font-weight: 600;
}

.card-media {
  aspect-ratio: 1 / 1;
  width: clamp(180px, 45vw, 260px);
  margin: 18px auto;
  border-radius: 18px;
  position: relative;
  overflow: hidden;
  padding: 0;
  background: transparent;
  border: 1px solid rgba(20, 18, 15, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.visual-card.pro .card-media {
  background: transparent;
}

.blob {
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 34% 66% 70% 30% / 30% 40% 60% 70%;
  background: rgba(20, 18, 15, 0.15);
  top: 40px;
  left: 40px;
  animation: float 6s ease-in-out infinite;
}

.noise {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    rgba(0, 0, 0, 0.05) 0,
    rgba(0, 0, 0, 0.05) 4px,
    rgba(255, 255, 255, 0.08) 4px,
    rgba(255, 255, 255, 0.08) 8px
  );
  opacity: 0.4;
}

.shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0));
}

.halo {
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 2px solid rgba(31, 122, 140, 0.3);
  top: 20px;
  right: 40px;
}

.card-caption {
  color: var(--muted);
  font-size: 0.95rem;
}

.section-head {
  margin-bottom: 32px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 2.6vw, 2.6rem);
}

.section-cta {
  margin-top: 28px;
  display: flex;
  justify-content: flex-start;
}

.section-block {
  content-visibility: auto;
  contain-intrinsic-size: 1px 800px;
}

.social-proof {
  padding: 70px 0;
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.logo-pill {
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(20, 18, 15, 0.08);
  text-align: center;
  font-weight: 600;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.testimonial-marquee {
  position: relative;
  overflow: hidden;
  padding: 12px 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.testimonial-track {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  white-space: nowrap;
  animation: marquee var(--duration, 64s) linear infinite;
  animation-delay: var(--delay, 0s);
}

.testimonial-track + .testimonial-track {
  position: absolute;
  top: 0;
  left: 0;
}

.testimonial-bubble {
  display: inline-flex;
  align-items: center;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(20, 18, 15, 0.08);
  box-shadow: 0 10px 24px rgba(20, 18, 15, 0.12);
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

@keyframes marquee {
  0% {
    transform: translateX(100%);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateX(-120%);
    opacity: 0;
  }
}

.proof {
  padding: 70px 0;
}

.benefits-list {
  list-style: none;
  display: grid;
  gap: 12px;
  margin: 0 0 28px;
  color: var(--ink);
}

.benefits-list li::before {
  content: "•";
  color: var(--accent);
  margin-right: 10px;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.proof-card {
  background: rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid rgba(20, 18, 15, 0.08);
  box-shadow: 0 20px 40px rgba(20, 18, 15, 0.12);
}

.proof-card h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.proof-card p {
  color: var(--muted);
}

.steps {
  padding: 70px 0;
}

.segments {
  padding: 70px 0;
}

.segment-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.segment-card {
  background: rgba(255, 255, 255, 0.85);
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid rgba(20, 18, 15, 0.08);
  box-shadow: 0 18px 36px rgba(20, 18, 15, 0.12);
}

.segment-card h3 {
  margin-bottom: 10px;
}

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

.step {
  background: rgba(255, 255, 255, 0.85);
  border-radius: var(--radius-md);
  padding: 26px;
  border: 1px solid rgba(20, 18, 15, 0.08);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(31, 122, 140, 0.15);
  color: var(--accent-2);
  font-weight: 700;
  margin-bottom: 16px;
}

.step-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: rgba(31, 122, 140, 0.12);
  display: grid;
  place-items: center;
  color: var(--accent-2);
  margin-bottom: 16px;
}

.step-icon svg {
  width: 26px;
  height: 26px;
}

.signal {
  padding: 70px 0;
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-items: center;
}

.signal-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 2.6vw, 2.6rem);
  margin-bottom: 16px;
}

.signal-copy p {
  color: var(--muted);
  margin-bottom: 16px;
}

.signal-list {
  list-style: none;
  display: grid;
  gap: 10px;
  color: var(--ink);
}

.signal-list li::before {
  content: "-";
  color: var(--accent);
  margin-right: 8px;
}

.signal-card {
  background: rgba(20, 18, 15, 0.9);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 28px;
  display: grid;
  gap: 20px;
  box-shadow: 0 30px 60px rgba(20, 18, 15, 0.35);
}

.signal-meter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 14px;
}

.signal-meter strong {
  font-size: 1.4rem;
}

.signal-note {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  font-style: italic;
}

.faq {
  padding: 70px 0;
}

.faq-grid {
  column-count: 2;
  column-gap: 18px;
}

.faq-item {
  display: block;
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  border: 1px solid rgba(20, 18, 15, 0.08);
  box-shadow: 0 16px 30px rgba(20, 18, 15, 0.1);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
  break-inside: avoid;
  margin-bottom: 18px;
}

.faq-item:hover {
  border-color: rgba(20, 18, 15, 0.2);
}

.faq-item.is-open {
  border-color: rgba(20, 18, 15, 0.24);
  box-shadow: 0 22px 36px rgba(20, 18, 15, 0.16);
  transform: translateY(-2px);
}

.faq-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: transparent;
  border: none;
  padding: 0;
  font: inherit;
  text-align: left;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
}

.faq-icon {
  position: relative;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 18px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.2s ease;
}

.faq-icon::after {
  transform: rotate(90deg);
}

.faq-item.is-open .faq-icon::after {
  transform: scaleY(0);
}

.faq-panel {
  margin-top: 12px;
  color: var(--muted);
}

.legal-section {
  padding: 70px 0 90px;
}

.legal-card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid rgba(20, 18, 15, 0.08);
  box-shadow: var(--shadow);
}

.legal-card h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 2.8vw, 3rem);
  margin-bottom: 18px;
}

.legal-card h2 {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.8vw, 1.6rem);
  margin: 28px 0 12px;
}

.legal-card p {
  margin-bottom: 10px;
}

.legal-card p:not(.eyebrow) {
  color: var(--muted);
}

.legal-card ul {
  margin: 0 0 12px 22px;
  color: var(--muted);
  display: grid;
  gap: 6px;
}

.legal-card li::marker {
  color: var(--accent);
}

.auth {
  padding: 80px 0 90px;
}

.auth-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  align-items: center;
}

.auth-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 2.4vw, 2.5rem);
  margin-bottom: 12px;
}

.auth-copy p {
  color: var(--muted);
  margin-bottom: 16px;
}

.auth-status {
  margin-top: 18px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(31, 122, 140, 0.12);
}

.auth-card {
  background: #fff;
  border-radius: 28px;
  padding: 32px;
  border: 1px solid rgba(20, 18, 15, 0.12);
  box-shadow: 0 24px 50px rgba(20, 18, 15, 0.12);
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.auth-helper {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(20, 18, 15, 0.04);
  border: 1px solid rgba(20, 18, 15, 0.12);
  margin-bottom: 20px;
  color: var(--ink);
}

.auth-helper p {
  margin: 0;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.45;
}

.tab {
  flex: 1;
  padding: 12px 14px;
  border-radius: 999px;
  border: 1px solid rgba(20, 18, 15, 0.16);
  background: #fff;
  font-weight: 700;
  cursor: pointer;
}

.tab.active {
  background: #2b2a28;
  color: #fff;
  border-color: #2b2a28;
}

.auth-message {
  min-height: 0;
  margin-bottom: 0;
  color: var(--accent);
  font-weight: 600;
}

.auth-message:empty {
  display: none;
}

.auth-message:not(:empty) {
  margin-bottom: 12px;
}

.auth-message[data-state="success"] {
  color: var(--accent-2);
}

.auth-message[data-state="error"] {
  color: #d1482e;
}

.account-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.account-panel {
  max-width: 720px;
  margin: 0 auto;
}

.account-identity {
  max-width: 720px;
  margin: 0 auto 20px;
  padding: 16px 20px;
  border-radius: 18px;
  border: 1px solid rgba(20, 18, 15, 0.12);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.account-email {
  margin: 6px 0 0;
  font-weight: 700;
  font-size: 1.05rem;
}

.account-tabs {
  max-width: 720px;
  margin: 0 auto 20px;
}

.account-header h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
}

.account-form {
  display: grid;
  gap: 14px;
}

.account-form label {
  display: grid;
  gap: 6px;
  font-weight: 600;
}

.account-form input {
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: 12px 14px;
  font-size: 1rem;
  font-family: var(--font-body);
}

.account-form input:focus {
  outline: 2px solid rgba(255, 107, 61, 0.3);
  border-color: rgba(255, 107, 61, 0.6);
}

.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

.account-message {
  min-height: 24px;
  font-weight: 600;
  color: var(--accent-2);
}

.account-message[data-state="error"] {
  color: #d1482e;
}

.account-message[data-state="success"] {
  color: var(--accent-2);
}

.auth-form {
  display: none;
  gap: 14px;
}

.auth-form.active {
  display: grid;
}

.auth-form label {
  display: grid;
  gap: 6px;
  font-weight: 700;
  color: var(--ink);
}

.auth-form input {
  border-radius: 16px;
  border: 1px solid rgba(20, 18, 15, 0.16);
  padding: 14px 16px;
  font-size: 1rem;
  font-family: var(--font-body);
  min-height: 52px;
  background: #fff;
}

.auth-form input:focus {
  outline: 2px solid rgba(20, 18, 15, 0.1);
  border-color: rgba(20, 18, 15, 0.4);
}

.auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.auth-actions .button.ghost {
  background: #fff;
  border-color: rgba(20, 18, 15, 0.16);
  box-shadow: none;
  font-weight: 700;
}

.form-note {
  font-size: 0.85rem;
  color: var(--muted);
}

[hidden] {
  display: none !important;
}

.site-footer {
  padding: 40px 0 60px;
  border-top: 1px solid rgba(20, 18, 15, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  color: var(--muted);
}

.footer-grid h3 {
  color: var(--ink);
  margin-bottom: 8px;
}

.footer-label {
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.app-shell {
  padding: 80px 0 100px;
}

.app-header {
  background: rgba(255, 248, 241, 0.92);
}

.app-panel {
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid rgba(20, 18, 15, 0.08);
  box-shadow: var(--shadow);
}

.app-panel h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 2.8vw, 2.8rem);
  margin: 12px 0 16px;
}

.credit-summary {
  margin: 0 0 20px;
  font-weight: 600;
  color: var(--accent-2);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.credit-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  background: rgba(32, 124, 74, 0.14);
  color: #14532d;
}

.credit-badge.is-warning {
  background: rgba(245, 158, 11, 0.18);
  color: #92400e;
}

.credit-badge.is-danger {
  background: rgba(239, 68, 68, 0.16);
  color: #991b1b;
}

.upload-card {
  margin-top: 24px;
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 2px dashed rgba(255, 107, 61, 0.35);
  background: linear-gradient(135deg, rgba(255, 248, 241, 0.9), rgba(255, 255, 255, 0.95));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.upload-card.is-busy {
  opacity: 0.75;
}

.upload-card h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  margin: 0 0 8px;
}

.upload-card p {
  margin: 0;
  color: var(--muted);
}

.upload-copy {
  max-width: 520px;
}

.upload-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.upload-cost {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.upload-previews {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.upload-preview-item {
  position: relative;
  display: inline-flex;
}

.upload-preview {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid rgba(15, 23, 42, 0.15);
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.12);
  background: #fff;
}

.upload-preview-remove {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid rgba(15, 23, 42, 0.2);
  background: #fff;
  color: #111827;
  font-size: 16px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 12px rgba(15, 23, 42, 0.14);
}

.upload-preview-remove:hover {
  background: #111827;
  color: #fff;
}

.upload-input {
  display: none;
}

.credit-topup {
  margin-top: 24px;
}

.credit-topup-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}

.credit-topup-note {
  margin: 6px 0 0;
  color: var(--muted);
}

.credit-purchase-message {
  min-height: 1.4em;
  font-weight: 600;
  color: var(--muted);
  text-align: right;
}

.credit-purchase-message[data-state="success"] {
  color: #166534;
}

.credit-purchase-message[data-state="error"] {
  color: #b91c1c;
}

.credit-packages {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.credit-package {
  border-radius: var(--radius-lg);
  padding: 20px;
  border: 1px solid rgba(20, 18, 15, 0.08);
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow);
}

.credit-package h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin: 0;
}

.credit-package-credits {
  margin: 0;
  font-weight: 700;
  color: var(--accent-2);
}

.credit-package-bonus {
  margin: 0;
  font-weight: 600;
  color: #14532d;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.credit-package-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  background: rgba(22, 101, 52, 0.12);
  color: #166534;
  letter-spacing: 0.01em;
}

.credit-package-bonus-text {
  font-size: 0.95rem;
}

.credit-package-images {
  margin: 0;
  color: var(--muted);
}

.credit-package.is-disabled {
  opacity: 0.6;
}

.credit-package .button {
  margin-top: auto;
  align-self: flex-start;
}

.credit-history-footer {
  margin-top: 16px;
  display: flex;
  justify-content: flex-end;
}

.credit-history-link {
  font-weight: 600;
  color: var(--accent-2);
  text-decoration: none;
}

.credit-history-link:hover {
  text-decoration: underline;
}

.credit-history-message {
  min-height: 1.4em;
  font-weight: 600;
  color: var(--muted);
  text-align: left;
}

.credit-history-message[data-state='error'] {
  color: #b91c1c;
}

.credit-history-message[data-state='success'] {
  color: #166534;
}

.credit-history-list {
  margin-top: 16px;
  display: grid;
  gap: 12px;
}

.credit-history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(20, 18, 15, 0.12);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.credit-history-meta {
  display: grid;
  gap: 4px;
}

.credit-history-meta strong {
  font-size: 1.05rem;
}

.credit-history-meta span {
  color: var(--muted);
}

.credit-history-date {
  font-size: 0.9rem;
}

.credit-history-state {
  font-weight: 700;
  color: var(--accent-2);
}

.credit-history-item.is-completed .credit-history-state {
  color: #166534;
}

.credit-history-item.is-pending .credit-history-state {
  color: #b45309;
}

.credit-history-item.is-canceled .credit-history-state,
.credit-history-item.is-failed .credit-history-state {
  color: #b91c1c;
}

.credit-history-empty {
  margin-top: 16px;
  color: var(--muted);
}

.credit-dialog {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 50;
}

.credit-dialog.is-open {
  display: flex;
}

.credit-dialog-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 10, 6, 0.55);
}

.credit-dialog-card {
  position: relative;
  z-index: 1;
  background: #fff7f2;
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid rgba(20, 18, 15, 0.08);
  box-shadow: var(--shadow);
  max-width: 420px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.credit-dialog-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.6rem;
}

.credit-dialog-copy {
  margin: 0;
  color: var(--muted);
}

.is-modal-open {
  overflow: hidden;
}

.upload-hint {
  font-size: 0.85rem;
  color: var(--muted);
}

.upload-status {
  margin-top: 16px;
  font-weight: 600;
  color: var(--accent-2);
}

.upload-status[data-state='error'] {
  color: #b71c1c;
}

.app-status {
  margin-top: 20px;
  color: var(--accent-2);
  font-weight: 600;
}

.app-status[data-state='error'] {
  color: #b71c1c;
}

.gallery-panel {
  margin-top: 32px;
}

.gallery-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.gallery-panel h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.2vw, 2.2rem);
  margin: 8px 0 12px;
}

.gallery-subtitle {
  color: var(--muted);
  max-width: 520px;
}

.gallery-meta {
  font-weight: 600;
  color: var(--accent-2);
  margin-top: 24px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.gallery-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-md);
  border: 1px solid rgba(20, 18, 15, 0.1);
  overflow: hidden;
  box-shadow: 0 18px 36px rgba(20, 18, 15, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, opacity 0.25s ease;
}

.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 44px rgba(20, 18, 15, 0.12);
}

.gallery-card.is-processing {
  border-style: dashed;
  background: rgba(255, 248, 241, 0.78);
}

.gallery-card.is-removing {
  opacity: 0;
  transform: translateY(6px) scale(0.98);
  pointer-events: none;
}

.gallery-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--surface-2);
  overflow: hidden;
}

.gallery-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

.gallery-image.stylized {
  opacity: 0;
}

.gallery-card.has-stylized:hover .gallery-image.stylized {
  opacity: 1;
}

.gallery-card.has-stylized:hover .gallery-image.base {
  opacity: 0;
}

.gallery-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
  color: var(--muted);
  font-weight: 600;
  background: linear-gradient(135deg, #f9f3ea, #f0ebe3);
}

.gallery-badge {
  position: absolute;
  left: 16px;
  top: 16px;
  background: rgba(255, 107, 61, 0.92);
  color: #fff;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.gallery-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  font-size: 0.9rem;
  color: var(--muted);
  gap: 12px;
}

.gallery-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.gallery-meta-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.gallery-meta-row .button {
  white-space: nowrap;
}

.gallery-meta-row strong {
  color: var(--ink);
  font-weight: 600;
}

.gallery-empty {
  margin-top: 18px;
  color: var(--muted);
}

.gallery-empty[data-state='error'] {
  color: #b71c1c;
}

.gallery-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.gallery-page {
  font-weight: 600;
  color: var(--ink);
}

.gallery-pagination .button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

[data-animate] {
  opacity: 0;
  transform: translateY(12px);
  animation: reveal 0.8s ease forwards;
  animation-delay: var(--delay, 0s);
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@media (max-width: 980px) {
  .hero-grid,
  .proof-grid,
  .segment-grid,
  .steps-grid,
  .faq-grid,
  .auth-grid,
  .signal-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .faq-grid {
    column-count: 1;
  }

  .hero {
    padding-top: 60px;
  }

  .nav-links {
    display: none;
  }

  .app-header .nav {
    flex-wrap: wrap;
  }

  .app-header .nav-links {
    display: flex;
    width: 100%;
    justify-content: center;
    gap: 16px;
    order: 3;
  }

  .app-header .user-menu {
    order: 2;
    margin-left: auto;
  }

  .app-header .button {
    order: 2;
  }

  .gallery-header {
    flex-direction: column;
  }

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

  .upload-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .credit-topup-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .credit-purchase-message {
    text-align: left;
  }
}

@media (max-width: 640px) {
  .hero-metrics {
    grid-template-columns: 1fr;
  }

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

  .visual-card {
    transform: none;
  }

  .button {
    width: 100%;
  }

  .app-header .user-menu {
    width: 100%;
  }

  .app-header .user-menu-toggle {
    width: 100%;
    justify-content: space-between;
  }

  .app-header .user-menu-panel {
    left: 0;
    right: 0;
    min-width: 0;
  }

  .nav {
    flex-wrap: wrap;
  }

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

  .upload-actions {
    width: 100%;
  }

  .credit-history-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .credit-history-state {
    align-self: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-animate] {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .blob {
    animation: none;
  }

  .testimonial-track {
    animation: none;
    transform: none;
  }
}
