:root {
  color-scheme: light;
  --ink: #101828;
  --muted: #526071;
  --line: #d9e0e8;
  --blue: #2563a5;
  --blue-soft: #eaf3ff;
  --red: #d7193f;
  --green: #08765c;
  --off-white: #f7f9fb;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

a { color: inherit; }

.site-header {
  position: relative;
  z-index: 10;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6vw;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #0d1117;
  text-decoration: none;
  font-size: 24px;
  font-weight: 800;
}

.brand img {
  border-radius: 50%;
  object-fit: contain;
}

.header-link {
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.header-link:hover, footer a:hover { text-decoration: underline; }

.hero {
  position: relative;
  min-height: 620px;
  height: calc(86svh - 76px);
  max-height: 760px;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 58px 6vw 90px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.hero-screen {
  position: absolute;
  z-index: 0;
  right: 7vw;
  bottom: -170px;
  width: 430px;
  height: 900px;
  border: 12px solid #111827;
  border-bottom: 0;
  border-radius: 46px 46px 0 0;
  background: #fff url("/assets/myasme-events-a33.png") center top / 100% auto no-repeat;
  box-shadow: 0 28px 70px rgba(16, 24, 40, 0.22);
  transform: rotate(2deg);
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(650px, 54%);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

h1, h2, h3, p { letter-spacing: 0; }

h1 {
  margin: 0;
  font-size: 76px;
  line-height: 0.98;
  font-weight: 850;
}

.hero-lead {
  max-width: 590px;
  margin: 24px 0 20px;
  color: #243447;
  font-size: 25px;
  line-height: 1.42;
}

.device-message {
  margin: 0 0 15px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 650;
}

.store-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.store-button {
  width: 194px;
  min-height: 60px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 9px 16px;
  border: 1px solid #000;
  border-radius: 7px;
  background: #0b0b0b;
  color: #fff;
  text-decoration: none;
  transition: transform 150ms ease, background 150ms ease;
}

.store-button:hover { transform: translateY(-2px); background: #242424; }
.store-button:focus-visible { outline: 3px solid #82b7f5; outline-offset: 3px; }
.store-button small, .store-button strong { display: block; }
.store-button small { font-size: 9px; line-height: 1.1; }
.store-button strong { margin-top: 2px; font-size: 19px; line-height: 1.1; }

.store-mark {
  width: 30px;
  height: 34px;
  flex: 0 0 30px;
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 700;
}

.play-mark {
  width: 0;
  height: 0;
  border-top: 16px solid transparent;
  border-bottom: 16px solid transparent;
  border-left: 27px solid #fff;
}

.availability-note {
  margin: 15px 0 0;
  color: #687587;
  font-size: 13px;
}

html[data-platform="android"] .ios-store,
html[data-platform="ios"] .android-store { display: none; }

.section-inner { width: min(1180px, 88vw); margin: 0 auto; }

.feature-band {
  padding: 82px 0 88px;
  background: var(--off-white);
  border-bottom: 1px solid var(--line);
}

.section-heading h2, .download-band h2 {
  margin: 0;
  font-size: 38px;
  line-height: 1.16;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 42px;
  border: 1px solid var(--line);
  background: var(--line);
}

.feature-grid article {
  min-height: 220px;
  padding: 30px;
  background: #fff;
}

.feature-number {
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
}

.feature-grid h3 { margin: 52px 0 10px; font-size: 22px; }
.feature-grid p { margin: 0; color: var(--muted); line-height: 1.55; }

.screens-section { padding: 90px 0 100px; }

.screens-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
}

.screens-heading > p { max-width: 270px; margin: 0; color: var(--muted); line-height: 1.5; }

.screen-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px;
  margin-top: 50px;
}

figure { margin: 0; min-width: 0; }

.phone-frame {
  height: 610px;
  overflow: hidden;
  border: 9px solid #151a22;
  border-radius: 42px;
  background: #f8fafc;
  box-shadow: 0 18px 35px rgba(16, 24, 40, 0.13);
}

.phone-frame img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: top; }

figcaption { display: grid; gap: 5px; margin-top: 18px; padding: 0 4px; }
figcaption strong { font-size: 18px; }
figcaption span { color: var(--muted); font-size: 14px; line-height: 1.4; }

.download-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  padding: 46px 6vw;
  border-top: 1px solid #b7d2ef;
  border-bottom: 1px solid #b7d2ef;
  background: var(--blue-soft);
}

.download-band > div:first-child { display: flex; align-items: center; gap: 20px; }
.download-band img { border-radius: 8px; }
.download-band p { margin: 8px 0 0; color: var(--muted); }
.footer-actions { flex-wrap: nowrap; }

footer {
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 6vw;
  color: #5d6978;
  font-size: 13px;
}

footer nav { display: flex; gap: 24px; }
footer a { text-decoration: none; }

@media (max-width: 980px) {
  .hero { min-height: 610px; }
  .hero-screen { right: -90px; width: 390px; opacity: 0.42; }
  .hero-copy { width: 70%; }
  h1 { font-size: 62px; }
  .hero-lead { font-size: 22px; }
  .phone-frame { height: 500px; border-radius: 34px; }
  .download-band { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 720px) {
  .site-header { height: 68px; padding: 0 20px; }
  .brand { font-size: 21px; }
  .brand img { width: 40px; height: 40px; }
  .header-link { font-size: 13px; }
  .hero {
    height: auto;
    min-height: 680px;
    max-height: none;
    align-items: flex-start;
    padding: 44px 22px 220px;
  }
  .hero-copy { width: 100%; }
  .hero-screen {
    right: 50%;
    bottom: -560px;
    width: 340px;
    height: 700px;
    opacity: 0.28;
    transform: translateX(50%);
  }
  h1 { font-size: 52px; }
  .hero-lead { font-size: 20px; }
  .store-actions { display: grid; grid-template-columns: 1fr; }
  .store-button { width: 100%; max-width: 250px; }
  .feature-band, .screens-section { padding: 66px 0 72px; }
  .section-inner { width: calc(100vw - 40px); }
  .section-heading h2, .download-band h2 { font-size: 30px; }
  .feature-grid, .screen-grid { grid-template-columns: 1fr; }
  .feature-grid article { min-height: 175px; }
  .feature-grid h3 { margin-top: 34px; }
  .screens-heading { display: block; }
  .screens-heading > p { margin-top: 14px; }
  .screen-grid { gap: 50px; }
  .phone-frame { height: 620px; max-width: 360px; margin: 0 auto; }
  figcaption { max-width: 360px; margin-left: auto; margin-right: auto; }
  .download-band { padding: 38px 22px; }
  .download-band > div:first-child { align-items: flex-start; }
  .download-band img { width: 60px; height: 60px; }
  .footer-actions { width: 100%; }
  footer { align-items: flex-start; flex-direction: column; padding: 30px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .store-button { transition: none; }
}
