/* Edit videos with Claude guide. Uses the Sift tokens, type, and controls from styles.css. */

.vg-hero {
  padding: 72px 0 40px;
}

.vg-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 56px;
  align-items: center;
}

.vg-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.4rem);
}

.vg-hero h1 em {
  color: var(--accent-ink);
  font-style: normal;
}

.vg-hero .hero-actions {
  margin-top: 30px;
}

/* Video slot */
.vg-video {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-card);
  background:
    radial-gradient(60% 80% at 30% 20%, rgba(255, 107, 53, 0.22), transparent 70%),
    radial-gradient(50% 70% at 80% 80%, rgba(255, 170, 120, 0.28), transparent 70%),
    var(--surface-soft);
  box-shadow: var(--shadow-deep);
}

.vg-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Capability chips */
.vg-can {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.vg-can div {
  display: grid;
  gap: 6px;
  border-radius: 18px;
  background: var(--surface-soft);
  padding: 20px;
  transition: transform 400ms var(--ease-out), background 300ms ease, box-shadow 400ms var(--ease-out);
}

.vg-can div:hover {
  transform: translateY(-3px);
  background: #FFFFFF;
  box-shadow: var(--shadow-deep);
}

.vg-can b {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.vg-can span {
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.5;
}

.vg-can i {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  margin-bottom: 6px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-style: normal;
}

.vg-can i svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Setup steps */
.vg-steps {
  display: grid;
  gap: 28px;
}

.vg-step {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  border-radius: 28px;
  background: var(--surface-soft);
  padding: 40px;
}

.vg-step:nth-child(even) .vg-step-copy {
  order: 2;
}

.vg-step-num {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: #0A0A0A;
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.vg-step h3 {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 400;
}

.vg-step p {
  margin: 14px 0 0;
  color: var(--text-dim);
}

.vg-tip {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  border-radius: 14px;
  background: #FFFFFF;
  padding: 12px 14px;
  color: var(--text-dim);
  font-size: 0.9rem;
}

.vg-tip::before {
  content: "Tip";
  flex: none;
  height: max-content;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  padding: 1px 8px;
  font-size: 0.75rem;
  font-weight: 600;
}

.vg-step code,
.vg-faq code {
  border-radius: 6px;
  background: #FFFFFF;
  padding: 1px 6px;
  font-family: var(--font-mono);
  font-size: 0.86em;
}

/* App mockups */
.mock {
  overflow: hidden;
  border: 1px solid var(--border-hairline);
  border-radius: 18px;
  background: #FFFFFF;
  box-shadow: var(--shadow-deep);
  font-size: 0.86rem;
}

.mock-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid var(--border-hairline);
  padding: 12px 14px;
}

.mock-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #E7E5E4;
}

.mock-bar span {
  margin-left: 10px;
  color: var(--text-muted);
  font-size: 0.78rem;
}

.mock-body {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.mock-split {
  display: grid;
  grid-template-columns: 120px 1fr;
  min-height: 250px;
}

.mock-side {
  display: grid;
  align-content: start;
  gap: 4px;
  border-right: 1px solid var(--border-hairline);
  background: var(--surface-soft);
  padding: 14px 10px;
  color: var(--text-dim);
  font-size: 0.8rem;
}

.mock-side b {
  border-radius: 8px;
  padding: 6px 8px;
  font-weight: 500;
}

.mock-side b.on {
  background: #FFFFFF;
  color: var(--text-primary);
  box-shadow: var(--shadow-card);
}

.mock-download {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 34px 18px;
  text-align: center;
}

.mock-logo {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
}

.mock-download strong {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
}

.mock-btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
}

.mock-btn {
  border-radius: 999px;
  background: #0A0A0A;
  color: #FFFFFF;
  padding: 8px 14px;
  font-size: 0.8rem;
  font-weight: 500;
}

.mock-btn.alt {
  border: 1px solid var(--border-hairline);
  background: #FFFFFF;
  color: var(--text-primary);
}

.mock-folder {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px dashed rgba(255, 107, 53, 0.55);
  border-radius: 12px;
  background: var(--accent-soft);
  padding: 10px 12px;
  color: var(--accent-ink);
  font-weight: 600;
}

.mock-files {
  display: grid;
  gap: 6px;
}

.mock-files div {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 10px;
  padding: 7px 8px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
}

.mock-files div:nth-child(odd) {
  background: var(--surface-soft);
}

.mock-files em {
  margin-left: auto;
  color: var(--text-muted);
  font-style: normal;
}

.mock-files .new {
  color: var(--accent-success);
}

.mock-thumb {
  width: 26px;
  height: 18px;
  flex: none;
  border-radius: 4px;
  background: linear-gradient(135deg, #FFB08F, #FF6B35);
}

.mock-msg {
  max-width: 88%;
  border-radius: 16px;
  padding: 10px 13px;
  line-height: 1.5;
}

.mock-msg.you {
  justify-self: end;
  border-bottom-right-radius: 4px;
  background: #0A0A0A;
  color: #FFFFFF;
}

.mock-msg.ai {
  border-bottom-left-radius: 4px;
  background: var(--surface-soft);
}

.mock-check {
  display: grid;
  gap: 4px;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
}

.mock-check span::before {
  content: "✓ ";
  color: var(--accent-success);
  font-weight: 700;
}

.mock-wave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 54px;
  border-radius: 12px;
  background: var(--surface-soft);
  padding: 0 14px;
}

.mock-wave i {
  flex: 1;
  border-radius: 2px;
  background: var(--accent-signal);
  animation: vg-wave 1.4s ease-in-out infinite;
}

@keyframes vg-wave {
  0%, 100% { transform: scaleY(0.45); }
  50% { transform: scaleY(1); }
}

/* Prompt packs */
.vg-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

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

.vg-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-radius: 20px;
  background: var(--surface-soft);
  padding: 22px;
  transition: transform 400ms var(--ease-out), background 300ms ease, box-shadow 400ms var(--ease-out);
}

.vg-card:hover {
  transform: translateY(-3px);
  background: #FFFFFF;
  box-shadow: var(--shadow-deep);
}

.vg-card[hidden] {
  display: none;
}

.vg-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.vg-card h3 {
  font-size: 1.2rem;
}

.vg-card > p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.92rem;
}

.vg-card pre {
  flex: 1;
  margin: 0;
  border: 1px solid var(--border-hairline);
  border-radius: 14px;
  background: #FFFFFF;
  color: var(--text-dim);
  padding: 14px 16px;
  font: 400 0.8rem/1.65 var(--font-mono);
  white-space: pre-wrap;
  word-break: break-word;
}

.vg-card pre b {
  color: var(--accent-ink);
  font-weight: 500;
}

.vg-copy {
  min-height: 34px;
  flex: none;
  padding: 0 14px;
  font-size: 0.8rem;
}

.vg-copy.is-copied {
  border-color: var(--accent-signal);
  background: var(--accent-signal);
  color: #0A0A0A;
}

/* Voice */
.vg-honest {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  max-width: 760px;
  margin-bottom: 28px;
  border: 1px solid rgba(255, 107, 53, 0.35);
  border-radius: 18px;
  background: var(--accent-soft);
  padding: 16px 18px;
  color: var(--text-primary);
}

.vg-honest b {
  flex: none;
  color: var(--accent-ink);
}

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

.vg-voice article {
  border-radius: 20px;
  background: var(--surface-soft);
  padding: 24px;
}

.vg-voice h3 {
  margin-top: 14px;
  font-size: 1.2rem;
}

.vg-voice p {
  margin: 10px 0 0;
  color: var(--text-dim);
  font-size: 0.92rem;
}

.vg-voice .vg-step-num {
  margin: 0;
}

.vg-more {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.vg-more span {
  border: 1px solid var(--border-hairline);
  border-radius: 999px;
  background: #FFFFFF;
  padding: 6px 12px;
  color: var(--text-dim);
  font-size: 0.84rem;
}

/* FAQ */
.vg-faq {
  display: grid;
  gap: 10px;
  max-width: 820px;
}

.vg-faq details {
  border-radius: 18px;
  background: var(--surface-soft);
  padding: 4px 20px;
}

.vg-faq summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 500;
}

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

.vg-faq summary::after {
  content: "+";
  color: var(--accent-ink);
  font-size: 1.3rem;
  line-height: 1;
  transition: transform 300ms var(--ease-out);
}

.vg-faq details[open] summary::after {
  transform: rotate(45deg);
}

.vg-faq details p {
  margin: 0 0 18px;
  color: var(--text-dim);
}

.vg-section-head {
  max-width: 720px;
  margin-bottom: 36px;
}

.vg-section-head h2 {
  margin-top: 4px;
}

@media (max-width: 900px) {
  .vg-hero-grid,
  .vg-step {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .vg-step:nth-child(even) .vg-step-copy {
    order: 0;
  }

  .vg-can {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vg-grid,
  .vg-voice {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .vg-hero {
    padding-top: 48px;
  }

  .vg-step {
    padding: 22px;
    border-radius: 22px;
  }

  .vg-can {
    grid-template-columns: 1fr;
  }

  .mock-split {
    grid-template-columns: 1fr;
  }

  .mock-side {
    display: none;
  }

  .vg-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .vg-tabs .tab-button {
    flex: none;
  }

  .vg-copy {
    width: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mock-wave i {
    animation: none;
  }
}

.vg-video-caption {
  margin: 14px 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
}

/* Plan and usage notes */
.vg-notes {
  display: grid;
  gap: 8px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.vg-notes li {
  position: relative;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--border-hairline);
  padding: 10px 14px 10px 34px;
  color: var(--text-dim);
  font-size: 0.9rem;
}

.vg-notes li::before {
  content: "!";
  position: absolute;
  left: 12px;
  top: 11px;
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-signal);
  color: #0A0A0A;
  font-size: 0.7rem;
  font-weight: 700;
}

.vg-notes b {
  color: var(--text-primary);
  font-weight: 600;
}

.vg-notes a {
  color: var(--accent-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.vg-card-flag {
  border: 1px solid rgba(255, 107, 53, 0.3);
}

.vg-flag {
  width: max-content;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  padding: 3px 10px;
  font-size: 0.78rem;
  font-weight: 600;
}

/* Grok Bot alternative */
.vg-alt {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 48px;
  align-items: center;
  border-radius: 28px;
  background:
    radial-gradient(60% 80% at 100% 0%, rgba(255, 107, 53, 0.14), transparent 70%),
    var(--surface-soft);
  padding: 48px;
}

.vg-alt > *,
.vg-hero-grid > *,
.vg-step > * {
  min-width: 0;
}

.vg-alt h2 {
  font-size: clamp(1.9rem, 3.4vw, 3rem);
}

@media (max-width: 900px) {
  .vg-alt {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 24px;
  }
}

/* Typewriter request bar */
.vg-typer {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 640px;
  min-height: 60px;
  margin: -12px 0 28px;
  border: 1px solid var(--border-hairline);
  border-radius: 999px;
  background: #FFFFFF;
  box-shadow: var(--shadow-deep);
  padding: 8px 8px 8px 22px;
  font-size: 1.05rem;
}

.vg-typer-dot {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--accent-signal);
  animation: live-pulse 2s ease-in-out infinite;
}

.vg-typer-text {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.vg-typer-caret {
  width: 2px;
  height: 1.3em;
  flex: none;
  margin-left: -10px;
  background: var(--text-primary);
  animation: vg-blink 1s steps(1) infinite;
}

.vg-typer-send {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: none;
  margin-left: auto;
  border-radius: 50%;
  background: #0A0A0A;
  color: #FFFFFF;
  font-weight: 700;
}

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

/* Capability cards pop in one by one */
.js-enabled .vg-can.reveal > div {
  opacity: 0;
  transform: translateY(16px) scale(0.97);
}

.js-enabled .vg-can.reveal.is-visible > div {
  animation: vg-pop 700ms var(--ease-out) forwards;
  animation-delay: calc(var(--i, 0) * 70ms);
}

@keyframes vg-pop {
  to { opacity: 1; transform: none; }
}

.vg-can div:hover i {
  animation: vg-wiggle 500ms var(--ease-out);
}

@keyframes vg-wiggle {
  30% { transform: rotate(-8deg) scale(1.08); }
  60% { transform: rotate(6deg) scale(1.04); }
}

/* Mockups play out step by step when they scroll in */
.js-enabled .vg-step .mock-msg,
.js-enabled .vg-step .mock-check span,
.js-enabled .vg-step .mock-files > div,
.js-enabled .vg-step .mock-folder,
.js-enabled .vg-step .mock-btns {
  opacity: 0;
  transform: translateY(8px);
}

.js-enabled .vg-step.is-visible .mock-msg,
.js-enabled .vg-step.is-visible .mock-check span,
.js-enabled .vg-step.is-visible .mock-files > div,
.js-enabled .vg-step.is-visible .mock-folder,
.js-enabled .vg-step.is-visible .mock-btns {
  animation: vg-pop 500ms var(--ease-out) forwards;
}

.vg-step.is-visible .mock-folder { animation-delay: 300ms !important; }
.vg-step.is-visible .mock-btns { animation-delay: 400ms !important; }
.vg-step.is-visible .mock-msg.you { animation-delay: 300ms !important; }
.vg-step.is-visible .mock-msg.ai { animation-delay: 1000ms !important; }
.vg-step.is-visible .mock-check span:nth-child(1) { animation-delay: 1400ms !important; }
.vg-step.is-visible .mock-check span:nth-child(2) { animation-delay: 1700ms !important; }
.vg-step.is-visible .mock-check span:nth-child(3) { animation-delay: 2000ms !important; }
.vg-step.is-visible .mock-files > div:nth-child(1) { animation-delay: 550ms; }
.vg-step.is-visible .mock-files > div:nth-child(2) { animation-delay: 700ms; }
.vg-step.is-visible .mock-files > div:nth-child(3) { animation-delay: 850ms; }
.vg-step.is-visible .mock-files > div:nth-child(4) { animation-delay: 1000ms; }
.vg-step.is-visible .mock-body > .mock-files > div.new { animation-delay: 2400ms; }

.mock-files .new {
  box-shadow: inset 0 0 0 1px rgba(22, 163, 74, 0.35);
}

/* Floating step numbers */
.vg-step-num {
  transition: transform 400ms var(--ease-out), background 300ms ease;
}

.vg-step:hover .vg-step-num {
  transform: scale(1.12) rotate(-6deg);
  background: var(--accent-signal);
  color: #0A0A0A;
}

@media (max-width: 560px) {
  .vg-typer {
    font-size: 0.9rem;
    padding-left: 16px;
  }

  .vg-typer-send {
    width: 38px;
    height: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .js-enabled .vg-can.reveal > div,
  .js-enabled .vg-step .mock-msg,
  .js-enabled .vg-step .mock-check span,
  .js-enabled .vg-step .mock-files > div,
  .js-enabled .vg-step .mock-folder,
  .js-enabled .vg-step .mock-btns {
    opacity: 1;
    transform: none;
    animation: none !important;
  }

  .vg-typer-caret,
  .vg-typer-dot {
    animation: none;
  }
}
