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

:root {
  --primary:       #1e3a5f;
  --primary-dark:  #142940;
  --accent:        #e8a838;
  --accent-dark:   #c98f20;
  --accent-light:  #fdf3dc;
  --gray-50:       #f9fafb;
  --gray-100:      #f5f6f8;
  --gray-200:      #eceef2;
  --gray-400:      #9ca3af;
  --gray-500:      #6b7280;
  --gray-600:      #4b5563;
  --gray-900:      #111827;
  --white:         #ffffff;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.5;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 9999px;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 150ms ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-accent { background: var(--accent); color: var(--primary-dark); }
.btn-accent:hover { background: var(--accent-dark); }
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-block { width: 100%; }

.btn:focus-visible,
.nav-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.section-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 10px;
  display: block;
}

section { scroll-margin-top: 56px; padding: 56px 0; }

.section-header { margin-bottom: 28px; }
.section-header.center { text-align: center; }
.section-header.center p { margin-left: auto; margin-right: auto; }

.section-header h2 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 8px;
}

.section-header p,
.section-intro {
  font-size: 0.95rem;
  color: var(--gray-500);
  max-width: 36rem;
  line-height: 1.65;
}

.note-text {
  font-size: 0.82rem;
  color: var(--gray-500);
  line-height: 1.55;
  margin-top: 12px;
}

/* Nav — exclude bottom tab bar and product subnav (also <nav>) */
nav:not(.vb-bottom-tabs):not(.sgb-product-tabs) {
  background: var(--primary-dark);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  height: 56px;
  gap: 16px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo { width: 32px; height: 32px; object-fit: contain; }
.nav-wordmark-main {
  font-size: 21px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.01em;
}
.wordmark-accent { color: var(--accent); }

.nav-links {
  display: none;
  align-items: center;
  gap: 2px;
  flex: 1;
}

.nav-link {
  padding: 6px 12px;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
}
.nav-link:hover { color: var(--white); background: rgba(255,255,255,0.08); }
.nav-link.active { color: var(--white); background: rgba(255,255,255,0.12); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.nav-cta { display: none; padding: 7px 16px; font-size: 0.82rem; }

.nav-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  color: var(--white);
  cursor: pointer;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 20px 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
  background: var(--primary-dark);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  text-align: left;
  padding: 12px 4px;
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
}

/* ValidBound bottom tabs (≤767px) — phone nav; tablets use the top nav instead */
.vb-bottom-tabs {
  display: none;
  flex-direction: row;
  position: fixed;
  top: auto;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  border-bottom: none;
  height: 60px;
  padding-bottom: env(safe-area-inset-bottom, 0);
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.06);
  justify-content: space-around;
  align-items: stretch;
}

.vb-tab-item {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 44px;
  padding: 6px 4px;
  border: none;
  background: none;
  color: var(--gray-500);
  font-size: 0.68rem;
  font-weight: 600;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  text-decoration: none;
  cursor: pointer;
}

.vb-tab-item i,
.vb-tab-item svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.vb-tab-item:hover,
.vb-tab-item:focus-visible {
  color: var(--primary);
  background: var(--gray-100);
}

.vb-tab-item.active {
  color: var(--primary);
}

.vb-tab-item.vb-tab-cta {
  color: var(--primary);
}

.vb-tab-item:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

/*
 * Bottom tabs on phones only (≤767px). From 768px up, use the top nav so
 * two-column SpeechGradebook product CTAs are not covered by the fixed tab bar
 * (taps were hitting Coaching/Book instead of Request pilot info / Try live demo).
 */
@media (max-width: 767px) {
  html {
    scroll-padding-top: 56px;
    scroll-padding-bottom: calc(72px + env(safe-area-inset-bottom, 0));
  }

  body:has(.vb-bottom-tabs) {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0));
  }

  .vb-bottom-tabs {
    display: flex;
  }

  .nav-menu-btn,
  .nav-cta {
    display: none !important;
  }

  .mobile-menu {
    position: fixed;
    top: auto;
    bottom: calc(60px + env(safe-area-inset-bottom, 0));
    left: 0;
    right: 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    border-bottom: none;
    max-height: min(50vh, 20rem);
    overflow-y: auto;
    z-index: 99;
  }
}

/* Hero */
.hero {
  padding: 48px 0 56px;
  background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
  border-bottom: 1px solid var(--gray-200);
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 2.875rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  max-width: none;
  text-wrap: balance;
}

.hero-lead {
  font-size: 1.05rem;
  color: var(--gray-600);
  line-height: 1.65;
  margin-bottom: 20px;
  max-width: 38rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.hero-inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.hero-visual img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

/* Credibility strip */
.credibility-strip {
  background: var(--gray-100);
  border-bottom: 1px solid var(--gray-200);
  padding: 48px 0 56px;
}

.credibility-founder {
  margin-bottom: 24px;
}

.credibility-founder .founder-name {
  margin: 0 0 4px;
}

.credibility-founder .founder-bio {
  margin: 0;
}

.credibility-strip .section-header {
  margin-bottom: 24px;
}

.credibility-strip .why-card {
  background: var(--white);
}

.credibility-grid {
  gap: 16px;
}

.founder-intro--lead {
  max-width: none;
  margin: 0 auto 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(232, 168, 56, 0.25);
}

.founder-intro--lead .section-label {
  display: block;
  margin-bottom: 8px;
}

/* Cards */
.card-grid {
  display: grid;
  gap: 20px;
}

.offer-card,
.product-card {
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  padding: 24px;
  background: var(--white);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.offer-card.featured,
.product-card--featured {
  border-color: var(--accent);
  box-shadow: 0 8px 28px rgba(232,168,56,0.14);
}

.offers-layout {
  display: grid;
  gap: 20px;
}

.offer-coaching-inner {
  display: grid;
  gap: 24px;
  align-items: center;
}

.offer-coaching-copy {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.offer-coaching-copy .btn {
  margin-top: 0;
  align-self: flex-start;
}

.offer-coaching-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-top: 4px;
}

.coaching-about-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}

.coaching-about-link:hover,
.coaching-about-link:focus-visible {
  color: var(--accent-dark);
  text-decoration: underline;
}

.card-thumb-label {
  margin-top: 14px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--primary);
}

@media (min-width: 768px) {
  .offer-coaching-inner {
    grid-template-columns: minmax(220px, 280px) 1fr;
    gap: 32px;
  }
}

.offer-card h3,
.product-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
}

.offer-card p,
.product-card p {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.6;
}

.offer-card .btn,
.product-card .btn { margin-top: auto; align-self: flex-start; }

/* Keep stacked secondary CTAs tight under the primary; avoid a second auto margin. */
.offer-card .btn + .btn,
.product-card .btn + .btn {
  margin-top: 10px;
}

/* Why different */
.why-grid {
  display: grid;
  gap: 16px;
}

.why-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 20px;
}

.why-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.why-card p {
  font-size: 0.88rem;
  color: var(--gray-600);
  line-height: 1.55;
}

/* Bullets */
.bullet-grid {
  display: grid;
  gap: 12px;
  list-style: none;
}

.bullet-grid li {
  display: flex;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.5;
}

.bullet-grid li::before {
  content: "✓";
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(30,58,95,0.08);
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Steps */
.steps {
  display: grid;
  gap: 16px;
}

.step-card {
  display: flex;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  background: var(--white);
}

.step-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}

.step-card p {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.55;
}

/* Founder */
.founder-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
  max-width: 42rem;
  margin: 0 auto;
}

.founder-photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--white);
  box-shadow: 0 4px 16px rgba(30,58,95,0.12);
}

.founder-name {
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--primary);
  margin: 0 0 4px;
}

.founder-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-dark);
  margin: 4px 0 12px;
}

.founder-bio {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.65;
}

.founder-profile-links {
  margin-top: 16px;
}

.founder-profile-links a {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}

.founder-profile-links a:hover,
.founder-profile-links a:focus-visible {
  color: var(--accent-dark);
  text-decoration: underline;
}

/* Teaching credentials */
.credentials-block {
  display: grid;
  gap: 28px;
  align-items: start;
}

.credentials-block h2 {
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.credentials-cover img {
  display: block;
  width: 100%;
  max-width: 148px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(20, 41, 64, 0.14);
}

.credentials-cover-sm {
  display: block;
  width: 72px;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(20, 41, 64, 0.12);
  margin-bottom: 12px;
}

.credentials-teaching-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}

.credentials-teaching-link:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

.credentials-stat {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.6;
  margin-top: 16px;
  padding: 14px 16px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
}

.credentials-stat strong {
  color: var(--primary);
  font-weight: 800;
}

.credentials-quotes {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.testimonial-quote {
  margin: 0;
  padding: 14px 16px;
  background: var(--white);
  border-left: 3px solid var(--accent);
  border-radius: 0 10px 10px 0;
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.55;
  font-style: italic;
}

.testimonial-quote cite {
  display: block;
  margin-top: 8px;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 600;
  color: var(--gray-500);
}

.credentials-note {
  font-size: 0.78rem;
  color: var(--gray-500);
  margin-top: 14px;
  line-height: 1.5;
}

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 10px; max-width: 42rem; margin: 0 auto; }

details.faq-item {
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 0 18px;
  background: var(--white);
}

details.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--primary);
  padding: 16px 0;
  list-style: none;
}
details.faq-item summary::-webkit-details-marker { display: none; }

details.faq-item p {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.6;
  padding-bottom: 16px;
}

/* Sections */
.section-alt { background: var(--gray-100); }

.two-col {
  display: grid;
  gap: 32px;
}

.preview-split {
  display: grid;
  gap: 20px;
}

.preview-item {
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 22px;
  background: var(--white);
}

.preview-item h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.preview-item p {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.6;
}

/* Final CTA */
.final-cta {
  background: var(--primary-dark);
  color: var(--white);
  text-align: center;
}

.final-cta h2 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 10px;
}

.final-cta p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
  max-width: 32rem;
  margin: 0 auto 24px;
  line-height: 1.6;
}

.final-cta .hero-actions { justify-content: center; }
.final-cta .btn-outline {
  border-color: rgba(255,255,255,0.45);
  color: var(--white);
}
.final-cta .btn-outline:hover {
  background: var(--white);
  color: var(--primary);
}

/* Text links inside dark CTA bands (if used alongside buttons) */
.final-cta .text-link,
.final-cta .hero-cta-link {
  margin-top: 16px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

.final-cta .text-link a,
.final-cta .hero-cta-link a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.final-cta .text-link a:hover,
.final-cta .text-link a:focus-visible,
.final-cta .hero-cta-link a:hover,
.final-cta .hero-cta-link a:focus-visible {
  color: var(--white);
}

.final-cta .text-link a:focus-visible,
.final-cta .hero-cta-link a:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Footer */
footer {
  background: var(--primary-dark);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-logo { width: 28px; height: 28px; }
.footer-wordmark { font-weight: 600; color: var(--white); font-size: 0.95rem; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.footer-links a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
}
.footer-links a:hover { color: var(--white); }
.footer-links a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.footer-copy {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
}

.accuracy-note {
  font-size: 0.78rem;
  color: var(--gray-500);
  line-height: 1.5;
  font-style: italic;
  margin-top: 12px;
}

@media (min-width: 768px) {
  .hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
  }
  .hero h1 { max-width: none; }
  section { padding: 72px 0; }
  .card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
  .card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .credibility-grid { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .two-col { grid-template-columns: 1fr 1fr; align-items: start; }
  .preview-split { grid-template-columns: 1fr 1fr; }
  .founder-inner {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    max-width: none;
  }
  .founder-intro--lead .founder-photo {
    width: 128px;
    height: 128px;
  }
  .founder-photo { width: 112px; height: 112px; flex-shrink: 0; }
  .credentials-block { grid-template-columns: auto 1fr; gap: 36px; }
  .credentials-cover img { max-width: 168px; }
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

@media (min-width: 768px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-menu-btn { display: none; }
  .vb-bottom-tabs { display: none !important; }
}

@media (min-width: 1024px) {
  .why-grid.four-col { grid-template-columns: repeat(4, 1fr); }
  .card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ==========================================================================
   SpeechGradebook product screenshots (see screenshot placement guide)
   Placeholders live in assets/screenshots/ and are replaced in-place by
   real, demo-data-only captures using the same filenames.
   ========================================================================== */

.card-grid > *,
.hero-inner > *,
.preview-split > *,
.two-col > * { min-width: 0; }

.screenshot-img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--gray-200);
  box-shadow: 0 10px 30px rgba(30, 58, 95, 0.10);
  background: var(--white);
}

.device-frame {
  max-width: 1200px;
  border-radius: 16px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  box-shadow: 0 18px 50px rgba(30, 58, 95, 0.16);
  overflow: hidden;
}
.device-frame .device-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  background: var(--gray-100);
  border-bottom: 1px solid var(--gray-200);
}
.device-frame .device-bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #cfd7e2;
}
.device-frame .screenshot-img {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.screenshot-figure { margin: 0; }
.screenshot-figure figcaption {
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--gray-500);
  font-style: italic;
  line-height: 1.5;
}

/* Small UI screenshot thumbnail inside a preview-item / product-card */
.card-thumb {
  margin: 0 0 16px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--gray-200);
  background: var(--gray-50);
}

.card-thumb--coaching {
  margin: 0;
  padding: 28px 24px 20px;
  background: linear-gradient(180deg, var(--accent-light) 0%, var(--white) 100%);
  text-align: center;
}

.card-thumb--coaching img {
  display: block;
  width: 148px;
  height: 148px;
  margin: 0 auto;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--white);
  box-shadow: 0 8px 24px rgba(30, 58, 95, 0.14);
}

.card-thumb--product {
  padding: 0;
  background: transparent;
  border: none;
}

.card-thumb .screenshot-img {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  height: auto;
  min-height: 200px;
  max-height: 240px;
  object-fit: contain;
  object-position: center;
}

.card-thumb--product .screenshot-img,
.card-thumb--product .infographic-img {
  min-height: 0;
  max-height: none;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--gray-200);
  box-shadow: 0 10px 28px rgba(30, 58, 95, 0.12);
}

.infographic-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.hero-visual .infographic-img {
  border: 1px solid var(--gray-200);
  box-shadow: 0 18px 50px rgba(30, 58, 95, 0.14);
}

.device-frame .infographic-img {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

@media (min-width: 768px) {
  .card-thumb--product .screenshot-img,
  .card-thumb--product .infographic-img {
    min-height: 0;
    max-height: none;
  }
}

/* Contact form */
.vb-contact-layout {
  display: grid;
  gap: 32px;
  max-width: 920px;
  margin: 0 auto;
}

@media (min-width: 800px) {
  .vb-contact-layout {
    grid-template-columns: 1.35fr 0.85fr;
    gap: 40px;
    align-items: start;
  }
}

.vb-contact-form {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 8px 24px rgba(30, 58, 95, 0.06);
}

@media (min-width: 768px) {
  .vb-contact-form { padding: 28px 32px; }
}

.vb-form-group {
  margin-bottom: 18px;
}

.vb-form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 6px;
}

.vb-form-group input,
.vb-form-group select,
.vb-form-group textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  font: inherit;
  font-size: 0.95rem;
  color: var(--gray-900);
  background: var(--white);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.vb-form-group textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.5;
}

.vb-form-group input:focus,
.vb-form-group select:focus,
.vb-form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(232, 168, 56, 0.22);
}

.vb-contact-submit {
  width: 100%;
  margin-top: 4px;
}

.vb-contact-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.vb-form-message {
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 18px;
  font-size: 0.9rem;
  line-height: 1.45;
}

.vb-form-message.success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.vb-form-message.error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.vb-contact-aside {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  padding: 22px 24px;
}

.vb-contact-aside h2,
.vb-contact-aside h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 8px;
}

.vb-contact-aside h3 {
  margin-top: 20px;
  font-size: 0.95rem;
}

.vb-contact-aside p {
  font-size: 0.92rem;
  color: var(--gray-600);
  line-height: 1.55;
  margin: 0;
}

.vb-contact-aside a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.vb-contact-aside a:hover { text-decoration: underline; }

/* SpeechGradebook product subnav (under ValidBound chrome) */
.sgb-product-bar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 56px;
  z-index: 90;
  overflow-x: hidden;
}

.sgb-product-bar-inner {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 12px 16px;
  height: 48px;
  padding: 0;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.sgb-product-brand {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: -0.01em;
  white-space: nowrap;
  flex-shrink: 0;
}

.sgb-product-brand:hover { color: var(--primary-dark); }

.sgb-product-tabs {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 2px;
  flex: 1 1 auto;
  min-width: 0;
  background: transparent;
  border: none;
  position: static;
  padding: 0;
  margin: 0;
}

.sgb-product-tabs a {
  padding: 6px 12px;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--gray-600);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.sgb-product-tabs a:hover {
  color: var(--primary);
  background: var(--gray-100);
}

.sgb-product-tabs a.active {
  color: var(--primary-dark);
  background: var(--accent-light);
  font-weight: 600;
}

.sgb-product-cta {
  display: inline-flex;
  padding: 7px 16px;
  font-size: 0.82rem;
  margin-left: auto;
  flex-shrink: 0;
}

@media (max-width: 767px) {
  .sgb-product-bar {
    top: 56px;
  }

  .sgb-product-bar-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    height: auto;
    padding: 8px 0;
    overflow: visible;
  }

  /* Top nav already shows SpeechGradebook — drop the redundant label on phones */
  .sgb-product-brand {
    display: none;
  }

  .sgb-product-tabs {
    display: flex;
    flex-wrap: wrap;
    flex: 1 1 100%;
    gap: 4px;
    min-width: 0;
    width: 100%;
  }

  .sgb-product-tabs a {
    padding: 6px 10px;
    font-size: 0.78rem;
  }

  .sgb-product-cta {
    flex: 1 1 100%;
    margin-left: 0;
    justify-content: center;
    padding: 8px 12px;
    font-size: 0.8125rem;
  }
}

.sgb-hero-grid {
  display: grid;
  gap: 28px;
  align-items: center;
}

@media (min-width: 900px) {
  .sgb-hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 40px;
  }
}

.sgb-eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 10px;
}

.feature-card,
.audience-card,
.value-card,
.faq-panel {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  padding: 20px;
}

.feature-card h3,
.feature-card h4,
.audience-card h4,
.value-card h3,
.faq-panel h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.feature-card p,
.audience-card p,
.value-card p {
  font-size: 0.92rem;
  color: var(--gray-600);
  line-height: 1.55;
}

.steps-list {
  display: grid;
  gap: 22px;
}

.step-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
}

.step-number {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.step-item h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}

.step-item p {
  font-size: 0.92rem;
  color: var(--gray-600);
  margin-bottom: 12px;
}

.step-shot {
  max-width: 640px;
}

.faq-grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 768px) {
  .faq-grid { grid-template-columns: 1fr 1fr; }
}

.faq-list {
  list-style: none;
  display: grid;
  gap: 8px;
}

.faq-list li {
  position: relative;
  padding-left: 1rem;
  font-size: 0.92rem;
  color: var(--gray-600);
  line-height: 1.5;
}

.faq-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent-dark);
}

.bullet-list {
  list-style: none;
  display: grid;
  gap: 12px;
}

.bullet-list li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.55;
}

.bullet-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent-dark);
}

.credentials-band {
  display: grid;
  gap: 24px;
  align-items: center;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  padding: 24px;
}

@media (min-width: 768px) {
  .credentials-band {
    grid-template-columns: 160px 1fr;
    gap: 32px;
    padding: 28px 32px;
  }
}

.credentials-cover img {
  display: block;
  width: 100%;
  max-width: 160px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(30, 58, 95, 0.16);
}

.credentials-stat {
  margin: 12px 0;
  font-size: 0.95rem;
  color: var(--gray-700);
}

.testimonial-quote {
  margin: 14px 0 0;
  padding: 14px 16px;
  border-left: 3px solid var(--accent);
  background: var(--white);
  font-size: 0.92rem;
  color: var(--gray-700);
  line-height: 1.55;
}

.testimonial-quote cite {
  display: block;
  margin-top: 8px;
  font-size: 0.8rem;
  font-style: normal;
  color: var(--gray-500);
}

.hero-cta-link {
  margin-top: 12px;
  font-size: 0.88rem;
  color: var(--gray-500);
}

.hero-cta-link a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.hero-cta-link a:hover { text-decoration: underline; }

.status-note {
  margin-top: 12px;
  font-size: 0.82rem;
  color: var(--gray-500);
  line-height: 1.5;
}

.screenshot-inline {
  max-width: 100%;
}
