html {
  overflow-x: clip;
}

body {
  min-width: 320px;
  overflow-x: clip;
}

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

main,
section,
article,
aside,
header,
footer,
nav,
div,
li,
.card,
.ml-card,
[class*="grid"],
[class*="container"],
[class*="shell"] {
  min-width: 0;
}

img,
svg,
video,
canvas,
iframe {
  max-width: 100%;
}

img,
video,
canvas {
  height: auto;
}

p,
li,
h1,
h2,
h3,
h4,
h5,
h6,
a,
button,
input,
textarea,
select,
summary {
  overflow-wrap: anywhere;
}

button,
input,
select,
textarea {
  max-width: 100%;
}

a[class*="btn"],
button[class*="btn"],
.kf-button,
.kf-btn,
.btn,
.btn-landing,
.ml-btn {
  min-width: 0;
  white-space: normal;
  text-wrap: balance;
}

[class*="grid"] {
  max-width: 100%;
}

@media (max-width: 640px) {
  body {
    text-size-adjust: 100%;
  }

  .page-content {
    padding-top: var(--mobile-section-gap, var(--space-lg));
    padding-bottom: calc(var(--mobile-section-gap, var(--space-lg)) * 2);
  }

  .page-content,
  .container,
  .landing-container,
  .kf-shell,
  .kf-container {
    padding-inline: max(var(--mobile-container-padding, 1rem), env(safe-area-inset-left));
  }

  .card,
  .ml-card,
  .tool,
  .surface-card,
  .benefit-card,
  .value-item,
  .orc-card,
  .ml-flow-box,
  .price-section {
    margin-bottom: var(--mobile-card-gap, var(--space-sm));
    padding: var(--mobile-card-padding, var(--space-md));
  }

  .ml-grid,
  .ml-grid-2,
  .ml-grid-auto,
  .value-grid,
  .tools-grid,
  .benefits-grid,
  .orc-list,
  .kf-problem-list,
  .kf-benefits,
  .kf-included,
  .kf-flow,
  .kf-hero-grid {
    grid-template-columns: 1fr;
    gap: var(--mobile-card-gap, var(--space-md));
  }

  .hero-actions,
  .cta-group,
  .cta-center,
  .ml-tool-actions {
    align-items: stretch;
    gap: var(--mobile-card-gap, var(--space-sm));
    margin-top: var(--mobile-stack-gap, var(--space-sm));
  }

  .hero-actions > *,
  .cta-group > *,
  .cta-center > *,
  .ml-tool-actions > * {
    width: 100%;
  }
}
