:root {
  --ink: #151923;
  --muted: #626d7e;
  --soft: #f6f4ef;
  --paper: #fffdf8;
  --surface: #ffffff;
  --line: #dde2e8;
  --line-strong: #b9c1cc;
  --orange: #ed6a22;
  --orange-dark: #c94f13;
  --teal: #09a6a0;
  --green: #14c96a;
  --blue: #2f7de1;
  --shadow: 0 18px 45px rgba(20, 27, 39, 0.12);
  --soft-shadow: 0 12px 28px rgba(20, 27, 39, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  max-width: 100%;
  overflow-x: hidden;
  background: var(--soft);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

button,
input,
textarea {
  font: inherit;
  letter-spacing: 0;
}

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

button {
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
}

.builder-band {
  min-height: 100vh;
  padding: 24px;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
  gap: 24px;
  max-width: 1460px;
  margin: 0 auto;
  align-items: start;
  min-width: 0;
}

.setup-panel,
.preview-shell,
.blueprint-panel,
.prompt-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--soft-shadow);
}

.setup-panel {
  position: sticky;
  top: 24px;
  padding: 24px;
}

.brand-line,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--orange-dark);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.brand-dot,
.logo-mark {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange), var(--teal));
  display: inline-block;
}

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

h1 {
  margin-bottom: 14px;
  font-size: 2rem;
  line-height: 1.08;
}

h2 {
  font-size: 1.75rem;
  line-height: 1.12;
}

h3 {
  font-size: 1.15rem;
  line-height: 1.2;
}

.intro-copy {
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 26px;
}

.setup-form {
  display: grid;
  gap: 18px;
}

.step-counter,
.unlock-row,
.quiz-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.meter,
.unlock-meter,
.quiz-progress {
  width: 100%;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e9edf1;
}

.meter span,
.unlock-meter span,
.quiz-progress span {
  display: block;
  width: 20%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--green));
  transition: width 220ms ease;
}

.setup-step {
  display: none;
}

.setup-step.is-active {
  display: grid;
  gap: 12px;
}

.setup-step label {
  font-size: 1.18rem;
  line-height: 1.25;
  font-weight: 850;
}

.suggestion-assistant {
  display: grid;
  gap: 10px;
}

.suggestion-launch {
  width: 100%;
  min-height: 42px;
  border: 1px dashed rgba(9, 166, 160, 0.52);
  border-radius: 8px;
  background: rgba(9, 166, 160, 0.07);
  color: #087b77;
  font-weight: 850;
}

.suggestion-launch:hover {
  border-style: solid;
  background: rgba(9, 166, 160, 0.12);
}

.answer-suggestion {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(9, 166, 160, 0.34);
  border-radius: 8px;
  background: #f2fbfa;
  padding: 14px;
  box-shadow: 0 10px 24px rgba(9, 166, 160, 0.09);
}

.answer-suggestion[hidden] {
  display: none;
}

.suggestion-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.suggestion-heading strong {
  display: block;
  margin-bottom: 3px;
  font-size: 0.94rem;
}

.suggestion-heading small,
.suggestion-note {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

.suggestion-niche {
  flex: 0 0 auto;
  border-radius: 999px;
  background: #dff5f2;
  color: #087b77;
  padding: 5px 8px;
  font-size: 0.7rem;
  font-weight: 850;
}

.suggestion-options {
  display: grid;
  gap: 8px;
}

.suggestion-option {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 11px 12px;
  text-align: left;
  line-height: 1.4;
}

.suggestion-option:hover,
.suggestion-option.is-selected {
  border-color: var(--teal);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(9, 166, 160, 0.1);
}

.suggestion-option strong {
  display: block;
  margin-bottom: 4px;
  color: #087b77;
  font-size: 0.74rem;
  text-transform: uppercase;
}

.suggestion-editor-label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 850;
}

.suggestion-editor-label textarea {
  min-height: 100px;
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.45;
}

.suggestion-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.suggestion-actions button {
  min-height: 42px;
  border-radius: 8px;
  padding: 8px 10px;
  font-weight: 850;
}

.use-suggestion {
  border: 1px solid var(--teal);
  background: var(--teal);
  color: #fff;
}

.keep-answer {
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink);
}

textarea,
input[type="text"],
input[type="url"],
select {
  width: 100%;
  max-width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 14px 15px;
  outline: none;
  resize: vertical;
  min-height: 54px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

textarea:focus,
input[type="text"]:focus,
input[type="url"]:focus,
select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(9, 166, 160, 0.14);
}

select {
  appearance: none;
  min-height: 54px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 20px) 23px,
    calc(100% - 15px) 23px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 42px;
}

[hidden] {
  display: none !important;
}

.field-note {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.4;
}

.field-stack {
  display: grid;
  gap: 12px;
}

.field-group {
  display: grid;
  gap: 7px;
}

.mini-label {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.setup-actions,
.preview-toolbar,
.prompt-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.primary-button,
.ghost-button,
.tool-button,
.small-cta,
.hero-cta,
.quiz-start,
.calendar-link,
.copy-button {
  min-height: 44px;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 850;
  text-decoration: none;
  min-width: 0;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

.primary-button,
.hero-cta,
.quiz-start,
.small-cta {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 12px 24px rgba(237, 106, 34, 0.26);
}

.primary-button:hover,
.hero-cta:hover,
.quiz-start:hover,
.small-cta:hover,
.calendar-link:hover,
.copy-button:hover,
.tool-button:hover {
  transform: translateY(-1px);
}

.ghost-button,
.tool-button,
.copy-button {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}

.ghost-button:disabled,
.text-button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.preview-shell {
  padding: 14px;
  overflow: hidden;
}

.preview-toolbar {
  margin-bottom: 12px;
}

#videoUpload {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

#brandImageUpload {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.color-tool {
  display: grid;
  gap: 12px;
}

.color-actions,
.manual-color-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.color-canvas-wrap {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f2f5f4;
  min-height: 176px;
}

#brandCanvas {
  display: block;
  width: 100%;
  height: 176px;
  cursor: crosshair;
}

.canvas-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 7px;
  padding: 22px;
  color: var(--muted);
  text-align: center;
  pointer-events: none;
}

.canvas-empty strong {
  color: var(--ink);
}

.canvas-empty.is-hidden {
  display: none;
}

.manual-color-row {
  grid-template-columns: 54px 1fr 1fr auto;
  align-items: center;
}

#manualColor {
  width: 54px;
  height: 44px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

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

.brand-swatch {
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  display: grid;
  grid-template-rows: 1fr auto;
}

.brand-swatch span {
  min-height: 28px;
}

.brand-swatch button {
  border: 0;
  background: #fff;
  color: var(--ink);
  min-height: 42px;
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1.2;
  padding: 5px 4px;
}

.brand-swatch button strong,
.brand-swatch button small {
  display: block;
}

.brand-swatch button small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 750;
}

.brand-swatch.is-empty {
  border-style: dashed;
}

.brand-swatch.is-empty span {
  background:
    linear-gradient(135deg, transparent 48%, rgba(98, 109, 126, 0.24) 50%, transparent 52%),
    #f3f5f6;
}

.funnel-page {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.funnel-nav {
  min-width: 0;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 32px;
  border-bottom: 1px solid rgba(221, 226, 232, 0.78);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
}

.funnel-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  flex: 0 0 auto;
}

.funnel-brand strong,
.funnel-brand small {
  display: block;
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.funnel-brand small {
  color: var(--muted);
  font-weight: 700;
}

.small-cta {
  min-height: 38px;
  padding: 0 14px;
  white-space: nowrap;
}

.funnel-hero {
  min-height: 520px;
  display: grid;
  place-items: center;
  align-content: center;
  justify-items: center;
  padding: 54px 26px;
  text-align: center;
}

.funnel-hero h2 {
  width: min(760px, 100%);
  margin-bottom: 16px;
  font-size: 2.3rem;
}

.funnel-hero p:not(.section-kicker) {
  width: min(600px, 100%);
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 22px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  justify-content: center;
  margin-top: 28px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.hero-points span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-points span::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--teal);
}

.video-section {
  min-height: 680px;
  padding: 64px 24px 44px;
  background:
    radial-gradient(circle at 18% 16%, rgba(9, 166, 160, 0.12), transparent 30%),
    radial-gradient(circle at 82% 6%, rgba(237, 106, 34, 0.1), transparent 27%),
    linear-gradient(180deg, #fbfaf6, #f3faf7);
  transition: padding 220ms ease;
}

.video-section.quiz-active {
  padding-top: 30px;
}

.video-title {
  width: min(780px, 100%);
  margin: 0 auto 28px;
  text-align: center;
}

.video-title h2 {
  margin-bottom: 8px;
}

.video-title p:not(.section-kicker) {
  margin-bottom: 0;
  color: var(--muted);
}

.video-cluster {
  display: grid;
  grid-template-columns: minmax(148px, 210px) minmax(240px, 320px) minmax(148px, 210px);
  justify-content: center;
  align-items: start;
  gap: 22px;
}

.side-proof {
  display: grid;
  gap: 12px;
  margin-top: 54px;
}

.left-proof {
  transform: none;
}

.right-proof {
  transform: none;
}

.proof-card {
  min-height: 86px;
  border: 1px solid rgba(221, 226, 232, 0.88);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  padding: 12px;
  box-shadow: 0 10px 24px rgba(20, 27, 39, 0.08);
}

.proof-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  background: rgba(9, 166, 160, 0.13);
  color: var(--teal);
  font-size: 0.74rem;
  font-weight: 900;
}

.proof-card:nth-child(even) .proof-icon {
  background: rgba(237, 106, 34, 0.14);
  color: var(--orange-dark);
}

.proof-card strong,
.proof-card small {
  display: block;
}

.proof-card strong {
  margin-bottom: 4px;
}

.proof-card small {
  color: var(--muted);
  line-height: 1.35;
}

.phone-column {
  display: grid;
  justify-items: center;
  align-content: start;
}

.phone-frame {
  position: relative;
  width: 270px;
  aspect-ratio: 1284 / 2778;
  border: 2px solid #596372;
  border-radius: 13% / 6.5%;
  overflow: visible;
  padding: 7px;
  background: linear-gradient(110deg, #202733 0%, #8b95a3 16%, #252d39 38%, #111722 72%, #74808f 100%);
  box-shadow:
    0 30px 58px rgba(18, 27, 43, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.34),
    inset 0 0 0 3px rgba(8, 12, 18, 0.72);
  transition: width 220ms ease, transform 220ms ease;
}

.video-section.quiz-active .phone-frame {
  width: 180px;
}

.phone-notch {
  position: absolute;
  top: -1px;
  left: 50%;
  z-index: 5;
  width: 43%;
  height: 5.2%;
  transform: translateX(-50%);
  border-radius: 0 0 18px 18px;
  background: #05070a;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04);
}

.phone-notch::before {
  content: "";
  position: absolute;
  top: 27%;
  left: 50%;
  width: 37%;
  height: 11%;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #171b21;
  box-shadow: inset 0 0 0 1px #252b34;
}

.phone-notch::after {
  content: "";
  position: absolute;
  top: 23%;
  right: 16%;
  width: 7%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 34%, #27466d 0 18%, #101825 38%, #030508 72%);
  box-shadow: 0 0 0 1px #171c24;
}

.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 1px solid #05070a;
  border-radius: 11.5% / 5.7%;
  background: #0c121d;
}

.iphone-button {
  position: absolute;
  z-index: 0;
  width: 4px;
  border-radius: 3px 0 0 3px;
  background: linear-gradient(90deg, #1d2430, #737e8d);
  box-shadow: inset 1px 0 rgba(255, 255, 255, 0.18);
}

.iphone-silent {
  top: 14%;
  left: -5px;
  height: 6%;
}

.iphone-volume-up,
.iphone-volume-down {
  left: -5px;
  height: 10%;
}

.iphone-volume-up {
  top: 23%;
}

.iphone-volume-down {
  top: 35%;
}

.iphone-power {
  top: 26%;
  right: -5px;
  left: auto;
  height: 17%;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(90deg, #737e8d, #1d2430);
}

.phone-screen video,
.video-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.phone-screen video {
  object-fit: cover;
  background: #0c121d;
}

.phone-screen video:not([src]) {
  display: none;
}

.video-placeholder {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 28px;
  text-align: center;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(12, 18, 29, 0.1), rgba(12, 18, 29, 0.9)),
    linear-gradient(135deg, #1e645f, #1d2635 54%, #863f1d);
}

.video-placeholder span {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.35;
}

.unlock-card {
  width: min(320px, 100%);
  margin-top: 14px;
  display: grid;
  gap: 10px;
  border: 1px solid rgba(221, 226, 232, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  padding: 13px;
  box-shadow: var(--soft-shadow);
}

.unlock-card.is-hidden {
  display: none;
}

.unlock-row strong {
  color: var(--teal);
}

.unlock-meter span {
  width: 100%;
}

.quiz-start {
  width: 100%;
}

.quiz-card {
  width: min(520px, 100%);
  margin-top: 12px;
  display: grid;
  gap: 14px;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.quiz-card[hidden],
.calendar-panel[hidden] {
  display: none;
}

.quiz-card h3 {
  margin: 0;
  text-align: center;
}

.quiz-options {
  display: grid;
  gap: 10px;
}

.quiz-option {
  min-height: 58px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  padding: 12px;
  display: grid;
  grid-template-columns: 36px 1fr;
  align-items: center;
  gap: 12px;
  text-align: left;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(20, 27, 39, 0.06);
}

.quiz-option:hover {
  border-color: var(--ink);
}

.quiz-option span {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eff3f6;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 900;
}

.quiz-option:hover span {
  background: #111722;
  color: #fff;
}

.text-button {
  justify-self: center;
  border: 0;
  background: transparent;
  color: var(--muted);
  min-height: 36px;
}

.calendar-panel {
  width: min(520px, 100%);
  margin-top: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--soft-shadow);
  text-align: center;
}

.calendar-panel h3 {
  margin-bottom: 8px;
}

.calendar-panel p:not(.section-kicker) {
  color: var(--muted);
  line-height: 1.45;
}

.mini-calendar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin: 16px auto;
  max-width: 280px;
}

.mini-calendar span {
  height: 46px;
  border-radius: 8px;
  background: #eef2f5;
}

.mini-calendar .is-selected {
  background: var(--green);
}

.calendar-link {
  background: var(--green);
  color: #073418;
  width: 100%;
}

.output-band {
  padding: 24px;
}

.output-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) repeat(2, minmax(320px, 1fr));
  gap: 24px;
  max-width: 1460px;
  margin: 0 auto;
}

.blueprint-panel,
.prompt-panel {
  padding: 24px;
}

.blueprint-list {
  display: grid;
  gap: 12px;
}

.blueprint-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

.blueprint-item strong {
  display: block;
  margin-bottom: 6px;
}

.blueprint-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

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

.prompt-heading h2 {
  margin-bottom: 0;
}

.prompt-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 750;
}

.prompt-meta span,
.prompt-meta strong {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 0 10px;
}

.prompt-meta strong {
  border-color: rgba(20, 201, 106, 0.34);
  background: rgba(20, 201, 106, 0.1);
  color: #0b7a3c;
}

.copy-button {
  flex: 0 0 auto;
}

#promptOutput,
#imagePromptOutput {
  min-height: 520px;
  border-color: var(--line);
  background: #111722;
  color: #eef5f4;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.9rem;
  line-height: 1.55;
  resize: vertical;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 20;
  transform: translateX(-50%) translateY(18px);
  opacity: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 8px;
  background: #111722;
  color: #fff;
  padding: 12px 16px;
  font-weight: 800;
  box-shadow: var(--shadow);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast::before {
  content: "";
  display: none;
}

.toast.is-success {
  border: 1px solid rgba(34, 197, 94, 0.46);
  background: #0b1d14;
  color: #ecfdf5;
}

.toast.is-success::before {
  content: "\2713";
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border-radius: 999px;
  background: #22c55e;
  color: #052e16;
  font-size: 0.88rem;
  line-height: 1;
  box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.16);
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 1080px) {
  .workspace,
  .output-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .setup-panel {
    position: static;
  }
}

@media (max-width: 860px) {
  .builder-band,
  .output-band {
    padding: 14px;
  }

  .workspace,
  .output-grid {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .funnel-nav {
    padding: 14px;
  }

  .funnel-brand strong,
  .funnel-brand small {
    max-width: 142px;
  }

  .funnel-hero {
    min-height: 460px;
    padding: 42px 18px;
  }

  .funnel-hero h2 {
    font-size: 1.85rem;
  }

  .video-section {
    padding: 42px 14px 32px;
  }

  .video-cluster {
    grid-template-columns: minmax(94px, 1fr) minmax(184px, 224px) minmax(94px, 1fr);
    gap: 10px;
  }

  .side-proof {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 34px;
    width: auto;
  }

  .proof-card {
    min-height: 72px;
    padding: 9px;
  }

  .proof-card strong {
    font-size: 0.86rem;
  }

  .proof-card small {
    font-size: 0.76rem;
  }

  .proof-icon {
    width: 26px;
    height: 26px;
    margin-bottom: 6px;
  }

  .video-section.quiz-active .side-proof {
    display: none;
  }

  .phone-frame {
    width: 224px;
  }

  .video-section.quiz-active .phone-frame {
    width: 166px;
  }
}

@media (max-width: 560px) {
  html,
  body,
  .app-shell {
    width: 100svw;
  }

  .builder-band,
  .output-band {
    padding: 8px;
    width: 100svw;
  }

  .workspace,
  .output-grid {
    display: block;
    width: 100%;
  }

  .setup-panel,
  .preview-shell,
  .blueprint-panel,
  .prompt-panel {
    padding: 16px;
    width: min(350px, calc(100svw - 16px));
    max-width: min(350px, calc(100svw - 16px));
    overflow: hidden;
  }

  .setup-form,
  .setup-step,
  .field-stack,
  .field-group,
  .color-tool,
  .color-actions,
  .manual-color-row,
  .brand-swatches,
  .step-counter,
  .meter,
  textarea,
  input[type="text"],
  input[type="url"],
  select,
  .setup-actions {
    width: 100%;
    max-width: min(318px, calc(100svw - 50px));
  }

  .color-actions,
  .manual-color-row {
    grid-template-columns: 1fr;
  }

  #manualColor {
    width: 100%;
  }

  .funnel-page {
    width: min(334px, calc(100svw - 32px));
    max-width: min(334px, calc(100svw - 32px));
  }

  .preview-shell,
  .prompt-panel {
    margin-top: 14px;
  }

  .preview-shell {
    padding: 8px;
  }

  h1 {
    font-size: 1.65rem;
    max-width: min(318px, calc(100svw - 50px));
    overflow-wrap: anywhere;
  }

  h2 {
    font-size: 1.45rem;
  }

  .setup-actions,
  .preview-toolbar,
  .prompt-heading {
    align-items: stretch;
    flex-direction: column;
  }

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

  .suggestion-actions {
    grid-template-columns: 1fr;
  }

  .ghost-button,
  .primary-button,
  .tool-button,
  .copy-button {
    width: 100%;
  }

  .small-cta {
    min-height: 36px;
    padding: 0 11px;
    max-width: 104px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .funnel-nav {
    gap: 10px;
  }

  .funnel-hero h2 {
    font-size: 1.55rem;
  }

  .hero-points {
    gap: 9px 12px;
  }

  .side-proof {
    display: none;
  }

  .phone-frame {
    width: 202px;
  }

  .video-section.quiz-active .phone-frame {
    width: 154px;
  }

  .quiz-option {
    grid-template-columns: 32px 1fr;
    font-size: 0.88rem;
  }

  .quiz-option span {
    width: 32px;
    height: 32px;
  }

  #promptOutput,
  #imagePromptOutput {
    min-height: 430px;
  }
}
