/* Final responsive polish layer for the public Mammatus Weather site. */
:root {
  --page-gutter: clamp(20px, 4vw, 56px);
  --soft-border: rgba(145, 221, 255, .14);
}

html { color-scheme: dark; }
body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap {
  width: min(var(--max), calc(100% - (var(--page-gutter) * 2)));
  padding-inline: 0;
}

.topbar { box-shadow: 0 10px 35px rgba(0, 0, 0, .16); }
.nav { height: 72px; }
.logo img { width: clamp(174px, 15vw, 202px); }
.links a { transition: color .2s ease; }
.menu { border-radius: 3px; }

.hero {
  position: relative;
  min-height: min(760px, calc(100svh - 72px));
  padding-block: clamp(72px, 8vw, 108px);
}
.hero:before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 4%;
  right: 8%;
  width: min(44vw, 620px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(28, 166, 229, .13), transparent 68%);
  filter: blur(16px);
}
.hero h1 { font-size: clamp(64px, 7.5vw, 108px); }
.hero .lede { max-width: 620px; }
.actions { align-items: center; }
.button { transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease; }
.button:focus-visible, .links a:focus-visible, .menu:focus-visible, .feature-link:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 4px;
}

.signal-bar { margin-top: -22px; }
.signal-grid { box-shadow: 0 24px 70px rgba(0, 0, 0, .26); }
.signal-item { min-width: 0; }

.section { padding-block: clamp(88px, 9vw, 118px); }
.section-head { margin-bottom: clamp(38px, 5vw, 58px); }
.section-head p, .muted, .card p { max-width: 66ch; }
.card {
  min-height: 100%;
  padding: clamp(26px, 3vw, 34px);
}
.card h3 { line-height: 1.2; }
.card p { line-height: 1.65; }
.feature-link { transition: color .2s ease, transform .2s ease; }
.feature-link:hover { color: #fff; transform: translateX(3px); }
.checklist li { line-height: 1.45; }

.real-device { isolation: isolate; }
.screen img { background: #071a2b; }
.shot, .product-pair img { background: linear-gradient(145deg, #0c263b, #071725); }
.shot img, .product-pair img { transition: transform .45s ease; }
.shot:hover img, .product-pair figure:hover img { transform: scale(1.012); }

.cta h2 { margin-top: 14px; }
.footer-grid { align-items: start; }
.footer a { width: fit-content; }

@media (max-width: 900px) {
  .wrap { width: min(var(--max), calc(100% - 40px)); }
  .links {
    top: 72px;
    padding: 18px 20px 24px;
    border-top: 1px solid var(--soft-border);
  }
  .links a { min-height: 44px; display: flex; align-items: center; }
  .hero { gap: 68px; }
  .hero:before { top: 32%; right: -18%; width: 90vw; }
  .split { gap: 68px; }
}

@media (max-width: 600px) {
  :root { --page-gutter: 18px; }
  .wrap {
    width: calc(100% - (var(--page-gutter) * 2));
    padding-inline: 0;
  }
  .nav { height: 66px; }
  .logo img { width: 158px; }
  .menu { width: 42px; height: 42px; }
  .links { top: 66px; max-height: calc(100dvh - 66px); }
  .hero {
    padding: 58px 0 76px;
    gap: 58px;
  }
  .hero h1, .page-hero h1 {
    margin-block: 16px 20px;
    font-size: clamp(48px, 14vw, 64px);
    line-height: .94;
  }
  .lede { font-size: 17px; line-height: 1.55; }
  .actions { display: grid; grid-template-columns: 1fr; gap: 10px; }
  .actions .button { width: 100%; min-height: 50px; }
  .trust { gap: 8px; margin-top: 28px; }
  .trust span { padding: 6px 9px; }
  .real-device, .radar-device { width: min(76vw, 310px); }
  .signal-bar { margin-top: -8px; padding-bottom: 30px; }
  .signal-item { padding: 15px 13px; }
  .signal-item strong { font-size: 11px; }
  .section { padding-block: 76px; }
  .section h2 { font-size: clamp(35px, 10.5vw, 44px); line-height: 1.02; }
  .section-head { margin-bottom: 34px; }
  .grid-3 { gap: 14px; }
  .card { padding: 25px 22px; }
  .icon { margin-bottom: 30px; }
  .split { gap: 54px; }
  .cta { padding: 54px 20px; }
  .page-hero { padding-block: 72px 62px; }
  .feature-row { padding-block: 44px; }
  .footer { padding-top: 54px; }
  .footer-grid { gap: 30px; }
  .footer-logo { width: 190px; }
  .copyright { margin-top: 38px; }
}

@media (hover: none) {
  .card:hover, .shot:hover, .button:hover, .feature-link:hover { transform: none; }
  .shot:hover img, .product-pair figure:hover img { transform: none; }
}
