/* ══════════════════════════════════════════════════════════════════════
   IT PROJECT CANVAS – Design System & Shared Styles
   ══════════════════════════════════════════════════════════════════════ */

:root {
  --ink:       #0D1B2A;
  --navy:      #1B3A6B;
  --blue:      #2E5FA3;
  --sky:       #D6E4F7;
  --orange:    #E8690E;
  --ember:     #FDECD9;
  --slate:     #4A5568;
  --fog:       #F4F6F9;
  --white:     #FFFFFF;
  --grid-line: rgba(27,58,107,0.08);
  --font-head: 'Exo 2', sans-serif;
  --font-body: 'IBM Plex Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
}
a { color: inherit; }
img { max-width: 100%; display: block; }

/* ── NAV ──────────────────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 3rem; height: 68px;
  background: rgba(13,27,42,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-logo {
  font-family: var(--font-head);
  font-size: 1.05rem; font-weight: 700; color: var(--white);
  letter-spacing: -0.01em;
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.nav-logo-mark {
  width: 32px; height: 32px; background: var(--orange);
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr;
  gap: 3px; padding: 5px; border-radius: 6px;
}
.nav-logo-mark span { background: rgba(255,255,255,0.9); border-radius: 2px; }
.nav-logo-mark span:nth-child(1) { background: rgba(255,255,255,0.5); }
.nav-links {
  display: flex; align-items: center; gap: 2.5rem; list-style: none;
}
.nav-links a {
  font-size: 0.875rem; font-weight: 500;
  color: rgba(255,255,255,0.72);
  text-decoration: none; letter-spacing: 0.01em;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }
.nav-links a.active { color: var(--white); }
.nav-cta {
  background: var(--orange); color: var(--white) !important;
  padding: 0.55rem 1.2rem; border-radius: 6px;
  font-weight: 600 !important;
  transition: background 0.2s, transform 0.15s !important;
}

/* ── MOBILE HAMBURGER ────────────────────────────────────────────── */
.nav-hamburger {
  display: none; cursor: pointer; background: none; border: none;
  width: 32px; height: 32px; position: relative; padding: 0;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px; background: var(--white);
  border-radius: 2px; position: absolute; left: 5px;
  transition: transform 0.3s, opacity 0.2s;
}
.nav-hamburger span:nth-child(1) { top: 9px; }
.nav-hamburger span:nth-child(2) { top: 15px; }
.nav-hamburger span:nth-child(3) { top: 21px; }
.nav-hamburger.active span:nth-child(1) { transform: rotate(45deg); top: 15px; }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { transform: rotate(-45deg); top: 15px; }

.nav-mobile-menu {
  display: none; position: fixed; top: 68px; left: 0; right: 0;
  background: rgba(13,27,42,0.98); backdrop-filter: blur(12px);
  padding: 1.5rem 1.25rem 2rem; z-index: 99;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-direction: column; gap: 0;
}
.nav-mobile-menu a {
  display: block; padding: 0.85rem 0;
  font-size: 1rem; font-weight: 500; color: rgba(255,255,255,0.72);
  text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-mobile-menu a:last-child { border-bottom: none; }
.nav-mobile-menu a:hover, .nav-mobile-menu a.active { color: var(--white); }
.nav-mobile-menu .nav-cta {
  display: inline-block; margin-top: 1rem; text-align: center; width: 100%;
}
.nav-cta:hover { background: #c75808 !important; transform: translateY(-1px); }

/* ── SHARED SECTION STYLES ────────────────────────────────────────── */
.section { padding: 100px 3rem; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem; font-weight: 500; color: var(--orange);
  letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 1rem;
  display: flex; align-items: center; gap: 0.6rem;
}
.section-eyebrow::before {
  content: ''; display: block;
  width: 24px; height: 2px; background: var(--orange);
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 800;
  color: var(--navy); line-height: 1.12;
  letter-spacing: -0.03em; margin-bottom: 1.25rem;
}
.section-title--white { color: var(--white); }
.section-sub {
  font-size: 1.05rem; font-weight: 400; color: var(--slate);
  line-height: 1.7; max-width: 580px; margin-bottom: 3rem;
}
.section-sub--white { color: rgba(255,255,255,0.62); }

/* ── BUTTONS ──────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--orange); color: var(--white);
  font-family: var(--font-body); font-weight: 600; font-size: 0.95rem;
  padding: 0.9rem 1.8rem; border-radius: 8px; border: none; cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(232,105,14,0.35);
}
.btn-primary:hover {
  background: #c75808; transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(232,105,14,0.45);
}
.btn-ghost {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: transparent; color: rgba(255,255,255,0.75);
  font-family: var(--font-body); font-weight: 500; font-size: 0.95rem;
  padding: 0.9rem 1.8rem; border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.18);
  cursor: pointer; text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.07); color: var(--white);
  border-color: rgba(255,255,255,0.35);
}
.btn-navy {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--navy); color: var(--white);
  font-family: var(--font-body); font-weight: 600; font-size: 0.95rem;
  padding: 0.9rem 1.8rem; border-radius: 8px; border: none;
  cursor: pointer; text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  box-shadow: 0 4px 16px rgba(27,58,107,0.25);
}
.btn-navy:hover { background: var(--blue); transform: translateY(-2px); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--white); color: var(--navy);
  font-family: var(--font-body); font-weight: 600; font-size: 0.95rem;
  padding: 0.9rem 1.8rem; border-radius: 8px;
  border: 1.5px solid rgba(27,58,107,0.2);
  cursor: pointer; text-decoration: none; transition: all 0.2s;
}
.btn-outline:hover { background: var(--fog); border-color: var(--navy); }

/* ── CARDS ────────────────────────────────────────────────────────── */
.card {
  background: var(--white); border-radius: 12px;
  padding: 2rem 1.75rem;
  border: 1px solid rgba(27,58,107,0.1);
  position: relative; overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(27,58,107,0.12);
}
.card--dark {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.1);
}
.card--dark:hover { box-shadow: 0 16px 40px rgba(0,0,0,0.3); }

/* ── PAGE HERO (inner pages) ──────────────────────────────────────── */
.page-hero {
  background: var(--ink); padding: 160px 3rem 80px;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px; opacity: 0.6;
}
.page-hero::after {
  content: ''; position: absolute;
  top: -30%; right: -15%; width: 50vw; height: 50vw;
  background: radial-gradient(ellipse at center, rgba(46,95,163,0.25) 0%, transparent 65%);
  pointer-events: none;
}
.page-hero-inner {
  position: relative; z-index: 2;
  max-width: 1200px; margin: 0 auto;
}
.page-hero .section-eyebrow { margin-bottom: 1.25rem; }
.page-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 800;
  color: var(--white); line-height: 1.1;
  letter-spacing: -0.03em; margin-bottom: 1.5rem;
}
.page-hero h1 em { font-style: normal; color: var(--orange); }
.page-hero p {
  font-size: 1.1rem; color: rgba(255,255,255,0.6);
  line-height: 1.7; max-width: 640px;
}

/* ── GRID BACKGROUNDS ─────────────────────────────────────────────── */
.bg-fog { background: var(--fog); }
.bg-white { background: var(--white); }
.bg-ink { background: var(--ink); }
.bg-navy-gradient {
  background: linear-gradient(135deg, var(--navy) 0%, #0f2447 100%);
  position: relative; overflow: hidden;
}
.bg-navy-gradient::before {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ── FAQ ACCORDION ────────────────────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: 1px; }
.faq-item {
  border-bottom: 1px solid rgba(27,58,107,0.1);
  padding: 1.25rem 0;
}
.faq-question {
  font-family: var(--font-head); font-size: 1rem; font-weight: 700;
  color: var(--navy); cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem;
}
.faq-question::after {
  content: '+'; font-size: 1.4rem; font-weight: 300;
  color: var(--orange); transition: transform 0.3s;
  min-width: 20px; text-align: center;
}
.faq-item.open .faq-question::after {
  content: '−';
}
.faq-answer {
  font-size: 0.9rem; color: var(--slate); line-height: 1.7;
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding-top: 0;
}
.faq-item.open .faq-answer {
  max-height: 400px; padding-top: 1rem;
}

/* ── COMPARISON TABLE ─────────────────────────────────────────────── */
.compare-table {
  width: 100%; border-collapse: collapse; margin-top: 2rem;
}
.compare-table th, .compare-table td {
  padding: 1rem 1.25rem; text-align: left;
  border-bottom: 1px solid rgba(27,58,107,0.1);
  font-size: 0.9rem;
}
.compare-table th {
  font-family: var(--font-head); font-weight: 700;
  color: var(--navy); font-size: 0.85rem;
  background: var(--fog);
}
.compare-table th:first-child { border-radius: 8px 0 0 0; }
.compare-table th:last-child { border-radius: 0 8px 0 0; }
.compare-table td { color: var(--slate); }
.compare-table td:first-child { font-weight: 600; color: var(--navy); }
.compare-highlight {
  background: rgba(232,105,14,0.06);
  font-weight: 500; color: var(--ink) !important;
}

/* ── PRICING / WORKSHOP CARDS ─────────────────────────────────────── */
.pricing-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem; margin-top: 3rem;
}
.pricing-card {
  background: var(--white); border-radius: 16px;
  padding: 2.5rem; border: 1px solid rgba(27,58,107,0.1);
  display: flex; flex-direction: column;
  transition: transform 0.25s, box-shadow 0.25s;
}
.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(27,58,107,0.12);
}
.pricing-card.featured {
  border-color: var(--orange);
  box-shadow: 0 8px 32px rgba(232,105,14,0.15);
}
.pricing-tag {
  font-family: var(--font-mono); font-size: 0.7rem; font-weight: 500;
  color: var(--orange); letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.pricing-title {
  font-family: var(--font-head); font-size: 1.4rem; font-weight: 800;
  color: var(--navy); margin-bottom: 0.5rem;
}
.pricing-price {
  font-family: var(--font-head); font-size: 2.2rem; font-weight: 800;
  color: var(--ink); margin-bottom: 1rem;
}
.pricing-price span { font-size: 0.9rem; font-weight: 400; color: var(--slate); }
.pricing-features {
  list-style: none; display: flex; flex-direction: column;
  gap: 10px; margin: 1.5rem 0; flex: 1;
}
.pricing-features li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.9rem; color: var(--slate); line-height: 1.5;
}
.pricing-features li::before {
  content: '→'; color: var(--orange); font-weight: 700;
  min-width: 16px; margin-top: 1px;
}

/* ── BLOG CARDS ───────────────────────────────────────────────────── */
.blog-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem; margin-top: 3rem;
}
.blog-card {
  background: var(--white); border-radius: 12px;
  border: 1px solid rgba(27,58,107,0.1);
  overflow: hidden; transition: transform 0.25s, box-shadow 0.25s;
  text-decoration: none; display: flex; flex-direction: column;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(27,58,107,0.12);
}
.blog-card-img {
  height: 180px; background: var(--navy);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.blog-card-img::before {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
}
.blog-card-img .blog-icon {
  position: relative; z-index: 2;
  font-size: 2.5rem;
}
.blog-card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.blog-card-cat {
  font-family: var(--font-mono); font-size: 0.68rem; font-weight: 500;
  color: var(--orange); letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.blog-card-title {
  font-family: var(--font-head); font-size: 1.1rem; font-weight: 700;
  color: var(--navy); line-height: 1.25; margin-bottom: 0.5rem;
}
.blog-card-excerpt {
  font-size: 0.875rem; color: var(--slate); line-height: 1.6;
  flex: 1; margin-bottom: 1rem;
}
.blog-card-meta {
  font-size: 0.78rem; color: rgba(74,85,104,0.6);
  display: flex; gap: 1rem;
}

/* ── RESOURCE DOWNLOAD CARDS ──────────────────────────────────────── */
.resource-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem; margin-top: 3rem;
}
.resource-card {
  background: var(--white); border-radius: 12px;
  padding: 2rem; border: 1px solid rgba(27,58,107,0.1);
  display: flex; flex-direction: column;
  transition: transform 0.25s, box-shadow 0.25s;
}
.resource-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(27,58,107,0.1);
}
.resource-icon {
  width: 48px; height: 48px; border-radius: 10px;
  background: var(--sky); display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 1rem;
}
.resource-icon--orange { background: var(--ember); }
.resource-title {
  font-family: var(--font-head); font-size: 1.05rem; font-weight: 700;
  color: var(--navy); margin-bottom: 0.4rem;
}
.resource-desc {
  font-size: 0.875rem; color: var(--slate); line-height: 1.6;
  flex: 1; margin-bottom: 1rem;
}
.resource-badge {
  font-family: var(--font-mono); font-size: 0.68rem; font-weight: 500;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 4px;
  color: var(--blue); background: var(--sky);
}

/* ── LEAD FORM ────────────────────────────────────────────────────── */
.lead-form {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px; padding: 2.5rem;
}
.lead-form-title {
  font-family: var(--font-head); font-size: 1.3rem; font-weight: 700;
  color: var(--white); margin-bottom: 0.5rem;
}
.lead-form-sub {
  font-size: 0.85rem; color: rgba(255,255,255,0.5);
  margin-bottom: 1.75rem; line-height: 1.6;
}
.form-field { margin-bottom: 1rem; }
.form-label {
  display: block; font-size: 0.8rem; font-weight: 500;
  color: rgba(255,255,255,0.6); margin-bottom: 6px;
}
.form-input {
  width: 100%; background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px; padding: 0.75rem 1rem;
  color: var(--white); font-family: var(--font-body); font-size: 0.95rem;
  outline: none; transition: border-color 0.2s, background 0.2s;
}
.form-input::placeholder { color: rgba(255,255,255,0.3); }
.form-input:focus { border-color: var(--orange); background: rgba(255,255,255,0.1); }
.form-disclaimer {
  font-size: 0.72rem; color: rgba(255,255,255,0.3);
  text-align: center; margin-top: 0.75rem; line-height: 1.5;
}

/* ── TESTIMONIALS ─────────────────────────────────────────────────── */
.testimonials-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem; margin-top: 3rem;
}
.testimonial-card {
  background: var(--white); border-radius: 12px;
  padding: 2rem; border: 1px solid rgba(27,58,107,0.08);
  display: flex; flex-direction: column;
  transition: transform 0.25s, box-shadow 0.25s;
}
.testimonial-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(27,58,107,0.1);
}
.testimonial-quote {
  font-size: 0.95rem; color: var(--ink); line-height: 1.7;
  flex: 1; margin-bottom: 1.5rem;
}
.testimonial-quote::before {
  content: '\201C'; font-family: var(--font-head);
  font-size: 2.5rem; font-weight: 800; color: var(--orange);
  line-height: 0.5; display: block; margin-bottom: 0.5rem;
}
.testimonial-author {
  display: flex; align-items: center; gap: 12px;
  padding-top: 1rem; border-top: 1px solid var(--fog);
}
.author-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--navy);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-size: 1rem; font-weight: 700;
  color: var(--white);
}
.author-name { font-weight: 600; font-size: 0.875rem; color: var(--navy); }
.author-role { font-size: 0.78rem; color: var(--slate); margin-top: 2px; }

/* ── FOOTER ───────────────────────────────────────────────────────── */
footer {
  background: var(--ink); color: rgba(255,255,255,0.5); padding: 3rem;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem;
}
.footer-brand .nav-logo { margin-bottom: 1rem; }
.footer-desc { font-size: 0.85rem; line-height: 1.7; color: rgba(255,255,255,0.4); }
.footer-col h4 {
  font-family: var(--font-head); font-size: 0.85rem; font-weight: 700;
  color: rgba(255,255,255,0.75); margin-bottom: 1rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col ul a {
  font-size: 0.82rem; color: rgba(255,255,255,0.4);
  text-decoration: none; transition: color 0.2s;
}
.footer-col ul a:hover { color: rgba(255,255,255,0.8); }
.footer-bottom {
  max-width: 1200px; margin: 2rem auto 0; padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.07);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.78rem; color: rgba(255,255,255,0.25);
}

/* ── ANIMATIONS ───────────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) both; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.22s; }
.delay-3 { animation-delay: 0.35s; }
.delay-4 { animation-delay: 0.48s; }

/* ── AUTHOR SECTION ───────────────────────────────────────────────── */
.author-hero-grid {
  display: grid; grid-template-columns: 1fr 2fr; gap: 4rem;
  align-items: start;
}
.author-photo {
  aspect-ratio: 1; background: var(--navy); border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-size: 4rem; font-weight: 800;
  color: var(--white); position: relative; overflow: hidden;
}
.author-photo::before {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 24px 24px;
}
.credential-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem; margin-top: 3rem;
}
.credential-card {
  text-align: center; padding: 1.5rem;
  background: var(--fog); border-radius: 12px;
}
.credential-num {
  font-family: var(--font-head); font-size: 2.2rem; font-weight: 800;
  color: var(--orange);
}
.credential-label {
  font-size: 0.85rem; color: var(--slate); margin-top: 4px;
}

/* ── RESPONSIVE ───────────────────────────────────────────────────── */
/* ================================================================
   MOBILE RESPONSIVE – 768px and below
   ================================================================ */
@media (max-width: 768px) {
  /* --- NAV --- */
  nav { padding: 0 1.25rem; }
  .nav-links { display: none; }
  .nav-logo { font-size: 1rem; }
  .nav-hamburger { display: block; }
  .nav-mobile-menu.active { display: flex; }

  /* --- GLOBAL TYPOGRAPHY --- */
  .page-hero { padding: 100px 1.25rem 50px; }
  .page-hero h1 { font-size: clamp(1.5rem, 6.5vw, 2.2rem); word-break: break-word; overflow-wrap: break-word; hyphens: auto; line-height: 1.15; }
  .section { padding: 50px 1.25rem; }
  .section-title { font-size: clamp(1.4rem, 5.5vw, 2rem); word-break: break-word; overflow-wrap: break-word; hyphens: auto; }
  .section-sub { font-size: 0.95rem; max-width: 100%; }
  .section-eyebrow { font-size: 0.7rem; }

  /* --- LAYOUT OVERRIDES (inline grids → single column) --- */
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: 280px 1fr"],
  [style*="grid-template-columns:280px 1fr"],
  [style*="grid-template-columns: 300px"],
  [style*="grid-template-columns:300px"] {
    grid-template-columns: 1fr !important;
  }
  /* 4rem gaps → 2rem on mobile */
  [style*="gap:4rem"], [style*="gap: 4rem"],
  [style*="gap:3rem"], [style*="gap: 3rem"] {
    gap: 2rem !important;
  }
  /* 5-column stats → 2 columns + wrap */
  [style*="grid-template-columns: repeat(5,"],
  [style*="grid-template-columns:repeat(5,"] {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem !important;
  }
  /* auto 1fr grid cards (der-canvas.html field details) */
  [style*="grid-template-columns:auto 1fr"],
  [style*="grid-template-columns: auto 1fr"] {
    grid-template-columns: 1fr !important;
    padding: 1.5rem !important;
  }
  /* Large emoji icons in cards */
  [style*="font-size:2.5rem"] {
    font-size: 1.8rem !important;
  }

  /* --- BUTTONS --- */
  .btn-primary, .btn-ghost, .btn-outline { font-size: 0.9rem; padding: 12px 20px; width: 100%; text-align: center; justify-content: center; box-sizing: border-box; }

  /* --- FOOTER --- */
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }

  /* --- GRIDS (class-based) --- */
  .testimonials-grid { grid-template-columns: 1fr; }
  .author-hero-grid { grid-template-columns: 1fr; text-align: center; }
  .credential-grid { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .problem-grid { grid-template-columns: 1fr; }
  .how-grid { grid-template-columns: 1fr; }

  /* --- FORMS --- */
  .lead-form { padding: 1.5rem; }
  .form-input { font-size: 16px; } /* prevent iOS zoom on input focus */

  /* --- CARDS & CONTENT --- */
  .problem-card { padding: 1.5rem; }
  .testimonial-card { padding: 1.5rem; }
  .pricing-card { padding: 1.5rem; }

  /* --- IMAGES & MEDIA --- */
  body { overflow-x: hidden; }
  img, svg, video, iframe { max-width: 100%; height: auto; }

  /* --- TABLES (legal pages) --- */
  table { font-size: 0.85rem; }
  td, th { padding: 8px 6px; }
}

/* ================================================================
   SMALL MOBILE – 480px and below
   ================================================================ */
@media (max-width: 480px) {
  .page-hero h1 { font-size: clamp(1.3rem, 7vw, 1.8rem); }
  .section-title { font-size: clamp(1.2rem, 6vw, 1.6rem); }
  .credential-grid { grid-template-columns: 1fr; }
  [style*="grid-template-columns:repeat(5,"],
  [style*="grid-template-columns: repeat(5,"] {
    grid-template-columns: 1fr 1fr !important;
  }
  .hero-stat-row { gap: 0.75rem; }
  .stat-num { font-size: 1.5rem; }
}
