@font-face {
  font-family: Montserrat;
  src: url("/app/assets/Montserrat-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Montserrat;
  src: url("/app/assets/Montserrat-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  font-family: Montserrat, Arial, sans-serif;
  color: #141414;
  background: #fff;
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
a:focus-visible { outline: 3px solid #e50914; outline-offset: 6px; }
.header, main, .footer { width: min(100% - 48px, 1000px); margin-inline: auto; }
.header { min-height: 112px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; }
.brand img { display: block; width: 225px; height: auto; }
.login { text-decoration: none; font-size: 15px; font-weight: 700; padding: 12px 0 12px 16px; white-space: nowrap; }
.login span { margin-left: 12px; color: #e50914; }
.login:hover { color: #c60812; }
main { padding-top: 66px; padding-bottom: 64px; }
.intro { display: flex; align-items: center; justify-content: space-between; gap: 40px; margin-bottom: 48px; }
h1 { font-size: clamp(32px, 4.7vw, 54px); line-height: 1.14; letter-spacing: -.045em; margin: 0 0 24px; font-weight: 700; }
h1 span { color: #e50914; }
.intro p { font-size: 18px; line-height: 1.75; margin: 0; color: #555; }
.app-icon { width: 160px; height: 160px; border-radius: 32px; border: 1px solid #eee; }
.downloads { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.store { display: flex; flex-direction: column; padding: 30px 32px 26px; background: #f6f5f4; border: 1px solid #e9e7e5; border-radius: 12px; text-decoration: none; transition: background-color .15s, border-color .15s; }
.store:hover { background: #fff4f4; border-color: #e50914; }
.device { color: #626262; font-size: 14px; }
.store-name { font-size: 30px; font-weight: 700; letter-spacing: -.035em; margin: 8px 0 28px; }
.store-action { font-size: 14px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; }
.store-action span { color: #e50914; font-size: 24px; line-height: 1; }
.email { margin-top: 40px; padding-top: 32px; border-top: 1px solid #e9e7e5; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
h2 { font-size: 21px; letter-spacing: -.025em; margin: 0 0 10px; }
.email p { font-size: 14px; line-height: 1.8; color: #626262; margin: 0; }
.email a { color: #c60812; font-size: 15px; font-weight: 700; text-underline-offset: 5px; white-space: nowrap; padding-block: 12px; }
.email a span { margin-left: 8px; display: inline-block; }
.footer { padding-block: 28px; border-top: 1px solid #e9e7e5; display: flex; justify-content: space-between; gap: 20px; color: #626262; font-size: 12px; line-height: 1.7; }
.footer a { text-underline-offset: 3px; }
.skip-link { position: absolute; left: 16px; top: -80px; padding: 12px; background: #fff; z-index: 2; }
.skip-link:focus { top: 12px; }

@media (max-width: 640px) {
  .header, main, .footer { width: calc(100% - 40px); }
  .header { min-height: 84px; gap: 12px; }
  .brand img { width: 172px; }
  .login { font-size: 13px; padding-left: 0; }
  .login span { margin-left: 4px; }
  main { padding-top: 30px; padding-bottom: 40px; }
  .intro { flex-direction: column-reverse; align-items: flex-start; gap: 24px; margin-bottom: 28px; }
  .app-icon { width: 76px; height: 76px; border-radius: 17px; }
  h1 { font-size: clamp(29px, 7.7vw, 46px); margin-bottom: 16px; }
  .intro p { font-size: 15px; line-height: 1.7; }
  .downloads { gap: 12px; }
  .store { padding: 21px 16px 19px; border-radius: 9px; }
  .device { font-size: 11px; }
  .store-name { font-size: clamp(19px, 5.2vw, 29px); margin: 8px 0 24px; }
  .store-action { font-size: 11px; gap: 8px; }
  .store-action span { font-size: 20px; }
  .email { flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 28px; padding-top: 24px; }
  h2 { font-size: 20px; }
  .email p { font-size: 13px; }
  .desktop-break { display: none; }
  .footer { font-size: 10px; gap: 12px; padding-block: 22px; }
}

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