.hero-card img {
  width: 125%;
  max-width: none;
  justify-self: center;
  transform: translateX(-11%);
}

@media (max-width: 640px) {
  .hero-card img {
    width: 116%;
    transform: translateX(-10%);
  }
}

.screen-label,
.note-bottom,
.panel-label,
.scenario .tag,
.license-strip,
.challenge-card.yellow,
.check-list li::before {
  color: #0b0b0b;
}

.comparison-copy h2 span {
  color: #0b0b0b;
}

.contact-logo-field {
  z-index: 2;
  width: min(100%, 550px);
  min-height: 500px;
  display: grid;
  place-items: center;
  justify-self: end;
  padding: clamp(28px, 4vw, 56px);
  background: var(--lilac);
  border: 2px solid var(--ink);
  border-radius: 48% 18% 42% 22%;
  transform: rotate(4deg);
}

.contact-logo-field .contact-logo {
  width: min(100%, 420px);
  justify-self: center;
  transform: rotate(-4deg);
}

@media (max-width: 980px) {
  .contact-logo-field {
    width: min(100%, 520px);
    min-height: 420px;
    justify-self: center;
  }
}

@media (max-width: 640px) {
  .contact-logo-field {
    min-height: 320px;
    border-radius: 42% 16% 38% 20%;
  }
}

/* Mobile layout pass: keep every section readable and touch-friendly on phones. */
@media (max-width: 640px) {
  .site-header {
    min-height: 68px;
    padding: 12px 16px;
    gap: 12px;
  }

  .brand { width: 142px; }
  .menu-button { padding: 10px 15px; }
  .site-header nav { top: 64px; left: 12px; right: 12px; gap: 6px; }
  .site-header nav a { padding: 12px 10px; font-size: .95rem; }

  .hero { padding-top: 46px; padding-bottom: 82px; }
  .eyebrow, .kicker { font-size: .68rem; letter-spacing: .12em; }
  .hero-lead { margin: 22px 0; font-size: .98rem; line-height: 1.5; }
  .hero-actions, .contact-actions { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 22px; }
  .button { width: 100%; min-height: 54px; padding-inline: 16px; text-align: center; }
  .hero-proof { margin-top: 28px; }
  .hero-proof div { grid-template-columns: 105px 1fr; }
  .hero-proof strong { font-size: 1.35rem; }
  .hero-proof span { font-size: .75rem; }
  .hero-visual { min-height: 305px; margin-top: 18px; }
  .hero-card { width: 84%; border-radius: 38% 38% 12% 12%; }
  .screen-label { left: 16px; top: 16px; padding: 6px 9px; font-size: .75rem; }
  .visual-note { font-size: .78rem; box-shadow: 4px 4px 0 var(--ink); }
  .note-top { right: 0; top: 8px; padding: 8px 10px; }
  .note-bottom { left: 0; bottom: 8px; padding: 9px 11px; }
  .note-bottom strong { font-size: 1.1rem; }
  .dots { width: 70px; height: 56px; right: -7px; background-size: 13px 13px; }
  .hero-rail { font-size: .72rem; letter-spacing: .13em; padding: 10px 0; }

  .section-pad, .solution-band, .benefits, .comparison, .license-strip, .contact { padding-top: 64px; padding-bottom: 64px; }
  .section-heading { gap: 12px; margin-bottom: 30px; }
  .section-heading>p:last-child, .benefit-intro p:last-child { font-size: .96rem; line-height: 1.5; }
  .challenge-card { min-height: 230px; padding: 24px; }
  .challenge-card h3, .scenario h3 { font-size: 1.8rem; }
  .challenge-card p, .scenario p { font-size: .95rem; line-height: 1.5; }
  .solution-flow { gap: 10px; }
  .flow-item { min-height: 0; padding: 22px; }
  .flow-item strong { margin: 18px 0 8px; font-size: 1.2rem; }
  .flow-arrow { font-size: 1.5rem; }
  .teacher-message { margin-top: 42px; padding: 18px; gap: 22px; }
  .teacher-message h3 { font-size: 2rem; }
  .teacher-image { min-height: 210px; }

  .model-tabs { margin-inline: -2px; padding-bottom: 8px; }
  .model-tabs button { padding: 11px 15px; font-size: .86rem; }
  .model-panel { padding: 22px; gap: 26px; }
  .model-main h3 { font-size: 2.15rem; }
  .price { margin-top: 24px; font-size: 2.25rem; }
  .price span { display: block; margin-top: 2px; font-size: .85rem; }
  .check-list { gap: 9px; }
  .check-list li { padding: 12px 13px; font-size: .9rem; }
  .benefit-card { min-height: 0; padding: 22px; border-radius: 22px; }
  .benefit-card h3 { font-size: 1.65rem; }
  .scenario { min-height: 300px; padding: 24px; }
  .scenario.featured { box-shadow: 7px 7px 0 #000; }
  .comparison-copy img { max-width: 78%; }
  .compare-table { border-radius: 18px; }
  .table-row>* { padding: 14px; font-size: .9rem; }
  .license-links a { padding: 14px 15px; font-size: .9rem; }
  .steps li { grid-template-columns: 48px 1fr; gap: 14px; padding: 18px 0; }
  .steps span { width: 46px; height: 46px; font-size: 1.1rem; }
  .steps strong { font-size: 1.25rem; }
  .steps p { font-size: .9rem; line-height: 1.45; }
  .contact { min-height: 0; }
  .contact h2 { font-size: clamp(2.6rem, 13vw, 4rem); }
  .contact-content>p:not(.kicker) { font-size: 1rem; }
  .contact-logo-field { width: 100%; min-height: 270px; padding: 24px; }
  footer { gap: 20px; padding-top: 26px; padding-bottom: 26px; }
  footer p, footer>div { font-size: .78rem; }
}

@media (max-width: 380px) {
  .brand { width: 128px; }
  .hero h1 { font-size: 2.65rem; }
  .hero-proof div { grid-template-columns: 92px 1fr; }
  .hero-proof strong { font-size: 1.2rem; }
  .model-tabs button { padding-inline: 12px; }
  .model-main h3 { font-size: 1.9rem; }
}

/* Final overflow fixes for narrow phone screens. */
@media (max-width: 640px) {
  .hero-copy,
  .hero-visual,
  .section-heading,
  .model-panel,
  .contact-content,
  .contact-logo-field { min-width: 0; max-width: 100%; }

  h1, h2, h3, p, .button, .panel-label, .visual-note,
  .section-heading>p:last-child, .price-note, .check-list li {
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .hero h1 {
    width: 100%;
    max-width: 100%;
    font-size: clamp(2.35rem, 12.5vw, 4rem);
    line-height: .98;
  }

  .hero-lead { width: 100%; max-width: 100%; }
  .hero-visual { overflow: hidden; }
  .hero-card { max-width: 100%; }
  .note-top { max-width: 74%; }
  .note-bottom { max-width: 67%; }

  .model-tabs {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    padding-right: 4px;
  }

  .model-tabs button { flex: 0 0 auto; }
  .model-panel { overflow: hidden; }
  .panel-label { max-width: 100%; }
  .check-list li { display: flex; align-items: flex-start; gap: 8px; }
  .check-list li::before { flex: 0 0 24px; margin-right: 0; }

  .contact h2 { max-width: 100%; }
  .contact-logo-field { overflow: hidden; }

  .hero h1 {
    font-size: clamp(2rem, 10vw, 3.2rem);
    letter-spacing: -.055em;
  }

  .hero h1 .headline-word {
    white-space: nowrap;
  }

  .model-tabs {
    display: grid;
    grid-template-columns: 1fr;
    overflow: visible;
    gap: 10px;
  }

  .model-tabs button {
    width: 100%;
    white-space: normal;
    line-height: 1.25;
    min-height: 52px;
  }
}
