/* ============================================================
   Automations Research — style.css
   Brand: Ink Navy #16273B / Signal Orange #FF5A2A (accent only)
          Slate #5F7186 / Off-White #F5F8FC / White cards
   Type:  Space Grotesk — 700 headlines, 500 body/UI
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* color */
  --ink: #16273B;
  --ink-700: #21364f;          /* slightly lifted navy for dark-section layering */
  --ink-900: #0E1B2B;          /* deepest navy for make-style dark sections */
  --orange: #FF5A2A;
  --orange-600: #ec4a1c;       /* hover/active for CTA */
  --coral: #FF7A4D;            /* orange-derived warm tone for gradients */
  --amber: #FFB45C;            /* orange-derived warm highlight for gradients */
  --slate: #5F7186;
  --offwhite: #F5F8FC;
  --white: #ffffff;

  --line: #e2e9f1;             /* hairline borders on light */
  --line-dark: rgba(245,248,252,.14);

  /* warm brand gradient (buttons, accent text, glows) */
  --grad-warm: linear-gradient(120deg, var(--orange), var(--coral) 55%, var(--amber));

  /* spacing scale */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;

  /* radius */
  --r-sm: 8px; --r-md: 14px; --r-lg: 22px; --r-pill: 999px;

  /* layered, navy-tinted shadows (low opacity) */
  --shadow-card:  0 1px 2px rgba(22,39,59,.05), 0 6px 18px rgba(22,39,59,.07);
  --shadow-float: 0 2px 6px rgba(22,39,59,.07), 0 16px 40px rgba(22,39,59,.13);
  --shadow-cta:   0 6px 18px rgba(255,90,42,.30);
  /* frosted glass: navy-tinted depth + faint warm rim + inner top highlight */
  --shadow-glass: 0 1px 2px rgba(22,39,59,.05), 0 14px 40px rgba(22,39,59,.10), 0 0 0 1px rgba(255,255,255,.4) inset;
  --glow-orange: 0 8px 30px rgba(255,90,42,.35);

  /* motion */
  --ease-spring: cubic-bezier(.34, 1.3, .5, 1);
  --ease-out: cubic-bezier(.2, .6, .2, 1);

  --maxw: 1140px;
  --header-h: 72px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: "Space Grotesk", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-weight: 500;
  color: var(--ink);
  /* ambient gradient mesh over off-white — subtle, so glass surfaces read against gentle color */
  background:
    radial-gradient(40% 30% at 12% 8%, rgba(255,90,42,.07), transparent 60%),
    radial-gradient(45% 35% at 88% 14%, rgba(255,180,92,.09), transparent 62%),
    radial-gradient(50% 40% at 78% 88%, rgba(22,39,59,.07), transparent 60%),
    radial-gradient(45% 35% at 10% 82%, rgba(255,122,77,.06), transparent 60%),
    var(--offwhite);
  background-attachment: fixed;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
}
/* one slow-drifting warm blob for life behind everything */
body::before {
  content: ""; position: fixed; z-index: -1; top: -20vh; left: 50%; width: 70vw; height: 70vw;
  max-width: 900px; max-height: 900px; transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgba(255,90,42,.10), rgba(255,180,92,.06) 40%, transparent 70%);
  filter: blur(40px); opacity: .9;
  animation: drift 24s var(--ease-out) infinite alternate;
}
@keyframes drift {
  0%   { transform: translateX(-50%) translateY(0) scale(1); }
  100% { transform: translateX(-46%) translateY(40px) scale(1.12); }
}
/* stop every ambient/gradient animation when reduced motion is requested */
@media (prefers-reduced-motion: reduce) {
  body::before, .hero::before, .hero__mark::before, .spin, .cta-band::before,
  .flow__link::after, .ba__arrow, .pipe__link::after, .hub__lines circle, .hub__chip { animation: none !important; }
  .btn::before { display: none; }
  .flow__link::after { opacity: 1; }
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font-family: inherit; cursor: pointer; }

/* ---------- Typography ---------- */
h1, h2, h3 { font-weight: 700; line-height: 1.1; letter-spacing: -0.03em; color: var(--ink); }
h1 { font-size: clamp(2.4rem, 5.2vw, 3.9rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.35rem); letter-spacing: -0.02em; }

/* Korean line-breaking: break only at word boundaries (not mid-word, which
   leaves an orphaned trailing syllable like "들."), and balance heading lines.
   Scoped to Korean via the lang attribute the toggle sets on <html>. */
html[lang="ko"] { word-break: keep-all; overflow-wrap: break-word; }
h1, h2, h3, .lead { text-wrap: balance; }

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: var(--s-4);
  padding: 6px 14px; border-radius: var(--r-pill);
  background: rgba(255,255,255,.6);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}
.eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--grad-warm); box-shadow: 0 0 8px rgba(255,90,42,.6);
}
.eyebrow--accent { color: var(--orange); border-color: rgba(255,90,42,.35); background: rgba(255,90,42,.07); }

/* gradient-clipped accent text */
.grad-text {
  background: var(--grad-warm); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--slate); max-width: 56ch; }
.muted { color: var(--slate); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--s-5); }
.section { padding-block: clamp(var(--s-8), 9vw, var(--s-9)); }
.section--tight { padding-block: clamp(var(--s-7), 6vw, var(--s-8)); }
.section-head { max-width: 60ch; margin-bottom: var(--s-7); }
.center { text-align: center; margin-inline: auto; }
.center .lead { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-weight: 700; font-size: .98rem; letter-spacing: -0.01em;
  padding: 14px 26px; border-radius: var(--r-pill);
  border: 1px solid transparent;
  background: var(--grad-warm); background-size: 140% 140%; background-position: 0% 50%;
  color: var(--white);
  box-shadow: var(--glow-orange);
  transition: transform .25s var(--ease-spring), box-shadow .25s var(--ease-out), background-position .4s var(--ease-out);
}
/* light sheen that sweeps across on hover (transform/opacity only) */
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .6s var(--ease-out); opacity: 0;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(255,90,42,.42); background-position: 100% 50%; }
.btn:hover::before { transform: translateX(120%); opacity: 1; }
.btn:active { transform: translateY(0) scale(.99); }
.btn:focus-visible { outline: 3px solid rgba(255,90,42,.45); outline-offset: 3px; }

.btn--block { width: 100%; justify-content: center; }
.btn--light {
  background: rgba(255,255,255,.78); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: var(--ink); box-shadow: var(--shadow-glass);
}
.btn--light::before { display: none; }
.btn--light:hover { background: rgba(255,255,255,.92); box-shadow: var(--shadow-float); }

/* text/ghost link */
.link {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700; color: var(--ink);
  border-bottom: 2px solid transparent; padding-bottom: 2px;
  transition: color .2s var(--ease-out), border-color .2s var(--ease-out), transform .2s var(--ease-out);
}
.link:hover { color: var(--orange); border-color: var(--orange); }
.link:focus-visible { outline: 3px solid rgba(255,90,42,.4); outline-offset: 3px; border-radius: 2px; }
.link--light { color: var(--offwhite); }
.link--light:hover { color: var(--white); border-color: var(--orange); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s var(--ease-out), border-color .25s var(--ease-out);
}
.header.is-stuck { box-shadow: 0 1px 0 var(--line), 0 8px 24px rgba(22,39,59,.06); border-color: var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.header__logo { display: inline-flex; }
.header__logo svg, .header__logo img { height: 38px; width: auto; }

.nav { display: flex; align-items: center; gap: var(--s-6); }
.nav__links { display: flex; align-items: center; gap: var(--s-6); }
.nav__link {
  font-weight: 500; color: var(--ink); position: relative; padding: 6px 0;
  transition: color .2s var(--ease-out);
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: var(--orange); transform: scaleX(0); transform-origin: left;
  transition: transform .25s var(--ease-spring);
}
.nav__link:hover { color: var(--orange); }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: var(--ink); }
.nav__link:focus-visible { outline: 3px solid rgba(255,90,42,.4); outline-offset: 4px; border-radius: 3px; }

.nav__cta { padding: 10px 20px; font-size: .92rem; }

/* language toggle (EN ↔ KO) */
.nav__lang {
  font: inherit; font-weight: 500; font-size: .9rem; color: var(--ink);
  background: rgba(255,255,255,.6); border: 1px solid var(--line); border-radius: var(--r-pill);
  padding: 8px 15px; line-height: 1; white-space: nowrap;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: color .2s var(--ease-out), border-color .2s var(--ease-out),
              box-shadow .2s var(--ease-out), transform .15s var(--ease-out);
}
.nav__lang:hover { color: var(--orange); border-color: rgba(255,90,42,.4); box-shadow: var(--shadow-card); }
.nav__lang:active { transform: scale(.97); }
.nav__lang:focus-visible { outline: 3px solid rgba(255,90,42,.4); outline-offset: 3px; }

/* services dropdown menu */
.nav__item.has-menu { position: relative; }
.nav__menubtn {
  background: none; border: 0; cursor: pointer; font: inherit; font-weight: 500;
  color: var(--ink); display: inline-flex; align-items: center; gap: 7px;
}
.nav__caret {
  width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  border-radius: 1px; transform: translateY(-2px) rotate(45deg);
  transition: transform .25s var(--ease-out);
}
.has-menu.is-open .nav__caret { transform: translateY(1px) rotate(-135deg); }
.nav__menu {
  position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%) translateY(-8px);
  min-width: 230px; display: grid; gap: 2px; padding: 8px; margin: 0;
  background: rgba(255,255,255,.82); -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid rgba(255,255,255,.65); border-radius: var(--r-md); box-shadow: var(--shadow-glass);
  opacity: 0; pointer-events: none; z-index: 60;
  transition: opacity .2s var(--ease-out), transform .25s var(--ease-spring);
}
.has-menu.is-open .nav__menu { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.nav__menu a {
  display: block; padding: 11px 13px; border-radius: var(--r-sm);
  font-weight: 500; font-size: .95rem; color: var(--ink); white-space: nowrap;
  transition: background-color .2s var(--ease-out), color .2s var(--ease-out);
}
.nav__menu a:hover { background: rgba(255,90,42,.08); color: var(--orange); }
.nav__menu a:focus-visible { outline: 3px solid rgba(255,90,42,.4); outline-offset: 2px; }

/* hamburger */
.nav__toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line);
  background: var(--white); border-radius: var(--r-sm); padding: 0;
  align-items: center; justify-content: center;
  transition: box-shadow .2s var(--ease-out), transform .15s var(--ease-out);
}
.nav__toggle:hover { box-shadow: var(--shadow-card); }
.nav__toggle:active { transform: scale(.96); }
.nav__toggle:focus-visible { outline: 3px solid rgba(255,90,42,.4); outline-offset: 3px; }
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
  content: ""; display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform .25s var(--ease-out), opacity .2s var(--ease-out);
}
.nav__toggle span { position: relative; }
.nav__toggle span::before { position: absolute; top: -6px; }
.nav__toggle span::after  { position: absolute; top: 6px; }
.nav.is-open .nav__toggle span { background: transparent; }
.nav.is-open .nav__toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav.is-open .nav__toggle span::after  { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(var(--s-8), 8vw, 120px); }
.hero::before {
  /* richer animated gradient aura: warm orange/amber + navy depth, slow drift */
  content: ""; position: absolute; inset: -10% -5% 0; z-index: -2;
  background:
    radial-gradient(40% 50% at 82% 12%, rgba(255,90,42,.16), transparent 60%),
    radial-gradient(38% 46% at 95% 38%, rgba(255,180,92,.16), transparent 62%),
    radial-gradient(55% 60% at 6% 92%, rgba(22,39,59,.10), transparent 58%),
    radial-gradient(40% 44% at 30% 10%, rgba(255,122,77,.10), transparent 60%),
    radial-gradient(90% 90% at 50% 0%, #ffffff, transparent 70%);
  animation: hero-aura 18s var(--ease-out) infinite alternate;
}
@keyframes hero-aura {
  0%   { transform: scale(1) translateY(0); }
  100% { transform: scale(1.08) translateY(-14px); }
}
.hero::after {
  /* subtle SVG grain for depth */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.035'/%3E%3C/svg%3E");
}
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: var(--s-8); align-items: center; }
.hero__actions { display: flex; align-items: center; gap: var(--s-5); flex-wrap: wrap; margin-top: var(--s-6); }
.hero h1 { margin-bottom: var(--s-5); }
.hero .lead { font-size: clamp(1.1rem, 1.8vw, 1.3rem); }

.hero__mark { position: relative; display: grid; place-items: center; }
/* soft warm glow halo behind the loop mark */
.hero__mark::before {
  content: ""; position: absolute; z-index: -1; width: 78%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,90,42,.28), rgba(255,180,92,.16) 45%, transparent 70%);
  filter: blur(28px); animation: float 7s var(--ease-out) infinite alternate;
}
.hero__mark svg, .hero__mark img { width: min(360px, 78%); height: auto; filter: drop-shadow(0 24px 50px rgba(22,39,59,.18)); }
.spin { transform-origin: 50% 50%; animation: spin 20s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0% { transform: translateY(0); } 100% { transform: translateY(-14px); } }

/* ---------- Hero slider ---------- */
.hero__slides { display: grid; }
.hero__slide {
  grid-area: 1 / 1;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out), visibility 0s linear .6s;
}
.hero__slide.is-active {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
}
.hero__dots { display: flex; gap: 10px; justify-content: center; margin-top: var(--s-6); }
.hero__dot {
  width: 10px; height: 10px; border-radius: var(--r-pill); border: 0; padding: 0; cursor: pointer;
  background: rgba(22,39,59,.18);
  transition: background .2s var(--ease-out), transform .15s var(--ease-out), width .3s var(--ease-out);
}
.hero__dot:hover { background: rgba(22,39,59,.4); }
.hero__dot.is-active { background: var(--orange); width: 26px; }
.hero__dot:focus-visible { outline: 3px solid rgba(255,90,42,.4); outline-offset: 3px; }
.hero__dot:active { transform: scale(.9); }

/* Stat cluster (right side of lead-gen slide) */
.hero__stats { display: grid; gap: var(--s-4); margin: 0; padding: 0; list-style: none; }
.stat {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: var(--s-5) var(--s-6); box-shadow: var(--shadow-card);
  display: flex; align-items: baseline; gap: var(--s-4);
}
.stat__num { font-size: clamp(1.8rem, 3.4vw, 2.4rem); font-weight: 700; line-height: 1; letter-spacing: -.03em; color: var(--orange); flex: 0 0 auto; }
.stat__label { color: var(--slate); font-size: .95rem; line-height: 1.45; }

@media (prefers-reduced-motion: reduce) {
  .hero__slide { transition: opacity .2s linear, visibility 0s linear .2s; transform: none; }
  .hero__slide.is-active { transition: opacity .2s linear; }
}

/* Hover-reactive headline letters (split by JS; desktop/fine-pointer only) */
.hero h1 .hero-word { display: inline-block; }            /* keep words whole; wrap only between words */
.hero h1 .hero-char { display: inline-block; will-change: transform;
  transition: transform .18s var(--ease-out), color .18s var(--ease-out); }
/* accent word: each split letter carries its own gradient clip
   (splitting breaks a single parent background-clip:text) */
.hero h1 .grad-text .hero-char { background: var(--grad-warm);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (prefers-reduced-motion: reduce) {
  .hero h1 .hero-char { transition: none; }
}

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: var(--s-5); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: var(--s-6);
  box-shadow: var(--shadow-card);
  transition: transform .3s var(--ease-spring), box-shadow .3s var(--ease-out), border-color .3s var(--ease-out);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-float); border-color: #d4deea; }
.card h3 { margin-bottom: var(--s-2); }
.card p { color: var(--slate); }

/* Real-example walkthrough cards (home #what-we-build) */
.example { display: flex; flex-direction: column; gap: var(--s-4); }
.example__head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-3); }
.example__head h3 { margin: 0; }
.example__save {
  flex: 0 0 auto; font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--orange); background: rgba(255,90,42,.08); border: 1px solid rgba(255,90,42,.22);
  border-radius: var(--r-pill); padding: 5px 11px; white-space: nowrap;
}
.example__flow { list-style: none; margin: 0; padding: 0; }
.example__flow li { position: relative; padding: 0 0 var(--s-3) var(--s-5); color: var(--ink); font-size: .92rem; line-height: 1.45; }
.example__flow li::before {
  content: ""; position: absolute; left: 2px; top: 5px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--orange); box-shadow: 0 0 0 4px rgba(255,90,42,.12);
}
.example__flow li::after { content: ""; position: absolute; left: 6px; top: 12px; bottom: -2px; width: 2px; background: rgba(255,90,42,.20); }
.example__flow li:last-child { padding-bottom: 0; }
.example__flow li:last-child::after { display: none; }
.example__result { margin: 0; font-weight: 700; color: var(--ink); font-size: .95rem; }
.example__foot { margin-top: auto; display: grid; gap: var(--s-4); padding-top: var(--s-1); }
.example__tools { display: flex; flex-wrap: wrap; gap: 6px; }
.example__tool {
  font-size: .72rem; font-weight: 500; color: var(--slate); background: rgba(22,39,59,.05);
  border: 1px solid var(--line); border-radius: var(--r-pill); padding: 3px 9px; white-space: nowrap;
}
.example__link { align-self: start; }
/* keep the "Real examples" heading on one line where there's room
   (it would otherwise wrap inside the 60ch section-head cap); on small
   screens it still wraps so it never overflows the viewport */
@media (min-width: 768px) {
  #what-we-build .section-head { max-width: none; }
  #what-we-build .section-head h2 { white-space: nowrap; }
}

/* ---------- Glassmorphism surfaces (make-style frosted panels) ---------- */
.card, .panel, .price, .step, .pain, .vstep, .faq, .reassure li {
  background: rgba(255,255,255,.72);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(255,255,255,.65);
  box-shadow: var(--shadow-glass);
}
.faq { padding: var(--s-3) var(--s-6); border-radius: var(--r-lg); }
.card:hover, .price:hover {
  box-shadow: var(--shadow-glass), 0 22px 50px rgba(22,39,59,.14), 0 10px 30px rgba(255,90,42,.10);
  border-color: rgba(255,255,255,.85);
}
.price--featured {
  border-color: rgba(255,90,42,.55);
  box-shadow: var(--shadow-glass), 0 18px 44px rgba(255,90,42,.20);
}
/* graceful fallback where backdrop-filter is unsupported */
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .card, .panel, .price, .step, .pain, .vstep, .faq, .reassure li { background: var(--white); }
}

/* pain items — minimal, surface layered below cards */
.pain { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s-5); box-shadow: var(--shadow-card); }
.pain__num { font-weight: 700; color: var(--orange); font-size: .85rem; letter-spacing: .12em; }
.pain p { margin-top: var(--s-2); color: var(--ink); }
.pain-close { font-size: clamp(1.2rem, 2.2vw, 1.6rem); font-weight: 700; letter-spacing: -.02em; max-width: 30ch; margin: var(--s-7) auto 0; text-align: center; }

/* numbered steps row */
.step { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-6); box-shadow: var(--shadow-card); }
.step__n { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-pill); background: var(--ink); color: var(--offwhite); font-weight: 700; margin-bottom: var(--s-4); }

/* ---------- Pricing cards ---------- */
.price { display: flex; flex-direction: column; position: relative; }
.price--featured { border-color: var(--orange); box-shadow: var(--shadow-float); }
.price__tag {
  position: absolute; top: -12px; left: var(--s-6);
  background: var(--orange); color: var(--white); font-size: .72rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; padding: 5px 12px; border-radius: var(--r-pill);
  box-shadow: var(--shadow-cta);
}
.price__name { font-size: 1.35rem; }
.price__pitch { color: var(--slate); margin-top: var(--s-1); }
.price__amount { font-size: 2rem; font-weight: 700; letter-spacing: -.03em; margin: var(--s-4) 0 var(--s-1); }
.price__amount span { font-size: .95rem; font-weight: 500; color: var(--slate); }
.price__for { font-size: .92rem; color: var(--slate); border-top: 1px solid var(--line); padding-top: var(--s-4); margin-top: var(--s-4); }
.price__list { margin: var(--s-4) 0 var(--s-6); display: grid; gap: var(--s-2); }
.price__list li { position: relative; padding-left: 26px; color: var(--ink); }
.price__list li::before {
  content: ""; position: absolute; left: 0; top: .55em; width: 14px; height: 8px;
  border-left: 2px solid var(--orange); border-bottom: 2px solid var(--orange);
  transform: rotate(-45deg);
}
.price .btn { margin-top: auto; }

/* reassurance row */
.reassure { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); margin-top: var(--s-7); }
.reassure li { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s-5); color: var(--slate); box-shadow: var(--shadow-card); }

/* ---------- Big vertical steps (how-it-works) ---------- */
.vsteps { display: grid; gap: var(--s-6); max-width: 820px; }
.vstep { display: grid; grid-template-columns: 72px 1fr; gap: var(--s-5); align-items: start; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-6); box-shadow: var(--shadow-card); }
.vstep__n { font-size: 2.2rem; font-weight: 700; color: var(--orange); line-height: 1; letter-spacing: -.04em; }
.vstep h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); margin-bottom: var(--s-2); }
.vstep p { color: var(--slate); }
@media (max-width: 520px) { .vstep { grid-template-columns: 1fr; } }

/* ---------- Service dropdowns (reuse FAQ accordion) ---------- */
.dropdowns { display: grid; gap: var(--s-4); max-width: 820px; }
.dropdown .faq__btn { font-size: clamp(1.1rem, 1.8vw, 1.3rem); }
.svc-intro { color: var(--slate); font-size: 1rem; margin: 0 0 var(--s-4); max-width: 60ch; }
.svc-list { display: grid; margin: 0; padding: 0; }
.svc-item { display: grid; gap: 2px; padding: var(--s-3) 0; border-top: 1px solid var(--line); }
.svc-item:first-child { border-top: 0; padding-top: 0; }
.svc-item__title { font-weight: 700; color: var(--ink); }
.svc-item__desc { color: var(--slate); font-size: .95rem; line-height: 1.55; }
.svc-pricing { margin-top: var(--s-5); padding-top: var(--s-4); border-top: 1px solid var(--line); font-weight: 500; color: var(--slate); }
.svc-pricing a { color: var(--ink); border-bottom: 2px solid var(--orange); font-weight: 700; transition: color .2s var(--ease-out); }
.svc-pricing a:hover { color: var(--orange); }
.svc-pricing a:focus-visible { outline: 3px solid rgba(255,90,42,.4); outline-offset: 3px; border-radius: 2px; }

/* ---------- FAQ accordion ---------- */
.faq { max-width: 820px; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  background: none; border: 0; padding: var(--s-5) 0; text-align: left;
  font-family: inherit; font-weight: 700; font-size: clamp(1.02rem, 1.6vw, 1.15rem); color: var(--ink);
  transition: color .2s var(--ease-out);
}
.faq__btn:hover { color: var(--orange); }
.faq__btn:focus-visible { outline: 3px solid rgba(255,90,42,.4); outline-offset: 3px; border-radius: 4px; }
.faq__icon { position: relative; flex: 0 0 22px; width: 22px; height: 22px; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; background: var(--orange); border-radius: 2px; transition: transform .3s var(--ease-spring); }
.faq__icon::before { top: 10px; left: 0; width: 22px; height: 2px; }
.faq__icon::after  { top: 0; left: 10px; width: 2px; height: 22px; }
.faq__btn[aria-expanded="true"] .faq__icon::after { transform: scaleY(0); }
.faq__panel { overflow: hidden; max-height: 0; transition: max-height .35s var(--ease-out); }
.faq__panel-inner { padding-bottom: var(--s-5); color: var(--slate); max-width: 64ch; }

/* ---------- About ---------- */
.prose { max-width: 64ch; }
.prose p { color: var(--slate); margin-bottom: var(--s-5); font-size: 1.08rem; }
.prose p strong { color: var(--ink); }
.beliefs { display: grid; gap: var(--s-3); margin-top: var(--s-5); }
.beliefs li { padding-left: 28px; position: relative; font-weight: 700; color: var(--ink); }
.beliefs li::before { content: ""; position: absolute; left: 0; top: .6em; width: 10px; height: 10px; background: var(--orange); border-radius: 3px; }
.photo-ph {
  margin-top: var(--s-7); display: grid; place-items: center; text-align: center;
  aspect-ratio: 16/9; border: 2px dashed var(--line); border-radius: var(--r-lg);
  color: var(--slate); background: var(--white);
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-7); align-items: start; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-7); box-shadow: var(--shadow-card); }
.calendly-ph { display: grid; place-items: center; text-align: center; min-height: 260px; border: 2px dashed var(--line); border-radius: var(--r-md); color: var(--slate); padding: var(--s-6); margin-bottom: var(--s-5); }

.field { margin-bottom: var(--s-4); }
.field label { display: block; font-weight: 500; font-size: .92rem; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; font-family: inherit; font-size: 1rem; font-weight: 500; color: var(--ink);
  padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--offwhite);
  transition: border-color .2s var(--ease-out), box-shadow .2s var(--ease-out), background-color .2s var(--ease-out);
}
.field textarea { min-height: 120px; line-height: 1.6; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #cbd6e3; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: none; border-color: var(--orange); background: var(--white);
  box-shadow: 0 0 0 3px rgba(255,90,42,.18);
}
.field .req { color: var(--orange); }

/* centered single-column intake form (Uppit-style) */
.form-card { max-width: 720px; margin-inline: auto; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
.field-row .field { margin-bottom: 0; }
.field-row + .field, .field-row + .field-row { margin-top: var(--s-4); }

/* checkbox grid */
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); margin-top: 6px; }
.check {
  display: flex; align-items: center; gap: var(--s-3);
  padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--offwhite); font-weight: 500; font-size: .95rem; cursor: pointer;
  transition: border-color .2s var(--ease-out), box-shadow .2s var(--ease-out), transform .2s var(--ease-out), background-color .2s var(--ease-out);
}
.check:hover { border-color: #cbd6e3; transform: translateY(-1px); box-shadow: var(--shadow-card); }
.check input { width: 18px; height: 18px; flex: 0 0 18px; accent-color: var(--orange); cursor: pointer; }
.check:has(input:checked) { border-color: var(--orange); background: var(--white); }
.check:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(255,90,42,.18); border-color: var(--orange); }

@media (max-width: 600px) {
  .field-row, .check-grid { grid-template-columns: 1fr; }
  .field-row .field { margin-bottom: 0; }
  .field-row .field + .field { margin-top: var(--s-4); }
}
.form-success {
  display: none; margin-top: var(--s-4); padding: var(--s-4) var(--s-5);
  background: rgba(22,39,59,.04); border: 1px solid var(--line); border-left: 3px solid var(--orange);
  border-radius: var(--r-sm); color: var(--ink); font-weight: 500;
}
.form-success.is-visible { display: block; }
.trust-line { text-align: center; color: var(--slate); margin-top: var(--s-7); }
.trust-line a { color: var(--ink); border-bottom: 2px solid var(--orange); font-weight: 700; }
.trust-line a:hover { color: var(--orange); }

/* ---------- Dark CTA band ---------- */
.cta-band { background: var(--ink-900); position: relative; overflow: hidden; }
.cta-band::before {
  /* glowing warm orbs drifting behind the CTA (make-style dark section) */
  content: ""; position: absolute; inset: -20% 0; z-index: 0;
  background:
    radial-gradient(28% 60% at 78% 8%, rgba(255,90,42,.34), transparent 62%),
    radial-gradient(26% 55% at 92% 60%, rgba(255,180,92,.22), transparent 64%),
    radial-gradient(34% 70% at 10% 100%, rgba(255,122,77,.18), transparent 62%);
  filter: blur(6px);
  animation: orbs 16s var(--ease-out) infinite alternate;
}
@keyframes orbs {
  0%   { transform: translate3d(0,0,0) scale(1); }
  100% { transform: translate3d(2%, -3%, 0) scale(1.1); }
}
.cta-band .container { position: relative; z-index: 1; text-align: center; }
.cta-band h2 { color: var(--offwhite); max-width: 22ch; margin: 0 auto var(--s-6); }

/* ---------- Footer ---------- */
.footer { background: var(--ink-900); color: var(--offwhite); padding-block: var(--s-8) var(--s-6); position: relative; overflow: hidden; }
/* soft warm glow along the footer's top edge for continuity with the dark CTA */
.footer::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 70%; height: 200px; pointer-events: none; z-index: 0;
  background: radial-gradient(60% 100% at 50% 0%, rgba(255,90,42,.16), rgba(255,180,92,.07) 45%, transparent 75%);
  filter: blur(10px);
}
.footer .container { position: relative; z-index: 1; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--s-7); align-items: start; }
.footer__logo svg, .footer__logo img { height: 30px; width: auto; margin-bottom: var(--s-4); }
.footer__tag { color: var(--offwhite); opacity: .82; max-width: 34ch; }
.footer h4 { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--offwhite); opacity: .65; font-weight: 500; margin-bottom: var(--s-4); }
.footer__links li { margin-bottom: var(--s-2); }
.footer__links a, .footer__contact a { color: var(--offwhite); opacity: .85; transition: opacity .2s var(--ease-out), color .2s var(--ease-out); }
.footer__links a:hover, .footer__contact a:hover { opacity: 1; color: var(--orange); }
.footer__links a:focus-visible, .footer__contact a:focus-visible { outline: 3px solid rgba(255,90,42,.5); outline-offset: 3px; border-radius: 3px; }
.footer__contact li { margin-bottom: var(--s-2); opacity: .85; }
.footer__bottom { margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-5); justify-content: space-between; color: var(--offwhite); opacity: .7; font-size: .9rem; }

/* ============================================================
   Visual diagrams (inline SVG + CSS, brand colors)
   ============================================================ */
.diagram-icon { width: 22px; height: 22px; flex: 0 0 22px; stroke: var(--ink); stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- 1. Automation flow (node diagram) ---------- */
.flow {
  display: flex; align-items: stretch; justify-content: center; flex-wrap: nowrap;
  gap: 0; margin-top: var(--s-7); max-width: 960px; margin-inline: auto;
}
.flow__node {
  flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: var(--s-2);
  text-align: center; padding: var(--s-4) var(--s-3);
  background: rgba(255,255,255,.72); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(255,255,255,.65); border-radius: var(--r-md); box-shadow: var(--shadow-glass);
}
.flow__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-pill); background: rgba(255,90,42,.10); }
.flow__icon .diagram-icon { stroke: var(--orange); }
.flow__node span { font-weight: 700; font-size: .92rem; line-height: 1.3; color: var(--ink); }
.flow__link { flex: 0 0 46px; align-self: center; position: relative; height: 3px; border-radius: 3px; background: linear-gradient(90deg, rgba(22,39,59,.12), rgba(22,39,59,.18)); overflow: visible; }
.flow__link::after { /* traveling pulse dot */
  content: ""; position: absolute; top: 50%; left: 0; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%;
  background: var(--orange); box-shadow: 0 0 10px rgba(255,90,42,.7);
  animation: flow-pulse 2.6s var(--ease-out) infinite;
}
.flow__link:nth-of-type(4)::after { animation-delay: .5s; }
.flow__link:nth-of-type(6)::after { animation-delay: 1s; }
@keyframes flow-pulse {
  0% { transform: translateX(0); opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { transform: translateX(44px); opacity: 0; }
}

/* ---------- 2. Before / After ---------- */
.beforeafter {
  margin-top: var(--s-7); display: grid; grid-template-columns: 1fr auto 1fr; gap: var(--s-5); align-items: center;
  background: rgba(255,255,255,.72); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(255,255,255,.65); border-radius: var(--r-lg); box-shadow: var(--shadow-glass); padding: var(--s-6);
}
.ba__col h4 { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--slate); margin-bottom: var(--s-4); font-weight: 500; }
.ba__col--after h4 { color: var(--orange); }
.ba__tasks { display: grid; gap: var(--s-2); }
.ba__task { display: flex; align-items: center; gap: var(--s-3); color: var(--slate); font-size: .9rem; }
.ba__task::before { content: ""; width: 14px; height: 14px; flex: 0 0 14px; border: 2px solid var(--slate); border-radius: 4px; opacity: .6; }
.ba__bar { height: 10px; border-radius: 5px; background: repeating-linear-gradient(45deg, rgba(95,113,134,.18), rgba(95,113,134,.18) 6px, rgba(95,113,134,.08) 6px, rgba(95,113,134,.08) 12px); }
.ba__flow { display: grid; gap: var(--s-2); }
.ba__step { display: flex; align-items: center; gap: var(--s-3); padding: 10px 14px; border-radius: var(--r-sm); background: rgba(255,90,42,.07); border: 1px solid rgba(255,90,42,.25); font-weight: 700; font-size: .9rem; color: var(--ink); }
.ba__step .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--grad-warm); flex: 0 0 8px; }
.ba__arrow { display: grid; place-items: center; width: 46px; height: 46px; border-radius: var(--r-pill); background: var(--ink); color: var(--offwhite); animation: nudge 2.4s var(--ease-out) infinite; }
.ba__arrow svg { width: 22px; height: 22px; stroke: var(--offwhite); stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
@keyframes nudge { 0%,100% { transform: translateX(0); } 50% { transform: translateX(5px); } }

/* ---------- 3. How-It-Works pipeline ---------- */
.pipe { display: flex; align-items: stretch; justify-content: center; margin-top: var(--s-2); }
.pipe__node {
  flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: var(--s-2); padding: var(--s-6);
  background: rgba(255,255,255,.72); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(255,255,255,.65); border-radius: var(--r-lg); box-shadow: var(--shadow-glass);
}
.pipe__head { display: flex; align-items: center; gap: var(--s-3); }
.pipe__n { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: var(--r-pill); background: var(--ink); color: var(--offwhite); font-weight: 700; flex: 0 0 38px; }
.pipe__node h3 { font-size: 1.15rem; }
.pipe__node p { color: var(--slate); font-size: .95rem; }
.pipe__link { flex: 0 0 40px; align-self: center; position: relative; height: 3px; background: rgba(22,39,59,.14); border-radius: 3px; }
.pipe__link::before { content: ""; position: absolute; right: -1px; top: 50%; width: 9px; height: 9px; margin-top: -5px; border-right: 2px solid rgba(22,39,59,.3); border-top: 2px solid rgba(22,39,59,.3); transform: rotate(45deg); }
.pipe__link::after { content: ""; position: absolute; left: 0; top: 0; height: 100%; width: 100%; border-radius: 3px; background: var(--grad-warm); transform-origin: left; animation: pipe-draw 3s var(--ease-out) infinite; }
@keyframes pipe-draw { 0% { transform: scaleX(0); opacity: .9; } 60% { transform: scaleX(1); opacity: .9; } 100% { transform: scaleX(1); opacity: 0; } }

/* ---------- 4. Integrations hub ---------- */
.hub { position: relative; width: min(560px, 100%); aspect-ratio: 1; margin: var(--s-7) auto 0; }
.hub__center {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 38%; aspect-ratio: 1;
  display: grid; place-items: center; border-radius: 50%;
  background: rgba(255,255,255,.7); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.7); box-shadow: var(--shadow-glass), 0 0 50px rgba(255,90,42,.18); z-index: 2;
}
.hub__center img { width: 58%; height: auto; }
.hub__lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.hub__lines line { stroke: rgba(22,39,59,.14); stroke-width: 1.5; }
.hub__lines circle { fill: var(--orange); animation: hub-dot 3s ease-in-out infinite; }
@keyframes hub-dot { 0%,100% { opacity: .15; } 50% { opacity: .9; } }
.hub__chip {
  position: absolute; transform: translate(-50%,-50%); z-index: 2; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: var(--r-pill);
  background: rgba(255,255,255,.8); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.7); box-shadow: var(--shadow-card); font-weight: 700; font-size: .85rem; color: var(--ink);
  animation: float-chip 6s var(--ease-out) infinite alternate;
}
.hub__chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--grad-warm); flex: 0 0 8px; }
@keyframes float-chip { 0% { transform: translate(-50%,-50%); } 100% { transform: translate(-50%,calc(-50% - 8px)); } }
.hub__grid { display: none; }
.hub-caption { text-align: center; color: var(--slate); margin-top: var(--s-6); max-width: 54ch; margin-inline: auto; }

/* ---------- Scroll reveal ----------
   Progressive enhancement: content is fully visible by default.
   Only when JS is active (html.js) do we hide-then-fade-up on scroll,
   so no-JS visitors and crawlers always see everything. */
html.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease-out), transform .7s var(--ease-spring); will-change: opacity, transform; }
html.js .reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__mark { order: -1; }
  .hero__mark svg, .hero__mark img { width: min(240px, 60%); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  /* mobile nav */
  .nav__toggle { display: inline-flex; }
  .nav__links {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-float); padding: var(--s-3) var(--s-5) var(--s-5);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform .25s var(--ease-out), opacity .25s var(--ease-out);
  }
  .nav.is-open .nav__links { transform: none; opacity: 1; pointer-events: auto; }
  .nav__links .nav__link { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav__link::after { display: none; }
  .nav__cta { margin-top: var(--s-4); justify-content: center; }
  .nav__lang { width: 100%; margin-top: var(--s-3); text-align: center; }
  .nav { gap: var(--s-3); }

  /* services dropdown: inline accordion inside the mobile menu */
  .nav__item.has-menu { width: 100%; }
  .nav__links .nav__menubtn { width: 100%; justify-content: space-between; }
  .nav__menu {
    position: static; opacity: 1; pointer-events: auto;
    min-width: 0; padding: 0 0 0 var(--s-3); margin: 0;
    background: none; -webkit-backdrop-filter: none; backdrop-filter: none;
    border: 0; border-radius: 0; box-shadow: none; z-index: auto;
    display: none; transition: none;
  }
  /* override the desktop open-state transform (higher specificity) so it stays in-flow */
  .has-menu.is-open .nav__menu { display: grid; transform: none; }
  .nav__menu a { padding: 13px 0; border-bottom: 1px solid var(--line); border-radius: 0; }
}

/* ---------- Diagram responsive ---------- */
@media (max-width: 760px) {
  /* integrations hub collapses to centered mark + wrapped chip grid */
  .hub { aspect-ratio: auto; width: 100%; display: grid; place-items: center; gap: var(--s-5); }
  .hub__center { position: static; transform: none; width: 120px; }
  .hub__lines, .hub__chip { display: none; }
  .hub__grid { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-3); }
  .hub__grid .hub__chip {
    display: inline-flex; position: static; transform: none; animation: none;
  }
}
@media (max-width: 640px) {
  /* flow + pipeline stack vertically; connectors become vertical */
  .flow, .pipe { flex-direction: column; align-items: stretch; }
  .flow__link, .pipe__link { flex-basis: 28px; width: 3px; height: 28px; align-self: center; }
  .flow__link::after { animation: flow-pulse-v 2.6s var(--ease-out) infinite; left: 50%; margin-left: -4.5px; top: 0; margin-top: 0; }
  .pipe__link::before { right: 50%; top: auto; bottom: -1px; margin-right: -5px; transform: rotate(135deg); }
  .pipe__link::after { animation: pipe-draw-v 3s var(--ease-out) infinite; }
  @keyframes flow-pulse-v { 0% { transform: translateY(0); opacity: 0; } 15%,85% { opacity: 1; } 100% { transform: translateY(26px); opacity: 0; } }
  @keyframes pipe-draw-v { 0% { transform: scaleY(0); opacity: .9; } 60% { transform: scaleY(1); opacity: .9; } 100% { transform: scaleY(1); opacity: 0; } }
  .pipe__link { transform-origin: top; }
  .pipe__link::after { transform-origin: top; }
  /* before/after stacks; divider arrow points down */
  .beforeafter { grid-template-columns: 1fr; }
  .ba__arrow { justify-self: center; animation: nudge-v 2.4s var(--ease-out) infinite; }
  .ba__arrow svg { transform: rotate(90deg); }
  @keyframes nudge-v { 0%,100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
  /* hero stat cards: tighter padding on narrow screens */
  .stat { padding: var(--s-4) var(--s-5); }
}

/* ============================================================
   Automation detail pages (+ Services title links)
   ============================================================ */
/* services.html: each automation title becomes a link to its detail page */
.svc-item__title a {
  color: inherit; border-bottom: 2px solid transparent;
  transition: color .2s var(--ease-out), border-color .2s var(--ease-out);
}
.svc-item__title a:hover { color: var(--orange); border-color: var(--orange); }
.svc-item__title a:focus-visible { outline: 3px solid rgba(255,90,42,.4); outline-offset: 3px; border-radius: 2px; }

/* back-to-services link */
.back-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--slate); font-weight: 500; font-size: .95rem; margin-bottom: var(--s-5);
  transition: color .2s var(--ease-out);
}
.back-link .arr { transition: transform .2s var(--ease-out); }
.back-link:hover { color: var(--orange); }
.back-link:hover .arr { transform: translateX(-3px); }
.back-link:focus-visible { outline: 3px solid rgba(255,90,42,.4); outline-offset: 3px; border-radius: 4px; }

.detail-actions { margin-top: var(--s-6); }
.detail-copy { color: var(--slate); font-size: 1.05rem; max-width: 65ch; }

/* "What you get" checklist */
.checklist { display: grid; gap: var(--s-3); margin-top: var(--s-6); max-width: 70ch; }
.checklist li {
  position: relative; padding-left: 40px; color: var(--ink); font-weight: 500; line-height: 1.6;
}
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 1px; width: 26px; height: 26px; border-radius: var(--r-pill);
  background: rgba(255,90,42,.12)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF5A2A' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4 4 10-10'/%3E%3C/svg%3E")
    center / 15px no-repeat;
}

/* "Tools it connects" chips */
.chips { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: var(--r-pill);
  background: rgba(255,255,255,.8); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.7); box-shadow: var(--shadow-card);
  font-weight: 700; font-size: .9rem; color: var(--ink);
}
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--grad-warm); flex: 0 0 8px; }

@media (max-width: 600px) {
  .grid--4, .grid--3, .grid--2, .reassure, .footer__top { grid-template-columns: 1fr; }
  .panel { padding: var(--s-5); }
  .hero__actions { gap: var(--s-4); }
}

@media (max-width: 360px) {
  .container { padding-inline: var(--s-4); }
}
