/* ============================================================
   FulgurForge — styles.css  (v3)
   Fonts: Instrument Sans (headings) · PT Sans (body)
   Colors: white bg · #030303 text · #006aff accent
   ============================================================ */

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

:root {
  --bg:           #ffffff;
  --bg-secondary: #f5f6f8;
  --bg-inverse:   #030303;
  --text:         #030303;
  --text-sub:     rgba(3,3,3,.58);
  --text-inv:     #ffffff;
  --text-inv-sub: rgba(255,255,255,.65);
  --accent:       #006aff;
  --accent-h:     #3d8eff;
  --accent-soft:  rgba(0,106,255,.12);
  --border:       rgba(3,3,3,.14);
  --border-inv:   rgba(255,255,255,.14);
  --radius:       .5rem;
  --sec-py:       6rem;
  --pad:          2rem;
  --max-w:        1280px;
  --ease:         .25s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'PT Sans', sans-serif;
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }
button { cursor: pointer; font: inherit; border: none; background: none; }

/* ── Type ─────────────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: 'Instrument Sans', sans-serif;
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -.01em;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.h-hero  { font-size: clamp(2.6rem, 5.5vw, 4.75rem); margin-bottom: .35em; }
.h-1     { font-size: clamp(2rem,   4vw,   4.2rem);  margin-bottom: .35em; }
.h-2     { font-size: clamp(1.6rem, 2.8vw, 2.5rem);  margin-bottom: .4em;  }
.h-3     { font-size: clamp(1.15rem,1.8vw, 1.78rem); margin-bottom: .5em;  }
.h-4     { font-size: 1.33rem; margin-bottom: .5em; }
.h-small { font-size: 1.1rem;  margin-bottom: .4em; }

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

.section {
  padding-block: var(--sec-py);
  background: var(--bg);
  overflow: hidden;
  position: relative;
}
.section.bg-secondary { background: var(--bg-secondary); }
.section.bg-inverse   { background: var(--bg-inverse); color: var(--text-inv); }

.sec-header { margin-bottom: 3.5rem; }
.sec-header.centered {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: 3.5rem;
}
.sec-header .sub {
  font-size: 1.05rem;
  color: var(--text-sub);
  margin-top: .6rem;
  line-height: 1.65;
}
.section.bg-inverse .sec-header .sub { color: var(--text-inv-sub); }

/* ── Navigation ───────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-inverse);
  color: var(--text-inv);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1rem;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: .85rem;
  text-decoration: none;
  color: var(--text-inv);
  flex-shrink: 0;
}
.nav__logo-img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  flex-shrink: 0;
}
.nav__logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.nav__logo-name {
  font-family: 'Instrument Sans', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
}
.nav__logo-sub {
  font-size: .8rem;
  color: rgba(255,255,255,.55);
  letter-spacing: .01em;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav__link {
  font-family: 'Instrument Sans', sans-serif;
  font-size: .95rem;
  font-weight: 500;
  color: rgba(255,255,255,.78);
  transition: color var(--ease);
}
.nav__link:hover, .nav__link.active { color: #fff; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: .4rem;
  color: #fff;
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  transition: transform .25s, opacity .25s;
}
.nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile {
  display: none;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.25rem var(--pad) 2rem;
  border-top: 1px solid var(--border-inv);
}
.nav__mobile.open { display: flex; }
.nav__mobile .nav__link { font-size: 1.1rem; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45em;
  padding: .72em 1.5em;
  border-radius: 6px;
  font-family: 'Instrument Sans', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: background var(--ease), color var(--ease), border-color var(--ease), box-shadow var(--ease);
  cursor: pointer;
  text-decoration: none;
}
.btn-primary  { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-h); }
.btn-secondary { background: var(--accent-soft); color: var(--accent); }
.btn-secondary:hover { background: rgba(0,106,255,.2); }
.btn-outline  { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn-outline:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.6); }
.btn-lg { font-size: 1.1rem; padding: .85em 2em; }
/* Nav CTA: white on dark nav bar for high contrast */
.nav .btn-primary { background: #fff; color: var(--text); border-color: #fff; }
.nav .btn-primary:hover { background: rgba(255,255,255,.88); border-color: rgba(255,255,255,.88); }
/* Dark-bg sections: primary button renders white */
.bg-inverse .btn-primary { background: #fff; color: var(--text); border-color: #fff; }
.bg-inverse .btn-primary:hover { background: rgba(255,255,255,.88); border-color: rgba(255,255,255,.88); }
/* Pricing cards + product detail panels: black buttons */
.pricing-card .btn-primary,
.product-tab-panel .btn-primary {
  background: var(--bg-inverse);
  color: #fff;
  border-color: var(--bg-inverse);
}
.pricing-card .btn-primary:hover,
.product-tab-panel .btn-primary:hover {
  background: rgba(3,3,3,.78);
  border-color: rgba(3,3,3,.78);
}

/* ── Hero (dark — home, contact) ──────────────────────────── */
.hero {
  background: var(--bg-inverse);
  color: var(--text-inv);
  padding-block: 7rem 5.5rem;
}
.hero__inner { max-width: 780px; }
.hero__headline { color: var(--text-inv); margin-bottom: .45em; }
.hero__body {
  font-size: 1.2rem;
  color: var(--text-inv-sub);
  line-height: 1.65;
  max-width: 58ch;
  margin-bottom: .75rem;
}
.hero__note {
  font-size: 1.05rem;
  color: var(--text-inv-sub);
  max-width: 52ch;
  font-style: italic;
}

/* ── Services hero (dark 2-col: images left, text right) ──── */
.services-hero {
  background: var(--bg-inverse);
  color: var(--text-inv);
  padding-block: 5rem;
}
.services-hero__grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3.5rem;
  align-items: center;
}
.services-hero__images {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.services-hero__images img {
  width: 100%;
  border-radius: var(--radius);
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}
.services-hero__text h1 { color: var(--text-inv); margin-bottom: .5em; }
.services-hero__text .sub {
  font-size: 1.15rem;
  color: var(--text-inv-sub);
  line-height: 1.65;
  max-width: 52ch;
  margin-bottom: 2rem;
}

/* ── Page hero (contact) ──────────────────────────────────── */
.page-hero {
  background: var(--bg-inverse);
  color: var(--text-inv);
  padding-block: 5.5rem 4rem;
}
.page-hero__inner { max-width: 760px; }
.page-hero h1 { color: var(--text-inv); margin-bottom: .4em; }
.page-hero .sub {
  font-size: 1.2rem;
  color: var(--text-inv-sub);
  line-height: 1.65;
  max-width: 60ch;
  margin-top: .75rem;
}

/* ── How It Works ─────────────────────────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.step-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  transition: box-shadow .3s;
}
.step-card:hover { box-shadow: 0 6px 28px rgba(0,0,0,.08); }
.step-num {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
  margin-bottom: .75rem;
  display: block;
}
.step-card h3 { font-size: 1.1rem; margin-bottom: .5rem; margin-top: 0; }
.step-card p  { font-size: .95rem; color: var(--text-sub); line-height: 1.6; }

/* ── What You Get / Brand Brain ───────────────────────────── */
.brand-brain {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
  margin-bottom: 5rem;
}
.brand-brain__heading { margin-bottom: .4em; }
.brand-brain__lead {
  font-size: 1.08rem;
  color: var(--text-sub);
  line-height: 1.7;
  margin-bottom: 1rem;
}
.brand-brain__right { padding-top: .5rem; }

/* Skills grid */
.skills-label {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 1.75rem;
}
.skills-label span { font-style: italic; }

.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.skill-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  padding: 1.4rem 1.25rem;
  transition: border-color .25s, box-shadow .25s;
}
.skill-card:hover { border-color: var(--bg-inverse); box-shadow: 0 4px 20px rgba(0,0,0,.08); }
.skill-card h4 { font-size: 1.05rem; margin-bottom: .4rem; margin-top: 0; }
.skill-card p  { font-size: .95rem; color: var(--text-sub); line-height: 1.55; }

/* ── Built for businesses (dark 2-col) ────────────────────── */
.biz-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.biz-content h2 { color: var(--text-inv); margin-bottom: 1.5rem; }
.biz-list { display: flex; flex-direction: column; gap: .9rem; margin-bottom: 2.5rem; }
.biz-list__item {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  font-size: 1.1rem;
  color: #fff;
  line-height: 1.5;
}
.biz-list__dot {
  flex-shrink: 0;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #fff;
  margin-top: .45em;
}
.biz-tagline {
  font-size: 1rem;
  color: var(--text-inv-sub);
  margin-bottom: 2rem;
  font-style: italic;
  line-height: 1.55;
}
.biz-image {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
}
.biz-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── FAQ ──────────────────────────────────────────────────── */
.faq-wrap {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 5rem;
  align-items: start;
}
.faq-label h2 { margin-bottom: 0; }
.faq-list { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  text-align: left;
  padding: 1.2rem 0;
  font-family: 'Instrument Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--text);
}
.faq-icon {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border: 1.5px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  color: var(--text-sub);
  transition: background .2s, border-color .2s, transform .3s, color .2s;
}
.faq-item.open .faq-icon {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: rotate(45deg);
}
.faq-answer { overflow: hidden; max-height: 0; transition: max-height .38s ease; }
.faq-item.open .faq-answer { max-height: 500px; }
.faq-answer p {
  padding-bottom: 1.2rem;
  font-size: 1rem;
  color: var(--text-sub);
  line-height: 1.65;
}

/* ── CTA / Consultation section ───────────────────────────── */
.cta-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.cta-content h2 { margin-bottom: .5em; }
.cta-content .sub {
  font-size: 1.05rem;
  color: var(--text-sub);
  line-height: 1.7;
  max-width: 52ch;
  margin-bottom: 2rem;
}
.cta-actions { display: flex; flex-direction: column; gap: .75rem; align-items: flex-start; }
.cta-contact-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .95rem;
  color: var(--text-sub);
}
.cta-contact-item a { color: var(--accent); }
.cta-contact-item a:hover { text-decoration: underline; }
.cta-image {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
}
.cta-image img { width: 100%; height: 100%; object-fit: cover; }

/* ── Pricing cards ────────────────────────────────────────── */
.pricing-sec-wrap { text-align: center; margin-bottom: 3rem; }
.pricing-sec-heading {
  font-family: 'Instrument Sans', sans-serif;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 600;
  margin-bottom: .25em;
}
.pricing-sec-sub { font-size: 1.05rem; color: var(--text-sub); }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: start;
}
.pricing-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  transition: transform .22s ease, box-shadow .22s ease;
}
.pricing-card:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow: 0 14px 44px rgba(0,0,0,.11);
  z-index: 2;
}
.pricing-card.featured {
  /* No margin-top — card top aligns with siblings; badge floats into section padding */
  border-color: var(--bg-inverse);
  box-shadow: 0 0 0 2px var(--bg-inverse), 0 8px 40px rgba(0,0,0,.1);
}
.pricing-card.featured:hover {
  box-shadow: 0 0 0 2px var(--bg-inverse), 0 18px 52px rgba(0,0,0,.22);
}
/* Badge sits on the card border — outside the card via absolute positioning */
.pricing-card.featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -1.15rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-inverse);
  color: #fff;
  font-family: 'Instrument Sans', sans-serif;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: .3em 1.1em;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
  z-index: 3;
}
/* Legacy tag (kept for reference, no longer rendered in HTML) */
.pricing-card__tag { display: none; }
.pricing-card__name {
  font-family: 'Instrument Sans', sans-serif;
  font-size: clamp(1.45rem, 2vw, 1.85rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: .25rem;
}
.pricing-card__tagline {
  font-size: .975rem;
  color: var(--text-sub);
  line-height: 1.55;
  text-align: center;
  margin-bottom: 1.5rem;
  min-height: 3.5rem; /* ensures pill aligns at same Y across all cards */
}
.pricing-card__price {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: .05em;
}
.pricing-card__price sup {
  font-size: 1.3rem;
  font-weight: 600;
  margin-top: .35em;
}
.pricing-card__price-custom {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-sub);
  margin-bottom: 1.5rem;
  font-style: italic;
  text-align: center;
}
.pricing-card__includes {
  font-family: 'Instrument Sans', sans-serif;
  font-size: .875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text-sub);
  margin-bottom: .85rem;
}
.pricing-card__features {
  display: flex;
  flex-direction: column;
  gap: .65rem;
  margin-bottom: 0;
  padding-top: .75rem;
}
.pricing-card__feature {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  font-size: 1rem;
  line-height: 1.5;
}
.pricing-card__check {
  flex-shrink: 0;
  width: 18px; height: 18px;
  background: rgba(3,3,3,.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: .1em;
  color: var(--text);
  font-size: .65rem;
  font-weight: 700;
}
.pricing-card__addon {
  font-size: .9rem;
  color: var(--text-sub);
  margin-top: -.5rem;
  margin-bottom: 1.5rem;
  padding: .75rem;
  background: var(--bg-secondary);
  border-radius: .375rem;
  line-height: 1.5;
}
.pricing-card__addon strong { color: var(--text); }

/* ── Pricing card "What's included" accordion ─────────────── */
.pricing-card__features-wrap {
  margin-bottom: 1.25rem;
}
.pricing-card__features-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  text-align: left;
  padding: .55rem .85rem;
  background: var(--bg-secondary);
  border: 1.5px solid var(--border);
  border-radius: .375rem;
  cursor: pointer;
  gap: .75rem;
  font-family: 'Instrument Sans', sans-serif;
  font-size: .875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text-sub);
  transition: background var(--ease), border-color var(--ease), color var(--ease);
}
.pricing-card__features-toggle:hover {
  background: var(--bg);
  border-color: rgba(3,3,3,.28);
  color: var(--text);
}
.pricing-card__features-wrap.is-open .pricing-card__features-toggle {
  background: var(--bg-inverse);
  border-color: var(--bg-inverse);
  color: #fff;
}
.pricing-card__features-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  font-weight: 700;
  transition: transform .25s;
}
.pricing-card__features-wrap.is-open .pricing-card__features-icon {
  transform: rotate(45deg);
}
.pricing-card__features-body {
  overflow: hidden;
  max-height: 0;
  transition: max-height .35s ease;
}
.pricing-card__features-wrap.is-open .pricing-card__features-body {
  max-height: 500px;
}

/* ── Contact form ─────────────────────────────────────────── */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 5rem;
  align-items: start;
}
.contact-info h2 { margin-bottom: .5em; }
.contact-info .sub { font-size: 1.1rem; color: var(--text-sub); line-height: 1.65; margin-bottom: 2rem; }
.contact-detail {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-size: 1rem;
  color: var(--text-sub);
  margin-bottom: .75rem;
}
.contact-detail a { color: var(--accent); }
.contact-detail a:hover { text-decoration: underline; }

.form-group { margin-bottom: 1.2rem; }
.form-group label {
  display: block;
  font-family: 'Instrument Sans', sans-serif;
  font-size: .95rem;
  font-weight: 600;
  margin-bottom: .4rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: 'PT Sans', sans-serif;
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
  outline: none;
  appearance: none;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,106,255,.14);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23030303' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-required { color: var(--accent); margin-left: .15em; }

/* Form feedback message */
.form-msg {
  font-size: .95rem;
  line-height: 1.5;
  min-height: 0;
  margin-bottom: 0;
}
.form-msg--error {
  color: #dc2626;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 6px;
  padding: .65rem .9rem;
  margin-bottom: .75rem;
}

/* Contact success state */
.contact-success {
  text-align: center;
  padding: 3rem 2rem;
}
.contact-success__icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #d1fae5;
  border: 1px solid #a7f3d0;
  color: #059669;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}
.contact-success__heading {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: .5rem;
}
.contact-success__body {
  font-size: 1rem;
  color: var(--text-sub);
  line-height: 1.6;
}

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  background: var(--bg-inverse);
  color: var(--text-inv);
  padding-block: 3.5rem 2.5rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border-inv);
  margin-bottom: 2rem;
}
.footer__brand p {
  color: var(--text-inv-sub);
  font-size: .93rem;
  line-height: 1.65;
  margin-top: .75rem;
  max-width: 32ch;
}
.footer__col-title {
  font-family: 'Instrument Sans', sans-serif;
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--text-inv-sub);
  margin-bottom: 1rem;
}
.footer__links { display: flex; flex-direction: column; gap: .55rem; }
.footer__links a { color: rgba(255,255,255,.68); font-size: 1rem; transition: color var(--ease); }
.footer__links a:hover { color: #fff; }
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer__copy, .footer__loc {
  color: var(--text-inv-sub);
  font-size: .9rem;
  display: flex;
  align-items: center;
  gap: .35rem;
}

/* ── Pain / Friction cards ────────────────────────────────── */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* Two defined rows: problem (auto) + solution (auto).
     Cards span both rows; subgrid makes all dividing lines align. */
  grid-template-rows: auto auto;
  column-gap: 1.5rem;
  row-gap: 0;
  margin-top: 3rem;
}
.pain-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
  /* Replace flex with CSS subgrid so all white/blue dividers align */
  display: grid;
  grid-row: span 2;
  grid-template-rows: subgrid;
}
.pain-card__problem {
  padding: 2rem;
  /* flex:1 removed — grid row handles height distribution */
}
.pain-card__icon {
  width: 2.75rem; height: 2.75rem;
  border-radius: .5rem;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--accent);
}
.pain-card__icon svg {
  width: 1.35rem; height: 1.35rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pain-card__eyebrow {
  font-family: 'Instrument Sans', sans-serif;
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text);
  background: var(--bg-secondary);
  display: inline-block;
  padding: .28em .9em;
  border-radius: 999px;
  margin-bottom: 1.1rem;
}
.pain-card__headline {
  font-family: 'Instrument Sans', sans-serif;
  font-size: clamp(1.1rem, 1.7vw, 1.3rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: .75rem;
  font-style: italic;
}
.pain-card__desc {
  font-size: 1rem;
  color: var(--text-sub);
  line-height: 1.65;
}
.pain-card__solution {
  padding: 1.5rem 2rem;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-left: 3px solid var(--bg-inverse);
  display: flex;
  flex-direction: column;
}
.pain-card__solution-eyebrow {
  font-family: 'Instrument Sans', sans-serif;
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: .45em;
  margin-bottom: .65rem;
}
.pain-card__solution-eyebrow::before {
  content: '';
  display: inline-block;
  width: 1em;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  flex-shrink: 0;
}
.pain-card__solution p {
  font-size: .975rem;
  color: var(--text);
  line-height: 1.6;
  flex: 1;
}

/* ── Product detail tab bar ───────────────────────────────── */
.product-explore-intro {
  background: var(--bg);
  padding: 4rem 0 2rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.product-explore-intro .detail-section-label { display: block; margin-bottom: .75rem; }
.product-explore-intro h2 { margin-bottom: .5em; }
.product-explore-intro .sub {
  max-width: 560px;
  margin-inline: auto;
  color: var(--text-sub);
  margin-bottom: 0;
}
.product-explore-intro .explore-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  margin-top: 1.5rem;
  font-family: 'Instrument Sans', sans-serif;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-sub);
}
.product-explore-intro .explore-hint svg { flex-shrink: 0; }

.product-tabs-wrap {
  position: sticky;
  top: 70px;           /* sits just below the sticky nav (~70px) */
  background: var(--bg);
  z-index: 50;
  border-bottom: 2px solid var(--border);
  box-shadow: 0 4px 18px rgba(0,0,0,.06);
  padding-block: .85rem;
}
.product-tabs {
  display: flex;
  justify-content: center;
  gap: .5rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.product-tabs::-webkit-scrollbar { display: none; }
.product-tab {
  font-family: 'Instrument Sans', sans-serif;
  font-size: .95rem;
  font-weight: 600;
  color: var(--text-sub);
  padding: .6rem 1.5rem;
  border: 1.5px solid var(--border);
  background: var(--bg-secondary);
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  transition: color var(--ease), background var(--ease), border-color var(--ease), box-shadow var(--ease);
  flex-shrink: 0;
}
.product-tab:hover {
  color: var(--text);
  background: var(--bg);
  border-color: rgba(3,3,3,.28);
}
.product-tab[aria-selected="true"] {
  color: #fff;
  background: var(--bg-inverse);
  border-color: var(--bg-inverse);
  box-shadow: 0 4px 14px rgba(0,0,0,.2);
}
.product-tab[aria-selected="true"]::after { display: none; }

/* Tab panels */
.product-tab-panel { display: none; }
.product-tab-panel.is-active { display: block; }

/* ── Pricing pill (replaces big price / italic "Custom pricing") ── */
.pricing-card__price-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4em;
  background: var(--bg-secondary);
  color: var(--text);
  border-radius: 999px;
  padding: .42em 1.1em;
  font-family: 'Instrument Sans', sans-serif;
  font-size: .975rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  width: fit-content;
  margin-inline: auto;
}

/* Anchor link from pricing card → detail section */
.pricing-card__more-link {
  display: block;
  text-align: center;
  font-size: .9rem;
  color: var(--text-sub);
  margin-bottom: .85rem;
  transition: color var(--ease);
}
.pricing-card__more-link:hover { color: var(--accent); }

/* ── Detail section label (eyebrow above h2) ─────────────── */
.detail-section-label {
  font-family: 'Instrument Sans', sans-serif;
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-sub);
  margin-bottom: .5rem;
}

/* ── Section divider line ─────────────────────────────────── */
.section-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin-block: 3rem;
}

/* ── Process rail (visual numbered steps with connector) ─── */
.process-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  position: relative;
  margin-block: 2.5rem 3rem;
}
.process-rail::before {
  content: '';
  position: absolute;
  top: 1.3rem;           /* half circle height */
  left: calc(100% / 8);  /* center of first step */
  right: calc(100% / 8); /* center of last step */
  height: 2px;
  background: var(--border);
  z-index: 0;
  pointer-events: none;
}
.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 .75rem;
  position: relative;
  z-index: 1;
}
.process-step__num {
  width: 2.6rem;
  height: 2.6rem;
  background: var(--bg-inverse);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Instrument Sans', sans-serif;
  font-weight: 700;
  font-size: .88rem;
  margin-bottom: .9rem;
  flex-shrink: 0;
  box-shadow: 0 0 0 4px var(--bg), 0 0 0 7px rgba(3,3,3,.1);
  position: relative;
  z-index: 1;
}
.section.bg-secondary .process-step__num {
  box-shadow: 0 0 0 4px var(--bg-secondary), 0 0 0 7px rgba(3,3,3,.1);
}
.process-step__title {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .3rem;
  color: var(--text);
}
.process-step__desc {
  font-size: .9rem;
  color: var(--text-sub);
  line-height: 1.5;
}

/* ── Expandable skill cards (services page) ───────────────── */
.skill-card--detail {
  cursor: pointer;
  text-align: left;
  width: 100%;
  appearance: none;
}
.skill-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: .5rem;
  margin-bottom: .35rem;
}
.skill-card__head h4 { margin: 0; }
.skill-card__toggle-icon {
  flex-shrink: 0;
  width: 18px; height: 18px;
  border: 1.5px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .72rem;
  font-weight: 700;
  color: var(--text-sub);
  transition: background .2s, border-color .2s, transform .25s, color .2s;
  margin-top: .1em;
}
.skill-card--detail[aria-expanded="true"] .skill-card__toggle-icon {
  background: var(--bg-inverse);
  border-color: var(--bg-inverse);
  color: #fff;
  transform: rotate(45deg);
}
.skill-card__detail {
  overflow: hidden;
  max-height: 0;
  transition: max-height .32s ease;
}
.skill-card--detail[aria-expanded="true"] .skill-card__detail {
  max-height: 350px;
}
.skill-card__detail-body {
  border-top: 1px solid var(--border);
  margin-top: .6rem;
  padding-top: .65rem;
  font-size: .9rem;
  color: var(--text-sub);
  line-height: 1.55;
}

/* ── Outcomes grid (AI Supercharge result) ────────────────── */
.outcomes-wrap { margin-top: 3rem; }
.outcomes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.outcome-item {
  display: flex;
  gap: .9rem;
  align-items: flex-start;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.25rem;
}
.outcome-dot {
  flex-shrink: 0;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--bg-inverse);
  margin-top: .45em;
}
.outcome-item strong {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  display: block;
  margin-bottom: .25rem;
}
.outcome-item p { font-size: .95rem; color: var(--text-sub); line-height: 1.55; }

/* ── App showcase (Custom App example) ────────────────────── */
.app-showcase {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 4rem;
  align-items: center;
  margin-top: 3rem;
}
.app-showcase__text h3 { margin-bottom: .6rem; }
.app-showcase__text p  { font-size: 1rem; color: var(--text-sub); line-height: 1.7; }
.app-showcase__visual {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16/10;
  background: var(--bg-secondary);
  border: 1px dashed var(--border);
  position: relative;
}
.app-showcase__placeholder {
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  color: var(--text-sub);
  font-size: .87rem;
  font-style: italic;
}
.app-showcase__img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── Product card expandable workflows ────────────────────── */
.product-workflows {
  margin-bottom: 1.25rem;
  border-top: 1px solid var(--border);
  padding-top: .85rem;
  margin-top: auto;
}
.product-workflow-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  text-align: left;
  padding: .45rem 0;
  font-family: 'Instrument Sans', sans-serif;
  font-size: .88rem;
  font-weight: 600;
  color: var(--accent);
  background: none;
  border: none;
  cursor: pointer;
  gap: .75rem;
  transition: color var(--ease);
}
.product-workflow-toggle:hover { color: var(--accent-h); }
.product-workflow-icon {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  transition: transform .25s;
}
.pricing-card.wf-open .product-workflow-icon { transform: rotate(45deg); }
.product-workflow-body {
  overflow: hidden;
  max-height: 0;
  transition: max-height .38s ease;
}
.pricing-card.wf-open .product-workflow-body { max-height: 900px; }
.product-steps {
  list-style: none;
  padding: .6rem 0 .25rem;
  display: flex;
  flex-direction: column;
  gap: .8rem;
}
.product-steps li { display: flex; flex-direction: column; gap: .2rem; }
.product-steps li strong {
  font-family: 'Instrument Sans', sans-serif;
  font-size: .9rem;
  font-weight: 700;
  color: var(--text);
}
.product-steps li p {
  font-size: .9rem;
  color: var(--text-sub);
  line-height: 1.55;
  margin: 0;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  :root { --sec-py: 5rem; --pad: 1.5rem; }
  .steps-grid   { grid-template-columns: 1fr 1fr; }
  .skills-grid  { grid-template-columns: 1fr 1fr; }
  .brand-brain  { grid-template-columns: 1fr; gap: 2.5rem; }
  .biz-grid     { grid-template-columns: 1fr; gap: 2.5rem; }
  .biz-image    { max-width: 540px; }
  .faq-wrap     { grid-template-columns: 1fr; gap: 2rem; }
  .cta-grid     { grid-template-columns: 1fr; gap: 2.5rem; }
  .cta-image    { max-width: 540px; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; }
  .contact-wrap { grid-template-columns: 1fr; gap: 3rem; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .services-hero__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .services-hero__images { flex-direction: row; }
  .services-hero__images img { flex: 1; }
  .nav__links  { display: none; }
  .nav__toggle { display: flex; }
  /* Detail section components */
  .process-rail { grid-template-columns: 1fr 1fr; }
  .process-rail::before { display: none; }
  .outcomes-grid { grid-template-columns: 1fr; }
  .app-showcase  { grid-template-columns: 1fr; gap: 2.5rem; }
  /* Pain grid: 2-col at tablet, last card centred */
  .pain-grid { grid-template-columns: 1fr 1fr; }
  .pain-grid > .pain-card:last-child { grid-column: 1 / -1; max-width: calc(50% - .75rem); margin-inline: auto; }
}

@media (max-width: 640px) {
  :root { --sec-py: 3.5rem; --pad: 1.25rem; }
  .hero  { padding-block: 4rem 3rem; }
  .page-hero { padding-block: 3.5rem 2.5rem; }
  .services-hero { padding-block: 3rem; }
  .steps-grid  { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
  .form-row    { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .pricing-grid { max-width: 100%; }
  .services-hero__images { flex-direction: column; }
  .h-hero { font-size: 2.3rem; }
  .h-1    { font-size: 1.9rem; }
  /* Detail section components */
  .process-rail { grid-template-columns: 1fr; gap: .75rem; }
  /* Pain grid: single column at mobile */
  .pain-grid { grid-template-columns: 1fr; }
  .pain-grid > .pain-card:last-child { max-width: 100%; margin-inline: 0; }
}

/* ── Hero CTA button area ─────────────────────────────────── */
.hero__cta { margin-top: 2rem; }
/* Override: hero is dark, so btn-primary → white */
.hero .btn-primary { background: #fff; color: var(--text); border-color: #fff; }
.hero .btn-primary:hover { background: rgba(255,255,255,.88); border-color: rgba(255,255,255,.88); }

/* ── Pain card CTA button ─────────────────────────────────── */
.pain-card__cta-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  margin-top: 1rem;
  padding: .55em 1.25em;
  font-family: 'Instrument Sans', sans-serif;
  font-size: .95rem;
  font-weight: 700;
  color: var(--text);
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  text-decoration: none;
  transition: background var(--ease), border-color var(--ease), color var(--ease);
}
.pain-card__cta-link:hover {
  background: var(--bg-inverse);
  color: #fff;
  border-color: var(--bg-inverse);
}

/* ── "How it works" toggle — more obviously interactive ──── */
.product-workflows {
  margin-bottom: 1.25rem;
  border-top: 1px solid var(--border);
  padding-top: .85rem;
  margin-top: auto;
}
.product-workflow-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: .55rem .85rem;
  font-family: 'Instrument Sans', sans-serif;
  font-size: .95rem;
  font-weight: 600;
  color: var(--text);
  background: var(--bg-secondary);
  border: 1.5px solid var(--border);
  border-radius: .375rem;
  cursor: pointer;
  gap: .75rem;
  transition: background var(--ease), border-color var(--ease), color var(--ease);
}
.product-workflow-toggle:hover {
  background: var(--bg);
  border-color: rgba(3,3,3,.28);
}
.pricing-card.wf-open .product-workflow-toggle {
  background: var(--bg-inverse);
  border-color: var(--bg-inverse);
  color: #fff;
}
.product-workflow-label { flex: 1; text-align: left; }
.product-workflow-icon {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  transition: transform .25s, background .2s;
}
.pricing-card.wf-open .product-workflow-toggle {
  background: rgba(0,106,255,.18);
  border-color: var(--accent);
}
.pricing-card.wf-open .product-workflow-icon { transform: rotate(45deg); }
.product-workflow-body {
  overflow: hidden;
  max-height: 0;
  transition: max-height .38s ease;
}
.pricing-card.wf-open .product-workflow-body { max-height: 900px; }

/* ── Social proof / Testimonials ─────────────────────────── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.testimonial-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.testimonial-stars { color: #f59e0b; font-size: 1.05rem; letter-spacing: .05em; }
.testimonial-quote {
  font-size: 1.1rem;
  color: var(--text);
  line-height: 1.7;
  font-style: italic;
  flex: 1;
}
.testimonial-author__name {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}
.testimonial-author__role { font-size: .9rem; color: var(--text-sub); }

/* ── App showcase — iframe edition ───────────────────────── */
.app-showcase--full {
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 3rem;
}
.app-showcase__intro { max-width: 680px; }
.app-showcase__intro h3 { margin-bottom: .6rem; }
.app-showcase__intro p  { font-size: 1rem; color: var(--text-sub); line-height: 1.7; }
.app-showcase__iframe-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,.1);
}
.app-showcase__iframe-toolbar {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .6rem 1rem;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}
.iframe-toolbar__dots {
  display: flex;
  gap: .35rem;
}
.iframe-toolbar__dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--border);
  display: block;
}
.iframe-toolbar__dots span:nth-child(1) { background: #ff5f56; }
.iframe-toolbar__dots span:nth-child(2) { background: #ffbd2e; }
.iframe-toolbar__dots span:nth-child(3) { background: #27c93f; }
.iframe-toolbar__label {
  font-family: 'Instrument Sans', sans-serif;
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-sub);
  flex: 1;
  text-align: center;
}
.iframe-toolbar__expand {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-family: 'Instrument Sans', sans-serif;
  font-size: .875rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--ease);
}
.iframe-toolbar__expand:hover { color: var(--accent-h); text-decoration: underline; }
.app-showcase__iframe {
  width: 100%;
  height: 680px;
  border: none;
  display: block;
}

@media (max-width: 1024px) {
  .app-showcase__iframe { height: 580px; }
}
@media (max-width: 640px) {
  .app-showcase__iframe { height: 480px; }
  .testimonials-grid { grid-template-columns: 1fr; }
}

/* ── Demo switcher (Custom App panel) ────────────────────── */
.demo-switcher {
  display: inline-flex;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px;
  gap: 2px;
}
.demo-tab {
  padding: 8px 22px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--text-sub);
  font-size: .875rem;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: background var(--ease), color var(--ease);
  white-space: nowrap;
}
.demo-tab.is-active {
  background: var(--bg-inverse);
  color: var(--text-inv);
  font-weight: 600;
}
.demo-tab:not(.is-active):hover { color: var(--text); }
.demo-slot--hidden { display: none; }
.demo-slot__desc {
  font-size: 1rem;
  color: var(--text-sub);
  line-height: 1.7;
  max-width: 680px;
  margin-bottom: .5rem;
}
.demo-slot__note {
  font-size: .875rem;
  color: var(--text-sub);
  opacity: .6;
  margin-bottom: 1.25rem;
}

/* Problem / Solution blocks */
.demo-ps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 2.5rem;
  max-width: 780px;
  margin-bottom: 1.25rem;
}
.demo-ps__block {
  padding-left: .875rem;
  border-left: 2px solid var(--border);
}
.demo-ps__block--problem { border-color: rgba(220,38,38,.35); }
.demo-ps__block--solution { border-color: var(--accent); }
.demo-ps__label {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .4rem;
  color: var(--text-sub);
}
.demo-ps__block--problem .demo-ps__label { color: #dc2626; }
.demo-ps__block--solution .demo-ps__label { color: var(--accent); }
.demo-ps__text {
  font-size: .95rem;
  color: var(--text-sub);
  line-height: 1.65;
  margin: 0;
}
@media (max-width: 640px) {
  .demo-ps { grid-template-columns: 1fr; gap: 1.25rem; }
}

/* ════════════════════════════════════════════════════════════
   AUDIENCE SEGMENTATION FEATURE — nav dropdown, WHO WE SERVE,
   FAQ filters, and segment landing pages
   ════════════════════════════════════════════════════════════ */

/* ── Nav dropdown ─────────────────────────────────────────── */
.nav__dropdown-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.nav__dropdown-trigger {
  display: flex;
  align-items: center;
  gap: .3rem;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: 'Instrument Sans', sans-serif;
  font-size: inherit;
  color: var(--text-sub);
  font-weight: 500;
  transition: color var(--ease);
}
.nav__dropdown-trigger:hover,
.nav__dropdown-trigger[aria-expanded="true"] { color: var(--text); }
.nav__dropdown-trigger svg { transition: transform .2s; }
.nav__dropdown-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav__dropdown {
  position: absolute;
  top: calc(100% + .75rem);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0,0,0,.11), 0 2px 6px rgba(0,0,0,.06);
  padding: .5rem;
  min-width: 230px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s, transform .15s;
  z-index: 200;
}
.nav__dropdown-wrap:hover .nav__dropdown,
.nav__dropdown-wrap:focus-within .nav__dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav__dropdown-item {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .625rem .75rem;
  border-radius: 7px;
  text-decoration: none;
  color: var(--text);
  transition: background var(--ease);
}
.nav__dropdown-item:hover { background: var(--bg-secondary); }
.nav__dropdown-item-icon {
  width: 34px;
  height: 34px;
  border-radius: 7px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
}
.nav__dropdown-item-text strong {
  display: block;
  font-size: .875rem;
  font-weight: 600;
  margin-bottom: 1px;
}
.nav__dropdown-item-text span {
  display: block;
  font-size: .775rem;
  color: var(--text-sub);
}

/* ── Who We Serve section ─────────────────────────────────── */
.serve-tabs-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 2.75rem;
}
.serve-tabs {
  display: inline-flex;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px;
  gap: 2px;
}
.serve-tab {
  display: flex;
  align-items: center;
  gap: .45rem;
  padding: .7rem 1.75rem;
  background: transparent;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-family: 'Instrument Sans', sans-serif;
  font-size: .95rem;
  font-weight: 500;
  color: var(--text-sub);
  transition: background var(--ease), color var(--ease);
  white-space: nowrap;
}
.serve-tab.is-active {
  background: var(--bg-inverse);
  color: var(--text-inv);
  font-weight: 600;
}
.serve-tab:not(.is-active):hover { color: var(--text); }
.serve-tab svg { flex-shrink: 0; }
.serve-panel--hidden { display: none; }

.serve-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.serve-headline {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.02em;
  margin-bottom: .75rem;
  color: var(--text);
}
.serve-sub {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 1.75rem;
}
.serve-pains {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.serve-pain-item {
  display: flex;
  gap: .875rem;
  align-items: flex-start;
}
.serve-pain-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
}
.serve-pain-text strong {
  display: block;
  font-size: .95rem;
  font-weight: 600;
  margin-bottom: .2rem;
  color: var(--text);
}
.serve-pain-text p {
  font-size: .875rem;
  color: var(--text);
  line-height: 1.55;
  margin: 0;
}
.serve-solution-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.serve-solution-card h3 {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--accent);
  margin-bottom: 1.1rem;
}
.serve-solution-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .625rem;
}
.serve-solution-list li {
  display: flex;
  align-items: flex-start;
  gap: .625rem;
  font-size: .925rem;
  line-height: 1.5;
  color: var(--text);
}
.serve-solution-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: .45rem;
  flex-shrink: 0;
}
.serve-cta-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-family: 'Instrument Sans', sans-serif;
  font-weight: 600;
  font-size: .925rem;
  color: var(--accent);
  text-decoration: none;
  transition: gap var(--ease), color var(--ease);
}
.serve-cta-link:hover { color: var(--accent-h); gap: .65rem; }
.serve-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--accent-soft);
  border: 1px solid rgba(0,106,255,.22);
  border-radius: 20px;
  padding: .375rem .9rem;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--accent);
  margin-bottom: 1rem;
}

/* ── FAQ filter chips ─────────────────────────────────────── */
.faq-filter-row {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.faq-filter-btn {
  padding: .375rem 1rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: transparent;
  font-family: 'Instrument Sans', sans-serif;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  cursor: pointer;
  color: var(--text-sub);
  transition: border-color var(--ease), color var(--ease), background var(--ease);
}
.faq-filter-btn:hover { border-color: var(--accent); color: var(--accent); }
.faq-filter-btn.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.faq-item--hidden { display: none !important; }

/* ── Segment landing pages — shared ──────────────────────── */
.segment-hero { background: var(--bg-inverse); padding: 5rem 0; }
.segment-hero__inner { max-width: 720px; }
.segment-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(0,106,255,.15);
  border: 1px solid rgba(0,106,255,.3);
  border-radius: 20px;
  padding: .35rem .9rem;
  font-family: 'Instrument Sans', sans-serif;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #7ab0ff;
  margin-bottom: 1.5rem;
}
.segment-hero h1 { color: var(--text-inv); margin-bottom: .5em; }
.segment-hero__sub {
  font-size: 1.1rem;
  color: var(--text-inv-sub);
  line-height: 1.7;
  max-width: 580px;
  margin-bottom: 2rem;
}
.segment-pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.segment-pain-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.segment-pain-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--accent);
}
.segment-pain-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .5rem;
  line-height: 1.3;
}
.segment-pain-card p {
  font-size: .9rem;
  color: var(--text-sub);
  line-height: 1.6;
  margin: 0;
}
.misconception-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.misconception-item {
  padding: 1.5rem 1.5rem 1.5rem 1.25rem;
  border-left: 3px solid var(--accent);
  background: var(--bg-secondary);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.misconception-item__they-think {
  font-family: 'Instrument Sans', sans-serif;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-sub);
  margin-bottom: .35rem;
}
.misconception-item__myth {
  font-style: italic;
  font-size: .9rem;
  color: var(--text-sub);
  line-height: 1.55;
  margin: 0 0 .625rem;
}
.misconception-item__truth {
  font-size: .9rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
  margin: 0;
}

/* ── Legal ethics / trust section ────────────────────────── */
.legal-trust-section {
  background: #f0f4ff;
  border-top: 3px solid var(--accent);
  border-bottom: 1px solid rgba(0,106,255,.15);
}
.legal-trust-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: start;
}
.legal-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(0,106,255,.1);
  border: 1px solid rgba(0,106,255,.25);
  border-radius: 20px;
  padding: .4rem 1rem;
  font-family: 'Instrument Sans', sans-serif;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--accent);
  margin-bottom: 1.1rem;
}
.legal-ref-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.legal-ref-item {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  padding: .875rem 1rem;
  background: #fff;
  border: 1px solid rgba(0,106,255,.15);
  border-radius: 8px;
  font-size: .875rem;
  line-height: 1.55;
  color: var(--text-sub);
}
.legal-ref-item-label {
  font-family: 'Instrument Sans', sans-serif;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--accent);
  white-space: nowrap;
  padding-top: 2px;
}
.legal-scope-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}
.legal-scope-panel {
  padding: 1.25rem 1.375rem;
  border-radius: var(--radius);
}
.legal-scope-panel--yes {
  background: rgba(0,106,255,.05);
  border: 1px solid rgba(0,106,255,.2);
}
.legal-scope-panel--no {
  background: rgba(220,38,38,.03);
  border: 1px solid rgba(220,38,38,.14);
}
.legal-scope-header {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-family: 'Instrument Sans', sans-serif;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .875rem;
}
.legal-scope-panel--yes .legal-scope-header { color: var(--accent); }
.legal-scope-panel--no  .legal-scope-header { color: #dc2626; }
.legal-scope-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.legal-scope-list li {
  font-size: .875rem;
  line-height: 1.5;
  color: var(--text-sub);
  display: flex;
  gap: .5rem;
  align-items: flex-start;
}
.legal-scope-list li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  margin-top: .45rem;
  flex-shrink: 0;
}
.legal-scope-panel--yes .legal-scope-list li::before { background: var(--accent); }
.legal-scope-panel--no  .legal-scope-list li::before { background: #dc2626; }

/* ── Responsive: new sections ─────────────────────────────── */
@media (max-width: 1024px) {
  .serve-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .legal-trust-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .segment-pain-grid { grid-template-columns: 1fr 1fr; }
  .misconception-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .serve-tab { padding: .6rem 1.1rem; font-size: .875rem; }
  .segment-pain-grid { grid-template-columns: 1fr; }
  .legal-scope-grid { grid-template-columns: 1fr; }
}

/* ── Mobile UX improvements ───────────────────────────────── */

/* 1. Hide decorative hero images on mobile — show headline/CTA first */
@media (max-width: 640px) {
  .services-hero__images { display: none; }
  .services-hero__grid   { grid-template-columns: 1fr; }
}

/* 2. Fix product tab bar cut off on mobile — full-bleed scroll */
@media (max-width: 640px) {
  .product-tabs-wrap .container {
    padding-inline: 0;
    overflow: visible;
  }
  .product-tabs {
    padding-inline: var(--pad);
    justify-content: flex-start;
  }
}

/* 3. Pricing cards — horizontal scroll carousel on mobile */
@media (max-width: 640px) {
  .pricing-grid {
    display: flex;
    max-width: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    touch-action: pan-x;
    gap: 1rem;
    padding-bottom: 1.5rem;
    /* Break out of container padding so carousel reaches viewport edges */
    margin-inline: calc(-1 * var(--pad));
    padding-inline: var(--pad);
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .pricing-grid::-webkit-scrollbar { display: none; }
  .pricing-card {
    flex: 0 0 82vw;
    max-width: 82vw;
    height: auto;
    scroll-snap-align: start;
  }
  /* Swipe hint — peek of next card is the primary affordance */
  /* Last card gets right padding so it doesn't clip at scroll end */
  .pricing-card:last-child { margin-right: var(--pad); }
}

/* 4. Collapsible pain point cards on mobile */
@media (max-width: 640px) {
  /* Override subgrid layout — use flex for collapsible behavior */
  .pain-card {
    display: flex;
    flex-direction: column;
    grid-row: auto;
    cursor: pointer;
    transition: box-shadow .2s;
  }
  .pain-card__problem {
    position: relative;
    padding-right: 3.5rem; /* room for the +/× indicator */
  }
  /* Expand indicator badge */
  .pain-card__problem::after {
    content: '+';
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 28px;
    height: 28px;
    border: 1.5px solid var(--border);
    border-radius: 50%;
    font-family: 'Instrument Sans', sans-serif;
    font-size: .85rem;
    font-weight: 700;
    color: var(--text-sub);
    line-height: 26px;
    text-align: center;
    transition: background .2s, border-color .2s, color .2s;
  }
  .pain-card.is-open .pain-card__problem::after {
    content: '\00d7'; /* × */
    background: var(--bg-inverse);
    border-color: var(--bg-inverse);
    color: #fff;
  }
  /* Hide desc + solution panel by default; reveal when open */
  .pain-card__desc    { display: none; }
  .pain-card__solution { display: none; }
  .pain-card.is-open .pain-card__desc    { display: block; }
  .pain-card.is-open .pain-card__solution {
    display: flex;
    flex-direction: column;
  }
}
