/* ───────────────────────────────────────────────────────────────
   Loopwork — black/orange, glass panels, smooth scroll
   Single accent: #F97316 (orange)
   Display: Geist Sans · Body: Inter
   ─────────────────────────────────────────────────────────────── */

:root {
  --bg: #0a0a0a;
  --bg-elev: #111111;
  --surface: #161616;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f5f5f5;
  --text-dim: #a3a3a3;
  --text-mute: #737373;
  --accent: #F97316;
  --accent-soft: rgba(249, 115, 22, 0.12);
  --accent-glow: rgba(249, 115, 22, 0.45);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-lg: 0 30px 80px -20px rgba(0,0,0,0.6), 0 8px 24px -12px rgba(0,0,0,0.4);
  --font-display: "Geist", "Geist Sans", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1140px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ─── Reset / base ─── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

::selection { background: var(--accent); color: #0a0a0a; }

/* ─── Skip link ─── */
.skip-link {
  position: absolute; top: -40px; left: 12px;
  background: var(--accent); color: #0a0a0a; padding: 8px 12px;
  border-radius: 8px; font-weight: 600; z-index: 100;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* ─── Glass surface ─── */
.glass {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

/* ─── Layout ─── */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 96px 24px;
  position: relative;
}
.section--soft {
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.015));
  border-block: 1px solid var(--border);
}
.section::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: min(60%, 420px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
  opacity: 0.6;
  pointer-events: none;
}
.section__head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}
.section__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 8px 0 0;
}
.section__lede {
  color: var(--text-dim);
  margin-top: 16px;
  font-size: 17px;
}
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0;
  background: linear-gradient(90deg, var(--accent), #fbbf24, var(--accent));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 6s linear infinite;
}
@keyframes shimmer {
  0% { background-position: 0% 0; }
  100% { background-position: 200% 0; }
}
.accent { color: var(--accent); }

/* ─── Nav ─── */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  padding: 14px 24px;
  background: rgba(10,10,10,0.7);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid var(--border);
}
.nav__brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em;
}
.nav__logo { width: 28px; height: 28px; }
.nav__links { display: flex; gap: 28px; }
.nav__links a {
  font-size: 14px; color: var(--text-dim);
  transition: color .15s;
}
.nav__links a:hover { color: var(--text); }
.nav__toggle {
  display: none; background: none; border: 1px solid var(--border);
  border-radius: 8px; padding: 8px; width: 40px; height: 40px;
  flex-direction: column; gap: 4px; align-items: center; justify-content: center;
  position: relative;
}
.nav__toggle span {
  display: block; width: 18px; height: 1.5px; background: var(--text);
  transition: transform .2s, opacity .2s;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}
.mobile-menu {
  position: fixed; top: 70px; right: 12px; left: 12px;
  display: none; flex-direction: column; gap: 8px;
  padding: 16px; z-index: 40;
}
.mobile-menu[data-open="true"] { display: flex; }
.mobile-menu a { padding: 12px 14px; border-radius: 10px; color: var(--text); }
.mobile-menu a:hover { background: rgba(255,255,255,0.04); }
.mobile-menu .btn { margin-top: 8px; }

/* ─── Buttons ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid transparent;
  transition: transform .15s var(--ease), background .15s, border-color .15s, box-shadow .25s;
  white-space: nowrap;
  min-height: 44px;
}
.btn svg { width: 14px; height: 14px; }
.btn--primary {
  background: var(--accent); color: #0a0a0a;
  box-shadow: 0 8px 24px -10px var(--accent-glow);
}
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 14px 30px -10px var(--accent-glow); }
.btn--primary:active { transform: translateY(0); }
.btn--pulse {
  animation: pulse-attn 6s ease-in-out infinite;
}
@keyframes pulse-attn {
  0%, 90%, 100% { box-shadow: 0 8px 24px -10px var(--accent-glow); }
  45%          { box-shadow: 0 8px 24px -10px var(--accent-glow), 0 0 0 0 var(--accent-glow); }
}
.btn--ghost {
  background: transparent; color: var(--text);
  border-color: var(--border-strong);
}
.btn--ghost:hover { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.24); }
.btn--ghost:active { transform: translateY(0); }
.btn--lg { padding: 16px 24px; font-size: 15px; }
.btn--block { display: flex; width: 100%; }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ─── Hero ─── */
.hero {
  position: relative;
  padding: 100px 24px 120px;
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(800px 400px at 80% -10%, rgba(249,115,22,0.18), transparent 60%),
    radial-gradient(700px 400px at -10% 110%, rgba(249,115,22,0.10), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg) 100%);
}
.hero__bg .orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.55;
  animation: drift 20s ease-in-out infinite, pulse-orb 6s ease-in-out infinite;
}
.orb--1 { width: 380px; height: 380px; top: -80px; right: -80px; background: var(--accent); }
.orb--2 { width: 280px; height: 280px; bottom: -60px; left: -60px; background: #c2410c; animation-delay: -8s, -3s; }
@keyframes drift {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(20px, -30px); }
}
@keyframes pulse-orb {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.08); }
}
.grid {
  position: absolute; inset: 0; opacity: 0.18;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}
.hero__inner {
  max-width: 880px; margin: 0 auto;
  padding: 56px 40px;
  text-align: center;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(36px, 6.4vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin: 12px 0 18px;
}
.hero__sub {
  color: var(--text-dim);
  font-size: clamp(16px, 1.8vw, 19px);
  max-width: 620px;
  margin: 0 auto 32px;
}
.hero__actions {
  display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: center;
  margin-bottom: 28px;
}
.hero__bullets {
  display: flex; flex-wrap: wrap; gap: 8px 22px;
  justify-content: center;
  list-style: none; padding: 0;
  color: var(--text-dim);
  font-size: 14px;
}
.hero__bullets li { display: inline-flex; align-items: center; gap: 6px; }
.hero__bullets span { color: var(--accent); font-weight: 700; }

/* ─── Works-with row ─── */
.tools {
  max-width: var(--max); margin: 0 auto;
  padding: 32px 24px 48px;
  text-align: center;
}
.tools__label {
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-mute); margin: 0 0 18px;
}
.tools__row {
  display: flex; flex-wrap: wrap; gap: 8px 14px;
  justify-content: center;
}
.tools__row span {
  font-family: var(--font-display);
  font-size: 14px; font-weight: 500;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-dim);
  background: rgba(255,255,255,0.02);
  transition: transform .2s var(--ease), border-color .2s, color .2s;
}
.tools__row span:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  color: var(--text);
}

/* ─── Stat strip ─── */
.stats {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px 24px 48px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.stat {
  padding: 28px 24px;
  text-align: center;
  transition: transform .25s var(--ease), border-color .25s;
}
.stat:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-soft), 0 12px 30px -16px var(--accent-glow);
}
.stat__num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(32px, 4vw, 44px);
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 6px;
  line-height: 1;
}
.stat__label {
  font-size: 14px;
  color: var(--text-dim);
  margin: 0;
}

/* ─── Cards (services / case studies) ─── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.card {
  padding: 28px;
  transition: transform .25s var(--ease), border-color .25s, box-shadow .25s;
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-soft), 0 14px 30px -16px var(--accent-glow);
}
.card__tag {
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 12px;
}
.card h3 {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}
.card p { color: var(--text-dim); margin: 0 0 8px; font-size: 15px; }
.card p:last-child { margin-bottom: 0; }
.card__pain strong, .card__fix strong { color: var(--text); }

/* ─── Steps ─── */
.steps {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  counter-reset: step;
}
.step {
  padding: 32px 28px;
  position: relative;
  transition: transform .25s var(--ease), border-color .25s;
}
.step:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}
.step__num {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 14px; font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  margin-bottom: 16px;
}
.step h3 {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 600;
  margin: 0 0 8px; letter-spacing: -0.01em;
}
.step p { color: var(--text-dim); margin: 0; font-size: 15px; }

/* ─── Workflow templates (interactive) ─── */
.workflows {
  display: grid;
  gap: 20px;
}
.wf {
  padding: 24px;
  transition: border-color .25s, box-shadow .25s;
}
.wf:hover {
  border-color: var(--border-strong);
}
.wf.is-playing {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-soft), 0 18px 40px -22px var(--accent-glow);
}
.wf__head h3 {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
}
.wf__head p { color: var(--text-dim); margin: 0 0 18px; font-size: 14px; }

/* The step list is a horizontal strip on desktop, vertical timeline on mobile. */
.wf__steps {
  list-style: none; padding: 0; margin: 0;
  display: flex;
  gap: 12px;
  counter-reset: step;
  overflow-x: auto;
  scrollbar-width: thin;
  padding-bottom: 4px;
}
.wf__steps::-webkit-scrollbar { height: 6px; }
.wf__steps::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 999px; }

.wf__step {
  flex: 1 1 0;
  min-width: 200px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-align: left;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  color: inherit;
  font: inherit;
  min-height: 84px;
  position: relative;
  transition: transform .2s var(--ease), border-color .2s, background .2s, box-shadow .25s;
}
.wf__step:hover,
.wf__step:focus-visible {
  transform: translateY(-2px);
  border-color: var(--accent);
  background: var(--accent-soft);
  outline: none;
}
.wf__step.is-active {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 1px var(--accent-glow), 0 12px 24px -14px var(--accent-glow);
}
.wf__stepNum {
  flex: 0 0 28px;
  width: 28px; height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  border: 1px solid var(--accent);
}
.wf__stepBody {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 14px;
  line-height: 1.4;
}
.wf__stepBody strong {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
}
.wf__stepBody em {
  font-style: normal;
  color: var(--text-dim);
  font-size: 13px;
}

/* When the parent .wf is playing, light up each step in sequence.
   The cycle is 4s; stagger 6 steps across that window. */
@keyframes step-flash {
  0%, 70%, 100% {
    border-color: var(--border);
    background: rgba(255,255,255,0.02);
    box-shadow: none;
  }
  10%, 60% {
    border-color: var(--accent);
    background: var(--accent-soft);
    box-shadow: 0 0 0 1px var(--accent-glow), 0 12px 24px -14px var(--accent-glow);
  }
}
.wf.is-playing .wf__step {
  animation: step-flash 4s linear infinite;
}
.wf.is-playing[data-steps="4"] .wf__step:nth-child(1) { animation-delay: 0s; }
.wf.is-playing[data-steps="4"] .wf__step:nth-child(2) { animation-delay: 1s; }
.wf.is-playing[data-steps="4"] .wf__step:nth-child(3) { animation-delay: 2s; }
.wf.is-playing[data-steps="4"] .wf__step:nth-child(4) { animation-delay: 3s; }
.wf.is-playing[data-steps="5"] .wf__step:nth-child(1) { animation-delay: 0s; }
.wf.is-playing[data-steps="5"] .wf__step:nth-child(2) { animation-delay: 0.8s; }
.wf.is-playing[data-steps="5"] .wf__step:nth-child(3) { animation-delay: 1.6s; }
.wf.is-playing[data-steps="5"] .wf__step:nth-child(4) { animation-delay: 2.4s; }
.wf.is-playing[data-steps="5"] .wf__step:nth-child(5) { animation-delay: 3.2s; }

.wf__play {
  margin-top: 16px;
  font-size: 13px;
  padding: 10px 16px;
  min-height: 40px;
}
.wf__play svg { transition: transform .25s var(--ease); }
.wf.is-playing .wf__play svg { transform: rotate(90deg); }

/* ─── Pricing ─── */
.pricing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 820px;
  margin: 0 auto;
}
.price {
  padding: 36px 28px;
  position: relative;
  text-align: left;
  display: flex;
  flex-direction: column;
  transition: transform .25s var(--ease), border-color .25s, box-shadow .25s;
}
.price:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-soft), 0 14px 30px -16px var(--accent-glow);
}
.price::before {
  content: ""; position: absolute; inset: -1px;
  border-radius: var(--radius);
  padding: 1px;
  background: linear-gradient(140deg, var(--accent), transparent 40%, transparent 60%, var(--accent));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.price__name {
  font-family: var(--font-display);
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 8px;
}
.price__desc {
  color: var(--text-dim);
  margin: 0 0 20px;
  font-size: 15px;
}
.price__list {
  list-style: none; padding: 0;
  margin: 0 0 24px;
  text-align: left;
  flex: 1;
}
.price__list li {
  padding: 10px 0 10px 26px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-dim);
  position: relative;
}
.price__list li::before {
  content: "✓";
  position: absolute; left: 0; top: 10px;
  color: var(--accent); font-weight: 700;
}
.pricing__note {
  text-align: center; color: var(--text-dim);
  font-size: 14px; max-width: 620px; margin: 32px auto 0;
}
.pricing__note strong { color: var(--text); }

/* ─── FAQ ─── */
.faq { display: grid; gap: 12px; max-width: 760px; margin: 0 auto; }
.faq__item {
  padding: 0;
  overflow: hidden;
  transition: border-color .2s;
}
.faq__item[open] { border-color: var(--border-strong); }
.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px;
  transition: color .15s;
}
.faq__item summary:hover { color: var(--accent); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  font-size: 22px; font-weight: 300; color: var(--accent);
  transition: transform .25s var(--ease);
  flex-shrink: 0;
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p {
  margin: 0;
  padding: 0 24px 20px;
  color: var(--text-dim);
  font-size: 15px;
}

/* ─── CTA + Footer ─── */
.cta {
  padding: 64px 24px;
  max-width: var(--max); margin: 0 auto;
}
.cta__inner {
  padding: 56px 32px;
  text-align: center;
  background:
    radial-gradient(600px 200px at 50% 0%, var(--accent-soft), transparent 70%),
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
}
.cta__inner h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.cta__inner p { color: var(--text-dim); margin: 0 0 28px; font-size: 17px; }
.cta__email { margin-top: 24px !important; font-size: 14px !important; }
.cta__email a { color: var(--accent); border-bottom: 1px solid currentColor; }

.footer {
  border-top: 1px solid var(--border);
  padding: 40px 24px 96px;
  margin-top: 40px;
}
.footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  text-align: center;
  color: var(--text-dim);
  font-size: 14px;
}
.footer__brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}
.footer__meta { margin-top: 8px; }
.footer__meta a { color: var(--accent); }
.footer__copy { margin-top: 16px; color: var(--text-mute); font-size: 13px; }

/* ─── Mobile sticky CTA ─── */
.mobile-cta {
  position: fixed;
  bottom: 16px; left: 16px; right: 16px;
  display: none;
  background: var(--accent);
  color: #0a0a0a;
  text-align: center;
  font-weight: 600;
  padding: 16px;
  border-radius: 999px;
  box-shadow: 0 12px 30px -10px var(--accent-glow);
  z-index: 30;
  min-height: 52px;
}

/* ─── Reveal animations ─── */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ─── Responsive ─── */
@media (max-width: 880px) {
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__toggle { display: inline-flex; }
  .hero { padding: 64px 20px 88px; }
  .hero__inner { padding: 36px 24px; }
  .section { padding: 72px 20px; }
  .section__head { margin-bottom: 40px; }
  .mobile-cta { display: block; }
  body { padding-bottom: 80px; }
  .footer { padding-bottom: 120px; }

  /* Tone down hero orbs on mobile for perf */
  .hero__bg .orb { filter: blur(60px); opacity: 0.4; }

  /* Tools row becomes a horizontal scroller so pills stay one-line */
  .tools__row {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 8px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    mask-image: linear-gradient(90deg, transparent, black 24px, black calc(100% - 24px), transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, black 24px, black calc(100% - 24px), transparent);
  }
  .tools__row::-webkit-scrollbar { display: none; }
  .tools__row span { flex: 0 0 auto; }
}

/* Vertical timeline for workflows on phones/tablets */
@media (max-width: 720px) {
  .wf { padding: 20px; }
  .wf__steps {
    flex-direction: column;
    overflow: visible;
  }
  .wf__step {
    min-width: 0;
    width: 100%;
  }
  .wf__step:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 28px;
    top: 100%;
    width: 2px;
    height: 12px;
    background: var(--border-strong);
  }
  .wf.is-playing[data-steps="4"] .wf__step:nth-child(1),
  .wf.is-playing[data-steps="4"] .wf__step:nth-child(2),
  .wf.is-playing[data-steps="4"] .wf__step:nth-child(3),
  .wf.is-playing[data-steps="4"] .wf__step:nth-child(4),
  .wf.is-playing[data-steps="5"] .wf__step:nth-child(1),
  .wf.is-playing[data-steps="5"] .wf__step:nth-child(2),
  .wf.is-playing[data-steps="5"] .wf__step:nth-child(3),
  .wf.is-playing[data-steps="5"] .wf__step:nth-child(4),
  .wf.is-playing[data-steps="5"] .wf__step:nth-child(5) {
    animation-delay: 0s; /* override: simpler per-step toggling handled in JS at this width */
  }
}

@media (max-width: 520px) {
  .tools__row span { font-size: 13px; padding: 6px 12px; }
  .hero__bullets { font-size: 13px; gap: 6px 16px; }
  .stat { padding: 22px 18px; }
  .price { padding: 28px 22px; }
  .cta__inner { padding: 40px 22px; }
}

/* Larger screens — give the hero room to breathe */
@media (min-width: 1200px) {
  .hero { padding: 120px 24px 140px; }
  .section { padding: 120px 24px; }
}

/* Reduced-motion: skip workflow flash entirely */
@media (prefers-reduced-motion: reduce) {
  .wf.is-playing .wf__step {
    animation: none;
    border-color: var(--border);
    background: rgba(255,255,255,0.02);
    box-shadow: none;
  }
  .eyebrow { animation: none; background: var(--accent); -webkit-text-fill-color: var(--accent); }
}