/* Styles for the pages after the homepage: examples, formats, pricing, about, waitlist, start, login, dashboard.
   Base tokens, nav, buttons, cards and the footer live in styles.css. */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.nav__links a[aria-current="page"] { color: var(--ink); }

:focus-visible { outline: 3px solid #b9c6ff; outline-offset: 2px; }

button { font: inherit; color: inherit; }
.btn { border: 0; cursor: pointer; justify-content: center; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

kbd {
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg);
  font: 500 12px/1.4 inherit;
  font-family: inherit;
  color: var(--muted);
}

.page-head {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(48px, 8vh, 96px) 24px 40px;
  text-align: center;
}

.page-head p {
  max-width: 560px;
  margin: 18px auto 0;
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.4;
  color: var(--muted);
}

/* chips: a row of rounded toggles */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

.chip {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}

.chip:hover { border-color: #d6d6db; }

.chip[aria-pressed="true"],
.chip[aria-current="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.select { position: relative; }

.select select {
  height: 40px;
  padding: 0 38px 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23141414' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E") right 12px center / 16px no-repeat;
  font: 500 15px inherit;
  font-family: inherit;
  color: var(--ink);
  appearance: none;
  cursor: pointer;
}

.meter {
  height: 6px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}

.meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
  transition: width .6s var(--ease-out);
}

.meter--big { height: 10px; }

.field__error { margin: 8px 0 0; font-size: 14px; color: #c62828; }

/* sources next to facts: plan, brand memory */
.facts { margin: 0; padding: 0; list-style: none; }

.facts li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.facts li:first-child { border-top: 0; }
.facts b { font-weight: 550; }

.facts span {
  flex: none;
  padding: 3px 10px;
  border-radius: 999px;
  background: #eef0fe;
  font-size: 13px;
  color: var(--blue);
}

/* ======================================================================
   Examples library
   ====================================================================== */

.lib { max-width: 1360px; margin: 0 auto; padding: 0 32px 96px; }
.lib .page-head { padding-bottom: 32px; }

.lib__search {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 720px;
  height: 60px;
  margin: 0 auto 40px;
  padding: 0 16px 0 22px;
  border-radius: 999px;
  background: var(--soft);
  transition: background .15s, box-shadow .15s;
}

.lib__search:focus-within { background: var(--bg); box-shadow: 0 0 0 2px var(--ink); }

.lib__search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: none;
  font: 450 17px inherit;
  font-family: inherit;
  color: var(--ink);
}

.lib__search input::-webkit-search-cancel-button { display: none; }

.lib__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.lib__selects { display: flex; gap: 8px; }

.lib__count { margin: 24px 0; font-size: 15px; color: var(--muted); }

.lib__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px 20px;
}

.lib__grid .shot {
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
}

.lib__grid .shot[hidden] { display: none; }

.lib__empty { padding: 48px 24px 24px; text-align: center; }

.lib__empty img {
  width: 96px;
  height: 96px;
  border-radius: 28px;
  object-fit: cover;
  background: var(--fuzi-bg);
}

.lib__empty h2 { margin: 20px 0 8px; font-size: 26px; letter-spacing: -.02em; }
.lib__empty p { max-width: 380px; margin: 0 auto 24px; line-height: 1.45; color: var(--muted); }
.lib__empty-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }

/* viewer */
.viewer,
.drawer {
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
}

.viewer {
  width: 100%;
  height: 100%;
}

.viewer::backdrop,
.drawer::backdrop {
  background: rgba(10, 10, 12, .55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.viewer[open] { display: grid; place-items: center; animation: fade-in .2s ease; }

@keyframes fade-in { from { opacity: 0; } }

.viewer__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  width: min(1120px, calc(100vw - 48px));
  height: min(760px, calc(100vh - 48px));
  border-radius: 32px;
  background: var(--bg);
  overflow: hidden;
  animation: viewer-in .4s var(--ease-out);
}

@keyframes viewer-in { from { transform: translateY(24px) scale(.98); opacity: 0; } }

.viewer__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--soft);
  cursor: pointer;
}

.viewer__close:hover { background: #e8e8ec; }

.viewer__stage {
  position: relative;
  display: grid;
  place-items: center;
  padding: 32px;
  background: var(--soft);
}

.viewer__video {
  height: 100%;
  max-height: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 20px;
  background: #ddd;
  object-fit: cover;
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .35);
}

.viewer__nav {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--bg);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .1);
  cursor: pointer;
  transform: translateY(-50%);
  transition: transform .2s var(--ease-out);
}

.viewer__nav:hover { transform: translateY(-50%) scale(1.08); }
.viewer__nav--prev { left: 20px; }
.viewer__nav--next { right: 20px; }

.viewer__side { display: flex; flex-direction: column; padding: 32px; overflow-y: auto; }
.viewer__biz { display: flex; align-items: center; gap: 14px; padding-right: 48px; }
.viewer__name { margin: 0; font-size: 22px; letter-spacing: -.02em; }
.viewer__industry { margin: 2px 0 0; color: var(--muted); }

.viewer__facts { margin: 28px 0 0; }

.viewer__facts div {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
}

.viewer__facts dt { color: var(--muted); }
.viewer__facts dd { margin: 0; font-weight: 550; }
.viewer__facts a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #c8c8cc; }

.viewer__h { margin: 24px 0 12px; font-size: 15px; font-weight: 550; color: var(--muted); }

.viewer__scenes,
.fmt__flow,
.planv__scenes {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: scene;
}

.viewer__scenes li {
  position: relative;
  padding: 7px 0 7px 36px;
  font-weight: 500;
  counter-increment: scene;
}

.viewer__scenes li::before {
  content: counter(scene);
  position: absolute;
  top: 6px;
  left: 0;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--soft);
  font-size: 12px;
  font-weight: 650;
}

.viewer__tagline { margin: 20px 0 0; line-height: 1.45; color: var(--muted); }
.viewer__actions { display: grid; gap: 8px; margin-top: auto; padding-top: 24px; }

/* ======================================================================
   Formats
   ====================================================================== */

.fmt { padding-bottom: 96px; }

.fmt__jump {
  position: sticky;
  top: 72px;
  z-index: 5;
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
}

.fmt__list { max-width: 1200px; margin: 0 auto; padding: 0 32px; }

.fmt__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
  padding: 96px 0;
  scroll-margin-top: 80px;
  border-top: 1px solid var(--line);
}

.fmt__item:first-child { border-top: 0; }
.fmt__item:nth-child(even) .fmt__media { order: 2; }

.fmt__media {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1.1;
  border-radius: 40px;
  background: var(--soft);
}

.phone {
  width: 52%;
  aspect-ratio: 9 / 16;
  padding: 8px;
  border-radius: 34px;
  background: var(--ink);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .45);
}

.phone video {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 26px;
  object-fit: cover;
  background: #333;
}

.fmt__index { margin: 0; font-size: 15px; font-weight: 600; color: var(--blue); }

.fmt__copy h2 {
  margin: 8px 0 0;
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 650;
  letter-spacing: -.03em;
}

.fmt__tagline { margin: 12px 0 0; font-size: 20px; line-height: 1.35; color: var(--muted); }

.fmt__facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 32px 0 0;
  padding: 20px 0;
  border-block: 1px solid var(--line);
}

.fmt__facts dt { font-size: 13px; color: var(--muted); }
.fmt__facts dd { margin: 4px 0 0; font-weight: 550; line-height: 1.3; }

.fmt__copy h3 { margin: 28px 0 12px; font-size: 15px; font-weight: 550; color: var(--muted); }

.fmt__best { margin: 0; padding: 0; list-style: none; }

.fmt__best li {
  position: relative;
  padding: 4px 0 4px 26px;
  font-size: 17px;
  font-weight: 500;
}

.fmt__best li::before {
  content: "";
  position: absolute;
  top: 13px;
  left: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
}

/* scene by scene: a row of steps joined by a line */
.fmt__flow { display: flex; flex-wrap: wrap; gap: 6px; }

.fmt__flow li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px 0 6px;
  border-radius: 999px;
  background: var(--soft);
  font-size: 14px;
  font-weight: 550;
  counter-increment: scene;
}

.fmt__flow li::before {
  content: counter(scene);
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg);
  font-size: 12px;
}

.fmt__variants { display: flex; flex-wrap: wrap; gap: 6px; }
.fmt__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }

.fmt__pick {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  max-width: 1136px;
  margin: 32px auto 0;
  padding: 48px;
  border-radius: 40px;
  background: var(--soft);
}

.fmt__pick h2 { margin: 0; font-size: 32px; letter-spacing: -.025em; }
.fmt__pick p { max-width: 520px; margin: 10px 0 0; line-height: 1.45; color: var(--muted); }
.fmt__pick .btn { flex: none; }

/* ======================================================================
   Pricing
   ====================================================================== */

.price { max-width: 1280px; margin: 0 auto; padding: 0 32px 64px; }

.toggle {
  display: flex;
  width: max-content;
  margin: 0 auto 48px;
  padding: 4px;
  border-radius: 999px;
  background: var(--soft);
}

.toggle button {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: none;
  font-size: 15px;
  font-weight: 550;
  color: var(--muted);
  cursor: pointer;
  transition: background .2s, color .2s, box-shadow .2s;
}

.toggle button[aria-pressed="true"] {
  background: var(--bg);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .1);
}

.toggle__save {
  padding: 2px 8px;
  border-radius: 999px;
  background: #e3f5e8;
  font-size: 12px;
  color: #1d7a3a;
}

.plans {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.plan {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 32px;
}

.plan--pop {
  border-color: transparent;
  background: var(--ink);
  color: #fff;
}

.plan--pop .pill--blue { background: var(--blue); color: #fff; }
.plan__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 28px; }
.plan h2 { margin: 0; font-size: 20px; letter-spacing: -.015em; }
.plan__blurb { margin: 8px 0 0; min-height: 2.8em; line-height: 1.4; color: var(--muted); }
.plan--pop .plan__blurb,
.plan--pop .plan__note,
.plan--pop .plan__per { color: #a5a5ab; }

.plan__price { margin: 24px 0 0; }

.plan__amount {
  font-size: 48px;
  font-weight: 650;
  letter-spacing: -.035em;
  font-variant-numeric: tabular-nums;
}

.plan__per { font-size: 15px; color: var(--muted); }
.plan__note { margin: 4px 0 24px; font-size: 14px; color: var(--muted); }
.plan--pop .btn--dark { background: #fff; color: var(--ink); }
.plan--pop .btn--dark:hover { background: #e8e8ec; }

.plan__list {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  font-size: 15px;
}

.plan--pop .plan__list { border-color: #2c2c30; }
.plan__list li { display: flex; gap: 10px; line-height: 1.35; }
.plan__list svg { color: var(--blue); margin-top: 1px; }
.plan--pop .plan__list svg { color: #8ea0ff; }

.plan__list em {
  margin-left: 4px;
  padding: 1px 7px;
  border-radius: 999px;
  background: #2c2c30;
  font-size: 12px;
  font-style: normal;
}

.plan__list--tight { margin-top: 16px; padding-top: 16px; }

.compare { margin-top: 120px; }

.compare h2,
.faq h2 {
  margin: 0 0 32px;
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -.025em;
  text-align: center;
}

.compare__scroll { overflow-x: auto; }

.compare table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 15px;
}

.compare th,
.compare td {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.compare thead th { font-size: 17px; font-weight: 650; }
.compare thead .is-pop { color: var(--blue); }
.compare tbody th { font-weight: 500; text-align: left; }
.compare td { color: var(--muted); }
.compare tbody td:nth-child(4) { background: #fafafb; }
.compare .yes { color: var(--blue); }
.compare .yes svg { vertical-align: middle; }
.compare .no { color: #c4c4c8; }

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

.faq__item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 0;
  font-size: 18px;
  font-weight: 550;
  cursor: pointer;
  list-style: none;
}

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

.faq__plus {
  position: relative;
  flex: none;
  width: 16px;
  height: 16px;
}

.faq__plus::before,
.faq__plus::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 0;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .25s var(--ease-out);
}

.faq__plus::after { transform: rotate(90deg); }
.faq__item[open] .faq__plus::after { transform: rotate(0); }

.faq__item p { margin: -6px 0 22px; max-width: 640px; line-height: 1.55; color: var(--muted); }

/* ======================================================================
   Start flow
   ====================================================================== */

.flow-page { background: var(--bg); }

.flow-bar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr minmax(0, 360px) 1fr;
  align-items: center;
  gap: 24px;
  height: 72px;
  padding: 0 32px;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.flow-bar__progress {
  height: 6px;
  border-radius: 999px;
  background: var(--soft);
  overflow: hidden;
}

.flow-bar__progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
  transition: width .5s var(--ease-out);
}

.flow-bar__exit { justify-self: end; font-size: 15px; font-weight: 500; color: var(--muted); }
.flow-bar__exit:hover { color: var(--ink); }

.flow { max-width: 640px; margin: 0 auto; padding: 40px 24px 96px; }

.flow__fuzi { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 32px; }

.flow__avatar {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  overflow: hidden;
  background: var(--fuzi-bg) url("media/fuzi/idle.jpg") center / cover;
}

.flow__avatar video { width: 100%; height: 100%; object-fit: cover; display: block; }

.flow__says {
  position: relative;
  min-height: 48px;
  margin: 4px 0 0;
  padding: 12px 16px;
  border-radius: 6px 18px 18px 18px;
  background: var(--soft);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
}

.step { display: none; }
.step.is-current { display: block; animation: step-in .45s var(--ease-out); }

@keyframes step-in {
  from { opacity: 0; transform: translateY(12px); filter: blur(4px); }
}

.step__count { margin: 0 0 8px; font-size: 14px; font-weight: 550; color: var(--muted); }

.step__q {
  margin: 0 0 16px;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -.025em;
}

.step__q--sub { margin-top: 40px; font-size: clamp(22px, 2.6vw, 28px); }

.opt {
  margin-left: 6px;
  vertical-align: middle;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--soft);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--muted);
}

.flow textarea,
.flow input[type="text"],
.flow input:not([type]),
.qs input,
.change textarea,
.auth input,
.rejects__add input {
  display: block;
  width: 100%;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg);
  font: 450 17px/1.4 inherit;
  font-family: inherit;
  color: var(--ink);
  resize: none;
  transition: border-color .15s, box-shadow .15s;
}

.flow textarea:focus,
.flow input:focus,
.qs input:focus,
.change textarea:focus,
.auth input:focus,
.rejects__add input:focus {
  outline: 0;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px #e9ecfe;
}

.flow textarea:disabled { background: var(--soft); color: #b0b0b4; }
.flow ::placeholder { color: #ababaf; }
.flow .chips + textarea,
.flow .chips + input { margin-top: 12px; }

.field { position: relative; display: flex; align-items: center; }
.field--url { border: 1px solid var(--line); border-radius: 18px; transition: border-color .15s, box-shadow .15s; }
.field--url:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px #e9ecfe; }
.field--url.is-invalid { border-color: #c62828; }
.field__prefix { padding-left: 18px; font-size: 19px; color: #ababaf; }
.flow .field--url input { border: 0; box-shadow: none; padding-left: 2px; font-size: 19px; font-weight: 550; }

.more { margin-top: 20px; }

.more summary {
  width: max-content;
  font-size: 15px;
  font-weight: 550;
  cursor: pointer;
}

.more summary span { font-weight: 450; color: var(--muted); }
.more__grid { display: grid; gap: 8px; margin-top: 14px; }
.field--icon img { position: absolute; left: 16px; width: 22px; height: 22px; pointer-events: none; }
.flow .field--icon input { padding-left: 50px; font-size: 15px; }

.switches { display: grid; gap: 4px; margin-top: 28px; }

.switch {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  cursor: pointer;
}

.switch input { position: absolute; opacity: 0; pointer-events: none; }

.switch__track {
  position: relative;
  flex: none;
  width: 44px;
  height: 26px;
  border-radius: 999px;
  background: #d9d9de;
  transition: background .2s;
}

.switch__track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
  transition: transform .3s var(--spring);
}

.switch input:checked + .switch__track { background: var(--blue); }
.switch input:checked + .switch__track::after { transform: translateX(18px); }
.switch input:focus-visible + .switch__track { outline: 3px solid #b9c6ff; outline-offset: 2px; }
.switch b { display: block; font-weight: 550; }
.switch span:last-child { font-size: 14px; color: var(--muted); }

.tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }

.tile {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 16px 8px 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--bg);
  font-size: 14px;
  font-weight: 550;
  cursor: pointer;
  transition: border-color .15s, background .15s, transform .2s var(--spring);
}

.tile img { width: 34px; height: 34px; object-fit: contain; }
.tile:active { transform: scale(.96); }
.tile[aria-pressed="true"] { border-color: var(--ink); background: var(--soft); box-shadow: inset 0 0 0 1px var(--ink); }

.drop {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 32px 24px;
  border: 1.5px dashed #d2d2d7;
  border-radius: 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}

.drop:hover,
.drop.is-over { border-color: var(--blue); background: #f6f7ff; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop svg { color: var(--blue); margin-bottom: 4px; }
.drop span { font-size: 14px; color: var(--muted); }

.thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.thumb { position: relative; width: 76px; height: 76px; }
.thumb img { width: 100%; height: 100%; border-radius: 14px; object-fit: cover; }

.thumb button {
  position: absolute;
  top: -6px;
  right: -6px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
}

.review { margin: 0; }

.review div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: baseline;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.review dt { font-size: 14px; color: var(--muted); }
.review dd { margin: 0; font-weight: 500; line-height: 1.4; overflow-wrap: anywhere; }
.review__skip { font-weight: 450; color: #ababaf; }

.review__edit {
  padding: 0;
  border: 0;
  background: none;
  font-size: 14px;
  font-weight: 550;
  color: var(--blue);
  cursor: pointer;
}

.review__picked {
  margin: 24px 0 0;
  padding: 14px 18px;
  border-radius: 18px;
  background: #eef0fe;
  line-height: 1.45;
}

.flow__nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 48px;
}

.flow__nav[hidden] { display: none; }
.flow__hint { font-size: 14px; color: var(--muted); }

.step--done { text-align: center; }

.done__scene {
  width: min(320px, 100%);
  aspect-ratio: 1;
  margin: 0 auto 32px;
  border-radius: 40px;
  overflow: hidden;
  background: var(--fuzi-bg) url("media/fuzi/work.jpg") center / cover;
}

.done__scene video { display: block; width: 100%; height: 100%; object-fit: cover; }
.done__sub { margin: 0 0 32px; color: var(--muted); }

.done__list {
  display: grid;
  gap: 4px;
  width: max-content;
  max-width: 100%;
  margin: 0 auto 40px;
  padding: 0;
  list-style: none;
  text-align: left;
}

.done__list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  font-weight: 500;
  color: #b0b0b4;
  transition: color .3s;
}

.done__list li::before {
  content: "";
  flex: none;
  width: 22px;
  height: 22px;
  border: 2px solid #e1e1e5;
  border-radius: 50%;
  box-sizing: border-box;
  transition: background .3s, border-color .3s;
}

.done__list li.is-working { color: var(--ink); }
.done__list li.is-working::before { border-color: var(--blue); border-right-color: transparent; animation: spin .8s linear infinite; }
.done__list li.is-done { color: var(--ink); }

.done__list li.is-done::before {
  border-color: #1d9a4a;
  background: #1d9a4a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 13px no-repeat;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ======================================================================
   Log in
   ====================================================================== */

.auth {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 100vh;
}

.auth__form {
  display: flex;
  flex-direction: column;
  padding: 32px clamp(24px, 6vw, 96px);
}

.auth__box { width: 100%; max-width: 380px; margin: auto; padding: 48px 0; }
.auth__box h1 { margin: 0; font-size: 36px; letter-spacing: -.03em; }
.auth__sub { margin: 10px 0 32px; line-height: 1.45; color: var(--muted); }
.auth__google { display: flex; width: 100%; height: 50px; }
.auth__or { position: relative; margin: 24px 0; text-align: center; font-size: 14px; color: var(--muted); }

.auth__or::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  border-top: 1px solid var(--line);
}

.auth__or span { position: relative; padding: 0 12px; background: var(--bg); }
.auth__email label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 550; }
.auth input.is-invalid { border-color: #c62828; }
.auth__email .btn { width: 100%; height: 50px; margin-top: 12px; }
.auth__alt { margin: 24px 0 0; font-size: 15px; color: var(--muted); text-align: center; }
.auth__alt a { color: var(--blue); font-weight: 550; }
.auth__legal { margin: 0; font-size: 13px; color: #a3a3a7; }
.auth__box[data-step="sent"] .btn { width: 100%; height: 50px; }

.auth__mail {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 24px;
  border-radius: 20px;
  background: #eef0fe;
  color: var(--blue);
}

.auth__back {
  display: block;
  margin: 16px auto 0;
  padding: 0;
  border: 0;
  background: none;
  font-size: 15px;
  font-weight: 550;
  color: var(--muted);
  cursor: pointer;
}

.auth__wall {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  height: calc(100vh - 32px);
  margin: 16px 16px 16px 0;
  padding: 0 16px;
  border-radius: 36px;
  background: var(--soft);
  overflow: hidden;
  position: sticky;
  top: 16px;
}

.auth__col { overflow: hidden; }

.auth__track {
  display: grid;
  gap: 16px;
  animation: wall-up 60s linear infinite;
}

.auth__col--down .auth__track { animation-direction: reverse; }

.auth__track img {
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 20px;
  object-fit: cover;
  background: #ddd;
}

@keyframes wall-up { to { transform: translateY(calc(-50% - 8px)); } }

/* ======================================================================
   Waitlist (reuses the log-in layout: form on the left, example wall on the right)
   ====================================================================== */

.wl__bar { display: flex; align-items: center; justify-content: space-between; }

.wl.auth__box { max-width: 420px; }
.wl h1 { margin-top: 16px; font-family: "Bricolage Grotesque", "Inter", sans-serif; font-size: clamp(32px, 3.4vw, 42px); line-height: 1.05; letter-spacing: -.035em; }
.wl h1:focus { outline: 0; }
.wl .auth__sub { margin-bottom: 28px; }

.wl__offer {
  margin-bottom: 28px;
  padding: 20px;
  border-radius: 20px;
  background: var(--soft);
}

.wl__offer p { margin: 0; }
.wl__deal { font-size: 17px; font-weight: 550; }
.wl__deal b { color: var(--blue); font-weight: 700; }
.wl__who { margin-top: 2px !important; font-size: 14px; color: var(--muted); }

.wl__meter {
  height: 8px;
  margin: 16px 0 10px;
  border-radius: 999px;
  background: #e3e3e8;
  overflow: hidden;
}

.wl__meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
  transition: width .8s var(--ease-out);
}

.wl__count { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.wl__count b { color: var(--ink); font-weight: 600; }

.wl__form { display: grid; gap: 16px; }
.wl__field label { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 14px; font-weight: 550; }
.wl__opt { font-weight: 450; color: #a3a3a7; }
.wl__form .field__error { font-size: 13px; }
.wl__field .field__error { margin-top: 6px; }

.wl__consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 4px;
  font-size: 15px;
  line-height: 1.4;
  cursor: pointer;
}

.auth .wl__consent input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 0;
  padding: 0;
  accent-color: var(--blue);
  cursor: pointer;
}

.wl__consent-error { margin-top: -8px !important; }
.wl__form .btn { width: 100%; height: 50px; margin-top: 4px; }
.wl[data-step="done"] .btn { width: 100%; height: 50px; }
.wl[data-step="done"] .auth__back { text-align: center; }

/* ======================================================================
   About
   ====================================================================== */

.about h2 {
  margin: 0;
  font-family: "Bricolage Grotesque", "Inter", sans-serif;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 650;
  line-height: 1.05;
  letter-spacing: -.03em;
}

.about h3 { margin: 0; font-size: 19px; font-weight: 650; letter-spacing: -.015em; }

.about__story,
.about__how,
.about__values {
  max-width: 1100px;
  margin: 0 auto;
  padding: 72px 24px;
  border-top: 1px solid var(--line);
}

.about .page-head { padding-bottom: 72px; }

.about__story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: 48px;
}

.about__prose p { margin: 0 0 20px; font-size: 18px; line-height: 1.6; color: #3d3d42; }
.about__prose p:last-child { margin-bottom: 0; color: var(--ink); font-weight: 550; }

.about__steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}

.about__steps li { padding: 28px; border-radius: 24px; background: var(--soft); }
.about__num { display: block; margin-bottom: 40px; font-size: 14px; font-weight: 600; color: var(--blue); font-variant-numeric: tabular-nums; }
.about__steps p,
.about__grid p { margin: 10px 0 0; line-height: 1.5; color: var(--muted); }

.about__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  margin-top: 40px;
}

.about__grid article { padding-top: 20px; border-top: 2px solid var(--ink); }

@media (max-width: 900px) {
  .about__story { grid-template-columns: 1fr; gap: 24px; }
  .about__steps { grid-template-columns: 1fr; }
  .about__num { margin-bottom: 16px; }
  .about__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .about__story,
  .about__how,
  .about__values { padding: 56px 16px; }
  .about__grid { grid-template-columns: 1fr; gap: 24px; }
  .about__prose p { font-size: 17px; }
}

/* ======================================================================
   Dashboard
   ====================================================================== */

.dash-page { background: var(--soft); }

.dash {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  min-height: 100vh;
}

.side {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100vh;
  padding: 24px 16px;
}

.side__brand { padding: 4px 12px 20px; }
.side__brand img { display: block; height: 22px; width: auto; }
.side__new { width: 100%; margin-bottom: 16px; }
.side__nav { display: grid; gap: 2px; }

.side__nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 44px;
  padding: 0 12px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  transition: background .15s, color .15s;
}

.side__nav a:hover { color: var(--ink); }
.side__nav a[aria-current="page"] { background: var(--bg); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .04); }

.side__badge {
  margin-left: auto;
  min-width: 22px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #f59e0b;
  font-size: 12px;
  font-weight: 650;
  color: #fff;
  text-align: center;
}

.side__badge:empty { display: none; }

.side__usage { margin-top: auto; padding: 16px 12px; }
.side__usage-top { display: flex; align-items: baseline; gap: 6px; margin-bottom: 10px; font-size: 14px; }
.side__usage-top span { color: var(--muted); }

.side__biz {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px;
  border: 0;
  border-radius: 16px;
  background: var(--bg);
  text-align: left;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
}

.side__biz .shot__icon { width: 36px; height: 36px; border-radius: 10px; font-size: 16px; }
.side__biz b { display: block; font-size: 15px; font-weight: 550; color: var(--ink); }
.side__biz svg { margin-left: auto; }

.dash__main {
  margin: 12px 12px 12px 0;
  padding: 40px clamp(20px, 4vw, 56px) 64px;
  border-radius: 32px;
  background: var(--bg);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
}

.dash__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 32px; }
.dash__head h1 { margin: 0; font-size: 34px; letter-spacing: -.03em; }
.dash__head p { margin: 6px 0 0; color: var(--muted); }
.dash__new-sm { display: none; }

.needs { display: grid; gap: 8px; margin-bottom: 40px; }

.needs__item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 14px 14px 14px;
  border-radius: 22px;
  background: #fff8ec;
  box-shadow: inset 0 0 0 1px #f8e3bf;
}

.needs__item img { width: 48px; height: 48px; border-radius: 14px; object-fit: cover; background: var(--fuzi-bg); }
.needs__item b { display: block; font-weight: 600; }
.needs__item span { font-size: 14px; color: #8a6a3a; }
.needs__item .btn { margin-left: auto; flex: none; }

.dash__tabs {
  display: flex;
  gap: 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.dash__tabs button {
  margin-bottom: -1px;
  padding: 0 0 12px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  font-size: 15px;
  font-weight: 550;
  color: #a3a3a7;
  cursor: pointer;
}

.dash__tabs button[aria-selected="true"] { border-color: var(--ink); color: var(--ink); }

.jobs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 32px 20px;
}

.jobs__empty { color: var(--muted); }

.job {
  display: block;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
}

.job__art {
  position: relative;
  aspect-ratio: 4 / 5;
  margin-bottom: 14px;
  border-radius: 24px;
  background: var(--soft);
  overflow: hidden;
}

.job__art > img {
  position: absolute;
  top: 9%;
  left: 50%;
  height: 82%;
  aspect-ratio: 9 / 16;
  border-radius: 12px;
  object-fit: cover;
  transform: translateX(-50%);
  box-shadow: 0 10px 28px -10px rgba(0, 0, 0, .3);
  transition: transform .35s var(--ease-out);
}

.job:hover .job__art > img { transform: translateX(-50%) scale(1.03); }
.job__art.is-making > img { filter: blur(3px) saturate(.7); opacity: .8; }

.job__blank {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.job__blank img {
  width: 44%;
  aspect-ratio: 1;
  border-radius: 28%;
  object-fit: cover;
  background: var(--fuzi-bg);
}

.job__status { position: absolute; top: 12px; left: 12px; box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }

.job__v {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--bg);
  font-size: 12px;
  font-weight: 650;
}

.job__bar {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .7);
  overflow: hidden;
}

.job__bar i { display: block; height: 100%; background: var(--blue); }
.job__title { display: block; font-size: 16px; font-weight: 600; }
.job__meta { display: block; margin-top: 3px; font-size: 14px; color: var(--muted); }

.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

.card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
}

.card--wide { grid-column: 1 / -1; }
.card h2 { margin: 0 0 18px; font-size: 18px; letter-spacing: -.015em; }
.card__note { margin: 14px 0 0; font-size: 14px; color: var(--muted); }

.swatches { display: flex; flex-wrap: wrap; gap: 20px; }
.swatches span { display: grid; gap: 8px; font-size: 13px; font-weight: 550; color: var(--muted); }

.swatches i {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: var(--c);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06);
}

.tags { display: flex; flex-wrap: wrap; gap: 6px; }

.rejects { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; padding: 0; list-style: none; }

.rejects li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 8px 7px 14px;
  border-radius: 999px;
  background: #fdeceb;
  font-size: 14px;
  font-weight: 500;
  color: #a12b22;
}

.rejects button {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: inherit;
  cursor: pointer;
}

.rejects button:hover { background: rgba(161, 43, 34, .1); }
.rejects__add { display: flex; gap: 8px; max-width: 460px; }
.rejects__add input { padding: 10px 16px; font-size: 15px; border-radius: 999px; }

.usage { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.usage > div { flex: 1; max-width: 480px; }
.usage__big { margin: 0 0 14px; font-size: 44px; font-weight: 650; letter-spacing: -.03em; }
.usage__big span,
.usage__price span { font-size: 16px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.usage__price { margin: 0; font-size: 36px; font-weight: 650; letter-spacing: -.03em; }
.pay { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 17px; font-weight: 550; }

.pay__card {
  padding: 4px 8px;
  border-radius: 6px;
  background: #1a1f71;
  font-size: 12px;
  font-weight: 800;
  font-style: italic;
  color: #fff;
}

/* drawer: slides in from the right */
.drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(720px, 100vw);
  height: 100%;
}

.drawer[open] { animation: drawer-in .4s var(--ease-out); }

@keyframes drawer-in { from { transform: translateX(40px); opacity: 0; } }

.drawer__inner {
  display: flex;
  flex-direction: column;
  height: calc(100% - 24px);
  margin: 12px;
  border-radius: 28px;
  background: var(--bg);
  overflow: hidden;
}

.drawer__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 28px 28px 20px;
  border-bottom: 1px solid var(--line);
}

.drawer__title { margin: 0; font-size: 24px; letter-spacing: -.02em; }
.drawer__sub { display: flex; align-items: center; gap: 10px; margin: 8px 0 0; font-size: 14px; color: var(--muted); }
.drawer__close { position: static; flex: none; }
.drawer__body { padding: 28px; overflow-y: auto; }

.planv h3,
.ready h3 { margin: 32px 0 12px; font-size: 15px; font-weight: 550; color: var(--muted); }

.planv__why {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin: 0;
  padding: 16px;
  border-radius: 20px;
  background: var(--soft);
  font-weight: 500;
  line-height: 1.45;
}

.planv__why img { flex: none; width: 40px; height: 40px; border-radius: 12px; object-fit: cover; background: var(--fuzi-bg); }

.planv__scenes { display: grid; gap: 0; }

.planv__scenes li {
  position: relative;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding: 12px 0 12px 36px;
  font-size: 16px;
  font-weight: 550;
  counter-increment: scene;
}

.planv__scenes li::before {
  content: counter(scene);
  position: absolute;
  top: 11px;
  left: 0;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 650;
}

.planv__scenes li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 37px;
  bottom: -11px;
  left: 11px;
  width: 2px;
  background: var(--line);
}

.planv__scenes span { font-size: 14px; font-weight: 500; color: var(--muted); }

.planv__go {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.planv__go span { font-size: 14px; color: var(--muted); }

.change {
  display: grid;
  gap: 10px;
  margin-top: 28px;
  padding: 20px;
  border-radius: 22px;
  background: var(--soft);
}

.change label b { font-weight: 600; }
.change textarea { font-size: 15px; }
.change .btn { justify-self: start; background: var(--bg); }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--blue); }

.qs { display: grid; gap: 10px; }
.qs__q { margin-top: 18px; font-weight: 600; }
.qs .btn { justify-self: start; margin-top: 18px; }

.waiting { text-align: center; }
.waiting p { max-width: 400px; margin: 0 auto; line-height: 1.5; color: var(--muted); }

.making { display: grid; grid-template-columns: 200px 1fr; gap: 28px; align-items: start; }
.making__art { aspect-ratio: 9 / 16; border-radius: 18px; overflow: hidden; background: var(--soft); }
.making__art img { width: 100%; height: 100%; object-fit: cover; filter: blur(4px) saturate(.6); opacity: .7; }
.making__art .making__fuzi { filter: none; opacity: 1; }
.making__pct { margin: 0 0 12px; font-size: 44px; font-weight: 650; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.making__list { width: auto; margin: 20px 0 0; }

.making__change {
  margin: 16px 0 0;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--soft);
  font-size: 14px;
  line-height: 1.45;
}

.ready { display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: start; }

.ready__player video {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 20px;
  object-fit: cover;
  background: #ddd;
}

.ready__side h3:first-child { margin-top: 0; }
.versions { display: flex; flex-wrap: wrap; gap: 8px; }

.version {
  display: grid;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg);
  font-weight: 650;
  text-align: left;
  cursor: pointer;
}

.version span { font-size: 12px; font-weight: 500; color: var(--muted); }
.version[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.ready__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 50;
  padding: 14px 20px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .4);
  opacity: 0;
  transform: translate(-50%, 16px);
  transition: opacity .2s ease, transform .35s var(--spring);
  pointer-events: none;
}

.toast.is-shown { opacity: 1; transform: translate(-50%, 0); }

/* ======================================================================
   Small screens
   ====================================================================== */

@media (max-width: 1100px) {
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lib__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .viewer__inner { grid-template-columns: 1fr; height: calc(100vh - 24px); width: calc(100vw - 24px); overflow-y: auto; }
  .viewer__stage { height: 62vh; padding: 20px; }
  .viewer__side { overflow: visible; }
  .fmt__item { grid-template-columns: 1fr; padding: 64px 0; }
  .fmt__item:nth-child(even) .fmt__media { order: 0; }
  .fmt__media { aspect-ratio: 4 / 3.4; border-radius: 28px; }
  .phone { width: auto; height: 86%; }
  .auth { grid-template-columns: 1fr; }
  .auth__wall { display: none; }
  .dash { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; align-items: center; padding: 12px 16px; }
  .side__brand { padding: 0; margin-right: auto; }
  .side__new,
  .side__usage,
  .side__biz { display: none; }
  .side__nav { display: flex; }
  .side__nav a { height: 38px; padding: 0 10px; font-size: 14px; }
  .side__nav svg { display: none; }
  .dash__main { margin: 0; border-radius: 24px 24px 0 0; }
  .dash__new-sm { display: inline-flex; width: 44px; padding: 0; }
}

@media (max-width: 760px) {
  .lib,
  .price { padding: 0 16px 64px; }
  .page-head { padding: 40px 0 28px; }
  .lib__search { height: 52px; margin-bottom: 24px; }
  .lib__search kbd { display: none; }
  .lib__bar .chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px; scrollbar-width: none; width: calc(100% + 32px); }
  .lib__selects { width: 100%; }
  .lib__selects .select,
  .lib__selects select { flex: 1; width: 100%; }
  .lib__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; }
  .viewer__inner { border-radius: 24px; }
  .viewer__side { padding: 24px; }
  .viewer__nav--prev { left: 10px; }
  .viewer__nav--next { right: 10px; }
  .fmt__jump { top: 60px; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; padding: 10px 16px; }
  .fmt__jump .chip { height: 36px; font-size: 14px; }
  .fmt__list { padding: 0 16px; }
  .fmt__item { padding: 48px 0; gap: 28px; scroll-margin-top: 110px; }
  .fmt__facts { grid-template-columns: 1fr 1fr; }
  .fmt__facts div:last-child { grid-column: 1 / -1; }
  .fmt__pick { flex-direction: column; align-items: flex-start; margin: 16px 16px 0; padding: 28px; border-radius: 28px; }
  .plans { grid-template-columns: 1fr; }
  .compare,
  .faq { margin-top: 80px; }
  .flow-bar { grid-template-columns: auto 1fr; height: 60px; padding: 0 16px; gap: 16px; }
  .flow-bar .nav__brand img { height: 20px; }
  .flow-bar__exit { display: none; }
  .flow { padding: 24px 16px 64px; }
  .flow__fuzi { margin-bottom: 24px; }
  .flow__avatar { width: 46px; height: 46px; border-radius: 15px; }
  .flow__says { font-size: 15px; }
  .flow__hint { display: none; }
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .review div { grid-template-columns: 1fr auto; gap: 4px 12px; }
  .review dt { grid-column: 1 / -1; }
  .dash__head h1 { font-size: 28px; }
  .needs__item { flex-wrap: wrap; }
  .needs__item .btn { width: 100%; margin-left: 0; }
  .jobs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
  .job__art { border-radius: 18px; }
  .job__status { top: 8px; left: 8px; height: 24px; padding: 0 8px; font-size: 12px; }
  .cards { grid-template-columns: 1fr; }
  .usage { flex-direction: column; align-items: stretch; }
  .drawer { width: 100vw; }
  .drawer__inner { margin: 0; height: 100%; border-radius: 0; }
  .drawer__head,
  .drawer__body { padding-left: 20px; padding-right: 20px; }
  .planv__scenes li { grid-template-columns: 1fr; gap: 2px; }
  .making,
  .ready { grid-template-columns: 1fr; }
  .making__art,
  .ready__player { width: 60%; margin: 0 auto; }
}

@media (prefers-reduced-motion: reduce) {
  .step.is-current,
  .viewer[open],
  .viewer__inner,
  .drawer[open] { animation: none; }
  .auth__track { animation: none; }
  .done__list li.is-working::before { animation: none; }
  .switch__track::after,
  .toast { transition: none; }
}
