/* bloxnari.com home page: blue and white. White pages, navy text, one primary blue (--h-blue) for the main
   actions, a deep-blue band for the closing call to action. The app mock-ups (showreel, Studio) stay dark navy. */
body.home {
  --h-bg: #ffffff;
  --h-bg-2: #f3f7fe;
  --h-card: #ffffff;
  --h-card-solid: #ffffff;
  --h-line: #dbe4f3;
  --h-line-strong: #c3d1ea;
  --h-text: #0b1b3f;
  --h-text-2: #33466b;
  --h-muted: #5a6b8c;
  /* Primary blue: white text on it is 5.97:1, and as text on white it is 5.97:1 (WCAG AA). */
  --h-blue: #1d5bd6;
  --h-blue-hover: #174ab8;
  --h-blue-deep: #12398f;
  --h-blue-soft: #e8f0ff;
  --h-navy: #0b2a6b;
  --h-shadow: 0 1px 2px rgba(11, 27, 63, 0.06), 0 12px 32px -16px rgba(11, 27, 63, 0.22);
  /* The mock-ups of the dashboard (dark navy, like the app itself) */
  --m-bg: #0c1730;
  --m-bar: #101d3a;
  --m-text: #eef3ff;
  --m-text-2: #b9c7e3;
  --m-muted: #8fa3c9;
  --m-line: rgba(255, 255, 255, 0.1);
  --m-line-strong: rgba(255, 255, 255, 0.18);
  --m-accent: #5aa2ff;
  --h-grad: linear-gradient(100deg, #1d5bd6 0%, #2a74ee 100%);
  --display: "Archivo", "Inter", system-ui, sans-serif;
  background: var(--h-bg);
  color: var(--h-text);
  color-scheme: light;
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}
.home a {
  color: var(--h-blue);
}
.home h1,
.home h2,
.home h3 {
  margin: 0;
  font-family: var(--display);
  color: var(--h-text);
  text-wrap: balance;
}
.home h2 {
  font-size: clamp(30px, 3.8vw, 48px);
  font-weight: 850;
  font-stretch: 86%;
  letter-spacing: -0.03em;
  line-height: 1.04;
}
.home h3 {
  font-size: 20px;
  font-weight: 750;
  font-stretch: 92%;
  letter-spacing: -0.01em;
}
.home kbd {
  display: inline-block;
  padding: 0 6px;
  border-radius: 5px;
  border: 1px solid var(--h-line-strong);
  border-bottom-width: 2px;
  background: var(--h-bg-2);
  font: 500 0.78em/1.6 var(--font-mono);
  color: var(--h-text);
}
.wrap {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 28px;
}
.grad-text {
  color: var(--h-blue);
}

/* ---------- Buttons ---------- */
.pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 46px;
  padding: 0 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  font: 650 15.5px/1 var(--font-body);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.12s ease, filter 0.15s ease, background 0.15s ease;
}
.pill-btn:hover {
  transform: translateY(-1px);
}
.pill-btn:active {
  transform: translateY(1px);
}
/* Secondary: white with a blue outline */
.pill-white {
  background: #fff;
  border-color: var(--h-line-strong);
  color: var(--h-navy) !important;
  box-shadow: 0 2px 0 var(--h-line-strong);
}
.pill-white:hover {
  border-color: var(--h-blue);
}
.pill-dark {
  background: #fff;
  border-color: var(--h-line-strong);
  color: var(--h-text) !important;
}
.pill-dark:hover {
  background: var(--h-blue-soft);
  border-color: #a9bfe6;
}
/* The primary action: solid blue (pill-grad kept as the class name; there is no gradient any more) */
.pill-grad,
.pill-primary {
  background: var(--h-blue);
  color: #fff !important;
  box-shadow: 0 3px 0 var(--h-blue-deep), 0 12px 26px -14px rgba(29, 91, 214, 0.7);
}
.pill-grad:hover,
.pill-primary:hover {
  background: var(--h-blue-hover);
}
.pill-btn:focus-visible,
.home :focus-visible {
  outline: 3px solid var(--h-blue);
  outline-offset: 2px;
}
.play {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--h-blue);
  color: #fff;
  font-size: 8px;
  padding-left: 1px;
}

/* ---------- Nav ---------- */
.nav {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 30;
}
.nav.scrolled {
  position: fixed;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  border-bottom: 1px solid var(--h-line);
  box-shadow: 0 6px 20px -16px rgba(11, 27, 63, 0.4);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 72px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
}
.logo-mark {
  width: 40px;
  height: auto;
}
.wordmark {
  font: 700 23px/1 var(--display);
  font-stretch: 114%;
  letter-spacing: -0.02em;
  color: var(--h-text);
}
.wordmark .tld {
  color: var(--h-blue);
}
.nav-links {
  display: flex;
  gap: 6px;
}
.nav-links a {
  padding: 6px 12px;
  border-radius: 8px;
  color: var(--h-text-2) !important;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}
.nav-links a:hover {
  color: var(--h-blue) !important;
  background: var(--h-blue-soft);
}
.nav-cta {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}
.nav-login {
  color: var(--h-text) !important;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}
.nav-cta .pill-btn {
  height: 40px;
  padding: 0 18px;
  font-size: 14.5px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 980px;
  padding: 150px 0 0;
  overflow-x: clip;
  isolation: isolate;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, #dfeaff 0%, rgba(223, 234, 255, 0) 70%), linear-gradient(180deg, #f3f7fe 0%, #ffffff 100%);
}
.hero-art {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.glow {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  opacity: 0.7;
}
.glow-a {
  width: 620px;
  height: 520px;
  left: -220px;
  bottom: 40px;
  background: rgba(29, 91, 214, 0.16);
}
.glow-b {
  width: 640px;
  height: 540px;
  right: -240px;
  bottom: 0;
  background: rgba(56, 152, 255, 0.18);
}
.glow-c {
  width: 520px;
  height: 260px;
  left: 50%;
  top: 280px;
  transform: translateX(-50%);
  background: rgba(29, 91, 214, 0.1);
}
.hero-center {
  position: relative;
  z-index: 3;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.beta-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 22px;
  padding: 7px 15px 7px 11px;
  border-radius: 999px;
  border: 1px solid var(--h-line-strong);
  background: #fff;
  font-size: 14px;
  color: var(--h-text-2);
}
.beta-pill strong {
  color: var(--h-text);
}
.beta-dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--h-blue);
  box-shadow: 0 0 0 0 rgba(29, 91, 214, 0.5);
  animation: ping 2s ease-out infinite;
}
@keyframes ping {
  to {
    box-shadow: 0 0 0 9px rgba(29, 91, 214, 0);
  }
}
.hero-title {
  font-size: clamp(46px, 6.2vw, 84px);
  font-weight: 900;
  font-stretch: 76%;
  line-height: 0.92;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.hero-sub {
  margin: 20px 0 28px;
  font-size: 19px;
  color: var(--h-text-2);
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* Prompt box */
.prompt-box {
  width: 100%;
  max-width: 680px;
  margin-top: 30px;
  padding: 18px 14px 12px 18px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--h-line-strong);
  box-shadow: 0 30px 60px -34px rgba(11, 27, 63, 0.45);
  text-align: left;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.prompt-box:focus-within {
  border-color: var(--h-blue);
  box-shadow: 0 0 0 4px rgba(29, 91, 214, 0.16), 0 30px 60px -34px rgba(11, 27, 63, 0.45);
}
.prompt-box textarea {
  width: 100%;
  min-height: 56px;
  resize: none;
  border: none;
  outline: none;
  background: transparent;
  color: var(--h-text);
  font: 16.5px/1.5 var(--font-body);
}
.prompt-box textarea::placeholder {
  color: var(--h-muted);
}
.prompt-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}
.chip-select {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 10px 0 10px;
  border-radius: 10px;
  border: 1px solid var(--h-line-strong);
  background: var(--h-bg-2);
  cursor: pointer;
}
.prompt-row .chip-select {
  flex: 0 1 auto;
  min-width: 0;
}
.prompt-row .chip-select select {
  min-width: 0;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chip-select:hover {
  background: var(--h-blue-soft);
}
.chip-select select {
  appearance: none;
  border: none;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='m3 4.5 3 3 3-3' fill='none' stroke='%235a6b8c' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") right 0 center/11px no-repeat;
  padding-right: 18px;
  color: var(--h-text);
  font: 600 14px var(--font-body);
  cursor: pointer;
  outline: none;
}
.chip-select select option {
  background: #fff;
  color: var(--h-text);
}
.chip-icon {
  font-size: 15px;
  line-height: 1;
}
.model-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--h-grad);
}
/* Styled dropdowns for the prompt box (built by home.js) */
.chip-select.menu-ready {
  padding: 0;
  cursor: default;
}
.prompt-row .chip-select[data-menu="genre"] {
  flex: none;
}
.chip-select.menu-ready > .chip-icon,
.chip-select.menu-ready > select {
  display: none;
}
.chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  height: 100%;
  padding: 0 10px;
  border: none;
  border-radius: inherit;
  background: none;
  color: var(--h-text);
  font: 600 14px var(--font-body);
  cursor: pointer;
}
.chip-btn:focus-visible {
  outline: 3px solid var(--h-blue);
  outline-offset: 2px;
}
.chip-btn .chip-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chip-btn .caret {
  flex: none;
  width: 11px;
  height: 11px;
  margin-left: 2px;
  fill: none;
  stroke: var(--h-muted);
  stroke-width: 1.6;
  stroke-linecap: round;
  transition: transform 0.18s ease;
}
.chip-select.open .caret {
  transform: rotate(180deg);
}
.chip-select.open {
  border-color: var(--h-blue);
  background: var(--h-blue-soft);
}
.fam-dot {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 3px;
}
.chip-menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 8px);
  left: 0;
  width: max-content;
  min-width: 240px;
  max-width: min(320px, calc(100vw - 32px));
  max-height: min(500px, 72vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  margin: 0;
  padding: 6px;
  list-style: none;
  border-radius: 14px;
  border: 1px solid var(--h-line-strong);
  background: #fff;
  box-shadow: 0 24px 50px -16px rgba(11, 27, 63, 0.35);
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top left;
  pointer-events: none;
  transition: opacity 0.14s ease, transform 0.16s ease;
}
.chip-select.open .chip-menu {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.chip-menu .menu-h {
  padding: 8px 10px 4px;
  font: 600 11px var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--h-muted);
}
.chip-menu [role="option"] {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 9px;
  color: var(--h-text);
  cursor: pointer;
}
.chip-menu [role="option"].active {
  background: var(--h-bg-2);
}
.chip-menu [role="option"][aria-selected="true"] {
  background: var(--h-blue-soft);
}
.opt-icon {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  font-size: 16px;
  line-height: 1;
}
.opt-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.opt-text strong {
  font-size: 14px;
  font-weight: 600;
}
.opt-text small {
  font-size: 12.5px;
  color: var(--h-muted);
}
.opt-end {
  display: flex;
  align-items: center;
  gap: 8px;
}
.opt-plan {
  padding: 2px 7px;
  border-radius: 999px;
  font: 600 11px var(--font-body);
  color: var(--h-text-2);
  background: var(--h-bg-2);
  border: 1px solid var(--h-line);
}
.opt-plan.plan-max {
  color: #fff;
  background: var(--h-navy);
  border-color: var(--h-navy);
}
.opt-check {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: var(--h-blue);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  visibility: hidden;
}
[aria-selected="true"] .opt-check {
  visibility: visible;
}
.send {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-left: auto;
  border: none;
  border-radius: 50%;
  background: var(--h-blue);
  box-shadow: 0 3px 0 var(--h-blue-deep);
  cursor: pointer;
}
.send svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #fff;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.send:hover {
  background: var(--h-blue-hover);
}
.sub-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--h-line-strong);
  background: #fff;
  color: var(--h-text) !important;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.sub-chip span {
  color: var(--h-blue);
}

/* ---------- Watch it build: the looping walkthrough under the hero (showreel.js) ---------- */
.reel-sec {
  position: relative;
  z-index: 2;
  padding: 64px 0 40px;
  scroll-margin-top: 70px;
}
.reel {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  border-radius: 18px;
  /* The stage is laid out at 1120px wide and scaled to fit, like a video. */
  overflow: hidden;
  box-shadow:
    0 0 0 1px var(--h-line-strong),
    0 40px 100px -40px rgba(11, 42, 107, 0.55);
}
.reel-stage {
  position: absolute;
  top: 0;
  left: 0;
  width: 1120px;
  height: 660px;
  transform-origin: 0 0;
  /* A dark-navy mock-up of the dashboard: the page's light tokens are swapped for the app's dark ones in here. */
  --h-text: var(--m-text);
  --h-text-2: var(--m-text-2);
  --h-muted: var(--m-muted);
  --h-line: var(--m-line);
  --h-line-strong: var(--m-line-strong);
  background: var(--m-bg);
  color: var(--h-text);
  font: 400 15px/1.45 var(--font-body);
  user-select: none;
}
.reel-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 46px;
  padding: 0 16px;
  border-bottom: 1px solid var(--h-line);
  background: var(--m-bar);
}
.reel-dots {
  display: flex;
  gap: 7px;
}
.reel-dots i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}
.reel-url {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 auto;
  padding: 5px 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--h-text-2);
  font-size: 13px;
}
.reel-credits {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border: 1px solid rgba(255, 210, 90, 0.35);
  border-radius: 9px;
  background: rgba(255, 196, 64, 0.1);
  color: #e9d6a6;
  font-size: 13px;
}
.reel-credits b {
  color: #ffe3a3;
  font-variant-numeric: tabular-nums;
}
.reel-credits svg {
  width: 15px;
  height: 15px;
  fill: #ffc445;
  stroke: #7a5200;
  stroke-width: 1.3;
  stroke-linecap: round;
}
.reel-body {
  display: grid;
  grid-template-columns: 410px 1fr;
  height: 614px;
}

/* Chat side */
.reel-chat {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 20px 20px 18px;
  border-right: 1px solid var(--h-line);
}
.reel-hello {
  margin: auto 0;
  font: 800 25px/1.2 var(--display);
  font-stretch: 90%;
  text-align: center;
}
.reel-hello span {
  color: var(--m-accent);
}
.reel-hello[hidden] {
  display: none;
}
.reel-log {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.reel-hello:not([hidden]) + .reel-log {
  flex: 0;
}
.reel-user {
  margin: 0 0 14px auto;
  max-width: 88%;
  padding: 10px 14px;
  border-radius: 14px 14px 4px 14px;
  background: #1d3a78;
  font-size: 14.5px;
}
.reel-steps {
  list-style: none;
  margin: 0;
  padding: 0 0 0 14px;
  border-left: 2px solid var(--h-line);
}
.reel-steps li {
  position: relative;
  margin: 0 0 7px;
  color: var(--h-text-2);
  font-size: 14px;
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.3s,
    transform 0.3s;
}
.reel-steps li.in {
  opacity: 1;
  transform: none;
}
.reel-steps li::before {
  content: "";
  position: absolute;
  left: -20px;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #5fe08a;
  box-shadow: 0 0 0 3px var(--m-bg);
}
.reel-steps code {
  padding: 1px 5px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.07);
  color: #b9d3ff;
  font: 500 12.5px var(--font-mono);
}
.reel-done {
  margin: 12px 0 0;
  padding: 10px 13px;
  border: 1px solid rgba(95, 224, 138, 0.4);
  border-radius: 11px;
  background: rgba(95, 224, 138, 0.1);
  color: #c9f7d8;
  font-size: 14px;
  font-weight: 600;
}
.reel-composer {
  margin-top: 14px;
  padding: 12px 12px 10px;
  border: 1px solid var(--h-line-strong);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}
.reel-input {
  min-height: 44px;
  margin: 0 0 10px;
  color: var(--h-text);
  font-size: 14.5px;
}
.reel-caret {
  display: inline-block;
  width: 2px;
  height: 17px;
  margin-left: 1px;
  vertical-align: -3px;
  background: var(--m-accent);
  animation: reel-blink 1s steps(1) infinite;
}
.building .reel-caret {
  visibility: hidden;
}
@keyframes reel-blink {
  50% {
    opacity: 0;
  }
}
.reel-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.reel-model {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border: 1px solid var(--h-line);
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.reel-model i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d97757;
}
.reel-est {
  color: var(--h-muted);
  font-size: 12px;
  white-space: nowrap;
}
.reel-send {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-left: auto;
  border-radius: 10px;
  background: var(--h-blue);
  transition: transform 0.12s;
}
.reel-send.press {
  transform: scale(0.88);
}
.reel-send svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #fff;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Studio side */
.reel-studio {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #1b1b1f;
}
.reel-studio-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 38px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #2b2b2f;
  color: #d6d6da;
  font-size: 12.5px;
}
.reel-studio-logo {
  font-weight: 700;
}
.reel-place {
  color: #a8a8b0;
}
.reel-mode {
  margin-left: auto;
  padding: 2px 9px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 600;
}
.reel-mode.is-play {
  background: #1f8f4d;
  color: #fff;
}
.reel-view {
  position: relative;
  flex: 1;
  overflow: hidden;
}
.reel-shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s;
}
.reel-shot.on {
  opacity: 1;
}
.reel-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(12, 23, 48, 0.85);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  backdrop-filter: blur(4px);
}
.reel-badge.busy {
  color: #9fe9ff;
}
.reel-badge.done {
  color: #a8f5c2;
}
.reel-badge[hidden] {
  display: none;
}
.reel-cursor {
  position: absolute;
  top: 0;
  left: 0;
  width: 26px;
  height: 26px;
  margin: -3px 0 0 -4px;
  fill: #fff;
  stroke: var(--m-bg);
  stroke-width: 1.6;
  stroke-linejoin: round;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.5));
  transition: transform 0.65s cubic-bezier(0.45, 0, 0.2, 1);
  pointer-events: none;
}
.reel-toggle {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  background: rgba(12, 23, 48, 0.8);
  cursor: pointer;
  backdrop-filter: blur(4px);
}
.reel-toggle:hover {
  background: var(--h-blue);
}
.reel-toggle svg {
  width: 16px;
  height: 16px;
  fill: #fff;
  stroke: #fff;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.reel-toggle .i-play,
.reel-toggle.is-paused .i-pause {
  display: none;
}
.reel-toggle.is-paused .i-play {
  display: block;
}
/* Phones: a stacked layout at 520px wide (set by showreel.js), Studio on top, bigger text. */
.reel.narrow .reel-stage {
  width: 520px;
  height: 960px;
}
.reel.narrow .reel-body {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 330px 1fr;
  height: 914px;
}
/* On the Studio view's bottom-right corner (bar 46 + 330 tall view = 376 of 960), clear of the send button. */
.reel.narrow ~ .reel-toggle,
.reel.narrow .reel-toggle {
  top: calc(376 / 960 * 100% - 44px);
  bottom: auto;
}
.reel.narrow .reel-studio {
  order: -1;
}
.reel.narrow .reel-chat {
  border-right: none;
}
.reel.narrow .reel-url {
  margin: 0 0 0 auto;
}
.reel.narrow .reel-place,
.reel.narrow .reel-est {
  display: none;
}
.reel.narrow .reel-hello {
  font-size: 30px;
}
.reel.narrow .reel-user,
.reel.narrow .reel-input,
.reel.narrow .reel-steps li {
  font-size: 18px;
}
.reel.narrow .reel-steps code {
  font-size: 15px;
}
.reel.narrow .reel-done {
  font-size: 17px;
}
.reel.narrow .reel-model,
.reel.narrow .reel-studio-bar,
.reel.narrow .reel-badge {
  font-size: 15px;
}
.reel.narrow .reel-cursor {
  width: 34px;
  height: 34px;
}
@media (max-width: 640px) {
  .reel-sec {
    padding-top: 40px;
  }
  .reel {
    border-radius: 12px;
  }
  .reel-toggle {
    right: 8px;
    bottom: 8px;
    width: 34px;
    height: 34px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .reel-cursor {
    display: none;
  }
}

/* ---------- Sections ---------- */
.section {
  position: relative;
  padding: 110px 0;
  scroll-margin-top: 60px;
}
.section-tight {
  padding-top: 40px;
}
.sec-head {
  max-width: 760px;
  margin-bottom: 48px;
}
.sec-head > p:not(.eyebrow) {
  margin: 16px 0 0;
  font-size: 18px;
  color: var(--h-text-2);
}
.sec-head-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  max-width: none;
  flex-wrap: wrap;
}
.eyebrow {
  margin: 0 0 14px;
  font: 600 13px var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--h-blue);
}
.card {
  border-radius: 18px;
  background: var(--h-card);
  border: 1px solid var(--h-line);
  box-shadow: var(--h-shadow);
}
/* Every other section on a pale blue, so the page reads blue and white */
.section-alt {
  background: var(--h-bg-2);
  border-top: 1px solid var(--h-line);
  border-bottom: 1px solid var(--h-line);
}
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.js .reveal.in {
  opacity: 1;
  transform: none;
}

/* Steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.steps li {
  padding: 28px;
}
.step-n {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: var(--h-blue);
  font: 900 19px var(--display);
  color: #fff;
}
.steps p {
  margin: 10px 0 0;
  color: var(--h-text-2);
}

/* Demo */
.demo-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: center;
}
.lead {
  margin: 16px 0 0;
  color: var(--h-text-2);
  font-size: 17.5px;
}
.ticks {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
}
.ticks li {
  position: relative;
  padding: 7px 0 7px 30px;
  color: var(--h-text-2);
}
.ticks li::before {
  content: "✓";
  position: absolute;
  left: 2px;
  top: 6px;
  font-weight: 800;
  color: var(--h-blue);
}
.studio {
  margin: 0;
  border-radius: 14px;
  background: #23252b;
  border: 1px solid #000;
  box-shadow: 0 40px 80px -34px rgba(11, 27, 63, 0.6);
  overflow: hidden;
  color: #d9dce3;
  font-size: 13px;
  --h-text: var(--m-text);
  --h-text-2: var(--m-text-2);
  --h-muted: var(--m-muted);
  --h-line: var(--m-line);
}
.studio-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 12px;
  background: #1b1c20;
  border-bottom: 1px solid #111215;
}
.studio-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot-r {
  background: #ee6a5f;
}
.dot-y {
  background: #f5bd4f;
}
.dot-g {
  background: #61c454;
}
.studio-bar p {
  margin: 0 0 0 10px;
  font-size: 12px;
  color: #8f95a3;
}
.studio-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 200px;
  min-height: 330px;
}
.studio-main {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  border-right: 1px solid #111215;
  min-width: 0;
}
.viewport {
  position: relative;
  min-height: 210px;
  background: linear-gradient(180deg, #8ec9f2 0%, #cbe7f9 70%, #e7f3fb 100%);
}
.viewport svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.viewport .block {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  opacity: 0;
  transform: translateY(-14px);
  transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.2, 1.3, 0.4, 1);
}
.viewport .block.show {
  opacity: 1;
  transform: none;
}
.panel-h {
  margin: 0;
  padding: 7px 10px;
  font-size: 11.5px;
  font-weight: 600;
  color: #9aa0ad;
  background: #2a2c33;
  border-bottom: 1px solid #1b1c20;
}
.explorer {
  background: #2e3037;
}
.explorer ul {
  list-style: none;
  margin: 0;
  padding: 6px 0;
  height: 112px;
  overflow: hidden;
  font: 12px/1.75 var(--font-mono);
}
.lvl0 {
  padding-left: 12px;
}
.lvl1 {
  padding-left: 28px;
}
.lvl2 {
  padding-left: 44px;
}
.explorer li.added {
  animation: added 1.6s ease-out;
}
@keyframes added {
  from {
    background: rgba(90, 162, 255, 0.45);
  }
  to {
    background: transparent;
  }
}
.rf-panel {
  display: flex;
  flex-direction: column;
  background: #2e3037;
  min-width: 0;
}
.demo-steps {
  list-style: none;
  margin: 10px 0 0;
  padding: 0 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12.5px;
  color: #b9bdc8;
}
.demo-steps li {
  opacity: 0;
  transition: opacity 0.2s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.demo-steps li::before {
  content: "› ";
  color: #7c8290;
}
.demo-steps li.show {
  opacity: 1;
}
.demo-steps b {
  font-weight: 600;
  color: #eef0f4;
}
.demo-done {
  margin: auto 10px 12px;
  font-size: 12.5px;
  color: #8ff0b0;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.demo-done.show {
  opacity: 1;
}
.studio-prompt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--m-bg);
  border-top: 1px solid #000;
}
.studio-prompt span {
  flex: none;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--h-blue);
  color: #fff;
  font: 700 11px var(--font-body);
}
.studio-prompt p {
  margin: 0;
  min-height: 1.4em;
  font-size: 13.5px;
  color: #fff;
}
.studio-prompt p::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 2px;
  vertical-align: -2px;
  background: var(--m-accent);
  animation: caret 1s steps(1) infinite;
}
.studio-prompt.sent p::after {
  display: none;
}
@keyframes caret {
  50% {
    opacity: 0;
  }
}

/* AI models */
.model-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}
.model-group {
  padding: 22px;
  border-radius: 18px;
  background: var(--h-card);
  border: 1px solid var(--h-line);
  box-shadow: var(--h-shadow);
}
.group-h {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-weight: 600;
  color: var(--h-text-2);
  font-size: 15px;
}
.plan-chip {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--h-blue-soft);
  color: var(--h-blue-hover);
  font-size: 12.5px;
  font-weight: 700;
}
.plan-chip.plan-pro {
  background: var(--h-blue);
  color: #fff;
}
.plan-chip.plan-max {
  background: var(--h-navy);
  color: #fff;
}
.model-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.model-list li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--h-bg-2);
  border: 1px solid var(--h-line);
}
.model-list strong {
  font-weight: 650;
  font-size: 15px;
}
.fam {
  padding: 2px 8px;
  border-radius: 6px;
  font: 700 11.5px var(--font-body);
  color: #fff;
}
.fam-claude {
  background: #b5582f;
}
.fam-gpt {
  background: #10a37f;
}
.fam-gemini {
  background: #3b6fe0;
}
.fam-grok {
  background: #3a3a44;
}
.fam-deepseek {
  background: #4d5fe8;
}
.cr {
  font: 500 12.5px var(--font-mono);
  color: var(--h-muted);
  white-space: nowrap;
}
/* What each AI is good at (1-5, from models.json), under its name */
.skills {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--h-line);
}
.sk {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.sk-l {
  font-size: 11px;
  color: var(--h-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sk-bar {
  display: flex;
  gap: 2px;
}
.sk-bar i {
  flex: 1;
  max-width: 12px;
  height: 5px;
  border-radius: 3px;
  background: #d3ddef;
}
.sk-bar i.on {
  background: var(--h-blue);
}
.group-note {
  margin: 14px 0 0;
  font-size: 13.5px;
  color: var(--h-muted);
}
.fine {
  margin: 18px 0 0;
  font-size: 14px;
  color: var(--h-muted);
}
.how-credits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 40px;
}
.how-credits > div {
  padding: 26px;
  border-radius: 18px;
  background: var(--h-blue-soft);
  border: 1px solid #cddcf7;
}
.how-credits p {
  margin: 10px 0 0;
  color: var(--h-text-2);
}

/* Pricing */
.billing-toggle {
  display: inline-flex;
  padding: 4px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--h-line-strong);
}
.billing-toggle button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 16px;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: var(--h-text-2);
  font: 600 14.5px var(--font-body);
  cursor: pointer;
}
.billing-toggle button.active {
  background: var(--h-navy);
  color: #fff;
}
.save {
  padding: 1px 7px;
  border-radius: 5px;
  background: #dff3e6;
  color: #0b5d2a;
  font-size: 12px;
  font-weight: 700;
}
.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 26px;
}
.plan h3 {
  font-size: 24px;
}
.plan-tag {
  margin: 4px 0 20px;
  color: var(--h-muted);
}
.price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 0;
}
.amount {
  font: 900 54px/1 var(--display);
  font-stretch: 80%;
  letter-spacing: -0.03em;
}
.per {
  color: var(--h-muted);
}
.billed {
  margin: 6px 0 22px;
  min-height: 1.5em;
  font-size: 14px;
  color: var(--h-muted);
}
.plan-btn {
  width: 100%;
}
.perks {
  list-style: none;
  margin: 24px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--h-line);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.perks li {
  position: relative;
  padding-left: 24px;
  color: var(--h-text-2);
  font-size: 15px;
  line-height: 1.45;
}
.perks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  font-weight: 800;
  color: var(--h-blue);
}
.perks strong {
  color: var(--h-text);
}
.plan-pop {
  border: 2px solid var(--h-blue);
  box-shadow: 0 30px 60px -32px rgba(29, 91, 214, 0.55);
}
.badge {
  position: absolute;
  top: -12px;
  left: 24px;
  margin: 0;
  padding: 3px 11px;
  border-radius: 999px;
  background: var(--h-blue);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
}
.renew-note {
  margin: 22px 0 0;
  font-size: 14.5px;
  color: var(--h-muted);
}
.packs-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 36px;
  padding: 24px 26px;
  border-radius: 18px;
  background: var(--h-blue-soft);
  border: 1px solid #cddcf7;
}
.packs-wrap p {
  margin: 6px 0 0;
  color: var(--h-text-2);
}
.packs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.packs li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 130px;
  padding: 12px 16px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--h-line);
  font-size: 14px;
  color: var(--h-text-2);
}
.packs strong {
  font: 850 24px var(--display);
  font-stretch: 84%;
  color: var(--h-text);
}

/* FAQ */
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 56px;
}
.faq-grid .sec-head {
  margin: 0;
}
.faq-list details {
  border-top: 1px solid var(--h-line);
}
.faq-list details:last-child {
  border-bottom: 1px solid var(--h-line);
}
.faq-list summary {
  position: relative;
  list-style: none;
  padding: 18px 44px 18px 0;
  font-weight: 600;
  font-size: 17.5px;
  cursor: pointer;
}
.faq-list summary::-webkit-details-marker {
  display: none;
}
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-52%);
  font: 400 26px/1 var(--font-body);
  color: var(--h-muted);
  transition: transform 0.15s ease;
}
.faq-list details[open] summary::after {
  transform: translateY(-52%) rotate(45deg);
}
.faq-list details p {
  margin: 0;
  padding: 0 0 20px;
  color: var(--h-text-2);
}

/* CTA + footer */
.cta-section {
  padding: 20px 0 100px;
}
.cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  padding: 64px 32px;
  border-radius: 24px;
  text-align: center;
  background: radial-gradient(ellipse at 90% -20%, rgba(90, 162, 255, 0.45), transparent 60%), linear-gradient(160deg, #12398f, #1d5bd6);
  color: #fff;
}
.cta h2,
.cta p {
  color: #fff;
}
.cta .grad-text {
  color: #e3edff;
}
.cta .pill-grad {
  background: #fff;
  color: var(--h-navy) !important;
  box-shadow: 0 3px 0 #9db8ea;
}
.cta .pill-grad:hover {
  background: var(--h-blue-soft);
}
.cta .pill-dark {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff !important;
}
.cta .pill-dark:hover {
  background: rgba(255, 255, 255, 0.12);
}
.cta :focus-visible {
  outline-color: #fff;
}
.cta h2 {
  font-size: clamp(32px, 4.6vw, 58px);
  font-weight: 900;
  font-stretch: 78%;
  text-transform: uppercase;
  letter-spacing: -0.015em;
}
.footer {
  padding: 0 0 48px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  padding: 40px 0 28px;
  border-top: 1px solid var(--h-line);
}
.footer-brand p {
  margin: 10px 0 0;
  color: var(--h-muted);
}
.footer nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer nav a {
  color: var(--h-text-2) !important;
  text-decoration: none;
  font-size: 15px;
}
.footer nav a:hover {
  color: var(--h-blue) !important;
}
.footer-h {
  margin: 0 0 4px;
  font: 600 12px var(--font-mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--h-muted);
}
.footer-fine {
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid var(--h-line);
  font-size: 13px;
  color: var(--h-muted);
}

/* ---------- Responsive ---------- */
@media (min-width: 721px) {
  .hero-title .grad-text {
    white-space: nowrap;
  }
}
@media (max-width: 1180px) {
  .hero {
    min-height: 0;
  }
}
@media (max-width: 980px) {
  .demo-grid,
  .faq-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
  .model-groups,
  .plans,
  .how-credits {
    grid-template-columns: minmax(0, 1fr);
  }
  .plans {
    max-width: 520px;
  }
}
@media (max-width: 720px) {
  .prompt-row {
    gap: 6px;
  }
  .prompt-row .chip-select:not(.menu-ready) {
    gap: 6px;
    padding: 0 8px;
  }
  .prompt-row .model-dot,
  .chip-btn .fam-dot {
    display: none;
  }
  .chip-btn {
    padding: 0 8px;
  }
  .chip-select[data-menu="model"] .chip-menu {
    left: auto;
    right: -50px;
    transform-origin: top right;
  }
  body.home {
    font-size: 16px;
  }
  .wrap {
    padding: 0 18px;
  }
  .hero {
    padding-top: 110px;
  }
  .nav-login {
    display: none;
  }
  .hero-sub {
    font-size: 17px;
  }
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }
  .studio-body {
    grid-template-columns: minmax(0, 1fr);
  }
  .studio-main {
    border-right: none;
  }
  .rf-panel {
    min-height: 170px;
  }
  .section {
    padding: 70px 0;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Resources menu in the top bar (web/partials/nav.html, nav.js) ---------- */
.nav-inner {
  position: relative;
}
.nav-links {
  align-items: center;
}
.nav-drop-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border: none;
  border-radius: 8px;
  background: none;
  color: var(--h-text-2);
  font: 500 15px var(--font-body);
  cursor: pointer;
}
.nav-drop-btn svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.15s;
}
.nav-drop:hover .nav-drop-btn,
.nav-drop.open .nav-drop-btn {
  background: var(--h-blue-soft);
  color: var(--h-blue);
}
.nav-drop:hover .nav-drop-btn svg,
.nav-drop.open .nav-drop-btn svg {
  transform: rotate(180deg);
}
.nav-drop-panel {
  position: absolute;
  top: calc(100% - 6px);
  left: 50%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 28px;
  width: min(980px, calc(100vw - 40px));
  padding: 26px 28px;
  border: 1px solid var(--h-line-strong);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 30px 70px -24px rgba(11, 27, 63, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 6px);
  transition:
    opacity 0.15s,
    transform 0.15s,
    visibility 0s 0.15s;
}
/* A bridge over the gap, so moving the mouse down doesn't close it. */
.nav-drop-panel::before {
  content: "";
  position: absolute;
  inset: -14px 0 auto 0;
  height: 14px;
}
.nav-drop:hover .nav-drop-panel,
.nav-drop.open .nav-drop-panel {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition:
    opacity 0.15s,
    transform 0.15s;
}
.drop-h {
  margin: 0 0 8px;
  color: var(--h-muted);
  font: 600 11.5px var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.drop-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nav-links .drop-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 9px 10px;
  border-radius: 12px;
  color: var(--h-text) !important;
}
.nav-links .drop-item:hover {
  background: var(--h-blue-soft);
}
.drop-ic {
  display: grid;
  flex: none;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--h-line);
  border-radius: 10px;
  background: var(--h-blue-soft);
}
.drop-ic svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--h-blue);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.drop-item strong {
  display: block;
  color: var(--h-text);
  font-size: 14.5px;
  font-weight: 650;
}
.drop-item small {
  display: block;
  margin-top: 1px;
  color: var(--h-muted);
  font-size: 13px;
  line-height: 1.4;
}
.drop-new {
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--h-blue);
  color: #fff;
  font: 700 10.5px var(--font-body);
  font-style: normal;
  vertical-align: 1px;
}

/* ---------- Tutorial block in "How it works" ---------- */
.tutorial {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 32px;
  margin-top: 22px;
  padding: 30px;
}
.tutorial h3 {
  margin: 0 0 8px;
  font-size: 24px;
}
.tutorial-intro p:not(.eyebrow) {
  margin: 0 0 20px;
  color: var(--h-text-2);
}
.tutorial-steps {
  counter-reset: tstep;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.tutorial-steps a {
  position: relative;
  display: block;
  height: 100%;
  padding: 12px 14px 12px 50px;
  border: 1px solid var(--h-line);
  border-radius: 12px;
  background: var(--h-bg-2);
  color: var(--h-text) !important;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}
.tutorial-steps a:hover {
  border-color: var(--h-blue);
  background: var(--h-blue-soft);
}
.tutorial-steps a::before {
  counter-increment: tstep;
  content: counter(tstep);
  position: absolute;
  left: 12px;
  top: 12px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--h-blue);
  color: #fff;
  font: 800 13px var(--display);
}
.tutorial-steps span {
  display: block;
  font-weight: 650;
  font-size: 15px;
}
.tutorial-steps small {
  color: var(--h-muted);
  font-size: 13px;
}
@media (max-width: 860px) {
  .tutorial {
    grid-template-columns: minmax(0, 1fr);
    padding: 22px;
  }
}
@media (max-width: 480px) {
  .tutorial-steps {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Mobile menu (web/partials/nav.html, nav.js) ----------
   Up to 980px wide the links fold into a panel that drops down from the top bar. A cookie banner sits at the
   bottom of the screen above everything (z-index over 30); while one is showing it can set --bx-cookie-h on
   <html> to its height, and the panel stops above it so neither covers the other's buttons. */
.nav-toggle,
.nav-menu-only {
  display: none;
}
@media (max-width: 980px) {
  .nav-inner {
    gap: 12px;
  }
  .nav-cta {
    gap: 12px;
  }
  .nav-toggle {
    order: 5;
    display: inline-grid;
    place-items: center;
    flex: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--h-line-strong);
    border-radius: 12px;
    background: #fff;
    color: var(--h-text);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .nav-toggle:hover {
    border-color: var(--h-blue);
  }
  .nav-toggle-bars {
    position: relative;
    display: block;
    width: 20px;
    height: 14px;
  }
  .nav-toggle-bars i {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease;
  }
  .nav-toggle-bars i:nth-child(1) {
    top: 0;
  }
  .nav-toggle-bars i:nth-child(2) {
    top: 6px;
  }
  .nav-toggle-bars i:nth-child(3) {
    top: 12px;
  }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(1) {
    top: 6px;
    transform: rotate(45deg);
  }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(3) {
    top: 6px;
    transform: rotate(-45deg);
  }
  .nav.menu-open {
    background: #fff;
    border-bottom: 1px solid var(--h-line);
  }
  /* The panel: hidden (and out of the tab order) until the button opens it */
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    max-height: calc(100vh - 72px - var(--bx-cookie-h, 0px));
    max-height: calc(100dvh - 72px - var(--bx-cookie-h, 0px));
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 10px 18px 22px;
    background: #fff;
    border-bottom: 1px solid var(--h-line);
    box-shadow: 0 24px 40px -24px rgba(11, 27, 63, 0.45);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.16s ease, transform 0.16s ease, visibility 0s 0.16s;
  }
  .nav.menu-open .nav-links {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.16s ease, transform 0.16s ease;
  }
  .nav-links > a,
  .nav-links .nav-menu-only {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0 12px;
    border-radius: 10px;
    color: var(--h-text) !important;
    font-size: 17px;
    font-weight: 600;
  }
  .nav-links > a + a,
  .nav-links .nav-drop + a {
    border-top: 1px solid var(--h-line);
    border-radius: 0;
  }
  /* Resources: shown open inside the panel, as a list */
  .nav-drop {
    border-top: 1px solid var(--h-line);
    padding-top: 6px;
  }
  .nav-drop-btn {
    display: none;
  }
  .nav-drop-panel,
  .nav-drop:hover .nav-drop-panel,
  .nav-drop.open .nav-drop-panel {
    position: static;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    width: auto;
    padding: 4px 0 6px;
    border: none;
    border-radius: 0;
    background: none;
    box-shadow: none;
    opacity: 1;
    visibility: inherit;
    transform: none;
    transition: none;
  }
  .nav-drop-panel::before {
    display: none;
  }
  .drop-h {
    margin: 10px 12px 2px;
  }
  .nav-links .drop-item {
    padding: 8px 10px;
  }
  html.nav-locked,
  html.nav-locked body {
    overflow: hidden;
  }
}
@media (prefers-reduced-motion: reduce) {
  .nav-links,
  .nav-toggle-bars i {
    transition: none !important;
  }
}

/* ---------- Hero facts ---------- */
.hero-facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 20px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  color: var(--h-text-2);
  font-size: 14.5px;
}
.hero-facts li {
  position: relative;
  padding-left: 20px;
}
.hero-facts li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--h-blue);
  font-weight: 800;
}

/* ---------- Hero background: Candy Empire building as you scroll (hero-video.js) ---------- */
/* One screen tall, kept still by hero-video.js while the hero scrolls past; .hero-art clips it to the hero. */
.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  z-index: -2;
  display: block;
  width: 100%;
  height: 100vh;
  height: 100lvh;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease;
  will-change: transform;
}
.hero-video.on {
  opacity: 1;
}
/* A light veil so the headline and prompt box stay easy to read, fading to white into the next section. */
.hero-veil {
  display: none;
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.75) 0, rgba(255, 255, 255, 0) 180px),
    radial-gradient(ellipse 58% 52% at 50% 38%, rgba(255, 255, 255, 0.86) 0%, rgba(255, 255, 255, 0.55) 55%, rgba(255, 255, 255, 0.05) 100%),
    linear-gradient(0deg, #ffffff 0, rgba(255, 255, 255, 0) 120px);
}
/* The hero is pinned (sticky) for an extra ~90vh of scrolling while the build plays; hero-video.js sets
   --hero-h (the hero's height) and --hero-stick (how far up it sits, so its bottom shows while pinned). */
.hero-pin.pinned {
  height: calc(var(--hero-h, 980px) + 90vh);
}
.hero-pin.pinned .hero {
  position: sticky;
  top: var(--hero-stick, 0px);
  /* One screen tall while pinned (taller only if the content needs it) */
  min-height: 100vh;
  min-height: 100svh;
  padding-top: clamp(96px, 15vh, 150px);
}
/* Computers only (hero-video.js adds .video-on): the veil shows, and the video replaces the glows. Phones and tablets keep the plain hero. */
.hero.video-on .hero-veil {
  display: block;
}
.hero.video-on .glow {
  display: none;
}

.build-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--h-line);
  background: #cfe0f7;
}

/* Big round play icon and label (the walkthrough's "Play the demo" button) */
.vplay-ic {
  display: grid;
  place-items: center;
  flex: none;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--h-blue);
  border: 3px solid #fff;
  box-shadow: 0 10px 30px -8px rgba(11, 27, 63, 0.6);
  transition: transform 0.15s ease, background 0.15s ease;
}
.vplay-ic svg {
  width: 30px;
  height: 30px;
  margin-left: 4px;
  fill: #fff;
}
.vplay-t {
  display: flex;
  flex-direction: column;
  padding: 8px 14px;
  border-radius: 12px;
  background: rgba(11, 27, 63, 0.78);
  line-height: 1.25;
}
.vplay-t small {
  font-size: 13px;
  font-weight: 500;
  color: #d3e0f7;
}
@media (max-width: 520px) {
  .vplay-ic {
    width: 64px;
    height: 64px;
  }
}

/* ---------- What you can build ---------- */
.build-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.build-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 16px 22px;
}
.build-card h3 {
  margin-top: 4px;
}
.build-card p {
  margin: 0;
  color: var(--h-text-2);
  font-size: 15.5px;
}
.build-card-text {
  padding-top: 22px;
}
/* The illustrated cards (web/assets/build/): nearly square art, so a taller 4:3 frame keeps the whole scene. */
.build-card img[src^="/assets/build/"] {
  aspect-ratio: 4 / 3;
  object-position: center 45%;
  background: #8ec5ff;
}
.build-ic {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--h-blue-soft);
}
.build-ic svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--h-blue);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (max-width: 980px) {
  .build-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .build-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Showreel: a clear play button when the demo is paused or can't start by itself ---------- */
.reel-bigplay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  border: none;
  background: rgba(11, 27, 63, 0.28);
  color: #fff;
  font: 700 18px var(--font-body);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.reel-bigplay[hidden] {
  display: none;
}
.reel-bigplay:hover .vplay-ic {
  transform: scale(1.06);
  background: var(--h-blue-hover);
}
.reel-bigplay:focus-visible {
  outline: 3px solid #fff;
  outline-offset: -6px;
}
/* Phones: over the Studio picture at the top of the stacked demo (46 + 330 of its 960 height), not over the text */
.reel.narrow .reel-bigplay {
  inset: 0 0 auto 0;
  height: calc(376 / 960 * 100%);
  flex-direction: column;
  gap: 10px;
  text-align: center;
  font-size: 16px;
}
.reel.narrow .reel-bigplay .vplay-ic {
  width: 64px;
  height: 64px;
}
