/* Awesome Lottie marketing site — shared styles */

:root {
  --bg: #faf9f6;
  --bg-alt: #f1efe9;
  --ink: #17181c;
  --ink-soft: #52565f;
  --line: #e4e1d8;
  --card: #ffffff;
  --accent: #caa000;
  --accent-ink: #171200;
  --accent-bg: #f6d84c;
  --hero-bg: #14151a;
  --hero-ink: #f4f2ea;
  --hero-ink-soft: #b7b6ad;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(20, 20, 15, 0.06), 0 8px 24px rgba(20, 20, 15, 0.06);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121317;
    --bg-alt: #191a1f;
    --ink: #f2f1ec;
    --ink-soft: #a6a6a1;
    --line: #2a2b31;
    --card: #191a1f;
    --accent: #f6d84c;
    --accent-ink: #171200;
    --accent-bg: #f6d84c;
    --hero-bg: #0b0c0f;
    --hero-ink: #f4f2ea;
    --hero-ink-soft: #9b9a93;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  color: var(--ink);
}

/* The mark is an <img> pointing at assets/icon.svg, not inline SVG. It used to
   be inlined into all seven pages; the current artwork is ~27 KB, so seven
   copies would be ~190 KB of duplicated markup for a 26px image that the
   browser will cache once. `flex: none` on both selectors so the nav is
   unaffected either way. */
.brand svg,
.brand-mark {
  flex: none;
}
.brand-mark {
  display: block;
  width: 26px;
  height: 26px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-back {
  padding-right: 20px;
  margin-right: 4px;
  border-right: 1px solid var(--line);
  font-weight: 600;
}

.nav-cta {
  padding: 8px 16px !important;
  border-radius: 8px;
  background: var(--accent-bg);
  color: var(--accent-ink) !important;
  font-weight: 600;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 9px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.1s ease, opacity 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--accent-bg);
  color: var(--accent-ink);
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-ghost {
  background: transparent;
  color: var(--hero-ink);
  border-color: rgba(244, 242, 234, 0.28);
}

/* Like .btn-ghost, but for use on a light page background rather than the
   dark hero/CTA bands. */
.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-outline:hover {
  background: var(--bg-alt);
}

.btn-ghost:hover {
  background: rgba(244, 242, 234, 0.08);
}

.btn[disabled],
.btn.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

/* Hero */
.hero {
  background: var(--hero-bg);
  color: var(--hero-ink);
  padding: 96px 0;
}

/* Copy on the left, the AI ad playing on the right; stacked on a phone. */
.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
  gap: 56px;
  align-items: center;
}

.hero-note {
  margin: 20px 0 0;
  font-size: 13.5px;
  color: var(--hero-ink-soft);
  max-width: 46ch;
}

.hero code {
  font-size: 0.92em;
  color: var(--hero-ink);
}

.hero-video {
  position: relative;
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  background: #0f1014;
  aspect-ratio: 1 / 1;
}

.hero-video video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-sound {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(8, 8, 12, 0.72);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.video-sound:hover {
  background: rgba(8, 8, 12, 0.9);
}

.hero .kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--accent-bg);
  margin-bottom: 10px;
}

.hero h1 {
  font-size: clamp(32px, 4.6vw, 52px);
  line-height: 1.08;
  margin: 0 0 18px;
  max-width: 14ch;
  letter-spacing: -0.01em;
}

.hero p.lede {
  font-size: 17px;
  line-height: 1.5;
  color: var(--hero-ink-soft);
  max-width: 48ch;
  margin: 0 0 26px;
}

.hero .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Sections */
section {
  padding: 80px 0;
}

section.alt {
  background: var(--bg-alt);
}

.section-head {
  max-width: 60ch;
  margin: 0 0 48px;
}

.section-head .kicker {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.section-head h2 {
  font-size: clamp(26px, 3.4vw, 34px);
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}

.section-head p {
  color: var(--ink-soft);
  font-size: 16px;
  margin: 0;
}

/* Live Lottie example */
.example-row {
  display: flex;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}

.example-player {
  flex: none;
  width: 200px;
  height: 160px;
}

.example-player svg {
  display: block;
  width: 100%;
  height: 100%;
}

.example-copy {
  flex: 1;
  min-width: 240px;
}

.example-copy .kicker {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.example-copy h2 {
  font-size: clamp(24px, 3vw, 30px);
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

.example-copy p {
  color: var(--ink-soft);
  font-size: 16px;
  margin: 0;
  max-width: 52ch;
}

/* Feature grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.card .icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--accent-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--accent-ink);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14.5px;
}

/* What you can make: live Lottie examples */
/* The padding keeps the cards' shadows from being clipped by the scroll box;
   the negative margin puts the cards back on the page's edge. */
.make-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  padding: 6px 6px 18px;
  margin: -6px -6px 0;
  scroll-padding: 0 6px;
  scrollbar-width: none;
}

.make-track::-webkit-scrollbar {
  display: none;
}

.make-track:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius);
}

@media (prefers-reduced-motion: reduce) {
  .make-track {
    scroll-behavior: auto;
  }
}

/* Three cards and a peek of the fourth; two and a peek on a tablet; one and
   a peek on a phone. */
.make-track > .make-card {
  flex: 0 0 29%;
  scroll-snap-align: start;
}

@media (max-width: 900px) {
  .make-track > .make-card {
    flex-basis: 44%;
  }
}

@media (max-width: 600px) {
  .make-track > .make-card {
    flex-basis: 82%;
  }
}

.make-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 10px;
}

.make-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.make-arrow:hover:not(:disabled) {
  border-color: var(--accent);
}

.make-arrow:disabled {
  opacity: 0.35;
  cursor: default;
  box-shadow: none;
}

.make-dots {
  display: flex;
  gap: 8px;
}

.make-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--line);
  cursor: pointer;
}

.make-dots button.is-active {
  background: var(--accent);
  width: 22px;
  border-radius: 4px;
}

.make-card {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* A light stage in both themes: the artwork brings its own colours, and
   dark lettering on a dark card would disappear. */
.make-stage {
  aspect-ratio: 1 / 1;
  background: #f6f5f1;
  border-bottom: 1px solid var(--line);
}

.make-stage svg {
  display: block;
}

.make-card figcaption {
  padding: 20px 22px 22px;
}

.make-card h3 {
  margin: 0 0 6px;
  font-size: 17px;
}

.make-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14.5px;
}

.make-card p.make-prompt {
  margin-top: 12px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 14px;
  color: var(--ink);
}

.make-card--yours {
  padding: 28px 24px;
  justify-content: center;
  align-items: flex-start;
  gap: 10px;
  background: var(--bg-alt);
  border-style: dashed;
  box-shadow: none;
}

.make-card--yours h3 {
  font-size: 22px;
}

.make-card--yours .btn {
  margin-top: 8px;
}

.make-note {
  margin: 28px 0 0;
  color: var(--ink-soft);
  font-size: 15px;
  max-width: 70ch;
}

/* The editor: a dark band like the hero, copy beside a storyboard
   illustration. Colours are the hero's, so it reads the same in both
   themes. */
.editor-band {
  background: var(--hero-bg);
  color: var(--hero-ink);
}

.editor-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 480px);
  gap: 56px;
  align-items: center;
}

@media (max-width: 900px) {
  .editor-split {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
}

.editor-copy .kicker {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--accent-bg);
  margin-bottom: 10px;
}

.editor-copy h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  line-height: 1.15;
  margin: 0 0 14px;
  letter-spacing: -0.01em;
  max-width: 18ch;
}

.editor-lede {
  color: var(--hero-ink-soft);
  font-size: 16px;
  margin: 0 0 28px;
  max-width: 52ch;
}

.editor-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px 28px;
}

.editor-features li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.editor-icon {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--accent-bg);
  color: var(--accent-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.editor-features h3 {
  margin: 4px 0 4px;
  font-size: 15.5px;
}

.editor-features p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--hero-ink-soft);
}

.editor-features code {
  color: var(--hero-ink);
  font-size: 0.92em;
}

/* The storyboard illustration, styled after the editor's own dark UI. */
.studio {
  margin: 0;
  background: #1c1d23;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.studio-canvas {
  border-radius: 12px;
  padding: 18px;
  display: flex;
  justify-content: center;
  background-color: #24252c;
  background-image:
    linear-gradient(45deg, #2a2b33 25%, transparent 25%, transparent 75%, #2a2b33 75%),
    linear-gradient(45deg, #2a2b33 25%, transparent 25%, transparent 75%, #2a2b33 75%);
  background-size: 16px 16px;
  background-position: 0 0, 8px 8px;
}

.studio-art.make-stage {
  width: 64%;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.studio-timeline {
  position: relative;
  height: 18px;
  margin: 16px 6px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.14) 0 1px, transparent 1px 10%);
  background-size: 100% 6px;
  background-repeat: no-repeat;
}

.studio-key {
  position: absolute;
  top: 3px;
  width: 9px;
  height: 9px;
  margin-left: -4.5px;
  background: #8b8cf6;
  transform: rotate(45deg);
  border-radius: 1px;
}

.studio-playhead {
  position: absolute;
  top: -6px;
  bottom: -4px;
  left: 0;
  width: 2px;
  margin-left: -1px;
  background: var(--accent-bg);
  border-radius: 1px;
}

.studio-playhead::before {
  content: "";
  position: absolute;
  top: -3px;
  left: -4px;
  width: 10px;
  height: 6px;
  border-radius: 2px;
  background: var(--accent-bg);
}

.studio-poses {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.studio-pose {
  background: #24252c;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 8px 8px 10px;
  font-size: 12.5px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.studio-pose.is-active {
  border-color: var(--accent-bg);
  box-shadow: 0 0 0 1px var(--accent-bg);
}

.studio-thumb {
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  background: #f6f5f1;
  margin-bottom: 8px;
}

.studio-thumb svg {
  display: block;
}

.studio-pose b {
  display: block;
  color: var(--hero-ink);
  font-weight: 600;
}

.studio-pose span {
  color: var(--hero-ink-soft);
  font-variant-numeric: tabular-nums;
}

.studio figcaption {
  margin-top: 14px;
  text-align: center;
  font-size: 13.5px;
  color: var(--hero-ink-soft);
}

@media (prefers-reduced-motion: reduce) {
  .studio-pose {
    transition: none;
  }
}

/* Animate with AI */
.ai-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.ai-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent-bg);
  color: var(--accent-ink);
  font-weight: 800;
  margin-bottom: 14px;
}

.ai-prompts {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.ai-prompts li {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 14px;
  color: var(--ink);
}

.ai-walkthrough {
  margin: 40px 0 0;
}

.ai-walkthrough video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #0f1014;
}

.ai-walkthrough figcaption {
  margin-top: 12px;
  font-size: 14px;
  color: var(--ink-soft);
  text-align: center;
}

.ai-facts {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.ai-facts li {
  font-size: 14.5px;
  color: var(--ink-soft);
  border-top: 2px solid var(--accent);
  padding-top: 14px;
}

.ai-facts strong {
  display: block;
  color: var(--ink);
  margin-bottom: 4px;
}

/* Pricing */
.pricing-card {
  max-width: 420px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
  text-align: center;
}

.pricing-card .plan-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.pricing-card .price {
  font-size: 40px;
  font-weight: 700;
  margin: 12px 0 4px;
}

.pricing-card .price small {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
}

/* Secondary annual price under the headline monthly one. Spells out the
   annualized monthly cost rather than leaning on the percentage — the
   side-by-side comparison is what does the selling. */
.pricing-card .price-yearly {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.pricing-card .price-yearly strong {
  color: var(--ink);
  font-weight: 600;
}

.pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 28px 0;
  text-align: left;
  display: grid;
  gap: 12px;
  font-size: 14.5px;
  color: var(--ink-soft);
}

.pricing-card li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.pricing-card li svg {
  flex: none;
  margin-top: 3px;
  color: var(--accent);
}

/* Three plans side by side. .pricing-card on its own is still the centred
   single-card layout above; this only overrides what stops it sitting in a
   row, so either arrangement keeps working. */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  align-items: start;
}

.pricing-grid .pricing-card {
  max-width: none;
  margin: 0;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
}

/* Pushes the button to the bottom so cards with different numbers of bullets
   still line their calls-to-action up. Card count is deliberately not baked in
   anywhere — the grid is auto-fit, so dropping the Team card on 2026-08-28
   needed no CSS change and restoring it will need none either. */
.pricing-grid .pricing-card ul {
  flex: 1;
}

.pricing-card--featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow);
}

.pricing-note {
  margin-top: 18px;
  font-size: 13px;
  color: var(--ink-soft);
  text-align: center;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* CTA band */
.cta-band {
  background: var(--hero-bg);
  color: var(--hero-ink);
  text-align: center;
}

.cta-band h2 {
  font-size: clamp(24px, 3.4vw, 32px);
  margin: 0 0 14px;
}

.cta-band p {
  color: var(--hero-ink-soft);
  margin: 0 0 30px;
}

.cta-band .actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Footer */
footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
  color: var(--ink-soft);
}

footer .links {
  display: flex;
  gap: 20px;
}

footer a {
  text-decoration: none;
  color: var(--ink-soft);
}

footer a:hover {
  color: var(--ink);
}

/* Legal / simple content pages */
.legal {
  padding: 72px 0 96px;
  max-width: 760px;
}

.legal h1 {
  font-size: 34px;
  margin: 0 0 6px;
}

.legal .updated {
  color: var(--ink-soft);
  font-size: 14px;
  margin: 0 0 40px;
}

.legal h2 {
  font-size: 20px;
  margin: 40px 0 12px;
}

.legal p,
.legal li {
  color: var(--ink-soft);
  font-size: 15.5px;
}

.legal .placeholder {
  background: var(--bg-alt);
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 2px 8px;
  color: var(--ink);
  font-weight: 600;
}

.legal .draft-notice {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 36px;
}

/* Contact page */
.contact-card {
  max-width: 560px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.contact-card h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.contact-card p {
  margin: 0 0 20px;
  color: var(--ink-soft);
  font-size: 14.5px;
}

.contact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.contact-row:first-of-type {
  border-top: none;
}

.contact-row .label {
  font-size: 13px;
  color: var(--ink-soft);
}

.contact-row .value {
  font-weight: 600;
  font-size: 14.5px;
}

/* Docs pages */
.doc {
  padding: 64px 0 96px;
  max-width: 800px;
}

.doc h1 {
  font-size: 34px;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

.doc .lede {
  color: var(--ink-soft);
  font-size: 17px;
  margin: 0 0 40px;
}

.doc h2 {
  font-size: 21px;
  margin: 48px 0 12px;
  scroll-margin-top: 80px;
}

.doc h3 {
  font-size: 16.5px;
  margin: 28px 0 8px;
}

.doc p,
.doc li {
  color: var(--ink-soft);
  font-size: 15.5px;
}

.doc code {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 6px;
  font-size: 13.5px;
  color: var(--ink);
}

/* Code blocks (the embed guide) */
.doc pre {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  margin: 16px 0;
  overflow-x: auto;
}

.doc pre code {
  background: none;
  border: 0;
  padding: 0;
  font-size: 13px;
  line-height: 1.6;
  white-space: pre;
}

/* Player support table (docs-compat.html; the rows are generated by
   scripts/embed-check/compat.mjs) */
.compat-wrap {
  overflow-x: auto;
  margin: 22px 0 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

.compat {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14.5px;
  min-width: 720px;
  table-layout: auto;
}

.compat th,
.compat td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  text-align: center;
  vertical-align: middle;
}

.compat thead th {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--bg-alt);
  padding: 9px 8px;
  line-height: 1.3;
}

/* The player table has eight columns; give it the full page width and let
   the prose stay at reading width. */
.doc-wide {
  max-width: none;
}

.doc-wide > :not(.compat-wrap):not(h1) {
  max-width: 800px;
}

.compat thead tr:first-child th {
  border-bottom-color: transparent;
  color: var(--ink);
}

.compat tbody th[scope="row"] {
  text-align: left;
  font-weight: 500;
  color: var(--ink);
  min-width: 15rem;
  position: sticky;
  left: 0;
  background: var(--card);
}

.compat tbody th small {
  display: block;
  font-weight: 400;
  font-size: 12.5px;
  color: var(--ink-soft);
  margin-top: 2px;
}

.compat tr.group th {
  text-align: left;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: var(--bg-alt);
  position: static;
}

.compat tbody tr:last-child th,
.compat tbody tr:last-child td {
  border-bottom: 0;
}

.compat .ok span,
.compat .bad span {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-weight: 700;
}

.compat .ok span {
  background: rgba(21, 128, 61, 0.14);
  color: #15803d;
}

.compat .bad span {
  background: rgba(185, 28, 28, 0.14);
  color: #b91c1c;
}

.compat .na {
  color: var(--ink-soft);
  opacity: 0.55;
}

@media (prefers-color-scheme: dark) {
  .compat .ok span { background: rgba(74, 222, 128, 0.16); color: #4ade80; }
  .compat .bad span { background: rgba(248, 113, 113, 0.16); color: #f87171; }
}

.compat-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
}

.compat-filter a {
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  background: var(--card);
}

.compat-filter a:hover {
  color: var(--ink);
}

.compat-filter a[aria-current] {
  color: var(--ink);
  border-color: var(--ink);
  font-weight: 600;
}

.compat-empty {
  color: var(--ink-soft);
  margin: 10px 2px;
}

.compat-fix tr[hidden] {
  display: none;
}

.compat-fix {
  min-width: 0;
}

.compat-fix th,
.compat-fix td {
  text-align: left;
  vertical-align: top;
  padding: 12px 14px;
}

.compat-fix .where {
  min-width: 9rem;
  color: var(--ink-soft);
}

.compat-fix .fix {
  min-width: 18rem;
  line-height: 1.5;
}

.compat-fix .none {
  color: var(--ink-soft);
}

.compat-fix .tested {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  vertical-align: 1px;
  background: rgba(21, 128, 61, 0.14);
  color: #15803d;
}

@media (prefers-color-scheme: dark) {
  .compat-fix .tested { background: rgba(74, 222, 128, 0.16); color: #4ade80; }
}

.compat-all {
  margin: 28px 0 8px;
}

.compat-all > summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
}

.compat-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 13.5px;
  color: var(--ink-soft);
  margin: 10px 0 0;
}

/* Docs index cards */
.doc-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin: 0 0 8px;
}

/* Video tutorials grid */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin: 32px 0 8px;
}

/* A self-hosted video in the same 16:9 box as a YouTube thumbnail; a square
   one is letterboxed on the videos' own dark background. */
.video-self {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #0f1014;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.video-card strong {
  display: block;
  font-size: 15.5px;
  color: var(--ink);
  margin: 12px 0 4px;
}

.video-card span {
  font-size: 14px;
  color: var(--ink-soft);
}

.video-thumb {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-alt);
  cursor: pointer;
  box-shadow: var(--shadow);
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-thumb .video-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(20, 20, 15, 0.55);
  transition: background 0.15s ease, transform 0.12s ease;
}

.video-thumb .video-play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 9px 0 9px 15px;
  border-color: transparent transparent transparent #fff;
}

.video-thumb:hover .video-play {
  background: var(--accent);
  transform: scale(1.06);
}

.video-thumb:hover .video-play::after {
  border-left-color: var(--accent-ink);
}

.video-thumb .video-duration {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(20, 20, 15, 0.75);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

.video-thumb iframe,
.video-card iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.doc-cards a {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 0.12s ease, border-color 0.15s ease;
}

.doc-cards a:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.doc-cards strong {
  display: block;
  font-size: 15.5px;
  color: var(--ink);
  margin-bottom: 6px;
}

.doc-cards span {
  font-size: 14px;
  color: var(--ink-soft);
}

/* Numbered walkthrough steps */
.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
}

.steps > li {
  counter-increment: step;
  position: relative;
  padding: 0 0 28px 48px;
  border-left: 1px solid var(--line);
  margin-left: 15px;
}

.steps > li:last-child {
  border-left-color: transparent;
  padding-bottom: 0;
}

.steps > li::before {
  content: counter(step);
  position: absolute;
  left: -16px;
  top: -2px;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background: var(--accent-bg);
  color: var(--accent-ink);
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.steps h3 {
  margin: 2px 0 8px;
  font-size: 16.5px;
  color: var(--ink);
}

.steps p {
  margin: 0 0 10px;
}

.steps p:last-child {
  margin-bottom: 0;
}

/* Inline UI references */
kbd {
  display: inline-block;
  background: var(--card);
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 6px;
  padding: 1px 7px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

.ui {
  font-weight: 600;
  color: var(--ink);
}

/* Callout */
.callout {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 14px 18px;
  margin: 20px 0;
  font-size: 14.5px;
  color: var(--ink-soft);
}

.callout strong {
  color: var(--ink);
}

/* Shortcut table */
.keys {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 0;
}

.keys td {
  padding: 9px 0;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
  color: var(--ink-soft);
  vertical-align: top;
}

.keys tr:first-child td {
  border-top: none;
}

.keys td:first-child {
  width: 190px;
  white-space: nowrap;
  padding-right: 16px;
}

/* FAQ */
.faq-item {
  border-top: 1px solid var(--line);
  padding: 22px 0;
}

.faq-item:first-of-type {
  border-top: none;
}

.faq-item h3 {
  margin: 0 0 8px;
  font-size: 16.5px;
  color: var(--ink);
  scroll-margin-top: 80px;
}

.faq-item p {
  margin: 0 0 10px;
}

.faq-item p:last-child {
  margin-bottom: 0;
}

/* Prev/next footer links on doc pages */
.doc-next {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

@media (max-width: 860px) {
  .hero-split {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }
  .hero-video {
    max-width: 460px;
    width: 100%;
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .doc .steps > li {
    padding-left: 36px;
  }
  .keys td:first-child {
    width: 130px;
  }
  .nav-links {
    gap: 12px;
  }
  .nav-links .hide-mobile,
  .nav-links .nav-back {
    display: none;   /* the logo already links home; Contact is in every footer */
  }
  section {
    padding: 56px 0;
  }
  .hero {
    padding: 48px 0 56px;
  }
  .example-row {
    justify-content: center;
    text-align: center;
  }
  .example-copy p {
    max-width: none;
  }
}
