/* YalleryLabs landing.
 *
 * The design was handed over as a prototype with every rule inlined; here the same values
 * live as tokens and classes. Layout is fluid by design — auto-fit grids and clamp() —
 * so there are only two media queries in the whole file, both marked where they sit. */

:root {
  --bg: #07060d;
  --bg-deep: #05040a;
  --bg-footer: rgba(5, 4, 10, 0.6);
  --ink: #f4f2ff;
  --ink-70: rgba(244, 242, 255, 0.7);
  --ink-66: rgba(244, 242, 255, 0.66);
  --ink-65: rgba(244, 242, 255, 0.65);
  --ink-63: rgba(244, 242, 255, 0.63);
  --ink-60: rgba(244, 242, 255, 0.6);
  --ink-50: rgba(244, 242, 255, 0.5);
  --ink-45: rgba(244, 242, 255, 0.45);
  --ink-42: rgba(244, 242, 255, 0.42);
  --ink-40: rgba(244, 242, 255, 0.4);
  --ink-38: rgba(244, 242, 255, 0.38);
  --ink-35: rgba(244, 242, 255, 0.35);
  --on-accent: #0b0714;
  --cyan: #2de2e6;
  --violet: #8b5cf6;
  --magenta: #e64fd0;
  --code-ink: #c4bae4;
  --code-ink-dim: #b6acd8;

  --line: rgba(255, 255, 255, 0.08);
  --line-10: rgba(255, 255, 255, 0.1);
  --line-11: rgba(255, 255, 255, 0.11);
  --line-12: rgba(255, 255, 255, 0.12);
  --line-14: rgba(255, 255, 255, 0.14);
  --line-16: rgba(255, 255, 255, 0.16);
  --surface: rgba(255, 255, 255, 0.03);
  --surface-05: rgba(255, 255, 255, 0.05);
  --field: rgba(7, 6, 13, 0.6);

  --grad-primary: linear-gradient(120deg, #2de2e6, #8b5cf6 60%, #e64fd0);
  --grad-text: linear-gradient(96deg, #2de2e6, #8b5cf6 42%, #e64fd0);
  --grad-logo: linear-gradient(140deg, #8b5cf6, #e64fd0 55%, #2de2e6);

  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: Sora, 'Helvetica Neue', Helvetica, Arial, sans-serif;

  --pad-x: clamp(20px, 4vw, 32px);
  --shadow-card: 0 30px 90px rgba(11, 7, 20, 0.6);
  --shadow-cta: 0 14px 40px rgba(139, 92, 246, 0.45);
  --shadow-btn: 0 8px 26px rgba(139, 92, 246, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--cyan);
  text-decoration: none;
}

a:hover {
  color: var(--violet);
}

::selection {
  background: var(--violet);
  color: #fff;
}

img,
video {
  max-width: 100%;
}

input,
textarea,
select,
button {
  font-family: inherit;
}

textarea {
  resize: vertical;
}

h1,
h2,
h3 {
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

/* The playground hides fields with the hidden attribute, and a class that sets display
   would otherwise outrank the UA rule and leave them on screen. */
[hidden] {
  display: none !important;
}

/* ---------- page frame ---------- */

.page {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 620px at 12% -6%, rgba(139, 92, 246, 0.55), transparent 62%),
    radial-gradient(760px 560px at 88% 4%, rgba(230, 79, 208, 0.34), transparent 60%),
    radial-gradient(1100px 720px at 60% 96%, rgba(45, 226, 230, 0.2), transparent 66%),
    var(--bg);
}

.grid-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(700px 460px at 50% 0%, #000, transparent 78%);
  mask-image: radial-gradient(700px 460px at 50% 0%, #000, transparent 78%);
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

section[id] {
  scroll-margin-top: 84px;
}

.section {
  padding-top: clamp(56px, 7vw, 88px);
  padding-bottom: clamp(24px, 3vw, 40px);
}

/* ---------- shared type ---------- */

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--magenta);
}

.eyebrow--cyan {
  color: var(--cyan);
}

.mono {
  font-family: var(--mono);
}

.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.06;
}

.h2--40 {
  font-size: clamp(27px, 3.8vw, 40px);
}

.h2--38 {
  font-size: clamp(26px, 3.6vw, 38px);
}

.lead {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-65);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 0;
  border-radius: 13px;
  padding: 15px 24px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: filter 0.15s, transform 0.15s, background 0.15s, border-color 0.15s;
}

.btn--primary {
  background: var(--grad-primary);
  color: var(--on-accent);
  box-shadow: var(--shadow-cta);
}

.btn--primary:hover {
  filter: brightness(1.09);
  transform: translateY(-1px);
  color: var(--on-accent);
}

.btn--ghost {
  border: 1px solid var(--line-16);
  background: var(--surface);
  color: var(--ink);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
}

.btn__arrow {
  font-family: var(--mono);
  font-size: 12px;
  opacity: 0.65;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(18px);
  background: rgba(7, 6, 13, 0.72);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px clamp(16px, 3vw, 32px);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  flex: 0 0 auto;
}

.brand:hover {
  color: var(--ink);
}

.brand__mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--grad-logo);
  font-weight: 800;
  font-size: 15px;
  color: var(--on-accent);
}

.brand__name {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.brand__badge {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--cyan);
  border: 1px solid rgba(45, 226, 230, 0.4);
  border-radius: 5px;
  padding: 2px 6px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.site-nav a {
  font-size: 13.5px;
  color: var(--ink-66);
}

.site-nav a:hover {
  color: var(--ink);
}

.header-spacer {
  flex: 1 1 auto;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.lang {
  display: flex;
  border: 1px solid var(--line-12);
  border-radius: 9px;
  padding: 3px;
}

.lang button {
  padding: 6px 11px;
  border: 0;
  border-radius: 7px;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 11px;
  background: none;
  color: var(--ink-60);
}

.lang button[aria-pressed='true'] {
  background: linear-gradient(120deg, #2de2e6, #8b5cf6);
  color: var(--on-accent);
  font-weight: 700;
}

.btn--sm {
  padding: 9px 15px;
  font-size: 13.5px;
  border-radius: 10px;
}

.btn--sm.btn--primary {
  box-shadow: var(--shadow-btn);
}

.btn--outline {
  border: 1px solid var(--line-14);
  background: none;
  color: var(--ink);
}

.btn--outline:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--ink);
}

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

.hero {
  padding: clamp(48px, 6vw, 76px) var(--pad-x) 40px;
  max-width: 1280px;
  margin: 0 auto;
}

.hero__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: clamp(30px, 4vw, 56px);
  align-items: center;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--cyan);
  border: 1px solid rgba(45, 226, 230, 0.32);
  background: rgba(45, 226, 230, 0.07);
  border-radius: 999px;
  padding: 7px 13px;
}

.status-pill__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  animation: ylPulse 1.8s ease-in-out infinite;
}

.hero h1 {
  margin: 20px 0 18px;
  font-size: clamp(38px, 6.4vw, 64px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
}

.hero__lead {
  max-width: 520px;
  font-size: clamp(15.5px, 1.5vw, 17.5px);
  line-height: 1.6;
  color: var(--ink-65);
}

.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.price-strip {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 30px;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid rgba(45, 226, 230, 0.28);
  background: linear-gradient(100deg, rgba(45, 226, 230, 0.12), rgba(139, 92, 246, 0.08));
}

.price-strip__label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--ink-50);
}

.price-strip__value {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.price-strip__value span {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-60);
}

.price-strip__rule {
  width: 1px;
  height: 26px;
  background: var(--line-16);
}

.price-strip__note {
  font-size: 13.5px;
  color: var(--ink-65);
}

.price-strip__note strong {
  color: var(--magenta);
}

.hero__facts {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 26px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-50);
}

.hero__media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.media-card {
  border-radius: 18px;
  border: 1px solid var(--line-12);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.media-card--wide {
  grid-column: 1 / -1;
}

.media-card__head {
  display: flex;
  justify-content: space-between;
  padding: 12px 14px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: var(--ink-50);
}

.media-card__head .accent {
  color: var(--magenta);
}

/* A 1px gap over a light background draws the hairline between the pair; a border would
   land on the wrong side once the cards stack. */
.hero-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(255, 255, 255, 0.09);
}

.tile {
  position: relative;
  overflow: hidden;
}

.hero-pair .tile {
  aspect-ratio: 9 / 13;
}

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

.tile__caption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  font-family: var(--mono);
  font-size: 10px;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.85);
}

.tile__scan {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 22%;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(45, 226, 230, 0.45), transparent);
  animation: ylScan 3.4s linear infinite;
}

.float {
  animation: ylFloat 7s ease-in-out infinite;
}

.float--offset {
  animation-delay: -3.2s;
}

.media-card--small .tile {
  aspect-ratio: 1 / 1;
}

/* ---------- sound control ---------- */

.snd {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.tile:hover .snd,
body.is-touch .snd {
  opacity: 1;
  pointer-events: auto;
}

.snd__btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  padding: 0;
  cursor: pointer;
  background: rgba(7, 6, 13, 0.66);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line-16);
  transition: border-color 0.2s;
}

.snd__btn[aria-pressed='true'] {
  border-color: rgba(45, 226, 230, 0.75);
}

.snd__slider {
  height: 4px;
  width: 0;
  opacity: 0;
  accent-color: var(--cyan);
  cursor: pointer;
  transition: width 0.2s, opacity 0.2s;
}

.snd.is-on .snd__slider {
  width: 78px;
  opacity: 1;
}

/* ---------- marquee ---------- */

.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
  margin-top: 20px;
}

.marquee__track {
  display: flex;
  width: 200%;
  animation: ylMarquee 26s linear infinite;
}

/* The row is rendered twice; without the copy the loop jumps at the wrap. */
.marquee__row {
  display: flex;
  gap: clamp(26px, 3vw, 44px);
  padding: 13px 22px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--ink-42);
  white-space: nowrap;
}

/* ---------- results ---------- */

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  align-items: flex-end;
}

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

.section-head p {
  max-width: 390px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 18px;
  margin-top: 34px;
}

.card {
  border-radius: 18px;
  border: 1px solid var(--line-10);
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}

.card:hover {
  border-color: rgba(45, 226, 230, 0.45);
  transform: translateY(-3px);
}

.card .tile {
  aspect-ratio: 4 / 3;
}

.card__foot {
  padding: 17px 18px 20px;
  border-top: 1px solid var(--line);
}

.card__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.card__name {
  font-size: 16px;
  font-weight: 600;
}

.card__tag {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--cyan);
}

.card__desc {
  margin-top: 9px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-60);
}

/* ---------- segment edit ---------- */

.segment {
  margin-top: 20px;
  border-radius: 24px;
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--line-12);
  background: linear-gradient(160deg, rgba(139, 92, 246, 0.16), rgba(255, 255, 255, 0.02));
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: clamp(28px, 3.4vw, 44px);
}

.segment h3 {
  margin: 12px 0 14px;
  font-size: clamp(24px, 3.2vw, 32px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.chip {
  font-family: var(--mono);
  font-size: 12px;
  padding: 8px 12px;
  border-radius: 9px;
  border: 1px solid var(--line-14);
  background: rgba(7, 6, 13, 0.5);
  color: var(--ink-70);
}

.chip--cyan {
  border-color: rgba(45, 226, 230, 0.4);
  background: rgba(45, 226, 230, 0.1);
  color: var(--cyan);
}

.segment__pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.segment__pair .tile {
  aspect-ratio: 768 / 1168;
  border-radius: 16px;
  border: 1px solid var(--line-12);
}

.segment__pair .tile--edited {
  border-color: rgba(45, 226, 230, 0.4);
}

.tile__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  background: rgba(7, 6, 13, 0.6);
  padding: 5px 9px;
  border-radius: 7px;
  color: var(--ink);
}

.tile__badge--accent {
  background: linear-gradient(120deg, #2de2e6, #8b5cf6);
  color: var(--on-accent);
}

.timeline {
  position: relative;
  height: 6px;
  margin-top: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  overflow: hidden;
}

/* 3s–5s of a 6.04s clip; recompute if the source videos change. */
.timeline__window {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 49.7%;
  width: 33.1%;
  background: rgba(255, 255, 255, 0.22);
}

.timeline__window--accent {
  background: linear-gradient(90deg, #2de2e6, #e64fd0);
}

.timeline__head {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #fff;
}

.segment__caption {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-45);
}

.segment__caption--accent {
  color: var(--cyan);
}

/* ---------- playground ---------- */

.pg {
  border-radius: 26px;
  border: 1px solid var(--line-12);
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.14), rgba(255, 255, 255, 0.02));
  box-shadow: 0 40px 120px rgba(11, 7, 20, 0.65);
  overflow: hidden;
}

.pg__head {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 20px clamp(18px, 2.4vw, 26px);
  border-bottom: 1px solid var(--line-10);
}

.pg__title {
  margin-top: 6px;
  font-size: 22px;
  font-weight: 700;
}

.pg__body {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
  gap: 1px;
  background: var(--line-10);
}

.pg__panel {
  padding: clamp(18px, 2.4vw, 26px);
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.14), rgba(255, 255, 255, 0.02));
}

.pg__panel--out {
  background:
    linear-gradient(rgba(7, 6, 13, 0.35), rgba(7, 6, 13, 0.35)),
    linear-gradient(180deg, rgba(139, 92, 246, 0.14), rgba(255, 255, 255, 0.02));
}

.field {
  margin-bottom: 14px;
}

.field__label,
.pg__label {
  display: block;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--ink-50);
  margin-bottom: 8px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  border-radius: 12px;
  border: 1px solid var(--line-14);
  background: var(--field);
  color: var(--ink);
  font-size: 14px;
}

.field input,
.field select {
  font-family: var(--mono);
  font-size: 13.5px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--violet);
  outline: none;
}

.field__hint {
  margin-top: 8px;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--ink-45);
}

.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tab {
  padding: 9px 13px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 12.5px;
  font-family: var(--mono);
  letter-spacing: 0.02em;
  transition: all 0.15s;
  border: 1px solid var(--line-12);
  background: var(--surface);
  color: var(--ink-66);
}

.tab[aria-selected='true'] {
  border-color: rgba(45, 226, 230, 0.55);
  background: rgba(45, 226, 230, 0.13);
  color: var(--cyan);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 112px), 1fr));
  gap: 10px;
}

.video-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.video-row > .field:first-child {
  flex: 1 1 200px;
  min-width: 0;
}

.video-row > .field {
  flex: 1 1 84px;
  min-width: 0;
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 15px;
  border-radius: 12px;
  border: 1px solid var(--line-11);
  background: var(--surface);
  margin-bottom: 14px;
}

.toggle-row__name {
  font-size: 13.5px;
  font-weight: 600;
}

.toggle-row__hint {
  font-size: 12px;
  color: var(--ink-50);
  margin-top: 2px;
}

.switch {
  width: 46px;
  height: 26px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  padding: 3px;
  display: flex;
  justify-content: flex-start;
  background: var(--line-16);
  flex: 0 0 auto;
}

.switch[aria-checked='true'] {
  justify-content: flex-end;
  background: linear-gradient(120deg, #2de2e6, #8b5cf6);
}

.switch span {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  display: block;
}

.run-btn {
  width: 100%;
  margin-top: 20px;
  padding: 16px;
  border-radius: 14px;
  border: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--on-accent);
  background: var(--grad-primary);
  box-shadow: 0 14px 40px rgba(139, 92, 246, 0.38);
  cursor: pointer;
}

.run-btn[disabled] {
  opacity: 0.6;
  cursor: wait;
}

.pg__out-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.copy-btn {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--cyan);
  border: 1px solid rgba(45, 226, 230, 0.35);
  background: none;
  border-radius: 7px;
  padding: 5px 9px;
  cursor: pointer;
}

.copy-btn:hover {
  background: rgba(45, 226, 230, 0.1);
}

.snippet {
  margin: 0;
  padding: 15px;
  border-radius: 14px;
  background: var(--bg-deep);
  font-family: var(--mono);
  font-size: clamp(10px, 1.2vw, 11.5px);
  line-height: 1.65;
  color: var(--code-ink-dim);
  max-height: 230px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.result {
  min-height: 240px;
  margin-top: 8px;
  border-radius: 14px;
  border: 1px solid var(--line-11);
  background: var(--bg-deep);
  display: grid;
  place-items: center;
  padding: 18px;
  text-align: center;
}

.result__msg {
  max-width: 320px;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--ink-50);
}

.result__msg--error {
  color: var(--magenta);
}

.result__meta {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-50);
}

.result img,
.result video {
  max-width: 100%;
  max-height: 300px;
  border-radius: 12px;
}

.spinner {
  width: 34px;
  height: 34px;
  margin: 0 auto;
  border-radius: 50%;
  border: 2px solid rgba(139, 92, 246, 0.25);
  border-top-color: var(--cyan);
  animation: ylSpin 0.9s linear infinite;
}

/* The free-run counter is the only number on this page that is not ours to invent — it
   comes from the server on every load, because the browser's opinion of it is worthless. */
.free-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11.5px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(45, 226, 230, 0.35);
  background: rgba(45, 226, 230, 0.08);
  color: var(--cyan);
}

.wall {
  margin-top: 14px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(139, 92, 246, 0.45);
  background: linear-gradient(140deg, rgba(139, 92, 246, 0.18), rgba(255, 255, 255, 0.02));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.wall p {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-70);
  max-width: 340px;
}

/* ---------- integration ---------- */

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: clamp(30px, 3.8vw, 48px);
}

.steps {
  margin-top: 26px;
  display: grid;
  gap: 18px;
}

.step {
  display: flex;
  gap: 13px;
}

.step__num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--cyan);
  padding-top: 2px;
}

.step__name {
  font-size: 15.5px;
  font-weight: 600;
}

.step__desc {
  margin-top: 5px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-60);
}

.code-panel {
  border-radius: 20px;
  border: 1px solid var(--line-12);
  background: var(--bg-deep);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.code-panel__tabs {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  display: flex;
  gap: 8px;
}

.code-panel pre {
  margin: 0;
  padding: clamp(16px, 2vw, 22px);
  font-family: var(--mono);
  font-size: clamp(10.5px, 1.3vw, 12.5px);
  line-height: 1.75;
  color: var(--code-ink);
  max-height: 400px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

/* ---------- use cases ---------- */

.cases {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 16px;
  margin-top: 30px;
}

.case {
  padding: 24px;
  border-radius: 18px;
  border: 1px solid var(--line-10);
  transition: border-color 0.2s;
}

.case__num {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--cyan);
}

.case__name {
  margin-top: 12px;
  font-size: 17px;
  font-weight: 600;
}

.case__desc {
  margin-top: 9px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-60);
}

.case--1 {
  background: linear-gradient(170deg, rgba(139, 92, 246, 0.16), rgba(255, 255, 255, 0.02));
}

.case--1:hover {
  border-color: rgba(139, 92, 246, 0.5);
}

.case--2 {
  background: linear-gradient(170deg, rgba(230, 79, 208, 0.16), rgba(255, 255, 255, 0.02));
}

.case--2:hover {
  border-color: rgba(230, 79, 208, 0.5);
}

.case--3 {
  background: linear-gradient(170deg, rgba(45, 226, 230, 0.14), rgba(255, 255, 255, 0.02));
}

.case--3:hover {
  border-color: rgba(45, 226, 230, 0.5);
}

.case--4 {
  background: linear-gradient(170deg, rgba(139, 92, 246, 0.13), rgba(45, 226, 230, 0.06));
}

.case--4:hover {
  border-color: rgba(139, 92, 246, 0.5);
}

/* ---------- price hook ---------- */

.hook {
  border-radius: 26px;
  padding: clamp(22px, 3.4vw, 40px);
  border: 1px solid var(--line-12);
  background:
    radial-gradient(760px 340px at 18% 0%, rgba(45, 226, 230, 0.18), transparent 70%),
    var(--surface);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: clamp(28px, 3.4vw, 44px);
}

.hook__big {
  margin-top: 28px;
  font-size: clamp(38px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.hook__bigNote {
  font-size: 14px;
  color: var(--ink-60);
}

.bars {
  display: grid;
  gap: 14px;
  align-content: center;
}

.bar {
  display: grid;
  grid-template-columns: clamp(84px, 13vw, 150px) minmax(0, 1fr) clamp(56px, 8vw, 84px);
  gap: clamp(8px, 1.4vw, 14px);
  align-items: center;
}

.bar__label {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-70);
}

.bar__track {
  height: 34px;
  border-radius: 9px;
  background: var(--surface-05);
  overflow: hidden;
}

.bar__fill {
  height: 100%;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.14);
  transition: width 0.5s ease;
}

.bar--ours .bar__fill {
  background: var(--grad-text);
  box-shadow: 0 8px 26px rgba(139, 92, 246, 0.4);
}

.bar__price {
  text-align: right;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--ink-50);
}

.bar--ours .bar__price {
  color: var(--cyan);
  font-weight: 700;
}

.bars__note {
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-38);
}

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

.checks {
  margin-top: 24px;
  display: grid;
  gap: 12px;
}

.check {
  display: flex;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-70);
}

.check span:first-child {
  color: var(--cyan);
}

.tiers {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-content: start;
}

/* auto-fit would open a fifth track for four cards and the full-width CTA under them would
   outgrow the row; a single breakpoint keeps it 4-up or 2x2 and never 3 + one stretched. */
@media (max-width: 560px) {
  .tiers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.tier {
  position: relative;
  padding: 22px 18px;
  border-radius: 18px;
  text-align: center;
  border: 1px solid var(--line-11);
  background: var(--surface);
}

.tier--featured {
  border-color: rgba(139, 92, 246, 0.55);
  background: linear-gradient(170deg, rgba(139, 92, 246, 0.22), rgba(230, 79, 208, 0.08));
}

.tier__sum {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.tier__label {
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--ink-50);
}

.tier__badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  background: linear-gradient(120deg, #2de2e6, #8b5cf6);
  color: var(--on-accent);
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
}

.tiers__cta {
  grid-column: 1 / -1;
  text-align: center;
  padding: 15px;
  border-radius: 14px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--on-accent);
  background: var(--grad-primary);
}

.tiers__cta:hover {
  filter: brightness(1.08);
  color: var(--on-accent);
}

.compare {
  margin-top: 34px;
  border-radius: 16px;
  border: 1px solid var(--line-11);
  overflow: hidden;
}

.compare__row {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 1fr));
  gap: clamp(6px, 1.4vw, 12px);
  padding: 15px clamp(12px, 1.6vw, 20px);
  font-size: clamp(11px, 1.5vw, 13.5px);
  align-items: center;
  border-top: 1px solid var(--line);
}

.compare__row > *:not(:first-child) {
  text-align: right;
  font-family: var(--mono);
}

.compare__head {
  padding: 12px clamp(12px, 1.6vw, 20px);
  background: var(--surface-05);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--ink-50);
  border-top: 0;
}

.compare__ours {
  color: var(--cyan);
  font-weight: 700;
}

.compare__typical {
  color: var(--ink-45);
  text-decoration: line-through;
}

.compare__saving {
  color: var(--magenta);
}

/* ---------- faq ---------- */

.faq-list {
  border-top: 1px solid var(--line-10);
}

.faq-item {
  border-bottom: 1px solid var(--line-10);
}

.faq-item__q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 2px;
  background: none;
  border: 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.faq-item__icon {
  font-family: var(--mono);
  font-size: 18px;
  color: var(--cyan);
  transition: transform 0.2s;
}

.faq-item__q[aria-expanded='true'] .faq-item__icon {
  transform: rotate(45deg);
}

.faq-item__a {
  padding: 0 34px 22px 2px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-63);
}

/* ---------- final cta ---------- */

.final-cta {
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  padding: clamp(36px, 5vw, 56px) clamp(22px, 3.4vw, 44px);
  text-align: center;
  background:
    radial-gradient(700px 320px at 50% 0%, rgba(139, 92, 246, 0.32), transparent 70%),
    var(--surface);
}

.final-cta h2 {
  font-size: clamp(30px, 4.4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.final-cta p {
  max-width: 520px;
  margin: 16px auto 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-65);
}

.final-cta__actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}

/* ---------- footer ---------- */

.site-footer {
  margin-top: clamp(48px, 6vw, 80px);
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  background: var(--bg-footer);
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 46px var(--pad-x);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: clamp(26px, 3vw, 36px);
}

.footer-about {
  margin-top: 14px;
  max-width: 280px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-60);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-col__head {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: var(--ink-40);
}

.footer-col a {
  font-size: 13.5px;
  color: var(--ink-70);
}

.footer-col a:hover {
  color: var(--cyan);
}

.footer-rights {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--pad-x) 34px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-35);
}

/* ---------- motion ---------- */

@keyframes ylFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}

@keyframes ylPulse {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 0.85;
  }
}

@keyframes ylScan {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(400%);
  }
}

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

@keyframes ylMarquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
  }
  html {
    scroll-behavior: auto;
  }
}
