:root {
  --bg: #070b0a;
  --panel: rgba(18, 25, 23, 0.76);
  --panel-soft: rgba(248, 242, 223, 0.08);
  --ink: #f8f2df;
  --muted: rgba(248, 242, 223, 0.64);
  --line: rgba(248, 242, 223, 0.13);
  --gold: #f4d77c;
  --coral: #ff765f;
  --green: #58b28f;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
  background:
    radial-gradient(circle at 78% 6%, rgba(244, 215, 124, 0.2), transparent 24%),
    radial-gradient(circle at 7% 30%, rgba(88, 178, 143, 0.18), transparent 27%),
    linear-gradient(180deg, #08100e 0%, #120d0b 100%);
}

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

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

.app-shell {
  width: min(100vw - 20px, 640px);
  margin: 0 auto;
  padding: 10px 0 56px;
  transition: width 220ms ease;
}

.desktop-canvas-active .app-shell {
  width: min(100vw - 20px, 1040px);
}

.desktop-canvas-active .hero,
.desktop-canvas-active .product-console,
.desktop-canvas-active .step-panel,
.desktop-canvas-active .pricing-panel,
.desktop-canvas-active .advanced-settings {
  width: min(100%, 640px);
  margin-left: auto;
  margin-right: auto;
}

.desktop-canvas-active .scene-shell {
  width: 100%;
}

[hidden] {
  display: none !important;
}

.account-bubble {
  width: auto;
  min-height: 38px;
  border: 1px solid rgba(248, 242, 223, 0.18);
  border-radius: 999px;
  padding: 0 13px;
  color: var(--ink);
  background: rgba(248, 242, 223, 0.1);
  font-size: 0.82rem;
  font-weight: 900;
}

.hero {
  position: relative;
  display: grid;
  gap: 18px;
  min-height: 82svh;
  align-content: end;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 30px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(7, 11, 10, 0.05), rgba(7, 11, 10, 0.9)),
    url("./assets/living-scene-mobile-bg.png") center / cover;
  box-shadow: var(--shadow);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero::before {
  background:
    radial-gradient(circle at 26% 42%, rgba(244, 215, 124, 0.18), transparent 15%),
    radial-gradient(circle at 74% 28%, rgba(88, 178, 143, 0.16), transparent 17%),
    linear-gradient(115deg, transparent 0 42%, rgba(244, 215, 124, 0.1) 48%, transparent 56%);
  mix-blend-mode: screen;
  animation: heroAwake 8s ease-in-out infinite alternate;
}

.hero::after {
  background-image:
    radial-gradient(circle, rgba(248, 242, 223, 0.5) 0 1px, transparent 2px),
    radial-gradient(circle, rgba(255, 118, 95, 0.5) 0 1px, transparent 2px);
  background-position: 18% 32%, 82% 62%;
  background-size: 130px 170px, 180px 140px;
  opacity: 0.35;
  animation: emberRise 11s linear infinite;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero .account-bubble {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: auto;
}

.hero-actions {
  display: grid;
  gap: 10px;
}

.eyebrow,
.step-label,
.ai-guide-card p {
  margin: 0;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-weight: 400;
  line-height: 1;
}

h1 {
  max-width: 720px;
  font-size: clamp(3.25rem, 16vw, 5.4rem);
}

h2 {
  font-size: clamp(1.65rem, 7vw, 2.15rem);
}

h3 {
  font-size: 1.45rem;
}

.hero-subtext {
  max-width: 680px;
  margin: 0;
  color: rgba(248, 242, 223, 0.78);
  line-height: 1.55;
}

.primary-button,
.secondary-button,
.hotspot-marker,
.scene-action,
.guide-cta,
.text-action {
  cursor: pointer;
}

.primary-button,
.secondary-button {
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 14px 17px;
  font-weight: 900;
}

.primary-button {
  color: #11140f;
  background: var(--gold);
}

.secondary-button {
  color: var(--ink);
  background: rgba(248, 242, 223, 0.1);
  border: 1px solid var(--line);
}

.builder {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.editor-panel {
  display: none;
}

.is-preview-mode .setup-panel,
.is-preview-mode .editor-panel,
.is-preview-mode .motion-panel,
.is-preview-mode .pricing-panel,
.is-preview-mode .advanced-settings {
  display: none;
}

.quick-start-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.quick-start-step {
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(248, 242, 223, 0.1);
  border-radius: 18px;
  background: rgba(18, 25, 23, 0.58);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18);
}

.quick-start-step strong,
.quick-start-step span {
  display: block;
}

.quick-start-step strong {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.quick-start-step span {
  margin-top: 4px;
  color: rgba(248, 242, 223, 0.66);
  font-size: 0.74rem;
  line-height: 1.25;
}

.quick-start-step.done {
  border-color: rgba(88, 178, 143, 0.34);
  background: rgba(88, 178, 143, 0.1);
}

.quick-start-step.live {
  grid-column: 1 / -1;
  border-color: rgba(244, 215, 124, 0.24);
  background: rgba(244, 215, 124, 0.08);
}

.product-console,
.pricing-panel,
.pilot-panel {
  margin-top: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background:
    radial-gradient(circle at 12% 0%, rgba(244, 215, 124, 0.12), transparent 16rem),
    rgba(18, 25, 23, 0.64);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(16px);
}

.account-panel {
  scroll-margin-top: 58px;
}

.account-subpanel {
  margin-top: 16px;
  padding: 14px;
  border-radius: 20px;
  box-shadow: none;
}

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

.plan-badge {
  flex: 0 0 auto;
  padding: 8px 10px;
  border: 1px solid rgba(244, 215, 124, 0.28);
  border-radius: 999px;
  color: #10130f;
  background: var(--gold);
  font-size: 0.72rem;
  font-weight: 950;
}

.owner-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
}

.account-recovery {
  margin-top: 12px;
  border: 1px solid rgba(248, 242, 223, 0.1);
  border-radius: 18px;
  padding: 10px 12px;
  background: rgba(248, 242, 223, 0.045);
}

.account-recovery summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 900;
}

.account-recovery p {
  margin: 9px 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.account-recovery textarea {
  width: 100%;
  min-height: 68px;
  margin-bottom: 9px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px;
  color: var(--ink);
  background: rgba(4, 8, 7, 0.42);
}

.owner-tools-panel {
  margin-top: 14px;
  border: 1px solid rgba(244, 215, 124, 0.18);
  border-radius: 20px;
  padding: 12px;
  background: rgba(248, 242, 223, 0.045);
}

.owner-tools-panel > summary {
  display: grid;
  gap: 4px;
  cursor: pointer;
  list-style: none;
}

.owner-tools-panel > summary::-webkit-details-marker {
  display: none;
}

.owner-tools-panel > summary span {
  color: var(--ink);
  font-weight: 950;
}

.owner-tools-panel > summary small {
  color: var(--muted);
  line-height: 1.35;
}

.owner-tools-panel[open] > summary {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(248, 242, 223, 0.1);
}

.owner-tools-panel .pilot-panel {
  margin-top: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.project-actions,
.pricing-grid,
.brand-editor {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}

.brand-editor {
  padding: 10px;
  border: 1px solid rgba(248, 242, 223, 0.1);
  border-radius: 20px;
  background: rgba(248, 242, 223, 0.045);
}

.color-field input[type="color"] {
  min-height: 42px;
  padding: 4px;
}

.checkbox-field {
  grid-template-columns: auto 1fr;
  align-items: center;
}

.checkbox-field > span,
.checkbox-field > small {
  grid-column: 1 / -1;
}

.checkbox-field input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: var(--gold);
}

.checkbox-field input[type="checkbox"]:disabled {
  opacity: 0.55;
}

.compact-button {
  min-height: 42px;
  padding: 10px 13px;
  font-size: 0.84rem;
}

.console-note,
.paywall-note,
.pricing-panel p,
.pilot-panel p,
.checkout-status {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.product-readiness {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(248, 242, 223, 0.1);
  border-radius: 18px;
  color: var(--muted);
  background: rgba(248, 242, 223, 0.045);
}

.product-readiness strong {
  color: var(--ink);
}

.product-readiness small {
  color: var(--muted);
  line-height: 1.35;
}

.launch-checklist {
  display: grid;
  gap: 8px;
}

.launch-check {
  display: grid;
  gap: 3px;
  padding: 11px;
  border: 1px solid rgba(248, 242, 223, 0.1);
  border-radius: 16px;
  background: rgba(7, 11, 10, 0.28);
}

.launch-check > span {
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.64rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.launch-check.ready > span {
  color: #07110e;
  background: #9ff0c9;
}

.launch-check.waiting > span {
  color: #12100a;
  background: var(--gold);
}

.launch-needs {
  display: grid;
  gap: 5px;
  padding: 11px;
  border: 1px solid rgba(244, 215, 124, 0.22);
  border-radius: 16px;
  background: rgba(244, 215, 124, 0.08);
}

.sell-now-box {
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid rgba(159, 240, 201, 0.18);
  border-radius: 18px;
  background:
    radial-gradient(circle at 10% 0%, rgba(159, 240, 201, 0.16), transparent 34%),
    rgba(7, 11, 10, 0.34);
}

.sell-now-box.ready {
  border-color: rgba(159, 240, 201, 0.34);
}

.sell-now-box > span,
.sell-now-field > span {
  width: fit-content;
  color: #9ff0c9;
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.sell-now-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.sell-now-actions > * {
  flex: 1 1 120px;
}

.pricing-sell-now {
  margin-top: 14px;
}

.pricing-sell-now-card {
  border-radius: 20px;
}

.pricing-sell-now.attention .pricing-sell-now-card {
  animation: sellNowFocus 1.05s ease-in-out 2;
}

@keyframes sellNowFocus {
  0%,
  100% {
    box-shadow: 0 0 0 rgba(159, 240, 201, 0);
  }

  50% {
    box-shadow: 0 0 0 4px rgba(159, 240, 201, 0.12), 0 0 34px rgba(159, 240, 201, 0.22);
  }
}

.publish-success-readiness {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding: 11px;
  border: 1px solid rgba(248, 242, 223, 0.1);
  border-radius: 18px;
  background: rgba(7, 11, 10, 0.28);
}

.publish-success-readiness > strong {
  color: var(--ink);
}

.publish-readiness-grid {
  display: grid;
  gap: 7px;
}

.publish-readiness-grid span {
  display: grid;
  gap: 2px;
  padding: 8px 10px;
  border-radius: 14px;
  font-size: 0.75rem;
  font-weight: 900;
}

.publish-readiness-grid small {
  color: rgba(248, 242, 223, 0.62);
  font-size: 0.7rem;
  font-weight: 700;
}

.publish-readiness-grid .ready {
  color: #baf1d7;
  border: 1px solid rgba(88, 178, 143, 0.32);
  background: rgba(88, 178, 143, 0.13);
}

.publish-readiness-grid .waiting {
  color: #f4d77c;
  border: 1px solid rgba(244, 215, 124, 0.24);
  background: rgba(244, 215, 124, 0.09);
}

.square-launch-steps {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid rgba(244, 215, 124, 0.2);
  border-radius: 15px;
  background: rgba(244, 215, 124, 0.08);
}

.square-launch-steps strong {
  color: var(--ink);
  font-size: 0.86rem;
}

.square-launch-steps small {
  color: var(--muted);
  line-height: 1.35;
}

.stripe-launch-kit {
  border: 1px solid rgba(248, 242, 223, 0.11);
  border-radius: 18px;
  padding: 11px;
  background: rgba(7, 11, 10, 0.24);
}

.stripe-launch-kit summary {
  display: grid;
  gap: 3px;
  cursor: pointer;
  list-style: none;
}

.stripe-launch-kit summary::-webkit-details-marker {
  display: none;
}

.stripe-launch-kit summary span {
  color: var(--ink);
  font-weight: 950;
}

.launch-copy-field {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.launch-copy-field span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.launch-copy-field input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px;
  color: var(--ink);
  background: rgba(4, 8, 7, 0.42);
}

.compact-launch-list {
  margin-top: 10px;
}

.launch-kit-actions {
  display: grid;
  gap: 7px;
  margin-top: 10px;
}

.launch-kit-actions .compact-button {
  justify-content: center;
}

.launch-kit-actions small {
  color: var(--muted);
}

.readiness-grid {
  display: grid;
  gap: 7px;
}

.readiness-pill {
  display: block;
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 0.73rem;
  font-weight: 850;
}

.readiness-pill.ready {
  color: #baf1d7;
  background: rgba(88, 178, 143, 0.16);
  border: 1px solid rgba(88, 178, 143, 0.32);
}

.readiness-pill.waiting {
  color: #f4d77c;
  background: rgba(244, 215, 124, 0.11);
  border: 1px solid rgba(244, 215, 124, 0.24);
}

.project-shelf {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.lead-console {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.lead-console-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.lead-console-head span {
  display: block;
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lead-console-head strong {
  display: block;
  margin-top: 3px;
  line-height: 1.25;
}

.lead-console-actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.lead-inbox {
  display: grid;
  gap: 8px;
}

.project-card,
.empty-project-card,
.lead-card,
.empty-lead-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 8px;
  background: rgba(248, 242, 223, 0.06);
}

.project-card.active {
  border-color: rgba(244, 215, 124, 0.46);
  box-shadow: 0 0 0 1px rgba(244, 215, 124, 0.1);
}

.project-card button:first-child,
.empty-project-card,
.empty-lead-card,
.lead-card {
  min-width: 0;
  border: 0;
  color: var(--ink);
  background: transparent;
  text-align: left;
}

.project-card strong,
.empty-project-card strong,
.lead-card strong,
.empty-lead-card strong {
  display: block;
  font-weight: 950;
}

.project-card span,
.empty-project-card span,
.lead-card span,
.empty-lead-card span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.76rem;
}

.lead-card {
  grid-template-columns: 1fr;
}

.lead-card p {
  margin: 0;
  color: rgba(248, 242, 223, 0.74);
  font-size: 0.82rem;
  line-height: 1.42;
}

.lead-reply-action {
  width: fit-content;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 11px;
  border: 1px solid rgba(159, 240, 201, 0.22);
  border-radius: 999px;
  color: #9ff0c9;
  background: rgba(159, 240, 201, 0.08);
  font-size: 0.74rem;
  font-weight: 950;
  text-decoration: none;
}

.project-card-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mini-project-action {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 10px;
  color: var(--ink);
  background: rgba(248, 242, 223, 0.08);
  font-size: 0.72rem;
  font-weight: 900;
  text-decoration: none;
}

.pricing-panel {
  display: grid;
  gap: 10px;
}

.motion-panel > summary {
  display: grid;
  gap: 4px;
  cursor: pointer;
  list-style: none;
}

.motion-panel > summary::-webkit-details-marker {
  display: none;
}

.motion-panel > summary span {
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.motion-panel > summary strong {
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(1.15rem, 6vw, 1.8rem);
  letter-spacing: -0.04em;
}

.motion-panel:not([open]) {
  opacity: 0.82;
}

.video-credit-panel,
.motion-lab,
.hosted-motion-panel {
  display: grid;
  gap: 8px;
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(248, 242, 223, 0.1);
}

.hidden-motion-control,
.internal-motion-credit-panel {
  display: none !important;
}

.readiness-details {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.readiness-details summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.video-credit-panel summary,
.motion-lab summary,
.hosted-motion-panel summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 950;
}

.video-credit-panel h3,
.motion-lab h3,
.hosted-motion-panel h3 {
  margin: 0;
  font-size: 1rem;
}

.motion-lab p,
.hosted-motion-panel p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

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

.single-offer-grid {
  grid-template-columns: 1fr;
}

.pricing-grid article,
.pilot-grid article {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(248, 242, 223, 0.06);
}

.pricing-grid article span,
.pilot-grid article span {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pricing-grid article strong,
.pilot-grid article strong {
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: 2rem;
  font-weight: 400;
}

.pricing-grid article small,
.pilot-grid article small {
  color: var(--muted);
  line-height: 1.4;
}

.featured-plan,
.pilot-grid article.selected {
  border-color: rgba(244, 215, 124, 0.4) !important;
  background:
    radial-gradient(circle at 100% 0%, rgba(244, 215, 124, 0.16), transparent 12rem),
    rgba(248, 242, 223, 0.08) !important;
}

.service-plan {
  border-color: rgba(240, 107, 79, 0.34) !important;
  background:
    radial-gradient(circle at 0% 0%, rgba(240, 107, 79, 0.16), transparent 11rem),
    rgba(248, 242, 223, 0.055) !important;
}

.pilot-panel {
  display: grid;
  gap: 10px;
}

.pilot-grid,
.pilot-delivery {
  display: grid;
  gap: 9px;
  margin-top: 4px;
}

.pilot-grid article {
  cursor: pointer;
}

.pilot-checklist {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.pilot-checklist span {
  border: 1px solid rgba(255, 118, 95, 0.28);
  border-radius: 999px;
  padding: 7px 9px;
  color: rgba(248, 242, 223, 0.76);
  background: rgba(255, 118, 95, 0.08);
  font-size: 0.72rem;
  font-weight: 900;
}

.pilot-checklist span.ready {
  border-color: rgba(88, 178, 143, 0.36);
  color: #d9fff0;
  background: rgba(88, 178, 143, 0.1);
}

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

.pilot-actions .compact-button {
  flex: 1 1 150px;
  justify-content: center;
  text-align: center;
  text-decoration: none;
}

.step-panel,
.scene-shell,
.advanced-settings {
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(18, 25, 23, 0.58);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(16px);
}

.step-panel,
.advanced-settings {
  padding: 18px;
}

.setup-panel h2,
.upload-panel h2,
.editor-panel h2,
.scene-quality-panel h2,
.publish-panel h2 {
  margin-top: 8px;
}

.setup-note,
.publish-note,
.upload-mode-note {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.motion-roadmap {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.motion-roadmap span {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(248, 242, 223, 0.1);
  border-radius: 999px;
  color: rgba(248, 242, 223, 0.78);
  background: rgba(248, 242, 223, 0.055);
  font-size: 0.84rem;
  font-weight: 900;
}

.motion-roadmap span::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 18px rgba(244, 215, 124, 0.42);
}

.field {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.field[hidden],
.hidden-field {
  display: none;
}

.field span {
  font-size: 0.84rem;
  font-weight: 900;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  color: var(--ink);
  background: rgba(248, 242, 223, 0.08);
  outline: none;
}

.soft-field select {
  min-height: 54px;
  font-weight: 900;
}

.field textarea {
  min-height: 112px;
  resize: vertical;
}

.quick-row,
.publish-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.upload-card {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  padding: 22px;
  border: 1px dashed rgba(244, 215, 124, 0.42);
  border-radius: 22px;
  background: var(--panel-soft);
}

.upload-card input {
  display: none;
}

.upload-card span {
  font-weight: 900;
}

.upload-card small,
.demo-link,
.advanced-settings p {
  color: var(--muted);
}

.quick-row .primary-button {
  flex: 1 1 190px;
}

.quick-row .secondary-button {
  flex: 0 0 auto;
  width: auto;
}

.switch-field {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 170px;
  justify-content: center;
  min-height: 48px;
  padding: 7px 12px 7px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: rgba(248, 242, 223, 0.82);
  background: rgba(248, 242, 223, 0.06);
  font-size: 0.86rem;
  font-weight: 900;
}

.switch-field input {
  appearance: none;
  position: relative;
  width: 46px;
  height: 26px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(248, 242, 223, 0.12);
  transition: background 180ms ease, border-color 180ms ease;
}

.switch-field input::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: rgba(248, 242, 223, 0.8);
  transition: transform 180ms ease, background 180ms ease;
}

.switch-field input:checked {
  border-color: rgba(244, 215, 124, 0.8);
  background: rgba(244, 215, 124, 0.22);
}

.switch-field input:checked::before {
  background: var(--gold);
  transform: translateX(20px);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mode-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  flex: 1 1 210px;
  gap: 5px;
  min-height: 50px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(248, 242, 223, 0.06);
  box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.16);
}

.mode-choice {
  border: 0;
  border-radius: 999px;
  color: rgba(248, 242, 223, 0.68);
  background: transparent;
  font-weight: 950;
  letter-spacing: 0.02em;
}

.mode-choice.active {
  color: #07110e;
  background: var(--gold);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
}

.scene-shell {
  padding: 12px;
}

.scene-shell.editing {
  box-shadow: 0 0 0 1px rgba(244, 215, 124, 0.1), 0 20px 70px rgba(0, 0, 0, 0.22);
}

.scene-shell.previewing {
  border-color: rgba(88, 178, 143, 0.34);
  box-shadow: 0 0 0 1px rgba(88, 178, 143, 0.12), 0 26px 90px rgba(0, 0, 0, 0.28);
}

.scene-topbar {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 6px 14px;
}

.device-field {
  display: grid;
  gap: 5px;
  min-width: 112px;
}

.device-field span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.device-field select {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 10px;
  color: var(--ink);
  background: rgba(248, 242, 223, 0.08);
  font-size: 0.8rem;
  font-weight: 900;
}

.phone-stage {
  display: grid;
  place-items: center;
  padding: 6px 0;
}

.living-page {
  --brand-color: var(--gold);
  position: relative;
  width: min(100%, 430px);
  min-height: min(760px, calc(100svh - 132px));
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border: 1px solid rgba(248, 242, 223, 0.12);
  border-radius: 34px;
  background: #030706;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
  transition: width 240ms ease, aspect-ratio 240ms ease, border-radius 240ms ease;
}

.living-page.desktop-preview {
  width: min(100%, 840px);
  min-height: 520px;
  aspect-ratio: 16 / 10;
  border-radius: 26px;
}

.media-layer,
.scene-media,
.scene-embed,
.fog-layer,
.life-layer,
.hotspot-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.media-layer {
  z-index: 0;
}

.scene-media {
  object-fit: cover;
  transform: scale(1.02);
  animation: slowPush 16s ease-in-out infinite alternate;
}

.generated-bg {
  filter: saturate(1.05) contrast(1.03);
}

.scene-embed {
  border: 0;
}

.fog-layer {
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(circle at 18% 20%, color-mix(in srgb, var(--brand-color) 24%, transparent), transparent 24%),
    radial-gradient(circle at 75% 62%, rgba(88, 178, 143, 0.14), transparent 25%),
    linear-gradient(180deg, transparent 38%, rgba(7, 11, 10, 0.84));
  animation: drift 9s ease-in-out infinite alternate;
}

.life-layer {
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}

.life-layer::before {
  content: "";
  position: absolute;
  inset: -18%;
  background:
    conic-gradient(from 190deg at 50% 48%, transparent 0 18%, color-mix(in srgb, var(--brand-color) 18%, transparent) 22%, transparent 32%, rgba(88, 178, 143, 0.12) 46%, transparent 58%, rgba(255, 118, 95, 0.1) 72%, transparent 86%),
    radial-gradient(circle at 50% 54%, color-mix(in srgb, var(--brand-color) 16%, transparent), transparent 32%);
  filter: blur(16px);
  opacity: 0.66;
  animation: livingCurrent 13s ease-in-out infinite alternate;
}

.life-orb {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--brand-color);
  box-shadow: 0 0 18px color-mix(in srgb, var(--brand-color) 72%, transparent), 0 0 34px rgba(255, 118, 95, 0.3);
  opacity: 0.74;
  animation: sceneFloat 8s ease-in-out infinite alternate;
}

.orb-a {
  left: 22%;
  top: 27%;
}

.orb-b {
  right: 18%;
  top: 50%;
  animation-delay: -2.5s;
}

.orb-c {
  left: 48%;
  top: 68%;
  animation-delay: -5s;
}

.signal-line {
  position: absolute;
  height: 1px;
  width: 42%;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--brand-color) 58%, transparent), transparent);
  transform-origin: left center;
  opacity: 0.58;
  filter: drop-shadow(0 0 9px color-mix(in srgb, var(--brand-color) 46%, transparent));
  animation: signalSweep 5.5s ease-in-out infinite;
}

.line-a {
  left: 18%;
  top: 43%;
  transform: rotate(-22deg);
}

.line-b {
  left: 33%;
  top: 62%;
  transform: rotate(18deg);
  animation-delay: -2.8s;
}

.hotspot-layer {
  z-index: 4;
}

.mode-banner {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 6;
  display: flex;
  justify-content: center;
  pointer-events: none;
  color: #10130f;
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.mode-banner::before {
  content: "";
  position: absolute;
  inset: -5px 42px;
  border: 1px dashed rgba(244, 215, 124, 0.48);
  border-radius: 999px;
  background: rgba(244, 215, 124, 0.86);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(12px);
  z-index: -1;
}

.mode-banner.preview {
  color: var(--ink);
}

.mode-banner.preview::before {
  border-style: solid;
  border-color: rgba(88, 178, 143, 0.42);
  background: rgba(8, 13, 12, 0.64);
}

.hotspot-line-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.hotspot-connector {
  stroke: var(--hotspot-color, var(--coral));
  stroke-width: 0.38;
  stroke-linecap: round;
  stroke-dasharray: 2 1.4;
  opacity: 0.66;
  filter: drop-shadow(0 0 3px color-mix(in srgb, var(--hotspot-color, var(--coral)) 70%, transparent));
  pointer-events: stroke;
}

.scene-shell.previewing .hotspot-connector,
.scene-shell.previewing .hotspot-anchor {
  pointer-events: none;
}

.hotspot-anchor {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: var(--hotspot-color, var(--coral));
  box-shadow: 0 0 0 7px color-mix(in srgb, var(--hotspot-color, var(--coral)) 22%, transparent), 0 0 20px color-mix(in srgb, var(--hotspot-color, var(--coral)) 46%, transparent);
  transform: translate(-50%, -50%);
  touch-action: none;
}

.hotspot-anchor::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.82);
}

.hotspot-anchor.editing {
  box-shadow: 0 0 0 8px rgba(244, 215, 124, 0.18), 0 0 24px var(--gold);
}

.hotspot-marker {
  position: absolute;
  max-width: min(142px, calc(100% - 34px));
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  padding: 8px 10px;
  color: #fff;
  background: color-mix(in srgb, var(--hotspot-color, var(--coral)) 82%, rgba(7, 11, 10, 0.2));
  box-shadow: 0 0 0 8px color-mix(in srgb, var(--hotspot-color, var(--coral)) 18%, transparent), 0 16px 34px rgba(0, 0, 0, 0.22);
  font-size: 0.74rem;
  font-weight: 900;
  overflow-wrap: anywhere;
  text-align: center;
  transform: translate(-50%, -50%);
  touch-action: none;
  animation: pulse 2.4s ease-in-out infinite;
}

.hotspot-marker.vibe-glass {
  border-color: rgba(248, 242, 223, 0.52);
  border-radius: 18px;
  background: color-mix(in srgb, var(--hotspot-color, var(--gold)) 36%, rgba(8, 13, 12, 0.68));
  backdrop-filter: blur(12px);
}

.hotspot-marker.vibe-soft {
  border-radius: 18px 999px 999px 22px;
  transform: translate(-50%, -50%) rotate(-1deg);
}

.hotspot-marker.vibe-tag {
  border-radius: 8px;
  padding-inline: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hotspot-marker.vibe-connected {
  border-radius: 999px;
  background: rgba(8, 13, 12, 0.58);
  border-color: color-mix(in srgb, var(--hotspot-color, var(--coral)) 72%, white);
  color: var(--ink);
  backdrop-filter: blur(12px);
}

.hotspot-marker.shape-pill {
  border-radius: 999px;
}

.hotspot-marker.shape-rounded {
  border-radius: 18px;
}

.hotspot-marker.shape-tag {
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hotspot-marker.shape-soft {
  border-radius: 18px 999px 999px 22px;
}

.hotspot-marker.size-small {
  max-width: 118px;
  padding: 6px 8px;
  font-size: 0.66rem;
}

.hotspot-marker.size-large {
  max-width: min(168px, calc(100% - 34px));
  padding: 10px 13px;
  font-size: 0.84rem;
}

.hotspot-marker::after {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: inherit;
  border: 1px solid color-mix(in srgb, var(--hotspot-color, var(--gold)) 44%, transparent);
  opacity: 0;
  animation: ping 2.4s ease-out infinite;
}

.hotspot-marker.editing {
  color: #12140f;
  background: var(--hotspot-color, var(--gold));
  z-index: 2;
}

.page-copy {
  position: absolute;
  inset: auto 12px 12px;
  z-index: 5;
  padding: 9px;
  border: 1px solid rgba(248, 242, 223, 0.12);
  border-radius: 999px;
  background: rgba(7, 11, 10, 0.5);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
}

.page-copy.edit-dock {
  border-style: dashed;
}

.page-copy.visitor-dock {
  background: rgba(7, 11, 10, 0.58);
}

.scene-shell.previewing .page-copy {
  z-index: 10;
}

.scene-shell.previewing .hotspot-layer {
  z-index: 8;
}

.scene-shell.previewing .visitor-card {
  z-index: 11;
}

.visitor-card {
  position: absolute;
  left: 10px;
  right: 10px;
  top: auto;
  bottom: 84px;
  z-index: 8;
  display: none;
  max-height: min(52%, 360px);
  overflow: auto;
  overscroll-behavior: contain;
  padding: 14px 42px 14px 14px;
  border: 1px solid rgba(248, 242, 223, 0.14);
  border-radius: 22px;
  background: rgba(8, 13, 12, 0.78);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(16px);
  animation: cardWake 180ms ease both;
}

.visitor-card.open {
  display: block;
}

.visitor-card::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 50%;
  width: 38px;
  height: 3px;
  border-radius: 999px;
  background: rgba(248, 242, 223, 0.24);
  transform: translateX(-50%);
}

.visitor-card p {
  margin: 6px 0 6px;
  color: var(--gold);
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.visitor-card h3 {
  margin: 0;
  font-size: 1.25rem;
}

.visitor-card span {
  display: block;
  margin-top: 8px;
  color: rgba(248, 242, 223, 0.75);
  font-size: 0.86rem;
  line-height: 1.4;
}

.mini-chat {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.mini-chat-log {
  display: grid;
  gap: 6px;
  max-height: 150px;
  overflow: auto;
}

.mini-chat-message,
.builder-ai-message {
  width: fit-content;
  max-width: 92%;
  padding: 8px 10px;
  border-radius: 14px;
  color: rgba(248, 242, 223, 0.82);
  background: rgba(248, 242, 223, 0.08);
  font-size: 0.8rem;
  line-height: 1.35;
}

.mini-chat-message.user,
.builder-ai-message.user {
  justify-self: end;
  color: #07110e;
  background: var(--gold);
}

.mini-chat-form,
.builder-ai-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
}

.mini-chat-form input,
.builder-ai-form input {
  min-width: 0;
  border: 1px solid rgba(248, 242, 223, 0.14);
  border-radius: 999px;
  padding: 10px 12px;
  color: var(--ink);
  background: rgba(248, 242, 223, 0.08);
  outline: none;
}

.mini-chat-form button,
.builder-ai-form button {
  border: 0;
  border-radius: 999px;
  padding: 0 12px;
  color: #07110e;
  background: var(--gold);
  font-weight: 950;
}

.intake-flow {
  display: grid;
  gap: 9px;
  margin-top: 12px;
  padding: 11px;
  border: 1px solid rgba(88, 178, 143, 0.22);
  border-radius: 18px;
  background: rgba(88, 178, 143, 0.08);
}

.lead-capture-form {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding: 11px;
  border: 1px solid rgba(244, 215, 124, 0.22);
  border-radius: 18px;
  background: rgba(244, 215, 124, 0.08);
}

.lead-capture-form strong {
  color: var(--gold);
  line-height: 1.25;
}

.lead-capture-form input,
.lead-capture-form textarea {
  width: 100%;
  border: 1px solid rgba(248, 242, 223, 0.14);
  border-radius: 13px;
  padding: 10px 11px;
  color: var(--ink);
  background: rgba(248, 242, 223, 0.08);
  outline: none;
}

.lead-capture-form textarea {
  min-height: 78px;
  resize: vertical;
}

.lead-capture-form button {
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  color: #07110e;
  background: var(--gold);
  font-weight: 950;
}

.lead-form-status {
  color: rgba(248, 242, 223, 0.72);
  line-height: 1.35;
}

.intake-flow strong {
  color: var(--gold);
  line-height: 1.25;
}

.intake-flow p,
.intake-flow small {
  margin: 0;
  color: rgba(248, 242, 223, 0.72);
  line-height: 1.38;
}

.intake-choices,
.intake-results {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.intake-choices button,
.intake-result-button,
.intake-reset {
  min-height: 32px;
  border: 1px solid rgba(248, 242, 223, 0.14);
  border-radius: 999px;
  padding: 0 10px;
  color: var(--ink);
  background: rgba(248, 242, 223, 0.08);
  font-size: 0.76rem;
  font-weight: 900;
}

.intake-result-button:first-child {
  color: #07110e;
  background: var(--gold);
}

.intake-summary {
  display: grid;
  gap: 4px;
}

.intake-summary span {
  margin: 0;
  font-size: 0.76rem;
}

.scene-action-detail,
.visitor-action-detail {
  display: grid;
  gap: 5px;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid rgba(244, 215, 124, 0.16);
  border-radius: 15px;
  color: rgba(248, 242, 223, 0.78);
  background: rgba(244, 215, 124, 0.07);
  font-size: 0.78rem;
  line-height: 1.38;
}

.scene-action-detail strong,
.visitor-action-detail strong {
  color: var(--gold);
}

.scene-action-detail small,
.visitor-action-detail small {
  color: rgba(248, 242, 223, 0.62);
  line-height: 1.35;
}

.visitor-card-link {
  display: inline-flex;
  margin: 0;
  min-height: 34px;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  color: #07110e;
  background: var(--gold);
  font-size: 0.88rem;
  font-weight: 900;
  text-decoration: none;
}

.visitor-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.visitor-card-keep {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(248, 242, 223, 0.12);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(248, 242, 223, 0.09);
  font-size: 0.84rem;
  font-weight: 900;
}

.visitor-card-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(248, 242, 223, 0.14);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(248, 242, 223, 0.08);
}

.hotspot-edit-popover {
  position: fixed;
  z-index: 30;
  display: none;
  width: min(88vw, 286px);
  max-height: min(68svh, 460px);
  overflow: auto;
  overscroll-behavior: contain;
  padding: 10px;
  border: 1px solid color-mix(in srgb, var(--hotspot-color, var(--coral)) 48%, rgba(248, 242, 223, 0.16));
  border-radius: 18px;
  color: var(--ink);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--hotspot-color, var(--coral)) 20%, rgba(8, 13, 12, 0.8)), rgba(8, 13, 12, 0.76));
  box-shadow: 0 20px 58px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(18px);
  transform: none;
}

@media (max-width: 759px) {
  .hotspot-edit-popover {
    width: min(calc(100vw - 28px), 320px);
    max-height: min(52svh, 360px);
    border-radius: 20px 20px 16px 16px;
  }
}

.hotspot-edit-popover.open {
  display: grid;
  gap: 7px;
  animation: cardWake 180ms ease both;
}

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

.popover-head span,
.hotspot-edit-popover label span {
  color: var(--gold);
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.popover-close {
  width: 26px;
  height: 26px;
  border: 1px solid rgba(248, 242, 223, 0.16);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(248, 242, 223, 0.08);
}

.hotspot-edit-popover label {
  display: grid;
  gap: 4px;
}

.hotspot-edit-popover input,
.hotspot-edit-popover select,
.hotspot-edit-popover textarea {
  width: 100%;
  border: 1px solid rgba(248, 242, 223, 0.14);
  border-radius: 10px;
  padding: 7px 9px;
  color: var(--ink);
  background: rgba(248, 242, 223, 0.08);
  outline: none;
  font-size: 0.82rem;
}

.hotspot-edit-popover input[type="color"] {
  height: 32px;
  padding: 3px;
}

.hotspot-edit-popover textarea {
  resize: vertical;
  min-height: 56px;
}

.popover-style-settings {
  border: 1px solid rgba(248, 242, 223, 0.12);
  border-radius: 14px;
  padding: 8px;
  background: rgba(248, 242, 223, 0.055);
}

.popover-style-settings summary {
  cursor: pointer;
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.popover-style-grid {
  display: grid;
  gap: 7px;
  margin-top: 8px;
}

@media (min-width: 390px) {
  .popover-style-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.scene-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.scene-suggestions span {
  flex: 0 0 100%;
  color: var(--gold);
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.scene-suggestions button {
  min-height: 28px;
  border: 1px solid rgba(248, 242, 223, 0.14);
  border-radius: 999px;
  padding: 0 8px;
  color: var(--ink);
  background: rgba(248, 242, 223, 0.08);
  font-size: 0.72rem;
  font-weight: 900;
}

.popover-delete {
  min-height: 34px;
  border: 1px solid rgba(255, 118, 95, 0.28);
  border-radius: 999px;
  color: #ffd0c8;
  background: rgba(255, 118, 95, 0.12);
  font-weight: 900;
}

.page-copy p {
  margin: 0 0 6px;
  color: var(--gold);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}

.page-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex-wrap: wrap;
}

.scene-action {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  padding: 9px 0;
  border-top: 1px solid rgba(248, 242, 223, 0.14);
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
}

.scene-tool-pill {
  min-height: 36px;
  border: 1px solid rgba(248, 242, 223, 0.14);
  border-radius: 999px;
  padding: 0 13px;
  color: #07110e;
  background: var(--brand-color);
  font-size: 0.78rem;
  font-weight: 950;
  box-shadow: 0 12px 28px color-mix(in srgb, var(--brand-color) 22%, transparent);
}

.scene-tool-pill.quiet,
.scene-tool-pill.guide-pill {
  color: var(--ink);
  background: rgba(248, 242, 223, 0.08);
}

.scene-tool-pill.guide-pill {
  background: rgba(88, 178, 143, 0.18);
  border-color: rgba(88, 178, 143, 0.3);
}

.scene-live-note {
  color: rgba(248, 242, 223, 0.72);
  font-size: 0.76rem;
  font-weight: 850;
}

.scene-action::after {
  content: "follow";
  color: var(--gold);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.scene-action:first-child {
  border-top: 0;
}

.quiet-scene-action {
  color: rgba(248, 242, 223, 0.72);
}

.ai-guide-card {
  margin-top: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(248, 242, 223, 0.08);
}

.scene-shell.previewing .ai-guide-card {
  display: none;
}

.ai-guide-card h3 {
  margin-top: 8px;
}

.ai-guide-card span {
  display: block;
  margin: 10px 0 16px;
  color: var(--muted);
  line-height: 1.5;
}

.guide-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  color: rgba(248, 242, 223, 0.72);
  font-size: 0.82rem;
  font-weight: 800;
}

.guide-status span {
  width: 8px;
  height: 8px;
  margin: 0;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 18px rgba(88, 178, 143, 0.8);
  animation: guideBlink 1.8s ease-in-out infinite;
}

.guide-link {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--gold);
  font-weight: 900;
}

.guide-cta,
.text-action {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--gold);
  font-weight: 900;
  text-decoration: none;
}

.guide-cta::after,
.text-action::after {
  content: "→";
  margin-left: 8px;
}

.edit-tools {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.action-editor {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.action-editor p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.4;
}

.action-list {
  display: grid;
  gap: 9px;
}

.action-row {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr) auto;
  gap: 8px;
  align-items: center;
}

.action-row input {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 11px 12px;
  color: var(--ink);
  background: rgba(248, 242, 223, 0.08);
  outline: none;
}

.scene-quality-panel {
  --quality-percent: 0%;
  position: relative;
  overflow: hidden;
}

.scene-quality-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 0%, rgba(244, 215, 124, 0.16), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.055), transparent 42%);
}

.scene-quality-panel > * {
  position: relative;
}

.quality-score {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.quality-score > div:first-child {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.quality-score strong {
  font-size: 1.4rem;
  letter-spacing: -0.04em;
}

.quality-score span,
.quality-score small {
  color: var(--muted);
}

.quality-score meter {
  width: 100%;
  height: 11px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: rgba(248, 242, 223, 0.09);
}

.quality-score meter::-webkit-meter-bar {
  border: 0;
  border-radius: 999px;
  background: rgba(248, 242, 223, 0.09);
}

.quality-score meter::-webkit-meter-optimum-value {
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), var(--brand-color, #ff765f));
  box-shadow: 0 0 18px rgba(244, 215, 124, 0.4);
}

.quality-score meter::-moz-meter-bar {
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), var(--brand-color, #ff765f));
}

.quality-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quality-checks span {
  display: inline-grid;
  gap: 3px;
  min-width: 120px;
  flex: 1 1 120px;
  border: 1px solid rgba(255, 118, 95, 0.22);
  border-radius: 17px;
  padding: 10px 11px;
  color: rgba(248, 242, 223, 0.82);
  background: rgba(255, 118, 95, 0.08);
  font-size: 0.78rem;
  font-weight: 900;
}

.quality-checks span.done {
  border-color: rgba(88, 178, 143, 0.34);
  background: rgba(88, 178, 143, 0.1);
}

.quality-checks small {
  font-size: 0.7rem;
  font-weight: 800;
}

.visitor-flow-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.flow-card,
.empty-flow-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 11px;
  width: 100%;
  border: 1px solid rgba(248, 242, 223, 0.12);
  border-radius: 20px;
  padding: 13px;
  color: var(--ink);
  text-align: left;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--flow-color, var(--gold)) 16%, transparent), transparent 48%),
    rgba(248, 242, 223, 0.065);
}

.flow-card {
  cursor: pointer;
}

.flow-card.active {
  border-color: color-mix(in srgb, var(--flow-color, var(--gold)) 54%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--flow-color, var(--gold)) 28%, transparent), 0 18px 42px rgba(0, 0, 0, 0.2);
}

.flow-card span {
  grid-row: span 3;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: #07110e;
  background: var(--flow-color, var(--gold));
  font-size: 0.74rem;
  font-weight: 1000;
}

.flow-card strong,
.empty-flow-card strong {
  font-size: 0.96rem;
  letter-spacing: -0.02em;
}

.flow-card small,
.flow-card em,
.empty-flow-card span {
  color: var(--muted);
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 850;
}

.flow-card.ready em {
  color: #bfffe8;
}

.icon-button {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(248, 242, 223, 0.08);
  font-size: 1.2rem;
  line-height: 1;
}

.compact-button {
  justify-self: start;
  width: auto;
  padding: 11px 14px;
}

.ghost-danger {
  color: rgba(248, 242, 223, 0.72);
}

.scene-shell.previewing .scene-topbar,
.scene-shell.previewing + .editor-panel {
  display: none;
}

.scene-shell.previewing {
  padding-top: 14px;
}

.publish-actions {
  align-items: center;
}

.publish-actions .primary-button {
  flex: 1 1 210px;
}

.open-demo-button {
  flex: 1 1 170px;
  justify-content: center;
  text-decoration: none;
}

.open-demo-button.is-disabled {
  pointer-events: none;
  opacity: 0.42;
}

.publish-actions .text-action {
  flex: 1 1 180px;
}

.demo-link {
  display: block;
  margin-top: 12px;
  overflow-wrap: anywhere;
  font-weight: 900;
}

.publish-success-sheet {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  align-items: end;
  padding: 14px;
  background: rgba(2, 5, 4, 0.42);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.publish-success-sheet.open {
  opacity: 1;
  pointer-events: auto;
}

.publish-success-card {
  display: grid;
  gap: 12px;
  width: min(100%, 430px);
  margin: 0 auto;
  padding: 18px;
  border: 1px solid rgba(248, 242, 223, 0.16);
  border-radius: 28px;
  background:
    radial-gradient(circle at 18% 0%, rgba(244, 215, 124, 0.18), transparent 15rem),
    rgba(9, 15, 13, 0.9);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(20px);
  transform: translateY(24px);
  transition: transform 180ms ease;
}

.publish-success-sheet.open .publish-success-card {
  transform: translateY(0);
}

.publish-success-card h2,
.publish-success-card p {
  margin: 0;
}

.publish-success-card h2 {
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: clamp(1.5rem, 9vw, 2.2rem);
  font-weight: 400;
  line-height: 0.95;
}

.publish-success-card p,
.publish-success-card small {
  color: var(--muted);
  line-height: 1.4;
}

.publish-success-card input {
  width: 100%;
  border: 1px solid rgba(248, 242, 223, 0.14);
  border-radius: 16px;
  padding: 13px;
  color: var(--ink);
  background: rgba(248, 242, 223, 0.08);
  outline: none;
}

.publish-success-sale {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(88, 178, 143, 0.22);
  border-radius: 18px;
  background: rgba(88, 178, 143, 0.09);
}

.publish-success-sale strong {
  color: var(--gold);
  line-height: 1.25;
}

.publish-success-sale span {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
}

.publish-success-payment-setup {
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid rgba(244, 215, 124, 0.2);
  border-radius: 18px;
  background: rgba(244, 215, 124, 0.07);
}

.publish-success-payment-setup[hidden] {
  display: none;
}

.publish-success-payment-setup label {
  display: grid;
  gap: 7px;
}

.publish-success-payment-setup span {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.publish-success-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.publish-success-actions > * {
  flex: 1 1 130px;
  justify-content: center;
}

.publish-success-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(248, 242, 223, 0.14);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(248, 242, 223, 0.08);
  font-weight: 900;
}

.advanced-settings {
  padding: 16px;
}

.builder-ai-toggle {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 24;
  min-height: 44px;
  border: 1px solid rgba(244, 215, 124, 0.28);
  border-radius: 999px;
  padding: 0 16px;
  color: #07110e;
  background: var(--gold);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.34);
  font-weight: 950;
}

.is-preview-mode .builder-ai-toggle {
  display: none;
}

@media (max-width: 759px) {
  .builder-ai-toggle {
    right: 12px;
    bottom: 10px;
    min-height: 38px;
    padding: 0 12px;
    font-size: 0.8rem;
  }
}

.builder-ai-panel {
  position: fixed;
  right: 14px;
  bottom: 68px;
  z-index: 25;
  display: none;
  width: min(calc(100vw - 28px), 360px);
  max-height: min(70svh, 520px);
  padding: 12px;
  border: 1px solid rgba(244, 215, 124, 0.18);
  border-radius: 22px;
  background: rgba(8, 13, 12, 0.86);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(18px);
}

.builder-ai-panel.open {
  display: grid;
  gap: 10px;
  animation: cardWake 180ms ease both;
}

.builder-ai-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.builder-ai-head span {
  display: block;
  color: var(--gold);
  font-size: 0.62rem;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.builder-ai-head strong {
  display: block;
  margin-top: 3px;
}

.builder-ai-head button {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(248, 242, 223, 0.14);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(248, 242, 223, 0.08);
}

.builder-ai-log {
  display: grid;
  gap: 7px;
  max-height: 300px;
  overflow: auto;
}

.advanced-settings summary {
  cursor: pointer;
  font-weight: 900;
}

.advanced-grid {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.export-button {
  margin-top: 14px;
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 7px rgba(255, 118, 95, 0.12), 0 16px 34px rgba(0, 0, 0, 0.22);
  }
  50% {
    box-shadow: 0 0 0 13px rgba(255, 118, 95, 0.04), 0 16px 34px rgba(0, 0, 0, 0.22);
  }
}

@keyframes drift {
  from {
    transform: translate3d(-8px, 0, 0);
  }
  to {
    transform: translate3d(8px, -8px, 0);
  }
}

@keyframes heroAwake {
  from {
    opacity: 0.54;
    transform: translate3d(-2%, 1%, 0) scale(1);
  }
  to {
    opacity: 0.94;
    transform: translate3d(2%, -2%, 0) scale(1.04);
  }
}

@keyframes emberRise {
  from {
    background-position: 18% 84%, 82% 96%;
  }
  to {
    background-position: 18% -24%, 82% -18%;
  }
}

@keyframes slowPush {
  from {
    transform: scale(1.02) translate3d(-1%, 0, 0);
  }
  to {
    transform: scale(1.08) translate3d(1%, -1%, 0);
  }
}

@keyframes livingCurrent {
  from {
    transform: rotate(-6deg) scale(1);
  }
  to {
    transform: rotate(7deg) scale(1.08);
  }
}

@keyframes sceneFloat {
  from {
    transform: translate3d(-8px, 12px, 0) scale(0.85);
  }
  to {
    transform: translate3d(14px, -18px, 0) scale(1.15);
  }
}

@keyframes signalSweep {
  0%,
  100% {
    opacity: 0;
    clip-path: inset(0 100% 0 0);
  }
  45%,
  65% {
    opacity: 0.7;
    clip-path: inset(0 0 0 0);
  }
}

@keyframes cardWake {
  from {
    opacity: 0;
    transform: translate3d(0, -8px, 0) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes ping {
  0% {
    opacity: 0.8;
    transform: scale(0.72);
  }
  100% {
    opacity: 0;
    transform: scale(1.34);
  }
}

@keyframes guideBlink {
  50% {
    opacity: 0.45;
    transform: scale(0.82);
  }
}

@media (min-width: 760px) {
  .app-shell {
    padding-top: 22px;
  }

  .hero {
    padding: 42px;
  }

  .primary-button,
  .secondary-button {
    width: auto;
  }

  .builder {
    gap: 16px;
    align-items: start;
  }

  .owner-grid,
  .project-actions,
  .brand-editor {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .brand-editor .color-field {
    grid-column: 1 / -1;
  }

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

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

}

@media (max-width: 430px) {
  .quick-start-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quick-start-step {
    padding: 9px;
  }
}

@media (min-width: 1080px) {
  .hero {
    min-height: 82svh;
  }
}
