@font-face {
  font-family: "Space Grotesk";
  src: url("/fonts/space-grotesk-latin.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-400.woff2") format("woff2");
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0d0e12;
  --panel: #151821;
  --panel-raised: #1b202b;
  --text: #f5f7fb;
  --muted: #aeb8c8;
  --line: #303848;
  --accent: #57e3a1;
  --accent-ink: #07140e;
  --focus: #8bbcff;
  --danger: #ffb4ad;
  --ok: #8bf0b9;
  font-family: "Inter", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 0%, rgba(87, 227, 161, 0.12), transparent 32rem),
    linear-gradient(180deg, #0d0e12 0%, #10131a 100%);
}

a {
  color: var(--accent);
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 10;
  padding: 0.75rem 1rem;
  color: var(--accent-ink);
  background: var(--accent);
  border-radius: 0.5rem;
}

.skip-link:focus {
  top: 1rem;
}

.site-head {
  width: min(68rem, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
}

.brand {
  color: var(--text);
  font: 700 1.35rem/1 "Space Grotesk", sans-serif;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.brand span {
  color: var(--accent);
}

.home-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-weight: 700;
}

main {
  width: min(48rem, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 5.5rem) 0 3rem;
}

.intro {
  margin-bottom: 2rem;
}

.eyebrow,
.section-label {
  margin: 0 0 0.65rem;
  color: var(--accent);
  font: 700 0.75rem/1.4 "Space Grotesk", sans-serif;
  letter-spacing: 0.13em;
}

h1,
h2 {
  margin-top: 0;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.035em;
}

h1 {
  margin-bottom: 1rem;
  font-size: clamp(2.5rem, 8vw, 4.75rem);
  line-height: 0.98;
}

h2 {
  margin-bottom: 0.75rem;
  font-size: clamp(1.35rem, 4vw, 2rem);
}

.lead {
  max-width: 42rem;
  margin: 0;
  font-size: clamp(1.05rem, 2.6vw, 1.3rem);
  line-height: 1.6;
}

.availability,
.muted,
.support,
.signed-in-as,
.explain-card p,
.explain-card li {
  color: var(--muted);
  line-height: 1.65;
}

.account-card,
.explain-card {
  margin: 1rem 0;
  padding: clamp(1.25rem, 4vw, 2rem);
  background: linear-gradient(145deg, var(--panel-raised), var(--panel));
  border: 1px solid var(--line);
  border-radius: 1rem;
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.22);
}

.loading {
  min-height: 3rem;
  color: var(--muted);
  display: flex;
  align-items: center;
}

form {
  display: grid;
  gap: 0.65rem;
}

label {
  margin-top: 0.4rem;
  color: var(--text);
  font-weight: 700;
}

input {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 0.85rem;
  color: var(--text);
  background: #0c0f15;
  border: 1px solid #445064;
  border-radius: 0.65rem;
  font: inherit;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.8rem;
}

button {
  min-height: 48px;
  padding: 0.75rem 1rem;
  border: 1px solid transparent;
  border-radius: 0.65rem;
  font: 700 0.95rem/1 "Space Grotesk", sans-serif;
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.primary {
  color: var(--accent-ink);
  background: var(--accent);
}

.secondary {
  color: var(--text);
  background: transparent;
  border-color: #536079;
}

.status {
  min-height: 1.5rem;
  margin: 1rem 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.status[data-kind="error"] {
  color: var(--danger);
}

.status[data-kind="ok"] {
  color: var(--ok);
}

.explain-card ul {
  padding-left: 1.25rem;
}

footer {
  width: min(48rem, calc(100% - 2rem));
  margin: 0 auto;
  padding: 0 0 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  color: var(--muted);
  font-size: 0.9rem;
}

footer .legal {
  flex-basis: 100%;
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 36rem) {
  .site-head {
    width: min(100% - 1.25rem, 68rem);
  }

  main,
  footer {
    width: min(100% - 1.25rem, 48rem);
  }

  .button-row {
    flex-direction: column;
  }

  button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
