/* =========================================
   DESIGN SYSTEM
========================================= */

:root {
  --background: #efeeeb;
  --surface: #ffffff;
  --surface-soft: #f6f5f2;
  --text: #161616;
  --text-secondary: #66645f;
  --text-muted: #77756f;
  --primary: #171717;
  --primary-dark: #343434;
  --border: #d9d7d0;
  --font-heading: "Space Grotesk", sans-serif;
  --font-body: "DM Sans", sans-serif;
  --transition: 240ms ease;
}

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

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

body {
  background: var(--background);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
  border-radius: 0;
}

button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

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

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

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid #74644c;
  outline-offset: 5px;
}

::selection {
  background: #1b1b1b;
  color: white;
}

[hidden],
.hidden {
  display: none !important;
}

.svg-library {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.container {
  width: min(1320px, calc(100% - 96px));
  margin-inline: auto;
}

.site-shell {
  overflow: clip;
}

.section-padding {
  padding-block: 100px;
}

/* =========================================
   HEADER
========================================= */

.announcement {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 34px;
  padding: 8px 48px;
  background: #151515;
  color: #f4f3ef;
  font-size: 9px;
  letter-spacing: 1px;
}

.announcement a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.announcement .icon {
  width: 12px;
  height: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgb(239 238 235 / 94%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  min-height: 88px;
}

.brand {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-heading);
  font-size: 37px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -2.5px;
}

.brand-dot {
  color: #807765;
}

.brand-tag {
  align-self: flex-start;
  margin-left: 9px;
  padding: 5px 6px;
  border: 1px solid currentColor;
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  position: relative;
  padding-block: 10px;
  font-size: 12px;
  font-weight: 500;
}

.nav-links a::after {
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  padding: 12px 0 12px 20px;
  border-left: 1px solid var(--border);
  font-size: 12px;
  font-weight: 600;
}

/* =========================================
   SHARED CONTROLS
========================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-height: 52px;
  padding: 15px 22px;
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 600;
  transition:
    background var(--transition),
    color var(--transition),
    transform var(--transition);
}

.btn .icon {
  width: 18px;
  height: 18px;
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-secondary {
  border-color: var(--border);
  background: transparent;
  color: var(--text);
}

.btn-secondary:hover {
  background: #e9e6df;
}

.btn:disabled {
  opacity: 0.55;
  cursor: wait;
  transform: none;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 5px;
  border-bottom: 1px solid #aaa69d;
  font-size: 12px;
  font-weight: 500;
}

.text-link .icon {
  width: 16px;
  height: 16px;
  transition: transform var(--transition);
}

.text-link:hover .icon {
  transform: translate(2px, -2px);
}

.section-label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.7;
  letter-spacing: 1.8px;
}

.section-heading {
  margin-bottom: 44px;
}

.heading-split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 45px;
}

.section-heading h2 {
  margin-top: 20px;
  font-family: var(--font-heading);
  font-size: clamp(36px, 4.2vw, 62px);
  font-weight: 500;
  line-height: 1.07;
  letter-spacing: -0.065em;
}

.section-heading h2 span {
  color: #858178;
}

.heading-split > p {
  max-width: 290px;
  padding-bottom: 4px;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.85;
}

/* =========================================
   HERO
========================================= */

.studio-hero {
  padding: 30px 0 45px;
  background: #efeeeb;
}

.studio-stage {
  position: relative;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  min-height: 650px;
  padding: 28px 38px 24px;
  border: 1px solid #d5d3cd;
  background: #e5e4e0;
  isolation: isolate;
}

.studio-topline {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 25px;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 1.5px;
}

.studio-topline > span:last-child {
  color: #6e6b64;
}

.studio-intro {
  position: relative;
  z-index: 3;
  align-self: center;
  min-width: 0;
  padding: 25px 0 55px;
}

.studio-label {
  display: block;
  margin-bottom: 21px;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 1.8px;
}

.studio-intro h1 {
  font-family: var(--font-heading);
  font-size: clamp(78px, 8.5vw, 126px);
  font-weight: 600;
  line-height: 0.86;
  letter-spacing: -0.085em;
}

.studio-intro h1 > span {
  display: inline-block;
  margin-top: 8px;
}

.studio-intro > p {
  max-width: 310px;
  margin-top: 30px;
  color: #625f58;
  font-size: 13px;
  line-height: 1.9;
}

.studio-button {
  margin-top: 24px;
}

.studio-how {
  display: flex;
  align-items: center;
  gap: 13px;
  width: fit-content;
  margin-top: 17px;
  padding-bottom: 5px;
  border-bottom: 1px solid #9c978b;
  font-size: 11px;
}

.studio-how .icon {
  width: 15px;
  height: 15px;
}

.studio-art {
  position: relative;
  align-self: stretch;
  min-width: 0;
  min-height: 510px;
  isolation: isolate;
}

.studio-art-band {
  position: absolute;
  top: 40%;
  right: -38px;
  bottom: 17%;
  left: -75px;
  z-index: -2;
  background: #b5b4ad;
}

.studio-background-word {
  position: absolute;
  top: 25%;
  right: 5%;
  z-index: -1;
  color: #d0cec7;
  font-family: var(--font-heading);
  font-size: clamp(70px, 9vw, 145px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.08em;
  pointer-events: none;
}

.studio-product {
  position: absolute;
  inset: 0 38px 45px 0;
  display: grid;
  place-items: center;
}

.studio-product img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  object-position: center;
  mix-blend-mode: multiply;
  filter: saturate(0.35);
}

.studio-side-label {
  position: absolute;
  top: 10px;
  right: -8px;
  color: #514d45;
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 1.6px;
  writing-mode: vertical-rl;
}

.studio-product-label {
  position: absolute;
  bottom: 74px;
  left: -28px;
  z-index: 2;
  padding: 12px 15px;
  border-left: 2px solid #242320;
  background: rgb(239 238 232 / 94%);
}

.studio-product-label > span {
  display: block;
  color: #70695d;
  font-size: 7px;
  letter-spacing: 1.3px;
}

.studio-product-label strong {
  display: block;
  margin-top: 5px;
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.5px;
}

.studio-post {
  position: absolute;
  right: -10px;
  bottom: -8px;
  z-index: 4;
  width: 280px;
  padding: 19px;
  border: 1px solid #dedbd3;
  background: #fcfbf7;
  box-shadow: 0 18px 45px rgb(25 25 20 / 10%);
  transform: rotate(-5deg);
  transition: transform 400ms ease;
}

.studio-post:hover {
  transform: rotate(-1deg) translateY(-5px);
}

.studio-post-header {
  display: flex;
  align-items: center;
  gap: 9px;
}

.studio-post-icon {
  display: grid;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  place-items: center;
  background: #e8e5dc;
}

.studio-post-icon .icon {
  width: 17px;
  height: 17px;
}

.studio-post-header > div {
  flex: 1;
}

.studio-post-header strong {
  display: block;
  font-size: 11px;
  font-weight: 600;
}

.studio-post-header div > span {
  display: block;
  margin-top: 4px;
  color: #746d60;
  font-size: 6px;
  letter-spacing: 0.8px;
}

.studio-post-header > .icon {
  width: 15px;
  height: 15px;
}

.studio-post h2 {
  margin-top: 17px;
  font-family: var(--font-heading);
  font-size: 23px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -1px;
}

.studio-post > p {
  margin-top: 10px;
  color: #686257;
  font-size: 10px;
  line-height: 1.7;
}

.studio-post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 9px;
  margin-top: 13px;
  color: #6d624f;
  font-size: 7px;
}

.studio-post-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 15px;
  padding-top: 10px;
  border-top: 1px solid #dedbd3;
  color: #6c665a;
  font-size: 6px;
  letter-spacing: 1px;
}

.studio-post-footer .icon {
  width: 13px;
  height: 13px;
}

.studio-bottomline {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 26px;
  padding-top: 15px;
  border-top: 1px solid #cbc8bf;
}

.studio-index {
  font-family: var(--font-heading);
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -2px;
}

.studio-bottomline > div {
  display: grid;
  gap: 4px;
  font-size: 7px;
  letter-spacing: 1px;
}

.studio-bottomline > div > span {
  color: #777166;
}

.studio-bottomline > div > strong {
  font-weight: 500;
}

.studio-bottomline > a {
  display: grid;
  width: 42px;
  height: 36px;
  margin-left: auto;
  place-items: center;
  background: #1a1a19;
  color: white;
  transition: background var(--transition);
}

.studio-bottomline > a:hover {
  background: #464138;
}

/* =========================================
   PLATFORMS
========================================= */

.platform-strip {
  background: #191919;
  color: #efeee9;
}

.platform-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 105px;
  padding-block: 25px;
}

.platform-inner > p {
  padding-right: 30px;
  border-right: 1px solid #434343;
  color: #aaa8a3;
  font-size: 8px;
  line-height: 1.9;
  letter-spacing: 1px;
}

.platform-inner strong {
  color: #efeee9;
  font-weight: 500;
}

.platform-inner > span {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 500;
}

.platform-inner .icon {
  width: 23px;
  height: 23px;
  color: #bcb8af;
}

/* =========================================
   PRODUCT CAROUSEL
========================================= */

.possibilities-section {
  background: #f8f7f4;
}

.product-marquee-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 23px;
}

.product-marquee-toolbar > span {
  color: #746d61;
  font-size: 8px;
  line-height: 1.7;
  letter-spacing: 1.2px;
}

.marquee-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 88px;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid #d6d1c6;
  background: transparent;
  color: #35312b;
  font-size: 10px;
}

.marquee-toggle:hover {
  background: #eae6dd;
}

.marquee-toggle .icon {
  width: 14px;
  height: 14px;
}

.product-marquee {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding-block: 6px 12px;
  scrollbar-width: thin;
  scrollbar-color: #b5ad9c #efebe3;
}

.product-marquee.is-animated {
  overflow-x: hidden;
}

.product-marquee-track {
  display: flex;
  width: max-content;
}

.product-marquee-group {
  display: flex;
  flex: 0 0 auto;
  gap: 22px;
  margin: 0;
  padding: 0 22px 0 0;
  list-style: none;
}

.product-slide {
  width: clamp(245px, 24vw, 330px);
  flex: 0 0 auto;
}

.product-slide-link {
  display: block;
}

.product-slide-image {
  position: relative;
  aspect-ratio: 1 / 1.12;
  overflow: hidden;
  background: #e6e1d7;
}

.product-slide-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.65);
  transition:
    transform 600ms ease,
    filter 600ms ease;
}

.product-slide-link:hover img,
.product-slide-link:focus-visible img {
  transform: scale(1.045);
  filter: saturate(1);
}

.product-slide-number {
  position: absolute;
  top: 15px;
  left: 15px;
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  background: rgb(255 255 255 / 94%);
  color: #292722;
  font-size: 9px;
}

.product-slide-type {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  width: fit-content;
  max-width: calc(100% - 28px);
  padding: 9px 11px;
  background: rgb(250 248 241 / 95%);
  color: #383229;
  font-size: 8px;
  letter-spacing: 1.2px;
}

.product-slide-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 13px;
  min-height: 92px;
  padding: 19px 5px 17px;
  border-bottom: 1px solid #d9d3c7;
}

.product-slide-info h3 {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.6px;
}

.product-slide-info p {
  margin-top: 7px;
  color: #756e62;
  font-size: 10px;
  line-height: 1.6;
}

.product-slide-info > .icon {
  width: 18px;
  height: 18px;
}

.product-marquee.is-animated .product-marquee-track {
  animation: productMarqueeMove 85s linear infinite;
}

.product-marquee.is-paused .product-marquee-track {
  animation-play-state: paused;
}

@media (hover: hover) {
  .product-marquee.is-animated:hover .product-marquee-track {
    animation-play-state: paused;
  }
}

/* Keyboard users get a normal scrollable list. */
.product-marquee.is-animated:focus-within {
  overflow-x: auto;
}

.product-marquee.is-animated:focus-within .product-marquee-track {
  animation: none;
  transform: none;
}

.product-marquee:focus-within .product-marquee-clone {
  display: none;
}

@keyframes productMarqueeMove {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.possibilities-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  margin-top: 30px;
}

.possibilities-footer p {
  color: #777064;
  font-size: 12px;
  line-height: 1.7;
}

.possibilities-footer strong {
  color: #302c25;
  font-weight: 500;
}

/* =========================================
   GENERATOR
========================================= */

.generator-section {
  background: #e9e6df;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  border: 1px solid #d1cdc4;
  background: #fcfbf8;
}

.workspace-form,
.workspace-results {
  min-width: 0;
  padding: 34px;
}

.workspace-form {
  border-right: 1px solid var(--border);
}

.panel-header,
.results-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.panel-icon {
  display: grid;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  place-items: center;
  border: 1px solid var(--border);
}

.panel-header h3,
.results-title h3 {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.5px;
}

.panel-header p,
.results-title p {
  margin-top: 5px;
  color: var(--text-secondary);
  font-size: 10px;
  line-height: 1.5;
}

.panel-number {
  margin-left: auto;
  color: #888379;
  font-size: 11px;
}

#listingForm {
  margin-top: 32px;
}

.form-group {
  min-width: 0;
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 9px;
  font-size: 11px;
  font-weight: 600;
}

.form-group label > span {
  color: #7c6a4a;
}

.form-group label small {
  margin-left: 3px;
  color: var(--text-secondary);
  font-size: 10px;
  font-weight: 400;
}

.form-group input,
.form-group textarea,
.form-group select {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 47px;
  padding: 13px;
  border: 1px solid #d8d4ca;
  background: transparent;
  color: var(--text);
  font-size: 12px;
  transition:
    border-color var(--transition),
    background var(--transition);
}

.form-group select {
  padding-right: 26px;
  cursor: pointer;
}

.form-group textarea {
  min-height: 122px;
  resize: vertical;
  line-height: 1.7;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #827e74;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #6b6456;
  background: #fff;
}

.field-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  color: var(--text-secondary);
  font-size: 9px;
  line-height: 1.6;
}

#charCount {
  white-space: nowrap;
}

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

.generate-button {
  width: 100%;
  margin-top: 4px;
}

.generate-button > .icon:last-child {
  margin-left: auto;
}

.generate-button[aria-busy="true"] > .icon {
  margin-left: 0;
}

.form-disclaimer {
  max-width: 340px;
  margin: 14px auto 0;
  color: var(--text-secondary);
  font-size: 9px;
  line-height: 1.8;
  text-align: center;
}

/* =========================================
   RESULTS
========================================= */

.workspace-results {
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(
      ellipse at 50% 45%,
      #e9e5dc,
      transparent 65%
    ),
    #f0eee7;
}

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

.result-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 9px;
  border: 1px solid #d1d5c7;
  color: #536044;
  font-size: 9px;
  white-space: nowrap;
}

.result-status > span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.result-status.processing {
  border-color: #dcccaa;
  color: #8d6a24;
}

.result-status.failed {
  border-color: #dfc3bb;
  color: #a24832;
}

.result-empty,
.loading-state,
.error-state {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  padding: 40px 0;
  text-align: center;
}

.empty-art {
  position: relative;
  width: 225px;
  height: 275px;
  margin-bottom: 26px;
}

.paper {
  position: absolute;
  inset: 0;
  border: 1px solid #d5d0c5;
}

.paper-back {
  background: #ded9ce;
  transform: rotate(8deg) translate(8px, 4px);
}

.paper-front {
  padding: 16px;
  background: #fffefa;
  box-shadow: 0 15px 30px rgb(45 37 20 / 7%);
  transform: rotate(-6deg);
  transition: transform 400ms ease;
}

.empty-art:hover .paper-front {
  transform: rotate(-2deg) translateY(-5px);
}

.paper-top,
.paper-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 1px;
}

.paper-top .icon,
.paper-bottom .icon {
  width: 14px;
  height: 14px;
}

.paper-front img {
  width: 100%;
  height: 142px;
  margin-top: 13px;
  object-fit: cover;
  filter: saturate(0.5);
}

.paper-line {
  display: block;
  width: 60%;
  height: 5px;
  margin-top: 8px;
  background: #dedbd3;
}

.paper-line.long {
  width: 88%;
  margin-top: 15px;
}

.paper-bottom {
  margin-top: 18px;
  font-size: 6px;
}

.result-empty h4,
.loading-state h4,
.error-state h4 {
  font-family: var(--font-heading);
  font-size: 23px;
  font-weight: 500;
  letter-spacing: -0.9px;
}

.result-empty > p,
.loading-state > p,
.error-state > p {
  max-width: 280px;
  margin-top: 12px;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.85;
  overflow-wrap: anywhere;
}

.empty-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  margin-top: 22px;
}

.empty-chips span {
  padding: 7px 10px;
  border: 1px solid #d4cfc4;
  color: #686255;
  font-size: 9px;
}

.results-footnote {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid #d8d3c8;
  color: #787165;
  font-size: 8px;
  letter-spacing: 1.1px;
}

.results-footnote .icon {
  width: 17px;
  height: 17px;
}

.loading-spinner {
  width: 38px;
  height: 38px;
  margin-bottom: 25px;
  border: 2px solid #d7d2c7;
  border-top-color: #292722;
  border-radius: 50%;
  animation: spin 800ms linear infinite;
}

.button-spinner {
  animation: spin 900ms linear infinite;
}

.error-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 20px;
  color: #a24832;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.generated-content {
  padding-top: 15px;
  padding-bottom: 28px;
  animation: appear 350ms ease both;
}

@keyframes appear {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

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

.output-group {
  padding-block: 22px;
  border-bottom: 1px solid #d8d3c8;
}

.output-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 15px;
}

.output-label > span {
  color: #6c6456;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1px;
}

.copy-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border: 1px solid #d2ccbf;
  background: transparent;
  font-size: 9px;
  transition: background var(--transition);
}

.copy-button:hover {
  background: #fffefa;
}

.copy-button .icon {
  width: 12px;
  height: 12px;
}

#generatedTitle {
  font-family: var(--font-heading);
  font-size: 23px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.7px;
  overflow-wrap: anywhere;
}

#generatedDescription,
#generatedCTA {
  color: #555046;
  font-size: 13px;
  line-height: 1.9;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.hashtags-output {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  overflow-wrap: anywhere;
}

.hashtags-output span {
  max-width: 100%;
  padding: 7px 9px;
  background: #e2ddd2;
  color: #5a5142;
  font-size: 10px;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.result-actions .btn {
  min-height: 44px;
  padding: 12px 16px;
  font-size: 10px;
}

/* =========================================
   EDITORIAL
========================================= */

.editorial-section {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  min-height: 530px;
  background: #dbd7ce;
}

.editorial-photo {
  position: relative;
  min-height: 530px;
  overflow: hidden;
  background: #c9c3b7;
}

.editorial-photo img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.35);
}

.photo-label {
  position: absolute;
  bottom: 25px;
  left: 28px;
  padding: 9px 12px;
  background: rgb(248 247 244 / 92%);
  font-size: 8px;
  letter-spacing: 1.2px;
}

.editorial-copy {
  align-self: center;
  min-width: 0;
  padding: 65px clamp(30px, 5vw, 90px);
}

.editorial-copy h2 {
  margin-top: 25px;
  font-family: var(--font-heading);
  font-size: clamp(43px, 5vw, 73px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.065em;
}

.editorial-copy h2 > span {
  color: #787267;
}

.editorial-copy > p {
  max-width: 340px;
  margin: 25px 0;
  color: #625c51;
  font-size: 13px;
  line-height: 1.9;
}

/* =========================================
   STEPS
========================================= */

.how-section {
  background: #f8f7f4;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--border);
}

.step-card {
  padding: 30px 32px 10px;
  border-right: 1px solid var(--border);
}

.step-card:first-child {
  padding-left: 0;
}

.step-card:last-child {
  padding-right: 0;
  border: 0;
}

.step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.step-number {
  color: #928c7f;
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 400;
  letter-spacing: -3px;
}

.step-top .icon {
  width: 28px;
  height: 28px;
}

.step-card h3 {
  margin-top: 35px;
  font-family: var(--font-heading);
  font-size: 23px;
  font-weight: 500;
  letter-spacing: -0.9px;
}

.step-card p {
  max-width: 280px;
  margin-top: 13px;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.8;
}

/* =========================================
   CTA / FOOTER
========================================= */

.final-cta {
  padding-block: 85px;
  background: #1b1b1a;
  color: #f4f1e9;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 45px;
}

.final-cta .section-label {
  color: #b0aa9d;
}

.final-cta h2 {
  margin-top: 25px;
  font-family: var(--font-heading);
  font-size: clamp(48px, 6.5vw, 96px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.065em;
}

.final-cta h2 span {
  color: #a7a093;
}

.cta-circle {
  display: grid;
  width: 130px;
  height: 130px;
  flex-shrink: 0;
  place-items: center;
  border: 1px solid #777064;
  border-radius: 50%;
  transition:
    background var(--transition),
    color var(--transition),
    transform var(--transition);
}

.cta-circle .icon {
  width: 55px;
  height: 55px;
  stroke-width: 1;
}

.cta-circle:hover {
  background: #eee9dd;
  color: #1b1b1a;
  transform: rotate(8deg);
}

.site-footer {
  background: #efeeeb;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding-block: 45px;
}

.footer-top > p {
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.8;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 20px;
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 9px;
}

.footer-bottom > span:last-child {
  font-size: 8px;
  letter-spacing: 1.2px;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: min(440px, calc(100vw - 48px));
  padding: 16px 22px;
  background: #191919;
  color: white;
  box-shadow: 0 8px 30px rgb(0 0 0 / 15%);
  font-size: 12px;
  line-height: 1.6;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition:
    opacity var(--transition),
    visibility var(--transition),
    transform var(--transition);
}

.toast.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* =========================================
   TABLET
========================================= */

@media (max-width: 1100px) {
  .container {
    width: calc(100% - 56px);
  }

  .announcement {
    padding-inline: 28px;
  }

  .platform-inner {
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
  }

  .platform-inner > p {
    padding: 0;
    border: 0;
  }

  .platform-inner > span {
    font-size: 12px;
  }

  .workspace-form,
  .workspace-results {
    padding: 25px;
  }

  .results-header {
    align-items: flex-start;
  }

  .results-title .panel-icon {
    display: none;
  }
}

@media (max-width: 1050px) {
  .studio-stage {
    min-height: 620px;
    padding-inline: 28px;
  }

  .studio-intro h1 {
    font-size: 98px;
  }

  .studio-art-band {
    right: -28px;
    left: -30px;
  }

  .studio-post {
    right: -8px;
    width: 250px;
  }

  .studio-product-label {
    bottom: 160px;
    left: -10px;
  }

  .studio-product {
    inset: 0 20px 70px 0;
  }
}

@media (max-width: 800px) {
  .section-padding {
    padding-block: 75px;
  }

  .nav-links {
    gap: 20px;
  }

  .nav-links a {
    font-size: 11px;
  }

  .nav-cta {
    display: none;
  }

  .heading-split {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }

  .heading-split > p {
    max-width: 440px;
  }

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

  .workspace-form {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .results-title .panel-icon {
    display: grid;
  }

  .result-empty,
  .loading-state,
  .error-state {
    min-height: 470px;
  }

  .editorial-section {
    grid-template-columns: 1fr;
  }

  .editorial-photo {
    min-height: 390px;
  }

  .editorial-copy {
    padding: 50px 28px;
  }

  .editorial-copy h2 {
    font-size: 60px;
  }

  .steps-grid {
    gap: 20px;
  }

  .step-card {
    padding: 24px 15px 0 0;
  }

  .step-card h3 {
    font-size: 20px;
  }

  .step-card p {
    font-size: 12px;
  }

  .cta-circle {
    width: 100px;
    height: 100px;
  }

  .cta-circle .icon {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 760px) {
  .studio-hero {
    padding-top: 20px;
  }

  .studio-stage {
    grid-template-columns: 1fr;
    padding: 23px;
  }

  .studio-topline {
    padding-bottom: 15px;
    font-size: 7px;
  }

  .studio-topline > span:last-child {
    display: none;
  }

  .studio-intro {
    padding: 20px 0 30px;
  }

  .studio-intro h1 {
    font-size: clamp(82px, 15vw, 112px);
  }

  .studio-intro > p {
    max-width: 420px;
  }

  .studio-art {
    min-height: 490px;
    margin-top: 8px;
  }

  .studio-art-band {
    top: 35%;
    right: -23px;
    bottom: 23%;
    left: -23px;
  }

  .studio-background-word {
    top: 20%;
    right: 10%;
    font-size: 105px;
  }

  .studio-product {
    inset: 0 35px 65px;
  }

  .studio-post {
    right: 5px;
    bottom: 0;
    width: 270px;
  }

  .studio-product-label {
    bottom: 180px;
    left: 0;
  }

  .studio-side-label {
    right: -5px;
  }
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 540px) {
  html {
    scroll-padding-top: 85px;
  }

  .container {
    width: calc(100% - 36px);
  }

  .announcement {
    justify-content: center;
    padding: 9px 16px;
    font-size: 8px;
    text-align: center;
  }

  .announcement a {
    display: none;
  }

  .navbar {
    min-height: 72px;
    gap: 15px;
  }

  .brand {
    font-size: 32px;
  }

  .brand-tag {
    font-size: 7px;
  }

  .nav-links {
    gap: 15px;
  }

  .nav-links a {
    font-size: 10px;
  }

  .nav-links a:first-child {
    display: none;
  }

  .section-label {
    font-size: 8px;
    letter-spacing: 1.3px;
  }

  .platform-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px 12px;
    padding-block: 27px;
  }

  .platform-inner > p {
    grid-column: 1 / -1;
    text-align: center;
  }

  .platform-inner > span {
    gap: 8px;
    font-size: 10px;
  }

  .platform-inner .icon {
    width: 19px;
    height: 19px;
  }

  .section-padding {
    padding-block: 60px;
  }

  .section-heading {
    margin-bottom: 30px;
  }

  .section-heading h2 {
    font-size: 38px;
  }

  .workspace-form,
  .workspace-results {
    padding: 24px 17px;
  }

  .panel-header h3,
  .results-title h3 {
    font-size: 16px;
  }

  .panel-header p,
  .results-title p {
    font-size: 9px;
  }

  .panel-number,
  .results-title .panel-icon {
    display: none;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .form-group input,
  .form-group textarea,
  .form-group select {
    font-size: 16px;
  }

  .field-footer {
    font-size: 8px;
  }

  .result-actions {
    flex-direction: column;
  }

  .result-actions .btn {
    width: 100%;
  }

  .results-footnote {
    font-size: 7px;
  }

  .editorial-photo {
    min-height: 310px;
  }

  .editorial-copy {
    padding: 45px 22px;
  }

  .editorial-copy h2 {
    font-size: 51px;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .step-card,
  .step-card:first-child,
  .step-card:last-child {
    padding: 25px 0;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .step-number {
    font-size: 42px;
  }

  .step-card h3 {
    margin-top: 20px;
    font-size: 23px;
  }

  .step-card p {
    max-width: 100%;
    font-size: 13px;
  }

  .final-cta {
    padding-block: 55px;
  }

  .cta-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 30px;
  }

  .final-cta h2 {
    font-size: 48px;
  }

  .cta-circle {
    align-self: flex-end;
    width: 75px;
    height: 75px;
  }

  .cta-circle .icon {
    width: 33px;
    height: 33px;
  }

  .footer-top {
    flex-wrap: wrap;
    padding-block: 35px;
  }

  .footer-top > p,
  .footer-top > .text-link {
    font-size: 10px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .toast {
    right: 18px;
    bottom: 18px;
    left: 18px;
    max-width: none;
  }
}

@media (max-width: 480px) {
  .studio-stage {
    padding: 20px 17px;
  }

  .studio-intro h1 {
    font-size: clamp(72px, 20vw, 88px);
  }

  .studio-label {
    font-size: 8px;
  }

  .studio-intro > p {
    font-size: 12px;
  }

  .studio-button {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }

  .studio-art {
    min-height: 475px;
  }

  .studio-art-band {
    right: -17px;
    left: -17px;
  }

  .studio-background-word {
    right: 6%;
    font-size: 75px;
  }

  .studio-product {
    inset: 0 12px 125px;
  }

  .studio-side-label {
    right: -7px;
    font-size: 6px;
  }

  .studio-post {
    right: 0;
    bottom: 0;
    width: min(250px, calc(100% - 8px));
    transform: rotate(-3deg);
  }

  .studio-post h2 {
    font-size: 21px;
  }

  .studio-product-label {
    bottom: 235px;
    padding: 9px 10px;
  }

  .studio-product-label strong {
    font-size: 14px;
  }

  .studio-product-label > span {
    font-size: 6px;
  }

  .studio-bottomline {
    margin-top: 22px;
  }

  .studio-bottomline > div {
    font-size: 6px;
  }

  .product-marquee-toolbar {
    gap: 12px;
  }

  .product-marquee-toolbar > span {
    max-width: 185px;
    font-size: 7px;
  }

  .product-slide {
    width: 255px;
  }

  .product-marquee-group {
    gap: 16px;
    padding-right: 16px;
  }

  .possibilities-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
  }
}

/* =========================================
   REDUCED MOTION
========================================= */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .product-marquee.is-animated {
    overflow-x: auto;
  }

  .product-marquee.is-animated .product-marquee-track {
    animation: none !important;
    transform: none;
  }

  .product-marquee-clone {
    display: none;
  }
}