:root {
  color: #17231e;
  background: #f3f5f3;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }

html,
body { overflow-x: hidden; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(#dfe5e1 1px, transparent 1px) 0 8.5rem / 100% 3.2rem,
    #f3f5f3;
}

main {
  display: grid;
  width: min(1180px, calc(100% - 48px));
  min-height: 100vh;
  margin: 0 auto;
  grid-template-rows: auto 1fr auto;
}

nav {
  display: flex;
  padding: 30px 0;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #17231e;
  font-size: 1.2rem;
  font-weight: 760;
  letter-spacing: -.03em;
  text-decoration: none;
}

.brand img { border-radius: 10px; box-shadow: 0 7px 20px rgba(18, 58, 46, .14); }

.local-note {
  display: inline-flex;
  padding: 8px 12px;
  border: 1px solid #cbd5cf;
  border-radius: 999px;
  align-items: center;
  gap: 7px;
  color: #44514b;
  background: rgba(255, 255, 255, .72);
  font-size: .83rem;
  font-weight: 650;
}

.local-note i { width: 7px; height: 7px; border-radius: 50%; background: #2d7d66; }

.hero {
  display: grid;
  padding: 64px 0 82px;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .78fr);
  gap: 88px;
}

.copy { max-width: 650px; }

h1 {
  max-width: 9ch;
  margin: 0;
  color: #123a2e;
  font-size: clamp(4.2rem, 8.5vw, 7.6rem);
  font-weight: 780;
  letter-spacing: -.075em;
  line-height: .86;
}

.copy > p {
  max-width: 35rem;
  margin: 34px 0 30px;
  color: #44514b;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.55;
}

.download {
  display: inline-flex;
  min-height: 54px;
  padding: 0 21px;
  border-radius: 11px;
  align-items: center;
  gap: 11px;
  color: white;
  background: #194c3b;
  box-shadow: 0 12px 30px rgba(18, 58, 46, .2);
  font-size: .98rem;
  font-weight: 720;
  text-decoration: none;
  transition: transform 150ms ease, background 150ms ease;
}

.download svg { width: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.download:hover { background: #123a2e; transform: translateY(-2px); }
.download:focus-visible { outline: 3px solid rgba(45, 125, 102, .45); outline-offset: 4px; }
.download[aria-disabled="true"] { pointer-events: none; opacity: .55; }

.release {
  display: flex;
  min-height: 22px;
  margin-top: 18px;
  flex-wrap: wrap;
  gap: 8px 0;
  color: #6f7b75;
  font-size: .78rem;
}

.release span { padding: 0 10px; border-left: 1px solid #cbd5cf; }
.release span:first-child { padding-left: 0; border-left: 0; }
.release span:empty { display: none; }

.mail-mark { position: relative; min-height: 420px; }
.mail-mark::before {
  position: absolute;
  inset: 38px -22px -22px 48px;
  border: 1px solid #afc1b8;
  border-radius: 24px;
  background: #dcece5;
  transform: rotate(5deg);
  content: "";
}

.mail-window {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: 1px solid #cbd5cf;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 28px 70px rgba(18, 58, 46, .16);
  transform: rotate(-2deg);
}

.traffic { display: flex; height: 55px; padding: 0 22px; border-bottom: 1px solid #dfe5e1; align-items: center; gap: 7px; }
.traffic i { width: 9px; height: 9px; border-radius: 50%; background: #dfe5e1; }
.traffic i:first-child { background: #da6656; }
.mail-rule { width: 76%; height: 13px; margin: 31px 32px 0; border-radius: 9px; background: #dcece5; }
.mail-rule.short { width: 42%; margin-top: 38px; background: #cbd5cf; }
.mail-window img { position: absolute; right: 36px; bottom: 34px; border-radius: 28px; box-shadow: 0 18px 36px rgba(18, 58, 46, .18); }

footer {
  display: flex;
  padding: 23px 0 27px;
  border-top: 1px solid #cbd5cf;
  justify-content: space-between;
  color: #6f7b75;
  font-size: .76rem;
}

@media (max-width: 820px) {
  main { width: min(100% - 32px, 620px); }
  .hero { padding: 48px 0 62px; grid-template-columns: 1fr; gap: 62px; }
  h1 { font-size: clamp(4rem, 19vw, 6.5rem); }
  .mail-mark { min-height: 330px; }
}

@media (max-width: 480px) {
  nav { padding: 20px 0; }
  .hero { padding-top: 34px; }
  .mail-mark { min-height: 260px; }
  .mail-window img { width: 84px; height: 84px; right: 24px; bottom: 24px; border-radius: 21px; }
  .mail-rule { margin-right: 24px; margin-left: 24px; }
  footer { flex-direction: column; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .download { transition: none; }
}
