@import "./tokens.css";

html, body { height: 100%; overflow: hidden; background: var(--bg); }
.scroll {
  height: 100svh;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-snap-type: y proximity;
  background: var(--bg);
  scrollbar-width: none;
}
.scroll::-webkit-scrollbar { width: 0; height: 0; }
.topnav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  height: 44px;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 0 max(20px, calc((100% - 1120px) / 2));
  background: color-mix(in srgb, var(--zx-bg) 86%, transparent);
  backdrop-filter: saturate(1.2) blur(12px);
  border-bottom: 0;
  transition: background-color var(--zx-motion-ui) var(--zx-ease),
              box-shadow var(--zx-motion-ui) var(--zx-ease);
}
.topnav.is-solid {
  background: var(--zx-bg);
  box-shadow: 0 1px 0 var(--line);
}
.topnav.hidden { transform: none; pointer-events: auto; }
.wordmark {
  display: inline-flex; align-items: center; text-decoration: none;
}
.wordmark img { height: 20px; width: auto; display: block; }
.wordmark, .wordmark-text {
  font-weight: 600;
  letter-spacing: 0;
  font-size: 19px;
  color: var(--zx-ink);
  line-height: 1;
  text-decoration: none;
}
.wordmark-text { display: inline-flex; align-items: baseline; gap: 7px; }
.wordmark-text b { font-weight: 600; }
.wm-product { font-weight: 500; font-size: .68em; letter-spacing: 0; color: var(--muted); }
.wm-beta { font-weight: 500; font-size: .58em; letter-spacing: 0; color: var(--muted); opacity: .7; }
.friend-beta { font-size: 11px; color: var(--muted); font-weight: 500; letter-spacing: .02em; }
.feedback-entry { font-size: 13px; color: var(--muted); }
.feedback-entry button { border: 0; background: transparent; cursor: pointer; font: inherit; color: var(--muted); }
.nav-links a[aria-current="page"], .nav-links a.is-active { color: var(--accent); }

.site-foot .wordmark-text { display: inline-block; margin-bottom: 8px; }
.nav-links { display: flex; gap: 24px; color: var(--muted); font-size: 14px; font-weight: 500; white-space: nowrap; }
.nav-links a { text-decoration: none; }
.nav-links a:hover { color: var(--ink); }
.cta {
  background: var(--accent); color: #fff; border: 0; border-radius: 999px;
  padding: 10px 22px; text-decoration: none; font-weight: 600; font-size: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: opacity var(--zx-motion-fast) var(--zx-ease);
  cursor: pointer;
}
.cta:hover { opacity: .92; }
.nav-cta { position: relative; z-index: 30; pointer-events: auto; }
.ghost {
  border: 1px solid var(--line); background: transparent; border-radius: 999px;
  padding: 12px 28px; text-decoration: none; font-weight: 600; font-size: 14px;
  cursor: pointer; color: var(--ink);
  transition: transform var(--motion-fast) var(--ease-out-strong), background var(--motion);
}
.ghost:hover { background: var(--zx-bg-alt); }

section.hero, section.feature, section.benefits, section.faq, section.changelog, section.end {
  min-height: 100svh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  scroll-margin-top: 44px;
}
#section-features, #section-benefits { scroll-margin-top: 44px; }
.hero {
  display: flex; flex-direction: column;
  overflow: hidden;
  background: var(--bg);
  position: relative;
}
.hero-stack {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}
.hero-copy {
  flex: 0 0 auto;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 12px 24px 0;
  position: relative; z-index: 4;
  width: 100%;
}
.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(40px, 5vw, 56px);
  letter-spacing: 0;
  text-align: center;
  text-wrap: balance;
  line-height: 1.1;
  font-weight: 600;
}
.hero .sub {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: clamp(16px, 1.8vw, 18px);
  text-align: center;
  max-width: 720px;
}
.hero-ctas {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
  margin: 8px 0 0;
  opacity: 0; max-height: 0; overflow: hidden;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity var(--motion-slow) var(--ease-out-strong),
              max-height var(--motion-slow) var(--ease-out-strong),
              transform var(--motion-slow) var(--ease-out-strong);
}
.hero-ctas.show {
  opacity: 1; max-height: 12rem; transform: none; overflow: visible; pointer-events: auto;
  margin: 8px 0 28px;
}
.hero-ctas .cta, .hero-ctas .ghost { padding: 16px 28px; font-size: 14px; }
.prompt-wrap {
  width: min(512px, 92vw);
  margin-top: 32px;
  position: relative; z-index: 5;
  transition: opacity var(--motion-slow) var(--ease-out-strong),
              transform var(--motion-slow) var(--ease-out-strong);
}
.prompt-wrap.done {
  opacity: 0;
  height: 0;
  margin: 0;
  overflow: hidden;
  transform: translateY(-8px);
  pointer-events: none;
}
.prompt-bar {
  display: flex; align-items: center; gap: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 20px 28px;
  box-shadow: 0 20px 50px rgba(0,0,0,.10);
}
.prompt-bar .icon-slot { width: 24px; height: 24px; flex: 0 0 auto; color: inherit; display: grid; place-items: center; }
.prompt-bar .icon-slot svg { width: 24px; height: 24px; display: block; }
.prompt-bar .typed {
  flex: 1; font-size: 18px; min-height: 28px;
  display: flex; align-items: center; flex-wrap: nowrap; gap: 8px;
  color: var(--ink);
  transition: opacity var(--motion), transform var(--motion), filter var(--motion);
}
.prompt-bar .typed.is-clearing {
  opacity: 0; transform: translateY(4px); filter: blur(2px);
}
.caret {
  width: 2px; height: 20px; background: currentColor;
  animation: blink 1s step-end infinite;
  display: inline-block;
}
@keyframes blink { 50% { opacity: 0; } }
.chip {
  display: none; align-items: center; gap: 8px;
  background: #f4f3ef; border: 1px solid #00000014;
  border-radius: 999px; padding: 4px 10px 4px 4px;
  transform: scale(.85); opacity: 0;
  transition: transform var(--motion) var(--ease-out-strong), opacity var(--motion);
}
.chip.show { display: inline-flex; transform: scale(1); opacity: 1; }
.chip:not(.show) { display: none !important; }
.chip img, .chip i { width: 28px; height: 28px; border-radius: 999px; display: block; object-fit: cover; }
.send {
  width: 40px; height: 40px; border: 0; border-radius: 12px;
  background: currentColor; color: #fff; cursor: default; flex: 0 0 auto;
  display: grid; place-items: center;
}
.send svg { width: 20px; height: 20px; display: block; }
.send.is-press { animation: press 380ms ease-out; }
@keyframes press {
  0% { transform: scale(1); }
  40% { transform: scale(.88); }
  100% { transform: scale(1); }
}

.hero-cards {
  width: 100%;
  margin-top: -128px;
  padding-bottom: 24px;
  overflow: hidden;
  z-index: 1;
  transform: scale(.95);
  transform-origin: top center;
  transition: transform var(--motion-slow) var(--ease-out-strong),
              margin-top var(--motion-slow) var(--ease-out-strong);
}
.hero-cards.settled {
  margin-top: 8px;
  transform: none;
}
.cards-track {
  display: flex;
  width: 100%;
  will-change: transform;
  transition: transform var(--motion-slow) var(--ease-in-out-strong);
}
.card {
  flex: 0 0 420px;
  aspect-ratio: 1;
  border-radius: 16px;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
  opacity: .4;
  transform: scale(.92);
  transition: width var(--motion-slow) var(--ease-in-out-strong),
              height var(--motion-slow) var(--ease-in-out-strong),
              opacity var(--motion-slow) var(--ease-in-out-strong),
              transform var(--motion-slow) var(--ease-in-out-strong),
              box-shadow var(--motion-slow) var(--ease-in-out-strong);
}
.card img { width: 100%; height: 100%; object-fit: contain; background: var(--paper); }
.card.on {
  opacity: 1; transform: scale(1);
  box-shadow: 0 20px 56px rgba(0,0,0,.2);
}
.card.last { border: 1px solid rgba(0,0,0,.1); background: transparent; }
.card.last img { background: transparent; }
.hero-cards.settled {
  transform: none !important;
}
.hero-cards.settled .cards-track {
  width: max-content;
}
.hero-cards.settled .card,
.hero-cards.settled .card.on,
.hero-cards.settled .card.last {
  opacity: 1;
  transform: none !important;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  aspect-ratio: auto;
  flex: 0 0 143px;
  width: 143px;
  height: 143px;
  max-width: 143px;
  max-height: 143px;
}
.hero-cards.settled .card.last {
  flex-basis: 141px;
  width: 141px;
  height: 141px;
  max-width: 141px;
  max-height: 141px;
}

.feature {
  display: grid;
  grid-template-columns: minmax(240px, 28%) 1fr;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 12px 48px;
  align-items: center;
  padding: 48px 7vw;
  background: #fff;
}
.feature-copy { grid-column: 1; grid-row: 1 / -1; align-self: center; }
.feature-stage {
  grid-column: 2; grid-row: 1;
  min-height: 0;
  width: 100%;
  height: min(626px, calc(100svh - 10rem));
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature .quote {
  grid-column: 2; grid-row: 2; margin: 8px 0 0;
  padding-left: 14px; border-left: 2px solid var(--line);
  max-width: 36rem;
}
.feature h2 {
  font-size: clamp(32px, 4vw, 48px); letter-spacing: 0; margin: 0 0 18px; font-weight: 600;
}
.feature p.lead, .lead { color: var(--muted); font-size: 18px; line-height: 1.5; margin: 0 0 28px; }
.lead.center { text-align: center; max-width: 40rem; margin-left: auto; margin-right: auto; }
.demo-list { display: flex; flex-direction: column; gap: 12px; }
.demo-list button {
  position: relative; overflow: hidden;
  text-align: left; border: 1px solid var(--line); background: #fff;
  border-radius: 10px; padding: 16px 18px; cursor: pointer; color: var(--muted); font-weight: 500;
  transition: color var(--motion), background var(--motion), border-color var(--motion);
}
.demo-list button .fill {
  position: absolute; inset: 0 auto 0 0; width: 0;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}
.demo-list button span { position: relative; z-index: 1; }
.demo-list button.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 5%, #fff); color: var(--ink); }
.demo-list button:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.stage, .feature-stage .shot, .feature-stage .compare {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 1600 / 1157;
  max-height: 100%;
  background: #f5f3f0;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,.25);
}
.feature-stage .shot img,
.feature-stage .shot video,
.feature-stage video.recolor-video,
.feature-stage .compare img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.feature-stage .shot.video-shot,
.feature[data-feature="recolor"] .shot {
  aspect-ratio: auto;
  height: 100%;
  background: #fff;
}
.ms-fade { animation: ms-fade-in var(--motion-slow) var(--ease-out-strong); }
@keyframes ms-fade-in { from { opacity: 0 } to { opacity: 1 } }
.compare { cursor: ew-resize; user-select: none; background: var(--zx-bg-alt); }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.compare .after { z-index: 1; }
.compare .before-clip {
  position: absolute; inset: 0 auto 0 0; width: 50%; overflow: hidden; z-index: 2;
  background: var(--zx-bg-alt);
}
.compare .before-clip img { width: var(--stage-w, 100%); max-width: none; height: 100%; }
.compare .bar {
  position: absolute; top: 0; bottom: 0; left: 50%;
  width: 2px; background: #fff; box-shadow: 0 0 0 1px #0002;
  transform: translateX(-50%); z-index: 3;
}
.compare .bar::after {
  content: "";
  position: absolute; top: 50%; left: 50%;
  width: 40px; height: 40px; border-radius: 999px;
  background: #fff; border: 1px solid #00000022;
  box-shadow: 0 6px 18px rgba(0,0,0,.16);
  transform: translate(-50%, -50%);
}
.quote { color: var(--muted); font-size: 13px; line-height: 1.55; max-width: 42rem; }

.benefits, .faq, .changelog, section.end { background: #fff; padding: 80px 7vw; }
.changelog { background: #fff; }
.change-list {
  max-width: 920px; margin: 48px auto 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
  list-style: none; position: relative;
}
.change-list::before {
  content: ""; position: absolute; left: 12%; right: 12%; top: 4px;
  height: 1px; background: var(--line);
}
.change-list li { margin: 0; }
.change-dot {
  width: 9px; height: 9px; border-radius: 999px; background: #c9c8c3;
  box-shadow: 0 0 0 4px #fff; margin-bottom: 18px;
}
.change-list li:first-child .change-dot { background: var(--accent); }
.change-list h3 { margin: 0; font-size: 18px; }
.change-list p { margin: 8px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.change-meta { margin-top: 12px; color: #9b9aa3; font-size: 12px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.change-more { text-align: center; margin: 40px 0 0; color: var(--ink); font-weight: 500; }
.site-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 36px 7vw; border-top: 1px solid var(--line); background: #fff;
}
.site-foot img { height: 24px; width: auto; }
.site-foot p { margin: 0; color: var(--muted); font-size: 14px; }
.site-foot nav { display: flex; gap: 24px; color: var(--muted); font-size: 14px; }
.site-foot a { text-decoration: none; }
.site-foot a:hover { color: var(--ink); }
.benefits { background: color-mix(in srgb, var(--bg) 70%, #fff); }
.benefits h2, .faq h2, section.end h2 {
  text-align: center; font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -.03em; margin: 0 0 12px;
}
.benefit-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  max-width: 920px; margin: 48px auto 0;
}
.benefit-grid > div {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 28px;
}
.kicker {
  text-transform: uppercase; letter-spacing: .08em; font-size: 12px;
  color: var(--muted); font-weight: 600; margin: 0 0 18px;
}
.benefit-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.benefit-grid li { display: grid; gap: 4px; }
.benefit-grid small { color: var(--muted); font-size: 12px; }

.faq-list { max-width: 720px; margin: 48px auto 0; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item button {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 24px 0; border: 0; background: transparent;
  text-align: left; font-size: 16px; font-weight: 500; cursor: pointer;
}
.faq-item button:hover { color: var(--accent); }
.faq-item .chev { transition: transform var(--motion); color: var(--muted); }
.faq-item.open .chev { transform: rotate(180deg); }
.faq-item .ans {
  max-height: 0; overflow: hidden; color: var(--muted); line-height: 1.6;
  transition: max-height var(--motion), padding var(--motion);
}
.faq-item.open .ans { max-height: 320px; padding-bottom: 24px; }

section.end { display: grid; place-items: center; text-align: center; background: var(--bg); }
section.end .cta { margin-top: 8px; padding: 18px 32px; }

.demo-layer {
  position: fixed; inset: 0; z-index: 40;
  background: rgba(20,20,20,.28);
  display: grid; place-items: center;
}
.demo-layer.hidden { display: none; }
.demo-card {
  width: min(420px, 92vw); background: #fff; border-radius: 16px;
  padding: 24px; box-shadow: 0 24px 80px rgba(0,0,0,.18);
  display: grid; gap: 12px;
}
.demo-card h3 { margin: 0; }
.demo-card p { margin: 0; color: var(--muted); font-size: 14px; }
.demo-card label { display: grid; gap: 6px; font-size: 13px; font-weight: 500; }
.demo-card input, .demo-card textarea {
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px;
}
.demo-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.toast-region { position: fixed; right: 16px; bottom: 16px; z-index: 80; display: grid; gap: 8px; }
.toast { max-width: 300px; padding: 10px 13px; border-radius: 980px; background: #1d1d1f; color: #fff; font-size: 13px; }

@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; padding: 48px 20px; }
  .feature-stage { height: 52vh; }
  .nav-links { display: none; }
  .benefit-grid { grid-template-columns: 1fr; }
  .change-list { grid-template-columns: 1fr; }
  .change-list::before { display: none; }
  .site-foot { flex-direction: column; text-align: center; }
  .card { flex-basis: 72vw; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-cards, .cards-track, .card, .prompt-wrap, .hero-ctas { transition: none !important; }
}

.fuse-demo {
  position: relative; width: 100%; height: 100%;
  display: grid; place-items: stretch;
  background:
    radial-gradient(#d2d2d7 1px, transparent 1px) 0 0 / 18px 18px var(--zx-bg-alt);
  border: 1px solid var(--line); border-radius: 16px;
  padding: 18px 14px; box-sizing: border-box;
  overflow: hidden;
}
.fuse-board {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.fuse-demo.is-stage .fuse-board { display: none; }
.fuse-demo .fuse-slot {
  margin: 0; width: min(90%, 520px); background: transparent; border-radius: 18px;
  padding: 0; text-align: center;
}
.fuse-demo .fuse-slot img,
.fuse-demo .fuse-upper-grid img {
  width: 100%; height: 176px; object-fit: cover; object-position: center;
  display: block; background: #f3f2ee; border-radius: 18px;
}
.fuse-upper-grid { display: block; }
.fuse-demo.is-multi .fuse-slot.upper { width: min(92%, 520px); }
.fuse-demo.is-multi .fuse-upper-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; align-items: stretch;
}
.fuse-demo.is-multi .fuse-upper-grid img {
  height: 96px; background: #f3f2ee; border-radius: 10px;
  object-fit: cover; object-position: center;
}
.fuse-demo figcaption {
  display: inline-block; margin-top: 10px; padding: 5px 12px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 600;
}
.fuse-mid {
  width: 36px; height: 48px; display: grid; place-items: center; margin: 8px 0;
}
.fuse-plus {
  width: 36px; height: 36px; border: 0; border-radius: 50%;
  display: grid; place-items: center;
  background: #ecece8; color: #555; font-size: 22px; line-height: 1;
}
.fuse-stage-shot {
  position: absolute; inset: 0;
}
.fuse-demo:not(.is-stage) .fuse-stage-shot { display: none; }
.fuse-stage-shot img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
  background: var(--zx-bg-alt);
}
.fuse-stage-shot .fuse-end { opacity: 0; }

.compare .ba-label {
  position: absolute; bottom: 14px; z-index: 4;
  background: rgba(40,40,40,.72); color: #fff;
  font-size: 11px; font-weight: 600; letter-spacing: .02em;
  border-radius: 8px; padding: 4px 8px; pointer-events: none;
}
.compare .before-label { left: 14px; }
.compare .after-label { right: 14px; }


.doc-page { height: 100%; overflow: auto; background: #fff; }
.kb { max-width: 720px; margin: 0 auto; padding: 28px 20px 80px; }
.kb h1 { font-size: 40px; font-weight: 600; line-height: 1.1; letter-spacing: 0; }
.kb .kicker { color: var(--zx-muted); font-size: 13px; }
.kb-list { padding: 0; list-style: none; }
.kb-list li { border-bottom: 1px solid var(--line); }
.kb-list a { display:block; padding: 14px 0; color: inherit; text-decoration:none; }
.faq-page { max-width: 720px; margin: 0 auto; padding: 48px 20px 80px; }

.fuse-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) 44px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  width: 100%;
  height: 100%;
  padding: 18px 16px 18px 18px;
  box-sizing: border-box;
}
.fuse-layout .fuse-board {
  height: 100%;
  justify-content: space-between;
}
.fuse-go {
  width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: #fff; color: var(--zx-ink); font-size: 18px;
  box-shadow: 0 8px 20px rgba(0,0,0,.10);
  cursor: default;
}
.fuse-results {
  display: grid; gap: 14px; height: 100%;
  align-content: center;
}
.fuse-demo.is-multi .fuse-results {
  align-content: stretch;
  grid-auto-rows: 1fr;
}
.fuse-results figure {
  margin: 0; background: #f3f2ee; border-radius: 18px; overflow: hidden;
  display: grid; min-height: 0;
}
.fuse-demo:not(.is-multi) .fuse-results figure {
  width: 100%;
  aspect-ratio: 656 / 324;
}
.fuse-results img {
  width: 100%; height: 100%; min-height: 0; object-fit: cover;
  object-position: center; display: block; background: #f3f2ee;
}
.fuse-demo.is-multi .fuse-upper-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px;
}
@media (max-width: 900px) {
  .fuse-layout { grid-template-columns: 1fr; grid-template-rows: auto 40px auto; }
  .fuse-go { justify-self: center; }
}
