/* Homepage layout. Shared tokens, header, buttons, setup panel and footer
   live in styles.css. */
.page-home {
  background:
    linear-gradient(
        180deg,
        rgba(255, 255, 255, 0) 0,
        rgba(255, 255, 255, 0) 50%,
        #fff 100%
      )
      center top / 100% 960px no-repeat,
    url("assets/gradients/horizontal-4.webp") center -190px / max(1700px, 100%)
      1150px no-repeat,
    #fff;
}
.page-home .site-header {
  background: rgba(255, 255, 255, 0.36);
}
.page-home .site-header:not(.is-scrolled) {
  border-bottom-color: transparent;
}
.page-home .site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.86);
}
.page-home main > section {
  scroll-margin-top: 64px;
}

/* Hero ------------------------------------------------------------------- */
.hero {
  padding-top: clamp(3.25rem, 7vw, 5.75rem);
}
.hero-inner {
  display: grid;
  justify-items: center;
  text-align: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1.75rem;
  padding: 0.4rem 0.95rem 0.4rem 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  font-size: 0.88rem;
  font-weight: 500;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.hero h1 {
  max-width: 15ch;
  margin-bottom: 1.4rem;
}
.hero-lede {
  max-width: 56ch;
  margin: 0 auto 2.25rem;
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}
.hero-clients {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.6rem 0.85rem;
  margin-top: 2rem;
  font-size: 0.86rem;
}
.hero-clients p {
  margin: 0;
  color: var(--muted);
}
.hero-clients ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.hero-clients a {
  display: inline-block;
  padding: 0.32rem 0.75rem;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  font-weight: 500;
  text-decoration: none;
}
.hero-clients a:hover {
  border-color: var(--ink);
  background: white;
}

/* Demo ------------------------------------------------------------------- */
.demo {
  margin-top: clamp(3rem, 6vw, 4.5rem);
}
.demo-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.85rem;
  padding-inline: 0.25rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
}
.demo-head h2 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.012em;
}
.demo-head p {
  margin: 0;
  color: var(--muted);
}
.demo-window {
  overflow: hidden;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 1.75rem;
  background: rgba(255, 255, 255, 0.94);
  box-shadow:
    0 1px 0 rgba(17, 17, 17, 0.04),
    0 60px 120px -60px rgba(118, 38, 70, 0.5);
}
.demo-bar {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-height: 58px;
  padding: 0.6rem 0.75rem 0.6rem 1.1rem;
  border-bottom: 1px solid var(--line);
}
.demo-assistant select {
  appearance: none;
  min-height: 36px;
  padding: 0.35rem 2.1rem 0.35rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: white
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23111' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E")
    right 0.8rem center / 10px no-repeat;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}
.demo-crumb {
  color: var(--muted);
  font-size: 0.88rem;
}
.demo-controls {
  display: flex;
  gap: 0.35rem;
  margin-left: auto;
}
#demo-toggle .icon-play,
#demo-toggle[aria-pressed="true"] .icon-pause {
  display: none;
}
#demo-toggle[aria-pressed="true"] .icon-play {
  display: inline;
}
.demo-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.demo-chat-pane {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-right: 1px solid var(--line);
}
.demo-chat {
  height: 548px;
  overflow-y: auto;
  padding: 1.6rem 1.6rem 0.75rem;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.demo-chat:focus-visible {
  outline-offset: -4px;
}
.chat-turn + .chat-turn {
  margin-top: 1.6rem;
}
.chat-turn[hidden],
.chat-assistant[hidden],
.chat-reply[hidden],
.tool-calls[hidden],
.tool-calls li[hidden],
.chat-attachment[hidden] {
  display: none;
}
.chat-author {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
}
.chat-author small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 400;
}
.chat-user {
  width: fit-content;
  max-width: 86%;
  margin-left: auto;
  padding: 0.85rem 1.05rem 0.9rem;
  border-radius: 1.25rem 1.25rem 0.4rem 1.25rem;
  background: var(--blush);
}
.chat-text {
  margin: 0;
}
.chat-text.is-typing::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1.05em;
  margin-left: 2px;
  vertical-align: -0.15em;
  background: var(--ink);
  animation: caret 0.9s steps(1) infinite;
}
.chat-attachment {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.7rem 0 0;
  padding: 0.35rem 0.7rem 0.35rem 0.4rem;
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.8);
  font-size: 0.8rem;
  font-weight: 500;
}
.attachment-icon {
  width: 1.6rem;
  height: 1.2rem;
  border-radius: 0.3rem;
  background:
    linear-gradient(135deg, transparent 47%, white 48% 52%, transparent 53%) 0
      0 / 50% 100% no-repeat,
    linear-gradient(225deg, transparent 47%, white 48% 52%, transparent 53%)
      100% 0 / 50% 100% no-repeat,
    linear-gradient(135deg, var(--pink-soft), var(--pink));
}
.chat-assistant {
  margin-top: 1rem;
  max-width: 94%;
}
.chat-assistant .chat-author img {
  width: 18px;
  height: 18px;
}
.chat-thinking {
  display: inline-flex;
  gap: 4px;
  margin: 0.25rem 0 0.5rem;
}
.chat-thinking i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pink);
  animation: thinking 1s ease-in-out infinite;
}
.chat-thinking i:nth-child(2) {
  animation-delay: 0.15s;
}
.chat-thinking i:nth-child(3) {
  animation-delay: 0.3s;
}
.tool-calls {
  display: grid;
  gap: 0.1rem;
  margin: 0.4rem 0 0.8rem;
  padding: 0.35rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface-muted);
  list-style: none;
}
.tool-calls li {
  position: relative;
  display: grid;
  gap: 0.05rem;
  padding: 0.5rem 0.6rem 0.5rem 2.2rem;
  border-radius: 0.7rem;
  animation: rise 0.35s ease both;
}
.tool-calls li::before {
  content: "";
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.3l2.2 2.2 4.8-5' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
      center / 100% no-repeat,
    linear-gradient(135deg, var(--pink-soft), var(--pink));
}
.tool-calls li.is-running::before {
  background: none;
  border: 2px solid var(--blush);
  border-top-color: var(--pink);
  animation: spin 0.7s linear infinite;
}
.tool-calls li.is-running span {
  color: var(--muted);
}
.tool-calls code {
  overflow-wrap: anywhere;
  font-size: 0.74rem;
  font-weight: 600;
}
.tool-calls span {
  color: var(--ink-soft);
  font-size: 0.84rem;
  line-height: 1.4;
}
.chat-reply {
  margin: 0;
  animation: rise 0.35s ease both;
}
.demo-composer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0.5rem 1rem 1rem;
  padding: 0.65rem 0.65rem 0.65rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  background: white;
  color: var(--muted);
  font-size: 0.9rem;
}
.composer-send {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 12.5v-9M4 7.5l4-4 4 4' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
      center / 16px no-repeat,
    var(--ink);
}

/* Stage: the sample Blings video ---------------------------------------- */
.demo-stage {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-width: 0;
  padding: 2.5rem 1.5rem 4.75rem;
  overflow: hidden;
  background: url("assets/gradients/square-8.webp") center / cover;
}
.viewer {
  position: relative;
  width: min(240px, 62%);
  aspect-ratio: 9 / 16;
  margin: 0;
  padding: 7px;
  border-radius: 2.1rem;
  background: #121011;
  box-shadow:
    0 40px 80px -30px rgba(78, 18, 42, 0.55),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.viewer-screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 1.7rem;
  background: #bcd6ee;
}
.viewer-screen > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 6s ease;
}
.demo-stage[data-state="preview"].is-playing .viewer-screen > img {
  transform: scale(1.12);
}
.viewer-progress {
  position: absolute;
  top: 10px;
  left: 14px;
  right: 14px;
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.45);
  overflow: hidden;
}
.viewer-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: white;
}
.demo-stage[data-state="preview"] .viewer-progress span {
  width: 100%;
}
.demo-stage[data-state="preview"].is-playing .viewer-progress span {
  animation: progress 6s linear both;
}
.viewer-top {
  position: absolute;
  top: 22px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
}
.viewer-brand {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.18);
}
.viewer-tag {
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  font-size: 0.6rem;
  font-weight: 600;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.viewer-card {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  padding: 0.95rem 0.95rem 0.85rem;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.viewer-eyebrow {
  margin: 0 0 0.3rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.viewer-headline {
  margin: 0 0 0.65rem;
  font-size: 1.32rem;
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.035em;
}
.viewer-headline em {
  font-family: var(--font-serif);
  font-size: 1.14em;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.viewer-points {
  display: none;
  margin: -0.15rem 0 0.65rem;
  font-size: 0.78rem;
  color: var(--ink-soft);
}
.viewer-points strong {
  font-weight: 600;
  color: var(--ink);
}
.viewer-button {
  display: block;
  padding: 0.6rem;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
}
.viewer-headline-personal,
.viewer-button-personal {
  display: none;
}
.demo-stage:is([data-state="personal"], [data-state="preview"])
  .viewer-headline-draft,
.demo-stage:is([data-state="personal"], [data-state="preview"])
  .viewer-button-draft {
  display: none;
}
.demo-stage:is([data-state="personal"], [data-state="preview"])
  .viewer-headline-personal,
.demo-stage:is([data-state="personal"], [data-state="preview"])
  .viewer-button-personal,
.demo-stage:is([data-state="personal"], [data-state="preview"]) .viewer-points {
  display: block;
}
.demo-stage[data-state="draft"] .viewer-card,
.demo-stage[data-state="personal"] .viewer-card {
  animation: rise 0.6s ease 0.35s both;
}
.demo-stage[data-state="refine"] .viewer-card {
  animation: rise 0.35s ease 0.05s both;
}
.demo-stage[data-state="empty"] .viewer-card,
.demo-stage[data-state="empty"] .viewer-top {
  opacity: 0;
}
.demo-stage[data-state="empty"] .viewer-screen > img {
  filter: saturate(0.4) brightness(1.08);
}

/* Floating cards that explain each step */
.stage-card {
  position: absolute;
  z-index: 2;
  width: 196px;
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 24px 50px -28px rgba(78, 18, 42, 0.5);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  font-size: 0.8rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease,
    visibility 0.35s;
}
.demo-stage[data-state="draft"] .stage-draft,
.demo-stage[data-state="refine"] .stage-timeline,
.demo-stage[data-state="personal"] .stage-data,
.demo-stage[data-state="preview"] .stage-preview {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.stage-draft {
  top: 2rem;
  left: 1rem;
}
.stage-timeline {
  top: 27%;
  left: 1rem;
  width: 214px;
}
.stage-data {
  top: 2rem;
  right: 1rem;
}
.stage-preview {
  top: 27%;
  right: 1rem;
}
.stage-card-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.6rem;
  font-weight: 600;
}
.stage-card-title span:not(.status-dot) {
  color: var(--muted);
  font-weight: 400;
}
.stage-card-note {
  margin: 0.55rem 0 0;
  color: var(--muted);
}
.scene-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.35rem;
}
.scene {
  display: grid;
  place-items: center;
  aspect-ratio: 9 / 14;
  border-radius: 0.5rem;
  background: url("assets/photos/viewer-portrait.webp") center / cover;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.35rem;
}
.scene-offer {
  background: url("assets/gradients/square-5.webp") center / cover;
}
.scene-cta {
  background: url("assets/gradients/square-2.webp") center / cover;
}
.scene-cta i {
  width: 60%;
  height: 0.55rem;
  border-radius: 999px;
  background: var(--ink);
}
/* Bars are placed within the lane to the right of the 4.1rem label. */
.track {
  --lane: calc(100% - 4.1rem);
  position: relative;
  display: grid;
  grid-template-columns: 4.1rem 1fr;
  align-items: center;
  height: 1.5rem;
}
.track::after {
  content: "";
  position: absolute;
  left: 4.1rem;
  right: 0;
  top: 50%;
  height: 1px;
  background: var(--line);
}
.track span {
  color: var(--muted);
  font-size: 0.72rem;
}
.bar {
  position: absolute;
  z-index: 1;
  top: 0.3rem;
  height: 0.9rem;
  border-radius: 999px;
}
.bar-headline {
  left: calc(4.1rem + var(--lane) * 0.28);
  width: calc(var(--lane) * 0.34);
  background: linear-gradient(90deg, var(--pink-soft), var(--pink));
}
.bar-photo {
  left: 4.1rem;
  width: calc(var(--lane) * 0.4);
  background: var(--lilac);
}
.bar-button {
  left: calc(4.1rem + var(--lane) * 0.62);
  width: calc(var(--lane) * 0.26);
  background: var(--ink);
  opacity: 0.85;
}
.demo-stage[data-state="refine"] .bar-headline {
  animation: headline-earlier 0.9s cubic-bezier(0.3, 0.7, 0.2, 1) 0.6s both;
}
.demo-stage[data-state="refine"] .bar-photo {
  animation: photo-longer 0.9s cubic-bezier(0.3, 0.7, 0.2, 1) 0.6s both;
}
.stage-data dl {
  display: grid;
  gap: 0.3rem;
  margin: 0;
}
.stage-data dl div {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.35rem 0.5rem;
  border-radius: 0.5rem;
  background: rgba(247, 227, 236, 0.7);
}
.stage-data dt {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-soft);
}
.stage-data dd {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}
.status-dot {
  width: 0.55rem;
  height: 0.55rem;
  margin-right: auto;
  border-radius: 50%;
  background: #4bbf73;
  box-shadow: 0 0 0 4px rgba(75, 191, 115, 0.18);
}
.stage-preview .stage-card-title {
  justify-content: flex-start;
}
.stage-preview .status-dot {
  margin-right: 0.15rem;
}
.preview-chip {
  display: inline-block;
  margin-top: 0.7rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  font-weight: 600;
}
.viewer-name {
  position: absolute;
  left: 50%;
  bottom: 1.25rem;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.3rem 0.35rem 0.3rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  transform: translateX(-50%);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  white-space: nowrap;
}
.viewer-name label {
  font-size: 0.8rem;
  font-weight: 500;
}
.viewer-name input {
  width: 7.5rem;
  min-height: 34px;
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: white;
  font-size: 0.88rem;
}

/* Step controls */
.demo-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 0.9rem 0 0;
  padding: 0;
  list-style: none;
}
.demo-steps button {
  position: relative;
  width: 100%;
  min-height: 52px;
  padding: 0.8rem 1rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}
.demo-steps button:hover {
  border-color: var(--line-strong);
  background: white;
}
.demo-steps button[aria-current="step"] {
  border-color: var(--ink);
  background: white;
}
.step-number {
  margin-right: 0.35rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}
.step-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  width: var(--progress, 0%);
  height: 3px;
  background: linear-gradient(90deg, var(--pink-soft), var(--pink));
}
.demo-caption {
  max-width: 80ch;
  margin: 1rem auto 0;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
}

/* Use cases -------------------------------------------------------------- */
.use-cases {
  padding-top: clamp(5rem, 10vw, 8.5rem);
}
.use-case-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
}
.use-case {
  grid-column: span 3;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: white;
}
.use-case h3 {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
  line-height: 1.12;
  letter-spacing: -0.03em;
}
.use-case > p,
.use-case-copy > p {
  margin: 0 0 1.25rem;
  color: var(--muted);
}
.use-case-icon {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  margin-bottom: 2.75rem;
  border-radius: 1rem;
  background: url("assets/gradients/square-5.webp") center / cover;
}
.use-case-icon img {
  width: 1.65rem;
  height: 1.65rem;
}
.use-case-note {
  margin: 0.75rem 0 0 !important;
  font-size: 0.8rem;
}
.prompt {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: auto;
  padding: 0.75rem 0.75rem 0.75rem 0.95rem;
  border-radius: 1rem;
  background: var(--surface-muted);
  font-size: 0.88rem;
  line-height: 1.4;
}
.prompt q {
  flex: 1;
}
.copy-prompt {
  flex: 0 0 auto;
  padding: 0.25rem 0.65rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: white;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
}
.copy-prompt:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: white;
}
.use-case-feature {
  grid-column: span 6;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.5rem;
  padding: 0;
  overflow: hidden;
  border: 0;
}
.use-case-feature .use-case-copy {
  display: flex;
  flex-direction: column;
  padding: 2rem 0 2rem 2rem;
}
.use-case-feature h3 {
  font-size: clamp(1.6rem, 2.4vw, 2rem);
}
.use-case-feature .prompt {
  background: rgba(255, 255, 255, 0.72);
}
.use-case-feature .use-case-copy > p {
  color: var(--ink);
}
.use-case-campaign {
  background: url("assets/gradients/horizontal-5.webp") center / cover;
}
.use-case-personal {
  background: url("assets/gradients/horizontal-8.webp") center / cover;
}
.use-case-personal .use-case-copy {
  padding: 2rem 2rem 2rem 0;
}
.campaign-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 330px;
  padding: 1.5rem 1.5rem 1.5rem 0;
}
.mini-email {
  display: grid;
  gap: 0.4rem;
  width: 42%;
  padding: 0.6rem;
  border-radius: 0.8rem;
  background: white;
  box-shadow: 0 20px 40px -24px rgba(78, 18, 42, 0.45);
  transform: rotate(-4deg);
}
.mini-email-bar {
  height: 0.4rem;
  width: 40%;
  border-radius: 999px;
  background: var(--ink);
}
.mini-email-image {
  aspect-ratio: 4 / 3;
  border-radius: 0.45rem;
  background: url("assets/photos/viewer-laughing.webp") center 30% / cover;
}
.mini-email-line {
  height: 0.35rem;
  border-radius: 999px;
  background: var(--line-strong);
}
.mini-email-line.short {
  width: 65%;
}
.mini-email-button {
  justify-self: start;
  margin-top: 0.15rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: var(--pink);
  font-size: 0.6rem;
  font-weight: 600;
}
.campaign-arrow {
  font-size: 1.4rem;
  color: var(--ink-soft);
}
.mini-phone {
  position: relative;
  width: 44%;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border: 5px solid #121011;
  border-radius: 1.3rem;
  box-shadow: 0 30px 50px -26px rgba(78, 18, 42, 0.6);
  transform: rotate(3deg);
}
.mini-phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mini-phone-card {
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 6px;
  padding: 0.45rem 0.5rem;
  border-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.88);
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.mini-phone-card em {
  font-family: var(--font-serif);
  font-size: 1.14em;
  font-weight: 400;
}
.personal-visual {
  position: relative;
  min-height: 330px;
  margin: 1rem 0 1rem 1rem;
  overflow: hidden;
  border-radius: 1.4rem;
}
.personal-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 45% center;
}
.variant {
  position: absolute;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 24px -14px rgba(0, 0, 0, 0.45);
  font-size: 0.74rem;
  font-weight: 600;
  white-space: nowrap;
}
.variant-1 {
  top: 1rem;
  left: 1rem;
}
.variant-2 {
  top: 45%;
  right: 0.85rem;
}
.variant-3 {
  bottom: 1rem;
  left: 1.5rem;
}

/* Installation ----------------------------------------------------------- */
.install {
  margin-top: clamp(5rem, 10vw, 8rem);
  padding: clamp(4rem, 8vw, 6.5rem) 0;
  background:
    radial-gradient(
      60% 50% at 100% 0%,
      rgba(253, 177, 215, 0.38),
      transparent 70%
    ),
    radial-gradient(
      50% 45% at 0% 100%,
      rgba(215, 195, 243, 0.4),
      transparent 70%
    ),
    var(--surface-tint);
}
.install-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 22rem);
  gap: 2rem 3rem;
  align-items: end;
  margin-bottom: 2rem;
}
.install-heading .section-heading {
  margin-bottom: 0;
}
.connection-facts {
  display: grid;
  gap: 0.15rem;
  margin: 0;
  padding: 0.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: rgba(255, 255, 255, 0.85);
}
.connection-facts div {
  display: grid;
  gap: 0.05rem;
  padding: 0.5rem 0.6rem;
}
.connection-facts div + div {
  border-top: 1px solid var(--line);
}
.connection-facts dt {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 600;
}
.connection-facts dd {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 500;
}
.connection-facts code {
  font-size: 0.82rem;
}
.install-more {
  margin: 1.25rem 0 0;
  color: var(--muted);
  text-align: center;
}
.install-more .text-link {
  color: var(--ink);
}

/* Featured tools --------------------------------------------------------- */
.tools-feature {
  padding-top: clamp(5rem, 10vw, 8rem);
}
.tools-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.tools-heading .section-heading {
  margin-bottom: 0;
}
.tools-heading .button {
  flex: 0 0 auto;
}
.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}
.tool-feature {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 1.4rem 1.4rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: white;
  text-decoration: none;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}
.tool-feature:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}
.tool-feature-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.tool-feature code {
  overflow-wrap: anywhere;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.tool-feature h3 {
  margin: 0 0 0.45rem;
  font-size: 1.25rem;
  letter-spacing: -0.025em;
}
.tool-feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}
.availability-note {
  max-width: 78ch;
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}
.availability-note code {
  font-size: 0.82em;
}

/* Questions -------------------------------------------------------------- */
.faq {
  padding-top: clamp(5rem, 10vw, 8rem);
}

/* Closing ---------------------------------------------------------------- */
.closing {
  padding: clamp(5rem, 10vw, 8rem) 0 clamp(4rem, 8vw, 6rem);
}
.closing-card {
  display: grid;
  justify-items: center;
  padding: clamp(3.5rem, 8vw, 6.5rem) clamp(1.5rem, 5vw, 4rem);
  border-radius: var(--radius-card);
  background: url("assets/gradients/horizontal-9.webp") center / cover;
  text-align: center;
}
.closing-card img {
  width: 56px;
  height: 56px;
  margin-bottom: 1.75rem;
  border-radius: 1rem;
  box-shadow: 0 16px 30px -16px rgba(78, 18, 42, 0.6);
}
.closing-card h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.8rem, 5vw, 4rem);
  line-height: 1.02;
}
.closing-card p {
  max-width: 48ch;
  margin-bottom: 2rem;
  color: var(--ink);
  font-size: 1.08rem;
}
.closing-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

/* Motion ----------------------------------------------------------------- */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes caret {
  50% {
    opacity: 0;
  }
}
@keyframes thinking {
  0%,
  100% {
    opacity: 0.25;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-2px);
  }
}
@keyframes progress {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}
@keyframes headline-earlier {
  from {
    left: calc(4.1rem + var(--lane) * 0.28);
  }
  to {
    left: calc(4.1rem + var(--lane) * 0.03);
  }
}
@keyframes photo-longer {
  from {
    width: calc(var(--lane) * 0.4);
  }
  to {
    width: calc(var(--lane) * 0.58);
  }
}
.demo-stage[data-state="refine"] .bar-headline,
.demo-stage:is([data-state="personal"], [data-state="preview"]) .bar-headline {
  left: calc(4.1rem + var(--lane) * 0.03);
}
.demo-stage[data-state="refine"] .bar-photo,
.demo-stage:is([data-state="personal"], [data-state="preview"]) .bar-photo {
  width: calc(var(--lane) * 0.58);
}

/* Responsive ------------------------------------------------------------- */
@media (max-width: 1100px) {
  .use-case {
    grid-column: span 6;
  }
  .use-case-feature {
    grid-column: span 12;
  }
}
@media (max-width: 980px) {
  .demo-body {
    grid-template-columns: 1fr;
  }
  .demo-chat-pane {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .demo-chat {
    height: 420px;
  }
  .demo-stage {
    padding-block: 2.25rem 5rem;
  }
  .install-heading {
    grid-template-columns: 1fr;
  }
  .tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tools-heading {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 900px) {
  .demo-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .use-case,
  .use-case-feature {
    grid-column: span 12;
  }
  .use-case-feature {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .use-case-feature .use-case-copy,
  .use-case-personal .use-case-copy {
    padding: 1.6rem;
  }
  .use-case-personal .personal-visual {
    margin: 1rem 1rem 0;
    min-height: 240px;
  }
  .campaign-visual {
    min-height: 260px;
    padding: 0 1.6rem 1.6rem;
  }
  .use-case-icon {
    margin-bottom: 1.75rem;
  }
  .tool-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .page-home {
    background-size:
      100% 1100px,
      1500px 1100px,
      auto;
  }
  .hero h1 {
    font-size: clamp(2.5rem, 11.5vw, 3.4rem);
  }
  .hero h1 br {
    display: none;
  }
  .hero-actions {
    display: grid;
    width: 100%;
  }
  .demo-head p,
  .demo-crumb {
    display: none;
  }
  .demo-window {
    border-radius: 1.35rem;
  }
  .demo-chat {
    height: 380px;
    padding: 1.1rem 1rem 0.5rem;
  }
  .chat-user {
    max-width: 94%;
  }
  .chat-assistant {
    max-width: 100%;
  }
  .demo-stage {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem 1rem 1.25rem;
  }
  .viewer {
    width: min(230px, 72%);
  }
  .stage-card {
    position: static;
    width: 100%;
    max-width: 320px;
    display: none;
    transform: none;
  }
  .demo-stage[data-state="draft"] .stage-draft,
  .demo-stage[data-state="refine"] .stage-timeline,
  .demo-stage[data-state="personal"] .stage-data,
  .demo-stage[data-state="preview"] .stage-preview {
    display: block;
  }
  .viewer-name {
    position: static;
    transform: none;
  }
  .demo-steps button {
    padding: 0.7rem 0.8rem;
    font-size: 0.85rem;
  }
  .closing-card h2 br {
    display: none;
  }
  .closing-actions {
    display: grid;
    width: 100%;
  }
}
@media (max-width: 360px) {
  .button-large {
    padding-inline: 1.1rem;
    font-size: 0.98rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .viewer-screen > img {
    transition: none;
  }
}
