*,
*::before,
*::after {
  margin: 0;
  padding: 0;
}

/* Tokens + chrome live in site.css — landing owns layout only. */

html {
  height: auto;
}

body {
  font-family: var(--font-body);
  background:
    radial-gradient(90% 55% at 50% -10%, rgba(79, 140, 255, 0.16), transparent 52%),
    linear-gradient(180deg, #07090e 0%, #080b12 40%, #07090e 100%);
  color: var(--ink);
  line-height: 1.6;
  min-height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  background-image: radial-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 72%);
}

.site-header {
  flex-shrink: 0;
}

.page-body {
  position: relative;
  z-index: 1;
  flex: 1;
  display: block;
  overflow: visible;
}

.page-scroll {
  display: block;
  overflow: visible;
  width: 100%;
}

main {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
}

.page-body-hero-first {
  display: block;
}

.page-body-hero-first .page-scroll {
  width: 100%;
}

.hero {
  flex-shrink: 0;
  max-width: 960px;
  margin: 0 auto;
  padding: clamp(28px, 6vh, 56px) 28px clamp(14px, 2.5vh, 24px);
  text-align: center;
  width: 100%;
}

/* Full-bleed first composition: product canvas as the visual plane */
.hero.hero-stage {
  position: relative;
  max-width: none;
  width: 100%;
  min-height: calc(100dvh - var(--header-h));
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  isolation: isolate;
  background: #05070b;
}

.hero-stage-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(80% 55% at 50% 18%, rgba(79, 140, 255, 0.14), transparent 58%),
    #05070b;
}

.hero-stage-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 42% 18%;
  opacity: 1;
  animation: hero-media-in 1.2s var(--ease-out, cubic-bezier(0.22, 1, 0.36, 1)) both;
}

.hero-stage-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5, 7, 11, 0.25) 0%, rgba(5, 7, 11, 0.08) 32%, rgba(5, 7, 11, 0.55) 62%, #05070b 86%, #05070b 100%),
    linear-gradient(90deg, rgba(5, 7, 11, 0.45) 0%, transparent 22%, transparent 78%, rgba(5, 7, 11, 0.45) 100%);
}

.hero-stage-copy {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(32px, 6vh, 56px) 28px clamp(40px, 8vh, 72px);
  text-align: center;
}

.hero-stage .btn-primary {
  min-width: 200px;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(36px, 6.4vw, 60px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.02;
  color: #ffffff;
  margin: 0 0 16px;
  text-shadow: 0 2px 32px rgba(0, 0, 0, 0.7);
  animation: hero-rise 0.8s var(--ease-out, cubic-bezier(0.22, 1, 0.36, 1)) both;
}

.hero-stage h1 {
  font-family: var(--font-body);
  font-size: clamp(18px, 2.6vw, 26px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: rgba(238, 241, 247, 0.92);
  margin: 0 0 14px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.55);
  animation: hero-rise 0.85s var(--ease-out, cubic-bezier(0.22, 1, 0.36, 1)) 0.06s both;
}

.hero-stage .hero-subhead {
  color: rgba(238, 241, 247, 0.86) !important;
}

.hero-pricing-in-stage {
  margin: 20px 0 0;
  color: rgba(238, 241, 247, 0.7);
  animation: hero-rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.22s both;
}

.hero-stage .hero-subhead {
  max-width: 36em;
  margin: 0 auto 28px;
  font-size: clamp(16px, 2.2vw, 19px);
  font-weight: 400;
  color: rgba(238, 241, 247, 0.86);
  line-height: 1.45;
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.35);
  animation: hero-rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}

.hero-stage .hero-actions {
  animation: hero-rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.18s both;
}

/* Legacy class kept for older markup / cache */
.hero-visual {
  margin: 22px calc(50% - 50vw) 0;
  width: 100vw;
  max-width: 100vw;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(79, 140, 255, 0.18), transparent 55%),
    linear-gradient(180deg, #0d1018 0%, #07090e 100%);
}

.hero-visual img {
  display: block;
  width: 100%;
  max-width: 1100px;
  height: auto;
  margin: 0 auto;
  object-fit: cover;
}

.layout-scope-inline {
  position: static;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(40px, 7vh, 72px) 28px clamp(28px, 4vh, 40px);
  border: none;
  background: transparent;
  overflow: visible;
  text-align: center;
}

.layout-scope-inline .layout-scope-eyebrow {
  font-family: var(--font-body);
  color: var(--accent);
}

.layout-scope-inline .layout-scope-goal {
  max-width: 40em;
  margin: 0 auto clamp(28px, 4vh, 40px);
  font-family: var(--font-display);
  font-size: clamp(20px, 2.8vw, 28px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.3;
  color: var(--ink);
}

.layout-scope-inline .layout-scope-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  text-align: left;
  border-top: 1px solid var(--line);
}

@media (max-width: 700px) {
  .layout-scope-inline .layout-scope-grid {
    grid-template-columns: 1fr;
  }

  .hero.hero-stage {
    min-height: calc(100dvh - var(--header-h));
  }

  .hero-stage-copy {
    padding: clamp(36px, 7vh, 64px) 18px clamp(32px, 6vh, 52px);
  }

  .hero-brand {
    font-size: clamp(28px, 9vw, 40px);
  }

  .hero-stage h1 {
    font-size: clamp(16px, 4.6vw, 22px);
  }
}

@keyframes hero-rise {
  from { opacity: 0.01; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes hero-media-in {
  from { opacity: 0.4; transform: scale(1.05); }
  to { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-brand,
  .hero-stage h1,
  .hero-stage .hero-subhead,
  .hero-stage .hero-actions,
  .hero-stage-media img {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .hero-stage-media img {
    opacity: 0.88 !important;
  }
}

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 8px;
}

.hero h1 {
  font-size: clamp(28px, 4.2vh, 44px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin-bottom: 18px;
}

.hero-tagline {
  font-size: clamp(15px, 2.2vh, 19px);
  font-weight: 500;
  color: #a8b4d4;
  letter-spacing: -0.01em;
  line-height: 1.4;
  margin: 0 0 12px;
}

.hero-reflow-note {
  font-size: clamp(13px, 1.8vh, 16px);
  font-weight: 400;
  color: #7d8ab0;
  line-height: 1.45;
  margin: 0 0 16px;
  max-width: 52ch;
}

.hero-subhead {
  font-size: clamp(17px, 2.8vw, 21px);
  font-weight: 600;
  color: #c8cdd8;
  line-height: 1.35;
  margin-bottom: 20px;
}

.lead {
  font-size: 18px;
  color: var(--ink-mute);
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.hero-pricing-note {
  margin: 0 0 6px;
  font-size: 13px;
  color: var(--ink-mute);
  line-height: 1.4;
  text-align: center;
}

.hero-pricing-in-stage {
  color: rgba(238, 241, 247, 0.72);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
}

.works-with {
  margin: 0;
  padding: 0;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.works-with-compact {
  gap: 10px;
}

.works-with-compact .works-with-row {
  justify-content: center;
}

.landing-deep {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding: 8px 28px 0;
  border-top: 1px solid var(--line);
}

.landing-deep-summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 4px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink-soft);
  text-align: center;
}

.landing-deep-summary::-webkit-details-marker {
  display: none;
}

.landing-deep-summary::after {
  content: " +";
  color: var(--accent);
  font-weight: 600;
}

.landing-deep[open] .landing-deep-summary::after {
  content: " −";
}

.landing-deep-summary:hover {
  color: var(--ink);
}

.landing-deep-body {
  padding-bottom: 8px;
}

.landing-final-cta {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(56px, 9vh, 96px) 28px clamp(64px, 10vh, 110px);
  text-align: center;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(70% 80% at 50% 100%, rgba(79, 140, 255, 0.12), transparent 55%);
}

.landing-final-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.6vw, 36px);
  font-weight: 500;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
}

.landing-final-cta p {
  margin: 0 auto 24px;
  max-width: 32em;
  color: var(--ink-mute);
  font-size: 15px;
  line-height: 1.45;
}

.hero-bridge {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(22px, 3.5vh, 36px) 28px;
  gap: 12px;
  border-top: 1px solid var(--line);
  background: rgba(5, 7, 11, 0.55);
}

.hero-bridge-eyebrow {
  margin-bottom: 0;
  width: 100%;
  text-align: center;
}

.works-with-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
}

.works-with-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7288;
  flex-shrink: 0;
}

.works-with-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.works-with-list.works-with-chips li {
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  font-size: inherit;
  color: inherit;
}

.works-with-list.works-with-chips li + li::before {
  content: none;
}

.works-with-list-legacy {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.works-with-list:not(.works-with-chips) li {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 5px 0;
  border-radius: 0;
  border: none;
  border-bottom: 1px solid transparent;
  background: transparent;
  letter-spacing: -0.01em;
}

.works-with-list:not(.works-with-chips) li + li {
  margin-left: 14px;
  padding-left: 14px;
  border-left: 1px solid var(--line);
}

.works-with-list-targets:not(.works-with-chips) li {
  color: #c5d4f5;
  border-color: transparent;
  background: transparent;
}

#why-panelspec {
  scroll-margin-top: 12px;
}

.landing-why {
  flex-shrink: 0;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(36px, 6vh, 64px) 24px 28px;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(80% 50% at 50% 0%, rgba(79, 140, 255, 0.08), transparent 60%),
    transparent;
}

.workflow .landing-why {
  margin-top: clamp(12px, 2vh, 24px);
  padding-bottom: 32px;
}

.landing-why-eyebrow {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin: 0 0 14px;
  text-align: center;
}

.landing-why-intro {
  max-width: 38em;
  margin: 0 auto clamp(20px, 3vh, 32px);
  font-family: var(--font-display);
  font-size: clamp(18px, 2.4vw, 24px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink-soft);
  line-height: 1.4;
  text-align: center;
}

.landing-why-intro strong {
  color: var(--ink);
  font-weight: 600;
}

.landing-why-intro em {
  color: #c5d4f5;
  font-style: normal;
}

.landing-compare-table-wrap {
  max-width: 920px;
  margin: clamp(20px, 3.5vh, 36px) auto 18px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(10, 14, 22, 0.65);
}

.landing-compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  line-height: 1.45;
}

.landing-compare-table th,
.landing-compare-table td {
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #1a1e28;
}

.landing-compare-table thead th {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-mute);
  background: rgba(18, 22, 32, 0.9);
}

.landing-compare-table thead th:last-child {
  color: #c5d4f5;
}

.landing-compare-table tbody th[scope="row"] {
  font-weight: 500;
  color: #c8ceda;
  width: 34%;
}

.landing-compare-table tbody td:first-of-type {
  color: #8b92a8;
  width: 28%;
}

.landing-compare-table tbody td:last-child {
  color: #dce4f8;
  font-weight: 500;
  width: 38%;
}

.landing-compare-table tbody tr:last-child th,
.landing-compare-table tbody tr:last-child td {
  border-bottom: none;
}

.landing-why-more {
  text-align: center;
  margin: 0 0 18px;
}

.landing-why-more a {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.landing-why-more a:hover {
  text-decoration: underline;
}

.landing-why-difference {
  max-width: 720px;
  margin: clamp(20px, 3.5vh, 40px) auto 0;
  text-align: center;
}

.landing-why-difference p {
  font-size: 14px;
  color: #8b92a8;
  line-height: 1.55;
  margin: 0 0 8px;
}

.landing-why-difference p:last-child {
  margin-bottom: 0;
}

.landing-why-difference strong {
  color: #e8eaef;
  font-weight: 600;
}

#how-it-works {
  scroll-margin-top: 56px;
}

/* —— Workflow demo (picture 1) —— */
.workflow {
  flex: 0 0 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-top: clamp(8px, 1.5vh, 18px);
  padding: clamp(20px, 3vh, 36px) 20px 16px;
  position: relative;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(12, 16, 24, 0.55) 0%, transparent 120px);
}

.workflow-heading {
  width: 100%;
  max-width: 920px;
  margin: 0 auto 6px;
  padding: 0 8px;
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--ink);
  text-align: center;
}

.workflow-lead {
  width: 100%;
  max-width: 36em;
  margin: 0 auto 22px;
  padding: 0 16px;
  font-size: 15px;
  color: var(--ink-mute);
  text-align: center;
  line-height: 1.45;
}

.layout-scope {
  flex-shrink: 0;
  width: min(300px, 34vw);
  padding: 24px 20px;
  border-right: 1px solid #1e2230;
  background: #0a0c10;
  overflow-y: auto;
  text-align: left;
}

.layout-scope-eyebrow {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #5b8def;
  margin: 0 0 12px;
}

.layout-scope-goal {
  font-size: 14px;
  font-weight: 400;
  color: #9aa3b2;
  line-height: 1.55;
  margin: 0 0 20px;
}

.layout-scope h2 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  color: #e8eaef;
  line-height: 1.25;
}

.layout-scope-intro {
  font-size: 13px;
  color: #8b92a8;
  line-height: 1.5;
  margin: 0 0 20px;
}

.layout-scope-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.layout-scope-card {
  padding: 22px 28px 8px;
  background: transparent;
  border: none;
  border-radius: 0;
}

.layout-scope-inline .layout-scope-card:first-child {
  border-right: 1px solid var(--line);
}

.layout-scope-card h3 {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 14px;
}

.layout-scope-card-ai h3 {
  color: var(--ink-mute);
}

.layout-scope-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.layout-scope-card li {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.45;
  padding: 7px 0 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.layout-scope-card li:last-child {
  border-bottom: none;
}

.layout-scope-card li::before {
  content: none;
}

.layout-scope-card-ai li::before {
  content: none;
}

@media (max-width: 700px) {
  .layout-scope-inline .layout-scope-card:first-child {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding-bottom: 20px;
  }
}

/* Buttons from site.css; hero secondary stays glass for contrast on media */
.hero-stage .btn-secondary {
  background: rgba(16, 20, 30, 0.72);
  border-color: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
  color: #8b92a8;
  border-color: #2e3344;
}

.hero-dev-note {
  width: 100%;
  margin-top: 4px;
  font-size: 12px;
  color: #6b7289;
}

/* —— Workflow demo (controls) —— */
.workflow-eyebrow {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #5b8def;
  margin-bottom: 6px;
  text-align: center;
}

.workflow-steps {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-bottom: 14px;
}

.wf-demo-hud {
  flex-shrink: 0;
  max-width: 840px;
  margin: 0 auto 12px;
  text-align: center;
  width: 100%;
}

.wf-phase-caption {
  font-size: clamp(14px, 1.9vh, 16px);
  font-weight: 500;
  color: #c8cdd8;
  line-height: 1.4;
  margin: 0 0 10px;
  min-height: 1.4em;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.wf-phase-caption.wf-caption-fade {
  opacity: 0;
  transform: translateY(4px);
}

.wf-demo-progress {
  height: 3px;
  border-radius: 999px;
  background: #1e2230;
  overflow: hidden;
  margin-bottom: 10px;
}

.wf-demo-progress-fill {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #5b8def, #7aa8ff);
  transition: width 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.wf-device-track {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.wf-device-chip {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6b7289;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #2e3344;
  background: #12141c;
  transition: color 0.35s ease, border-color 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
}

.wf-device-chip.wf-device-active {
  color: #e8ecf4;
  border-color: #5b8def;
  background: rgba(91, 141, 239, 0.12);
  box-shadow: 0 0 0 1px rgba(91, 141, 239, 0.25);
}

.wf-device-chip.wf-device-done {
  color: #9ec5ff;
  border-color: #3d5a8a;
}

.wf-trained-banner {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 0;
  margin: 0;
  text-align: center;
  font-size: clamp(12px, 1.6vh, 15px);
  font-weight: 600;
  color: #9ec5ff;
  line-height: 1.35;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.65s ease, transform 0.65s ease;
  pointer-events: none;
  z-index: 2;
}

.wf-trained-banner:not([hidden]) {
  pointer-events: auto;
}

.wf-trained-banner.wf-trained-visible {
  opacity: 1;
  transform: translateY(0);
}

.wf-trained-banner a {
  color: #7aa8ff;
  text-decoration: none;
  border-bottom: 1px solid rgba(122, 168, 255, 0.35);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.wf-trained-banner a:hover {
  color: #b8d4ff;
  border-bottom-color: rgba(184, 212, 255, 0.55);
}

.workflow-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #8b92a8;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: color 0.35s ease, border-color 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
}

.workflow-step.wf-step-active {
  color: #e8ecf4;
  border-color: #5b8def;
  background: rgba(91, 141, 239, 0.1);
  box-shadow: 0 0 0 1px rgba(91, 141, 239, 0.2);
}

.workflow-step.wf-step-active .workflow-num {
  background: #5b8def;
  border-color: #5b8def;
  color: #fff;
}

.workflow-step.wf-step-done {
  color: #9ec5ff;
}

.workflow-step.wf-step-done .workflow-num {
  border-color: #3d5a8a;
  color: #9ec5ff;
}

.workflow-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #1a1d27;
  border: 1px solid #2e3344;
  font-size: 11px;
  font-weight: 600;
  color: #c8cdd8;
  flex-shrink: 0;
  transition: background 0.35s ease, border-color 0.35s ease, color 0.35s ease;
}

.workflow-demo-viewport {
  flex: 0 0 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  width: 100%;
  padding-bottom: clamp(4px, 0.75vh, 9px);
}

.workflow-demo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 16px 14px;
  transform-origin: center center;
  will-change: transform;
  width: 100%;
  max-width: 1100px;
}

.wf-design {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.wf-prompt,
.wf-chat {
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.wf-arrow {
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.wf-stage {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.wf-palette {
  width: 96px;
  flex-shrink: 0;
  padding: 10px 8px;
  background: #12141c;
  border: 1px solid #1e2230;
  border-radius: 10px;
}

.wf-palette-title {
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b7289;
  margin-bottom: 8px;
  padding: 0 4px;
}

.wf-palette-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 6px;
  margin-bottom: 4px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 500;
  color: #c8cdd8;
}

.wf-palette-idle {
  opacity: 0.35;
  animation: none;
}

.wf-palette-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  border-radius: 3px;
  background: #1a1d27;
  border: 1px solid #2e3344;
  position: relative;
}

.wf-palette-icon.chart::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 2px;
  right: 2px;
  height: 7px;
  background: linear-gradient(to right, #007aff 33%, #5ac8fa 33% 66%, #007aff 66%);
  border-radius: 1px;
}

.wf-palette-icon.button::after {
  content: "";
  position: absolute;
  inset: 4px 2px;
  background: #5b8def;
  border-radius: 2px;
}

.wf-palette-icon.label::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 2px;
  right: 2px;
  height: 2px;
  background: #8b92a8;
  box-shadow: 0 4px 0 #8b92a8;
  border-radius: 1px;
}

.wf-palette-icon.image::after {
  content: "";
  position: absolute;
  inset: 3px;
  background: linear-gradient(135deg, #5ac8fa, #007aff);
  border-radius: 2px;
}

/* —— Device shells (phone / macbook / web / laptop) —— */
.wf-device-shell {
  flex-shrink: 0;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.wf-frame {
  display: none;
}

.wf-device-phone .wf-frame-phone { display: block; }
.wf-device-macbook .wf-frame-macbook { display: block; }
.wf-device-web .wf-frame-web { display: block; }
.wf-device-laptop .wf-frame-laptop { display: block; }

.wf-device-screen {
  position: relative;
  background: #fff;
  overflow: hidden;
}

.wf-screen-body {
  position: absolute;
  inset: 0;
}

.wf-status {
  position: relative;
  z-index: 1;
  padding: 14px 16px 0;
  font-size: 10px;
  font-weight: 600;
  color: #000;
}

/* Phone */
.wf-device-phone .wf-phone-bezel {
  position: relative;
  width: 168px;
  padding: 10px;
  background: linear-gradient(160deg, #3a3a3e 0%, #1c1c1e 50%, #0f0f10 100%);
  border-radius: 32px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 16px 40px rgba(0, 0, 0, 0.45);
}

.wf-island {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 52px;
  height: 16px;
  background: #000;
  border-radius: 12px;
  z-index: 2;
}

.wf-device-phone .wf-device-screen {
  height: 300px;
  border-radius: 24px;
}

/* MacBook */
.wf-mac-lid {
  width: 220px;
  padding: 8px 8px 0;
  background: linear-gradient(180deg, #3a3a3e, #1c1c1e);
  border-radius: 10px 10px 0 0;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.wf-mac-menu {
  display: flex;
  gap: 4px;
  padding: 4px 6px 6px;
}

.wf-mac-menu span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #6b7289;
}

.wf-device-macbook .wf-device-screen {
  height: 128px;
  border-radius: 4px 4px 0 0;
}

.wf-mac-base {
  width: 240px;
  height: 10px;
  margin: 0 auto;
  margin-left: -10px;
  background: linear-gradient(180deg, #2a2a2e, #141416);
  border-radius: 0 0 8px 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

/* Web browser */
.wf-browser {
  width: 236px;
  background: #dee1e6;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12), 0 16px 36px rgba(0, 0, 0, 0.35);
}

.wf-browser-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 10px;
  background: #e8eaed;
  border-bottom: 1px solid #c4c7cc;
}

.wf-traffic {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.wf-traffic.r { background: #ff5f57; }
.wf-traffic.y { background: #febc2e; }
.wf-traffic.g { background: #28c840; }

.wf-url {
  flex: 1;
  margin-left: 4px;
  padding: 3px 8px;
  background: #fff;
  border-radius: 4px;
  font-size: 8px;
  color: #666;
}

.wf-device-web .wf-device-screen {
  height: 132px;
}

/* Windows laptop */
.wf-win-lid {
  width: 210px;
  padding: 7px 7px 0;
  background: linear-gradient(180deg, #4a4a50, #2a2a2e);
  border-radius: 8px 8px 0 0;
}

.wf-device-laptop .wf-device-screen {
  height: 124px;
  border-radius: 3px 3px 0 0;
}

.wf-win-base {
  width: 228px;
  height: 9px;
  margin-left: -9px;
  background: linear-gradient(180deg, #3a3a40, #1a1a1e);
  border-radius: 0 0 6px 6px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.wf-palette-item.wf-palette-hidden {
  display: none;
}

.wf-palette-icon.tab::after {
  content: "";
  position: absolute;
  inset: 3px 2px;
  border-bottom: 2px solid #5b8def;
}

.wf-palette-icon.map::after {
  content: "";
  position: absolute;
  inset: 3px;
  background: linear-gradient(160deg, #a8d8a8 40%, #5ac8fa 100%);
  border-radius: 2px;
}

/* Placed components — base */
.wf-comp {
  position: absolute;
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.35s ease, transform 0.35s ease;
  box-sizing: border-box;
}

.wf-chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 48px;
  margin-bottom: 4px;
}

.wf-chart-bars.sm {
  height: 32px;
  gap: 4px;
  margin-bottom: 2px;
}

.wf-chart-bars span {
  flex: 1;
  background: #007aff;
  border-radius: 2px 2px 0 0;
  min-height: 4px;
}

.wf-chart-label {
  font-size: 9px;
  color: #666;
  font-weight: 500;
}

/* —— iPhone —— */
.wf-device-phone .wf-comp-chart {
  left: 50%;
  top: 52px;
  width: 108px;
  margin-left: -54px;
  padding: 8px;
  background: #fafafa;
  border: 1px solid #c7c7cc;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transform: scale(0.92);
}

.wf-device-phone .wf-comp-button {
  left: 50%;
  top: 168px;
  padding: 8px 24px;
  background: #007aff;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  border-radius: 8px;
  white-space: nowrap;
  transform: translateX(-50%) scale(0.92);
}

/* —— MacBook: chart top, button bottom —— */
.wf-device-macbook .wf-comp-chart {
  left: 50%;
  top: 8px;
  width: 88px;
  margin-left: -44px;
  padding: 6px;
  background: #fafafa;
  border: 1px solid #c7c7cc;
  border-radius: 6px;
  transform: scale(0.92);
}

.wf-device-macbook .wf-comp-button {
  left: 50%;
  bottom: 8px;
  top: auto;
  padding: 5px 18px;
  background: #007aff;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  border-radius: 6px;
  white-space: nowrap;
  transform: translateX(-50%) scale(0.92);
}

/* —— Web: image top, button row bottom —— */
.wf-comp-image,
.wf-ghost-image {
  left: 10px;
  right: 10px;
  top: 6px;
  height: 48px;
  background: linear-gradient(135deg, #dbeafe 0%, #93c5fd 50%, #60a5fa 100%);
  border: 1px solid #c7c7cc;
  border-radius: 6px;
}

.wf-ghost-image {
  position: absolute;
  width: 156px;
  left: auto;
  right: auto;
}

.wf-comp-btns,
.wf-ghost-btns {
  left: 8px;
  right: 8px;
  bottom: 8px;
  top: auto;
  display: flex;
  gap: 5px;
  justify-content: center;
}

.wf-comp-btns span,
.wf-ghost-btns span {
  padding: 5px 10px;
  background: #007aff;
  color: #fff;
  font-size: 8px;
  font-weight: 600;
  border-radius: 5px;
  white-space: nowrap;
}

.wf-ghost-btns span:nth-child(2) {
  background: #f2f2f7;
  color: #007aff;
  border: 1px solid #c7c7cc;
}

.wf-ghost-btns span:nth-child(3) {
  background: #f2f2f7;
  color: #333;
  border: 1px solid #c7c7cc;
}

.wf-ghost-btns {
  position: absolute;
  width: 168px;
}

/* —— Laptop: tabs top, list + map side by side —— */
.wf-comp-tabs,
.wf-ghost-tab {
  left: 6px;
  right: 6px;
  top: 4px;
  height: 18px;
  display: flex;
  gap: 2px;
  background: #f2f2f7;
  border: 1px solid #c7c7cc;
  border-radius: 5px 5px 0 0;
  padding: 2px 3px 0;
  overflow: hidden;
}

.wf-comp-tabs span,
.wf-ghost-tab span {
  padding: 2px 6px;
  font-size: 7px;
  font-weight: 600;
  color: #666;
  border-radius: 3px 3px 0 0;
}

.wf-comp-tabs span.on,
.wf-ghost-tab span.on {
  background: #fff;
  color: #007aff;
}

.wf-ghost-tab {
  position: absolute;
  width: 178px;
}

.wf-comp-list,
.wf-ghost-list {
  left: 6px;
  top: 24px;
  width: 42%;
  bottom: 6px;
  background: #fafafa;
  border: 1px solid #c7c7cc;
  border-radius: 0 0 0 5px;
  padding: 5px 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.wf-comp-list span,
.wf-ghost-list span {
  height: 8px;
  background: #e5e5ea;
  border-radius: 2px;
}

.wf-comp-list span:first-child,
.wf-ghost-list span:first-child {
  background: #d1d1d6;
  width: 80%;
}

.wf-ghost-list {
  position: absolute;
  width: 72px;
  height: 72px;
}

.wf-comp-map,
.wf-ghost-map {
  right: 6px;
  top: 24px;
  width: 48%;
  bottom: 6px;
  left: auto;
  background: linear-gradient(160deg, #c8e6c9 30%, #81c784 60%, #4fc3f7 100%);
  border: 1px solid #c7c7cc;
  border-radius: 0 0 5px 0;
}

.wf-ghost-map {
  position: absolute;
  width: 82px;
  height: 72px;
}

/* Visibility when placed — scoped per shell only */
#wf-shell-anim.wf-place-chart .wf-comp-chart,
#wf-shell-result.wf-place-chart .wf-comp-chart {
  opacity: 1;
  transform: scale(1);
}

#wf-shell-anim.wf-device-phone.wf-place-button .wf-comp-button,
#wf-shell-result.wf-device-phone.wf-place-button .wf-comp-button {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

#wf-shell-anim.wf-place-button .wf-comp-button,
#wf-shell-result.wf-place-button .wf-comp-button {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

#wf-shell-anim.wf-place-image .wf-comp-image,
#wf-shell-result.wf-place-image .wf-comp-image {
  opacity: 1;
  transform: scale(1);
}

#wf-shell-anim.wf-place-btns .wf-comp-btns,
#wf-shell-result.wf-place-btns .wf-comp-btns {
  opacity: 1;
  transform: scale(1);
}

#wf-shell-anim.wf-place-tab .wf-comp-tabs,
#wf-shell-result.wf-place-tab .wf-comp-tabs {
  opacity: 1;
  transform: scale(1);
}

#wf-shell-anim.wf-place-list .wf-comp-list,
#wf-shell-result.wf-place-list .wf-comp-list {
  opacity: 1;
  transform: scale(1);
}

#wf-shell-anim.wf-place-map .wf-comp-map,
#wf-shell-result.wf-place-map .wf-comp-map {
  opacity: 1;
  transform: scale(1);
}

.wf-palette-item.wf-used {
  opacity: 0.4;
  background: rgba(91, 141, 239, 0.06);
}

.workflow-demo.wf-cycle-out .wf-design,
.workflow-demo.wf-cycle-out .wf-prompt,
.workflow-demo.wf-cycle-out .wf-chat,
.workflow-demo.wf-cycle-out .wf-result,
.workflow-demo.wf-cycle-out > .wf-arrow {
  opacity: 0 !important;
  transform: scale(0.98) !important;
  transition: opacity 0.52s ease, transform 0.52s ease;
}

.workflow-demo.wf-cycle-in .wf-design,
.workflow-demo.wf-cycle-in .wf-prompt,
.workflow-demo.wf-cycle-in .wf-chat,
.workflow-demo.wf-cycle-in .wf-result,
.workflow-demo.wf-cycle-in > .wf-arrow {
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 0.52s ease, transform 0.52s ease;
}

.workflow-demo.wf-cycle-in.wf-cycle-in-ready .wf-design,
.workflow-demo.wf-cycle-in.wf-cycle-in-ready .wf-prompt,
.workflow-demo.wf-cycle-in.wf-cycle-in-ready .wf-chat,
.workflow-demo.wf-cycle-in.wf-cycle-in-ready .wf-result,
.workflow-demo.wf-cycle-in.wf-cycle-in-ready > .wf-arrow {
  opacity: 1;
  transform: scale(1);
}

/* Cursor → result handoff */
.workflow-demo.wf-handoff > .wf-arrow:nth-last-of-type(1) {
  color: #5b8def;
  animation: wf-handoff-arrow 0.55s ease-in-out 2;
}

.workflow-demo.wf-handoff .wf-chat-paste {
  color: #c8cdd8;
  transition: color 0.4s ease;
}

@keyframes wf-handoff-arrow {
  0%, 100% { opacity: 0.35; transform: translateX(0); }
  50% { opacity: 1; transform: translateX(5px); }
}

/* Result device — smooth reveal */
#wf-shell-result {
  transition: opacity 0.5s ease, transform 0.5s ease;
}

#wf-shell-result.wf-result-loading {
  opacity: 0.55;
  transform: scale(0.985);
}

#wf-shell-result .wf-comp {
  transition: opacity 0.5s ease, transform 0.5s ease;
}

#wf-shell-result.wf-result-visible {
  opacity: 1;
  transform: scale(1);
}

.wf-device-result .wf-frame-phone .wf-phone-bezel,
.wf-device-result .wf-mac-lid,
.wf-device-result .wf-browser,
.wf-device-result .wf-win-lid {
  transition: box-shadow 0.55s ease;
}

.wf-device-result.wf-result-glow .wf-frame-phone .wf-phone-bezel,
.wf-device-result.wf-result-glow .wf-mac-lid,
.wf-device-result.wf-result-glow .wf-browser,
.wf-device-result.wf-result-glow .wf-win-lid {
  box-shadow:
    0 0 0 1px rgba(91, 141, 239, 0.35),
    0 0 20px rgba(91, 141, 239, 0.12),
    0 16px 40px rgba(0, 0, 0, 0.4);
}

.wf-ghost {
  position: absolute;
  z-index: 10;
  pointer-events: none;
  opacity: 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.wf-ghost-chart {
  width: 108px;
  padding: 8px;
  background: #fafafa;
  border: 1px solid #c7c7cc;
  border-radius: 8px;
}

.wf-ghost-button {
  padding: 8px 24px;
  background: #007aff;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  border-radius: 8px;
  white-space: nowrap;
}

.wf-chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 48px;
  margin-bottom: 4px;
}

.wf-chart-bars.sm {
  height: 32px;
  gap: 4px;
  margin-bottom: 2px;
}

.wf-chart-bars span {
  flex: 1;
  background: #007aff;
  border-radius: 2px 2px 0 0;
  min-height: 4px;
}

.wf-chart-label {
  font-size: 9px;
  color: #666;
  font-weight: 500;
}


.wf-cursor {
  position: absolute;
  width: 14px;
  height: 14px;
  top: 0;
  left: 0;
  z-index: 15;
  pointer-events: none;
  opacity: 0;
}

.wf-cursor::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  border-left: 8px solid #000;
  border-right: 4px solid transparent;
  border-bottom: 10px solid transparent;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.3));
}

.wf-generate-btn {
  padding: 8px 12px;
  background: #1a1d27;
  border: 1px solid #5b8def;
  border-radius: 8px;
  color: #5b8def;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  max-width: 100%;
  transition: background 0.25s, color 0.25s, box-shadow 0.25s;
}

.workflow-demo.wf-generating .wf-generate-btn {
  background: #5b8def;
  color: #fff;
  box-shadow: 0 0 20px rgba(91, 141, 239, 0.4);
}

.workflow-demo.wf-cursor-press .wf-cursor::before {
  transform: scale(0.82);
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.3));
}

.workflow-demo.wf-cursor-press .wf-generate-btn {
  transform: scale(0.97);
}

.workflow-demo.wf-chat-send .wf-chat-send {
  transform: scale(0.88);
  background: #4a7de0;
}

.wf-arrow {
  font-size: 22px;
  color: #2e3344;
  flex-shrink: 0;
}

.wf-prompt {
  width: min(220px, 100%);
  background: #12141c;
  border: 1px solid #2e3344;
  border-radius: 10px;
  overflow: hidden;
  opacity: 0.3;
  transform: scale(0.92);
  transition: opacity 0.4s, transform 0.4s;
}

.workflow-demo.wf-show-prompt .wf-prompt {
  opacity: 1;
  transform: scale(1);
}

.wf-prompt-header {
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 600;
  color: #8b92a8;
  border-bottom: 1px solid #1e2230;
}

.wf-prompt-view {
  margin: 0;
  padding: 6px 12px 0;
  font-size: 10px;
  font-weight: 600;
  color: #9ec5ff;
  letter-spacing: 0.01em;
}

.wf-prompt-body {
  margin: 0;
  padding: 10px 12px;
  font-size: 9px;
  line-height: 1.45;
  color: #5b8def;
  overflow: hidden;
}

.wf-prompt-body code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
}

.wf-prompt.wf-prompt-updated .wf-prompt-view,
.wf-prompt.wf-prompt-updated .wf-prompt-body {
  animation: wf-prompt-flash 0.65s ease;
}

@keyframes wf-prompt-flash {
  0% { color: #c8e0ff; }
  35% { color: #5b8def; }
  100% { color: inherit; }
}

body.wf-demo-recording .workflow-eyebrow,
body.wf-demo-recording .workflow-demo-intro,
body.wf-demo-recording .workflow-steps {
  display: none !important;
}

body.wf-demo-recording .wf-prompt {
  width: min(300px, 100%);
}

body.wf-demo-recording .wf-prompt-view {
  font-size: 11px;
}

body.wf-demo-recording .wf-prompt-body {
  font-size: 10px;
  line-height: 1.5;
  max-height: 220px;
}

body.wf-demo-recording .wf-device-track {
  opacity: 1;
}

body.wf-demo-recording .wf-device-chip {
  font-size: 12px;
  padding: 5px 12px;
}

body.wf-demo-recording .wf-demo-hud {
  margin-bottom: 8px;
}

.wf-chat {
  width: min(200px, 100%);
  background: #12141c;
  border: 1px solid #2e3344;
  border-radius: 10px;
  overflow: hidden;
  opacity: 0.25;
  transform: scale(0.92);
  transition: opacity 0.4s, transform 0.4s;
}

.workflow-demo.wf-show-chat .wf-chat {
  opacity: 1;
  transform: scale(1);
}

.wf-chat-header {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 12px;
  font-size: 11px;
  color: #8b92a8;
  border-bottom: 1px solid #1e2230;
}

.wf-chat-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2e3344;
}

.wf-chat-input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 10px;
  padding: 8px 10px;
  background: #0a0c10;
  border: 1px solid #2e3344;
  border-radius: 8px;
  font-size: 10px;
}

.wf-chat-paste {
  color: #6b7289;
  transition: color 0.4s;
}

.workflow-demo.wf-show-chat .wf-chat-paste {
  color: #c8cdd8;
}

.wf-chat-send {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #5b8def;
  color: #fff;
  border-radius: 6px;
  font-size: 11px;
  transition: transform 0.15s ease, background 0.15s ease;
}

/* Completed layout — static iPhone on the right */
.wf-result {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.wf-result-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b7289;
  transition: color 0.45s ease;
}

@media (max-width: 900px) {
  .page-body {
    flex-direction: column;
  }

  main {
    display: block;
    flex: none;
    min-height: auto;
  }

  .page-scroll {
    overflow-y: auto;
  }

  .workflow {
    flex: none;
    min-height: auto;
    padding-bottom: 28px;
  }

  .workflow-demo-viewport {
    flex: none;
    min-height: auto;
    overflow: visible;
  }

  .workflow-demo {
    transform: none !important;
  }

  .wf-trained-banner {
    position: static;
    margin-top: 20px;
  }

  .page-scroll {
    order: 1;
  }

  .layout-scope {
    order: 2;
    width: 100%;
    border-right: none;
    border-top: 1px solid #1e2230;
    padding: 20px 24px 28px;
    flex-shrink: 0;
    overflow-y: visible;
  }

  .layout-scope-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .workflow-demo {
    flex-direction: column;
  }

  .workflow-step {
    padding: 5px 10px;
    font-size: 13px;
  }

  .wf-demo-hud {
    margin-bottom: 20px;
  }

  .wf-arrow {
    transform: rotate(90deg);
  }

  .wf-stage {
    flex-direction: column;
    align-items: center;
  }

  .wf-palette {
    width: 100%;
    max-width: 280px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 8px;
  }

  .wf-palette-title {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .layout-scope-grid {
    grid-template-columns: 1fr;
  }

  .site-header {
    padding: 14px 20px;
  }

  .site-footer {
    flex-direction: column;
    gap: 10px;
    padding: 14px 20px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .workflow {
    padding-left: 20px;
    padding-right: 20px;
  }

  .workflow-step-text {
    max-width: 220px;
    line-height: 1.35;
  }

  .wf-device-chip {
    font-size: 10px;
    padding: 3px 8px;
  }

  .wf-device-phone .wf-phone-bezel {
    width: 150px;
  }

  .wf-device-phone .wf-device-screen {
    height: 268px;
  }

  .wf-mac-lid { width: 190px; }
  .wf-device-macbook .wf-device-screen { height: 110px; }
  .wf-browser { width: 200px; }
  .wf-device-web .wf-device-screen { height: 112px; }
  .wf-win-lid { width: 180px; }
  .wf-device-laptop .wf-device-screen { height: 106px; }

  .wf-result {
    width: 100%;
  }
}

.landing-proof {
  width: 100%;
  max-width: var(--content-max, 920px);
  margin: 0 auto;
  padding: var(--space-section, clamp(48px, 8vh, 88px)) 28px clamp(32px, 5vh, 48px);
  border-top: 1px solid var(--line);
  text-align: center;
}

.landing-proof-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 12px;
}

.landing-proof h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 500;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
  color: var(--ink);
}

.landing-proof-lead {
  max-width: 36em;
  margin: 0 auto 24px;
  font-size: 15px;
  color: var(--ink-mute);
  line-height: 1.45;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
}

.skip-link:focus {
  left: 12px;
}

.landing-proof-compare {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 14px;
  align-items: center;
  max-width: 920px;
  margin: 0 auto 18px;
  padding: 18px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg, 16px);
  background:
    radial-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 20px 20px,
    var(--bg-elevated, #0c1018);
}

.landing-proof-compare-second {
  margin-bottom: 28px;
}

.landing-proof-vs {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--accent-soft, rgba(79, 140, 255, 0.14));
  border: 1px solid rgba(79, 140, 255, 0.35);
  color: var(--accent-muted, #c5d4f5);
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 13px;
  font-weight: 600;
}

.landing-proof-pane {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #0a0e16;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.landing-proof-pane:hover {
  transform: translateY(-2px);
  border-color: rgba(79, 140, 255, 0.35);
}

.landing-proof-pane-result {
  border-color: rgba(79, 140, 255, 0.28);
}

.landing-proof-pane img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top center;
}

.landing-proof-compare-second .landing-proof-pane img {
  aspect-ratio: 16 / 10;
}

.landing-proof-pane figcaption {
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-mute);
  border-top: 1px solid var(--line);
  background: rgba(12, 16, 24, 0.9);
}

.landing-proof-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.landing-path {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(36px, 6vh, 64px) 28px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.landing-path-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 12px;
}

.landing-path h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.2vw, 32px);
  font-weight: 500;
  letter-spacing: -0.03em;
  margin: 0 0 28px;
}

.landing-path-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 28px;
  padding: 0;
  counter-reset: path-step;
  text-align: left;
}

.landing-path-steps li {
  position: relative;
  padding: 20px 18px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md, 12px);
  background: rgba(12, 16, 24, 0.65);
  counter-increment: path-step;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.landing-path-steps li:hover {
  border-color: rgba(79, 140, 255, 0.35);
  transform: translateY(-2px);
}

.landing-path-steps li::before {
  content: counter(path-step);
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.landing-path-steps strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.landing-path-steps span {
  display: block;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-mute);
}

.landing-path-boundary {
  max-width: 34em;
  margin: 0 auto 22px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-mute);
}

@media (max-width: 700px) {
  .landing-proof-compare {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .landing-proof-vs {
    transform: rotate(90deg);
    margin: 2px auto;
  }

  .landing-proof-pane img,
  .landing-proof-compare-second .landing-proof-pane img {
    aspect-ratio: 16 / 10;
  }

  .landing-path-steps {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.landing-pricing {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(48px, 8vh, 80px) 28px 56px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.landing-pricing-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 12px;
}

.landing-pricing h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.6vw, 36px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 12px;
  color: var(--ink);
}

.landing-pricing-lead {
  max-width: 34em;
  margin: 0 auto 32px;
  font-size: 15px;
  color: var(--ink-mute);
  line-height: 1.45;
}

.pricing-plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  text-align: left;
}

.pricing-plan {
  padding: 24px 22px 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(12, 16, 24, 0.65);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.pricing-plan-featured {
  border-color: rgba(79, 140, 255, 0.4);
  background:
    radial-gradient(90% 70% at 50% 0%, rgba(79, 140, 255, 0.16), transparent 55%),
    rgba(14, 18, 28, 0.85);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.pricing-plan-badge {
  display: inline-block;
  align-self: flex-start;
  margin: 0 0 10px;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #c5d4f5;
  border: 1px solid rgba(79, 140, 255, 0.35);
  border-radius: 6px;
  background: rgba(79, 140, 255, 0.1);
}

.pricing-plan h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

.pricing-plan-price {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0;
}

.pricing-plan-price span {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink-mute);
}

.pricing-plan-period {
  margin: 6px 0 18px;
  font-size: 13px;
  color: var(--ink-mute);
}

.pricing-plan ul {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  flex: 1;
}

.pricing-plan li {
  padding: 8px 0;
  font-size: 14px;
  color: var(--ink-soft);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.pricing-plan li:first-child {
  border-top: none;
}

.pricing-plan .btn {
  width: 100%;
  text-align: center;
}

@media (max-width: 700px) {
  .pricing-plans {
    grid-template-columns: 1fr;
  }
}

/* Footer chrome from site.css */
