/* Motif homepage. Uses the palette and fonts defined in styles.css. */

.home-shell {
  max-width: 1180px;
  padding-top: 24px;
}

/* ---------- nav ---------- */
.home-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 56px;
}

.home-nav-links {
  display: flex;
  gap: 30px;
  font-size: 13px;
}

.home-nav-links a {
  color: rgba(213, 194, 176, 0.62);
}

.home-nav-links a:hover {
  color: var(--text);
  opacity: 1;
}

.home-nav-cta {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(248, 241, 228, 0.2);
  color: var(--text);
  font-size: 13px;
  font-weight: 650;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.home-nav-cta:hover {
  opacity: 1;
  border-color: rgba(248, 241, 228, 0.46);
  background: rgba(248, 241, 228, 0.04);
}

/* ---------- hero ---------- */
.home-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 96px 0 0;
}

.home-kicker {
  margin-bottom: 22px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(213, 194, 176, 0.6);
}

.home-hero h1 {
  margin: 0;
  max-width: 11.5ch;
  font-family: var(--font-heading);
  font-size: clamp(50px, 7.6vw, 104px);
  font-weight: 550;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--text);
  text-wrap: balance;
}

.home-hero-sub {
  max-width: 40rem;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.home-hero-sub strong {
  color: var(--text);
  font-weight: 650;
}

/* voice bar: the one primary action */
.voice-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(100%, 660px);
  margin-top: 44px;
  padding: 8px 8px 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(248, 241, 228, 0.16);
  background:
    linear-gradient(180deg, rgba(248, 241, 228, 0.06), rgba(248, 241, 228, 0.02)),
    rgba(27, 25, 22, 0.82);
  box-shadow:
    inset 0 1px 0 rgba(248, 241, 228, 0.06),
    0 30px 80px rgba(0, 0, 0, 0.4);
  color: var(--text);
  text-align: left;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.voice-bar:hover {
  opacity: 1;
  border-color: rgba(248, 241, 228, 0.34);
  transform: translateY(-2px);
}

.voice-bar:focus-visible {
  outline: 2px solid rgba(248, 241, 228, 0.5);
  outline-offset: 4px;
}

.voice-mic {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: #17130f;
  background: var(--accent-warm);
}

.voice-mic::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(240, 197, 158, 0.55);
  animation: voice-ring 2.2s ease-out infinite;
}

@keyframes voice-ring {
  from { transform: scale(1); opacity: 0.9; }
  to { transform: scale(1.6); opacity: 0; }
}

.voice-wave {
  flex: none;
  display: flex;
  align-items: center;
  gap: 3px;
  height: 28px;
}

.voice-wave i {
  width: 3px;
  height: 18%;
  border-radius: 2px;
  background: rgba(240, 197, 158, 0.75);
  transition: height 0.3s ease;
}

.voice-bar.is-speaking .voice-wave i {
  animation: voice-level 0.9s ease-in-out infinite;
}

.voice-wave i:nth-child(2n) { animation-delay: -0.3s; }
.voice-wave i:nth-child(3n) { animation-delay: -0.55s; }
.voice-wave i:nth-child(5n) { animation-delay: -0.15s; }
.voice-wave i:nth-child(4n+1) { animation-delay: -0.7s; }

@keyframes voice-level {
  0%, 100% { height: 18%; }
  50% { height: 100%; }
}

.voice-caption {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 16px;
  font-style: italic;
  color: rgba(247, 241, 232, 0.92);
}

.voice-caption .w {
  display: none;
}

.voice-caption .w.on {
  display: inline;
  animation: voice-word 0.3s ease both;
}

@keyframes voice-word {
  from { opacity: 0; }
  to { opacity: 1; }
}

.prompt-go {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  background: #f7f1e8;
  color: #17130f;
  font-size: 14.5px;
  font-weight: 750;
  white-space: nowrap;
}

.home-hero-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 16px;
  margin-top: 24px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 4px 0;
  border: 0;
  background: none;
  color: rgba(213, 194, 176, 0.8);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.text-link:hover {
  color: var(--text);
  opacity: 1;
}

.text-link-strong {
  color: var(--text);
}

.text-link-strong:hover {
  color: rgba(213, 194, 176, 0.9);
}

.mini-play {
  position: relative;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid rgba(248, 241, 228, 0.3);
}

.mini-play::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 6px;
  border-left: 7px solid currentColor;
  border-top: 4.5px solid transparent;
  border-bottom: 4.5px solid transparent;
}

.dot-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(213, 194, 176, 0.36);
}

/* ---------- shared section bits ---------- */
.home-eyebrow {
  display: block;
  font-family: var(--font-heading);
  color: rgba(213, 194, 176, 0.56);
  font-size: 15px;
  font-weight: 500;
}

.home-section-head h2,
.home-close h2 {
  margin: 10px 0 0;
  font-family: var(--font-heading);
  font-size: clamp(34px, 3.9vw, 54px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.015em;
  color: rgba(245, 240, 232, 0.95);
  text-wrap: balance;
}

.home-section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 44px;
}

.pill-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border: 1px solid rgba(248, 241, 228, 0.16);
  border-radius: 999px;
  background: #f7f1e8;
  color: #17130f;
  font-size: 14.5px;
  font-weight: 750;
  cursor: pointer;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pill-cta:hover {
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.34);
}

/* ---------- showcases ---------- */
.show {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 72px;
  align-items: center;
  margin-top: 136px;
}

.show-assistant {
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  margin-top: 120px;
}

.show-assistant.commerce-section {
  border-top: 0;
  padding-top: 0;
  margin-bottom: 0;
}

.show-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.product-name {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(213, 194, 176, 0.66);
}

.show-copy h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(38px, 4.2vw, 60px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: rgba(245, 240, 232, 0.96);
  text-wrap: balance;
}

.show-copy > p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
  max-width: 24rem;
}

.show-copy .pill-cta {
  margin-top: 10px;
}

.show-note {
  margin: -4px 0 0 !important;
  font-size: 13px !important;
  color: var(--dim) !important;
}

.show-copy .step-status {
  margin: 0;
  font-size: 13px;
}

.show-copy .step-status:empty {
  display: none;
}

.show-daws {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 2px 0 0;
  padding: 0;
}

.show-daws li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: rgba(247, 241, 232, 0.88);
  font-size: 14px;
  font-weight: 650;
}

.show-daws img {
  border-radius: 6px;
}

.show-soon {
  margin: 16px 0 0;
  text-align: center;
  color: var(--dim);
  font-size: 13px;
}

.show-assistant .hero-mockup-wrapper {
  width: 100%;
  justify-self: stretch;
}

.show-bridge {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 120px 0 0;
  font-family: var(--font-heading);
  font-size: 17px;
  color: rgba(213, 194, 176, 0.62);
  white-space: nowrap;
}

.show-bridge span {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(248, 241, 228, 0.16), transparent);
}

/* the real Motif Cloud screen, in a phone */
.show-cloud .show-visual {
  display: grid;
  place-items: center;
  position: relative;
}

.show-cloud .show-visual::before {
  content: "";
  position: absolute;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(240, 197, 158, 0.1), transparent 70%);
  filter: blur(20px);
}

.phone {
  position: relative;
  width: min(100%, 330px);
  aspect-ratio: 9 / 19;
  padding: 12px;
  border-radius: 48px;
  background: linear-gradient(160deg, #2a2621, #141210);
  box-shadow:
    0 0 0 1px rgba(248, 241, 228, 0.16),
    inset 0 1px 0 rgba(248, 241, 228, 0.12),
    0 50px 120px rgba(0, 0, 0, 0.6);
}

.phone::before {
  content: "";
  position: absolute;
  top: 24px;
  left: 50%;
  z-index: 2;
  width: 92px;
  height: 26px;
  border-radius: 999px;
  background: #000;
  transform: translateX(-50%);
}

.phone-screen {
  height: 100%;
  border-radius: 38px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 22px;
  text-align: center;
  background: radial-gradient(circle at 50% 35%, #171329, #050508 48%, #000);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

.cloud-orb {
  width: 78%;
  aspect-ratio: 1;
  margin-bottom: 18px;
  mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(circle, #000 58%, transparent 71%);
  mask-image: radial-gradient(circle, #000 58%, transparent 71%);
  transition: transform 0.5s ease;
}

.cloud-orb img {
  display: block;
  width: 100%;
  height: 100%;
}

.phone-screen[data-phase="listening"] .cloud-orb {
  animation: orb-listen 2.4s ease-in-out infinite;
}

.phone-screen[data-phase="thinking"] .cloud-orb {
  animation: orb-think 1.2s ease-in-out infinite alternate;
}

.phone-screen[data-phase="speaking"] .cloud-orb,
.phone-screen[data-phase="playing"] .cloud-orb {
  animation: orb-speak 0.7s ease-in-out infinite alternate;
}

@keyframes orb-listen {
  0%, 100% { transform: scale(0.97); }
  50% { transform: scale(1.01); }
}

@keyframes orb-think {
  from { transform: scale(0.94); opacity: 0.85; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes orb-speak {
  from { transform: scale(0.99); }
  to { transform: scale(1.07); }
}

.cloud-phase {
  margin: 0;
  color: #aa8dff;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 10.5px;
  font-weight: 750;
}

.cloud-title {
  margin: 8px 0 6px;
  color: #f5f2ff;
  font-size: 28px;
  font-weight: 700;
}

.cloud-detail {
  min-height: 3.2em;
  margin: 0;
  color: #aaa4b8;
  font-size: 13.5px;
  line-height: 1.5;
  transition: opacity 0.3s ease;
}

.cloud-detail.is-fading {
  opacity: 0;
}

.cloud-session {
  min-height: 1.3em;
  margin: 6px 0 0;
  color: #d5cced;
  font-size: 11.5px;
}

/* ---------- faq ---------- */
.home-faq {
  margin-top: 128px;
  padding-top: 96px;
  border-top: 1px solid var(--line);
}

.faq-rows {
  max-width: 760px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.faq-rows details {
  border-bottom: 1px solid var(--line);
}

.faq-rows summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 20px 40px 20px 0;
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
}

.faq-rows summary::-webkit-details-marker {
  display: none;
}

.faq-rows summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  font-weight: 400;
  color: rgba(213, 194, 176, 0.62);
  transition: transform 0.2s ease;
}

.faq-rows details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq-rows summary:hover {
  color: rgba(247, 241, 232, 0.8);
}

.faq-rows summary:focus-visible {
  outline: 2px solid rgba(213, 194, 176, 0.45);
  outline-offset: 2px;
}

.faq-rows details p {
  margin: 0;
  padding: 0 40px 22px 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

/* ---------- closing ---------- */
.home-close {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  margin-top: 128px;
  padding: 104px 24px;
  text-align: center;
  border-radius: 28px;
  border: 1px solid var(--line);
  background:
    radial-gradient(60% 90% at 50% 120%, rgba(240, 197, 158, 0.1), transparent 70%),
    rgba(27, 25, 22, 0.5);
}

.home-close h2 {
  margin: 0;
  max-width: 20ch;
}

/* ---------- footer ---------- */
.home-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
  margin-top: 88px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.home-footer .brand {
  font-size: 16px;
}

.home-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font-size: 13px;
}

.home-footer p {
  margin: 0;
  color: var(--dim);
  font-size: 13px;
}

/* ---------- tablet ---------- */
@media (max-width: 960px) {
  .show,
  .show-assistant {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .show-assistant .show-copy {
    order: 2;
  }

  .show-copy {
    align-items: center;
    text-align: center;
  }

  .show-copy > p {
    max-width: 30rem;
  }

  .show-daws {
    justify-content: center;
  }
}

@media (max-width: 760px) {
  .home-nav-links {
    display: none;
  }
}

/* ---------- phones: very minimal ---------- */
@media (max-width: 600px) {
  .home-shell {
    padding: 18px 20px 48px;
  }

  .home-hero {
    padding-top: 64px;
  }

  .home-kicker {
    margin-bottom: 16px;
  }

  .home-hero-sub {
    font-size: 16px;
    margin-top: 18px;
  }

  .voice-bar {
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
    padding: 10px;
    border-radius: 26px;
  }

  .voice-mic {
    width: 40px;
    height: 40px;
  }

  .voice-caption {
    font-size: 15px;
  }

  .prompt-go {
    width: 100%;
    justify-content: center;
  }

  .home-hero-links {
    flex-direction: column;
    gap: 10px;
  }

  .home-hero-links .dot-sep,
  .hide-sm {
    display: none;
  }

  .home-faq,
  .home-close {
    display: none;
  }

  .show {
    margin-top: 72px;
  }

  .show-bridge {
    margin-top: 72px;
    font-size: 15px;
    gap: 14px;
  }

  .show-assistant {
    margin-top: 56px;
  }

  .phone {
    width: min(100%, 280px);
  }

  .show-copy .pill-cta {
    width: 100%;
  }

  .home-footer {
    margin-top: 56px;
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .voice-mic::after,
  .voice-bar.is-speaking .voice-wave i,
  .cloud-orb {
    animation: none !important;
  }
}

/* ---------- the signature: speech becomes an editable session ---------- */
.hero-cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 34px;
}

.stage-demo {
  width: min(100%, 980px);
  margin: 72px 0 0;
  border-radius: 20px;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(180deg, rgba(248, 241, 228, 0.045), rgba(248, 241, 228, 0.012)),
    rgba(22, 20, 17, 0.9);
  box-shadow: 0 40px 110px rgba(0, 0, 0, 0.5);
  text-align: left;
  overflow: hidden;
}

.stage-top {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 0 22px;
  border-bottom: 1px solid var(--line);
}

.stage-mic {
  position: relative;
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(240, 197, 158, 0.35);
  transition: background 0.3s ease;
}

.stage-demo.is-listening .stage-mic {
  background: var(--accent-warm);
}

.stage-demo.is-listening .stage-mic::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid rgba(240, 197, 158, 0.5);
  animation: voice-ring 1.8s ease-out infinite;
}

.stage-said {
  flex: 1;
  min-width: 0;
  font-family: var(--font-heading);
  font-size: clamp(17px, 1.8vw, 21px);
  font-style: italic;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stage-said .w {
  opacity: 0;
  transition: opacity 0.25s ease;
}

.stage-said .w.on {
  opacity: 1;
}

.stage-meta {
  flex: none;
  color: rgba(213, 194, 176, 0.7);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.stage-lanes {
  position: relative;
  padding: 10px 0;
}

.lane {
  display: grid;
  grid-template-columns: 108px 64px 1fr;
  align-items: center;
  height: 62px;
  padding: 0 22px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.lane.is-in {
  opacity: 1;
  transform: none;
}

.lane + .lane {
  border-top: 1px solid rgba(248, 241, 228, 0.05);
}

.lane-name {
  color: rgba(247, 241, 232, 0.9);
  font-size: 13.5px;
  font-weight: 650;
}

.lane-tag {
  justify-self: start;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
  opacity: 0;
  transition: opacity 0.3s ease, color 0.3s ease;
}

.lane-tag.on {
  opacity: 1;
}

.lane-tag.changed {
  color: var(--accent-warm);
}

.lane-track {
  position: relative;
  height: 38px;
  border-radius: 8px;
  background: rgba(248, 241, 228, 0.03);
  overflow: hidden;
}

.lane-track i {
  position: absolute;
  border-radius: 3px;
  background: rgba(247, 241, 232, 0.72);
  transform-origin: left center;
  animation: note-in 0.4s ease both;
  transition: left 0.6s ease, width 0.6s ease, background 0.4s ease;
}

.lane.is-changed .lane-track i {
  background: var(--accent-warm);
}

.lane.is-changed .lane-track {
  box-shadow: inset 0 0 0 1px rgba(240, 197, 158, 0.35);
}

@keyframes note-in {
  from { transform: scaleX(0); opacity: 0; }
  to { transform: scaleX(1); opacity: 1; }
}

.stage-playhead {
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: calc(22px + 108px + 64px);
  width: 1.5px;
  background: rgba(247, 241, 232, 0.75);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.stage-demo.is-playing .stage-playhead {
  opacity: 1;
  animation: playhead 4s linear infinite;
}

@keyframes playhead {
  from { transform: translateX(0); }
  to { transform: translateX(calc(980px - 22px - 108px - 64px - 22px)); }
}

.stage-foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 22px;
  border-top: 1px solid var(--line);
  color: rgba(213, 194, 176, 0.72);
  font-size: 13px;
  font-weight: 600;
}

.stage-foot-right {
  color: var(--dim);
  font-weight: 500;
}

.stage-caption {
  margin: 26px 0 0;
  font-family: var(--font-heading);
  font-size: clamp(18px, 2vw, 22px);
  color: rgba(213, 194, 176, 0.75);
}

@media (max-width: 1040px) {
  .stage-demo.is-playing .stage-playhead {
    animation: none;
    opacity: 0;
  }
}

@media (max-width: 600px) {
  .hero-cta-row {
    flex-direction: column;
    gap: 16px;
    width: 100%;
  }

  .hero-cta-row .pill-cta {
    width: 100%;
  }

  .stage-demo {
    margin-top: 44px;
    border-radius: 16px;
  }

  .stage-top {
    flex-wrap: wrap;
    gap: 6px 12px;
    padding: 14px 16px;
  }

  .stage-said {
    flex-basis: calc(100% - 24px);
    white-space: normal;
    font-size: 16px;
  }

  .stage-meta {
    margin-left: 22px;
  }

  .lane {
    grid-template-columns: 64px 1fr;
    height: 52px;
    padding: 0 16px;
  }

  .lane-tag {
    display: none;
  }

  .lane-track {
    height: 30px;
  }

  .stage-foot {
    padding: 12px 16px;
    font-size: 12px;
  }

  .stage-caption {
    font-size: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lane,
  .lane-track i {
    transition: none;
    animation: none;
  }

  .stage-demo .stage-playhead {
    display: none;
  }
}

@media (max-width: 600px) {
  .stage-foot-right {
    display: none;
  }
}

/* ---------- exported files in the hero stage ---------- */
.stage-foot {
  align-items: center;
}

.stage-files {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-start;
}

.file-chip {
  padding: 3px 9px;
  border-radius: 6px;
  border: 1px solid rgba(240, 197, 158, 0.35);
  background: rgba(240, 197, 158, 0.08);
  color: rgba(247, 241, 232, 0.92);
  font-size: 12px;
  font-weight: 600;
  animation: chip-in 0.35s ease both;
}

@keyframes chip-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Cloud to any DAW ---------- */
.flow {
  margin-top: 136px;
}

.flow-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 32px minmax(0, 1fr) 32px minmax(0, 1fr);
  align-items: stretch;
  gap: 16px;
}

.flow-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  border-radius: 18px;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(180deg, rgba(248, 241, 228, 0.04), rgba(248, 241, 228, 0.012)),
    rgba(22, 20, 17, 0.8);
}

.flow-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(213, 194, 176, 0.62);
}

.flow-said {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 20px;
  font-style: italic;
  line-height: 1.3;
  color: var(--text);
}

.flow-mini {
  display: grid;
  gap: 7px;
  margin-top: auto;
}

.flow-mini span {
  position: relative;
  height: 18px;
  border-radius: 5px;
  background: rgba(248, 241, 228, 0.03);
}

.flow-mini i {
  position: absolute;
  top: 4px;
  bottom: 4px;
  border-radius: 2px;
  background: rgba(247, 241, 232, 0.6);
}

.flow-note {
  color: var(--dim);
  font-size: 12.5px;
}

.flow-arrow {
  display: grid;
  place-items: center;
  color: rgba(213, 194, 176, 0.5);
  font-size: 20px;
}

.flow-files,
.flow-daws {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.flow-files li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  font-size: 14px;
  color: var(--text);
}

.flow-files .ext {
  flex: none;
  width: 38px;
  padding: 2px 0;
  border-radius: 5px;
  border: 1px solid rgba(240, 197, 158, 0.35);
  color: var(--accent-warm);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-align: center;
}

.flow-files .fname {
  font-weight: 600;
  white-space: nowrap;
}

.flow-files em {
  flex-basis: 100%;
  margin: -4px 0 0 48px;
  font-style: normal;
  color: var(--dim);
  font-size: 12.5px;
}

.flow-daws {
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
}

.flow-daws li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(247, 241, 232, 0.9);
}

.flow-daws img,
.flow-daws .mono {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 5px;
}

.flow-daws .mono {
  display: grid;
  place-items: center;
  background: rgba(248, 241, 228, 0.1);
  color: var(--text);
  font-size: 11px;
  font-weight: 800;
}

.flow-status {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.flow-status li {
  display: grid;
  grid-template-columns: 140px 1fr;
  align-items: center;
  gap: 18px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
  color: rgba(247, 241, 232, 0.88);
  font-size: 15px;
}

.st {
  justify-self: start;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--line-strong);
  color: var(--muted);
}

.st-live {
  color: #9ef2b7;
  border-color: rgba(63, 185, 80, 0.35);
  background: rgba(63, 185, 80, 0.1);
}

.st-next {
  color: var(--accent-warm);
  border-color: rgba(240, 197, 158, 0.35);
}

.st-dev {
  color: var(--dim);
}

.show-cloud {
  margin-top: 136px;
}

@media (max-width: 960px) {
  .flow-grid {
    grid-template-columns: 1fr;
  }

  .flow-arrow {
    transform: rotate(90deg);
    height: 24px;
  }
}

@media (max-width: 600px) {
  .flow {
    margin-top: 72px;
  }

  .flow-col {
    padding: 20px;
  }

  .flow-status li {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .stage-files {
    display: none;
  }

  .show-cloud {
    margin-top: 72px;
  }
}

.file-chip.is-native {
  border-color: rgba(240, 197, 158, 0.7);
  background: rgba(240, 197, 158, 0.16);
  color: var(--text);
}

.flow-files .ext {
  width: 46px;
}

.flow-source {
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

/* ---------- Motif Assistant: proof above the video ---------- */
.assist {
  margin-top: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.assist.commerce-section {
  border-top: 0;
  padding-top: 0;
  margin-bottom: 0;
}

.assist-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: 720px;
}

.assist-head h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(38px, 4.4vw, 62px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: rgba(245, 240, 232, 0.96);
  text-wrap: balance;
}

.assist-head p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.assist-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
  margin-top: 44px;
  text-align: left;
}

.proof {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 22px;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  background: rgba(27, 25, 22, 0.7);
}

.proof-said {
  font-family: var(--font-heading);
  font-size: 18px;
  font-style: italic;
  line-height: 1.3;
  color: var(--text);
}

.proof-did {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.proof-did::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  margin-top: 0.5em;
  border-radius: 50%;
  background: #6fd88e;
}

.assist-source {
  margin: 14px 0 0;
  color: var(--dim);
  font-size: 12.5px;
}

.assist-video {
  width: 100%;
  margin-top: 28px;
  justify-self: stretch;
}

.assist-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-top: 36px;
}

.assist-cta .step-status {
  margin: 0;
  font-size: 13px;
}

.assist-cta .step-status:empty {
  display: none;
}

@media (max-width: 860px) {
  .assist-proof {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .assist {
    margin-top: 80px;
  }

  .assist-proof {
    margin-top: 28px;
  }

  .assist-cta .pill-cta {
    width: 100%;
  }
}

.assist-video .hero-video-play {
  white-space: nowrap;
}

/* review pass: flow spacing */
.show-cloud {
  margin-top: 150px;
}

.flow {
  margin-top: 150px;
}

.flow-daws {
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 600px) {
  .show-cloud,
  .flow {
    margin-top: 80px;
  }
}

/* Keep phone pages focused on the existing demos and primary actions. */
@media (max-width: 600px) {
  .stage-caption,
  .show-copy > p,
  .assist-head > p,
  .assist-proof,
  .assist-source,
  .flow .home-eyebrow,
  .flow-note {
    display: none;
  }
}

/* Export notes use the allowed stylesheet, not CSP-blocked inline styles. */
.flow-mini > span:nth-child(1) > i:nth-child(1) { left: 0; width: 8%; }
.flow-mini > span:nth-child(1) > i:nth-child(2) { left: 12%; width: 8%; }
.flow-mini > span:nth-child(1) > i:nth-child(3) { left: 25%; width: 8%; }
.flow-mini > span:nth-child(1) > i:nth-child(4) { left: 37%; width: 8%; }
.flow-mini > span:nth-child(1) > i:nth-child(5) { left: 50%; width: 8%; }
.flow-mini > span:nth-child(1) > i:nth-child(6) { left: 62%; width: 8%; }
.flow-mini > span:nth-child(1) > i:nth-child(7) { left: 75%; width: 8%; }
.flow-mini > span:nth-child(1) > i:nth-child(8) { left: 87%; width: 8%; }
.flow-mini > span:nth-child(2) > i:nth-child(1) { left: 0; width: 22%; }
.flow-mini > span:nth-child(2) > i:nth-child(2) { left: 30%; width: 14%; }
.flow-mini > span:nth-child(2) > i:nth-child(3) { left: 50%; width: 22%; }
.flow-mini > span:nth-child(2) > i:nth-child(4) { left: 80%; width: 16%; }
.flow-mini > span:nth-child(3) > i:nth-child(1) { left: 0; width: 24%; }
.flow-mini > span:nth-child(3) > i:nth-child(2) { left: 25%; width: 24%; }
.flow-mini > span:nth-child(3) > i:nth-child(3) { left: 50%; width: 24%; }
.flow-mini > span:nth-child(3) > i:nth-child(4) { left: 75%; width: 24%; }
.flow-mini > span:nth-child(4) > i:nth-child(1) { left: 6%; width: 8%; }
.flow-mini > span:nth-child(4) > i:nth-child(2) { left: 20%; width: 12%; }
.flow-mini > span:nth-child(4) > i:nth-child(3) { left: 40%; width: 6%; }
.flow-mini > span:nth-child(4) > i:nth-child(4) { left: 55%; width: 14%; }
.flow-mini > span:nth-child(4) > i:nth-child(5) { left: 78%; width: 10%; }
