@font-face {
  font-family: "Cabinet Grotesk";
  src: url("/fonts/CabinetGrotesk-Medium.otf") format("opentype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Cabinet Grotesk";
  src: url("/fonts/CabinetGrotesk-Bold.otf") format("opentype");
  font-weight: 700;
  font-display: swap;
}

/* Mirrors Tokens.Palette in the app. */
:root {
  color-scheme: light dark;
  --background: #FAFAF3;
  --surface: #F0F0E9;
  --border: #E6E6DF;
  --text-primary: #1F1F1F;
  --text-secondary: #5E5E5A;
  --inverted: #1F1F1F;
  --text-on-inverted: #FAFAF3;
  --hibiscus: #F7775D;
}
@media (prefers-color-scheme: dark) {
  :root {
    --background: #1F1F1F;
    --surface: #292929;
    --border: #333333;
    --text-primary: #FAFAF3;
    --text-secondary: #B8B8B8;
    --inverted: #FAFAF3;
    --text-on-inverted: #1F1F1F;
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--background);
  color: var(--text-primary);
}

body {
  font-family: "Cabinet Grotesk", ui-rounded, -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  font-weight: 500;
  font-size: 17px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

main {
  min-height: 100vh;
  min-height: 100dvh;
  max-width: 440px;
  margin: 0 auto;
  padding: max(48px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
}

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding-bottom: 32px;
  text-align: center;
}

.icon {
  width: 88px;
  height: 88px;
  border-radius: 22.5%;
}

h1 {
  margin: 8px 0 0;
  font-weight: 700;
  font-size: 40px;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.lede {
  margin: 0;
  font-size: 18px;
  color: var(--text-secondary);
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 24px;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
  transition: opacity 160ms ease, transform 160ms ease;
  -webkit-tap-highlight-color: transparent;
}
.button:active { opacity: 0.8; transform: scale(0.98); }
.button.primary { background: var(--inverted); color: var(--text-on-inverted); }
.button.secondary { background: var(--surface); color: var(--text-primary); }
.button:focus-visible { outline: 2px solid var(--hibiscus); outline-offset: 3px; }

.note {
  margin: 0;
  font-size: 16px;
  color: var(--text-secondary);
  text-align: center;
}

[hidden] { display: none !important; }

/* Fade in, no movement for people who prefer less motion. */
.fade { animation: fade 480ms ease both; }
.fade.later { animation-delay: 120ms; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .fade { animation: none; } }
