@import url("/assets/game-support.css");

@font-face {
  font-family: "Work Sans";
  src: url("./work-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

:root {
  --blue: #2cabc7;
  --contact: #dfe2ed;
  --ink: #080808;
  --muted: #484955;
  --gutter: clamp(24px, 6vw, 96px);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  color: var(--ink);
  background: white;
  font: 500 1rem/1.6 "Work Sans", system-ui, sans-serif;
}

a { color: inherit; text-underline-offset: .18em; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid #07576b; outline-offset: 4px; }
.skip-link { position: absolute; left: 16px; top: 12px; z-index: 2; background: white; padding: 8px 12px; transform: translateY(-200%); }
.skip-link:focus { transform: none; }

.site-header {
  display: flex;
  align-items: center;
  min-height: 61px;
  padding: 10px clamp(20px, 2.15vw, 40px);
  background: var(--blue);
}
.brand { display: block; width: 134px; }
.brand img { width: 100%; height: auto; }

.hero {
  background: var(--blue);
  min-height: clamp(390px, calc(67svh - 61px), 700px);
  padding: 42px var(--gutter) 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}

.app-icon { width: 66px; height: auto; border-radius: 18%; }
.hero h1, .features h2 {
  font-size: clamp(2.15rem, 3.8vw, 3.5rem);
  margin: 9px 0 0;
  line-height: 1.12;
  font-weight: 700;
}
.app-store { display: block; margin-top: 38px; width: 98px; }
.app-store img { width: 100%; height: auto; }

.features { padding: 76px var(--gutter) 24px; }
.features h2 { margin: 0 0 88px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 7vw, 120px); }
.feature-grid h3 { margin: 0 0 30px; font-size: 1.2rem; }
.feature-grid p, .contact p { color: var(--muted); margin: 0; }
.feature-grid p { max-width: 32ch; }

.contact { background: var(--contact); padding: clamp(64px, 10vw, 145px) var(--gutter); }
.contact-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 8vw, 132px); }
.contact h2 { font-size: clamp(2rem, 3.15vw, 2.9rem); margin: 0 0 14px; line-height: 1.12; }
.contact form { display: grid; gap: 18px; }
.contact fieldset { padding: 0; border: 0; margin: 0; min-width: 0; }
.contact legend { padding: 0; margin-bottom: 7px; }
.contact label { display: block; min-width: 0; }
.contact label span { color: var(--muted); font-size: .875rem; }
.name-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.contact input, .contact textarea {
  width: 100%;
  display: block;
  border: 1px solid var(--ink);
  background: #fafafa;
  border-radius: 0;
  padding: 10px 12px;
  margin-top: 4px;
  color: var(--ink);
  font: inherit;
}
.contact textarea { resize: vertical; }
.contact button {
  justify-self: start;
  border: 0;
  border-radius: 99px;
  padding: 12px 21px;
  background: #080808;
  color: #fff;
  font: 600 .92rem/1.4 "Work Sans", system-ui, sans-serif;
  cursor: pointer;
}
.contact button:hover { background: #303030; }
.contact p.contact-note { margin: 12px 0 0; font-size: .95rem; overflow-wrap: anywhere; }

.site-footer { padding: 22px var(--gutter) 28px; font-size: .95rem; }
.page-content { min-height: 50vh; }
.text-page .page-content { max-width: 1040px; padding: clamp(35px, 6vw, 82px) var(--gutter); margin: 0 auto; overflow-wrap: break-word; }
.text-page h1 { font-size: clamp(1.75rem, 4vw, 3rem); line-height: 1.15; margin: 0 0 24px; }
.text-page h4 { margin-top: 1.6em; margin-bottom: .75em; font-size: 1.12rem; }
.text-page p { margin: 0 0 .95em; }
.text-page ul, .text-page ol { padding-left: 1.5em; }
.text-page li > p { margin-bottom: .45em; }
.test-page .page-content { min-height: 62vh; }
.game-support .page-content { padding: 24px 0 15px; }

@media (max-width: 767px) {
  .hero { min-height: 405px; padding-block: 42px 64px; }
  .hero h1 { max-width: 14ch; margin-top: 18px; }
  .app-store { margin-top: 28px; }
  .features { padding-top: 56px; padding-bottom: 52px; }
  .features h2 { margin-bottom: 36px; }
  .feature-grid, .contact-inner { grid-template-columns: minmax(0, 1fr); }
  .feature-grid h3 { margin-bottom: 8px; }
  .feature-grid p { max-width: none; }
}
