:root {
  --black: #050506;
  --black-soft: #0b0a0f;
  --panel: #121018;
  --border: #262133;
  --white: #f5f5f7;
  --muted: #9d97ab;
  --gold: #d4af37;
  --purple: #7c3aed;
  --purple-light: #a78bfa;

  /* San Francisco isn't licensed for embedding as a downloadable web font —
     -apple-system/BlinkMacSystemFont resolve to real SF Pro on macOS/iOS/iPadOS,
     which is the standard, legitimate way sites get true SF rendering.
     Display = the larger optical cut (headlines, big numerals).
     Text = the smaller optical cut (body copy, UI chrome). */
  --font-display: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-text: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; background: var(--black); }

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Animated dotted-particle background (Three.js), visible through the
   transparent hero section only — sections below it have solid backgrounds
   that naturally cover it as you scroll past. */
.dotted-surface {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.dotted-surface canvas {
  display: block;
}

main,
.site-footer {
  position: relative;
  z-index: 1;
}

h1, h2, h3, h4 {
  font-family: 'Plus Jakarta Sans', var(--font-display);
  font-weight: 700;
  margin: 0 0 0.5em;
  letter-spacing: -0.03em;
}

p { margin: 0 0 1em; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
}

.gold {
  color: var(--white);
}

.purple {
  color: var(--white);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-family: var(--font-text);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--white);
  flex-shrink: 0;
}

.eyebrow.center { justify-content: center; }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(.2, .6, .2, 1), transform 0.8s cubic-bezier(.2, .6, .2, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; opacity: 1; transform: none; }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 5, 6, 0.8);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
}

.logo {
  font-family: 'Plus Jakarta Sans', var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.3px;
}

.logo span {
  color: inherit;
}

.logo.small { font-size: 1.1rem; }

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-family: var(--font-text);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.nav-links a:hover { color: var(--white); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(.2, .6, .2, 1), border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
  font-family: var(--font-text);
}

.btn .icon { width: 18px; height: 18px; }

.btn-white {
  background: var(--white);
  color: var(--black);
}

.btn-white:hover {
  transform: translateY(-2px);
  background: #e0e0e0;
}

.btn-white:active { transform: translateY(0); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--black);
}

.btn-small { padding: 10px 20px; font-size: 0.88rem; }
.btn-large { padding: 17px 32px; font-size: 1.05rem; }

/* Hero */
.hero {
  padding: 170px 0 110px;
  background: transparent;
  position: relative;
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  flex-wrap: wrap;
}

.hero-text {
  flex: 1 1 480px;
  max-width: 560px;
  text-align: left;
}

@media (max-width: 900px) {
  .hero-inner { flex-direction: column; text-align: center; }
  .hero-text { flex: 0 1 auto; max-width: 100%; text-align: center; }
  .hero-actions, .counter-wrap { justify-content: center; }
}

.hero h1 {
  font-family: 'Plus Jakarta Sans', var(--font-display);
  font-size: clamp(2.4rem, 9vw, 6rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 22px;
  letter-spacing: -0.04em;
  line-height: 1;
  animation: heroTitleBounce 0.8s cubic-bezier(.16, 1, .3, 1) both;
  animation-delay: 0.1s;
}

.hero-text .eyebrow,
.hero-sub,
.hero-actions,
.counter-wrap {
  animation: heroTitleBounce 0.8s cubic-bezier(.16, 1, .3, 1) both;
}

.hero-text .eyebrow { animation-delay: 0s; }
.hero-sub { animation-delay: 0.2s; }
.hero-actions { animation-delay: 0.3s; }
.counter-wrap { animation-delay: 0.4s; }

@keyframes heroTitleBounce {
  0% { opacity: 0; transform: translateY(40px); }
  100% { opacity: 1; transform: translateY(-14px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero h1,
  .hero-text .eyebrow,
  .hero-sub,
  .hero-actions,
  .counter-wrap {
    animation: none;
  }
}

.hero-sub {
  max-width: 560px;
  color: var(--muted);
  font-size: 1.15rem;
  margin-bottom: 40px;
  font-family: var(--font-text);
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-start;
  margin-bottom: 48px;
}

.counter-wrap { display: flex; justify-content: flex-start; }

.counter-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 32px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--panel);
}

.counter-number {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
  font-variant-numeric: tabular-nums;
}

.counter-label {
  color: var(--muted);
  font-family: var(--font-text);
  font-size: 0.8rem;
  letter-spacing: 0.3px;
}

/* Odometer-style roll animation shared by every counter number on the site */
.counter-roll {
  position: relative;
  display: inline-block;
  overflow: hidden;
  height: 1.2em;
  line-height: 1.2em;
  vertical-align: bottom;
}

.counter-roll .num-slide {
  display: inline-block;
  transition: transform 0.4s cubic-bezier(.4, 0, .2, 1), opacity 0.4s ease;
}

.counter-roll .num-enter {
  position: absolute;
  left: 0;
  top: 0;
  transform: translateY(100%);
  opacity: 0;
}

.counter-roll .num-enter-active {
  transform: translateY(0);
  opacity: 1;
}

.counter-roll .num-exit-active {
  transform: translateY(100%);
  opacity: 0;
}

/* Hero visual — interactive Bezier easing-curve editor, echoing the
   "customizable, draggable graphs" feature */
.hero-visual {
  flex: 1 1 440px;
  max-width: 560px;
  padding: 36px;
  border-radius: 28px;
  background: var(--panel);
  border: 1px solid var(--border);
}

/* Placed after the base rule above (not the earlier hero media query
   block) — the earlier position was losing to this unconditional rule
   regardless of viewport, since equal-specificity CSS resolves by source
   order, not by whether a media query happened to match. */
@media (max-width: 900px) {
  .hero-visual {
    flex: 0 1 auto;
    margin-top: 48px;
    width: 100%;
    max-width: 560px;
    padding: 22px;
  }
}

.graph-svg {
  width: 100%;
  height: auto;
  display: block;
  touch-action: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.graph-border {
  fill: none;
  stroke: var(--border);
  stroke-width: 1;
}

.graph-grid line {
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 1;
}

.graph-diagonal {
  stroke: rgba(255, 255, 255, 0.18);
  stroke-width: 1;
  stroke-dasharray: 4 5;
}

.graph-label {
  fill: var(--muted);
  font-family: var(--font-text);
  font-size: 12px;
}

.graph-path {
  fill: none;
  stroke: url(#curveGradient);
  stroke-width: 3;
  stroke-linecap: round;
}

.graph-handle-line {
  stroke-width: 1.5;
  stroke-dasharray: 3 5;
}

.graph-handle-line-cyan { stroke: rgba(255, 255, 255, 0.55); }
.graph-handle-line-orange { stroke: rgba(255, 255, 255, 0.55); }

.graph-anchor {
  fill: var(--black);
  stroke: rgba(255, 255, 255, 0.55);
  stroke-width: 2;
}

.graph-anchor.end {
  fill: #f5f5f7;
  stroke: rgba(0, 0, 0, 0.35);
}

.graph-handle {
  cursor: grab;
  transition: r 0.15s ease;
  touch-action: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.graph-handle:hover { r: 9.5; }
.graph-handle:active { cursor: grabbing; }

.graph-handle-cyan {
  fill: var(--white);
}

.graph-handle-orange {
  fill: var(--white);
}

/* Section shared */
section { padding: 130px 0; }

.section-title {
  text-align: center;
  font-size: clamp(1.9rem, 4.2vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.section-sub {
  text-align: center;
  color: var(--muted);
  font-family: var(--font-text);
  max-width: 560px;
  margin: 0 auto;
}

.section-head { text-align: center; margin-bottom: 56px; }

/* Features */
.features { background: transparent; position: relative; }

.features-layout {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}

.features-showcase {
  position: relative;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  z-index: 3;
}

/* Drawer handle */
.drawer-handle {
  width: 34px;
  height: 104px;
  flex-shrink: 0;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: border-color 0.3s ease;
}

.drawer-handle:hover {
  border-color: var(--white);
}

.drawer-chevron {
  width: 20px;
  height: 20px;
  color: var(--white);
  transition: transform 0.45s cubic-bezier(.22, .61, .36, 1);
}

.drawer-handle[aria-expanded="true"] .drawer-chevron {
  transform: rotate(180deg);
}

/* Drawer panel — overlays on top of the layout (doesn't push it via normal
   flex flow) so only cards it actually overlaps need to react to it. Slides
   in left-to-right on open, right-to-left on close. */
.drawer-panel-wrap {
  position: absolute;
  top: 0;
  left: 100%;
  margin-left: 0;
  overflow: hidden;
  width: 0;
  transition: width 1s cubic-bezier(.22, .61, .36, 1), margin-left 1s cubic-bezier(.22, .61, .36, 1);
}

.drawer-panel-wrap.is-open {
  width: min(520px, calc(100vw - 140px));
  margin-left: 16px;
}

.drawer-panel {
  width: min(520px, calc(100vw - 140px));
  padding: 14px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 22px;
  transform: translateX(-100%);
  transition: transform 1s cubic-bezier(.22, .61, .36, 1);
}

.drawer-panel-wrap.is-open .drawer-panel {
  transform: translateX(0);
}

.drawer-title {
  font-family: 'Plus Jakarta Sans', var(--font-display);
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 600;
  margin: 6px 4px 16px;
}

.drawer-image-wrap {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  line-height: 0;
}

.drawer-image {
  width: 100%;
  height: auto;
  display: block;
}

.drawer-hotspots {
  position: absolute;
  inset: 0;
}

.drawer-hotspot {
  position: absolute;
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  outline: none;
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
}

.feature-grid-compact {
  flex: 1 1 auto;
  width: auto;
  max-width: 970px;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-grid-compact .feature-card {
  grid-column: span 1;
  max-width: none;
  transition: opacity 1s cubic-bezier(.22, .61, .36, 1), border-color 0.3s ease, transform 0.3s ease;
}

.feature-grid-compact .feature-card-wide { grid-column: span 2; }

/* A card the open drawer would otherwise overlap fades out instead of
   sliding sideways — with a wide card spanning multiple grid columns,
   shifting it via transform pushed it into its narrow neighbor's space
   instead of clearing it. */
.feature-grid-compact .feature-card.is-covered {
  opacity: 0;
  pointer-events: none;
}

.feature-grid-compact .feature-card:hover {
  transform: translateY(-6px);
}

@media (max-width: 900px) {
  .features-layout { flex-direction: column; align-items: center; }
  .feature-grid-compact { grid-template-columns: 1fr; }
  .feature-grid-compact .feature-card-wide,
  .feature-grid-compact .feature-card-narrow {
    grid-column: span 1;
  }
}

.feature-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 36px 30px;
  flex: 1 1 300px;
  max-width: 340px;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.feature-card:hover {
  border-color: var(--white);
  transform: translateY(-6px);
}

.feature-icon {
  width: 26px;
  height: 26px;
  color: var(--white);
  margin-bottom: 18px;
  display: block;
}

.feature-card h3 {
  font-size: 1.15rem;
  color: var(--white);
  font-family: 'Plus Jakarta Sans', var(--font-display);
  font-weight: 600;
}

.feature-card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
  font-family: var(--font-text);
  font-weight: 400;
}

.time-tracker-widget {
  margin-top: 6px;
}

.tt-label {
  color: var(--muted);
  font-family: var(--font-text);
  font-size: 0.85rem;
}

.tt-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 10px 0 14px;
}

.tt-time {
  display: flex;
  align-items: baseline;
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 1px;
}

/* Matches .tt-cols' flex:1 columns exactly, so each hh/mm/ss number lines
   up with its label below regardless of font/colon rendering width. */
.tt-time-part {
  flex: 1;
  text-align: center;
}

.tt-colon {
  flex: 0 0 auto;
}

.tt-cols {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
}

.tt-cols span {
  color: var(--muted);
  font-family: var(--font-text);
  font-size: 0.75rem;
  text-align: center;
  flex: 1;
}

/* Download */
.download-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  flex-wrap: wrap;
}

.download-info {
  flex: 1 1 400px;
  max-width: 480px;
}

.download-info .section-title,
.download-info .section-sub {
  text-align: left;
  margin: 0 0 1em;
}

.download-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 52px 44px;
  flex: 1 1 400px;
  max-width: 460px;
  text-align: center;
  overflow: hidden;
}

@media (max-width: 900px) {
  .download-layout { flex-direction: column; gap: 28px; }
  .download-info { flex: 0 1 auto; max-width: 100%; text-align: center; }
  .download-info .section-title,
  .download-info .section-sub {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
  .download-card { flex: 0 1 auto; width: 100%; padding: 36px 28px; }
}

.download-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--white);
}

.download-card h3 {
  font-size: 1.4rem;
  color: var(--white);
}

.muted { color: var(--muted); font-family: var(--font-text); font-size: 0.9rem; }

.counter-inline {
  margin-top: 20px;
  color: var(--muted);
  font-family: var(--font-text);
  font-size: 0.95rem;
}

.counter-inline strong {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.1rem;
}

/* Install steps */
.steps {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 960px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px 48px;
}

@media (max-width: 800px) {
  .steps { grid-template-columns: 1fr; gap: 30px; }
}

.steps li {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.step-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--white);
  color: var(--black);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
}

.steps h4 {
  color: var(--white);
  margin-bottom: 4px;
  font-size: 1.05rem;
}

.steps p {
  color: var(--muted);
  margin: 0;
  font-family: var(--font-text);
  font-size: 0.95rem;
}

.steps code {
  background: var(--black-soft);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--white);
  font-size: 0.88em;
}

/* Demo video */
.video-card {
  max-width: 900px;
  margin: 0 auto;
  padding: 12px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 0;
}

.video-card video {
  display: block;
  width: 100%;
  height: auto;
  background: var(--black);
}

/* FAQ */
.faq-layout {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 60px;
  flex-wrap: wrap;
}

.faq-info {
  flex: 1 1 320px;
  max-width: 380px;
}

.faq-info .section-title,
.faq-info .section-sub {
  text-align: left;
  margin: 0 0 1em;
}

.faq-info a {
  color: var(--white);
  text-decoration: none;
  border-bottom: 1px solid var(--white);
}

.faq-info a:hover { color: var(--muted); }

.faq-list {
  flex: 1 1 480px;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (max-width: 900px) {
  .faq-layout { flex-direction: column; gap: 28px; }
  .faq-info { flex: 0 1 auto; max-width: 100%; }
  .faq-info .section-title,
  .faq-info .section-sub {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
  .faq-list { flex: 0 1 auto; width: 100%; max-width: 100%; }
}

.faq-item {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 0;
  transition: border-color 0.2s ease;
}

.faq-item.is-open { border-color: var(--white); }

.faq-question {
  width: 100%;
  cursor: pointer;
  font-weight: 600;
  color: var(--white);
  font-family: var(--font-text);
  font-size: 1em;
  background: none;
  border: none;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
}

.faq-summary-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.faq-icon {
  width: 20px;
  height: 20px;
  color: var(--white);
  flex-shrink: 0;
}

.faq-chevron {
  position: relative;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.faq-chevron::before,
.faq-chevron::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--white);
  transition: transform 0.25s ease;
}

.faq-chevron::before {
  width: 14px;
  height: 2px;
  transform: translate(-50%, -50%);
}

.faq-chevron::after {
  width: 2px;
  height: 14px;
  transform: translate(-50%, -50%);
}

.faq-item.is-open .faq-chevron::after {
  transform: translate(-50%, -50%) rotate(90deg) scaleY(0);
}

/* Smooth open/close: grid-template-rows 0fr -> 1fr auto-sizes to the real
   content height without needing to measure it in JS, and — unlike native
   <details>, which just snaps — actually animates. */
.faq-answer-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}

.faq-item.is-open .faq-answer-wrap {
  grid-template-rows: 1fr;
}

.faq-answer {
  min-height: 0;
  overflow: hidden;
}

.faq-answer p {
  color: var(--muted);
  font-family: var(--font-text);
  margin: 0 22px 18px;
}

.faq-answer p:first-child {
  margin-top: -4px;
}

/* Footer */
.site-footer {
  padding: 48px 0;
  background: var(--black);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.footer-inner p {
  color: var(--muted);
  font-family: var(--font-text);
  font-size: 0.85rem;
  margin: 0;
}

.footer-contact {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin-top: 16px;
}

.footer-contact-label {
  font-family: var(--font-text);
  font-weight: 600;
  color: var(--white);
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
}

.footer-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--white);
  text-decoration: none;
  font-family: var(--font-text);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.footer-link-btn .icon {
  width: 16px;
  height: 16px;
  color: var(--white);
}

.footer-link-btn:hover {
  border-color: var(--white);
  color: var(--muted);
}

/* Responsive */
@media (max-width: 800px) {
  section { padding: 90px 0; }
  .hero { padding: 130px 0 80px; }
  .nav-links { display: none; }
  .graph-handle { r: 18; }
}

/* The two-column Features layout (drawer beside a 2-across card grid) needs
   roughly 920px+ of content width to avoid the cards wrapping to a narrower
   column while the drawer still tries to open at its desktop width — that
   combination caused real horizontal page overflow in the 800-930px range
   (verified empirically, not just visually). Below 930px, open the drawer
   top-to-bottom in normal document flow instead of as an absolute overlay. */
@media (max-width: 930px) {
  .features-showcase {
    width: 100%;
    flex-direction: column;
  }

  /* Horizontal pill sitting under the "Features" heading, with a chevron
     that points down when closed and up when open (matching the
     top-to-bottom drawer), instead of the desktop left/right pointer. */
  .drawer-handle {
    width: 68px;
    height: 34px;
    margin: 0 auto;
  }

  .drawer-chevron { transform: rotate(90deg); }

  .drawer-handle[aria-expanded="true"] .drawer-chevron { transform: rotate(-90deg); }

  .drawer-panel-wrap {
    position: static;
    display: grid;
    grid-template-rows: 0fr;
    width: 100%;
    max-width: none;
    margin-left: 0;
    transition: grid-template-rows 1s cubic-bezier(.22, .61, .36, 1);
  }

  .drawer-panel-wrap.is-open {
    width: 100%;
    grid-template-rows: 1fr;
    margin-top: 16px;
  }

  .drawer-panel {
    width: 100%;
    min-height: 0;
    overflow: hidden;
    transform: translateY(-16px);
    opacity: 0;
    transition: transform 1s cubic-bezier(.22, .61, .36, 1), opacity 1s ease;
  }

  .drawer-panel-wrap.is-open .drawer-panel {
    transform: translateY(0);
    opacity: 1;
  }

  /* Scale the screenshot down to fit, rather than cropping it — the 4
     screenshots have different natural aspect ratios (e.g. "End" is much
     wider/shorter than the others), so forcing them all into one fixed
     box via object-fit: cover cropped some far more than others ("End"
     looked zoomed in). The wrapper shrink-wraps the scaled-down image
     exactly (no letterboxing), which keeps the hotspot math in script.js
     correctly aligned since it already handles the no-crop case. */
  .drawer-panel { text-align: center; }

  .drawer-image-wrap {
    display: inline-block;
    max-width: 100%;
  }

  .drawer-image {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 42vh;
  }
}
