/* SpeechGradebook marketing pages — shared with landing.html */
:root {
  --primary: #1e3a5f;
  --primary-dark: #142940;
  --accent: #e8a838;
  --accent-dark: #c98f20;
  --accent-light: #fdf3dc;
  --text: #1a1a1a;
  --text-secondary: #4a4a4a;
  --text-light: #6b6b6b;
  --bg: #fafbfc;
  --bg-alt: #f1f4f7;
  --card: #ffffff;
  --border: #d1d5db;
  --font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

body {
  font-family: var(--font-family);
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

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

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

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  height: 56px;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 21px;
  letter-spacing: -0.01em;
  color: #fff;
  flex-shrink: 0;
  white-space: nowrap;
}
.logo img {
  width: auto;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
}

.nav-links {
  display: none;
  list-style: none;
  gap: 4px;
  flex: 1;
  margin-left: 16px;
}
.nav-links a {
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  padding: 6px 12px;
  border-radius: 9999px;
}
.nav-links a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.nav-links a.active { color: #fff; background: rgba(255, 255, 255, 0.12); }

.nav-cta {
  background: var(--primary) !important;
  color: #fff !important;
}
.nav-cta:hover,
.nav-cta.active {
  background: var(--primary-dark) !important;
  color: #fff !important;
}

.nav-cta-short { display: none; }

@media (max-width: 960px) {
  .nav-cta-long { display: none; }
  .nav-cta-short { display: inline; }
}

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

.nav-login {
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  padding: 6px 12px;
  border-radius: 9999px;
}
.nav-login:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }

.audience-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}

.audience-card p:last-child { margin-bottom: 0; }

.card-grid.audience-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

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

.faq-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
}

.faq-panel h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}

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

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

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

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

.value-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 0;
}

/* Demo request page */
.demo-page .demo-hero {
  padding: 48px 0 32px;
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}

.demo-page .demo-hero .supporting-copy {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 42rem;
  line-height: 1.65;
  margin-bottom: 16px;
}

.demo-options-section {
  padding: 32px 0 8px;
}

.demo-options-grid {
  display: grid;
  gap: 20px;
}

.demo-option-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
}

.demo-option-card h2 {
  font-size: 1.35rem;
  margin-bottom: 10px;
}

.demo-option-card p {
  color: var(--text-secondary);
  margin-bottom: 18px;
  line-height: 1.55;
}

.demo-option-primary {
  border-color: rgba(30, 58, 95, 0.18);
  box-shadow: 0 8px 24px rgba(30, 58, 95, 0.06);
}

.demo-option-note {
  margin: 14px 0 0;
  font-size: 0.92rem;
  color: var(--text-light);
}

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

.demo-form-section {
  padding-top: 40px;
  padding-bottom: 40px;
}

.demo-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
  max-width: 720px;
}

.demo-form .form-row {
  display: grid;
  gap: 16px;
  margin-bottom: 20px;
}

.demo-form .form-group { margin-bottom: 20px; }

.demo-form label,
.demo-form .form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.demo-form .optional-tag {
  font-weight: 400;
  color: var(--text-light);
  font-size: 0.82rem;
}

.demo-form input[type="text"],
.demo-form input[type="email"],
.demo-form select,
.demo-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
}

.demo-form textarea {
  min-height: 110px;
  resize: vertical;
}

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

.checkbox-grid {
  display: grid;
  gap: 10px;
}

.checkbox-option {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.checkbox-option:has(input:checked) {
  border-color: var(--primary);
  background: #f0f4f8;
}

.checkbox-option input { margin-top: 3px; flex-shrink: 0; }

.form-message {
  display: none;
  padding: 14px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 0.92rem;
}

.form-message.success { background: #d1fae5; color: #065f46; border: 1px solid #059669; }
.form-message.error { background: #fee2e2; color: #991b1b; border: 1px solid #b91c1c; }

.demo-confirmation {
  display: none;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
  max-width: 720px;
}

.demo-confirmation h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}

.demo-confirmation p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.demo-footer-note {
  padding: 32px 0 56px;
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
  max-width: 42rem;
}

.demo-footer-note a {
  color: var(--primary);
  font-weight: 600;
}

@media (min-width: 640px) {
  .demo-form .form-row.two-col { grid-template-columns: 1fr 1fr; }
}

.mobile-menu-button {
  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: #fff;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  background: var(--primary-dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px 24px;
  z-index: 99;
  flex-direction: column;
  gap: 4px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  text-decoration: none;
  padding: 12px 4px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
}

/* Marketing site bottom tabs (≤1024px) — mirrors app shell thumb-zone navigation */
.marketing-bottom-tabs {
  display: none;
  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(--card);
  border-top: 1px solid var(--border);
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.06);
  justify-content: space-around;
  align-items: stretch;
}

.marketing-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(--text-light);
  font-size: 0.68rem;
  font-weight: 600;
  font-family: var(--font-family);
  text-decoration: none;
  cursor: pointer;
}

.marketing-tab-item i {
  width: 22px;
  height: 22px;
}

.marketing-tab-item:hover,
.marketing-tab-item:focus-visible {
  color: var(--primary);
  background: var(--bg-alt);
}

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

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

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

@media (max-width: 1024px) {
  body:has(.marketing-bottom-tabs) {
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0));
  }

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

  nav .mobile-menu-button {
    display: none !important;
  }

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

/* Buttons */
.button-primary, .button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 9999px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 150ms ease;
}
.button-primary { background: var(--primary); color: #fff; }
.button-primary:hover { background: var(--primary-dark); }

.button-primary:focus-visible,
.button-secondary:focus-visible,
.nav-login:focus-visible,
.nav-links a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.button-secondary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.button-secondary:hover { background: var(--primary); color: #fff; }

/* Sections */
section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); }

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

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

.section-title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-description {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 36rem;
  line-height: 1.65;
}

.status-note {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 16px;
  max-width: 36rem;
  line-height: 1.55;
}

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

/* Hero */
.hero {
  padding: 56px 0 64px;
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}

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

.hero-copy h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  max-width: 22ch;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  max-width: 18ch;
}

.hero-visual img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(30, 58, 95, 0.12);
}

.hero-visual .device-frame {
  width: 100%;
  max-width: 100%;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
  max-width: 36rem;
  line-height: 1.55;
}

.hero-description {
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 24px;
  max-width: 38rem;
  line-height: 1.65;
}

.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-cta-link {
  margin-top: 12px;
  font-size: 0.9rem;
}

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

.hero-cta-link a:hover { color: var(--primary-dark); }

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

/* Dark CTA band — amber links for contrast on navy background */
.cta-section .hero-cta-link {
  color: rgba(255, 255, 255, 0.8);
  margin: 16px auto 0;
  max-width: 32rem;
}

.cta-section .hero-cta-link a {
  color: var(--accent);
}

.cta-section .hero-cta-link a:hover,
.cta-section .hero-cta-link a:focus-visible {
  color: #fff;
}

.cta-section .hero-cta-link a:focus-visible {
  outline-color: #fff;
}

.company-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-light);
  color: var(--accent-dark);
  font-weight: 600;
  font-size: 0.82rem;
  padding: 6px 14px;
  border-radius: 9999px;
  text-decoration: none;
  margin-bottom: 20px;
}

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

.product-card, .feature-card, .why-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
}

.product-card h3, .feature-card h3, .why-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}

.product-card p, .feature-card p, .why-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.product-card .button-primary,
.product-card .button-secondary { margin-top: auto; }

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-light);
  color: var(--accent-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

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

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

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

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

.step-item p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.step-note {
  font-size: 0.85rem;
  color: var(--text-light);
  font-style: italic;
  margin-top: 8px;
}

/* Bullets */
.bullet-list { list-style: none; display: grid; gap: 10px; }
.bullet-list li {
  display: flex;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.bullet-list 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;
}

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

/* CTA */
.cta-section {
  background: var(--primary-dark);
  color: #fff;
  text-align: center;
  padding: 64px 24px;
  box-shadow: inset 0 -12px 32px rgba(0, 0, 0, 0.12);
}
.cta-section h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  margin-bottom: 12px;
}
.cta-section p {
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
  max-width: 32rem;
  margin: 0 auto 24px;
  line-height: 1.6;
}
.cta-section .hero-buttons { justify-content: center; }
.cta-section .button-secondary {
  border-color: rgba(255,255,255,0.45);
  color: #fff;
}
.cta-section .button-secondary:hover {
  background: #fff;
  color: var(--primary);
}

/* Teaching credentials */
.credentials-band {
  display: grid;
  gap: 24px;
  align-items: center;
  padding: 28px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.credentials-band--compact {
  margin-top: 28px;
  padding: 24px;
}

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

.credentials-band h2,
.credentials-band h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.credentials-band p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.credentials-stat {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-top: 12px;
  padding: 12px 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
}

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

.credentials-quotes {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.testimonial-quote {
  margin: 0;
  padding: 12px 14px;
  background: var(--card);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
  font-style: italic;
}

.testimonial-quote cite {
  display: block;
  margin-top: 6px;
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 600;
  color: var(--text-light);
}

.credentials-note {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 12px;
  line-height: 1.5;
}

@media (min-width: 768px) {
  .credentials-band { grid-template-columns: auto 1fr; gap: 28px; }
  .credentials-band .credentials-cover img { max-width: 132px; }
}

/* Footer */
footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.7);
  padding: 48px 24px 24px;
}

/* CTA band and footer share --primary-dark; darken footer and add a clear divider */
section.cta-section + footer {
  background: #0a121c;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  padding: 32px 24px 24px;
}

section.cta-section + footer .footer-content {
  margin-bottom: 20px;
}

section.cta-section + footer .footer-bottom {
  border-top-color: rgba(255, 255, 255, 0.14);
}

.footer-content {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  margin-bottom: 32px;
}

.footer-section h3 {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 12px;
}
.footer-section ul { list-style: none; }
.footer-section a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 0.82rem;
  line-height: 2;
}
.footer-section a:hover { color: #fff; }
.footer-section a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
}
.footer-bottom a { color: rgba(255,255,255,0.65); text-decoration: none; }
.footer-bottom a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

@media (min-width: 1025px) {
  .nav-links { display: flex; }
  .mobile-menu-button { display: none; }
  .marketing-bottom-tabs { display: none !important; }
  .product-card { display: flex; flex-direction: column; }
}

@media (min-width: 768px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 40px; }
  .faq-grid { grid-template-columns: 1fr 1fr; }
  .card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
  .card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
  .two-col { grid-template-columns: 1fr 1fr; align-items: start; }
  .steps-list.cols-2 { grid-template-columns: 1fr 1fr; }
}

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

/* Prevent images from forcing grid/flex tracks wider than their container
   (grid/flex items default to min-width:auto = content size). */
.card-grid > *,
.hero-grid > *,
.two-col > *,
.step-strip > figure { min-width: 0; }

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

/* Browser/laptop-style frame for hero-level screenshots */
.device-frame {
  max-width: 1200px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--border);
  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(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.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;
}

/* Hero media block for single-column hero pages */
.hero-media {
  margin-top: 32px;
  display: flex;
  justify-content: center;
}
.hero-media .device-frame {
  width: fit-content;
  max-width: min(920px, 100%);
  margin: 0 auto;
}

/* Figure + caption wrapper */
.screenshot-figure { margin: 0; }
.screenshot-figure figcaption {
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--text-light);
  font-style: italic;
  line-height: 1.5;
}
/* Inline medium image inside a 2-column text+image section */
.screenshot-inline { max-width: 100%; }
.two-col .screenshot-figure .screenshot-inline {
  max-height: 360px;
  width: auto;
  max-width: 100%;
  margin: 0 auto;
  object-fit: contain;
}

/* Card thumbnail inside product cards */
.card-thumb {
  margin: 0 0 18px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.card-thumb .screenshot-img {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  height: 190px;
  object-fit: cover;
  object-position: top center;
}

/* Step-strip: a row of cropped step screenshots */
.step-strip {
  display: grid;
  gap: 16px;
  margin-top: 28px;
  grid-template-columns: repeat(2, 1fr);
}
.step-strip figure { margin: 0; }
.step-strip figcaption {
  margin-top: 8px;
  font-size: 0.78rem;
  color: var(--text-light);
  text-align: center;
  line-height: 1.4;
}
.step-strip .step-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

/* Screenshot embedded within a numbered .step-item */
.step-shot {
  margin-top: 12px;
  max-width: 460px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.step-shot .screenshot-img {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

@media (min-width: 768px) {
  .step-strip { grid-template-columns: repeat(4, 1fr); }
}
