/* The timbre.gnethn.com hub (docs/plans/home_hub_brief.md). Light only, same
   as /p. Tokens from DESIGN.md, the same values the Gnet /timbre page uses;
   layout cues (huge name, role pills, dark band, sweep buttons) from that
   page so the two read as one family. Everything is first-party: the CSP
   loads nothing from other origins. */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url(/home/figtree-latin.woff2) format('woff2');
}

:root {
  color-scheme: light only;
  --primary: #415f91;
  --on-primary: #ffffff;
  --primary-container: #d6e3ff;
  --on-primary-container: #274777;
  --secondary: #565f71;
  --secondary-container: #dae2f9;
  --on-secondary-container: #3e4759;
  --tertiary-container: #f9d8fd;
  --on-tertiary-container: #573e5c;
  --surface: #f9f9ff;
  --card: #ffffff;
  --on-surface: #191c20;
  --outline-variant: #c4c6d0;
  --dark: #111318;
  --dark-card: #1d2024;
  --on-dark: #e2e2e9;
  --radius: 16px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  color: var(--on-surface);
  font: 1.0625rem/1.6 Figtree, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

.wrap {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 32px);
}

h1, h2, p { margin: 0; }

a { color: var(--primary); }
a:focus-visible { outline: 3px solid var(--on-primary-container); outline-offset: 3px; border-radius: 4px; }

/* Hero: the name very large, one plain sentence */
.hero { padding: clamp(32px, 7vw, 72px) 0 clamp(32px, 5vw, 56px); }
/* The name and the app icon share the headline: the icon pushed to the
   right edge, at about the height of the letters. */
.hero-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.app-icon {
  flex: none;
  width: clamp(3.5rem, 11vw, 8rem);
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}
.hero h1 {
  font-size: clamp(4rem, 13vw, 9rem);
  font-weight: 700;
  line-height: .9;
  letter-spacing: -.035em;
}
.sentence {
  margin-top: 24px;
  max-width: 30ch;
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  line-height: 1.25;
  letter-spacing: -.01em;
}

/* The three doors: one per audience, one tap each */
.doors {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.door {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius);
  padding: 24px;
}
.door h2 {
  font-size: clamp(1.5rem, 2.4vw, 1.875rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.02em;
}
.door .note { color: var(--secondary); font-size: 1rem; }
.door .actions { margin-top: auto; padding-top: 8px; }

.pill {
  align-self: flex-start;
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 1rem;
  font-weight: 600;
}
.pill-resident { background: var(--primary-container); color: var(--on-primary-container); }
.pill-visitor { background: var(--secondary-container); color: var(--on-secondary-container); }
.pill-admin { background: var(--tertiary-container); color: var(--on-tertiary-container); }

/* Buttons: hover and keyboard focus sweep a second colour across, as on the
   Gnet product pages. One two-colour background twice the button's size,
   moved by background-position, so there is a single painted edge. */
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  background-repeat: no-repeat;
  transition: background-position .4s ease-in-out, color .4s ease-in-out;
}
.button:focus-visible { outline: 2px solid var(--on-surface); outline-offset: 4px; }
.solid {
  color: var(--on-primary);
  background-image: linear-gradient(to right, var(--primary-container) 50%, var(--primary) 50%);
  background-size: 200% 100%;
  background-position: right;
}
.solid:hover, .solid:focus-visible { color: var(--on-primary-container); background-position: left; }
.outline {
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 10px 26px;
  background-image: linear-gradient(to top, var(--primary) 50%, transparent 50%);
  background-size: 100% 200%;
  background-origin: border-box;
  background-position: top;
}
.outline:hover, .outline:focus-visible { color: var(--on-primary); background-position: bottom; }
.on-dark {
  color: var(--on-primary-container);
  background-image: linear-gradient(to right, #ffffff 50%, var(--primary-container) 50%);
  background-size: 200% 100%;
  background-position: right;
}
.on-dark:hover, .on-dark:focus-visible { background-position: left; }
.on-dark:focus-visible { outline-color: #ffffff; }

/* Help: the dark band */
.help {
  margin-top: 48px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 48px;
  background: var(--dark);
  color: var(--on-dark);
  border-radius: var(--radius);
  padding: clamp(28px, 5vw, 56px);
}
.help h2 {
  color: #ffffff;
  font-size: clamp(1.75rem, 3.6vw, 2.75rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.02em;
  margin-bottom: 12px;
}
.help strong { color: #ffffff; white-space: nowrap; }
.hours { margin-top: 8px; font-size: 1rem; }

.more { margin: 32px 0 56px; font-size: 1.0625rem; }
.more a { font-weight: 700; }

/* Footer */
.foot {
  margin-top: auto;
  border-top: 1px solid var(--outline-variant);
  padding: 24px 0 32px;
  color: var(--secondary);
  font-size: .9375rem;
}
.foot ul {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
}
.foot a { color: inherit; }

@media (max-width: 900px) {
  .doors { grid-template-columns: 1fr; }
  .help .actions, .help .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .button { transition: none; }
}
