/* AG_WZ - main stylesheet
   Structural skeleton modeled on zendesk.com/in (typography scale, breakpoints,
   sticky header, alternating sections, multi-column footer, lime accent on
   near-black text). Content is Amigzo's; visuals are placeholder. */

/* ---------- 0. Self-hosted fonts (variable) ---------- */
@font-face {
  font-family: "Helvena";
  src: url("../fonts/Helvena-Variable.woff2") format("woff2-variations"),
       url("../fonts/Helvena-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Satoshi";
  src: url("../fonts/Satoshi-Variable.woff2") format("woff2-variations"),
       url("../fonts/Satoshi-Variable.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Satoshi";
  src: url("../fonts/Satoshi-VariableItalic.woff2") format("woff2-variations"),
       url("../fonts/Satoshi-VariableItalic.woff2") format("woff2");
  font-weight: 300 900;
  font-style: italic;
  font-display: swap;
}

/* ---------- 1. Tokens ---------- */
:root {
  --bg: #ffffff;
  --bg-soft: #f5f5f2;
  --bg-dark: #030302;
  --fg: #11110d;
  --fg-muted: #5a5a4f;
  --fg-on-dark: #f5f5f2;
  --fg-on-dark-muted: #a8a89c;
  --border: #e6e6e0;
  --border-dark: #3c3c2e;
  --primary: #0088ff;
  --primary-hover: #006fd1;
  --primary-active: #005ab0;
  --primary-fg: #ffffff;
  --accent: #0088ff;
  --accent-hover: #006fd1;
  --accent-fg: #ffffff;
  --accent-soft: #e3f2ff;
  --accent-soft-border: #b3daff;

  --maxw: 1280px;
  --gutter: 24px;
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;

  --t-fast: 120ms ease;
  --t: 200ms ease;
  --t-slow: 400ms ease;

  --shadow-sm: 0 1px 2px rgba(17, 17, 13, 0.06);
  --shadow: 0 8px 24px rgba(17, 17, 13, 0.08);

  /* Typography families */
  --font-body: "Satoshi", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-heading: "Helvena", "Satoshi", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(0.9375rem, 0.9rem + 0.15vw, 1rem); /* 15→16 */
  line-height: 1.55;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Headings + CTAs use Helvena */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3,
.btn,
.hero__tagline,
.nav__brand,
.footer__wordmark {
  font-family: var(--font-heading);
}
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul { list-style: none; padding: 0; margin: 0; }
h1, h2, h3, h4, h5, h6, p { margin: 0; }

/* ---------- 3. Typography scale ---------- */
.h1 {
  font-size: clamp(2rem, 1.2rem + 3.5vw, 4rem); /* 32→64 */
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.h2 {
  font-size: clamp(1.75rem, 1.15rem + 1.75vw, 2.625rem); /* 28→42 */
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: -0.015em;
}
.h3 {
  font-size: clamp(1.375rem, 1rem + 1.2vw, 2rem); /* 22→32 */
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.lead {
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.25rem); /* 16→20 */
  line-height: 1.5;
  color: var(--fg-muted);
}
.label {
  font-size: clamp(0.75rem, 0.7rem + 0.15vw, 0.875rem); /* 12→14 */
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fg-muted);
}
.muted { color: var(--fg-muted); }
.center { text-align: center; }

/* ---------- 4. Layout ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section { padding: 64px 0; }
@media (min-width: 768px)  { .section { padding: 96px 0; } }
@media (min-width: 1150px) { .section { padding: 120px 0; } }

.section--dark {
  background: var(--bg-dark);
  color: var(--fg-on-dark);
}
.section--dark .lead,
.section--dark .label,
.section--dark .muted { color: var(--fg-on-dark-muted); }
.section--soft { background: var(--bg-soft); }

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 12px;
  border: 1.5px solid transparent;
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1;
  transition: background var(--t), color var(--t), border-color var(--t), transform var(--t-fast);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: var(--primary);
  color: var(--primary-fg);
  position: relative;
  overflow: hidden;
}
.btn--primary:hover { background: var(--primary-hover); }
.btn--primary:active { background: var(--primary-active); }
.btn--primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  pointer-events: none;
}
.btn--primary:hover::after {
  animation: btn-shimmer 0.7s ease-out;
}
@keyframes btn-shimmer {
  from { left: -100%; }
  to   { left: 160%; }
}
@media (prefers-reduced-motion: reduce) {
  .btn--primary:hover::after { animation: none; }
}

/* Blog post inline-CTA buttons must beat .post-prose a underline + blue color */
.post-inline-cta .btn { text-decoration: none; }
.post-inline-cta .btn--primary { color: var(--primary-fg); }
.post-inline-cta .btn--primary:hover { color: var(--primary-fg); }
.post-inline-cta .btn--ghost-on-dark { color: #fff; }

.btn--accent {
  background: var(--accent);
  color: var(--accent-fg);
}
.btn--accent:hover { background: var(--accent-hover); }
.btn--ghost {
  background: transparent;
  color: var(--fg);
  border: 1.5px solid var(--fg);
}
.btn--ghost:hover { background: var(--fg); color: var(--bg); }
.btn--ghost-on-dark {
  background: transparent;
  color: var(--fg-on-dark);
  border: 1.5px solid var(--fg-on-dark);
}
.btn--ghost-on-dark:hover { background: var(--fg-on-dark); color: var(--fg); }
.btn--sm { padding: 10px 16px; font-size: 0.875rem; }

/* ---------- 6. Header / Nav (Zendesk-style mega menu) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
  min-height: 76px;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  min-height: 76px;
  gap: 16px;
  position: relative;
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.nav__brand img {
  height: 40px;
  width: auto;
  display: block;
}
.nav__brand--footer img { height: 36px; }

.nav__list {
  display: none;
  align-items: center;
  gap: 4px;
  margin: 0 auto;
}
.nav__item { position: static; }
.nav__link,
.nav__trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--fg);
  line-height: 1;
  background: transparent;
  transition: background var(--t), color var(--t);
  white-space: nowrap;
}
.nav__link:hover,
.nav__trigger:hover { background: #f0f0ec; }
.nav__trigger[aria-expanded="true"] { background: #ebebe4; }
.nav__chevron {
  width: 12px; height: 12px;
  transition: transform var(--t);
  color: currentColor;
}
.nav__trigger[aria-expanded="true"] .nav__chevron { transform: rotate(180deg); }

.nav__cta { display: none; gap: 10px; align-items: center; flex-shrink: 0; }

.nav__toggle {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  border-radius: 8px;
  margin-left: auto;
}
.nav__toggle span {
  width: 22px; height: 2px;
  background: var(--fg);
  display: block;
  transition: transform var(--t), opacity var(--t);
}
.nav[data-open="true"] .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav[data-open="true"] .nav__toggle span:nth-child(2) { opacity: 0; }
.nav[data-open="true"] .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 1150px) {
  .nav__list { display: flex; }
  .nav__cta { display: inline-flex; }
  .nav__toggle { display: none; }
}

/* ---------- 6a. Mega panels (desktop) ---------- */
.nav__panels {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  width: min(1120px, calc(100vw - 48px));
  pointer-events: none;
}
@media (min-width: 1150px) { .nav__panels { display: block; } }

.nav__panel {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  opacity: 0;
  visibility: hidden;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(17, 17, 13, 0.12), 0 2px 6px rgba(17, 17, 13, 0.05);
  padding: 28px;
  transition: opacity var(--t), transform var(--t), visibility var(--t);
  width: 100%;
  max-width: 920px;
}
.nav__panel[data-open="true"] {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.nav__panel--wide { max-width: 1280px; }

/* Panel overlay dimming */
.nav-overlay {
  position: fixed;
  inset: 76px 0 0 0;
  background: rgba(17, 17, 13, 0.18);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t), visibility var(--t);
  z-index: 55;
  pointer-events: none;
}
.nav-overlay[data-open="true"] { opacity: 1; visibility: visible; pointer-events: auto; }
@media (max-width: 1149.98px) { .nav-overlay { display: none; } }

/* ---------- 6b. Panel content blocks ---------- */
.dd-hero {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding-bottom: 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--border);
}
.dd-hero__icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--accent-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--accent-soft-border);
  color: var(--primary);
  flex-shrink: 0;
}
.dd-hero__title { font-size: 1.0625rem; font-weight: 700; color: var(--fg); margin-bottom: 4px; }
.dd-hero__desc { font-size: 0.9375rem; color: var(--fg-muted); line-height: 1.45; }

.dd-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 32px;
}
.dd-grid--3 { grid-template-columns: repeat(3, 1fr); }
.dd-grid--4 {
  grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(220px, 0.92fr);
  column-gap: 28px;
  row-gap: 20px;
  align-items: start;
}
/* Each column becomes a grid with auto rows so items in the same row across
   columns line up (keeps icons vertically aligned even when descriptions vary
   between 1 and 2 lines). */
.dd-grid--4 > div:not(.dd-featured) {
  display: grid;
  grid-auto-rows: 88px;
  row-gap: 2px;
}

.dd-item {
  display: flex;
  gap: 14px;
  padding: 12px;
  border-radius: 14px;
  transition: background var(--t);
  align-items: flex-start;
}
.dd-item:hover { background: #f5f5f0; }
.dd-item__icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  border: 1.5px solid var(--accent-soft-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary);
}
.dd-item__icon--dark {
  background: var(--fg);
  border-color: var(--fg);
  color: #ffffff;
}
.dd-item__body { min-width: 0; }
.dd-item__title {
  display: block;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 4px;
  line-height: 1.3;
}
.dd-item__desc {
  display: block;
  font-size: 0.8125rem;
  color: var(--fg-muted);
  line-height: 1.5;
}
.dd-sep {
  grid-column: 1 / -1;
  height: 1px;
  background: var(--border);
  margin: 6px 0;
}

/* Solutions-style: labeled columns, no colored icon boxes */
.dd-col__label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
  padding: 0 12px 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 10px;
}
.dd-item--plain .dd-item__icon {
  background: #f0f0ec;
  border-color: #e6e6e0;
}

.dd-featured {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.dd-featured__image {
  aspect-ratio: 5/3;
  border-radius: 14px;
  background: linear-gradient(180deg, #cfe6ff 0%, #0088ff 100%);
  display: flex;
  align-items: flex-end;
  padding: 18px;
  font-weight: 700;
  font-size: 1.25rem;
  color: #ffffff;
  letter-spacing: -0.01em;
}
.dd-featured__title { font-size: 1.0625rem; font-weight: 700; line-height: 1.3; }
.dd-featured__desc { font-size: 0.8125rem; color: var(--fg-muted); line-height: 1.45; }
.dd-featured__link {
  font-size: 0.875rem;
  font-weight: 600;
  border-bottom: 1.5px solid var(--fg);
  align-self: flex-start;
  padding-bottom: 2px;
}

/* ---------- 6c. Mobile nav drawer ---------- */
.nav__mobile {
  display: none;
  position: fixed;
  top: 76px;
  right: 0;
  left: 0;
  height: calc(100dvh - 76px);
  max-height: calc(100dvh - 76px);
  background: #fff;
  z-index: 55;
  overflow-y: auto;
  overscroll-behavior: contain;
  /* Bottom padding is owned by the sticky CTA so the CTA can sit flush
     with the viewport bottom no matter how tall the drawer content is. */
  padding: 20px 24px 0;
  flex-direction: column;
}
.nav[data-open="true"] .nav__mobile { display: flex; }
.nav__mobile-section {
  border-bottom: 1px solid var(--border);
}
.nav__mobile-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--fg);
  text-align: left;
}
.nav__mobile-trigger .nav__chevron { width: 14px; height: 14px; }
.nav__mobile-trigger[aria-expanded="true"] .nav__chevron { transform: rotate(180deg); }
.nav__mobile-panel {
  display: none;
  padding: 0 0 20px;
}
.nav__mobile-trigger[aria-expanded="true"] + .nav__mobile-panel { display: block; }
.nav__mobile-panel a {
  display: block;
  padding: 12px 0;
  font-size: 1rem;
  color: var(--fg-muted);
}
.nav__mobile-panel a:hover { color: var(--fg); }
.nav__mobile > a {
  display: block;
  padding: 18px 0;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--fg);
  border-bottom: 1px solid var(--border);
}
/* Sticky-bottom CTA: stays pinned to the drawer bottom whether content
   fits or scrolls. margin-top:auto handles the fit-case (pushes to the
   end of the flex column), position:sticky handles the overflow-case
   (pins to the viewport bottom while links scroll behind). */
.nav__mobile-cta {
  display: flex;
  gap: 12px;
  margin-top: auto;
  padding: 20px 0 24px;
  position: sticky;
  bottom: 0;
  background: #fff;
  box-shadow: 0 -16px 16px -12px #fff;
}
.nav__mobile-cta .btn { flex: 1; }

@media (min-width: 1150px) { .nav__mobile { display: none !important; } }

/* ---------- 7. Hero ---------- */
.hero {
  padding: 56px 0 32px;
  position: relative;
  overflow: hidden;
}
@media (min-width: 768px)  { .hero { padding: 88px 0 48px; } }
@media (min-width: 1150px) { .hero { padding: 120px 0 56px; } }

.hero__inner {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}
.hero__label { margin-bottom: 20px; display: inline-block; }
.hero__h1 { margin-bottom: 24px; }
.hero__sub { margin: 0 auto 12px; max-width: 720px; }
.hero__tagline {
  font-style: italic;
  color: var(--fg-muted);
  margin-bottom: 32px;
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.125rem);
}
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 16px;
}
.hero__ctas .btn {
  min-width: 220px;
  padding: 16px 24px;
  font-size: 1rem;
}
@media (max-width: 480px) {
  .hero__ctas { flex-direction: column; align-items: stretch; }
  .hero__ctas .btn { min-width: 0; width: 100%; }
}
.hero__micro {
  font-size: 0.875rem;
  color: var(--fg-muted);
}
.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 50% at 80% 10%, rgba(209, 244, 112, 0.18), transparent 70%),
    radial-gradient(40% 40% at 10% 90%, rgba(209, 244, 112, 0.10), transparent 70%);
  z-index: 0;
}

/* ---------- 8. Showcase (product mockup + portraits + trust logos) ---------- */
.showcase { padding: 8px 0 72px; }
@media (min-width: 768px) { .showcase { padding: 16px 0 96px; } }

.showcase__stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
  margin-bottom: 56px;
}
@media (min-width: 768px) { .showcase__stage { min-height: 480px; margin-bottom: 72px; } }

.showcase__photos {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  gap: 12px;
  z-index: 1;
}
.showcase__photos--left  { left: 0; }
.showcase__photos--right { right: 0; }
@media (min-width: 1100px) { .showcase__photos { display: flex; } }

.portrait {
  width: 130px;
  height: 169px;
  position: relative;
  flex-shrink: 0;
  filter: drop-shadow(0 18px 30px rgba(17, 17, 13, 0.18));
}
.portrait img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.portrait--1 { transform: translate(0, 14px) rotate(-10deg); }
.portrait--2 { transform: translate(0, 30px) rotate(-3deg); width: 152px; height: 198px; }
.portrait--3 { transform: translate(0, 30px) rotate(3deg);  width: 152px; height: 198px; }
.portrait--4 { transform: translate(0, 14px) rotate(10deg); }
@media (min-width: 1280px) {
  .portrait { width: 150px; height: 195px; }
  .portrait--2, .portrait--3 { width: 175px; height: 228px; }
}

/* Product mockup */
.mockup {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 720px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(17, 17, 13, 0.18), 0 4px 12px rgba(17, 17, 13, 0.06);
  border: 1px solid var(--border);
  overflow: hidden;
  display: grid;
  grid-template-columns: 56px 1fr;
}
.mockup__rail {
  background: var(--fg);
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  color: var(--fg-on-dark-muted);
}
.mockup__rail-logo {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--primary);
  display: grid; place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 0.875rem;
}
.mockup__rail svg { opacity: 0.75; }
.mockup__main { display: grid; grid-template-columns: 1fr; }
@media (min-width: 640px) { .mockup__main { grid-template-columns: 1fr 220px; } }
.mockup__header {
  grid-column: 1 / -1;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 600;
  font-size: 0.9375rem;
}
.mockup__dots { display: flex; gap: 8px; color: var(--fg-muted); }
.mockup__dots span {
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center;
  background: #f5f5f0; font-size: 0.75rem;
}
.mockup__chat { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.mockup__msg { display: flex; gap: 10px; align-items: flex-start; }
.mockup__avatar {
  width: 32px; height: 32px; border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
  background: #eaeae4;
}
.mockup__avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mockup__bubble {
  background: #f5f5f0;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.875rem;
  color: var(--fg);
  line-height: 1.45;
  max-width: 320px;
}
.mockup__bubble-name { font-weight: 700; font-size: 0.8125rem; margin-bottom: 2px; }
.mockup__reply {
  margin: 0 18px 14px;
  padding: 12px 14px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.8125rem;
  color: var(--fg-muted);
}
.mockup__reply-cta {
  background: var(--primary);
  color: #fff;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
}
.mockup__side {
  border-left: 1px solid var(--border);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #fafaf6;
}
.mockup__side-head { display: flex; align-items: center; gap: 10px; }
.mockup__side-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  overflow: hidden;
  background: #eaeae4;
  flex-shrink: 0;
}
.mockup__side-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mockup__side-name { font-weight: 700; font-size: 0.875rem; }
.mockup__side-badge {
  font-size: 0.6875rem;
  background: var(--accent-soft);
  color: var(--primary);
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.mockup__side-row { font-size: 0.8125rem; color: var(--fg-muted); display: flex; justify-content: space-between; gap: 8px; }
.mockup__side-row strong { color: var(--fg); font-weight: 600; }
.mockup__side-label { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-muted); margin-top: 6px; }
.mockup__checks { display: flex; flex-direction: column; gap: 8px; font-size: 0.8125rem; color: var(--fg-muted); }
.mockup__checks li { display: flex; gap: 8px; align-items: flex-start; }
.mockup__checks svg { flex-shrink: 0; color: var(--primary); margin-top: 2px; }

/* Hero video mockup - replaces the static .mockup card */
.mockup-video {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 10;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(17, 17, 13, 0.18), 0 4px 12px rgba(17, 17, 13, 0.06);
  border: 1px solid var(--border);
  overflow: hidden;
}
@media (min-width: 768px)  { .mockup-video { max-width: 540px; } }
@media (min-width: 1100px) { .mockup-video { max-width: 560px; } }
@media (min-width: 1280px) { .mockup-video { max-width: 660px; } }
.mockup-video__el {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Trust logo row */
.trust-row { padding-top: 8px; }
.trust-row__label { text-align: center; margin-bottom: 28px; }
.trust-row__marquee {
  position: relative;
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.trust-row__track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: trust-scroll 38s linear infinite;
  will-change: transform;
}
.trust-row__marquee:hover .trust-row__track { animation-play-state: paused; }
.trust-row__logo {
  height: 32px;
  width: auto;
  flex-shrink: 0;
  margin-right: 56px;
  filter: grayscale(1);
  opacity: 0.7;
  transition: filter var(--t), opacity var(--t);
}
.trust-row__logo:hover {
  filter: grayscale(0);
  opacity: 1;
}
@keyframes trust-scroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .trust-row__track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
  }
  .trust-row__logo { margin: 12px 20px; }
}

/* ---------- 9. Generic grid ---------- */
.grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 768px)  { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px)  { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1150px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1150px) { .grid--4 { grid-template-columns: repeat(4, 1fr); } }

/* ---------- 10. Cards ---------- */
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.card:hover {
  border-color: var(--fg);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.section--dark .card {
  background: #0f0f0a;
  border-color: var(--border-dark);
  color: var(--fg-on-dark);
}
.section--dark .card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.card__step {
  display: inline-block;
  font-weight: 700;
  font-size: 0.8125rem;
  color: #ffffff;
  background: var(--primary);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.card__title { margin-bottom: 8px; }
.card__body { color: var(--fg-muted); font-size: 0.9375rem; }
.section--dark .card__body { color: var(--fg-on-dark-muted); }

/* ---------- 11. Section heading block ---------- */
.section__head {
  max-width: 760px;
  margin: 0 auto 56px;
  text-align: center;
}
.section__head .label { display: inline-block; margin-bottom: 16px; }
.section__head .h2 { margin-bottom: 16px; }

/* ---------- 11b. Feature list (inside split sections) ---------- */
.feat-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 32px;
  align-items: stretch;
}
@media (min-width: 540px)  { .feat-list { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
@media (min-width: 1150px) { .feat-list { gap: 28px; } }

.feat-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 18px;
  border-top: 2px solid var(--primary);
  height: 100%;
}
.feat-item__title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--fg);
  line-height: 1.3;
  letter-spacing: -0.005em;
  min-height: calc(1.3em * 2);
  display: flex;
  align-items: flex-start;
}
.feat-item__body {
  font-size: 0.9375rem;
  color: var(--fg-muted);
  line-height: 1.55;
  margin: 0;
}

/* ---------- 12. Alternating split ---------- */
.split {
  display: grid;
  gap: 40px;
  align-items: center;
  grid-template-columns: 1fr;
}
.split__media {
  background: linear-gradient(135deg, #1a1a14 0%, #030302 100%);
  border-radius: var(--radius-lg);
  aspect-ratio: 4/3;
  position: relative;
  overflow: hidden;
}
.split__media > img,
.split__media > video,
.split__media > picture,
.split__media > picture > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.split__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(50% 50% at 50% 50%, rgba(209, 244, 112, 0.25), transparent 70%);
  pointer-events: none;
}
.split__media:has(img)::after,
.split__media:has(video)::after { display: none; }
.split__copy .label { margin-bottom: 16px; display: inline-block; }
.split__copy .h2 { margin-bottom: 16px; }
.split__copy .lead { margin-bottom: 24px; }
.split__cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }

@media (min-width: 768px) {
  .split { grid-template-columns: repeat(2, 1fr); gap: 56px; }
  .split--reverse .split__media { order: 2; }
}
@media (min-width: 1150px) { .split { gap: 80px; } }

/* ---------- 13. Tabs ---------- */
.tabs {
  display: inline-flex;
  background: var(--bg-soft);
  padding: 6px;
  border-radius: 999px;
  margin: 0 auto 40px;
  gap: 4px;
}
.tabs__btn {
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--fg-muted);
  transition: background var(--t), color var(--t);
}
.tabs__btn[aria-selected="true"] {
  background: var(--fg);
  color: var(--bg);
}
.tabs__panel { display: none; }
.tabs__panel[data-active="true"] { display: block; }
.tabs__row { display: flex; justify-content: center; }

.section--dark .tabs { background: #1a1a14; }
.section--dark .tabs__btn { color: var(--fg-on-dark-muted); }
.section--dark .tabs__btn[aria-selected="true"] { background: var(--accent); color: var(--accent-fg); }

/* ---------- 14. Testimonials ---------- */
.testimonials {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 8px 4px 24px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.testimonials::-webkit-scrollbar { height: 6px; }
.testimonials::-webkit-scrollbar-thumb { background: var(--border); border-radius: 999px; }
.testimonial {
  flex: 0 0 320px;
  scroll-snap-align: start;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
@media (min-width: 768px) { .testimonial { flex-basis: 380px; } }
.testimonial__quote {
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--fg);
}
.testimonial__author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}
.testimonial__avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: #1a1a14;
}
.testimonial__avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.testimonial__name { font-weight: 600; font-size: 0.9375rem; }
.testimonial__role { font-size: 0.8125rem; color: var(--fg-muted); }

/* ---------- 15. Blog cards ---------- */
.blog-card { display: flex; flex-direction: column; gap: 16px; }
.blog-card__image {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, #f5f5f2, #e6e6e0);
  border-radius: var(--radius);
}
.blog-card__tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
}
.blog-card__title {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
}
.blog-card__meta { font-size: 0.8125rem; color: var(--fg-muted); }

/* ---------- 16. Final CTA ---------- */
.final-cta {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.final-cta .h2 { margin-bottom: 16px; }
.final-cta .lead { margin-bottom: 32px; }
.final-cta__buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}
.final-cta__trust { font-size: 0.8125rem; color: var(--fg-on-dark-muted); }

/* ---------- 17. Footer ---------- */
.site-footer {
  background: var(--bg-dark);
  color: var(--fg-on-dark);
  padding: 64px 0 32px;
}
.footer__top {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border-dark);
}
.footer__brand-block { max-width: 320px; }
.footer__brand-block p { color: var(--fg-on-dark-muted); margin-top: 12px; font-size: 0.9375rem; }
.footer__cols {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(2, 1fr);
}
.footer__col h4 {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fg-on-dark);
  margin-bottom: 16px;
}
.footer__col ul { display: flex; flex-direction: column; gap: 10px; }
.footer__col a {
  color: var(--fg-on-dark-muted);
  font-size: 0.9375rem;
  transition: color var(--t);
}
.footer__col a:hover { color: var(--accent); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  font-size: 0.8125rem;
  color: var(--fg-on-dark-muted);
}
.footer__legal { display: flex; gap: 20px; flex-wrap: wrap; }
.footer__legal a { color: var(--fg-on-dark-muted); }
.footer__legal a:hover { color: var(--accent); }

@media (min-width: 768px) {
  .footer__top { grid-template-columns: 1fr 3fr; }
  .footer__cols { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1100px) {
  .footer__top { grid-template-columns: 1fr 4fr; }
  .footer__cols { grid-template-columns: repeat(5, 1fr); gap: 24px; }
}

/* ---------- 17b. Bento grid (Problem section) ---------- */
.bento {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .bento {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: stretch;
  }
  .bento__tile--a { aspect-ratio: 1 / 1; }
}
@media (min-width: 1150px) { .bento { gap: 24px; } }

.bento__right {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 0;
}
@media (min-width: 768px)  { .bento__right { gap: 20px; } }
@media (min-width: 1150px) { .bento__right { gap: 24px; } }
@media (max-width: 767.98px) { .bento__right { display: contents; } }

.bento__right > .bento__tile {
  flex: 1 1 0;
  min-height: 0;
}

.bento__tile {
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--fg);
  transition: transform var(--t), box-shadow var(--t);
  border: 1px solid var(--border);
  min-height: 200px;
}
.bento__tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.bento__tile__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.bento__tile__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17,17,13,0.12) 0%, rgba(17,17,13,0.85) 100%);
  z-index: 1;
}
.bento__tile--image { color: #fff; }
.bento__tile--image .bento__tile__body { color: rgba(255,255,255,0.85); }

.bento__tile__content {
  position: relative;
  z-index: 2;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bento__tile--a .bento__tile__content { padding: 32px; gap: 12px; }
.bento__tile__tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--primary);
  align-self: flex-start;
  margin-bottom: 4px;
}
.bento__tile--image .bento__tile__tag {
  background: rgba(255,255,255,0.18);
  color: #fff;
  backdrop-filter: blur(6px);
}
.bento__tile__title {
  font-size: clamp(1.25rem, 1rem + 0.8vw, 1.75rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
}
.bento__tile--a .bento__tile__title { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem); }
.bento__tile__body {
  font-size: 0.9375rem;
  color: var(--fg-muted);
  line-height: 1.5;
  max-width: 48ch;
}

/* ---------- 17d. FAQ ---------- */
.faq {
  max-width: 820px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 8px;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--fg);
  line-height: 1.4;
  transition: color var(--t);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--primary); }
.faq-item__chevron {
  width: 22px; height: 22px;
  flex-shrink: 0;
  color: var(--fg-muted);
  transition: transform var(--t), color var(--t);
}
.faq-item[open] summary { color: var(--fg); }
.faq-item[open] .faq-item__chevron { transform: rotate(180deg); color: var(--primary); }
.faq-item__body {
  padding: 0 8px 22px;
  color: var(--fg-muted);
  font-size: 0.9375rem;
  line-height: 1.65;
  max-width: 720px;
}

/* ---------- 17c. Banners ---------- */
.banners {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .banners { grid-template-columns: repeat(2, 1fr); gap: 24px; } }

.banner {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 260px;
  display: flex;
  align-items: flex-end;
  padding: 32px;
  color: #fff;
  transition: transform var(--t);
}
.banner:hover { transform: translateY(-2px); }
.banner__img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.banner__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.banner--blue .banner__overlay { background: linear-gradient(135deg, rgba(0,136,255,0.92) 0%, rgba(0,95,179,0.85) 100%); }
.banner--dark .banner__overlay { background: linear-gradient(135deg, rgba(17,17,13,0.88) 0%, rgba(17,17,13,0.62) 100%); }
.banner__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 440px;
}
.banner__tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(6px);
  color: #fff;
  align-self: flex-start;
}
.banner__title {
  font-size: clamp(1.375rem, 1.1rem + 0.9vw, 1.875rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
}
.banner__body {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.88);
  line-height: 1.5;
}
.banner__cta {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  color: var(--fg);
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9375rem;
  align-self: flex-start;
  transition: background var(--t);
}
.banner__cta:hover { background: var(--accent-soft); }

/* ---------- 18. Utilities ---------- */
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-3 { gap: 12px; }

/* ---------- 19. Resume Analyzer (tool-specific) ---------- */

/* Hero grid collapses on tablet */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr !important; gap: 2rem !important; }
}

/* Dropzone */
.dropzone {
  position: relative;
  background: #fff;
  border: 2px dashed #c9c9c0;
  border-radius: 1.25rem;
  padding: 2rem 1.5rem;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  transition: border-color var(--t), background var(--t), transform var(--t);
  box-shadow: 0 12px 40px rgba(17, 17, 13, 0.08);
}
.dropzone[data-state="idle"] .dropzone__idle { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.75rem; text-align: center; min-height: 380px; }
.dropzone[data-state="idle"]:hover,
.dropzone[data-state="idle"][data-dragover="true"] {
  border-color: var(--primary);
  background: var(--accent-soft);
  transform: translateY(-2px);
}
.dropzone__icon { width: 64px; height: 64px; color: var(--primary); opacity: 0.75; }
.dropzone__title { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; margin: 0; }
.dropzone__hint { font-size: 0.95rem; color: var(--fg-muted); margin: 0; }
.dropzone__browse { color: var(--primary); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; padding: 0; background: none; }
.dropzone__browse:hover { color: var(--primary-hover); }
.dropzone__trust { font-size: 0.8125rem; color: var(--fg-muted); margin: 0.5rem 0 0; opacity: 0.8; }
.dropzone__error { color: #c92a2a; font-size: 0.875rem; margin-top: 0.5rem; min-height: 1.2em; }

/* Has-file view */
.dropzone__ready { display: flex; flex-direction: column; gap: 1.25rem; }
.dropzone__file {
  display: flex; align-items: center; gap: 0.85rem;
  background: var(--bg-soft); padding: 0.85rem 1rem; border-radius: 12px;
}
.dropzone__file svg { flex-shrink: 0; color: var(--primary); }
.dropzone__file-info { flex: 1; min-width: 0; }
.dropzone__file-name { font-weight: 600; font-size: 0.95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dropzone__file-size { font-size: 0.8rem; color: var(--fg-muted); }
.dropzone__remove {
  width: 32px; height: 32px; border-radius: 50%;
  background: transparent; color: var(--fg-muted); flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background var(--t), color var(--t);
}
.dropzone__remove:hover { background: #fee; color: #c92a2a; }

.dropzone__inputs { display: flex; flex-direction: column; gap: 0.85rem; }
.dropzone__label { display: flex; flex-direction: column; gap: 0.4rem; font-size: 0.85rem; font-weight: 600; color: var(--fg); }
.dropzone__input {
  font: inherit; padding: 0.7rem 0.85rem; border: 1px solid var(--border);
  border-radius: 10px; background: #fff; transition: border-color var(--t);
}
.dropzone__input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0, 136, 255, 0.15); }
.dropzone__chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.dropzone__chip {
  padding: 0.45rem 0.85rem; border-radius: 999px; font-size: 0.85rem; font-weight: 600;
  background: var(--bg-soft); color: var(--fg); border: 1.5px solid transparent;
  transition: background var(--t), border-color var(--t), color var(--t);
}
.dropzone__chip:hover { background: #ebebe4; }
.dropzone__chip[aria-checked="true"] { background: var(--accent-soft); border-color: var(--primary); color: var(--primary); }
.dropzone__analyze { align-self: flex-start; margin-top: 0.25rem; }

/* Scanning view */
.dropzone__scanning { display: flex; flex-direction: column; }
.scan-steps { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.65rem; }
.scan-step { display: flex; align-items: center; gap: 0.75rem; font-size: 0.9rem; color: var(--fg-muted); opacity: 0.5; transition: opacity var(--t); }
.scan-step__icon {
  width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0;
  border: 2px solid var(--border); position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  transition: border-color var(--t), background var(--t);
}
.scan-step.is-doing { opacity: 1; color: var(--fg); }
.scan-step.is-doing .scan-step__icon { border-color: var(--primary); border-top-color: transparent; animation: scan-spin 0.9s linear infinite; }
.scan-step.is-done { opacity: 1; color: var(--fg-muted); }
.scan-step.is-done .scan-step__icon { background: #09B285; border-color: #09B285; }
.scan-step.is-done .scan-step__icon::after {
  content: ""; width: 10px; height: 6px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translateY(-1px);
}
@keyframes scan-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .scan-step.is-doing .scan-step__icon { animation: none; }
}

/* Results layout */
.results__verdict {
  display: grid; grid-template-columns: auto 1fr; gap: 2rem; align-items: center;
  background: var(--bg-soft); padding: 2rem; border-radius: 1.25rem; margin-bottom: 2rem;
}
@media (max-width: 720px) {
  .results__verdict { grid-template-columns: 1fr; text-align: center; }
}
.gauge { width: 220px; height: 220px; position: relative; }
.gauge__ring-bg { fill: none; stroke: var(--border); stroke-width: 14; }
.gauge__ring { fill: none; stroke-width: 14; stroke-linecap: round; transition: stroke-dashoffset 1.5s cubic-bezier(0.2, 0.8, 0.3, 1); }
.gauge__score {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-weight: 700; letter-spacing: -0.02em;
}
.gauge__number { font-size: 3.25rem; line-height: 1; }
.gauge__max { font-size: 1rem; color: var(--fg-muted); font-weight: 500; }
.gauge--red   .gauge__ring { stroke: #c92a2a; } .gauge--red   .gauge__number { color: #c92a2a; }
.gauge--amber .gauge__ring { stroke: #e8a317; } .gauge--amber .gauge__number { color: #b7780a; }
.gauge--green .gauge__ring { stroke: #09B285; } .gauge--green .gauge__number { color: #07845e; }

.verdict__band { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 0.75rem; display: inline-block; padding: 0.3rem 0.75rem; border-radius: 999px; }
.verdict__band--red { background: #fee; color: #c92a2a; }
.verdict__band--amber { background: #fff4de; color: #b7780a; }
.verdict__band--green { background: #e0f7ef; color: #07845e; }
.verdict__headline { font-size: clamp(1.25rem, 1.6vw, 1.6rem); font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; margin-bottom: 0.5rem; }
.verdict__lead { color: var(--fg-muted); margin-bottom: 1rem; }
.verdict__cta { margin-top: 0.25rem; }

/* Sub-score strip */
.sub-scores { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 2.25rem; }
@media (max-width: 720px) { .sub-scores { grid-template-columns: 1fr; } }
.sub-score {
  background: #fff; padding: 1.25rem; border-radius: 1rem; border: 1px solid var(--border);
  cursor: pointer; transition: box-shadow var(--t), transform var(--t);
}
.sub-score:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.sub-score__label { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--fg-muted); margin-bottom: 0.5rem; }
.sub-score__value { font-size: 1.75rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 0.6rem; }
.sub-score__bar { height: 8px; background: var(--border); border-radius: 999px; overflow: hidden; }
.sub-score__fill { height: 100%; border-radius: 999px; width: 0%; transition: width 1.2s cubic-bezier(0.2, 0.8, 0.3, 1); }

/* Issue groups */
.issue-groups { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2.5rem; }
.issue-group { border: 1px solid var(--border); border-radius: 1rem; overflow: hidden; background: #fff; }
.issue-group__head {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 1.25rem; background: var(--bg-soft); cursor: pointer;
  font-weight: 700; font-size: 1rem;
}
.issue-group__count { font-size: 0.8rem; font-weight: 500; color: var(--fg-muted); }
.issue-group__list { list-style: none; padding: 0; margin: 0; }
.issue-item { padding: 1rem 1.25rem; border-top: 1px solid var(--border); display: flex; gap: 0.75rem; align-items: flex-start; }
.issue-item__dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 0.45rem; flex-shrink: 0; }
.issue-item__dot--critical { background: #c92a2a; }
.issue-item__dot--improve  { background: #e8a317; }
.issue-item__dot--nice     { background: #a8a89c; }
.issue-item__body { flex: 1; }
.issue-item__title { font-weight: 600; font-size: 0.95rem; margin-bottom: 0.2rem; }
.issue-item__desc { font-size: 0.875rem; color: var(--fg-muted); line-height: 1.5; }

/* Matched Guides band */
.matched-band { background: #0a0a0a; color: #fff; padding: 2.5rem 2rem; border-radius: 1.25rem; margin: 2.5rem 0 0; }
.matched-band__head { max-width: 760px; margin: 0 auto 2rem; text-align: center; }
.matched-band__label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.6; display: inline-block; margin-bottom: 0.75rem; }
.matched-band__title { font-size: clamp(1.35rem, 1.8vw, 1.75rem); font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; }
.matched-band__cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; }
.matched-card { position: relative; aspect-ratio: 380/500; border-radius: 16px; overflow: hidden; background: #0a0a0a; box-shadow: 0 18px 50px rgba(0,0,0,0.32); }
.matched-card__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.matched-card__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.05) 30%, rgba(0,0,0,0.55) 48%, rgba(10,10,10,0.92) 66%, #0a0a0a 88%); z-index: 1; }
.matched-card__body { position: absolute; left: 18px; right: 18px; bottom: 18px; z-index: 2; color: #fff; }
.matched-card__match { display: inline-flex; align-items: center; gap: 6px; background: var(--primary); color: #fff; padding: 4px 10px; border-radius: 999px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.04em; margin-bottom: 10px; }
.matched-card__name { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 1.35rem; font-weight: 700; letter-spacing: -0.015em; line-height: 1.1; }
.matched-card__company { display: flex; align-items: center; gap: 7px; margin-bottom: 12px; font-size: 0.85rem; }
.matched-card__rate { font-size: 0.8rem; opacity: 0.75; margin-bottom: 12px; }
.matched-card__cta { display: flex; gap: 8px; }
.matched-card__cta a { flex: 1; padding: 10px 12px; border-radius: 12px; text-align: center; font-weight: 700; font-size: 0.85rem; }
.matched-card__cta .view { background: rgba(255,255,255,0.06); border: 1.5px solid rgba(255,255,255,0.18); color: #fff; }
.matched-card__cta .connect { background: var(--primary); color: #fff; }
.matched-band__footnote { text-align: center; font-size: 0.875rem; opacity: 0.72; margin: 1.75rem auto 0; max-width: 680px; }

/* Results footer CTA + email capture */
.results__footer { margin-top: 2.5rem; padding: 2rem; background: var(--bg-soft); border-radius: 1.25rem; text-align: center; }
.results__footer h3 { font-size: clamp(1.25rem, 1.6vw, 1.6rem); font-weight: 600; letter-spacing: -0.01em; margin-bottom: 1.25rem; }
.results__footer-ctas { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1.5rem; }
.email-capture { display: inline-flex; align-items: center; gap: 0.5rem; max-width: 480px; margin: 0 auto; flex-wrap: wrap; }
.email-capture__input { flex: 1; min-width: 220px; padding: 0.7rem 0.95rem; border: 1px solid var(--border); border-radius: 999px; font: inherit; background: #fff; }
.email-capture__input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0, 136, 255, 0.15); }
.email-capture__btn { padding: 0.7rem 1.1rem; border-radius: 999px; background: var(--fg); color: #fff; font-weight: 600; font-size: 0.9rem; }
.email-capture__btn:hover { background: #000; }
.email-capture__ack { color: #07845e; font-weight: 600; font-size: 0.9rem; }
.results__trust { font-size: 0.8125rem; color: var(--fg-muted); margin-top: 1rem; }

/* Section 6 - AI vs Human */
.ai-vs-human { display: flex; flex-direction: column; gap: 1.5rem; max-width: 1040px; margin: 0 auto; }
.ai-vs-human__row {
  display: grid; grid-template-columns: 1fr auto 1.3fr; gap: 1.5rem; align-items: center;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1);
  padding: 1.5rem; border-radius: 1rem;
}
@media (max-width: 820px) {
  .ai-vs-human__row { grid-template-columns: 1fr; gap: 0.75rem; }
  .ai-vs-human__arrow { transform: rotate(90deg); justify-self: center; }
}
.ai-vs-human__ai p, .ai-vs-human__human p { margin: 0; font-size: 1.05rem; line-height: 1.45; }
.ai-vs-human__ai p { opacity: 0.72; }
.ai-vs-human__human p { color: #fff; }
.ai-vs-human__tag { display: inline-block; padding: 0.2rem 0.65rem; border-radius: 999px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.5rem; background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.78); }
.ai-vs-human__tag--human { background: var(--primary); color: #fff; }
.ai-vs-human__arrow { font-size: 1.75rem; opacity: 0.35; font-weight: 300; }

/* Section 4 - check cards icon slot */
.card .check-icon { display: inline-block; font-size: 1.35rem; margin-bottom: 0.75rem; line-height: 1; }

/* ---------- List filter (Free / Paid pills above event/workshop lists) ---------- */
.list-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  max-width: 920px;
  margin: 0 auto 1.25rem;
}
.list-filter__pill {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--fg);
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}
.list-filter__pill:hover {
  background: var(--bg-soft);
  border-color: rgba(0, 0, 0, 0.2);
}
.list-filter__pill[aria-current="true"] {
  background: var(--fg);
  color: #fff;
  border-color: var(--fg);
}
.list-filter__count {
  margin-left: auto;
  font-size: 0.82rem;
  color: var(--fg-muted);
}
.list-filter__empty {
  display: none;
  text-align: center;
  padding: 2.5rem 1.25rem;
  color: var(--fg-muted);
  background: #fff;
  border: 1px dashed var(--border);
  border-radius: 1rem;
  max-width: 920px;
  margin: 0 auto;
  font-size: 0.92rem;
}
.list-filter__empty[data-active="true"] {
  display: block;
}

/* Print styles for PDF report (window.print) */
@media print {
  .site-header, .announce-bar, footer, .dropzone, .results__footer, #how, .final-cta, .ai-vs-human, .faq, .section--soft .section__head { display: none !important; }
  body { background: #fff; color: #000; }
  .matched-band { background: #fff; color: #000; border: 1px solid #000; }
  .matched-band__label, .matched-band__title { color: #000; }
  .matched-card { aspect-ratio: auto; background: #fff; box-shadow: none; border: 1px solid #ccc; page-break-inside: avoid; padding: 1rem; }
  .matched-card__photo, .matched-card__scrim { display: none; }
  .matched-card__body { position: static; color: #000; }
}

/* ============================================================
   Micro animations - "How it works" timeline illustrations.
   Each stage is authored at 100×100; we scale the rendering
   up to fit the .hiw-row__visual slot. Scale shrinks on mobile
   so the stage never exceeds the narrower column width.
   ============================================================ */
.ma-stage-wrap {
  --ma-scale: 1.7;
  width: calc(100px * var(--ma-scale));
  height: calc(100px * var(--ma-scale));
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (max-width: 767px) {
  .ma-stage-wrap { --ma-scale: 1.2; }
}
@media (max-width: 479px) {
  .ma-stage-wrap { --ma-scale: 1.0; }
}
.ma-stage {
  width: 100px;
  height: 100px;
  position: relative;
  overflow: hidden;
  transform: scale(var(--ma-scale));
  transform-origin: center center;
  --ma-ink: #0f1115;
  --ma-ink-muted: #6b7280;
  --ma-grad: linear-gradient(90deg, #3aa0ff 0%, #c84bff 50%, #ff7a3d 100%);
}

/* ---- 1. Browser search ---- */
.s1-browser {
  position: absolute;
  inset: 8px 6px 22px 6px;
  background: #ffffff;
  border-radius: 7px;
  box-shadow: 0 1px 0 rgba(15,17,21,0.04), 0 4px 10px -6px rgba(15,17,21,0.18);
  padding: 5px 5px 0;
}
.s1-dots { display: flex; gap: 2px; }
.s1-dots span { width: 4px; height: 4px; border-radius: 50%; }
.s1-dots span:nth-child(1) { background: #ff6159; }
.s1-dots span:nth-child(2) { background: #ffc130; }
.s1-dots span:nth-child(3) { background: #2ecc71; }
.s1-searchbar {
  position: relative;
  margin-top: 5px;
  height: 14px;
  border-radius: 8px;
  padding: 2px;
  background: var(--ma-grad);
}
.s1-searchbar::before {
  content: "";
  position: absolute;
  inset: 1px;
  background: #fff;
  border-radius: 7px;
}
.s1-searchbar-inner {
  position: relative;
  height: 100%;
  background: #fff;
  border-radius: 7px;
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 0 5px;
  font-size: 6px;
  color: var(--ma-ink);
  overflow: hidden;
}
.s1-mag {
  width: 5px; height: 5px;
  border: 0.8px solid var(--ma-ink);
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}
.s1-mag::after {
  content: "";
  position: absolute;
  width: 2px; height: 0.8px;
  background: var(--ma-ink);
  bottom: -1px; right: -1.5px;
  transform: rotate(45deg);
  transform-origin: left;
}
.s1-caret {
  display: inline-block;
  width: 0.5px; height: 6px;
  background: var(--ma-ink);
  margin-left: 1px;
  vertical-align: middle;
}
.s1-text { white-space: nowrap; }
.s1-dock {
  position: absolute;
  left: 6px; right: 6px; bottom: 6px;
  display: flex;
  justify-content: space-between;
}
.s1-dock span {
  width: 11px; height: 11px;
  background: #fff;
  border-radius: 3px;
  box-shadow: 0 1px 2px rgba(15,17,21,0.08);
}

/* ---- 2. Profile cards scrolling ---- */
.s2-viewport {
  position: absolute; inset: 10px;
  overflow: hidden;
  border-radius: 6px;
}
.s2-track {
  display: flex;
  flex-direction: column;
  gap: 5px;
  will-change: transform;
}
.s2-card {
  height: 22px;
  background: #fff;
  border-radius: 5px;
  border: 1px solid rgba(15,17,21,0.08);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 5px;
  box-shadow: 0 1px 0 rgba(15,17,21,0.02);
}
.s2-avatar {
  width: 12px; height: 12px; border-radius: 50%;
  flex-shrink: 0;
}
.s2-avatar.a1 { background: linear-gradient(135deg, #ffb199, #ff0844); }
.s2-avatar.a2 { background: linear-gradient(135deg, #84fab0, #8fd3f4); }
.s2-avatar.a3 { background: linear-gradient(135deg, #a18cd1, #fbc2eb); }
.s2-avatar.a4 { background: linear-gradient(135deg, #f6d365, #fda085); }
.s2-avatar.a5 { background: linear-gradient(135deg, #89f7fe, #66a6ff); }
.s2-lines { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.s2-line1 { height: 3px; width: 70%; background: #d6d9de; border-radius: 2px; }
.s2-line2 { height: 2px; width: 50%; background: #e7e9ec; border-radius: 2px; }
.s2-ripple {
  position: absolute;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(58,160,255,0.45);
  right: 12px;
  opacity: 0;
  pointer-events: none;
}
.s2-cursor {
  position: absolute;
  width: 9px; height: 9px;
  pointer-events: none;
  top: -20px; left: -20px;
  z-index: 3;
}
.s2-cursor svg { width: 100%; height: 100%; display: block; }

/* ---- 3. Chat messages streaming ---- */
.s3-chat {
  position: absolute;
  inset: 10px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
}
.s3-bub {
  max-width: 75%;
  padding: 3px 6px;
  border-radius: 7px;
  font-size: 5.5px;
  line-height: 1.2;
  opacity: 0;
}
.s3-bub.in {
  align-self: flex-start;
  background: #eef0f3;
  color: var(--ma-ink);
  border-bottom-left-radius: 2px;
}
.s3-bub.out {
  align-self: flex-end;
  background: #0f1115;
  color: #fff;
  border-bottom-right-radius: 2px;
}
.s3-typing {
  align-self: flex-start;
  background: #eef0f3;
  border-radius: 7px;
  border-bottom-left-radius: 2px;
  padding: 4px 6px;
  display: inline-flex;
  gap: 2px;
  opacity: 0;
}
.s3-typing span { width: 2.5px; height: 2.5px; background: #9aa0a6; border-radius: 50%; }

/* ---- 4. Form · submit ---- */
.s4-form {
  position: absolute;
  inset: 10px;
  background: #fff;
  border-radius: 7px;
  border: 1px solid rgba(15,17,21,0.06);
  padding: 7px 7px 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.s4-title { height: 3px; width: 45%; background: #4b5563; border-radius: 2px; }
.s4-field {
  position: relative;
  height: 11px;
  background: #f4f5f7;
  border: 1px solid rgba(15,17,21,0.06);
  border-radius: 4px;
  padding: 0 4px;
  display: flex; align-items: center;
  overflow: hidden;
}
.s4-field.active { border-color: #0088FF; box-shadow: 0 0 0 1px rgba(0,136,255,0.2); }
.s4-fill { height: 2px; width: 0; background: #6b7280; border-radius: 1px; }
.s4-btn {
  margin-top: auto;
  margin-bottom: 7px;
  height: 12px;
  background: #0088FF;
  border-radius: 6px;
  transform: scale(1);
  transform-origin: center;
}

/* ---- 5. Link copy · paste ---- */
.s5-link {
  position: absolute;
  top: 18px; left: 10px; right: 10px;
  height: 12px;
  background: #fff;
  border: 1px dashed rgba(15,17,21,0.2);
  border-radius: 5px;
  display: flex; align-items: center; gap: 3px;
  padding: 0 4px;
  font-size: 5.5px;
  color: #3aa0ff;
}
.s5-link::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--ma-grad);
  flex-shrink: 0;
}
.s5-clip {
  position: absolute;
  top: 18px;
  right: -14px;
  width: 12px; height: 12px;
  background: #fff;
  border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 6px rgba(15,17,21,0.15);
  opacity: 0;
  font-size: 7px;
}
.s5-browser {
  position: absolute;
  left: 8px; right: 8px; bottom: 8px;
  height: 42px;
  background: #fff;
  border-radius: 6px;
  border: 1px solid rgba(15,17,21,0.08);
  padding: 4px;
  box-shadow: 0 4px 10px -6px rgba(15,17,21,0.2);
}
.s5-url {
  position: relative;
  height: 10px;
  border-radius: 5px;
  background: #f4f5f7;
  border: 1px solid rgba(15,17,21,0.06);
  padding: 0 4px;
  font-size: 5px;
  color: var(--ma-ink);
  display: flex;
  align-items: center;
  overflow: hidden;
  white-space: nowrap;
}
.s5-url-text { opacity: 0; }
.s5-body { margin-top: 3px; display: flex; gap: 3px; }
.s5-body span { flex: 1; height: 18px; background: #f4f5f7; border-radius: 3px; }
.s5-body span:first-child { background: var(--ma-grad); opacity: 0.15; }

/* ---- 6. Messages → rupee pop ---- */
.s6-chat {
  position: absolute;
  inset: 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.s6-bub { height: 7px; border-radius: 5px; opacity: 0; }
.s6-bub.in  { width: 55%; background: #eef0f3; align-self: flex-start;  border-bottom-left-radius: 2px; }
.s6-bub.out { width: 45%; background: #0f1115; align-self: flex-end;    border-bottom-right-radius: 2px; }
.s6-rupee {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
  font-weight: 700;
  color: #0088FF;
  opacity: 0;
  transform: scale(0.3);
  font-family: var(--font-heading);
}
.s6-burst {
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.s6-burst span {
  position: absolute;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: #0088FF;
  opacity: 0;
}

/* ============================================================
   Mobile responsive fixes
   ============================================================ */

/* ---- Hero split grid (Guide + Seeker pages) ---- */
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
  padding: 0 0 clamp(1.25rem, 3vw, 2.5rem);
}
@media (max-width: 767px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .hero-grid .hero__visual { order: 3; }
}

/* Chip-bearing hero floats: scale down so they read as accents over the
   hero video instead of competing with it. transform-origin keeps each
   chip anchored to whichever edge it's positioned against. Tablet and
   mobile shrink further (0.7 × 0.7 ≈ 0.49) because the visual itself
   is narrower at those breakpoints. */
[data-hero-float] {
  transform: scale(0.7);
}
[data-hero-float][style*="left:"]  { transform-origin: left center; }
[data-hero-float][style*="right:"] { transform-origin: right center; }

@media (max-width: 1149px) {
  [data-hero-float] { transform: scale(0.49); }
}

/* ---- Spotlight row layout ----
   Desktop: cap portrait-image height so it doesn't tower over the text column.
   Mobile : stack as eyebrow → title → image → rest, image full-width, max 40vh.
--------------------------------------------------------------------- */
.spotlight-row {
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

@media (min-width: 768px) {
  /* row keeps default align-items: center — both columns sit at their
     intrinsic height; image cap below stops portrait crops from towering. */
  .spotlight__visual {
    min-height: 0 !important; /* override inline 480px min-height */
  }
  .spotlight__visual > picture {
    display: block;
    width: 100%;
    max-height: clamp(420px, 52vh, 560px);
  }
  .spotlight__visual > picture > img {
    width: 100% !important;
    max-height: clamp(420px, 52vh, 560px) !important;
    height: auto !important;
    aspect-ratio: 4 / 5; /* retain portrait crop, max-height truncates */
    object-fit: cover;
  }
}

@media (max-width: 767px) {
  .spotlight-row {
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
    grid-template-columns: 1fr !important;
  }
  /* Flatten the text-column wrapper so its children become flex siblings
     of the visual, allowing flex `order` to slot the image between title and body. */
  .spotlight-row > div:not(.spotlight__visual) { display: contents; }
  /* Default: body content (lead, lists, callouts, buttons) goes after the image */
  .spotlight-row > div:not(.spotlight__visual) > * { order: 4; }
  /* Eyebrow label first */
  .spotlight-row > div:not(.spotlight__visual) > div:first-child { order: 1; }
  /* Title (h3) second */
  .spotlight-row > div:not(.spotlight__visual) > h3,
  .spotlight-row > div:not(.spotlight__visual) > .h3 { order: 2; }
  /* Image third */
  .spotlight-row > .spotlight__visual {
    order: 3 !important;
    min-height: 0 !important;
    width: 100%;
  }
  .spotlight__visual > picture {
    display: block;
    width: 100%;
  }
  .spotlight__visual > picture > img {
    aspect-ratio: 16/10 !important;
    max-height: 40vh !important;
    width: 100% !important;
    height: auto !important;
    object-fit: cover;
  }
  /* Floating chips overlap awkwardly with the trimmed-down mobile image */
  .spotlight__visual > [data-float] { display: none !important; }
}

/* ---- Tab panel layout on mobile ----
   Target service-types / beyond-the-call tab panels (which use inline grid
   with 1fr 1.1fr or 1.1fr 1fr) and reorder their children on mobile to:
     title (h3) → visual (video/picture) → body (p / ul).
   Uses display:contents on the text-wrapper div so its h3 and body nodes
   become flex siblings of the visual, allowing flex `order` to interleave
   them. No HTML changes required.
--------------------------------------------------------------------- */
@media (max-width: 767px) {
  .tabs__panel > div[style*="grid-template-columns:1fr 1.1fr"],
  .tabs__panel > div[style*="grid-template-columns:1.1fr 1fr"] {
    display: flex !important;
    flex-direction: column;
    gap: 1rem !important;
    align-items: stretch !important;
  }
  /* Flatten the text wrapper so h3 / p / ul become flex siblings */
  .tabs__panel > div[style*="grid-template-columns:1fr 1.1fr"] > div,
  .tabs__panel > div[style*="grid-template-columns:1.1fr 1fr"] > div {
    display: contents;
  }
  /* Visual slots between title and body */
  .tabs__panel > div[style*="grid-template-columns:1fr 1.1fr"] > video,
  .tabs__panel > div[style*="grid-template-columns:1.1fr 1fr"] > video,
  .tabs__panel > div[style*="grid-template-columns:1fr 1.1fr"] > picture,
  .tabs__panel > div[style*="grid-template-columns:1.1fr 1fr"] > picture,
  .tabs__panel > div[style*="grid-template-columns:1fr 1.1fr"] > img,
  .tabs__panel > div[style*="grid-template-columns:1.1fr 1fr"] > img {
    order: 1;
  }
  /* Everything except the h3 inside the (now contents) wrapper goes last */
  .tabs__panel > div[style*="grid-template-columns:1fr 1.1fr"] > div > :not(h3),
  .tabs__panel > div[style*="grid-template-columns:1.1fr 1fr"] > div > :not(h3) {
    order: 2;
  }
}

/* ---- jn-card: no minimum height on mobile (trim empty space) ---- */
@media (max-width: 767px) {
  .jn-card { min-height: 0; padding: 1.25rem 1.25rem 1.5rem; }
}

/* ---- Tab strip: wrap onto multiple rows when the pill row is wider
   than the viewport (instead of clipping at the right edge). The pill
   background stretches to enclose every row; each row is independently
   centred. Always leaves a 10px gutter so the pill never sits flush to
   the screen edge.
--------------------------------------------------------------------- */
@media (max-width: 767px) {
  .tabs__row {
    padding: 0 10px;
    justify-content: center;
  }
  .tabs {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 4px;
    max-width: 100%;
  }
  .tabs__btn {
    padding: 8px 14px;
    font-size: 0.875rem;
    white-space: nowrap;
  }
}

/* ---- Split media: contain video to its aspect ratio on mobile.
   The inline `min-height:420px` makes the media tower over its sibling
   copy on small screens and contributes to horizontal overflow.
--------------------------------------------------------------------- */
@media (max-width: 767px) {
  .split__media {
    min-height: 0 !important;
    aspect-ratio: 4/3;
    border-radius: 1rem;
    max-width: 100%;
  }
}

/* ---- Split media polish: drop the dark-gradient fallback background
   when an actual <img> or <video> is present (it bleeds through the
   anti-aliased rounded corners as a thin black fringe), and tighten
   the corner radius from 20px to 12px for a less bubbly look.
--------------------------------------------------------------------- */
.split__media:has(img),
.split__media:has(video) {
  background: transparent;
}
.split__media {
  border-radius: 12px !important; /* overrides inline 1.25rem on the HTML */
}

/* ---- Split section at tablet (768–1149): restructure so the media
   floats beside the headline (label + h2 + lead) and the pointers
   (feat-list) and CTA row clear underneath to span full width.
   The two-column grid at this size leaves the right column too narrow
   for a 3-up feat-list, causing the cards to bleed across the image.
--------------------------------------------------------------------- */
@media (min-width: 768px) and (max-width: 1149px) {
  .split {
    display: block;
    grid-template-columns: none;
  }
  .split::after {
    content: "";
    display: table;
    clear: both;
  }
  .split__media {
    float: left;
    width: calc(50% - 16px);
    margin: 0 32px 28px 0;
    aspect-ratio: 4 / 3;
    min-height: 0 !important; /* override inline 420px */
  }
  .split--reverse .split__media {
    float: right;
    margin: 0 0 28px 32px;
  }
  .split__copy .feat-list,
  .split__copy .split__cta-row {
    clear: both;
  }
}
