/* ShotStudio landing, using the same design system as the editor:
   dark surfaces, #0d99ff accent, Inter, quiet everywhere except the
   signature drifting strip of real generated sets behind the hero. */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/Inter-Variable.woff2') format('woff2');
}

/* Display face for headlines only. Body stays Inter. */
@font-face {
  font-family: 'Clash Display';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/ClashDisplay-Semibold.woff2') format('woff2');
}
@font-face {
  font-family: 'Clash Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/ClashDisplay-Bold.woff2') format('woff2');
}

:root {
  --bg: #141414;
  --bg-raised: #1d1d1f;
  --bg-card: #202023;
  --border: rgba(255, 255, 255, 0.09);
  --text-1: #f5f5f5;
  --text-2: #b3b3b3;
  --text-3: #7f7f7f;
  --accent: #0d99ff;
  --accent-strong: #056fc1;
  --radius: 14px;
  --max: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text-1);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1 {
  font-family: 'Clash Display', 'Inter', system-ui, sans-serif;
  font-size: clamp(2.4rem, 5.4vw, 3.9rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.06;
}
h2 {
  font-family: 'Clash Display', 'Inter', system-ui, sans-serif;
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-align: center;
}
h3 { font-size: 1.05rem; font-weight: 600; letter-spacing: -0.01em; }
.section-sub { color: var(--text-2); text-align: center; margin: 12px auto 0; max-width: 560px; }

button.btn { background: transparent; color: inherit; font: inherit; cursor: pointer; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 18px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: transform 160ms cubic-bezier(0.23, 1, 0.32, 1), background 160ms ease;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--accent-strong); border-color: transparent; color: #fff; }
.btn-primary:hover { background: var(--accent); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.06); }
.btn-lg { padding: 13px 26px; font-size: 1.02rem; border-radius: 12px; }

/* ------------------------------- nav -------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 24px;
  backdrop-filter: blur(14px);
  background: rgba(20, 20, 20, 0.72);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-name { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.02em; }
.brand-name span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 22px; font-size: 0.95rem; color: var(--text-2); }
.nav-links a:not(.btn):hover { color: var(--text-1); }
.lang-select {
  appearance: none;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23b3b3b3' fill='none' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 10px center;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-2);
  font: inherit;
  font-size: 0.88rem;
  padding: 6px 26px 6px 12px;
  cursor: pointer;
}
.lang-select:hover { color: var(--text-1); border-color: rgba(13, 153, 255, 0.5); }
.lang-select option { background: var(--bg-raised); color: var(--text-1); }

/* ------------------------------- hero ------------------------------- */
.hero {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 84px 24px 60px;
  overflow: hidden;
}
.hero-copy { position: relative; z-index: 2; max-width: 640px; }
.eyebrow {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  margin-bottom: 18px;
}
.sub { color: var(--text-2); font-size: 1.15rem; margin: 22px 0 30px; max-width: 540px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { color: var(--text-3); font-size: 0.85rem; margin-top: 16px; }

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

.waitlist-form { max-width: 590px; margin-top: 28px; }
.waitlist-fields {
  display: flex;
  gap: 9px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(29, 29, 31, 0.88);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
}
.waitlist-fields input[type='email'] {
  min-width: 0;
  flex: 1;
  padding: 0 14px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text-1);
  font: inherit;
  font-size: 0.95rem;
}
.waitlist-fields input[type='email']::placeholder { color: var(--text-3); }
.waitlist-fields:focus-within { border-color: rgba(13, 153, 255, 0.7); box-shadow: 0 0 0 3px rgba(13, 153, 255, 0.1); }
.waitlist-fields .btn { flex: 0 0 auto; }
.waitlist-fields .btn:disabled { opacity: 0.62; cursor: wait; }
.waitlist-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; }
.waitlist-consent { display: flex; align-items: flex-start; gap: 8px; margin-top: 10px; color: var(--text-3); font-size: 0.72rem; line-height: 1.45; cursor: pointer; }
.waitlist-consent input { width: 14px; height: 14px; flex: none; margin-top: 1px; accent-color: var(--accent); }
.waitlist-consent a { color: var(--text-2); text-decoration: underline; text-underline-offset: 2px; }
.waitlist-status { min-height: 20px; margin-top: 8px; color: var(--text-2); font-size: 0.8rem; }
.waitlist-status[data-state='success'] { color: #62d69a; }
.waitlist-status[data-state='error'] { color: #ff8f88; }

/* Signature: drifting strip of real generated slides. */
.hero { min-height: 560px; display: flex; align-items: center; }
.hero-strip {
  position: absolute;
  right: -60px;
  top: 50%;
  width: 46%;
  transform: translateY(-50%) rotate(5deg);
  z-index: 1;
  opacity: 0.9;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0%, #000 40%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 40%);
}
.strip-track { display: flex; gap: 18px; width: max-content; animation: drift 70s linear infinite; }
.strip-track img {
  width: 168px;
  border-radius: 12px;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.55);
}
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .strip-track { animation: none; } }
@media (max-width: 900px) {
  .hero { flex-direction: column; align-items: stretch; }
  .hero-strip { position: static; transform: none; mask-image: none; -webkit-mask-image: none; margin-top: 44px; opacity: 1; width: 100%; }
}

/* ------------------------------ sections ---------------------------- */
section { padding: 76px 24px; }
.how, .gallery, .features, .pricing { max-width: var(--max); margin: 0 auto; }

/* how it works */
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.how-grid article {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}
.step {
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: rgba(13, 153, 255, 0.16);
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 14px;
}
.how-grid p { color: var(--text-2); font-size: 0.95rem; margin-top: 8px; }

/* gallery slideshow */
.show { position: relative; max-width: 980px; margin: 40px auto 0; }
.show-viewport { overflow: hidden; }
.show-track {
  display: flex;
  transition: transform 480ms cubic-bezier(0.23, 1, 0.32, 1);
}
@media (prefers-reduced-motion: reduce) { .show-track { transition: none; } }
/* min-width: 0 is load-bearing: without it the flex item's min-width:auto
   adopts the strip's full content width on mobile, blowing up the panel and
   the 100%-based translate math. */
.show-panel { flex: 0 0 100%; min-width: 0; margin: 0; }
.panel-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 0 56px;
}
.panel-strip img { border-radius: 12px; width: 100%; box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45); }
.show-panel figcaption { text-align: center; max-width: 640px; margin: 22px auto 0; }
.panel-name { font-weight: 600; font-size: 1rem; }
.panel-prompt { color: var(--text-3); font-size: 0.9rem; line-height: 1.55; font-style: italic; margin-top: 8px; }

.show-nav {
  position: absolute;
  top: 31%; /* mid-height of the image strip, not the whole figure */
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(29, 29, 31, 0.85);
  backdrop-filter: blur(10px);
  color: var(--text-1);
  cursor: pointer;
  transition: transform 160ms cubic-bezier(0.23, 1, 0.32, 1), background 160ms ease, border-color 160ms ease;
}
.show-nav:hover { background: rgba(13, 153, 255, 0.18); border-color: rgba(13, 153, 255, 0.5); }
.show-nav:active { transform: scale(0.94); }
.show-prev { left: 0; }
.show-next { right: 0; }

.show-dots { display: flex; gap: 7px; justify-content: center; margin-top: 20px; }
.show-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
  transition: width 240ms cubic-bezier(0.23, 1, 0.32, 1), background 240ms ease;
}
.show-dot:hover { background: rgba(255, 255, 255, 0.38); }
.show-dot[aria-selected] { width: 22px; background: var(--accent); }

@media (max-width: 720px) {
  .panel-strip {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 0 16px;
    gap: 6px;
  }
  /* min-width: 0 is load-bearing: a flex item's implied min-width:auto is the
     image's intrinsic 440px, which would override the 58vw basis and crop. */
  .panel-strip img { flex: 0 0 58vw; width: 58vw; min-width: 0; scroll-snap-align: center; }
  .show-nav { display: none; }
}

/* features */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.feature-grid article { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.feature-grid p { color: var(--text-2); font-size: 0.92rem; margin-top: 8px; }

/* blogs */
.blogs { max-width: var(--max); margin: 0 auto; }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.blog-meta {
  color: var(--text-3);
  font-size: 0.82rem;
  margin-bottom: 6px;
}
.blog-card h3 { margin-bottom: 10px; }
.blog-card p { color: var(--text-2); font-size: 0.92rem; margin-bottom: 12px; }
.blog-card a { color: var(--accent); font-weight: 600; font-size: 0.9rem; }


/* pricing */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.price-grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Cards are flex columns so every CTA sits on the same baseline regardless
   of feature-list length; the list is the only stretching region. */
.price-grid .price-card { display: flex; flex-direction: column; }
.price-grid .price-card ul { flex: 1; align-content: start; }

.price-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 25px; }
.price-card > h3 { display: flex; align-items: center; min-height: 25px; }
.price-card h3 { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2); }
.price-card.featured h3 { color: var(--accent); }
.plan-badge {
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.02em; white-space: nowrap;
  color: var(--accent); background: rgba(13, 153, 255, 0.12);
  border: 1px solid rgba(13, 153, 255, 0.35); border-radius: 999px; padding: 3px 9px;
}

.price-card .price { font-size: 2.4rem; font-weight: 700; letter-spacing: -0.02em; margin: 10px 0 2px; }
.price small { font-size: 0.42em; color: var(--text-2); font-weight: 500; letter-spacing: 0; margin-left: 2px; }

/* One quiet line under the price; reserve two lines so the feature lists
   start at the same height on every card. */
.price-card .price-tag { color: var(--text-2); font-weight: 500; min-height: 2.9em; margin: 0 0 14px; }
/* Sale banner + struck-through pre-sale price (filled in by landing.js). */
.promo-banner { display: inline-block; margin: 0 auto 22px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); font-weight: 700; }
.price-was { color: var(--text-2); font-weight: 500; text-decoration: line-through; margin-right: 8px; }
.price-card.featured .price-tag { color: var(--text-1, #e8ecf3); }

.price-cta {
  display: block; text-align: center; margin-top: 18px;
  transition: transform 160ms cubic-bezier(0.23, 1, 0.32, 1), border-color 160ms ease, background-color 160ms ease;
}
.price-cta:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .price-card { transition: border-color 200ms ease; }
  .price-card:hover { border-color: rgba(255, 255, 255, 0.18); }
  .price-card.featured:hover { border-color: rgba(13, 153, 255, 0.75); }
}

.pricing-points-note { margin-top: 26px; font-size: 0.85rem; max-width: 640px; }


.price-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.price-card.featured { border-color: rgba(13, 153, 255, 0.55); box-shadow: 0 0 0 1px rgba(13, 153, 255, 0.25); }
.price { font-size: 2.1rem; font-weight: 700; letter-spacing: -0.03em; margin-top: 10px; }
.price span { color: var(--text-3); font-size: 0.85rem; font-weight: 500; letter-spacing: 0; }
.price-tag { color: var(--accent); font-size: 0.85rem; font-weight: 600; margin: 4px 0 14px; }
.price-card ul {
  list-style: none;
  color: var(--text-2);
  font-size: 0.9rem;
  display: grid;
  gap: 10px;
}
.price-card li {
  display: grid;
  grid-template-columns: 4px minmax(0, 1fr);
  align-items: start;
  column-gap: 10px;
  line-height: 1.5;
  text-wrap: pretty;
}
.price-card li::before {
  content: '';
  width: 4px;
  height: 4px;
  margin-block-start: 0.65em;
  border-radius: 50%;
  background: var(--accent);
}
.pricing-trial { margin: 26px auto 0; }

/* cta + footer */
.cta-final { text-align: center; padding: 90px 24px 110px; }
.cta-final .btn { margin-top: 28px; }
.cta-final .eyebrow { margin-bottom: 14px; }
.waitlist-form-centered { max-width: 620px; margin: 28px auto 0; text-align: left; }
.cta-final .waitlist-fields .btn { margin-top: 0; }

.beta-teaser { max-width: var(--max); margin: 0 auto; text-align: center; }
.beta-teaser > .eyebrow { margin-bottom: 12px; }
.beta-pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 36px; }
.beta-pillars article { display: flex; flex-direction: column; gap: 7px; padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: linear-gradient(145deg, rgba(32, 32, 35, 0.98), rgba(25, 25, 28, 0.98)); text-align: left; }
.beta-pillars strong { font-size: 1rem; }
.beta-pillars span { color: var(--text-2); font-size: 0.88rem; line-height: 1.55; }
.beta-teaser .cx-note { margin-top: 22px; }
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max);
  margin: 0 auto;
  padding: 26px 24px 40px;
  border-top: 1px solid var(--border);
  color: var(--text-3);
  font-size: 0.85rem;
}
.footer-left { display: flex; align-items: center; gap: 10px; }
.footer nav { display: flex; gap: 18px; }
.footer a:hover { color: var(--text-1); }

/* Mobile: the studio itself is desktop-only, so the landing stops selling the
   button and starts selling the idea. The gallery is the star; the note says
   where to go next. */
.mobile-note { display: none; }
@media (max-width: 720px) {
  .open-app { display: none; }
  .mobile-note {
    display: block;
    color: var(--text-2);
    font-size: 0.95rem;
    line-height: 1.55;
    max-width: 340px;
    margin: 26px auto 0;
  }
  .mobile-note strong { color: var(--text-1); }
  .cta-final { padding: 64px 24px 84px; }
  section { padding: 56px 20px; }
  .hero { padding: 40px 20px 24px; min-height: 0; }
}
@media (max-width: 900px) {
  .how-grid, .feature-grid, .blog-grid, .beta-pillars { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: repeat(2, 1fr); }
  .lang-select { margin-inline-start: auto; }
}
@media (max-width: 560px) {
  .waitlist-fields { flex-direction: column; padding: 7px; }
  .waitlist-fields input[type='email'] { min-height: 46px; }
  .waitlist-fields .btn { width: 100%; margin: 0; }
  .price-grid { grid-template-columns: 1fr; }
}

/* ------------------------- connect (agent setup) --------------------- */
.connect { max-width: var(--max); margin: 0 auto; }
.cx-endpoint-row { display: flex; justify-content: center; margin-top: 26px; }
.cx-endpoint {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(13, 153, 255, 0.1);
  border: 1px solid rgba(13, 153, 255, 0.35);
  border-radius: 12px;
  padding: 10px 16px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.95rem;
  color: var(--accent);
}
.cx-endpoint button,
.cx-copy {
  border: 1px solid var(--border);
  background: var(--bg-raised);
  color: var(--text-2);
  border-radius: 8px;
  padding: 4px 12px;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 160ms cubic-bezier(0.23, 1, 0.32, 1), color 160ms ease, border-color 160ms ease;
}
.cx-endpoint button { background: rgba(13, 153, 255, 0.18); border: 0; color: var(--accent); }
.cx-endpoint button:hover { background: rgba(13, 153, 255, 0.3); }
.cx-endpoint button:active, .cx-copy:active { transform: scale(0.95); }
.cx-copy:hover { color: var(--text-1); border-color: rgba(13, 153, 255, 0.5); }
.cx-copy.done { color: #35d07f; border-color: rgba(53, 208, 127, 0.5); }

.cx-card {
  max-width: 760px;
  margin: 30px auto 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
}
.cx-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.cx-head h3 { font-size: 1rem; }
.cx-controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.cx-os { display: inline-flex; gap: 2px; background: var(--bg-raised); border: 1px solid var(--border); border-radius: 10px; padding: 3px; }
.cx-os button {
  border: 0;
  background: none;
  color: var(--text-3);
  border-radius: 7px;
  padding: 4px 10px;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}
.cx-os button.active { background: rgba(13, 153, 255, 0.16); color: var(--accent); }

.cx-picker { position: relative; min-width: 250px; }
.cx-picker-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 11px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px 12px;
  color: var(--text-1);
  font: inherit;
  font-weight: 600;
  font-size: 0.93rem;
  cursor: pointer;
  transition: border-color 160ms ease, transform 160ms cubic-bezier(0.23, 1, 0.32, 1);
}
.cx-picker-btn:hover { border-color: rgba(13, 153, 255, 0.5); }
.cx-picker-btn:active { transform: scale(0.98); }
.cx-chev { margin-inline-start: auto; color: var(--text-3); transition: transform 200ms cubic-bezier(0.23, 1, 0.32, 1); }
.cx-picker.open .cx-chev { transform: rotate(180deg); }
.cx-menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: scale(0.97) translateY(-4px);
  transform-origin: top;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms cubic-bezier(0.23, 1, 0.32, 1);
}
.cx-picker.open .cx-menu { opacity: 1; transform: none; pointer-events: auto; }
.cx-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 0;
  background: none;
  border-radius: 9px;
  padding: 7px 10px;
  color: var(--text-1);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  text-align: start;
}
.cx-item:hover { background: rgba(255, 255, 255, 0.06); }
.cx-item[aria-selected='true'] { background: rgba(13, 153, 255, 0.14); color: var(--accent); }
.cx-tile {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #26262a;
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.cx-tile svg { width: 17px; height: 17px; display: block; }

.cx-body { padding: 20px; display: grid; gap: 16px; }
.cx-steps { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; counter-reset: cxstep; }
.cx-steps li { display: flex; gap: 12px; align-items: baseline; color: var(--text-2); font-size: 0.94rem; line-height: 1.55; }
.cx-steps li::before {
  counter-increment: cxstep;
  content: counter(cxstep);
  flex: 0 0 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: rgba(13, 153, 255, 0.16);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  transform: translateY(3px);
}
.cx-steps strong { color: var(--text-1); }
.cx-deeplink { justify-self: start; }
.cx-config-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-3);
  margin-bottom: 8px;
  text-transform: uppercase;
}
.cx-config pre {
  background: #141416;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 15px 17px;
  overflow-x: auto;
  font-size: 0.84rem;
  line-height: 1.55;
  margin: 0;
}
.cx-config code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.cx-note {
  max-width: 640px;
  margin: 22px auto 0;
  text-align: center;
  color: var(--text-3);
  font-size: 0.9rem;
  line-height: 1.6;
}
@media (max-width: 620px) {
  .cx-head { flex-direction: column; align-items: stretch; }
  .cx-picker { min-width: 0; }
}
/* .btn's display would defeat the hidden attribute on the deeplink. */
.cx-deeplink[hidden] { display: none; }
/* Long one-line commands must scroll inside the card, not stretch it:
   grid children default to min-width:auto, which lets the pre's content
   width win and pushes the copy button past the card edge. */
.cx-body > * { min-width: 0; }
/* Config content wraps instead of scrolling, and JSON shapes get color. */
.cx-config pre { white-space: pre-wrap; word-break: break-word; }
.tok-key { color: #7cc0ff; }
.tok-str { color: #93d78e; }
.tok-flag { color: #d8b46a; }
.tok-cmd { color: #f5f5f5; font-weight: 600; }

/* -- interaction polish ---------------------------------------------------- */

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.btn,
.cx-item,
.cx-copy,
.cx-picker-btn,
.price-cta,
.show-arrow {
  transition: transform 160ms cubic-bezier(0.23, 1, 0.32, 1), background 120ms ease,
    border-color 120ms ease, color 120ms ease;
}

.btn:active,
.cx-item:active,
.cx-copy:active,
.price-cta:active,
.show-arrow:active { transform: scale(0.97); }

@media (prefers-reduced-motion: reduce) {
  .btn, .cx-item, .cx-copy, .cx-picker-btn, .price-cta, .show-arrow { transition: none; }
}

/* -- pricing CTAs ---------------------------------------------------------- */

.price-cta {
  display: block;
  margin-top: 18px;
  padding: 10px 0;
  width: 100%;
  text-align: center;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid var(--border);
  color: var(--text-1);
}

.price-cta:hover { border-color: rgba(13, 153, 255, 0.55); color: var(--accent); }

.price-card.featured .price-cta {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.price-card.featured .price-cta:hover { background: #2ea7ff; color: #fff; }

/* ------------------------- mobile navigation ------------------------- */

/* The page must never scroll sideways; clip (not hidden) keeps position:
   sticky working. */
html, body { overflow-x: clip; }

.nav-toggle { display: none; }

@media (max-width: 720px) {
  .nav { padding: 12px 16px; }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
  }

  .nav-toggle span {
    display: block;
    width: 16px;
    height: 2px;
    border-radius: 1px;
    background: var(--text-1);
    transition: transform 220ms cubic-bezier(0.23, 1, 0.32, 1);
  }

  .nav.open .nav-toggle span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .nav.open .nav-toggle span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

  /* Links live in a dropdown sheet under the sticky header. Transitions (not
     keyframes) so rapid open/close reverses smoothly mid-flight. */
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px 16px 18px;
    /* Solid on purpose: a translucent sheet nested inside the nav's own
       backdrop-filter composites wrong in Chrome and lets the hero bleed
       through; legibility beats the glass effect here. */
    background: #161617;
    border-bottom: 1px solid var(--border);
    opacity: 0;
    transform: translateY(-10px);
    visibility: hidden;
    pointer-events: none;
    transition: opacity 160ms ease, transform 220ms cubic-bezier(0.23, 1, 0.32, 1),
      visibility 0s linear 220ms;
  }

  .nav.open .nav-links {
    opacity: 1;
    transform: none;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 180ms ease, transform 240ms cubic-bezier(0.23, 1, 0.32, 1);
  }

  .nav-links > a:not(.btn) {
    padding: 13px 4px;
    font-size: 1.02rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav-links .btn {
    margin-top: 14px;
    text-align: center;
    padding: 12px;
  }

  .lang-select {
    margin: 14px 0 0;
    align-self: flex-start;
  }

  @media (prefers-reduced-motion: reduce) {
    .nav-links { transition: opacity 120ms ease; transform: none; }
    .nav-toggle span { transition: none; }
  }
}

/* Small-screen fit for rows that could push past the viewport. */
@media (max-width: 560px) {
  .footer { flex-direction: column; gap: 14px; text-align: center; }
  .footer nav { flex-wrap: wrap; justify-content: center; row-gap: 8px; }
  .cx-endpoint { max-width: calc(100vw - 48px); flex-wrap: wrap; justify-content: center; }
}

/* ------------------------------ RTL pages ---------------------------- */
/* Media carousels are direction-neutral: under dir=rtl the flex track lays
   panels out right-to-left while translateX math keeps pushing left, so the
   viewport shows empty space. Forcing LTR restores the geometry, and the
   arrow glyphs then match the motion they cause. */
[dir='rtl'] .hero-strip,
[dir='rtl'] .show {
  direction: ltr;
}

/* RTL hero: copy sits right, so the drifting strip mirrors to the left,
   fading toward the text like the LTR original. */
[dir='rtl'] .hero-strip {
  right: auto;
  left: -60px;
  transform: translateY(-50%) rotate(-5deg);
  mask-image: linear-gradient(270deg, transparent 0%, #000 40%);
  -webkit-mask-image: linear-gradient(270deg, transparent 0%, #000 40%);
}

/* Commands, configs and URLs are LTR content. Keep them readable inside
   RTL text flow. */
[dir='rtl'] .cx-config pre,
[dir='rtl'] .cx-endpoint code,
[dir='rtl'] .cx-file {
  direction: ltr;
  text-align: left;
  unicode-bidi: isolate;
}

/* RTL details: the select's arrow and padding swap sides; picker menu items
   keep their tile on the reading-end. */
[dir='rtl'] .lang-select {
  background-position: left 10px center;
  padding: 6px 12px 6px 26px;
}

/* -------------------------- consent banner -------------------------- */
.consent-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200;
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  max-width: 720px; margin: 0 auto; padding: 12px 16px;
  border: 1px solid var(--border); border-radius: 12px; background: var(--bg-raised);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.4);
}
.consent-banner[hidden] { display: none; }
.consent-text { flex: 1; min-width: 220px; font-size: 0.8rem; color: var(--text-2); line-height: 1.45; }
.consent-text a { text-decoration: underline; }
.consent-actions { display: flex; gap: 8px; flex: none; }
