/* WhisperMe Mobile Baseline v1
   Purpose: shared launch-safe mobile rules.
   Usage: include after page styles.
*/

:root {
  --wm-content-max: 1100px;
  --wm-gutter: clamp(12px, 4vw, 24px);
  --wm-touch-target: 44px;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

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

.wm-shell {
  width: min(var(--wm-content-max), 100%);
  margin-inline: auto;
  padding-inline: var(--wm-gutter);
}

.wm-fluid-title {
  font-size: clamp(1.75rem, 8.2vw, 2.85rem);
  line-height: 1.22;
  letter-spacing: 0;
  word-break: normal;
  overflow-wrap: break-word;
  writing-mode: horizontal-tb;
}

.wm-fluid-copy {
  font-size: clamp(0.92rem, 2.9vw, 1rem);
  line-height: 1.55;
  word-break: normal;
  overflow-wrap: break-word;
  writing-mode: horizontal-tb;
}

.wm-touch {
  min-height: var(--wm-touch-target);
  min-width: var(--wm-touch-target);
}

.wm-grid-safe {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
}

.wm-grid-safe > * {
  min-width: 0;
}

@media (max-width: 820px) {
  .wm-hide-fx-mobile {
    display: none !important;
  }

  .wm-stack-mobile {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .wm-inline-mobile {
    display: inline-flex !important;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    white-space: normal;
  }

  .wm-trust-mobile {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .wm-btn-mobile {
    width: 100% !important;
    max-width: 420px;
    margin-inline: auto;
    min-height: var(--wm-touch-target);
    white-space: normal;
  }
}
