/* The Vitality Collective — hub styles.
   Palette and typography deliberately match the member app (teal #01696F on
   warm off-white #F5F4F0) so moving between the hub and the apps feels seamless. */

:root {
  --ink: #14201f;
  --ink-soft: #4a5a58;
  --ink-faint: #7d8c8a;
  --surface: #f5f4f0;
  --surface-raised: #ffffff;
  --line: #e2ded4;
  --teal: #01696f;
  --teal-dark: #014e53;
  --teal-wash: #eaf2f2;
  --amber: #b4791f;
  --radius: 14px;
  --radius-sm: 9px;
  --maxw: 1120px;
  --shadow-sm: 0 1px 2px rgba(20, 32, 31, 0.06);
  --shadow-md: 0 12px 32px -12px rgba(20, 32, 31, 0.22);
  --font-display: 'Cabinet Grotesk', 'General Sans', system-ui, sans-serif;
  --font-body: 'General Sans', system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
  border-radius: 4px;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ------------------------------------------------------------------ header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(245, 244, 240, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 66px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand svg { color: var(--teal); flex: none; }

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
  line-height: 1.15;
  display: block;
}
.brand-sub {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: block;
}

.nav { display: flex; align-items: center; gap: 6px; }

/* Scoped with :not(.btn) so a button placed in the nav keeps its own colours.
   Without this the nav rule out-specifies .btn-primary and produces dark text
   on a teal fill. */
.nav a:not(.btn) {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}
.nav a:not(.btn):hover {
  background: var(--teal-wash);
  color: var(--teal-dark);
  text-decoration: none;
}

.nav .btn { margin-left: 6px; }

/* ------------------------------------------------------------------ button */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-weight: 600;
  font-size: 14px;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; }

.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); }

.btn-secondary {
  background: var(--surface-raised);
  color: var(--ink);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover { border-color: var(--ink-faint); }

.btn-block { width: 100%; }

/* -------------------------------------------------------------------- hero */

.hero { padding: 84px 0 56px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  background: var(--teal-wash);
  border-radius: 999px;
  padding: 6px 13px;
  margin-bottom: 22px;
}

h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.1rem, 5.4vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 20px;
  max-width: 19ch;
  text-wrap: balance;
}

.lede {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--ink-soft);
  max-width: 56ch;
  margin: 0 0 32px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* -------------------------------------------------------------------- apps */

.section { padding: 56px 0; }
.section + .section { padding-top: 0; }

.section-head { margin-bottom: 28px; }
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.015em;
  margin: 0 0 6px;
}
.section-head p { color: var(--ink-soft); margin: 0; max-width: 62ch; }

.app-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
}

.app-card {
  display: flex;
  flex-direction: column;
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.app-card:hover {
  box-shadow: var(--shadow-md);
  border-color: #cfc9bb;
  transform: translateY(-2px);
}

.app-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--teal-wash);
  color: var(--teal);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}

.app-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.12rem;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}

.app-role {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 12px;
}

.app-card p.app-desc { color: var(--ink-soft); font-size: 14.5px; margin: 0 0 18px; }

.feature-list {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  gap: 7px;
  font-size: 14px;
  color: var(--ink-soft);
}
.feature-list li { display: flex; gap: 9px; align-items: flex-start; }
.feature-list li::before {
  content: '';
  flex: none;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal);
  margin-top: 8px;
}

.app-card .btn { margin-top: auto; align-self: flex-start; }

/* ------------------------------------------------------------------- stats */

.stat-strip {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat {
  background: var(--surface-raised);
  padding: 22px 24px;
}
.stat-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
  display: block;
  line-height: 1.2;
}
.stat-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* -------------------------------------------------------------------- auth */

.auth-page {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 900px) {
  .auth-page { grid-template-columns: 1.05fr 1fr; }
}

.auth-aside {
  display: none;
  padding: 56px;
  background: var(--teal);
  color: #fff;
  min-height: 100dvh;
  flex-direction: column;
  justify-content: space-between;
}
@media (min-width: 900px) { .auth-aside { display: flex; } }

.auth-aside .brand-name, .auth-aside .brand { color: #fff; }
.auth-aside .brand svg { color: #fff; }
.auth-aside .brand-sub { color: rgba(255, 255, 255, 0.7); }
.auth-aside h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.9rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 22ch;
}
.auth-aside p { color: rgba(255, 255, 255, 0.82); max-width: 44ch; }
.auth-aside footer { font-size: 13px; color: rgba(255, 255, 255, 0.6); }

.auth-panel { padding: 48px 24px; }
.auth-card { max-width: 400px; margin: 0 auto; }
.auth-card h1 { font-size: 1.65rem; max-width: none; margin-bottom: 8px; }
.auth-card > p.lede { font-size: 15px; margin-bottom: 28px; }

.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}
.field input, .field select {
  width: 100%;
  font: inherit;
  font-size: 15px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-raised);
  color: var(--ink);
}
.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(1, 105, 111, 0.13);
}
.field-hint { font-size: 12.5px; color: var(--ink-faint); margin: 6px 0 0; }

.form-error {
  background: #fdf0ef;
  border: 1px solid #f2c9c5;
  color: #8f2b22;
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  font-size: 14px;
  margin-bottom: 18px;
}
.form-error[hidden] { display: none; }

.auth-alt { font-size: 14px; color: var(--ink-soft); margin-top: 22px; text-align: center; }

/* ------------------------------------------------------------------ footer */

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 56px;
  padding: 32px 0 44px;
  font-size: 13.5px;
  color: var(--ink-faint);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  justify-content: space-between;
}
.site-footer a { color: var(--ink-soft); }

/* --------------------------------------------------------------- utilities */

.center-page {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 32px 24px;
}
.center-page h1 { max-width: none; margin-bottom: 12px; }
.center-page .lede { margin-left: auto; margin-right: auto; }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
