/* =================================================================
   ListBoost — design system
   ================================================================= */

:root {
  color-scheme: light;

  /* Surfaces */
  --bg: #f7f7fb;
  --bg-2: #f0f2f8;
  --panel: #ffffff;

  /* Text */
  --ink: #0c111e;
  --ink-soft: #1f2433;
  --muted: #5b6275;
  --soft: #97a0b3;

  /* Lines */
  --line: #e5e7ee;
  --line-strong: #d2d6e0;

  /* Brand */
  --indigo-50: #eef0ff;
  --indigo-100: #e0e3ff;
  --indigo-200: #c7cdff;
  --indigo-500: #4f46e5;
  --indigo-600: #4338ca;
  --indigo-700: #3730a3;

  /* Success accent (small dose) */
  --green-50: #ecfdf5;
  --green-100: #d1fae5;
  --green-500: #10b981;
  --green-700: #047857;

  /* Warning + danger */
  --amber-50: #fffaeb;
  --amber-200: #fde68a;
  --amber-700: #92400e;

  --red-50: #fef2f2;
  --red-200: #fecaca;
  --red-600: #dc2626;
  --red-700: #b91c1c;

  /* Spacing scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 32px;
  --space-8: 40px;
  --space-9: 56px;
  --space-10: 72px;

  /* Radii */
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* Shadows */
  --shadow-1: 0 1px 2px rgba(12, 17, 30, 0.05);
  --shadow-2: 0 6px 16px rgba(12, 17, 30, 0.06);
  --shadow-3: 0 14px 40px rgba(12, 17, 30, 0.08);
  --shadow-4: 0 28px 70px rgba(12, 17, 30, 0.12);
  --ring: 0 0 0 4px rgba(79, 70, 229, 0.18);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--bg);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button, select, input, textarea { font: inherit; color: inherit; }

button {
  min-height: 44px;
  border: 0;
  border-radius: var(--radius-sm);
  padding: 0 var(--space-4);
  cursor: pointer;
  font-weight: 700;
  letter-spacing: -0.005em;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease, color 140ms ease, box-shadow 140ms ease, opacity 140ms ease;
}

button:hover:not(:disabled) { transform: translateY(-1px); }
button:active:not(:disabled) { transform: translateY(0); }
button:disabled { cursor: not-allowed; opacity: 0.6; transform: none; }

button:focus-visible,
a:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--indigo-500);
  outline-offset: 2px;
}

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

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

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 8px 12px;
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
  font-weight: 700;
  transform: translateY(-200%);
  transition: transform 140ms ease;
  z-index: 50;
}
.skip-link:focus { transform: translateY(0); }

/* =================================================================
   Top nav
   ================================================================= */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 247, 251, 0.85);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(12, 17, 30, 0.06);
}

.nav-inner {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: var(--space-5);
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  flex: 0 0 auto;
}
.brand:hover { text-decoration: none; }

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 60%, #7c3aed 100%);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  box-shadow: 0 8px 18px rgba(79, 70, 229, 0.32);
}

.brand-text strong,
.brand-text small { display: block; line-height: 1.05; }
.brand-text strong { font-size: 1rem; letter-spacing: -0.01em; }
.brand-text small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  gap: var(--space-5);
  margin-left: var(--space-3);
  flex: 1 1 auto;
}
.nav-links a {
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.94rem;
}
.nav-links a:hover { color: var(--indigo-600); text-decoration: none; }

.nav-meta {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  justify-content: flex-end;
}

.status-pill {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  background: var(--green-50);
  color: var(--green-700);
  border: 1px solid var(--green-100);
  white-space: nowrap;
}
.status-pill.muted {
  background: #f3f5fa;
  color: var(--muted);
  border-color: var(--line);
}

/* =================================================================
   Shell
   ================================================================= */

.app-shell {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: var(--space-6) 0 var(--space-9);
  display: flex;
  flex-direction: column;
  gap: var(--space-9);
}

.eyebrow,
.section-kicker,
.panel-label {
  margin: 0 0 var(--space-2);
  color: var(--indigo-600);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: var(--ink);
  font-weight: 800;
}

h2 {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

h3 { margin: 0; font-size: 1.08rem; letter-spacing: -0.01em; font-weight: 800; }

.section-head {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  max-width: 60ch;
}

.section-head h2 {
  text-transform: none;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: -0.02em;
  font-weight: 800;
  color: var(--ink);
}

.section-sub {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

/* =================================================================
   Verify banner
   ================================================================= */

.verify-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border: 1px solid var(--amber-200);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  background: var(--amber-50);
  color: var(--amber-700);
  font-size: 0.95rem;
  font-weight: 600;
  box-shadow: var(--shadow-1);
}
.verify-banner button {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid #f4b740;
  border-radius: 8px;
  background: #fff;
  color: var(--amber-700);
  font-weight: 700;
}
.verify-banner button:hover { background: #fff2cd; }
.verify-banner.is-success {
  border-color: var(--green-100);
  background: var(--green-50);
  color: var(--green-700);
}

/* =================================================================
   Hero
   ================================================================= */

.hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-3);
  padding: clamp(28px, 5vw, 64px);
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
}
.hero-blob-1 {
  width: 520px;
  height: 520px;
  top: -180px;
  left: -160px;
  background: radial-gradient(circle, #c7d2fe 0%, transparent 70%);
}
.hero-blob-2 {
  width: 440px;
  height: 440px;
  bottom: -180px;
  right: -120px;
  background: radial-gradient(circle, #a7f3d0 0%, transparent 70%);
  opacity: 0.4;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr);
  gap: var(--space-8);
  align-items: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.hero-accent {
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 50%, #10b981 110%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  margin: 0;
  max-width: 60ch;
  color: var(--muted);
  font-size: clamp(1.04rem, 1.4vw, 1.18rem);
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-top: var(--space-1);
}

.cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 var(--space-6);
  border-radius: 12px;
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.005em;
  box-shadow: 0 14px 28px rgba(79, 70, 229, 0.28);
  border: 0;
}
.cta-primary:hover {
  background: linear-gradient(135deg, #4338ca 0%, #4f46e5 100%);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(79, 70, 229, 0.32);
}
.cta-block { width: 100%; }

.cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 var(--space-5);
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink-soft);
  font-weight: 700;
}
.cta-secondary:hover {
  border-color: var(--indigo-500);
  color: var(--indigo-600);
  text-decoration: none;
}

.trust-row {
  list-style: none;
  margin: var(--space-3) 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: var(--muted);
  font-size: 0.92rem;
}
.trust-row li { display: inline-flex; align-items: center; gap: 6px; }
.trust-row span { color: var(--green-500); font-weight: 800; }

.hero-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  background: linear-gradient(170deg, #0c111e 0%, #1e2235 100%);
  color: #fff;
  box-shadow: var(--shadow-4);
  overflow: hidden;
}
.hero-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(135deg, rgba(79,70,229,0.5), rgba(16,185,129,0.4));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  opacity: 0.7;
}

.hero-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.hero-card .panel-label { color: #b8b3ff; }

.hero-card-tag {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #d8dde8;
}

.hero-card-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0;
}
.hero-card-price strong {
  font-size: 2.6rem;
  line-height: 1;
  letter-spacing: -0.025em;
}
.hero-card-price span { color: #c2c8d6; font-weight: 600; }

.hero-card-meta { margin: 0; color: #c2c8d6; font-size: 0.94rem; }

.hero-card-list {
  list-style: none;
  margin: var(--space-2) 0 var(--space-2);
  padding: 0;
  display: grid;
  gap: 6px;
  color: #d8dde8;
  font-size: 0.94rem;
}
.hero-card-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-card-list span { color: #6ee7b7; font-weight: 800; }

.hero-card-fineprint {
  margin: var(--space-2) 0 0;
  color: #9aa1b3;
  font-size: 0.8rem;
}

/* =================================================================
   Benefits
   ================================================================= */

.benefits {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

.benefit-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}
.benefit-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-3);
  border-color: var(--indigo-100);
}

.benefit-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--indigo-50) 0%, var(--indigo-100) 100%);
  color: var(--indigo-600);
}

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

/* =================================================================
   Comparison (before / after)
   ================================================================= */

.example-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.comparison-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  border-radius: var(--radius-xl);
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-2);
  overflow: hidden;
}

.comparison-side {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-7);
}

.comparison-before {
  background: var(--bg-2);
  color: var(--muted);
}

.comparison-after {
  background: linear-gradient(165deg, #ffffff 0%, var(--indigo-50) 100%);
}

.comparison-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.comparison-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.comparison-before .comparison-tag {
  background: rgba(12, 17, 30, 0.06);
  color: var(--muted);
}

.comparison-after .comparison-tag {
  background: var(--indigo-50);
  color: var(--indigo-700);
  border: 1px solid var(--indigo-100);
}

.comparison-mood {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--soft);
}
.comparison-after .comparison-mood { color: var(--green-700); }

.comparison-title {
  margin: 6px 0 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.4;
  letter-spacing: -0.01em;
}
.comparison-before .comparison-title {
  color: var(--soft);
  font-weight: 700;
  font-style: italic;
}

.comparison-body {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.6;
}
.comparison-before .comparison-body {
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  background: rgba(12, 17, 30, 0.04);
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.comparison-issues {
  list-style: none;
  margin: var(--space-2) 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.92rem;
}
.comparison-issues li {
  position: relative;
  padding-left: 20px;
}
.comparison-issues li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--soft);
}

.comparison-tags {
  list-style: none;
  margin: var(--space-2) 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.comparison-tags li {
  border: 1px solid var(--indigo-100);
  background: var(--indigo-50);
  color: var(--indigo-700);
  font-size: 0.84rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 5px 10px;
}

.comparison-divider {
  display: grid;
  place-items: center;
  width: 56px;
  background: linear-gradient(180deg, transparent 0%, var(--line) 50%, transparent 100%);
  color: var(--indigo-600);
}

/* =================================================================
   Workspace
   ================================================================= */

.workspace {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  scroll-margin-top: 88px;
}

.workspace-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-6);
  max-width: none;
  flex-wrap: wrap;
}
.workspace-head > div { display: flex; flex-direction: column; gap: var(--space-2); max-width: 60ch; }

.workflow-bar {
  list-style: none;
  margin: 0;
  padding: 4px;
  display: grid;
  grid-template-columns: repeat(3, minmax(140px, 1fr));
  gap: 4px;
  border-radius: var(--radius-md);
  background: rgba(12, 17, 30, 0.05);
  border: 1px solid var(--line);
}
.workflow-bar li {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 10px;
  background: #fff;
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: var(--shadow-1);
}
.workflow-bar span {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 999px;
  background: var(--indigo-50);
  color: var(--indigo-700);
  font-size: 0.74rem;
  font-weight: 900;
}

.tool-grid {
  display: grid;
  grid-template-columns: minmax(340px, 0.78fr) minmax(0, 1.22fr);
  gap: var(--space-5);
  align-items: start;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow-1);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.panel:hover { box-shadow: var(--shadow-2); }

.side-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  min-width: 0;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--line);
}
.panel-header h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.005em;
  text-transform: none;
}
.section-kicker {
  margin-bottom: 4px;
  color: var(--soft);
}

/* Forms */

.input-form { display: flex; flex-direction: column; gap: var(--space-4); }

.field { display: flex; flex-direction: column; gap: 6px; }

label, .stacked-label {
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 700;
}

.field-help {
  color: var(--muted);
  font-size: 0.82rem;
  margin: -2px 0 4px;
}

.optional-tag {
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--bg-2);
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.form-help {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.6;
}
.form-help strong { color: var(--ink); }

.mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

select, input, textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--ink);
  background: #fff;
  outline: none;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}
select, input { min-height: 46px; padding: 0 14px; }
textarea { min-height: 200px; padding: 14px; line-height: 1.6; resize: vertical; }
.buyer-message-box { min-height: 116px; }

select:focus, input:focus, textarea:focus {
  border-color: var(--indigo-500);
  box-shadow: var(--ring);
}

::placeholder { color: var(--soft); }

.input-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: var(--bg-2);
}
.input-tab {
  min-height: 42px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  color: var(--muted);
  background: transparent;
  font-size: 0.94rem;
  font-weight: 700;
}
.input-tab:hover { color: var(--ink); }
.input-tab.is-active {
  color: var(--ink);
  background: #fff;
  box-shadow: var(--shadow-1);
}

.badge-new {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--indigo-50);
  color: var(--indigo-700);
  font-size: 0.66rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.actions { display: flex; gap: 10px; flex-wrap: wrap; }

button[type="submit"] {
  color: #fff;
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
  box-shadow: 0 14px 24px rgba(79, 70, 229, 0.26);
  font-size: 0.98rem;
}
button[type="submit"]:hover:not(:disabled) {
  background: linear-gradient(135deg, #4338ca 0%, #4f46e5 100%);
}

#generateButton, #photoGenerateButton { width: 100%; min-height: 50px; }

.secondary, .copy-button, .ghost-button {
  border: 1px solid var(--line-strong);
  color: var(--ink-soft);
  background: #fff;
  font-weight: 700;
}
.secondary:hover:not(:disabled),
.copy-button:hover:not(:disabled),
.ghost-button:hover:not(:disabled) {
  border-color: var(--indigo-500);
  color: var(--indigo-600);
  background: var(--indigo-50);
}

.copy-button { min-height: 36px; padding: 0 12px; border-radius: 8px; }
.ghost-button { min-height: 36px; padding: 0 12px; border-radius: 8px; font-size: 0.86rem; }

.form-note {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

/* Photo uploader */

.photo-uploader {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: var(--space-5);
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius-md);
  background: linear-gradient(165deg, #fff 0%, var(--bg-2) 100%);
  transition: border-color 140ms ease, background 140ms ease;
}
.photo-uploader:hover { border-color: var(--indigo-500); }
.photo-uploader.is-dragging {
  border-color: var(--indigo-500);
  background: var(--indigo-50);
}

.photo-uploader-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: space-between;
}
.photo-uploader-icon {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--indigo-50);
  color: var(--indigo-600);
  border: 1px solid var(--indigo-100);
}
.photo-uploader-copy { display: flex; flex-direction: column; gap: 2px; flex: 1 1 200px; }
.photo-uploader-copy strong { color: var(--ink); }
.photo-uploader-copy span { color: var(--muted); font-size: 0.86rem; }

.photo-previews {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 8px;
}
.photo-thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-1);
}
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.photo-thumb button {
  position: absolute;
  top: 6px;
  right: 6px;
  min-height: 28px;
  width: 28px;
  padding: 0;
  border-radius: 999px;
  background: rgba(12, 17, 30, 0.78);
  color: #fff;
  font-size: 0.95rem;
  line-height: 1;
}
.photo-thumb button:hover { background: var(--red-600); }

/* Output */

.output-panel { position: relative; min-height: 620px; }

.output-header { margin-bottom: 0; }

.empty-state {
  min-height: 460px;
  display: grid;
  place-content: center;
  gap: var(--space-4);
  color: var(--muted);
  text-align: center;
}

.preview-card {
  width: min(420px, 72vw);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px;
  background: #fff;
  box-shadow: var(--shadow-1);
}
.preview-topline,
.preview-title,
.preview-line,
.preview-tags span {
  border-radius: 999px;
  background: var(--bg-2);
}
.preview-topline { width: 34%; height: 10px; margin-bottom: 16px; background: var(--indigo-50); }
.preview-title { width: 82%; height: 20px; margin-bottom: 18px; }
.preview-line { width: 100%; height: 12px; margin-top: 10px; }
.preview-line.short { width: 64%; }
.preview-tags { display: flex; gap: 8px; margin-top: 18px; }
.preview-tags span { width: 68px; height: 24px; background: var(--indigo-50); }

.results { display: flex; flex-direction: column; gap: var(--space-4); }

.hidden { display: none !important; }

.result-block {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  background: #fff;
}
.result-block h2 { color: var(--muted); font-size: 0.78rem; }

/* Score block */

.score-block {
  background:
    radial-gradient(800px 200px at 0% 0%, var(--indigo-50) 0%, transparent 60%),
    #fff;
  border-color: var(--indigo-100);
}

.score-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: var(--space-5);
  align-items: center;
}

.score-meter {
  display: grid;
  width: 120px;
  height: 120px;
  place-items: center;
  border-radius: 999px;
  color: var(--indigo-700);
  background:
    radial-gradient(circle at 50% 50%, #ffffff 0 56%, transparent 56% 100%),
    conic-gradient(var(--indigo-500) calc(var(--score, 0) * 1%), var(--indigo-100) 0%);
  box-shadow: inset 0 0 0 1px var(--indigo-100), var(--shadow-1);
}
.score-meter strong {
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.score-detail h2 {
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--indigo-600);
}
.score-detail p { margin: 4px 0 0; color: var(--ink-soft); }
.score-detail ul { margin: 10px 0 0; }

/* Pricing tiles */

.price-block { background: #fff; }

.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
  margin-top: var(--space-3);
}

.price-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px;
  background: #fff;
  transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;
}
.price-row:hover {
  border-color: var(--indigo-500);
  background: var(--indigo-50);
  transform: translateY(-1px);
}

.price-row span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.price-row strong {
  color: var(--ink);
  font-size: 1.1rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.price-row.is-highlight {
  border-color: var(--green-500);
  background: linear-gradient(170deg, #ffffff 0%, var(--green-50) 100%);
}
.price-row.is-highlight span { color: var(--green-700); }

/* Title / description */

.result-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.result-heading h2 { margin: 0; }

#titleOutput {
  margin: 8px 0 0;
  font-size: 1.18rem;
  font-weight: 800;
  line-height: 1.4;
  color: var(--ink);
  letter-spacing: -0.005em;
}

pre {
  white-space: pre-wrap;
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-family: inherit;
  line-height: 1.65;
}

.split-results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.tag {
  border: 1px solid var(--indigo-100);
  border-radius: 999px;
  padding: 5px 12px;
  background: var(--indigo-50);
  color: var(--indigo-700);
  font-size: 0.84rem;
  font-weight: 700;
}

ul {
  padding-left: 18px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 8px 0 0;
}
ul li + li { margin-top: 4px; }

/* Safety checklist (was missing details) */

.safety-block {
  border-color: var(--amber-200);
  background: linear-gradient(165deg, #ffffff 0%, var(--amber-50) 100%);
}
.safety-block h2 { color: var(--amber-700); }

.safety-lede { margin: 6px 0 0; color: var(--ink-soft); font-size: 0.94rem; }

.safety-block ul {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  gap: 6px;
}
.safety-block ul li {
  position: relative;
  padding: 10px 14px 10px 40px;
  background: #fff;
  border: 1px solid var(--amber-200);
  border-radius: 10px;
  color: var(--ink-soft);
  font-size: 0.94rem;
}
.safety-block ul li::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 999px;
  background: var(--amber-700);
}
.safety-block ul li::after {
  content: "i";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translate(0, -50%);
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  font-size: 0.7rem;
  font-family: "Inter", serif;
}

/* Reply / extracted */

.reply-block {
  border-color: var(--green-100);
  background: linear-gradient(165deg, #ffffff 0%, var(--green-50) 100%);
}
.reply-block h2 { color: var(--green-700); }

.extracted-block {
  border-color: var(--indigo-100);
  background: linear-gradient(165deg, #ffffff 0%, var(--indigo-50) 100%);
}
.extracted-block h2 { color: var(--indigo-700); }

.extracted-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 14px;
  margin: 10px 0 0;
}
.extracted-grid div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--indigo-100);
}
.extracted-grid dt {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.extracted-grid dd {
  margin: 0;
  color: var(--ink);
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.4;
}

/* Templates */

.template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}
.template-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 110px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px;
  color: var(--ink);
  background: #fff;
  text-align: left;
  font-weight: 700;
  transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;
}
.template-card:hover {
  border-color: var(--indigo-500);
  background: var(--indigo-50);
  transform: translateY(-1px);
}
.template-card strong, .template-card span { display: block; }
.template-card span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.45;
}

/* History */

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

.history-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px;
  background: #fff;
  box-shadow: var(--shadow-1);
}
.history-card strong {
  font-size: 0.98rem;
  letter-spacing: -0.005em;
}
.history-card > span {
  color: var(--indigo-700);
  font-weight: 800;
  background: var(--indigo-50);
  border: 1px solid var(--indigo-100);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.78rem;
}
.history-card p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}
.history-meta {
  grid-column: 1 / -1;
  margin: -2px 0 0;
  color: var(--soft);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.history-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.history-button {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 700;
  transition: border-color 140ms ease, background 140ms ease, color 140ms ease;
}
.history-button:hover:not(:disabled) {
  border-color: var(--indigo-500);
  color: var(--indigo-600);
  background: var(--indigo-50);
}
.history-button:disabled { opacity: 0.55; cursor: not-allowed; }
.history-button.history-regen {
  border-color: var(--indigo-100);
  color: var(--indigo-700);
  background: var(--indigo-50);
}
.history-button.history-regen:hover:not(:disabled) { background: #dde0ff; }
.history-button.history-delete {
  border-color: var(--red-200);
  color: var(--red-700);
  background: var(--red-50);
}
.history-button.history-delete:hover:not(:disabled) { background: #fee2e2; color: var(--red-700); }

/* Auth */

.auth-form { display: flex; flex-direction: column; gap: var(--space-3); }
.auth-form.signed-in .mini-grid,
.auth-form.signed-in .auth-actions { display: none; }
.auth-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* Footer */

.app-footer {
  margin-top: var(--space-6);
  border-top: 1px solid var(--line);
  padding-top: var(--space-6);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.9rem;
}
.footer-links {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  flex-wrap: wrap;
}
.footer-links a { color: var(--ink-soft); font-weight: 700; }
.footer-links a:hover { color: var(--indigo-600); text-decoration: none; }
.footer-disclaimer { margin: 0; color: var(--muted); }

/* Legal pages */

.legal-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: clamp(24px, 4vw, 40px);
  background: var(--panel);
  box-shadow: var(--shadow-1);
  line-height: 1.7;
  color: var(--ink-soft);
}
.legal-panel h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 4px 0 12px;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.legal-panel h2 {
  margin: 26px 0 8px;
  font-size: 0.86rem;
  color: var(--ink);
}
.legal-panel p, .legal-panel ul { margin: 8px 0; }
.legal-panel ul { padding-left: 20px; }
.legal-meta { color: var(--muted); font-size: 0.92rem; }
.legal-foot { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); }

/* =================================================================
   Responsive
   ================================================================= */

@media (max-width: 1080px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
  .hero-card { order: 2; }

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

  .tool-grid, .auth-actions, .split-results { grid-template-columns: 1fr; }

  .workspace-head { flex-direction: column; align-items: flex-start; }
  .workflow-bar { width: 100%; }

  .score-row { grid-template-columns: 100px 1fr; }
  .score-meter { width: 100px; height: 100px; }
}

@media (max-width: 800px) {
  .nav-links { display: none; }
  .nav-meta { justify-content: flex-start; flex-wrap: wrap; }
  .benefit-grid { grid-template-columns: 1fr; }

  .comparison-card { grid-template-columns: 1fr; }
  .comparison-divider {
    width: 100%;
    height: 56px;
    background: linear-gradient(90deg, transparent 0%, var(--line) 50%, transparent 100%);
  }
  .comparison-divider svg { transform: rotate(90deg); }

  .workflow-bar { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .app-shell {
    width: min(100% - 16px, 540px);
    gap: var(--space-7);
  }
  .nav-inner {
    width: min(100% - 16px, 540px);
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 0;
  }
  .nav-meta { width: 100%; }

  .hero { padding: var(--space-6); }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .cta-primary, .cta-secondary { width: 100%; }
  h1 { font-size: clamp(2rem, 8vw, 2.6rem); }

  .panel { padding: var(--space-5); }

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

  .score-row { grid-template-columns: 1fr; text-align: center; }
  .score-meter { margin: 0 auto; }
  .score-detail { text-align: left; }

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

  textarea { min-height: 180px; }

  .output-panel { min-height: 460px; }

  .extracted-grid { grid-template-columns: 1fr; }
  .photo-previews { grid-template-columns: repeat(3, 1fr); }

  .history-actions { gap: 6px; }
  .history-button { flex: 1 1 calc(50% - 6px); min-height: 42px; }

  .auth-actions { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 380px) {
  .app-shell { width: min(100% - 12px, 360px); }
  .nav-inner { width: min(100% - 12px, 360px); }
  .panel, .hero, .comparison-card { padding: 18px; }
  .hero-card { padding: 18px; }
  .price-grid { grid-template-columns: 1fr; }
  .photo-previews { grid-template-columns: repeat(2, 1fr); }
}
