/* ============================================================
   TUCK – Shared Stylesheet
   Fonts: Host Grotesk (headings), Figtree (body), Inter (UI)
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --dark:      #0a0a0a;
  --teal:      #047e6e;
  --white:     #ffffff;
  --gray-50:   #f9fafb;
  --gray-100:  #f3f4f6;
  --gray-200:  #e5e7eb;
  --gray-300:  #d1d5db;
  --gray-400:  #9ca3af;
  --gray-500:  #6b7280;
  --gray-700:  #374151;
  --gray-900:  #111827;
  --black:     #101828;
  --green:     #66ff66;
  --text-dark: #141313;

  --font-head: 'Host Grotesk', sans-serif;
  --font-body: 'Figtree', sans-serif;
  --font-ui:   'Inter', sans-serif;

  --max:     1200px;
  --pad:     clamp(1.5rem, 4vw, 3.5rem);
}

::selection { background: #000000; color: #FFFFFF; }

html { scroll-behavior: smooth; text-rendering: optimizeLegibility; }

body {
  font-family: var(--font-body);
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

/* ─── Container ─── */
.container {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.625rem 1.25rem;
  border-radius: 2px;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: opacity .18s, background .18s, color .18s;
}
.btn:hover { opacity: 0.85; }

@media (max-width: 768px) {
  .btn {
    width: 100%;
    justify-content: center;
  }
  .btn--sm { width: auto; }
}

.btn--dark    { background: var(--black); color: var(--white); }
.btn--teal    { background: var(--teal);  color: var(--black); }
.btn--outline { background: transparent; color: var(--black); border: 1px solid var(--gray-300); }
.btn--outline:hover { border-color: var(--black); }
.btn--light   { background: var(--gray-100); color: var(--black); }
.btn--sm      { font-size: 0.6875rem; padding: 0.375rem 0.875rem; }

/* ─── Navigation ─── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 80px;
}

.nav--dark {
  background: var(--dark);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.nav--light {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad);
  height: 100%;
}

.nav__logo {
  display: flex;
  align-items: center;
  font-family: var(--font-head);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.nav__logo img {
  height: 26px;
  width: auto;
  display: block;
}

.nav--dark  .nav__logo  { color: var(--white); }
.nav--light .nav__logo  { color: var(--black); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-left: auto;
}

.nav__links a {
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 500;
  transition: opacity .18s;
}
.nav__links a:hover { opacity: 0.7; }

.nav--dark  .nav__links a { color: var(--gray-300); }
.nav--light .nav__links a { color: var(--black); }

/* dark nav Book Demo = white, light nav = black */
.nav--dark  .btn--sm { background: var(--white); color: var(--black); border: none; }
.nav--dark  .btn--sm:hover { opacity: 0.9; }
.nav--light .btn--sm { background: var(--black); color: var(--white); border: none; }

/* ─── Hamburger button (hidden on desktop) ─── */
.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  margin-left: auto;
}
.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 1px;
  transition: opacity .18s;
}
.nav--dark  .nav__hamburger span { background: var(--white); }
.nav--light .nav__hamburger span { background: var(--black); }

/* ─── Mobile nav overlay ─── */
.nav__mobile {
  position: fixed;
  inset: 0;
  background: #0a0a0a;
  z-index: 999;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s 0.3s;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.nav__mobile.is-open {
  transform: translateX(0);
  visibility: visible;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s;
}
.nav__mobile__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad);
  height: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  flex-shrink: 0;
}
.nav__mobile__logo {
  font-family: var(--font-head);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  display: flex;
  align-items: center;
}
.nav__mobile__close {
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.nav__mobile__close span {
  position: absolute;
  width: 20px;
  height: 2px;
  background: var(--white);
  border-radius: 1px;
}
.nav__mobile__close span:first-child { transform: rotate(45deg); }
.nav__mobile__close span:last-child  { transform: rotate(-45deg); }
.nav__mobile__links {
  list-style: none;
  flex: 1;
  padding: 0 var(--pad);
}
.nav__mobile__links li {
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav__mobile__links a {
  display: block;
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  padding: 1.25rem 0;
  text-decoration: none;
  transition: opacity .18s;
}
.nav__mobile__links a:hover { opacity: 0.55; }
.nav__mobile__footer {
  padding: var(--pad);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.nav__mobile__cta {
  display: inline-flex;
  background: #ffffff;
  color: var(--dark);
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0.875rem 1.75rem;
  text-decoration: none;
  letter-spacing: 0.01em;
  border-radius: 6px;
  transition: opacity .18s;
}
.nav__mobile__cta:hover { opacity: 0.85; }

/* ─── Section Labels ─── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 1.5rem;
}
.section-label .dot {
  width: 6px; height: 6px;
  background: var(--black);
  display: inline-block;
}

/* ─── HERO ─── */
.hero {
  background-color: #0d0d0d;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero .container {
  display: flex;
  flex-direction: column;
  padding-top: 2rem;
  padding-bottom: clamp(2.5rem, 5vh, 4rem);
}

/* Headline + CTAs: headline left, buttons bottom-right */
.hero__main {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.hero__headline {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 5vw, 5.5rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.01em;
  color: #ffffff;
  font-style: normal;
}

/* CTA buttons */
.hero__ctas {
  display: flex;
  gap: 0.625rem;
  align-items: center;
  flex-shrink: 0;
  padding-bottom: 0.5rem;
}

.hero__btn {
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.7rem 1.5rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 0;
  transition: opacity .18s, background .18s;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.hero__btn--docs {
  background: #000000;
  border-color: rgba(255,255,255,0.25);
  color: #ffffff;
}
.hero__btn--docs:hover { opacity: 0.8; }

.hero__btn--launch {
  background: #ffffff;
  color: #000000;
  border-color: transparent;
  font-weight: 600;
}
.hero__btn--launch:hover { opacity: 0.88; }

/* Full-width horizontal rule */
.hero__rule {
  height: 1px;
  background: rgba(255,255,255,0.12);
  width: 100%;
  margin-bottom: 2rem;
}

/* Three-column feature text */
.hero__features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  padding-bottom: 0;
}

.hero__feature {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.7;
}

.hero__feature strong {
  color: rgba(255,255,255,0.85);
  font-weight: 600;
}

/* ─── Stats ─── */
.stats {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
}

.stats .container {
  padding-block: 0;
}

.stats__grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
}

.stats__item {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  padding: 3rem 2.5rem;
}

.stats__item:first-child { padding-left: 0; }
.stats__item:last-child  { padding-right: 0; }

.stats__number {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.02em;
}

.stats__label {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--gray-500);
  font-weight: 400;
}

.stats__divider {
  width: 1px;
  height: 3rem;
  background: var(--gray-200);
}

/* ─── Products Section ─── */
.products {
  padding-block: 6rem;
  border-bottom: 1px solid var(--gray-200);
}

.section-heading {
  font-family: var(--font-head);
  font-size: clamp(2rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 3rem;
}

.products__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.product-card {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
}

.product-card--dark  { background: var(--black); color: var(--white); }
.product-card--teal  { background: var(--teal); color: var(--dark); }
.product-card--light { background: var(--gray-100); color: var(--black); }

.product-card__tag {
  font-family: var(--font-ui);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.65;
}

.product-card h3 {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.product-card p {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.65;
  opacity: 0.8;
  flex: 1;
}

.product-card__link {
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 600;
  margin-top: 0.5rem;
  display: inline-block;
  transition: gap .18s;
}

.product-card--dark  .product-card__link { color: var(--white); }
.product-card--teal  .product-card__link { color: var(--dark); }
.product-card--light .product-card__link { color: var(--black); }

/* ─── Why Tuck ─── */
.why {
  padding-block: 6rem;
  border-bottom: 1px solid var(--gray-200);
}

.why__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.why__text h2 {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 1.5rem;
}

.why__text p {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--gray-500);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.why__btns {
  display: flex;
  gap: 0.75rem;
  margin-top: 2rem;
}

.why__metrics {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.metric-card {
  background: var(--gray-100);
  padding: 1.75rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.metric-card--accent { background: var(--black); }
.metric-card--accent .metric-card__num,
.metric-card--accent .metric-card__desc { color: var(--white); }

.metric-card__num {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.025em;
}

.metric-card__desc {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--gray-500);
  line-height: 1.5;
}

/* ─── How It Works ─── */
.how {
  padding-block: 6rem;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}

.how__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--gray-200);
  margin-top: 1rem;
}

.how__step {
  padding: 2.5rem 2rem 2.5rem 0;
  border-right: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}
.how__step:first-child { padding-left: 0; }
.how__step:last-child  { border-right: none; padding-right: 0; padding-left: 2rem; }
.how__step:not(:first-child):not(:last-child) { padding-inline: 2rem; }

.how__step-num {
  font-family: var(--font-ui);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--gray-400);
}

.how__step h4 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--black);
  line-height: 1.3;
}

.how__step p {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--gray-500);
  line-height: 1.7;
}

/* ─── CTA Banner ─── */
.cta-banner {
  padding-block: 6rem;
  background: #040404;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.cta-banner h2 {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 2.5rem;
}

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

/* ─── Footer ─── */
.footer {
  background: var(--white);
  padding-top: 4rem;
}

.footer__top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  padding-bottom: 3rem;
}

.footer__logo {
  font-family: var(--font-head);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--black);
  display: block;
  margin-bottom: 1rem;
}
.footer__logo img,
.nav__mobile__logo img {
  height: 24px;
  width: auto;
  display: block;
}
.footer__brand p {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--gray-500);
  line-height: 1.65;
  max-width: 32ch;
}

.footer__nav-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  justify-self: end;
}

.footer__col h3 {
  font-family: var(--font-head);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--black);
  letter-spacing: 0.025em;
  margin-bottom: 1.25rem;
}

.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer__col a {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--gray-500);
  transition: color .18s;
}
.footer__col a:hover { color: var(--black); }

.footer__bottom {
  border-top: 1px solid var(--gray-100);
  padding-block: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__bottom span,
.footer__legal a {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--gray-500);
}

.footer__legal {
  display: flex;
  gap: 2rem;
}
.footer__legal a {
  text-decoration: underline;
  text-decoration-color: var(--gray-300);
  transition: color .18s;
}
.footer__legal a:hover { color: var(--black); }

/* ─── Product Pages ─── */
.product-header {
  border-bottom: 1px solid var(--gray-200);
  padding: 2.5rem 0 2rem;
}

.product-header__breadcrumb {
  font-family: var(--font-ui);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.product-header__breadcrumb::before { content: '\25A0'; }

.product-header__number {
  font-family: var(--font-head);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}

.product-header__sub {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--gray-500);
}

.product-intro {
  padding: 4rem 0 3rem;
  border-bottom: 1px solid var(--gray-200);
}

.product-intro__headline {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.025em;
  line-height: 1.2;
  max-width: 22ch;
  margin-bottom: 1.5rem;
}

.product-intro__body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  color: var(--gray-500);
  line-height: 1.7;
  max-width: 72ch;
  margin-bottom: 2rem;
}

.product-intro__ctas {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ─── Product page video slot ─── */
.product-video-slot {
  margin-top: 3rem;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 2px dashed var(--gray-300);
  background: var(--gray-50, #fafafa);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  font-family: var(--font-ui);
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.product-video-slot iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.product-content {
  padding-block: 6rem;
}

.product-section {
  max-width: 800px;
  margin-bottom: 3.5rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid var(--gray-100);
}
.product-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.product-section h2 {
  font-family: var(--font-head);
  font-size: clamp(1.375rem, 2.5vw, 1.75rem);
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 1.5rem;
}

.product-section h3 {
  font-family: var(--font-head);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 1.5rem;
  margin-top: 1.5rem;
}
.product-section h2 + h3 {
  margin-top: 0;
}

.product-section p {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  color: #52525b;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.product-section p:last-child { margin-bottom: 0; }

.product-section p strong {
  color: var(--black);
  font-weight: 600;
}

.product-section--cta h2 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  margin-bottom: 0.75rem;
}

.product-section__cta-lead {
  font-size: 1.0625rem !important;
  color: var(--black) !important;
  margin-bottom: 1.5rem !important;
}

/* ─── Explore Other Solutions ─── */
.explore {
  border-top: 1px solid var(--gray-200);
  padding-block: 6rem;
}

.explore__label {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--gray-500);
  margin-bottom: 1.5rem;
}

.explore__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.explore-card {
  background: var(--gray-100);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-decoration: none;
  transition: background .18s;
}
.explore-card:hover { background: var(--gray-200); }

.explore-card__name {
  font-family: var(--font-head);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--black);
  letter-spacing: -0.01em;
}

.explore-card__desc {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--gray-500);
  line-height: 1.6;
  flex: 1;
}

.explore-card__cta {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--black);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 0.5rem;
}

@media (max-width: 640px) {
  .explore__grid { grid-template-columns: 1fr; }
}

/* ─── About Page ─── */
.page-hero {
  padding-block: 5rem;
  border-bottom: 1px solid var(--gray-200);
}

.about-article {
  padding-block: 6rem;
}

.about-section {
  max-width: 860px;
  margin-bottom: 3.5rem;
}

.about-section h2 {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.about-section p {
  font-family: var(--font-body);
  font-size: 1.25rem;
  color: #52525b;
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.about-section p:last-child { margin-bottom: 0; }

.about-section strong { color: var(--black); font-weight: 700; }

.about-cta-strip {
  padding-block: 6rem;
  border-top: 1px solid var(--gray-200);
}

.about-cta-strip h2 {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 2rem;
}

/* ─── Careers Page ─── */
.careers-hero {
  padding: 5rem var(--pad) 3rem;
  max-width: var(--max);
  margin-inline: auto;
  border-bottom: 1px solid var(--gray-200);
}

.careers-hero__eyebrow {
  font-family: var(--font-ui);
  font-size: 1.375rem;
  font-weight: 500;
  color: var(--black);
  margin-bottom: 1.25rem;
}

.careers-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 5vw, 3rem);
  font-weight: 600;
  color: var(--black);
  letter-spacing: -0.04em;
  line-height: 1.17;
  margin-bottom: 1.25rem;
  max-width: 15ch;
}

.careers-hero p {
  font-family: var(--font-ui);
  font-size: 1.125rem;
  color: var(--black);
  line-height: 1.625;
  max-width: 56ch;
}

.filters {
  max-width: var(--max);
  margin-inline: auto;
  padding: 1.5rem var(--pad);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  border-bottom: 1px solid var(--gray-200);
}

.filter-btn {
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 1.0625rem;
  cursor: pointer;
  border: 1px solid var(--black);
  background: transparent;
  color: var(--black);
  transition: background .18s, color .18s;
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--black);
  color: var(--white);
}

.job-listings {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad);
  padding-top: 0;
}

.job-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 2rem;
  border-bottom: 1px solid var(--gray-200);
  border-radius: 0;
  transition: background .18s;
  padding-inline: 0.5rem;
  margin-inline: -0.5rem;
}
.job-item:hover { background: var(--gray-50); }

.job-item__info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.job-item__title {
  font-family: var(--font-ui);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--black);
}

.job-item__desc {
  font-family: var(--font-ui);
  font-size: 1rem;
  color: var(--black);
}

.job-item__tags {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.job-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  border: 1px solid var(--black);
  padding: 0.25rem 0.8125rem;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--black);
}

.job-tag svg { width: 12px; height: 12px; flex-shrink: 0; }

.job-apply {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-ui);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--black);
  flex-shrink: 0;
  margin-left: 2rem;
  transition: gap .18s;
}
.job-apply:hover { gap: 0.875rem; }

.job-apply svg { width: 14px; height: 14px; }

/* ─── Contact Page ─── */
.contact-header {
  text-align: center;
  padding: 4.5rem var(--pad) 0;
  max-width: var(--max);
  margin-inline: auto;
}

.contact-header__eyebrow {
  font-family: var(--font-head);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-500);
  letter-spacing: 0.025em;
  margin-bottom: 1rem;
}

.contact-header h1 {
  font-family: var(--font-head);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
}

.contact-header p {
  font-family: var(--font-head);
  font-size: 1.25rem;
  color: var(--gray-500);
  max-width: 42ch;
  margin-inline: auto;
  line-height: 1.5;
}

.contact-main {
  padding-block: 3rem 6rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 4rem;
  align-items: start;
}

.contact-info {
  background: var(--white);
  border: 1px solid var(--gray-200);
  padding: 2.5rem;
  box-shadow: 0 1px 1px rgba(0,0,0,0.05);
}

.contact-info__label {
  font-family: var(--font-head);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-500);
  margin-bottom: 2.75rem;
}

.contact-info h2 {
  font-family: var(--font-head);
  font-size: 2.25rem;
  font-weight: 600;
  color: var(--black);
  letter-spacing: -0.025em;
  line-height: 1.25;
  margin-bottom: 2.5rem;
}

.contact-info__email {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: var(--black);
  color: var(--white);
  padding: 0.875rem 1.25rem;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 500;
  transition: opacity .18s;
}
.contact-info__email:hover { opacity: 0.85; }
.contact-info__email svg { width: 16px; height: 16px; flex-shrink: 0; }

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-family: var(--font-head);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--black);
}

.form-group input,
.form-group textarea {
  background: var(--gray-100);
  border: none;
  border-radius: 12px;
  padding: 1rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--black);
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  outline: none;
  transition: box-shadow .18s;
  width: 100%;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--gray-400);
}

.form-group input:focus,
.form-group textarea:focus {
  box-shadow: 0 0 0 2px var(--teal);
}

.form-group textarea {
  resize: none;
  min-height: 10rem;
}

/* ─── FAQ Section ─── */
.faq {
  border-top: 1px solid var(--gray-200);
  padding-block: 6rem;
}

.faq__grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 4rem;
  align-items: start;
}

.faq__left h2 {
  font-family: var(--font-head);
  font-size: 1.875rem;
  font-weight: 600;
  color: var(--black);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.faq__all-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gray-100);
  padding: 0.625rem 1.25rem;
  font-family: var(--font-head);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--black);
  transition: background .18s;
}
.faq__all-link:hover { background: var(--gray-200); }
.faq__all-link svg { width: 16px; height: 16px; }

.faq__list { display: flex; flex-direction: column; }

.faq__item {
  border-bottom: 1px solid var(--gray-200);
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  padding-block: 1.5rem;
  text-align: left;
  gap: 1.5rem;
}

.faq__question-text {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  color: var(--black);
  line-height: 1.5;
}

.faq__toggle {
  width: 24px; height: 24px;
  flex-shrink: 0;
  position: relative;
  color: var(--gray-500);
}
.faq__toggle::before,
.faq__toggle::after {
  content: '';
  position: absolute;
  background: currentColor;
  border-radius: 1px;
  transition: transform .3s, opacity .3s;
}
.faq__toggle::before { width:100%; height:1px; top:50%; left:0; transform:translateY(-50%); }
.faq__toggle::after  { width:1px; height:100%; left:50%; top:0; transform:translateX(-50%); }
.faq__item[data-open] .faq__toggle::after { transform:translateX(-50%) scaleY(0); opacity:0; }

.faq__answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .3s ease;
}
.faq__item[data-open] .faq__answer { grid-template-rows: 1fr; }
.faq__answer-inner { overflow: hidden; }

.faq__answer-body {
  padding-bottom: 1.5rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--gray-500);
  line-height: 1.625;
}

/* ─── THE problem ─── */
.problem {
  padding-block: 6rem;
}

/* Top header row: headline left, intro text right */
.problem__header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: end;
  margin-bottom: 3rem;
}

.problem__tag {
  font-family: var(--font-ui);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.problem__tag::before {
  content: '\25A0';
  color: var(--gray-400);
}

.problem__headline {
  font-family: var(--font-head);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.problem__headline em {
  font-style: normal;
  color: var(--black);
}

/* Intro paragraph (right column of header) */
.problem__intro {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--black);
  line-height: 1.75;
}

/* Full-width items list */
.problem__items {
  border-top: 1px solid var(--gray-200);
}

.problem__item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 2rem;
  padding-block: 2.5rem;
  border-bottom: 1px solid var(--gray-200);
  align-items: start;
}

.problem__num {
  font-family: var(--font-ui);
  font-size: 2.5rem;
  font-weight: 400;
  color: #52525B; /* Darker gray for WCAG AA contrast */
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.problem__body h3 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.problem__body p {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--black);
  line-height: 1.75;
}

/* ─── THE Solution ─── */
.solution {
  padding-block: 6rem;
  border-bottom: 1px solid var(--gray-200);
  scroll-margin-top: 80px;
}

.solution__tag {
  font-family: var(--font-ui);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.solution__tag::before { content: '\25A0'; color: var(--gray-400); }

.solution__headline {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 4rem;
}

.solution__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.solution__col {
  border: 1px solid var(--gray-200);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.18s ease;
  cursor: pointer;
}
.solution__col:hover {
  border-color: var(--black);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.solution__col-num {
  font-family: var(--font-ui);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--gray-400);
}

.solution__col h3 {
  font-family: var(--font-head);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.015em;
  line-height: 1.25;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.solution__arrow {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--gray-400);
}

.solution__col p {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--gray-500);
  line-height: 1.65;
  flex: 1;
}

.solution__link {
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--black);
  transition: opacity .18s;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.solution__link:hover { opacity: 0.6; }

/* ─── Performance Impact ─── */
.perf {
  padding-block: 6rem;
  background: var(--dark);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.perf__tag {
  font-family: var(--font-ui);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.perf__tag::before { content: '■'; color: rgba(255,255,255,0.25); }

.perf__top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  margin-bottom: 4rem;
}

.perf__heading {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.perf__text p {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 44ch;
}

.perf__btn {
  background: var(--white);
  color: var(--black);
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
}
.perf__btn:hover { opacity: 0.9; }

.perf__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 3rem;
}

.perf__stat {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  padding-inline: 1.5rem;
}
.perf__stat:first-child { padding-left: 0; }
.perf__stat:last-child  { padding-right: 0; }

.perf__stat-divider {
  width: 1px;
  height: 3rem;
  background: rgba(255,255,255,0.12);
}

.perf__stat-val {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
}

.perf__stat-label {
  font-family: var(--font-ui);
  font-size: 0.6875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75); /* Increased opacity for dark background contrast */
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ─── Features ─── */
.features {
  padding-block: 6rem;
  border-bottom: 1px solid var(--gray-200);
}

.features__tag {
  font-family: var(--font-ui);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.features__tag::before {
  content: '■';
  color: var(--gray-400);
}

.features__header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: end;
  margin-bottom: 4rem;
}

.features__headline {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.features__header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}

.features__sub {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--gray-500);
  line-height: 1.65;
  max-width: 38ch;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--gray-200);
}

.feature-card {
  padding: 2.5rem 2rem 2.5rem 0;
  border-right: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.feature-card:last-child  { border-right: none; padding-right: 0; }
.feature-card:not(:first-child) { padding-left: 2rem; }

.feature-card__num {
  font-family: var(--font-ui);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--gray-400);
}

.feature-card h3 {
  font-family: var(--font-head);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.feature-card p {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--gray-500);
  line-height: 1.65;
}

/* ─── Pricing ─── */
.pricing {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 6rem;
  border-bottom: 1px solid var(--gray-200);
  scroll-margin-top: 80px;
}

.pricing__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 3.5rem;
  gap: 2rem;
  flex-wrap: wrap;
}

.pricing__header-left {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pricing__main-heading {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.pricing__sub {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--gray-500);
}

.pricing__toggle {
  display: flex;
  border: 1px solid var(--gray-300);
  overflow: hidden;
  flex-shrink: 0;
}

.toggle-btn {
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.5rem 1.25rem;
  cursor: pointer;
  background: transparent;
  border: none;
  color: var(--gray-500);
  transition: background .18s, color .18s;
}
.toggle-btn.active {
  background: var(--black);
  color: var(--white);
}

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.pricing-card {
  border: 1px solid var(--gray-200);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  background: var(--white);
  position: relative;
}

.pricing-card--highlight {
  border-color: #000000;
  background: #000000;
}
.pricing-card--highlight .pricing-card__name,
.pricing-card--highlight .pricing-card__ideal,
.pricing-card--highlight .pricing-card__mo,
.pricing-card--highlight .pricing-card__features li,
.pricing-card--highlight .pricing-card__amount,
.pricing-card--highlight .pricing-card__benchmark {
  color: var(--white) !important;
}
.pricing-card--highlight .pricing-card__features { border-color: rgba(255,255,255,0.12); }
.pricing-card--highlight .pricing-card__cta {
  background: var(--white);
  color: var(--black);
}

.pricing-card__name {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--black);
}

.pricing-card__ideal {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-top: -0.5rem;
}

.pricing-card__price {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  margin-block: 0.5rem;
}

.pricing-card__amount {
  font-family: var(--font-head);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.03em;
}

.pricing-card__mo {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--gray-500);
}

.pricing-card__benchmark {
  display: none;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--gray-500);
  margin-top: -0.75rem;
}

.is-annual .pricing-card__benchmark {
  display: block;
}

.pricing-card__features {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  border-top: 1px solid var(--gray-200);
  padding-top: 1.25rem;
  flex: 1;
}

.pricing-card__features li {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--gray-700);
  line-height: 1.5;
}

.pricing-card__cta {
  margin-top: 0.5rem;
  justify-content: center;
  text-align: center;
}

.pricing-card__cta--inv {
  background: var(--white);
  color: var(--black);
}
.pricing-card__cta--inv:hover { opacity: 0.9; }

.pricing__enterprise {
  border: 1px solid var(--gray-200);
  padding: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
}

.pricing__enterprise-text h3 {
  font-family: var(--font-head);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 0.375rem;
}

.pricing__enterprise-text p {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--gray-500);
  line-height: 1.5;
}

/* ─── FAQ Dark ─── */
.faq-dark {
  background: #040404;
  padding-block: 6rem;
}

.faq-dark__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 3rem;
  gap: 2rem;
}

.faq-dark__tag {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  text-transform: none;
  color: var(--white);
  line-height: 1.1;
}

.faq-dark__all {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-head);
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 0.5rem 1rem;
  transition: color .18s, border-color .18s;
  flex-shrink: 0;
}
.faq-dark__all:hover { color: var(--white); border-color: rgba(255,255,255,0.5); }
.faq-dark__all svg { width: 14px; height: 14px; }

.faq-dark__list {
  display: flex;
  flex-direction: column;
}

.faq-dark__item {
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.faq-dark__question {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  padding-block: 2rem;
  text-align: left;
}

.faq-dark__num {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255,255,255,0.75); /* Increased opacity for dark background contrast */
  letter-spacing: 0.05em;
  flex-shrink: 0;
  width: 2.5rem;
}

.faq-dark__q-text {
  font-family: var(--font-head);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 600;
  color: rgba(255,255,255,0.55);
  line-height: 1.4;
  flex: 1;
  transition: color .2s;
}

.faq-dark__item[data-open] .faq-dark__q-text { color: var(--white); }

.faq-dark__toggle {
  width: 24px; height: 24px;
  flex-shrink: 0;
  position: relative;
  color: rgba(255,255,255,0.3);
}
.faq-dark__toggle::before,
.faq-dark__toggle::after {
  content: '';
  position: absolute;
  background: currentColor;
  border-radius: 1px;
  transition: transform .3s, opacity .3s;
}
.faq-dark__toggle::before { width:100%; height:1px; top:50%; left:0; transform:translateY(-50%); }
.faq-dark__toggle::after  { width:1px; height:100%; left:50%; top:0; transform:translateX(-50%); }
.faq-dark__item[data-open] .faq-dark__toggle::after { transform:translateX(-50%) scaleY(0); opacity:0; }

.faq-dark__answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .3s ease;
  padding-left: 4rem;
}
.faq-dark__item[data-open] .faq-dark__answer { grid-template-rows: 1fr; }
.faq-dark__answer-inner { overflow: hidden; }

.faq-dark__answer-inner p {
  padding-bottom: 2rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
  max-width: 72ch;
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .hero__main { grid-template-columns: 1fr; gap: 2rem; }
  .hero__ctas { justify-content: flex-start; }
  .hero__features { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .stats__grid     { grid-template-columns: 1fr 1fr; }
  .stats__divider  { display: none; }
  .stats__item     { border-bottom: 1px solid var(--gray-200); border-right: none; padding: 2rem; }
  .stats__item:nth-child(odd)  { border-right: 1px solid var(--gray-200); }
  .products__grid  { grid-template-columns: 1fr; }
  .why__grid       { grid-template-columns: 1fr; gap: 3rem; }
  .how__steps      { grid-template-columns: 1fr 1fr; }
  .how__step       { border-right: none; padding-inline: 0; border-bottom: 1px solid var(--gray-200); }
  .how__step:nth-child(odd) { border-right: 1px solid var(--gray-200); padding-right: 2rem; }
  .contact-grid    { grid-template-columns: 1fr; }
  .faq__grid       { grid-template-columns: 1fr; }
  .footer__top     { grid-template-columns: 1fr; gap: 3rem; }
  .footer__nav-cols { justify-self: stretch; }
  .solution__grid  { grid-template-columns: 1fr; }
  .perf__top       { grid-template-columns: 1fr; gap: 2.5rem; }
  .perf__stats     { grid-template-columns: 1fr 1fr; }
  .perf__stat-divider { display: none; }
  .perf__stat      { padding-inline: 0; border-bottom: 1px solid rgba(255,255,255,0.1); padding-block: 1.5rem; }
  .features__header { grid-template-columns: 1fr; gap: 2rem; }
  .features__grid  { grid-template-columns: 1fr 1fr; }
  .feature-card    { padding: 2rem 0 2rem 0; border-right: none; border-bottom: 1px solid var(--gray-200); }
  .feature-card:nth-child(odd)  { border-right: 1px solid var(--gray-200); padding-right: 2rem; }
  .feature-card:nth-child(even) { padding-left: 2rem; }
  .feature-card:nth-last-child(-n+2) { border-bottom: none; }
  .problem__header { grid-template-columns: 1fr; gap: 2rem; }
}

/* ─── Pricing-specific breakpoints ─── */
@media (max-width: 860px) {
  .pricing__header { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 720px) {
  .pricing__grid { grid-template-columns: 1fr; }
  .pricing-card { padding: 2rem; }
}

@media (max-width: 768px) {
  .nav__links { display: none; }
  .stats__grid { grid-template-columns: 1fr; }
  .stats__item { border-right: none !important; border-bottom: 1px solid var(--gray-200); }
  .how__steps  { grid-template-columns: 1fr; }
  .how__step   { border-right: none !important; padding-right: 0 !important; }
  .form-row    { grid-template-columns: 1fr; }
  .footer__bottom   { flex-direction: column; gap: 0.75rem; text-align: center; }
  .features__grid   { grid-template-columns: 1fr; }
  .feature-card     { border-right: none !important; padding-right: 0 !important; padding-left: 0 !important; }
  .perf__stats      { grid-template-columns: 1fr 1fr; }
  .problem__item    { grid-template-columns: 60px 1fr !important; gap: 1rem !important; }
  .pricing__enterprise { flex-direction: column; gap: 1.5rem; }

  /* ─── Nav mobile ─── */
  .nav__book-demo { display: none !important; }
  .nav__hamburger { display: flex !important; }
  .nav { height: 60px; }
  .nav__logo img { height: 22px; }

  /* ─── Hero mobile ─── */
  .hero { min-height: 100svh; }
  .hero .container {
    padding-top: 1rem;
    padding-bottom: 2.5rem;
    padding-inline: 1.25rem;
    justify-content: center;
  }
  .hero__main {
    grid-template-columns: 1fr;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 1.75rem;
  }
  .hero__headline {
    font-size: clamp(2.5rem, 11vw, 3.25rem);
    line-height: 1.08;
    letter-spacing: -0.02em;
  }
  .hero__ctas {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
    padding-bottom: 0;
  }
  .hero__btn {
    width: 100%;
    justify-content: center;
    padding: 0.875rem 1.5rem;
    font-size: 0.9375rem;
    border-radius: 2px;
  }
  .hero__rule { margin-bottom: 1.75rem; }
  .hero__features {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding-bottom: 0;
  }
  .hero__feature {
    font-size: 0.875rem;
    line-height: 1.65;
  }

  /* ─── Problem section mobile ─── */
  .problem { padding-block: 4rem; }
  .problem__header { gap: 1.5rem; margin-bottom: 2rem; }
  .problem__headline { font-size: clamp(1.75rem, 6vw, 2.25rem); }
  .problem__item { padding-block: 1.75rem !important; }
  .problem__num { font-size: 1.75rem !important; }
  .problem__body h3 { font-size: 1rem !important; }
  .problem__body p  { font-size: 0.9375rem !important; margin-top: 0.35rem !important; }
}

/* ─── Small phones (≤ 480px) ─── */
@media (max-width: 480px) {
  .hero__headline { font-size: clamp(2rem, 8vw, 2.5rem); }
  .hero .container { padding-inline: 1.125rem; }
  .hero__btn { padding: 0.8rem 1.25rem; font-size: 0.875rem; }
  .hero__feature { font-size: 0.8125rem; }
  .footer__nav-cols { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .footer__col h3   { margin-bottom: 0.875rem; }
  .pricing__grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .product-intro__ctas { flex-direction: column; align-items: stretch; }
  .product-intro__ctas .btn,
  .perf__btn,
  .features__header-right .btn,
  .cta-banner .btn { width: 100%; justify-content: center; }
  .problem__item { display: flex !important; flex-direction: column !important; gap: 1rem !important; align-items: flex-start !important; }

  /* CTA banner button full width */
  .cta-banner .btn--dark { display: flex; width: 100%; }

  /* About page buttons full width */
  .about-hero-ctas { flex-direction: column !important; align-items: stretch !important; }
  .about-hero-ctas .btn { width: 100%; justify-content: center; }

  /* About CTA strip button full width */
  .about-cta-strip .btn { width: 100%; display: flex; justify-content: center; }

  /* Careers page filters: horizontal scroll */
  .filters {
    flex-wrap: nowrap !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 1rem;
  }
  .filters::-webkit-scrollbar { display: none; }
  .filter-btn { white-space: nowrap; flex-shrink: 0; }

  /* Careers page job apply button full width */
  .job-item { flex-direction: column !important; align-items: stretch !important; gap: 1rem !important; }
  .job-apply { width: 100%; justify-content: flex-start; margin-left: 0; text-decoration: none; }

  /* Careers hero fonts to match other pages on mobile */
  .careers-hero h1 { font-size: clamp(2rem, 8vw, 2.5rem); }
  .careers-hero p { font-size: 1.0625rem; }

  /* Book demo form button full width */
  .contact-form .btn { width: 100%; justify-content: center; }

  /* About section fonts to match product section */
  .about-section h2 { font-size: clamp(1.375rem, 2.5vw, 1.75rem); }
  .about-section p { font-size: 1.0625rem; line-height: 1.7; }

  /* Blog page heading spacing */
  .blog-card__title { margin-bottom: 0.5rem; }
  .blog-card__thumb { margin-bottom: 1rem; }
}

/* ─── Video Modal ─── */
.video-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.video-modal__content {
  position: relative;
  width: 100%;
  max-width: 1000px;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(0,0,0,0.5);
}
.video-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  font-size: 2rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s;
}
.video-modal__close:hover {
  background: rgba(255, 255, 255, 0.2);
}
.video-modal video {
  display: block;
  width: 100%;
  height: auto;
}

/* ─── Blog Cards (shared: blog.html + article related sections) ─── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.blog-card {
  display: flex;
  flex-direction: column;
  position: relative;
}

.blog-card__thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  margin-bottom: 1.5rem;
  position: relative;
  border-radius: 8px;
  background: var(--gray-100);
}

.blog-card__thumb-bg {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  position: relative;
}

.blog-card__thumb-bg--1 {
  background: linear-gradient(135deg, #0a1a0a 0%, #1a3a1a 40%, #0d2b1a 100%);
}
.blog-card__thumb-bg--2 {
  background: linear-gradient(135deg, #0a1a1a 0%, #0d3a3a 50%, #047e6e 100%);
}
.blog-card__thumb-bg--3 {
  background: linear-gradient(135deg, #1a1a0a 0%, #2a2a1a 40%, #0a1a2a 100%);
}

.blog-card__thumb img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-card__thumb-label {
  font-family: var(--font-head);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
  max-width: 22ch;
}

.blog-card__thumb-accent {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--teal);
  color: var(--white);
  font-family: var(--font-ui);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.625rem;
}

.blog-card__title {
  font-family: var(--font-head);
  font-size: 1.1875rem;
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.015em;
  line-height: 1.35;
  margin-bottom: 0.875rem;
}

.blog-card__excerpt {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--gray-500);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 1.5rem;
}

.blog-card__divider {
  height: 1px;
  background: var(--gray-200);
  margin-bottom: 1.25rem;
}

.blog-card__read {
  font-family: var(--font-ui);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--black);
  transition: opacity .18s;
}
.blog-card__read:hover { opacity: 0.55; }
.blog-card__read::after {
  content: '';
  position: absolute;
  inset: 0;
}

@media (max-width: 900px) {
  .blog-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .blog-grid { grid-template-columns: 1fr; }
}

/* ─── Blog Article Pages ─── */
.article-header-wrap {
  border-bottom: 1px solid var(--gray-200);
  padding: 2.5rem 0 3.5rem;
}

.article-back {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-family: var(--font-ui);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 2.5rem;
  transition: color .18s;
}
.article-back:hover { color: var(--black); }

.article-title {
  font-family: var(--font-head);
  font-size: clamp(2.25rem, 5vw, 4.25rem);
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.04em;
  line-height: 1.05;
  max-width: 20ch;
  margin-bottom: 1.5rem;
}

.article-lead {
  font-family: var(--font-body);
  font-size: 1.125rem;
  color: var(--gray-500);
  line-height: 1.7;
  max-width: 72ch;
}

.article-body-wrap {
  padding-block: 4rem 5rem;
}

.article-body {
  max-width: 760px;
}

.article-pullquote {
  border-left: 3px solid var(--black);
  padding: 1.25rem 2rem;
  margin: 2.5rem 0 3rem;
  background: var(--gray-50);
}
.article-pullquote p {
  font-family: var(--font-head);
  font-size: 1.1875rem;
  font-weight: 600;
  color: var(--black);
  line-height: 1.45;
  letter-spacing: -0.02em;
  margin: 0;
}

.article-section {
  margin-bottom: 2.75rem;
}
.article-section h2 {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 0.875rem;
}
.article-section p {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  color: #52525b;
  line-height: 1.75;
  margin-bottom: 1rem;
}
.article-section p:last-child { margin-bottom: 0; }

/* ─── Comparison Table ─── */
.compare-section {
  margin-block: 3rem;
}
.compare-section__label {
  font-family: var(--font-ui);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 0.875rem;
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--gray-200);
  margin-bottom: 1rem;
}
.compare-table thead th {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-ui);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 1rem 1.5rem;
  text-align: left;
  width: 50%;
}
.compare-table tbody tr { border-bottom: 1px solid var(--gray-200); }
.compare-table tbody tr:last-child { border-bottom: none; }
.compare-table tbody td {
  padding: 1rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.6;
  vertical-align: top;
}
.compare-table tbody td:first-child {
  border-right: 1px solid var(--gray-200);
  color: var(--gray-500);
}
.compare-table tbody td:last-child { color: var(--black); }

/* ─── Related Articles ─── */
.article-related {
  border-top: 1px solid var(--gray-200);
  padding-block: 4rem 6rem;
}
.article-related__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}
.article-related__label {
  font-family: var(--font-head);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.02em;
}
.article-related__all {
  font-family: var(--font-ui);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--black);
  transition: opacity .18s;
}
.article-related__all:hover { opacity: 0.55; }

@media (max-width: 768px) {
  .compare-table { display: block; overflow-x: auto; }
  .article-title { max-width: none; }
}

/* ═══════════════════════════════════════════════
   MOBILE fine-tuning  ≤ 480px
   ═══════════════════════════════════════════════ */
@media (max-width: 480px) {
  .nav { height: 60px; }
  .hero { padding-top: 5rem; padding-bottom: 4rem; }
  .problem { padding-block: 4.5rem; }
  .problem__header { gap: 1.25rem; }
  .problem__item { padding-block: 1.5rem; }
  .solution { padding-block: 4.5rem; }
  .solution__headline { margin-bottom: 2rem; }
  .solution__col { padding: 1.75rem 1.5rem; }
  .perf { padding-block: 4.5rem; }
  .perf__tag { margin-bottom: 2rem; }
  .perf__top { gap: 1.5rem; margin-bottom: 2.5rem; }
  .perf__heading { font-size: 2rem; }
  .perf__stats { padding-top: 0; border-top: none; }
  .perf__stat { padding-inline: 0; padding-block: 1.75rem; border-top: 1px solid rgba(255,255,255,0.1); }
  .perf__stat:nth-child(odd)  { border-right: 1px solid rgba(255,255,255,0.1); padding-right: 1.5rem; }
  .perf__stat:nth-child(even) { padding-left: 1.5rem; }
  .perf__stat:nth-last-child(-n+2) { border-bottom: none; }
  .features { padding-block: 4.5rem; }
  .features__header { gap: 1.5rem; margin-bottom: 2rem; }
  .features__headline { font-size: 2.25rem; }
  .feature-card { padding: 1.75rem 0 !important; border-bottom: 1px solid var(--gray-200) !important; }
  .feature-card:last-child { border-bottom: none !important; }
  .pricing { padding-block: 4.5rem; }
  .pricing__header { gap: 1.5rem; }
  .pricing__grid { gap: 1rem; }
  .pricing-card { padding: 2rem; }
  .pricing__enterprise { padding: 2rem 1.5rem; }
  .faq-dark { padding-block: 4.5rem; }
  .faq-dark__header { flex-direction: column; align-items: flex-start; gap: 1.25rem; margin-bottom: 2rem; }
  .faq-dark__tag { font-size: 1.75rem; }
  .cta-banner { padding-block: 4.5rem; }
  .cta-banner h2 { font-size: 2.25rem; }
  .footer { padding-top: 3rem; }
  .footer__top { gap: 2.5rem; }
  .blog-grid { grid-template-columns: 1fr; }
}

/* ─── Toast Notification ─── */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(1rem);
  background: var(--dark);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.85rem 1.75rem;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
}
.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

/* ─── Dynamic Article Tables ─── */
.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 2.5rem 0;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    border: 1px solid var(--gray-200);
}

.article-body th {
    background: var(--gray-900);
    color: var(--white);
    text-align: left;
    padding: 1.25rem 1.5rem;
    font-family: var(--font-head);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.75rem;
}

.article-body td {
    padding: 1.25rem 1.5rem;
    border: 1px solid var(--gray-100);
    line-height: 1.6;
    color: var(--gray-700);
    vertical-align: top;
}

.article-body tr:nth-child(even) {
    background: var(--gray-50);
}

.article-body tr:hover {
    background: #fdfdfd;
}

@media (max-width: 768px) {
    .article-body table {
        display: block;
        overflow-x: auto;
    }
}

@media (max-width: 768px) {
  .contact-header { padding-top: 2rem; padding-bottom: 0; }
  .contact-header h1 { font-size: 1.75rem; }
  .contact-header p { font-size: 1rem; }
  .contact-main { padding-block: 2rem 4rem; }
  .contact-info { padding: 1.5rem; }
  .contact-info h2 { font-size: 1.75rem; margin-bottom: 1.5rem; }
}
