/* ---- hero illustration ---- */

/* ============ Section scaffolding ============ */
section {
  padding-block: 96px;
}
.band {
  background: var(--surface);
}
#trust.band {
  background: var(--bg);
} /* Trust matches the screens above */
.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}
.section-head h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  margin-top: 14px;
}
.section-head p {
  margin-top: 16px;
  font-size: 16.5px;
  color: var(--ink-soft);
  max-width: 56ch;
}
@media (max-width: 760px) {
  section {
    padding-block: 64px;
  }
}

/* ============ Why Now ============ */

/* ============ For Creators tags ============ */
.tag {
  font-size: 13px;
  font-weight: 500;
  padding: 8px 15px;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--accent);
}

/* ============ Meet Capsule mock ============ */

/* ============ How it works: expanding panels ============ */
.panels {
  display: flex;
  gap: 12px;
  height: 580px;
  margin-top: 8px;
}
.panel {
  --ease: cubic-bezier(0.22, 0.8, 0.24, 1);
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 30px 28px 30px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  outline: none;
  cursor: default;
  transition:
    flex-grow 0.6s var(--ease),
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}
.panel:focus-visible {
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
}
.panels.has-active .panel.active {
  flex-grow: 2.3;
  box-shadow: var(--shadow-md);
}
.panels.has-active .panel:not(.active) {
  flex-grow: 0.85;
}

.p-title {
  display: flex;
  align-items: baseline;
  gap: 0.22em;
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  white-space: nowrap;
  transition:
    font-size 0.55s var(--ease),
    opacity 0.4s ease;
}
.p-num {
  color: var(--ink-faint);
  font-weight: 500;
}
.p-name {
  color: var(--ink);
}
.panels.has-active .panel.active .p-title {
  font-size: 48px;
}
.panels.has-active .panel:not(.active) .p-title {
  font-size: 26px;
}

.p-visual {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 24px -28px;
  transition: opacity 0.45s ease;
}

.p-text {
  transition: opacity 0.45s ease;
}
.p-sub {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
  /* use the panel's width; if it must wrap, never leave a single word on the last line */
  text-wrap: pretty;
}
.p-more {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s var(--ease);
}
.p-more > div {
  overflow: hidden;
}
.p-desc {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 44ch;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.panel.active .p-more {
  grid-template-rows: 1fr;
}
.panel.active .p-desc {
  opacity: 1;
  transition-delay: 0.18s;
}

.panels.has-active .panel:not(.active) .p-title,
.panels.has-active .panel:not(.active) .p-visual,
.panels.has-active .panel:not(.active) .p-text {
  opacity: 0.38;
}

/* ---- 01 Capture demo: browser + Fetch toolbar ---- */
.p-visual.cap-vis {
  position: relative;
  container-type: size;
  margin: 24px -12px;
}
.cap-demo {
  position: relative;
  flex: none;
  font-size: min(calc((100cqw - 24px) / 46), calc((100cqh - 6px) / 30.5));
  width: 46em;
  height: 30.5em;
}
/* Large layout fonts stay above common minimum-font settings; only the complete artboard scales. */
.cap-demo.art-fitted {
  --art-line: 4px;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1840px;
  height: 1220px;
  font-size: 40px;
  transform: translate(-50%, -50%) scale(var(--art-scale));
}
.cd-browser {
  position: absolute;
  left: 0;
  top: 0;
  width: 36em;
  height: 25em;
  background: #fff;
  border: var(--art-line, 1px) solid var(--line);
  border-radius: 1.4em;
  overflow: hidden;
  box-shadow: 0 0.8em 2.4em rgba(21, 19, 15, 0.07);
}
.cd-bar {
  display: flex;
  align-items: center;
  gap: 0.5em;
  height: 2.8em;
  padding: 0 1.2em;
  border-bottom: var(--art-line, 1px) solid var(--line);
  background: #faf9f5;
}
.cd-bar i {
  width: 0.75em;
  height: 0.75em;
  border-radius: 50%;
  background: #e4e0d3;
}
.cd-url {
  margin-left: 1em;
  flex: 1;
  height: 1.7em;
  border-radius: 0.85em;
  background: #f1eee6;
  color: var(--ink-faint);
  font-size: 1.05em;
  line-height: 1.62em;
  padding: 0 0.9em;
  white-space: nowrap;
  overflow: hidden;
}
.cd-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 9.8em;
  gap: 0.8em;
  padding: 1.1em;
}
.cd-t {
  position: relative;
  margin: 0;
  border-radius: 0.8em;
}
.cd-shot {
  z-index: 2;
}
.cd-t img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.8em;
  display: block;
}
.cd-wide {
  grid-column: span 2;
}
.cd-sel img {
  outline: 0.22em solid #e9fe8a;
  outline-offset: 0.18em;
}
.cd-check {
  position: absolute;
  top: -0.5em;
  right: -0.5em;
  width: 1.9em;
  height: 1.9em;
  border-radius: 50%;
  background: #e9fe8a;
  box-shadow: 0 0.15em 0.4em rgba(21, 19, 15, 0.18);
  transform: scale(0);
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
  transition-delay: var(--d, 0s);
}
.cd-check::after {
  content: "";
  position: absolute;
  left: 0.62em;
  top: 0.42em;
  width: 0.5em;
  height: 0.85em;
  border: solid #15130f;
  border-width: 0 0.2em 0.2em 0;
  transform: rotate(45deg);
}
.panel.active .cd-check {
  transform: scale(1);
  transition-delay: calc(var(--d, 0s) + 0.35s);
}
.cd-crop {
  position: absolute;
  inset: -0.55em;
  width: calc(100% + 1.1em);
  height: calc(100% + 1.1em);
  overflow: visible;
}
.cd-crop rect {
  fill: none;
  stroke: #a8a293;
  stroke-width: 1.5;
  stroke-dasharray: 5 4;
}
.cd-hd {
  position: absolute;
  width: 0.9em;
  height: 0.9em;
  border: solid var(--accent);
}
.cd-tl {
  left: -0.75em;
  top: -0.75em;
  border-width: 0.22em 0 0 0.22em;
}
.cd-tr {
  right: -0.75em;
  top: -0.75em;
  border-width: 0.22em 0.22em 0 0;
}
.cd-bl {
  left: -0.75em;
  bottom: -0.75em;
  border-width: 0 0 0.22em 0.22em;
}
.cd-br {
  right: -0.75em;
  bottom: -0.75em;
  border-width: 0 0.22em 0.22em 0;
}
.cd-size {
  position: absolute;
  left: 50%;
  bottom: -2.3em;
  transform: translateX(-50%);
  white-space: nowrap;
  font: 600 0.95em/1 var(--sans);
  color: #fff;
  background: var(--accent);
  padding: 0.35em 0.55em;
  border-radius: 0.45em;
}
.cd-fetch {
  position: absolute;
  right: 0;
  bottom: 0;
  width: max-content;
  padding: 1.4em 1.5em 1.2em;
  background: #fff;
  border: var(--art-line, 1px) solid var(--line);
  border-radius: 1.6em;
  box-shadow: 0 1.6em 3.6em rgba(21, 19, 15, 0.13);
  transform: translateY(0.6em);
  opacity: 0.92;
  transition:
    transform 0.6s cubic-bezier(0.22, 0.8, 0.24, 1),
    opacity 0.4s ease;
}
.panel.active .cd-fetch {
  transform: none;
  opacity: 1;
}
.cd-label {
  display: block;
  font-size: 1.3em;
  font-weight: 500;
  color: var(--ink-faint);
  margin-bottom: 0.75em;
}
.cd-btns {
  display: flex;
  gap: 0.8em;
}
.cd-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  height: 2.8em;
  padding: 0 1em;
  border-radius: 0.95em;
  font-size: 1.3em;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}
.cd-btn svg {
  width: 1.15em;
  height: 1.15em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.cd-btn-shot {
  background: #f5f5f3;
  border: var(--art-line, 1px) solid #e6e6e1;
}
.cd-btn-batch {
  background: #e9fe8a;
  border: var(--art-line, 1px) solid #e9fe8a;
}
.cd-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.2em;
  padding-top: 1em;
  border-top: var(--art-line, 1px) solid var(--line);
  font-size: 1.1em;
  color: var(--ink-soft);
}
.cd-count b {
  color: var(--ink);
}
.cd-dest {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  font-weight: 700;
  color: var(--ink);
}
.cd-dest .logo-mark {
  width: 1.6em;
  height: 1em;
}
@media (max-width: 860px) {
  .p-visual.cap-vis {
    container-type: inline-size;
    aspect-ratio: 46 / 30.5;
    flex: none;
    margin: 20px 0;
  }
  .cap-demo {
    font-size: calc(100cqw / 46);
  }
  .cd-check {
    transform: scale(1);
  }
  .cd-fetch {
    transform: none;
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cd-check,
  .cd-fetch {
    transition: none !important;
  }
  .cd-crop rect {
    animation: none !important;
  }
}
/* ---- 02 Capsule demo: unsorted files -> AI sorting -> organized Capsule ---- */
.cs-inbox {
  position: absolute;
  left: 0;
  top: 3.2em;
  width: 15.2em;
  padding: 1.1em 1em 0.6em;
  background: #fff;
  border: var(--art-line, 1px) solid var(--line);
  border-radius: 1.4em;
  box-shadow: 0 0.8em 2.4em rgba(21, 19, 15, 0.07);
}
.cs-ihead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.1em;
  color: var(--ink-faint);
  font-weight: 600;
  margin-bottom: 0.5em;
}
.cs-ihead b {
  font-weight: 700;
  color: var(--ink-soft);
  background: #f1eee6;
  border-radius: 0.6em;
  padding: 0.1em 0.55em;
}
.cs-row {
  display: flex;
  align-items: center;
  gap: 0.7em;
  padding: 0.5em 0;
  border-top: var(--art-line, 1px) dashed var(--line);
  transition:
    opacity 0.5s ease,
    transform 0.6s cubic-bezier(0.22, 0.8, 0.24, 1);
  transition-delay: calc(var(--i) * 0.08s);
}
.cs-row img,
.cs-txt {
  width: 2.6em;
  height: 2.6em;
  border-radius: 0.55em;
  object-fit: cover;
  flex: none;
}
.cs-txt {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1eee6;
  color: var(--ink-soft);
  font-style: normal;
  font-weight: 700;
  font-size: 1em;
}
.cs-row span {
  font-size: 1.05em;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.panel.active .cs-row {
  opacity: 0.45;
  transform: translateX(0.6em);
  transition-delay: calc(0.2s + var(--i) * 0.08s);
}
.cs-flow {
  position: absolute;
  left: 15.2em;
  top: 14.2em;
  width: 6.4em;
  height: 2em;
  overflow: visible;
}
.cs-flow path {
  fill: none;
  stroke: #a8a293;
  stroke-width: 1.5;
  stroke-dasharray: 4 4;
  opacity: 0.8;
}
.cs-ai {
  position: absolute;
  left: 14.6em;
  top: 11.3em;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.45em 0.8em;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 1.05em;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 0.5em 1.4em color-mix(in srgb, var(--accent) 35%, transparent);
}
.cs-ai svg {
  width: 1.2em;
  height: 1.2em;
  fill: currentColor;
}
.panel.active .cs-ai svg {
  animation: csTw 1.6s ease-in-out infinite;
}
@keyframes csTw {
  50% {
    transform: scale(0.8) rotate(15deg);
    opacity: 0.75;
  }
}
.cs-cap {
  position: absolute;
  right: 0;
  top: 0;
  width: 23.6em;
  height: 30.5em;
  padding: 1.4em;
  box-sizing: border-box;
  background: #fff;
  border: var(--art-line, 1px) solid var(--line);
  border-radius: 1.8em;
  box-shadow: 0 1.6em 3.6em rgba(21, 19, 15, 0.11);
}
.cs-chead {
  padding-bottom: 0.75em;
  border-bottom: var(--art-line, 1px) solid var(--line);
}
.cs-chip {
  display: inline-block;
  background: #15130f;
  color: #fff;
  font-size: 1em;
  font-weight: 600;
  padding: 0.25em 0.65em;
  border-radius: 0.6em;
}
.cs-title {
  white-space: nowrap;
  margin: 0.4em 0 0;
  font-size: 1.5em;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
}
.cs-meta {
  margin: 0.15em 0 0;
  font-size: 1.1em;
  color: var(--ink-soft);
}
.cs-group {
  margin-top: 0.6em;
  opacity: 0.35;
  transform: translateY(0.8em);
  transition:
    opacity 0.5s ease,
    transform 0.6s cubic-bezier(0.22, 0.8, 0.24, 1);
}
.panel.active .cs-group {
  opacity: 1;
  transform: none;
  transition-delay: calc(0.55s + var(--g) * 0.18s);
}
.cs-glabel {
  display: flex;
  align-items: center;
  gap: 0.45em;
  margin-bottom: 0.45em;
  font-size: 1em;
  font-weight: 700;
  color: var(--ink);
}
.cs-glabel b {
  font-weight: 600;
  color: var(--ink-faint);
}
.cs-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6em;
}
.cs-thumbs img {
  width: 100%;
  height: 4.3em;
  object-fit: cover;
  border-radius: 0.7em;
  display: block;
}
.cs-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8em;
}
.cs-wide {
  width: 100%;
  height: 3em;
  object-fit: cover;
  border-radius: 0.7em;
  display: block;
}
.cs-prompt {
  font-size: 1.02em;
  color: var(--ink-soft);
  background: #faf9f5;
  border: var(--art-line, 1px) solid var(--line);
  border-radius: 0.7em;
  padding: 0.5em 0.7em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cs-tags {
  display: flex;
  gap: 0.4em;
  margin-top: 0.55em;
}
.cs-tags span {
  font-size: 0.95em;
  font-weight: 600;
  color: #3e5a00;
  background: #e9fe8a;
  border-radius: 999px;
  padding: 0.25em 0.6em;
  white-space: nowrap;
}
@media (max-width: 860px) {
  .cs-row {
    opacity: 0.45;
    transform: translateX(0.6em);
  }
  .cs-group {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cs-row,
  .cs-group {
    transition: none !important;
  }
  .cs-flow path,
  .cs-ai svg {
    animation: none !important;
  }
}
