@font-face {
  font-family: "MORN Intrinsic";
  src:
    local("MORN Intrinsic"),
    local("MORN Intrinsic Regular"),
    local("MORNIntrinsic-Regular");
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "MORN Intrinsic";
  src:
    local("MORN Intrinsic"),
    local("MORN Intrinsic Bold"),
    local("MORNIntrinsic-Bold");
  font-style: normal;
  font-weight: 700;
}

:root {
  --bg: #ffffff;
  --canvas: #ffffff;
  --surface: #ffffff;
  --text: #1a1918;
  --muted: #2c2b2a;
  --brand-red: #ff0000;
  --border: #dad9d8;
  --button-border: #a6a4a3;
  --button-blue: #1767c5;
  --space-1-x: 8px;
  --space-1-and-a-quarter-x: 10px;
  --space-2-x: 16px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: "MORN Intrinsic", "Intrinsic", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.layout {
  min-height: 100dvh;
  display: grid;
  grid-template-rows: 52px 1fr;
  background: var(--canvas);
}

.top-logo {
  display: grid;
  place-items: center;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.logo {
  width: 124px;
  height: 28px;
  display: block;
  line-height: 0;
}

.main {
  min-height: calc(100dvh - 52px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
}

.page {
  width: 410.4px;
  max-width: 92vw;
  text-align: center;
  margin: 0;
}

.icon {
  width: 57.6px;
  height: 57.6px;
  display: block;
  margin: 0 auto;
}

.icon-wrap {
  padding: 20.16px;
}

h1 {
  margin: 0;
  font-size: 27.65px;
  line-height: 30.3px;
  font-weight: 400;
  letter-spacing: -0.12px;
}

.subtitle {
  margin: 0 auto;
  color: var(--muted);
  font-size: 19.2px;
  line-height: 25.6px;
  letter-spacing: -0.03px;
}

.window {
  margin-top: 0;
  color: var(--muted);
  font-size: 19.2px;
  line-height: 21.32px;
  letter-spacing: -0.03px;
}

.text-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.content-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.text-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

.actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 0;
}

.btn {
  border: 1px solid var(--button-border);
  background: #f0f0f0;
  color: #1d1d1d;
  min-width: 125px;
  height: 36px;
  padding: 8px 16px;
  font-size: 13.33px;
  line-height: 15px;
  font-weight: 400;
  letter-spacing: 0.03px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.btn.contact-support {
  border-radius: 1px;
  border: 1px solid var(--border-control, #4e4c4a);
  background: var(--background-transparent, rgba(255, 255, 255, 0));
  display: flex;
  padding: var(--space-1-and-a-quarter-x) var(--space-2-x);
  justify-content: center;
  align-items: center;
  gap: var(--space-1-x);
}

.btn.primary {
  border-color: var(--button-blue);
  background: var(--button-blue);
  color: #fff;
}

@media (max-width: 1024px) {
  h1 {
    font-size: clamp(22px, 2.7vw, 27.65px);
    line-height: 1.12;
  }

  .subtitle,
  .window {
    font-size: clamp(16px, 1.9vw, 19.2px);
    line-height: 1.28;
  }

  .btn {
    font-size: clamp(12px, 1.4vw, 13.33px);
  }
}

@media (max-width: 680px) {
  .top-logo {
    height: 52px;
  }

  .logo {
    width: 106px;
    height: auto;
  }

  .page {
    width: min(92vw, 410.4px);
    margin-top: 0;
  }

  .btn {
    min-width: 122px;
    font-size: 13px;
    min-height: 44px;
    height: auto;
  }

  .icon {
    width: 52px;
    height: 52px;
  }
}
