/* The Hum website: the app's own colours, curves and calm. Dark only, like the app.
   Colours come from mobile/src/theme.ts; keep them in step if the app's change. */
:root {
  --bg: #0E1016;
  --card: #181B24;
  --edge: rgba(255, 255, 255, 0.05);
  --text: #ECEAE4;
  --dim: #9DA2B1;
  --faint: #666B7B;
  --accent: #FF8FA3;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* The soft pink light the app puts behind every screen. */
body::before {
  content: "";
  position: fixed;
  inset: -20vmax -20vmax auto;
  height: 70vmax;
  background: radial-gradient(closest-side, rgba(255, 143, 163, 0.13), rgba(255, 143, 163, 0));
  pointer-events: none;
  z-index: 0;
}

a { color: var(--accent); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.page {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
  padding: 28px 20px 48px;
}

/* Small "hum" mark at the top of the inner pages, linking home. */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.3px;
}
.brand:hover { text-decoration: none; }
.brand svg { width: 22px; height: 22px; }

h1 {
  font-size: 30px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.6px;
  margin: 36px 0 10px;
}

.lead { color: var(--dim); font-size: 17px; margin: 0 0 24px; }
.updated { color: var(--faint); font-size: 14px; margin: 0 0 28px; }

.card {
  background: var(--card);
  border: 1px solid var(--edge);
  border-radius: 20px;
  padding: 20px 22px;
  margin: 0 0 14px;
}
.card h2 {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 10px;
  letter-spacing: -0.2px;
}
.card p { color: var(--dim); margin: 0 0 10px; }
.card p:last-child { margin-bottom: 0; }

.card ul { list-style: none; padding: 0; margin: 0; }
.card li {
  position: relative;
  color: var(--dim);
  padding-left: 18px;
  margin: 0 0 8px;
}
.card li:last-child { margin-bottom: 0; }
.card li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.72em;
  width: 5px;
  height: 5px;
  border-radius: 3px;
  background: var(--faint);
}
.card strong { color: var(--text); font-weight: 600; }

/* The one big call to action: write to us. */
.mail {
  display: inline-block;
  margin-top: 6px;
  padding: 13px 22px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
  box-shadow: 0 6px 22px rgba(255, 143, 163, 0.22);
}
.mail:hover, .mail:focus-visible { text-decoration: none; filter: brightness(1.05); }

footer {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--faint);
  font-size: 14px;
  padding: 0 20px 36px;
}
footer a { color: var(--dim); }
footer .dot { margin: 0 10px; }

/* Home page: the heart, the name and one line, in the middle of the screen. */
.home {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
  gap: 6px;
}
.heart { width: 132px; height: 132px; animation: beat 1.6s ease-in-out infinite; }
.home .name { font-size: 44px; font-weight: 700; letter-spacing: -1px; margin: 14px 0 0; }
.home .tag { color: var(--dim); font-size: 18px; margin: 0; }
.home .about { color: var(--dim); max-width: 420px; margin: 22px 0 0; }
.home .soon { color: var(--faint); font-size: 15px; margin: 18px 0 0; }
.home footer { position: absolute; bottom: 0; left: 0; right: 0; padding-bottom: 28px; }

@keyframes beat {
  0%, 100% { transform: scale(1); }
  14% { transform: scale(1.07); }
  28% { transform: scale(1); }
  42% { transform: scale(1.05); }
  70% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .heart { animation: none; }
}

@media (min-width: 720px) {
  .page { padding-top: 44px; }
  h1 { font-size: 36px; }
}
