/* ==========================================================================
   INFERISE CODE — V7 ENVIRONMENTAL EDITORIAL PRODUCT STYLESHEET
   Extends /css/inferise.css for /code/ (sandbox.inferise.com/code/)
   ========================================================================== */

:root {
  --header-height: 64px;
  --bg-base: #faf3e9;
  --bg-surface: #FAF5EC;
  --bg-surface-elevated: #fff8ee;
  --bg-surface-hover: #f3e6d6;
  --text-primary: #171e1b;
  --text-secondary: #434d46;
  --text-muted: #586158;
  --border-subtle: #EAE0D2;
  --border-medium: #D8CBB8;
  --border-strong: #BDAE99;
  --accent-primary: #b73d0a;
  --accent-hover: #963311;
  --accent-soft: #F3E2D5;
  --accent-border: #C88E72;
  --status-success: #2E5A36;
  --status-warning: #8A5A10;
  --status-error: #9E171C;
  --shadow-subtle: 0 4px 14px rgba(113, 88, 60, 0.08);
  --shadow-elevated: 0 16px 40px rgba(32, 59, 48, 0.12);
}

/* --------------------------------------------------------------------------
   STICKY PRODUCT HEADER & BRAND LOCKUP
   -------------------------------------------------------------------------- */
.code-page .site-header {
  position: sticky;
  top: 0;
  z-index: 60;
}

.code-page .brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.code-page .brand-divider {
  color: rgba(240, 240, 232, 0.45);
  font-size: 1.25rem;
  font-weight: 300;
  margin: 0 0.1rem;
}

.code-page .brand-subname {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 500;
  color: #F2E5D3;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.code-page .brand-subname:hover {
  text-decoration: none;
  color: #ffffff;
}

/* Multi-column features dropdown on Code page */
.code-page .nav-dropdown-menu {
  width: 340px;
  max-height: 78vh;
  overflow-y: auto;
  background: #FAF5EC;
  border: 1px solid #EAE0D2;
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 18px 42px rgba(23, 30, 27, 0.18);
}

.code-page .dropdown-item {
  border-radius: 8px;
  padding: 8px 10px;
}

.code-page .dropdown-item:hover {
  background: #efe3d2;
  text-decoration: none;
}

.code-page .dropdown-item-title {
  font-weight: 700;
  font-size: 13.5px;
  color: var(--charcoal);
}

.code-page .dropdown-item:hover .dropdown-item-title {
  color: var(--action);
}

/* --------------------------------------------------------------------------
   CODE HERO SECTION (V7 DEEP SAGE + ANIMATED GLAZE WAVES + SPLIT SCREENSHOT)
   -------------------------------------------------------------------------- */
.code-hero {
  background:
    radial-gradient(ellipse at 94% -15%, #89947b 0%, #536b54 23%, transparent 62%),
    radial-gradient(ellipse at 38% 75%, #3e5946 0%, #203b30 75%);
  color: #fff;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(32px, 4.5vw, 56px) 0 clamp(76px, 7.5vw, 108px);
}

.code-hero-glaze {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  overflow: visible;
}

.code-hero-grid {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 0.94fr 1.06fr;
  gap: clamp(28px, 4vw, 52px);
  align-items: center;
}

.code-hero-left {
  width: 100%;
  max-width: 580px;
}

.code-hero-left .kicker {
  color: #ff9a60;
  letter-spacing: 0.035em;
  display: inline-block;
  margin-bottom: 10px;
}

.code-hero-left .hero-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(40px, 4.1vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin: 4px 0 18px;
  color: #fff;
}

.code-hero-left .hero-title em {
  font-style: normal;
  color: #F2E5D3;
}

.code-hero-left .hero-lead {
  color: #F0F0E8;
  font-size: clamp(15.5px, 1.15vw, 18px);
  line-height: 1.55;
  margin-bottom: 22px;
}

.code-hero-right {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.code-hero .hero-shot-container {
  width: 100%;
}

.code-hero .hero-shot-frame {
  position: relative;
  padding: 12px;
  background: linear-gradient(145deg, rgba(245, 223, 197, 0.22), rgba(250, 245, 236, 0.1));
  border: 1px solid rgba(247, 234, 219, 0.35);
  border-radius: 16px;
  box-shadow: 0 24px 56px rgba(15, 28, 22, 0.42);
  backdrop-filter: blur(8px);
  cursor: zoom-in;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}

.code-hero .hero-shot-frame:hover {
  transform: translateY(-3px);
  box-shadow: 0 28px 64px rgba(15, 28, 22, 0.52);
}

.code-hero .hero-shot-frame .shot {
  width: 100%;
  height: auto;
  border-radius: 9px;
  display: block;
}

/* Default to light screenshot for the warm environmental palette */
.hero-shot-dark {
  display: none;
}

.hero-shot-light {
  display: block;
}

/* --------------------------------------------------------------------------
   DOWNLOAD FORMS (HERO & CLOSING CTA)
   -------------------------------------------------------------------------- */
.download-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 520px;
}

@media (min-width: 600px) {
  .download-form {
    flex-direction: row;
    align-items: stretch;
  }
}

.download-input {
  flex: 1;
  background-color: #FAF5EC;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 6px;
  color: #171e1b;
  padding: 11px 15px;
  font-size: 15px;
  outline: none;
  box-shadow: inset 0 1px 2px rgba(23, 30, 27, 0.08);
}

.download-input:focus {
  border-color: #ff9a60;
  box-shadow: 0 0 0 3px rgba(241, 90, 36, 0.28);
}

.download-input::placeholder {
  color: #6c756c;
}

.download-form .btn-primary {
  background: linear-gradient(110deg, #e04f16, #f15a24);
  border-color: transparent;
  color: #fff;
  padding: 11px 22px;
  font-weight: 700;
  white-space: nowrap;
}

.download-form .btn-primary:hover {
  background: linear-gradient(110deg, #c94410, #dc4f1c);
}

.download-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  max-width: 520px;
  margin-top: 10px;
  font-size: 12.5px;
  line-height: 1.45;
  color: #E1E7DD;
  cursor: pointer;
}

.download-consent input {
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: #f15a24;
}

.code-hero-note {
  margin-top: 12px;
  font-size: 12.5px;
  color: #E1E7DD;
}

.code-hero-note strong {
  color: #cde7c7;
}

.code-hero-note a {
  color: #ff9a60;
  text-decoration: underline;
}

.download-error {
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  background-color: #F1D8D1;
  border: 1px solid #C88E72;
  color: #842D20;
  margin-top: 10px;
  max-width: 520px;
}

.download-status {
  font-size: 13.5px;
  color: #F0F0E8;
  margin-top: 10px;
}

.download-status button {
  background: none;
  border: none;
  color: #ff9a60;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

.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;
}

.hidden {
  display: none !important;
}

/* --------------------------------------------------------------------------
   SCREENSHOT ZOOM AFFORDANCES
   -------------------------------------------------------------------------- */
.shot-frame,
.pilot-phone-slot,
.shot-clickable {
  position: relative;
  cursor: zoom-in;
}

.shot-zoom-badge {
  position: absolute;
  bottom: 20px;
  right: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(32, 59, 48, 0.88);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(247, 234, 219, 0.4);
  border-radius: 999px;
  color: #FAF5EC;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
  z-index: 5;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.shot-frame:hover .shot-zoom-badge,
.shot-frame:focus-visible .shot-zoom-badge {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   STOP 01: PROJECT STATUS RIBBON (#ribbon)
   -------------------------------------------------------------------------- */
.sev-waiting     { background-color: #9E171C !important; color: #fff !important; }
.sev-needs-input { background-color: #BF3821 !important; color: #fff !important; }
.sev-permission  { background-color: #CC7A1A !important; color: #fff !important; }
.sev-working     { background-color: #2E5C9E !important; color: #fff !important; }
.sev-idle        { background-color: #296B2E !important; color: #fff !important; }
.sev-neglected   { background-color: #576157 !important; color: #fff !important; }

.ribbon-scroll-runway {
  position: relative;
  height: 360vh;
  padding-top: 16px;
}

.ribbon-sticky-viewport {
  position: sticky;
  top: var(--header-height);
  min-height: calc(100vh - var(--header-height));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(20px, 3vh, 36px) 0;
}

.ribbon-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.ribbon-scroll-hint {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  background-color: #FAF5EC;
  border: 1px solid #EAE0D2;
  padding: 6px 14px;
  border-radius: 999px;
}

.ribbon-step-counter {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--action);
  background-color: #F3E2D5;
  border: 1px solid #C88E72;
  padding: 2px 9px;
  border-radius: 999px;
}

.ribbon-bar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(20px, 2.5vw, 28px);
  background-color: #FAF5EC;
  border: 1px solid #EAE0D2;
  border-radius: 20px;
  box-shadow: 0 12px 34px rgba(113, 88, 60, 0.08);
  margin-top: 18px;
}

.ribbon-telemetry-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.ribbon-telemetry-status {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.ribbon-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #296B2E;
  box-shadow: 0 0 0 3px rgba(41, 107, 46, 0.2);
  animation: ribbon-dot-pulse 2s ease-in-out infinite;
}

@keyframes ribbon-dot-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.25); opacity: 0.75; }
}

.ribbon-telemetry-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.ribbon-telemetry-event {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--action);
  background-color: #F3E2D5;
  border: 1px solid #C88E72;
  padding: 3px 10px;
  border-radius: 999px;
}

.ribbon-step-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.ribbon-step-pill {
  border: 1px solid #DED1BF;
  background-color: #fff8ee;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ribbon-step-pill:hover {
  border-color: var(--action);
  color: var(--charcoal);
}

.ribbon-step-pill.is-active {
  background-color: var(--action);
  border-color: var(--action);
  color: #FFFFFF;
  font-weight: 700;
}

.ribbon-scroll-progress {
  width: 100%;
  height: 4px;
  background-color: #E6D9C7;
  border-radius: 999px;
  overflow: hidden;
}

.ribbon-scroll-progress-fill {
  height: 100%;
  width: 16.66%;
  background: linear-gradient(90deg, #e04f16, #304b3b);
  transition: width 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.ribbon-chips-track {
  width: 100%;
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(12px, 2vw, 24px);
  padding: 22px 0 12px;
  position: relative;
}

.chip-group {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 108px;
  flex-shrink: 0;
  cursor: pointer;
  padding: 12px 8px 10px;
  border-radius: 12px;
  border: 1px solid transparent;
  opacity: 0.52;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.chip-group:hover {
  opacity: 0.88;
  background-color: #fff8ee;
  border-color: #DED1BF;
}

.chip-group.is-active {
  opacity: 1;
  background-color: #fff8ee;
  border-color: var(--action);
  box-shadow: 0 10px 24px rgba(113, 88, 60, 0.14);
}

.chip {
  width: 66px;
  height: 66px;
  border-radius: 12px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(23, 30, 27, 0.18);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s ease;
}

.chip-group.is-active .chip {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 24px rgba(23, 30, 27, 0.24);
}

.chip-project-name {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.chip-group.is-active .chip-project-name {
  color: var(--charcoal);
  font-weight: 600;
}

.chip-caption {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  text-align: center;
}

.chip-group.is-active .chip-caption {
  color: var(--charcoal);
  font-weight: 700;
}

.chip-event-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translate(-50%, 6px) scale(0.92);
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background-color: #203b30;
  border: 1px solid #536b54;
  color: #fff;
  box-shadow: 0 4px 12px rgba(23, 30, 27, 0.2);
  z-index: 6;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.chip-group.is-active .chip-event-badge,
.chip-event-badge.is-visible {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

@keyframes ribbon-gear-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.chip-group.is-active .chip.sev-working .chip-svg {
  animation: ribbon-gear-spin 6.5s linear infinite;
}

.ribbon-live-explainer {
  width: 100%;
  padding: 14px 18px;
  background: linear-gradient(125deg, #f5dfc5, #efe0cc);
  border: 1px solid #decbb4;
  border-radius: 12px;
  font-size: 15px;
  color: var(--charcoal);
}

.ribbon-live-explainer strong {
  color: var(--action);
  font-family: var(--font-mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* --------------------------------------------------------------------------
   STOP 02: FRICTION VS. FLOW SAND STRIP (#matrix)
   -------------------------------------------------------------------------- */
.code-sand-band > .container {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(28px, 3.5vw, 42px) clamp(24px, 3.5vw, 44px);
  background: linear-gradient(125deg, #f5dfc5, #eacbad);
  border-radius: 24px;
  display: block !important;
}

.code-sand-band > .container > div:first-child {
  border-right: 0 !important;
  padding-right: 0 !important;
}

.friction-flow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.friction-flow-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  padding: 18px 20px;
  background-color: #fff8ede0;
  border: 1px solid #fff8;
  border-radius: 14px;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.friction-flow-card:hover {
  border-color: var(--action);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(113, 88, 60, 0.1);
  text-decoration: none;
}

.ff-friction {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.ff-friction-icon {
  color: var(--status-error);
  font-family: var(--font-mono);
  font-weight: 700;
}

.ff-solution {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-weight: 700;
  font-size: 16px;
  color: var(--charcoal);
}

.ff-solution-arrow {
  color: var(--action);
  font-family: var(--font-mono);
  transition: transform 0.2s ease;
}

.friction-flow-card:hover .ff-solution-arrow {
  transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   STOP 03: SCROLL ADVENTURE TOUR (#features)
   -------------------------------------------------------------------------- */
.adventure-section {
  position: relative;
  padding-top: clamp(44px, 5vw, 72px);
  padding-bottom: clamp(48px, 6vw, 84px);
}

.adventure-compass {
  position: sticky;
  top: var(--header-height);
  z-index: 40;
  background-color: rgba(250, 243, 233, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid #EAE0D2;
  border-bottom: 1px solid #EAE0D2;
}

.adventure-compass-inner {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-top: 10px;
  padding-bottom: 10px;
}

.adventure-compass-inner::-webkit-scrollbar {
  display: none;
}

.compass-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid transparent;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.18s ease;
}

.compass-pill:hover {
  color: var(--charcoal);
  background-color: #efe4d4;
  text-decoration: none;
}

.compass-pill.is-active {
  color: var(--action);
  background-color: #F3E2D5;
  border-color: #C88E72;
  font-weight: 700;
}

.compass-num {
  font-family: var(--font-mono);
  font-size: 11px;
  opacity: 0.8;
}

.adventure-progress-track {
  height: 3px;
  width: 100%;
  background-color: #EAE0D2;
  overflow: hidden;
}

.adventure-progress-bar {
  height: 100%;
  width: 12.5%;
  background: linear-gradient(90deg, #e04f16, #304b3b);
  transition: width 0.12s linear;
}

.adventure-story-track {
  position: relative;
  width: 100%;
}

.adventure-layout {
  display: block;
  position: relative;
}

.adventure-stage-col {
  position: sticky;
  top: calc(var(--header-height) + 3.1rem);
  width: 100%;
  min-width: 0;
  height: calc(100vh - var(--header-height) - 3.1rem);
  min-height: 650px;
  padding-top: clamp(20px, 3.5vh, 36px);
  padding-bottom: clamp(18px, 3vh, 30px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  z-index: 10;
}

.adventure-stage {
  position: relative;
  width: 100%;
  flex: 1;
  min-height: clamp(440px, 58vh, 740px);
  max-height: 760px;
  background: linear-gradient(145deg, #EFE2CF, #FAF5EC);
  border: 1px solid #DED1BF;
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(32, 59, 48, 0.12);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  cursor: zoom-in;
}

.adventure-stage-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 45%, rgba(183, 61, 10, 0.1) 0%, transparent 68%);
  pointer-events: none;
  z-index: 0;
  transition: background 0.5s ease;
}

.adventure-stage-hud {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 48px;
  flex-shrink: 0;
  padding: 0 18px;
  background-color: #FAF5EC;
  border-bottom: 1px solid #EAE0D2;
  cursor: default;
}

.stage-hud-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.stage-window-dots {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.stage-window-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.stage-window-dots span:nth-child(1) { background-color: #D96B52; }
.stage-window-dots span:nth-child(2) { background-color: #D9A44B; }
.stage-window-dots span:nth-child(3) { background-color: #4D8B5E; }

.stage-hud-title {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--charcoal);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stage-hud-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.stage-hud-subviews {
  display: flex;
  align-items: center;
  gap: 4px;
  background-color: #efe4d4;
  border: 1px solid #DED1BF;
  padding: 2px;
  border-radius: 999px;
}

.subview-btn {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 11.5px;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.subview-btn.is-active {
  background-color: var(--action);
  color: #FFFFFF;
  font-weight: 700;
}

.stage-footer-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.stage-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  padding: 0;
  background-color: #C8BDAE;
  cursor: pointer;
  transition: all 0.2s ease;
}

.stage-dot.is-active {
  width: 22px;
  background-color: var(--action);
}

.stage-enlarge-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background-color: #fff8ee;
  border: 1px solid #D8CBB8;
  color: var(--charcoal);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.stage-enlarge-btn:hover {
  border-color: var(--action);
  color: var(--action);
}

.adventure-canvas {
  position: relative;
  flex: 1;
  width: 100%;
  min-height: 0;
  overflow: hidden;
  z-index: 2;
}

.adventure-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 22px;
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
  transform: translate3d(0, 28px, 0) scale(0.97);
  transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1), transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.adventure-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(0, 0, 0) scale(1);
}

.adventure-slide.is-scroll-driven {
  transition: none !important;
}

.adventure-slide img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  /* Corners and hairline edge are baked into the PNGs (scripts/normalize-screenshots.py); the shadow follows them. */
  filter: drop-shadow(0 18px 34px rgba(36, 42, 40, 0.22));
}

/* Default Project Workflows slide to Light mode to match V7 palette */
.workflow-shot-dark { display: none; }
.workflow-shot-light { display: block; }
[data-workflow-preview="dark"] .workflow-shot-dark { display: block !important; }
[data-workflow-preview="dark"] .workflow-shot-light { display: none !important; }
[data-workflow-preview="light"] .workflow-shot-dark { display: none !important; }
[data-workflow-preview="light"] .workflow-shot-light { display: block !important; }

.adventure-bottom-deck {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  flex-shrink: 0;
  z-index: 6;
}

.adventure-card {
  grid-area: 1 / 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background-color: #FAF5EC;
  border: 1px solid #DED1BF;
  border-radius: 14px;
  padding: 16px 22px;
  box-shadow: 0 12px 30px rgba(113, 88, 60, 0.1);
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, 8px, 0);
  transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1), transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.adventure-card.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(0, 0, 0);
}

.adventure-card-main {
  min-width: 0;
  flex: 1;
}

.adventure-card-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.adventure-step-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--action);
  background-color: #F3E2D5;
  border: 1px solid #C88E72;
  padding: 2px 8px;
  border-radius: 999px;
}

.adventure-card h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(19px, 1.6vw, 24px);
  margin: 0;
}

.adventure-summary {
  font-size: 14.5px;
  color: var(--text-secondary);
  margin: 0;
}

.adventure-highlights {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.adventure-chip {
  font-family: var(--font-mono);
  font-size: 11.5px;
  padding: 4px 10px;
  border-radius: 6px;
  background-color: #efe4d4;
  border: 1px solid #DED1BF;
  color: var(--charcoal);
  white-space: nowrap;
}

.workflow-patterns-grid {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 6px;
}

.workflow-pattern-btn {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  background-color: #fff8ee;
  border: 1px solid #DED1BF;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
}

.workflow-pattern-btn:hover,
.workflow-pattern-btn.is-active {
  border-color: var(--action);
  background-color: #F3E2D5;
}

.wp-title {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--charcoal);
}

.workflow-pattern-btn.is-active .wp-title {
  color: var(--action);
}

.adventure-narrative {
  position: relative;
  margin-top: calc(-100vh + var(--header-height) + 3.1rem);
  z-index: 1;
  pointer-events: none;
  width: 100%;
}

.adventure-step {
  height: 68vh;
  width: 100%;
  scroll-margin-top: calc(var(--header-height) + 64px);
}

/* Taller so the last chapter's second slide gets its own pinned scroll before the stage unsticks. */
.adventure-step:last-child {
  height: 110vh;
}

/* --------------------------------------------------------------------------
   STOP 04: PILOT PRO FOR IPHONE (#companion)
   -------------------------------------------------------------------------- */
.pilot-scroll-runway {
  position: relative;
  height: 360vh;
  margin-top: clamp(32px, 5vw, 56px);
}

.pilot-sticky-viewport {
  position: sticky;
  top: var(--header-height);
  min-height: calc(100vh - var(--header-height));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(16px, 2vh, 28px) 0;
}

.pilot-story-card {
  padding: clamp(24px, 3vw, 38px);
  background: radial-gradient(circle at 100% 0%, #f5dfc5 0%, transparent 58%), #FAF5EC;
  border: 1px solid #DED1BF;
  border-radius: 24px;
  box-shadow: 0 18px 44px rgba(32, 59, 48, 0.1);
  overflow: hidden;
}

.pilot-story-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: clamp(24px, 3.5vw, 44px);
  align-items: center;
  margin-top: 20px;
}

.pilot-step-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pilot-step-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 10px;
  background-color: #fff8ee;
  border: 1px solid #EAE0D2;
  text-align: left;
  cursor: pointer;
  transition: all 0.22s ease;
}

.pilot-step-item:hover,
.pilot-step-item.is-active {
  border-color: var(--action);
  background-color: #F3E2D5;
  transform: translateX(4px);
}

.pilot-step-idx {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--action);
  padding-top: 2px;
}

.pilot-step-body strong {
  display: block;
  font-size: 15px;
  color: var(--charcoal);
  margin-bottom: 2px;
}

.pilot-step-body span {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.pilot-phones-carousel {
  position: relative;
  width: 100%;
  height: clamp(390px, 46vh, 460px);
  display: flex;
  align-items: center;
  user-select: none;
}

.pilot-phone-slot {
  position: absolute;
  left: 0;
  top: 50%;
  width: clamp(168px, 15vw, 200px);
  will-change: transform, opacity, filter;
  transform: translate3d(0, -50%, 0);
}

.pilot-phone-slot img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 26px;
  border: 2px solid #D8CBB8;
  box-shadow: 0 18px 38px rgba(23, 30, 27, 0.28);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.pilot-phone-slot.is-active img,
.pilot-phone-slot:hover img {
  border-color: var(--action);
  box-shadow: 0 22px 46px rgba(183, 61, 10, 0.24), 0 16px 34px rgba(23, 30, 27, 0.3);
}

.pilot-phone-label {
  display: block;
  text-align: center;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.pilot-phone-slot.is-active .pilot-phone-label {
  color: var(--action);
  font-weight: 700;
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   STOP 05: EXECUTIVE ANALYTICS & CRAFTSMANSHIP STRIP (#analytics)
   -------------------------------------------------------------------------- */
.analytics-dashboard-wrap {
  margin-top: 24px;
  background-color: #FAF5EC;
  border: 1px solid #DED1BF;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(113, 88, 60, 0.1);
}

.analytics-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 18px 24px;
  border-bottom: 1px solid #EAE0D2;
  background: linear-gradient(125deg, #f5dfc5, #efe0cc);
}

.analytics-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.analytics-live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: #296B2E;
  box-shadow: 0 0 8px rgba(41, 107, 46, 0.5);
}

.analytics-meta-pills {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.analytics-pill {
  font-family: var(--font-mono);
  font-size: 11.5px;
  padding: 4px 11px;
  border-radius: 999px;
  background-color: #fff8ee;
  border: 1px solid #DED1BF;
  color: var(--text-secondary);
}

.analytics-pill.active {
  background-color: var(--action);
  border-color: var(--action);
  color: #fff;
  font-weight: 700;
}

.analytics-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.analytics-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
}

.analytics-kpi-card {
  background-color: #fff8ee;
  border: 1px solid #EAE0D2;
  border-radius: 12px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.analytics-kpi-label {
  font-size: 11.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: var(--font-mono);
  font-weight: 700;
}

.analytics-kpi-value {
  font-family: var(--display);
  font-size: 32px;
  font-weight: 500;
  color: var(--charcoal);
  line-height: 1.05;
}

.analytics-kpi-sub {
  font-size: 13px;
  color: var(--text-secondary);
}

.analytics-kpi-badge {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  color: #296B2E;
  margin-top: 4px;
}

.analytics-detail-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 20px;
}

.analytics-chart-panel {
  background-color: #fff8ee;
  border: 1px solid #EAE0D2;
  border-radius: 12px;
  padding: 20px;
}

.analytics-chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.analytics-chart-title {
  font-weight: 700;
  font-size: 15px;
  color: var(--charcoal);
}

.analytics-bars {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.analytics-bar-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.analytics-bar-meta {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

.analytics-bar-track {
  height: 8px;
  background-color: #EAE0D2;
  border-radius: 999px;
  overflow: hidden;
}

.analytics-bar-fill {
  height: 100%;
  border-radius: 999px;
  background-color: var(--action);
}

.analytics-bar-fill.success {
  background-color: #304b3b;
}

.analytics-security-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background-color: #E6ECE2;
  border: 1px solid #C5D2BE;
  border-radius: 12px;
}

.analytics-security-icon {
  flex-shrink: 0;
  color: #296B2E;
}

.analytics-security-text {
  font-size: 14px;
  color: var(--charcoal);
}

.craft-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 36px;
}

.craft-pill {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  background-color: #FAF5EC;
  border: 1px solid #EAE0D2;
  border-radius: 12px;
}

.craft-icon {
  color: var(--action);
  flex-shrink: 0;
  margin-top: 2px;
}

.craft-text strong {
  display: block;
  font-size: 15px;
  color: var(--charcoal);
  margin-bottom: 3px;
}

.craft-text > span {
  display: block;
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.5;
}

kbd {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.15;
  padding: 2px 6px;
  margin: 1px;
  border-radius: 4px;
  border: 1px solid #D8CBB8;
  background: #fff8ee;
  color: var(--charcoal);
}

.kbd-group {
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   PRICING SECTION (#pricing)
   -------------------------------------------------------------------------- */
.pricing-header {
  max-width: 720px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 28px;
  align-items: stretch;
}

.pricing-tile {
  background-color: #FAF5EC;
  border: 1px solid #EAE0D2;
  border-radius: 18px;
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 28px rgba(113, 88, 60, 0.06);
  position: relative;
}

.pricing-tile-featured {
  background: linear-gradient(155deg, #fffcf7 0%, #f6e7d3 100%);
  border: 1.5px solid #D99B78;
  box-shadow: 0 16px 38px rgba(183, 61, 10, 0.10);
}

.pricing-tile-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pricing-tier-kicker {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--action);
}

.pricing-badge {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--action);
  color: #fff;
  padding: 3px 10px;
  border-radius: 999px;
}

.pricing-tier-name {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 500;
  color: var(--charcoal);
  margin: 6px 0 8px;
  letter-spacing: -0.025em;
}

.pricing-price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 4px 0 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid #E5D9C8;
}

.pricing-amount {
  font-family: var(--display);
  font-size: clamp(34px, 2.8vw, 44px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--charcoal);
}

.pricing-period {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}

.pricing-summary {
  font-size: 14.5px;
  line-height: 1.52;
  color: var(--text-secondary);
  margin-bottom: 18px;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  flex: 1;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--charcoal);
}

.pricing-check {
  width: 17px;
  height: 17px;
  color: var(--action);
  flex-shrink: 0;
  margin-top: 2px;
}

.pricing-cta {
  width: 100%;
  margin-top: auto;
}

.pricing-tile .btn-secondary {
  border-color: #C8C4BA;
  color: var(--charcoal);
}

.pricing-tile .btn-secondary:hover {
  background-color: #EFE5D8;
}

.pricing-tile .btn-primary {
  background: linear-gradient(110deg, #e04f16, #f15a24);
}

@media (max-width: 960px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   SYSTEM REQUIREMENTS & FAQ (#requirements, #faq)
   -------------------------------------------------------------------------- */
.requirements-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.8fr);
  gap: clamp(28px, 4vw, 52px);
  align-items: start;
}

.requirements-card {
  background-color: #FAF5EC;
  border: 1px solid #EAE0D2;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(113, 88, 60, 0.06);
}

.requirements-row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 18px;
  align-items: baseline;
  padding: 16px 24px;
  border-bottom: 1px solid #EAE0D2;
}

.requirements-row:last-child {
  border-bottom: none;
}

.requirements-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--action);
}

.faq-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid #DED1BF;
}

.faq-item {
  border-bottom: 1px solid #DED1BF;
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  color: var(--charcoal);
  font-family: var(--display);
  font-size: 21px;
  font-weight: 500;
}

.faq-trigger:hover {
  color: var(--action);
}

.faq-chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--action);
  transition: transform 0.2s ease;
}

.faq-item.faq-open .faq-chevron {
  transform: rotate(180deg);
}

.faq-content {
  padding-bottom: 20px;
  color: var(--text-secondary);
  line-height: 1.65;
  font-size: 15.5px;
}

/* --------------------------------------------------------------------------
   CLOSING DOWNLOAD SECTION (#download)
   -------------------------------------------------------------------------- */
#download {
  background: transparent;
  isolation: isolate;
  overflow: hidden;
  padding: 120px 0 88px;
  text-align: center;
  color: #fff;
  position: relative;
}

#download > .container {
  position: relative;
  z-index: 2;
}

#download h2 {
  color: #fff;
}

#download .lead-text {
  color: #F0F0E8;
}

/* --------------------------------------------------------------------------
   SCREENSHOT GALLERY LIGHTBOX MODAL (V7 EDITORIAL PALETTE)
   -------------------------------------------------------------------------- */
body.gallery-open {
  overflow: hidden !important;
}

.gallery-dialog {
  border: none;
  margin: 0;
  padding: 0;
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  background: transparent;
  overflow: hidden;
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}

.gallery-dialog[open] {
  display: flex;
  flex-direction: column;
}

.gallery-dialog::backdrop {
  background-color: rgba(24, 37, 34, 0.9);
  backdrop-filter: blur(14px);
}

.gallery-backdrop {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.gallery-shell {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px 32px 24px;
  z-index: 2;
}

.gallery-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  gap: 16px;
  z-index: 10;
}

.gallery-meta-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.gallery-kicker {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ff9a60;
  background-color: rgba(241, 90, 36, 0.16);
  border: 1px solid #f36218;
  padding: 4px 12px;
  border-radius: 999px;
}

.gallery-counter,
.gallery-hints {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: #E1E7DD;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.gallery-hero-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FAF5EC;
  border: 1px solid #DED1BF;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12px;
  color: var(--charcoal);
  cursor: pointer;
}

.gallery-hero-toggle .hero-toggle-action {
  color: var(--action);
  font-weight: 700;
}

.gallery-btn-action,
.gallery-btn-close {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #FAF5EC;
  border: 1px solid #DED1BF;
  color: var(--charcoal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.gallery-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  gap: 20px;
  min-height: 0;
  padding: 12px 0;
}

.gallery-nav-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #FAF5EC;
  border: 1px solid #DED1BF;
  color: var(--charcoal);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  z-index: 15;
}

.gallery-nav-btn:hover {
  border-color: var(--action);
  color: var(--action);
}

.gallery-viewport {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  height: 100%;
  width: 100%;
}

.gallery-image-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 100%;
  max-width: 100%;
}

.gallery-img {
  max-height: calc(78vh - 130px);
  max-width: min(90vw, 1280px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
}

.gallery-image-frame.is-mobile-shot .gallery-img {
  max-height: calc(74vh - 110px);
  max-width: min(85vw, 350px);
  border-radius: 32px;
}

.gallery-caption-card {
  max-width: 820px;
  width: 100%;
  margin: 0 auto;
  background: #FAF5EC;
  border: 1px solid #DED1BF;
  border-radius: 14px;
  padding: 16px 22px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gallery-caption-title {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 500;
  color: var(--charcoal);
  margin: 0;
}

.gallery-caption-note {
  font-size: 14.5px;
  color: var(--text-secondary);
  margin: 0;
}

.gallery-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  padding-top: 8px;
  border-top: 1px solid #EAE0D2;
}

.gallery-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #C8BDAE;
  border: none;
  padding: 0;
  cursor: pointer;
}

.gallery-dot.active {
  width: 22px;
  border-radius: 999px;
  background-color: var(--action);
}

/* --------------------------------------------------------------------------
   RESPONSIVE MEDIA QUERIES
   -------------------------------------------------------------------------- */
@media (max-width: 1050px) {
  .code-hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .code-hero-left {
    max-width: 100%;
  }
  .friction-flow-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .analytics-detail-grid,
  .requirements-layout {
    grid-template-columns: 1fr;
  }
  .craft-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .adventure-stage-col {
    top: calc(var(--header-height) + 2.65rem);
    height: calc(100svh - var(--header-height) - 2.65rem);
    min-height: 440px;
    padding-top: 12px;
    padding-bottom: 12px;
    gap: 10px;
  }
  .adventure-stage {
    min-height: 220px;
    max-height: none;
  }
  .stage-window-dots,
  .stage-footer-dots,
  .stage-enlarge-btn span {
    display: none;
  }
  .adventure-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
  }
  .adventure-highlights {
    justify-content: flex-start;
  }
  .workflow-patterns-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }
  .pilot-story-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .pilot-step-item:not(.is-active) .pilot-step-body span {
    display: none;
  }
  .pilot-phones-carousel {
    height: clamp(250px, 34svh, 310px);
    overflow: hidden;
  }
  .pilot-phone-slot {
    width: clamp(112px, 31vw, 146px);
  }
}

@media (max-width: 720px) {
  .ribbon-scroll-runway {
    height: auto;
  }
  .ribbon-sticky-viewport {
    position: relative;
    top: 0;
    min-height: auto;
    padding: 36px 0;
  }
  .ribbon-step-pills {
    display: none;
  }
  .ribbon-chips-track {
    flex-wrap: wrap;
  }
  .friction-flow-grid,
  .craft-strip {
    grid-template-columns: 1fr;
  }
  .requirements-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .gallery-hints {
    display: none;
  }
}
