/* tastemaker: logo=how2studio-logo.svg (symbol #logo, clip #logo-clip) | macro=bento-showcase | nav=transparent-over-hero->solid | hero=full-bleed-gradient-split (headline left, ask right) | proof=stat-tiles | compare=old-vs-how2 | feature=solutions-carousel(scroll-snap, pill nav) | cta=gradient-panel | footer=3-col-minimal
   mood=vibrant-minimal (reference: user image) | gradient anchored to sampled pixels: plum #4f0d5c, magenta #d70170, coral #f5316a, amber #f9b332 + brand #5e17eb/#f36033
   contrast: text/bg 19.6, muted/surface 5.5, white/#5e17eb 7.5, white/#b0179a 6.1 (white text kept on purple→magenta half only) */

:root {
  --bg: #ffffff;
  --surface: #f5f5f7;
  --surface-2: #ececf0;
  --text: #0b0b0f;
  --muted: #62626b;
  --line: #e6e6ea;

  --purple: #5e17eb;
  --violet: #8229e0;
  --magenta: #c4126f;
  --coral: #f5316a;
  --orange: #f36033;
  --amber: #fbbf36;
  --blue: #0897ff;

  /* The one signature surface. Purple → magenta → coral → amber, like the reference. */
  --grad: linear-gradient(115deg, #3b0d8c 0%, #5e17eb 24%, #a8169b 46%, #e8245f 64%, #f36033 78%, #fbbf36 100%);

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --r-lg: 22px;
  --r-md: 14px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);

  --nav-h: 80px;
  --tabbar-h: 0px;

  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", ui-serif, Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 8px); -webkit-text-size-adjust: 100%; touch-action: manipulation; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--sans); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { display: block; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
a, button, summary, label { -webkit-tap-highlight-color: transparent; }
p, h1, h2, h3, h4 { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--purple); color: #fff; }
:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; border-radius: 6px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; top: 12px; left: 12px; z-index: 100; background: var(--text); color: #fff; padding: 10px 14px; border-radius: 10px; transform: translateY(-160%); transition: transform 200ms var(--ease-out); }
.skip:focus { transform: none; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 max(var(--gutter), env(safe-area-inset-right)) 0 max(var(--gutter), env(safe-area-inset-left)); }
.ico { width: 18px; height: 18px; flex: none; }
.ico--wa { color: #25d366; }

/* ---------- Type ---------- */
.kicker { font-family: var(--serif); font-style: italic; font-size: clamp(20px, 1.8vw, 24px); line-height: 1.2; color: rgba(255,255,255,0.88); margin-bottom: 14px; }
.kicker--dark { color: var(--text); }
.h2 { font-size: clamp(32px, 4.2vw, 52px); font-weight: 600; line-height: 1.06; letter-spacing: -0.035em; text-wrap: balance; }
.body { color: var(--muted); font-size: 17px; max-width: 48ch; text-wrap: pretty; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 50px; padding: 0 22px; border-radius: 999px;
  font-weight: 500; font-size: 15px; white-space: nowrap;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }
.btn--sm { height: 40px; padding: 0 16px; font-size: 14px; }
.btn--ink { background: var(--text); color: #fff; }
.btn--white { background: #fff; color: var(--text); box-shadow: 0 10px 30px -12px rgba(30, 0, 60, 0.5); }
.btn--line { color: var(--text); box-shadow: inset 0 0 0 1px var(--line); background: #fff; }
.btn--nav { height: 40px; padding: 0 18px; font-size: 14px; background: #fff; color: var(--text); }
.btn .ico { transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .btn--ink:hover { background: #26262d; }
  .btn--white:hover { background: #f4f0ff; }
  .btn--line:hover { box-shadow: inset 0 0 0 1px #b9b9c2; }
  .btn:hover .ico:not(.ico--wa) { transform: translateX(3px); }
}

.card__link { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; font-size: 15px; padding: 6px 0; transition: transform 160ms var(--ease-out); }
.card__link:active { transform: scale(0.97); }
.card__link .ico { transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .card__link:hover .ico { transform: translateX(4px); } }

.tag { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 13px; font-weight: 500; background: #efe8ff; color: #4a12bd; }
.tag--warm, .track--warm .tag { background: #ffe9e0; color: #b23a12; }

/* ---------- Brand logo (how2studio-logo.svg) ---------- */
.brand { display: inline-flex; align-items: center; }
.brand__logo { height: 60px; width: auto; aspect-ratio: 203 / 379; }
.brand__logo * { transition: fill 200ms ease; }

/* ---------- Nav: transparent over the hero, solid after ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 40; padding-top: env(safe-area-inset-top); transition: background-color 250ms ease, transform 300ms var(--ease-out); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); gap: 24px; }
.nav__links { display: flex; gap: 30px; font-size: 15px; font-weight: 500; color: rgba(255,255,255,0.86); transition: color 200ms ease; }
.nav__links a { transition: opacity 150ms ease; }
@media (hover: hover) and (pointer: fine) { .nav__links a:hover { opacity: 0.65; } }
.nav__cta { display: flex; align-items: center; gap: 8px; }

/* White logo over the gradient, brand colors once the nav turns solid */
.nav:not(.is-solid) { --logo-mark: #fff; --logo-how: #fff; --logo-two: #fff; --logo-studio: #fff; }
.nav.is-solid { background: rgba(255,255,255,0.86); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px); box-shadow: 0 1px 0 var(--line); }
.nav.is-solid .nav__links { color: var(--muted); }
.nav.is-solid .btn--nav { background: var(--text); color: #fff; }

.nav__burger { display: none; width: 44px; height: 44px; border-radius: 12px; position: relative; }
.nav__burger span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: #fff; border-radius: 2px; transition: transform 200ms var(--ease-out), background-color 200ms ease; }
.nav.is-solid .nav__burger span, .nav__burger[aria-expanded="true"] span { background: var(--text); }
.nav__burger span:first-child { top: 18px; }
.nav__burger span:last-child { top: 25px; }
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.nav:has(.nav__burger[aria-expanded="true"]) { background: #fff; }
.nav:has(.nav__burger[aria-expanded="true"]) { --logo-mark: #5E17EB; --logo-how: #F35A2B; --logo-two: #0095FF; --logo-studio: #313131; }

.mobile-menu {
  position: absolute; left: 12px; right: 12px; top: 100%;
  background: #fff; border-radius: var(--r-lg);
  box-shadow: 0 24px 60px -20px rgba(11, 11, 15, 0.3), 0 0 0 1px var(--line);
  padding: 10px; display: none; flex-direction: column;
  transform-origin: top right; opacity: 0; transform: scale(0.97) translateY(-6px);
  transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out);
  pointer-events: none;
}
.mobile-menu.is-open { opacity: 1; transform: none; pointer-events: auto; }
.mobile-menu > a { padding: 14px; font-weight: 500; font-size: 18px; border-radius: 10px; }
.mobile-menu > a:active { background: var(--surface); }
.mobile-menu__cta { display: grid; gap: 8px; padding: 10px 4px 4px; }
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__burger { display: block; }
  .mobile-menu { display: flex; }
}
@media (max-width: 420px) { .btn--nav { display: none; } }

/* ---------- Gradient field (hero + final CTA) ---------- */
.hero__field { position: absolute; inset: 0; background: var(--grad); overflow: hidden; z-index: -2; }
.blob { position: absolute; border-radius: 50%; will-change: transform; }
.blob--a { width: 60vmax; height: 60vmax; left: -22vmax; bottom: -30vmax; background: radial-gradient(closest-side, rgba(40, 6, 70, 0.75), transparent); animation: drift-a 22s ease-in-out infinite alternate; }
.blob--b { width: 46vmax; height: 46vmax; right: -12vmax; top: -18vmax; background: radial-gradient(closest-side, rgba(255, 214, 80, 0.85), transparent); animation: drift-b 26s ease-in-out infinite alternate; }
.blob--c { width: 38vmax; height: 38vmax; left: 34%; top: 30%; background: radial-gradient(closest-side, rgba(232, 36, 95, 0.55), transparent); animation: drift-c 30s ease-in-out infinite alternate; }
@keyframes drift-a { to { transform: translate3d(8vmax, -6vmax, 0); } }
@keyframes drift-b { to { transform: translate3d(-10vmax, 8vmax, 0); } }
@keyframes drift-c { to { transform: translate3d(-12vmax, -8vmax, 0) scale(1.15); } }

/* Frosted logo: a blurred window into the gradient, clipped to the full How2 Studio logo.
   clip-path (not mask) so the backdrop blur is clipped too. */
.hero__glass, .final__glass {
  position: absolute; z-index: -1; aspect-ratio: 203 / 379;
  clip-path: url(#logo-clip);
  background: linear-gradient(160deg, rgba(255,255,255,0.5), rgba(255,255,255,0.14) 55%, rgba(255,255,255,0.3));
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
}
.hero__glass { height: 90%; right: 2%; top: 7%; }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; color: #fff; min-height: min(100svh, 860px); display: flex; align-items: flex-end; padding: 140px 0 clamp(48px, 7vw, 88px); }
.hero__inner { display: block; }
.hero__title { font-size: clamp(42px, 5.8vw, 84px); font-weight: 600; line-height: 1; letter-spacing: -0.045em; text-wrap: balance; max-width: 13ch; }
.hero__title { margin-bottom: 24px; }
.hero__lede { font-size: clamp(16px, 1.4vw, 18px); color: rgba(255,255,255,0.88); max-width: 44ch; margin-bottom: 32px; text-wrap: pretty; }
.hero__actions--row { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 14px 22px; }
.hero__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.hero__wa { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: rgba(255,255,255,0.9); border-bottom: 1px solid rgba(255,255,255,0.35); padding-bottom: 2px; transition: border-color 150ms ease; }
@media (hover: hover) and (pointer: fine) { .hero__wa:hover { border-color: #fff; } }

.js .hero__in { opacity: 0; transform: translateY(14px); animation: rise 800ms var(--ease-out) forwards; animation-delay: calc(120ms + var(--i) * 90ms); }
.js .hero__glass { opacity: 0; animation: fade 1200ms var(--ease-out) 200ms forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes fade { to { opacity: 1; } }

@media (max-width: 900px) {
  .hero { min-height: 640px; padding-top: 120px; }
  .hero__glass { height: 220px; right: 4%; top: 84px; }
}
@media (max-width: 520px) {
  .hero__glass { height: 250px; right: -64px; top: 88px; }
}

/* ---------- Proof ---------- */
.proof { position: relative; padding: clamp(64px, 8vw, 104px) 0 clamp(40px, 5vw, 64px); }
.proof__glow { position: absolute; left: 0; right: 0; top: 0; height: 280px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 100% at 8% 0%, rgba(168, 22, 155, 0.22), transparent 70%),
    radial-gradient(50% 100% at 55% 0%, rgba(232, 36, 95, 0.14), transparent 70%),
    radial-gradient(50% 100% at 95% 0%, rgba(251, 191, 54, 0.32), transparent 70%);
}
.proof__head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; margin-bottom: 20px; flex-wrap: wrap; }
.proof__label { font-weight: 600; font-size: 15px; }
.proof__line { color: var(--muted); font-size: 15px; }
.proof__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.tile { background: var(--surface); border-radius: var(--r-md); padding: 24px; display: flex; flex-direction: column; gap: 4px; }
.tile b { font-size: clamp(32px, 3.4vw, 44px); font-weight: 600; letter-spacing: -0.04em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.tile > span { color: var(--muted); font-size: 14px; }
@media (max-width: 760px) { .proof__grid { grid-template-columns: 1fr 1fr; } .tile { padding: 18px; } }

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 11vw, 144px) 0; }
.section--tight { padding: clamp(64px, 8vw, 112px) 0; }
.section--soft { background: var(--surface); }
.head { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: end; margin-bottom: clamp(36px, 5vw, 56px); }
.head .h2 { max-width: 18ch; }
.head__aside { color: var(--muted); font-size: 15px; max-width: 40ch; justify-self: end; }
@media (max-width: 860px) { .head { grid-template-columns: 1fr; gap: 16px; } .head__aside { justify-self: start; } }

/* ---------- Italic serif accent inside headlines ---------- */
.h2 em, .final__title em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }

/* ---------- Old way vs How2 way ---------- */
.compare { border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 0 0 1px var(--line); background: linear-gradient(90deg, var(--surface) 50%, #fff 50%); }
.compare__head { display: grid; grid-template-columns: 1fr 1fr; font-size: 15px; font-weight: 600; }
.compare__head span { padding: 18px 28px; }
.compare__head span:first-child { color: var(--muted); }
.compare__head span:last-child { background: var(--purple); color: #fff; }
.compare__rows li { position: relative; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.compare__old, .compare__new { padding: 24px 28px; }
.compare__new { padding-left: 40px; }
.compare__old s { font-size: 17px; font-weight: 600; color: #4a4a52; text-decoration-color: var(--orange); text-decoration-thickness: 2px; }
.compare__new b { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.compare__old p, .compare__new p { font-size: 15px; margin-top: 4px; }
.compare__old p { color: var(--muted); }
.compare__new p { color: #3a3a42; }
.compare__arrow { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 32px; height: 32px; border-radius: 50%; background: var(--orange); color: var(--text); display: grid; place-items: center; box-shadow: 0 0 0 4px #fff; }
.compare__arrow .ico { width: 16px; height: 16px; }
@media (max-width: 760px) {
  .compare { background: #fff; }
  .compare__head { display: none; }
  .compare__rows li { grid-template-columns: 1fr; }
  .compare__rows li:first-child { border-top: 0; }
  .compare__old { background: var(--surface); padding: 20px 20px 26px; }
  .compare__new { padding: 26px 20px 20px; }
  .compare__arrow { position: relative; left: auto; top: auto; translate: none; rotate: 90deg; margin: -16px 0 -16px 20px; z-index: 1; }
}

/* ---------- Solutions carousel ---------- */
.carousel__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; }
.carousel__tabs { display: flex; gap: 4px; padding: 5px; background: var(--surface); border-radius: 999px; overflow-x: auto; scrollbar-width: none; }
.carousel__tabs::-webkit-scrollbar { display: none; }
.carousel__tabs button { flex: none; height: 42px; padding: 0 18px; border-radius: 999px; font-size: 15px; font-weight: 500; color: #3a3a42; white-space: nowrap; transition: background-color 200ms ease, color 200ms ease, transform 160ms var(--ease-out); }
.carousel__tabs button:active { transform: scale(0.97); }
.carousel__tabs button[aria-current="true"] { background: var(--purple); color: #fff; }
@media (hover: hover) and (pointer: fine) { .carousel__tabs button:not([aria-current="true"]):hover { background: #fff; } }
.carousel__arrows { display: flex; gap: 8px; flex: none; }
.carousel__arrow { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line); background: #fff; transition: transform 160ms var(--ease-out), opacity 200ms ease; }
.carousel__arrow:active { transform: scale(0.94); }
.carousel__arrow[data-prev] .ico { rotate: 180deg; }
.carousel__arrow:disabled { opacity: 0.35; cursor: default; }
@media (hover: hover) and (pointer: fine) { .carousel__arrow:not(:disabled):hover { box-shadow: inset 0 0 0 1px #b9b9c2; } }

.carousel__track {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  overscroll-behavior-x: contain; scrollbar-width: none; border-radius: var(--r-lg);
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track:focus-visible { outline-offset: 6px; }
@media (prefers-reduced-motion: reduce) { .carousel__track { scroll-behavior: auto; } }
.slide { flex: 0 0 calc(100% - 72px); scroll-snap-align: start; display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; min-height: 520px; }
.slide__main { background: #fff; border-radius: var(--r-lg); box-shadow: inset 0 0 0 1px var(--line); padding: clamp(28px, 3.6vw, 48px); display: flex; flex-direction: column; align-items: flex-start; }
.slide__for { color: var(--muted); font-size: 15px; margin-bottom: 14px; }
.slide h3 { font-size: clamp(28px, 3.2vw, 44px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.05; margin-bottom: 18px; text-wrap: balance; }
.slide__body { color: #3a3a42; font-size: 17px; max-width: 52ch; margin-bottom: 28px; text-wrap: pretty; }
.slide__label { font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 10px; }
.chips-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.chips-list li { font-size: 15px; padding: 10px 14px; background: var(--surface); border-radius: 12px; }
.slide__main .btn { margin-top: auto; }

.result { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--r-lg); color: #fff; padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; justify-content: space-between; gap: 24px; background: linear-gradient(150deg, #fbbf36 0%, #f36033 30%, #e8245f 55%, #a8169b 78%, #5e17eb 100%); }
.result::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(36, 4, 70, 0.78) 0%, rgba(36, 4, 70, 0.38) 45%, rgba(36, 4, 70, 0.12) 100%); }
.result--violet { background: linear-gradient(150deg, #e8245f 0%, #a8169b 40%, #5e17eb 75%, #3b0d8c 100%); }
.result--warm { background: linear-gradient(150deg, #5e17eb 0%, #a8169b 38%, #e8245f 68%, #f36033 100%); }
.result--deep { background: linear-gradient(160deg, #a8169b 0%, #5e17eb 45%, #2a0a6b 100%); }
.result--sunset { background: linear-gradient(160deg, #fbbf36 0%, #f36033 35%, #c4126f 75%, #5e17eb 100%); }
.result img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; mix-blend-mode: luminosity; opacity: 0.8; z-index: -1; }
.result__label { font-size: 14px; font-weight: 600; color: rgba(255,255,255,0.9); }
.result b { display: block; font-size: clamp(56px, 7vw, 96px); font-weight: 600; letter-spacing: -0.05em; line-height: 1; margin-bottom: 12px; }
.result div > p { font-size: 15px; color: rgba(255,255,255,0.9); max-width: 36ch; }
.result__quote { font-family: var(--serif); font-style: italic; font-size: clamp(28px, 2.8vw, 38px); line-height: 1.15; letter-spacing: -0.01em; max-width: 16ch; }
.result .cert { align-self: center; margin-top: 8px; }

.cert { position: relative; width: min(250px, 100%); aspect-ratio: 1.5; background: #fff; color: var(--text); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; justify-content: flex-end; box-shadow: 0 24px 40px -20px rgba(20, 0, 50, 0.6); rotate: -3deg; }
.cert__logo { position: absolute; right: 14px; top: 12px; height: 56px; width: auto; aspect-ratio: 203 / 379; }
.cert small { font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.cert b { font-size: 17px !important; font-weight: 600; letter-spacing: -0.02em !important; line-height: 1.15 !important; margin: 2px 0 8px !important; }
.cert span { font-size: 11px; color: var(--purple); font-weight: 500; }

@media (max-width: 900px) {
  .slide { grid-template-columns: 1fr; flex-basis: calc(100% - 28px); min-height: 0; }
  .result { min-height: 300px; }
  .carousel__arrows { display: none; }
}

/* ---------- Industry case studies ---------- */
.ind__bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.ind__tabs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; flex: 1; min-width: 0; }
.ind__tab {
  display: flex; align-items: center; gap: 9px; min-width: 0;
  padding: 10px 11px; border-radius: var(--r-md);
  background: var(--surface); color: var(--text); text-align: left;
  box-shadow: inset 0 0 0 1px transparent;
  transition: background-color 200ms ease, color 200ms ease, box-shadow 200ms ease, transform 160ms var(--ease-out);
}
.ind__tab:active { transform: scale(0.97); }
.ind__tab-ico {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  display: grid; place-items: center;
  background: #fff; color: var(--purple);
  box-shadow: 0 1px 2px rgba(11, 11, 15, 0.05), inset 0 0 0 1px var(--line);
  transition: background-color 200ms ease, color 200ms ease, box-shadow 200ms ease;
}
.ind__tab-txt { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.ind__tab-txt b { font-size: 14px; font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ind__tab-txt small { font-size: 11.5px; color: var(--muted); line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color 200ms ease; }
.ind__tab[aria-selected="true"] {
  background: var(--purple); color: #fff;
  box-shadow: 0 16px 32px -16px rgba(94, 23, 235, 0.65);
}
.ind__tab[aria-selected="true"] .ind__tab-ico {
  background: rgba(255, 255, 255, 0.18); color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}
.ind__tab[aria-selected="true"] .ind__tab-txt small { color: rgba(255, 255, 255, 0.84); }
@media (hover: hover) and (pointer: fine) {
  .ind__tab:not([aria-selected="true"]):hover { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
}

.ind__nav { display: flex; align-items: center; gap: 8px; flex: none; }
.ind__nav [data-ind-prev] .ico { rotate: 180deg; }
.ind__count { font-size: 13px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; padding-right: 4px; }

.ind__stage { position: relative; }
.ind__case {
  background: #fff; border-radius: var(--r-lg);
  box-shadow: 0 0 0 1px var(--line), 0 36px 72px -48px rgba(11, 11, 15, 0.22);
  padding: clamp(24px, 3.2vw, 38px);
}
.ind__case[hidden] { display: none; }
.ind__case.is-active { animation: ind-rise 280ms var(--ease-out); }
@keyframes ind-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.ind__top {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap;
  padding-bottom: clamp(18px, 2.4vw, 26px); margin-bottom: clamp(18px, 2.4vw, 26px);
  border-bottom: 1px solid var(--line);
}
.ind__top .tag { height: auto; min-height: 26px; padding: 4px 11px; line-height: 1.35; gap: 6px; margin-bottom: 12px; }
.ind__top .tag .ico { width: 15px; height: 15px; }
.ind__title { font-size: clamp(26px, 3vw, 40px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.06; text-wrap: balance; max-width: 24ch; }
.ind__title em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.ind__stat {
  background: var(--surface); border-radius: var(--r-md); padding: 14px 20px;
  display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex: none;
}
.ind__stat b { font-size: clamp(22px, 2.2vw, 30px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.05; color: var(--purple); font-variant-numeric: tabular-nums; }
.ind__stat span { font-size: 13px; color: var(--muted); }

.ind__grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: stretch; }
.ind__col { border-radius: 18px; padding: clamp(22px, 2.6vw, 32px); display: flex; flex-direction: column; gap: 18px; }
.ind__col--old { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.ind__col--new {
  background: linear-gradient(145deg, #2d0870 0%, #5e17eb 48%, #9b148f 100%);
  color: #fff;
  box-shadow: 0 28px 60px -32px rgba(94, 23, 235, 0.55);
}

.ind__badge {
  display: inline-flex; align-items: center; gap: 7px; align-self: flex-start;
  height: 28px; padding: 0 12px; border-radius: 999px;
  font-size: 13px; font-weight: 600;
}
.ind__badge--old { background: #fff; color: #4a4a52; box-shadow: inset 0 0 0 1px var(--line); }
.ind__badge--old i { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
.ind__badge--new { background: rgba(255, 255, 255, 0.16); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28); }
.ind__badge--new .ico { width: 15px; height: 15px; }

.ind__lead { font-size: 17px; font-weight: 500; line-height: 1.48; text-wrap: pretty; }
.ind__col--old .ind__lead { color: var(--text); }
.ind__col--new .ind__lead { color: #fff; }

.ind__box { border-radius: var(--r-md); padding: 16px 18px; }
.ind__box--old { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.ind__box--new { background: rgba(255, 255, 255, 0.12); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.ind__sublabel { display: block; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; color: var(--muted); }
.ind__box--new .ind__sublabel { color: rgba(255, 255, 255, 0.82); }
.ind__box p { font-size: 15px; line-height: 1.5; }
.ind__box--old p { color: var(--muted); }
.ind__box--new p { color: rgba(255, 255, 255, 0.94); }

.ind__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 2px; }
.ind__chips li { font-size: 13px; padding: 6px 11px; border-radius: 9px; }
.ind__chips--old li { background: var(--surface-2); color: var(--muted); }
.ind__chips--old s { text-decoration-color: var(--orange); text-decoration-thickness: 1.5px; }
.ind__chips--new li { background: rgba(255, 255, 255, 0.15); color: #fff; font-weight: 500; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2); }

.ind__arrow {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%; z-index: 2;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--orange); color: var(--text);
  display: grid; place-items: center;
  box-shadow: 0 0 0 5px #fff;
}
.ind__arrow .ico { width: 17px; height: 17px; }

.ind__foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 4px; }
.ind__try {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 500; color: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.38); padding-bottom: 2px;
  transition: border-color 150ms ease;
}
.ind__try .ico { width: 15px; height: 15px; }
@media (hover: hover) and (pointer: fine) { .ind__try:hover { border-color: #fff; } }

@media (max-width: 1080px) {
  .ind__tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .ind__grid { grid-template-columns: 1fr; gap: 12px; }
  .ind__arrow { position: relative; left: auto; top: auto; translate: none; rotate: 90deg; margin: -22px 0 -22px 24px; z-index: 2; }
  .ind__stat { align-items: flex-start; width: 100%; flex-direction: row; justify-content: space-between; align-items: baseline; }
}

/* ---------- Ticks ---------- */
.ticks { display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: center; font-size: 15px; }
.ticks .ico { width: 18px; height: 18px; color: var(--purple); }

/* ---------- Call center sim ---------- */
.cc { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.cc .h2 { margin-bottom: 18px; }
.cc .body { margin-bottom: 28px; }
.sim { background: #fff; border-radius: var(--r-lg); padding: clamp(20px, 3vw, 30px); box-shadow: 0 0 0 1px var(--line), 0 40px 80px -48px rgba(94, 23, 235, 0.45); }
.sim__top { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.sim__top b { display: block; font-weight: 600; }
.sim__top small { color: var(--muted); font-size: 13px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; color: #fff; background: var(--grad); flex: none; }
.sim__live { margin-left: auto; white-space: nowrap; flex: none; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: #b23a12; background: #ffefe8; padding: 5px 10px; border-radius: 999px; }
.sim__live i { width: 6px; height: 6px; border-radius: 50%; background: var(--orange); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.3; } }
.sim__quote { font-size: clamp(17px, 1.6vw, 19px); font-weight: 500; line-height: 1.45; padding: 16px 18px; background: var(--surface); border-radius: 16px 16px 16px 4px; margin-bottom: 18px; letter-spacing: -0.01em; }
.sim__quote em { font-family: var(--serif); font-size: 1.15em; }
.sim__prompt { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.sim__choices { display: grid; gap: 8px; }
.choice { text-align: left; padding: 14px 16px; border-radius: 14px; font-size: 15px; line-height: 1.4; box-shadow: inset 0 0 0 1px var(--line); transition: transform 160ms var(--ease-out), background-color 200ms ease, opacity 200ms ease; }
.choice:active { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) { .choice:not([disabled]):hover { box-shadow: inset 0 0 0 1px #b9b9c2; background: #fcfcfd; } }
.choice[disabled] { cursor: default; opacity: 0.4; }
.choice.is-picked { opacity: 1; box-shadow: inset 0 0 0 1.5px var(--orange); background: #fff5f1; }
.choice.is-picked.is-good { box-shadow: inset 0 0 0 1.5px var(--purple); background: #f5f0ff; }
.sim__result { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.sim__result:not([hidden]) { animation: rise 300ms var(--ease-out); }
.sim__verdict { margin-bottom: 14px; }
.sim__verdict b { display: block; font-size: 17px; font-weight: 600; margin-bottom: 2px; }
.sim__verdict span { color: var(--muted); font-size: 15px; }
.meters { display: grid; gap: 10px; }
.meter { display: grid; grid-template-columns: 110px 1fr; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); }
.meter__track { height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.meter__track i { display: block; height: 100%; width: 100%; border-radius: 3px; background: var(--orange); transform-origin: left; transform: scaleX(0); transition: transform 700ms var(--ease-out); }
.meter__track i.is-good { background: linear-gradient(90deg, var(--purple), var(--magenta)); }
.sim__reset { margin-top: 16px; font-size: 14px; font-weight: 500; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line); }
@media (max-width: 900px) { .cc { grid-template-columns: 1fr; } .meter { grid-template-columns: 96px 1fr; } }

/* ---------- AI tracks ---------- */
.tracks { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.track { background: var(--surface); border-radius: var(--r-lg); padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; position: relative; overflow: hidden; }
.track::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--purple), var(--magenta)); }
.track--warm::before { background: linear-gradient(90deg, var(--coral), var(--amber)); }
.track__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 28px; }
.track__count { font-size: 14px; color: var(--muted); }
.track__count b { color: var(--text); font-weight: 600; }
.track h3 { font-size: clamp(24px, 2.4vw, 30px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 6px; }
.track__for { color: var(--muted); margin-bottom: 24px; font-size: 15px; }
.track .ticks { margin-bottom: 32px; }
.track--warm .ticks .ico { color: var(--orange); }
.track__actions { margin-top: auto; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.track__actions .card__link { color: var(--purple); }
@media (max-width: 860px) { .tracks { grid-template-columns: 1fr; } }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.steps li { padding: 24px 0 0; border-top: 1px solid var(--line); }
.step__n { display: block; font-family: var(--serif); font-style: italic; font-size: 56px; line-height: 1; margin-bottom: 18px; }
.steps li:nth-child(1) .step__n { color: var(--purple); }
.steps li:nth-child(2) .step__n { color: #a8169b; }
.steps li:nth-child(3) .step__n { color: #e8245f; }
.steps li:nth-child(4) .step__n { color: var(--orange); }
.steps h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: 15px; }
.steps .step__part { margin-top: 12px; color: var(--text); font-size: 14px; font-weight: 500; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; gap: 28px 16px; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.faq .h2 { margin-bottom: 16px; }
.faq .body { margin-bottom: 24px; }
.faq__list { border-top: 1px solid var(--line); }
.faq__list details { border-bottom: 1px solid var(--line); }
.faq__list summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative; font-size: 17px; font-weight: 500; letter-spacing: -0.01em; }
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::before, .faq__list summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 1.5px; background: var(--text); transition: transform 200ms var(--ease-out); }
.faq__list summary::after { transform: rotate(90deg); }
.faq__list details[open] summary::after { transform: rotate(0deg); }
.faq__list details > div { padding: 0 40px 22px 0; color: var(--muted); }
.faq__list details[open] > div { animation: fade-in 220ms var(--ease-out); }
@keyframes fade-in { from { opacity: 0; transform: translateY(-4px); } }
@media (max-width: 900px) { .faq { grid-template-columns: 1fr; } }

/* ---------- Final CTA ---------- */
.final-wrap { padding: 0 0 clamp(64px, 8vw, 104px); }
.final { position: relative; isolation: isolate; overflow: hidden; border-radius: 28px; color: #fff; min-height: 460px; display: flex; align-items: flex-end; padding: clamp(28px, 5vw, 64px); }
.final__glass { height: 88%; right: 7%; top: 6%; }
.final__title { font-size: clamp(34px, 4.8vw, 64px); font-weight: 600; line-height: 1.02; letter-spacing: -0.04em; max-width: 16ch; margin-bottom: 18px; text-wrap: balance; }
.final__lede { color: rgba(255,255,255,0.88); font-size: 17px; max-width: 44ch; margin-bottom: 28px; }
@media (max-width: 760px) { .final { min-height: 520px; } .final__glass { height: 200px; right: 6%; top: 24px; } }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 56px 0 28px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.footer__about { margin-top: 16px; max-width: 36ch; color: var(--muted); font-size: 15px; }
.footer h4 { font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.footer__grid a, .footer__grid button { display: block; padding: 4px 0; color: var(--muted); font-size: 15px; text-align: left; transition: color 150ms ease; }
@media (hover: hover) and (pointer: fine) { .footer__grid a:hover, .footer__grid button:hover { color: var(--text); } }
.footer__base { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__grid > :first-child { grid-column: 1 / -1; } }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(20, 6, 40, 0.45); opacity: 0; transition: opacity 200ms ease; }
.modal__card {
  position: relative; width: 100%; max-width: 560px; max-height: calc(100dvh - 32px); overflow-y: auto; overflow-x: hidden;
  background: #fff; border-radius: 24px; padding: clamp(24px, 4vw, 36px);
  box-shadow: 0 40px 100px -30px rgba(20, 6, 40, 0.5);
  opacity: 0; transform: scale(0.96) translateY(8px);
  transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out);
  overscroll-behavior: contain;
}
.modal.is-open .modal__backdrop, .modal.is-open .modal__card { opacity: 1; }
.modal.is-open .modal__card { transform: none; }
.modal.is-closing .modal__backdrop, .modal.is-closing .modal__card { transition-duration: 150ms; }
.modal__x { position: absolute; right: 14px; top: 14px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); transition: transform 160ms var(--ease-out), background-color 150ms ease; }
.modal__x:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) { .modal__x:hover { background: var(--surface); color: var(--text); } }
.modal .kicker { margin-bottom: 4px; font-size: 20px; }
.modal__title { font-size: 28px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; margin: 10px 0 6px; padding-right: 36px; }
.modal__sub { color: var(--muted); margin-bottom: 22px; font-size: 15px; }
.modal__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }

.form { display: grid; gap: 14px; }
.form__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.form label { display: block; font-size: 14px; font-weight: 500; min-width: 0; }
.form label > input, .form label > select, .form label > textarea { display: block; margin-top: 6px; }
.form small { font-weight: 400; color: var(--muted); }
.form input, .form select, .form textarea {
  font: inherit; font-size: 16px; color: var(--text); width: 100%; padding: 12px 14px; border-radius: 12px; border: 0;
  background: var(--surface); box-shadow: inset 0 0 0 1px transparent; transition: background-color 150ms ease;
  -webkit-appearance: none; appearance: none;
}
.form select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%230b0b0f' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.form textarea { resize: vertical; min-height: 64px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; background: #fff; box-shadow: inset 0 0 0 1px var(--purple), 0 0 0 4px rgba(94, 23, 235, 0.12); }
.form .is-invalid { box-shadow: inset 0 0 0 1px #d4380d; }
.form__error { color: #c2410c; font-size: 14px; }
.form__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }
.chips { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips legend { font-size: 14px; font-weight: 500; margin-bottom: 6px; padding: 0; }
.chips label { display: block; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border-radius: 999px; background: var(--surface); font-size: 14px; font-weight: 500; cursor: pointer; transition: background-color 150ms ease, color 150ms ease, transform 160ms var(--ease-out); }
.chips span:active { transform: scale(0.97); }
.chips input:checked + span { background: var(--text); color: #fff; }
.chips input:focus-visible + span { outline: 2px solid var(--purple); outline-offset: 2px; }
@media (max-width: 560px) { .form__row, .form__actions { grid-template-columns: 1fr; } }
.modal__grab { display: none; }
/* Phones: modals become bottom sheets with a grabber (swipe down to dismiss, see main.js) */
@media (max-width: 760px) {
  .modal { align-items: end; padding: 0; }
  .modal__card { border-radius: 24px 24px 0 0; max-height: 92dvh; transform: translateY(100%); padding-top: 28px; padding-bottom: calc(24px + env(safe-area-inset-bottom)); transition-duration: 320ms; }
  .modal.is-closing .modal__card { transition-duration: 220ms; }
  .modal__grab { display: block; position: absolute; top: 8px; left: 50%; translate: -50% 0; width: 40px; height: 5px; border-radius: 3px; background: #d6d6dc; }
}
.syllabus { display: grid; counter-reset: p; }
.syllabus li { counter-increment: p; display: grid; grid-template-columns: 40px 1fr; column-gap: 10px; padding: 14px 0; border-top: 1px solid var(--line); }
.syllabus li::before { content: counter(p); grid-row: span 2; font-family: var(--serif); font-style: italic; font-size: 30px; line-height: 1; color: var(--purple); }
.syllabus b { font-weight: 600; }
.syllabus span { color: var(--muted); font-size: 15px; }

/* ---------- Scroll reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); transition-delay: var(--d, 0ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Reduced motion: fades stay, movement goes ---------- */
@media (prefers-reduced-motion: reduce) {
  .blob { animation: none; }
  .js .hero__in { animation: fade 300ms ease forwards; transform: none; }
  .js [data-reveal] { transform: none; transition: opacity 300ms ease; }
  .modal__card { transform: none !important; }
  .sim__live i { animation: none; }
}

/* =====================================================================
   Mobile & tablet app layer
   ≤900px: compact auto-hiding header, full-screen menu, bottom tab bar.
   ≤760px: content decks (compare, tracks, steps) become swipeable cards.
   ≤599px: solutions carousel becomes full-screen, one-card-per-swipe.
   Desktop (>900px) is untouched by everything below.
   ===================================================================== */

html.is-locked, html.is-locked body { overflow: hidden; }

/* ---------- Pager dots (carousel + swipe decks) ---------- */
.dots { display: none; justify-content: center; gap: 2px; margin-top: 12px; }
.dots__dot { width: 22px; height: 22px; display: grid; place-items: center; }
.dots__dot::before { content: ""; width: 6px; height: 6px; border-radius: 3px; background: #cfcfd6; transition: width 240ms var(--ease-out), background-color 200ms ease; }
.dots__dot[aria-current="true"]::before { width: 18px; background: var(--purple); }

/* ---------- Bottom tab bar ---------- */
.tabbar { display: none; }

@media (max-width: 900px) {
  :root { --nav-h: 64px; --tabbar-h: calc(64px + max(10px, env(safe-area-inset-bottom))); }

  /* Header: compact, hides on scroll down and returns on scroll up */
  .brand__logo { height: 46px; }
  .nav.is-hidden { transform: translateY(-100%); }
  .nav.is-hidden .mobile-menu { display: none; }

  /* Menu: full-screen sheet under the header */
  .mobile-menu {
    /* Sized explicitly: the header's backdrop-filter makes it the containing block, so bottom:0 would collapse it */
    position: absolute; left: 0; right: 0; top: 100%; height: calc(100dvh - var(--nav-h) - env(safe-area-inset-top));
    border-radius: 0; box-shadow: none; overflow-y: auto; overscroll-behavior: contain;
    padding: 8px max(var(--gutter), env(safe-area-inset-left)) calc(24px + env(safe-area-inset-bottom));
    transform: translateY(-8px); transform-origin: top center;
  }
  .mobile-menu > a { display: flex; justify-content: space-between; align-items: center; padding: 18px 4px; font-size: 26px; font-weight: 600; letter-spacing: -0.03em; border-radius: 0; border-bottom: 1px solid var(--line); }
  .mobile-menu > a::after { content: "→"; font-size: 20px; font-weight: 400; color: var(--muted); }
  .mobile-menu__cta { margin-top: auto; padding: 24px 0 0; }
  .mobile-menu__cta .btn { height: 54px; font-size: 16px; }

  .tabbar {
    position: fixed; z-index: 30; left: 50%; translate: -50% 0; bottom: max(10px, env(safe-area-inset-bottom));
    width: calc(100% - 20px); max-width: 520px; height: 64px;
    display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; padding: 0 4px;
    background: rgba(255,255,255,0.88); backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px);
    border-radius: 22px; box-shadow: 0 0 0 1px rgba(11,11,15,0.07), 0 16px 40px -16px rgba(11,11,15,0.35);
    transition: transform 300ms var(--ease-out), opacity 200ms ease;
  }
  html.is-locked .tabbar { transform: translateY(calc(100% + 24px)); opacity: 0; }
  .tabbar > * { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: 56px; border-radius: 16px; font-size: 11px; font-weight: 500; color: var(--muted); transition: color 200ms ease, transform 160ms var(--ease-out); user-select: none; -webkit-user-select: none; }
  .tabbar > *:active { transform: scale(0.92); }
  .tabbar .ico { width: 34px; height: 26px; padding: 3px 7px; border-radius: 13px; transition: background-color 200ms ease; }
  .tabbar a[aria-current="true"] { color: var(--purple); }
  .tabbar a[aria-current="true"] .ico { background: #efe8ff; }
  .tabbar__cta { color: var(--text) !important; font-weight: 600 !important; }
  .tabbar__cta .ico { background: var(--text); color: #fff; }

  /* Keep the footer clear of the tab bar */
  .footer { padding-bottom: calc(var(--tabbar-h) + 24px); }
  .footer__grid a, .footer__grid button { padding: 8px 0; }

  /* Hero fills the first screen like an app's welcome view */
  .hero { min-height: 100svh; padding-top: calc(var(--nav-h) + env(safe-area-inset-top) + 48px); padding-bottom: calc(var(--tabbar-h) + 28px); }

  /* Bigger touch targets */
  .faq__list summary { padding: 20px 40px 20px 0; }
  .carousel .dots--carousel { display: flex; }
}

/* ---------- Tablets (600–900): carousel slides go side by side, peeking the next one ---------- */
@media (min-width: 600px) and (max-width: 900px) {
  .slide { grid-template-columns: 1.25fr 1fr; flex-basis: calc(100% - 56px); min-height: 460px; }
  .result { min-height: 0; }
  .carousel__arrows { display: flex; }
}

/* ---------- Phones: swipe decks ---------- */
@media (max-width: 760px) {
  [data-swipe] {
    display: flex !important; gap: 10px; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
  }
  [data-swipe]::-webkit-scrollbar { display: none; }
  [data-swipe] > * { flex: 0 0 86%; scroll-snap-align: start; scroll-snap-stop: always; }
  .dots--swipe { display: flex; }

  /* Old way vs How2 way: one comparison per card */
  .compare { background: none; box-shadow: none; border-radius: 0; overflow: visible; }
  .compare__rows li { border-top: 0; border-radius: var(--r-lg); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); background: #fff; }
  .compare__old { flex: 1; }

  /* AI tracks and steps */
  .tracks > .track { flex-basis: 88%; }
  .steps > li { flex-basis: 78%; background: var(--surface); border-top: 0; border-radius: var(--r-lg); padding: 22px; }
  .step__n { font-size: 48px; margin-bottom: 12px; }

  /* Industry case studies: horizontal pill switcher + pager dots */
  .ind__bar { margin-bottom: 14px; }
  .ind__tabs {
    display: flex; gap: 4px; padding: 5px;
    background: var(--surface); border-radius: 999px;
    overflow-x: auto; scrollbar-width: none;
  }
  .ind__tabs::-webkit-scrollbar { display: none; }
  .ind__tab { flex: none; padding: 6px 14px 6px 8px; border-radius: 999px; background: transparent; gap: 8px; }
  .ind__tab-ico { width: 28px; height: 28px; border-radius: 50%; }
  .ind__tab-ico .ico { width: 15px; height: 15px; }
  .ind__tab-txt small { display: none; }
  .ind__nav { display: none; }
  .ind__case { padding: 20px; }
  .ind__col { padding: 20px; }
  .dots--ind { display: flex; }

  .proof__grid { gap: 8px; }
  .final { min-height: 0; padding-top: 220px; }
}

/* ---------- Phones (portrait): full-screen solutions carousel ---------- */
@media (max-width: 599px) {
  .carousel { margin-inline: calc(-1 * var(--gutter)); }
  .carousel__bar { padding-inline: var(--gutter); margin-bottom: 12px; }
  .carousel__tabs { width: 100%; }
  .carousel__tabs button { height: 38px; padding: 0 14px; font-size: 14px; }

  .carousel__track {
    gap: 0; border-radius: 0; scroll-snap-type: x mandatory;
    height: clamp(460px, calc(100svh - var(--nav-h) - var(--tabbar-h) - 96px), 700px);
  }
  .slide {
    flex: 0 0 100%; height: 100%; min-height: 0; padding-inline: var(--gutter);
    scroll-snap-align: center; scroll-snap-stop: always;
    display: flex; flex-direction: column; gap: 8px;
  }

  /* Result panel becomes the card's visual header */
  .result { order: -1; flex: 0 0 34%; min-height: 0; padding: 18px 20px; gap: 6px; justify-content: space-between; }
  .result b { font-size: clamp(40px, 12vw, 52px); margin-bottom: 4px; }
  .result div > p { font-size: 14px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .result__quote { font-size: clamp(22px, 6.6vw, 28px); max-width: 20ch; }
  .result .cert { position: absolute; right: 14px; top: 14px; width: 128px; padding: 10px; border-radius: 10px; margin: 0; }
  .result .cert .cert__logo { height: 30px; right: 8px; top: 8px; }
  .result .cert small { font-size: 7px; }
  .result .cert b { font-size: 11px !important; margin: 1px 0 4px !important; }
  .result .cert span { font-size: 8px; }

  .slide__main { flex: 1 1 auto; min-height: 0; overflow: hidden; padding: 20px; }
  .slide__main > * { flex-shrink: 0; }
  .slide__for { font-size: 13px; margin-bottom: 8px; }
  .slide h3 { font-size: clamp(23px, 6.6vw, 28px); margin-bottom: 10px; }
  .slide__body { font-size: 15px; line-height: 1.5; margin-bottom: 14px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; flex-shrink: 1; min-height: 0; }
  .slide__label { display: none; }
  .chips-list { gap: 6px; margin-bottom: 14px; max-height: 70px; overflow: hidden; flex-shrink: 1; min-height: 0; }
  .chips-list li { font-size: 13px; padding: 6px 10px; border-radius: 9px; }
  .slide__main .btn { width: 100%; height: 48px; white-space: normal; text-align: center; line-height: 1.2; }

  /* First-view hint that the cards swipe */
  .carousel__track.is-nudging .slide:first-child { animation: nudge 900ms var(--ease-in-out) 1; }
  @keyframes nudge { 40% { transform: translateX(-36px); } }
}
/* Shorter phones: drop the chips first, then tighten the body */
@media (max-width: 599px) and (max-height: 760px) {
  .chips-list { display: none; }
  .slide__body { -webkit-line-clamp: 3; }
}
@media (max-width: 599px) and (max-height: 640px) {
  .result { flex-basis: 30%; }
  .result div > p { -webkit-line-clamp: 1; }
}

/* ---------- Landscape phones: not enough height for full-screen cards ---------- */
@media (max-width: 900px) and (max-height: 520px) and (orientation: landscape) {
  .hero { min-height: 0; }
  .slide { min-height: 0; }
  .tabbar { height: 54px; }
  .tabbar > * { height: 48px; }
  :root { --tabbar-h: calc(54px + max(8px, env(safe-area-inset-bottom))); }
}

@media (prefers-reduced-motion: reduce) {
  .carousel__track.is-nudging .slide:first-child { animation: none; }
  .ind__case.is-active { animation: none; }
  .nav { transition: background-color 250ms ease; }
}
