:root {
  color-scheme: light;
  --ink: #141414;
  --muted: #5f646b;
  --paper: #f7f5ef;
  --panel: rgba(255, 255, 255, 0.88);
  --line: rgba(20, 20, 20, 0.14);
  --black: #080908;
  --teal: #0f8b83;
  --coral: #ee6c4d;
  --gold: #d9a441;
  --white: #ffffff;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 82px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  letter-spacing: 0;
}

a {
  color: inherit;
}

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

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  color: var(--white);
  background: linear-gradient(180deg, rgba(8, 9, 8, 0.82), rgba(8, 9, 8, 0.26));
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.72rem;
  letter-spacing: 0;
}

.topbar nav,
.footer div {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 22px);
  font-size: 0.92rem;
  font-weight: 700;
}

.topbar nav a,
.footer a {
  text-decoration: none;
}

.nav-cta {
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
}

.hero {
  position: relative;
  min-height: 82vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--black);
}

.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-bg {
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(8, 9, 8, 0.92) 0%, rgba(8, 9, 8, 0.74) 33%, rgba(8, 9, 8, 0.26) 72%, rgba(8, 9, 8, 0.18) 100%),
    linear-gradient(0deg, rgba(8, 9, 8, 0.72) 0%, rgba(8, 9, 8, 0.08) 48%);
}

.hero-inner {
  position: relative;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 104px 0 30px;
  color: var(--white);
}

.hero-copy {
  max-width: 690px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 20px;
  max-width: 780px;
  font-size: clamp(2.85rem, 6.6vw, 5.7rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 4.25rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.18rem;
  line-height: 1.2;
}

.hero-text {
  max-width: 660px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.hero-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}

.button:disabled,
.button[aria-busy="true"] {
  cursor: wait;
  opacity: 0.68;
}

.button.primary {
  background: var(--coral);
  color: var(--white);
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.11);
  color: var(--white);
}

.studio .button.secondary {
  border-color: var(--line);
  background: var(--white);
  color: var(--ink);
}

.signal-strip {
  display: none;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 52px;
}

.signal-strip span {
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.88rem;
  font-weight: 750;
}

section:not(.hero) {
  padding: clamp(64px, 9vw, 120px) clamp(18px, 4vw, 56px);
  scroll-margin-top: 76px;
}

.section-heading {
  width: min(1120px, 100%);
  margin: 0 auto clamp(28px, 5vw, 54px);
}

.section-intro {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.06rem;
}

.studio {
  background: #f4efe5;
}

.model-form {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: clamp(18px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 28px 90px rgba(20, 20, 20, 0.08);
}

.source-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  gap: 18px;
  align-items: stretch;
}

.source-panel,
.preview-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  padding: clamp(14px, 2vw, 20px);
}

.source-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.source-card {
  position: relative;
  min-height: 154px;
  align-content: start;
  gap: 10px;
  padding: 18px;
  border: 1px solid rgba(20, 20, 20, 0.16);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}

.source-card:hover,
.template-card:hover {
  border-color: rgba(15, 139, 131, 0.48);
}

.source-card input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.source-card strong,
.template-card strong,
.plan-switcher strong {
  color: var(--ink);
}

.source-card small {
  color: var(--muted);
  font-weight: 700;
}

.source-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #eaf4f1;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
}

.instagram-card input {
  min-height: 42px;
  margin-top: auto;
}

.product-prompt {
  margin-top: 12px;
}

.preview-panel {
  display: grid;
  gap: 14px;
}

.preview-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.preview-header h3 {
  margin-bottom: 0;
  font-size: 1.35rem;
}

#preview-state {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 999px;
  background: #eaf4f1;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
}

.reference-card {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(20, 20, 20, 0.12);
  border-radius: var(--radius);
  background: var(--white);
}

.reference-card p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 650;
}

.source-preview {
  display: grid;
  place-items: center;
  min-height: 132px;
  aspect-ratio: 1;
  overflow: hidden;
  padding: 12px;
  border: 1px dashed rgba(20, 20, 20, 0.24);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(15, 139, 131, 0.13), rgba(238, 108, 77, 0.13)),
    #f7f5ef;
  background-position: center;
  background-size: cover;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
  line-height: 1.2;
  text-align: center;
  overflow-wrap: anywhere;
}

.source-preview.has-image {
  border-style: solid;
}

.style-choice-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.style-choice {
  min-height: 96px;
  padding: 13px;
  border: 1px solid rgba(20, 20, 20, 0.14);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--muted);
  cursor: pointer;
}

.style-choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.style-choice span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.style-choice strong {
  color: var(--ink);
}

.style-choice:has(input:checked) {
  border-color: rgba(238, 108, 77, 0.6);
  box-shadow: inset 0 0 0 1px rgba(238, 108, 77, 0.26);
}

.preview-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
}

.free-preview-actions,
.template-picker,
.plan-switcher {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.free-preview-actions {
  border: 1px solid rgba(15, 139, 131, 0.22);
  border-radius: var(--radius);
  background: rgba(234, 244, 241, 0.72);
  padding: clamp(14px, 2vw, 20px);
}

.preview-consent {
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  color: var(--ink);
  font-weight: 700;
}

.preview-consent input {
  width: 20px;
  min-height: 20px;
  padding: 0;
  margin-top: 2px;
}

.free-preview-output,
.render-output {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.free-preview-output img,
.render-output img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--white);
}

.generated-preview {
  margin: 0;
}

.generated-preview figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.free-preview-output.is-contact-sheet {
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.42fr);
  align-items: stretch;
}

.free-preview-output.is-contact-sheet .contact-sheet img {
  aspect-ratio: 1;
}

.preview-upsell {
  display: grid;
  align-content: center;
  gap: 8px;
  min-height: 100%;
  padding: 16px;
  border: 1px solid rgba(238, 108, 77, 0.28);
  border-radius: var(--radius);
  background: var(--white);
}

.preview-upsell span {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 650;
}

.preview-upsell a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--black);
  color: var(--white);
  font-weight: 850;
  text-decoration: none;
}

.render-output .preview-upsell {
  grid-column: 1 / -1;
}

.generation-progress {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid rgba(15, 139, 131, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
}

.generation-progress[hidden] {
  display: none;
}

.progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink);
  font-weight: 850;
}

.progress-meta span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.progress-meta strong {
  flex: 0 0 auto;
  color: var(--teal);
}

.progress-track {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(20, 20, 20, 0.1);
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--coral), var(--gold));
  transition: width 420ms ease;
}

.generation-progress.is-active:not(.is-complete):not(.is-error) .progress-track span {
  background-size: 180% 100%;
  animation: progress-shine 1.4s linear infinite;
}

.generation-progress p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.generation-progress.is-complete {
  border-color: rgba(17, 97, 73, 0.28);
}

.generation-progress.is-complete .progress-meta strong,
.generation-progress.is-complete p {
  color: #116149;
}

.generation-progress.is-error {
  border-color: rgba(164, 58, 33, 0.26);
}

.generation-progress.is-error .progress-track span {
  background: #a43a21;
}

.generation-progress.is-error .progress-meta strong,
.generation-progress.is-error p {
  color: #a43a21;
}

@keyframes progress-shine {
  from {
    background-position: 0 0;
  }

  to {
    background-position: 180% 0;
  }
}

.upgrade-details {
  margin-top: clamp(34px, 5vw, 64px);
  padding-top: clamp(28px, 4vw, 42px);
  border-top: 1px solid var(--line);
}

.section-heading.compact {
  margin-bottom: 22px;
}

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

.template-card,
.plan-switcher label {
  border: 1px solid rgba(20, 20, 20, 0.14);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--muted);
}

.template-card {
  min-height: 108px;
  padding: 15px;
  cursor: pointer;
}

.template-card input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.template-card:has(input:checked),
.plan-switcher label:has(input:checked) {
  border-color: rgba(238, 108, 77, 0.6);
  box-shadow: inset 0 0 0 1px rgba(238, 108, 77, 0.26);
}

.template-card.locked {
  background: #141414;
  color: rgba(255, 255, 255, 0.72);
}

.template-card.locked strong {
  color: var(--white);
}

.plan-switcher {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.plan-switcher label {
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  padding: 15px;
}

.plan-switcher input {
  width: 20px;
  min-height: 20px;
  padding: 0;
  margin-top: 2px;
}

.details-grid {
  margin-top: 18px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

label.wide {
  grid-column: span 2;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(20, 20, 20, 0.18);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  padding: 12px 13px;
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(15, 139, 131, 0.14);
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
}

.file-list,
.form-status,
.render-output {
  margin-top: 18px;
}

.file-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.file-list span {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 750;
}

.checks {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.checks label {
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  color: var(--ink);
  font-weight: 650;
}

.checks input {
  width: 20px;
  min-height: 20px;
  padding: 0;
  margin-top: 2px;
}

.form-status {
  min-height: 24px;
  color: var(--muted);
  font-weight: 750;
}

.form-status.error {
  color: #a43a21;
}

.form-status.success {
  color: #116149;
}

.checkout-note {
  max-width: 680px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.catalogs {
  background: var(--black);
  color: var(--white);
}

.catalogs .section-heading,
.pricing .section-heading,
.privacy .section-heading,
.faq .section-heading {
  text-align: left;
}

.catalog-grid,
.price-grid,
.privacy-grid {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.catalog-grid article,
.price-grid article,
.privacy-grid p,
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 22px;
}

.catalog-grid article {
  min-height: 210px;
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
}

.catalog-grid span {
  display: block;
  margin-bottom: 28px;
  color: var(--gold);
  font-weight: 850;
}

.catalog-grid p {
  color: rgba(255, 255, 255, 0.72);
}

.pricing {
  background: #f7f5ef;
}

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

.price-grid article {
  min-height: 220px;
}

.price-grid .featured {
  border-color: rgba(238, 108, 77, 0.42);
  box-shadow: 0 20px 60px rgba(238, 108, 77, 0.12);
}

.price {
  margin-bottom: 14px;
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1;
  font-weight: 900;
}

.privacy {
  background: #ebe7dd;
}

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

.faq {
  background: #f7f5ef;
}

.faq details {
  width: min(1120px, 100%);
  margin: 12px auto;
}

.faq summary {
  cursor: pointer;
  font-weight: 850;
}

.faq details p {
  margin: 12px 0 0;
  color: var(--muted);
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(18px, 4vw, 56px);
  background: var(--black);
  color: var(--white);
}

@media (max-width: 940px) {
  .topbar nav a:not(.nav-cta) {
    display: none;
  }

  .source-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .source-actions,
  .style-choice-list,
  .template-picker,
  .plan-switcher,
  .free-preview-output,
  .render-output {
    grid-template-columns: minmax(0, 1fr);
  }

  .free-preview-output.is-contact-sheet {
    grid-template-columns: minmax(0, 1fr);
  }

  .form-grid,
  .catalog-grid,
  .price-grid,
  .privacy-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  label.wide {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .topbar {
    padding: 12px 16px;
  }

  .brand span:last-child {
    display: none;
  }

  .hero {
    min-height: 82vh;
  }

  .hero-inner {
    width: min(100% - 28px, 1180px);
    padding-top: 86px;
    padding-bottom: 26px;
  }

  h1 {
    font-size: clamp(2.25rem, 12vw, 3.25rem);
  }

  .hero-text {
    font-size: 1rem;
    line-height: 1.5;
  }

  .signal-strip {
    display: none;
  }

  .model-form {
    padding: 14px;
  }

  .source-card {
    min-height: 118px;
  }

  .style-choice-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .reference-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .source-preview {
    min-height: 210px;
  }

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

  .form-grid,
  .catalog-grid,
  .price-grid,
  .privacy-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  label.wide {
    grid-column: span 1;
  }

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

  .footer div {
    align-items: flex-start;
    flex-direction: column;
  }
}
