:root {
  color-scheme: dark;
  --night: #0b2239;
  --blue: #2e5c8a;
  --paper: #f7f5f3;
  --muted: #b9c5d1;
  --amber: #d4a574;
  --line: rgba(247, 245, 243, 0.18);
  --surface: rgba(247, 245, 243, 0.06);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at 80% 10%, #234f78, transparent 42%), var(--night);
  color: var(--paper);
  font-family: "Avenir Next", Avenir, "Helvetica Neue", sans-serif;
}

a { color: inherit; }

.shell { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.brand {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-decoration: none;
  text-transform: uppercase;
}

nav { display: flex; gap: 24px; font-size: 0.9rem; }
nav a { color: var(--muted); text-decoration: none; }
nav a:hover { color: var(--paper); }

main { padding: clamp(72px, 12vw, 150px) 0; }
main.content { max-width: 720px; padding: clamp(52px, 8vw, 96px) 0; }

.eyebrow {
  margin: 0 0 18px;
  color: var(--amber);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1 {
  max-width: 13ch;
  margin: 0;
  font-family: Iowan Old Style, Palatino, serif;
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.98;
}

.content h1 { font-size: clamp(2.7rem, 7vw, 5rem); }
.content h2 { margin: 2.25rem 0 0.75rem; font-family: Iowan Old Style, Palatino, serif; font-size: 1.65rem; font-weight: 500; }
.content p, .content li { color: var(--muted); line-height: 1.65; }
.content a { color: var(--paper); }

.lede { max-width: 620px; margin: 28px 0 0; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.3rem); line-height: 1.65; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.button, button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--paper);
  font: inherit;
  cursor: pointer;
  text-decoration: none;
}
.button.primary, button { background: var(--paper); color: var(--night); }

.app-list { margin-top: 48px; border-top: 1px solid var(--line); }
.app-row { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 32px; align-items: center; padding: 40px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.app-logo { display: grid; min-height: 104px; place-items: center; }
.app-logo img { display: block; width: 100%; height: auto; }
.wattr-logo { padding: 16px; border-radius: 16px; background: #f5f3f0; }
.app-copy h2 { margin: 0 0 8px; font-family: Iowan Old Style, Palatino, serif; font-size: 2rem; font-weight: 500; }
.app-copy p { max-width: 620px; margin: 0; color: var(--muted); line-height: 1.55; }
.app-copy span { display: inline-block; margin-top: 16px; color: var(--amber); font-size: 0.85rem; font-weight: 700; }
.app-mark { display: grid; width: 64px; height: 64px; place-items: center; margin-bottom: 24px; border-radius: 16px; }
.app-mark img { width: 78%; height: 78%; }
.wattr-mark { background: #c45a2a; }
.teaser { min-height: 68vh; }
.teaser-logo { display: block; width: min(280px, 68vw); height: auto; margin-bottom: 32px; padding: 16px; border-radius: 16px; background: #f5f3f0; }
.teaser-note { max-width: 620px; margin: 28px 0 0; color: var(--paper); font-size: 1rem; font-weight: 600; line-height: 1.6; }

.support-form { margin-top: 36px; padding: 30px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.field { margin-bottom: 20px; }
.field label { display: block; margin-bottom: 8px; color: var(--paper); font-size: 0.85rem; font-weight: 700; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(11, 34, 57, 0.72);
  color: var(--paper);
  font: inherit;
}
.field textarea { min-height: 150px; resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note, .alt { color: var(--muted); font-size: 0.9rem; line-height: 1.55; }
.banner { margin: 26px 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.banner.err { border-color: #ff8d82; }

footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; padding: 28px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.85rem; }
footer div { display: flex; gap: 20px; }

:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

@media (max-width: 640px) {
  header { align-items: flex-start; gap: 20px; }
  nav { flex-wrap: wrap; justify-content: flex-end; gap: 12px 18px; }
  .app-row { grid-template-columns: 1fr; gap: 16px; padding: 32px 0; }
  .app-logo { width: 160px; min-height: 88px; justify-items: start; }
  .support-form { padding: 22px; }
}
