/* Shared homepage and workflow preview section designs. */

.workflow-preview .workspace-bar > p {
  display: block;
  color: var(--muted);
  font-size: .8125rem;
  line-height: 1.7;
}

.workflow-preview .workspace-bar kbd {
  margin-right: 6px;
  padding: 3px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: var(--accent-tint);
  color: var(--text);
  font: inherit;
}

@media (max-width: 780px) {
  .workflow-preview .workspace-bar {
    flex-wrap: wrap;
    gap: 12px;
  }
}

@media (min-width: 1051px) {
  .workflow-preview .workspace-panel {
    grid-template-columns: 300px minmax(0, 1fr);
  }
}

@media (min-width: 781px) and (max-width: 1050px) {
  .workflow-preview .workspace-panel {
    grid-template-columns: 260px minmax(0, 1fr);
  }
}

/* The handoff's open comparison lanes and separate statistic band. */
.workflow-preview .thought-section {
  padding-block: 105px 95px;
}

.workflow-preview .thought-section > .wrap {
  width: min(1160px, calc(100% - 80px));
}

.workflow-preview .thought-head {
  max-width: 960px;
}

.workflow-preview .thought-head h2 {
  font-size: clamp(2.8rem, 4.5vw, 4.5rem);
  font-weight: 550;
  letter-spacing: -.05em;
  line-height: 1.08;
  text-wrap: balance;
}

.workflow-preview .thought-head > p:last-child {
  max-width: 700px;
  line-height: 1.8;
  text-wrap: pretty;
}

.workflow-preview .thought-stats {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 44px;
  margin-top: 62px;
  padding-top: 44px;
  border-top: 1px solid var(--line);
}

.workflow-preview .thought-stat {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0;
}

.workflow-preview .thought-stat-value {
  color: var(--accent-ink);
  font-size: clamp(2.75rem, 4.2vw, 3.75rem);
  font-weight: 550;
  letter-spacing: -.05em;
  line-height: 1;
}

.workflow-preview .thought-stat-label {
  color: var(--text);
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  letter-spacing: -.02em;
  line-height: 1.35;
  text-wrap: balance;
}

.workflow-preview .thought-stat-label sup {
  margin-left: 1px;
  color: var(--accent-ink);
}

.workflow-preview .thought-stat-label a {
  color: inherit;
  text-decoration: none;
}

.workflow-preview .thought-live-comparison {
  margin-top: 44px;
  padding-top: 44px;
  border-top: 1px solid var(--line);
}

.workflow-preview .thought-lanes {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: 52px;
}

.workflow-preview .thought-lane {
  min-width: 0;
  margin: 0;
  color: var(--quiet);
}

.workflow-preview .thought-lane-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin-bottom: 14px;
  font: .75rem/1 var(--mono);
}

.workflow-preview .thought-lane-label {
  letter-spacing: .14em;
  text-transform: uppercase;
}

.workflow-preview .thought-lane-meta {
  letter-spacing: .06em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.workflow-preview .thought-lane-track {
  height: 4px;
  overflow: hidden;
  border-radius: 2px;
  background: rgba(255, 255, 255, .06);
}

.workflow-preview .thought-lane-fill {
  height: 100%;
  border-radius: 2px;
  background: #3A3F55;
}

.workflow-preview .thought-lane-text {
  min-height: 172px;
  margin: 22px 0 0;
  font-size: 1.0625rem;
  line-height: 1.85;
  text-wrap: pretty;
  overflow-wrap: break-word;
}

.workflow-preview .thought-lane--spoken .thought-lane-header {
  color: var(--accent-ink);
}

.workflow-preview .thought-lane--spoken .thought-lane-text {
  color: var(--text);
}

.workflow-preview .thought-lane--spoken .thought-lane-fill {
  background: linear-gradient(90deg, rgba(165, 174, 255, .45), var(--accent-ink));
}

.workflow-preview .thought-unwritten {
  visibility: hidden;
}

.workflow-preview .thought-typing-caret {
  display: inline-block;
  position: relative;
  width: 0;
  height: 1.05em;
  vertical-align: -.16em;
}

.workflow-preview .thought-typing-caret::after {
  content: '';
  position: absolute;
  inset: 0 auto 0 2px;
  border-left: 2px solid currentColor;
  animation: thought-caret-blink 1s step-end infinite;
}

.workflow-preview .thought-lane--spoken .thought-typing-caret {
  color: var(--accent-ink);
}

.workflow-preview .thought-live-comparison[data-playing="false"] .thought-typing-caret::after {
  animation: none;
}

@keyframes thought-caret-blink {
  50% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .workflow-preview .thought-typing-caret::after {
    animation: none;
  }
}

/* Sticky feature copy follows the screenshots through one continuous scroll. */
.workflow-preview #how {
  padding-block: 95px;
}

.workflow-preview #how > .wrap {
  width: min(1160px, calc(100% - 80px));
}

.workflow-preview .sticky-features {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.38fr);
  align-items: stretch;
  gap: 72px;
}

.workflow-preview .sticky-features-rail-cell,
.workflow-preview .sticky-features-media {
  min-width: 0;
}

.workflow-preview .sticky-features-rail {
  position: sticky;
  top: 96px;
}

.workflow-preview .sticky-features-rail h2 {
  margin: 0 0 44px;
  font-size: clamp(2.7rem, 4.7vw, 4.5rem);
  font-weight: 550;
  letter-spacing: -.05em;
  line-height: 1.05;
}

.workflow-preview .sticky-features h3 {
  margin: 0 0 16px;
  font-size: clamp(1.65rem, 2.4vw, 2.1rem);
  font-weight: 550;
  letter-spacing: -.04em;
  line-height: 1.18;
}

.workflow-preview .sticky-features-copy-stack {
  display: grid;
}

.workflow-preview .sticky-features-copy {
  grid-area: 1 / 1;
  min-width: 0;
  visibility: hidden;
}

.workflow-preview .sticky-features-copy[data-active="true"] {
  visibility: visible;
  animation: sticky-feature-swap .45s ease both;
}

.workflow-preview .sticky-features-description {
  margin: 0;
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.8;
  text-wrap: pretty;
}

.workflow-preview .sticky-features-note {
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--quiet);
  font-size: .875rem;
  line-height: 1.7;
  text-wrap: pretty;
}

.workflow-preview .sticky-features-ticks {
  display: flex;
  gap: 8px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.workflow-preview .sticky-features-ticks li {
  flex: 1 1 0;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, .12);
  transition: background .3s ease;
}

.workflow-preview .sticky-features-ticks li[data-active="true"] {
  background: var(--accent-ink);
}

.workflow-preview .sticky-feature {
  margin: 0 0 26vh;
}

.workflow-preview .sticky-feature:nth-last-child(2) {
  margin-bottom: 0;
}

.workflow-preview .sticky-feature-caption {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.workflow-preview .sticky-feature-frame {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--deep);
  box-shadow: 0 20px 40px #0002;
  opacity: .46;
  transition: border-color .35s ease, box-shadow .35s ease, opacity .35s ease;
}

.workflow-preview .sticky-feature[data-active="true"] .sticky-feature-frame {
  border-color: var(--accent-ring);
  box-shadow: 0 0 0 4px rgba(165, 174, 255, .10), 0 26px 54px rgba(0, 0, 0, .34);
  opacity: 1;
}

.workflow-preview .sticky-feature-frame img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
}

.workflow-preview .sticky-features-runway {
  height: 46vh;
}

@keyframes sticky-feature-swap {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 1040px) {
  .workflow-preview .sticky-features {
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.25fr);
    gap: 40px;
  }
}

@media (max-width: 720px) {
  .workflow-preview .sticky-features {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  /* Let the sticky rail share the full section's containing block on mobile. */
  .workflow-preview .sticky-features-rail-cell {
    display: contents;
  }

  .workflow-preview .sticky-features-rail {
    top: 67px;
    z-index: 2;
    align-self: start;
    margin-bottom: 26px;
    padding: 18px 0 20px;
    background: var(--bg);
  }

  .workflow-preview .sticky-features-rail h2 {
    margin-bottom: 24px;
  }

  .workflow-preview .sticky-feature {
    margin-bottom: 56px;
  }
}

/* Short or zoomed viewports need room for both the copy and its screenshot. */
@media (max-height: 640px), (max-width: 720px) and (max-height: 800px) {
  .workflow-preview .sticky-features-copy-stack,
  .workflow-preview .sticky-features-ticks {
    display: none;
  }

  .workflow-preview .sticky-feature-caption {
    position: static;
    width: auto;
    height: auto;
    margin-bottom: 24px;
    overflow: visible;
    clip-path: none;
    white-space: normal;
  }

  .workflow-preview .sticky-feature-frame {
    opacity: 1;
  }

  .workflow-preview .sticky-features-runway {
    height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .workflow-preview .sticky-features-copy[data-active="true"] {
    animation: none;
  }

  .workflow-preview .sticky-feature-frame,
  .workflow-preview .sticky-features-ticks li {
    transition: none;
  }
}

/* Indigo closing panel after the six sticky features. */
.workflow-preview .more-features-section {
  padding-block: 40px 50px;
}

.workflow-preview .more-features-panel {
  width: min(1160px, calc(100% - 80px));
  padding: 74px 70px;
  border-radius: 30px;
  background: var(--light-accent);
  color: var(--text);
}

.workflow-preview .more-features-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
}

.workflow-preview .more-features-eyebrow {
  margin: 0;
  color: var(--accent-ink);
  font: .8125rem/1.5 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.workflow-preview .more-features-header h2 {
  margin: 18px 0 0;
  color: var(--text);
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  font-weight: 560;
  letter-spacing: -.05em;
  line-height: 1.08;
}

.workflow-preview .more-features-header a {
  color: var(--accent-ink);
  font-size: .9375rem;
  font-weight: 550;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.workflow-preview .more-features-header a:hover {
  color: #BBC1FF;
}

.workflow-preview .more-features-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 56px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}

.workflow-preview .more-features-list li {
  display: flex;
  align-items: baseline;
  gap: 16px;
  min-width: 0;
  padding-block: 22px;
  border-bottom: 1px solid var(--text-faint);
}

.workflow-preview .more-features-list li > div {
  min-width: 0;
}

.workflow-preview .more-features-dot {
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--accent-ink);
}

.workflow-preview .more-features-list h3 {
  margin: 0 0 6px;
  color: var(--text);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1.35;
}

.workflow-preview .more-features-list p {
  margin: 0;
  color: #C9CEEA;
  font-size: .9375rem;
  line-height: 1.7;
  text-wrap: pretty;
}

@media (max-width: 1050px) {
  .workflow-preview .more-features-panel {
    padding: 55px 42px;
  }
}

@media (max-width: 780px) {
  .workflow-preview .more-features-panel {
    padding: 45px 30px;
  }

  .workflow-preview .more-features-list {
    grid-template-columns: minmax(0, 1fr);
    column-gap: 0;
  }
}

@media (max-width: 440px) {
  .workflow-preview .more-features-panel {
    padding: 38px 23px;
    border-radius: 22px;
  }
}

@media (max-width: 900px) {
  .workflow-preview .thought-stats {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
  }

  .workflow-preview .thought-lanes {
    grid-template-columns: minmax(0, 1fr);
    gap: 38px;
  }

  .workflow-preview .thought-lane-text {
    min-height: 0;
  }
}

@media (max-width: 440px) {
  .workflow-preview .thought-section > .wrap,
  .workflow-preview #how > .wrap,
  .workflow-preview .more-features-section > .wrap {
    width: calc(100% - 40px);
  }
}
