/* Neutral face of Praise: the landing hub and the sign-in screen. No door, no shield: plain type on
   white, with each product's own colour used only to mark which path is which. */

@font-face { font-family: "Instrument Sans"; src: url("../fonts/instrument-sans.woff2") format("woff2"); font-weight: 400 700; font-stretch: 75% 100%; font-display: swap; }

:root {
  --n-ink: #141b2d;
  --n-text2: #4f5870;
  --n-line: #e3e6ee;
  --n-soft: #f5f6fa;
  --n-violet: #6d49de;        /* Praise (family) */
  --n-violet-soft: #f0ecff;
  --n-teal: #d7263d;          /* Praise Shield (adult): red */
  --n-teal-soft: #fdecee;
  --n-font: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
}

/* the flat white page behind the hub and the sign-in screen */
body.hub, html[data-theme="neutral"] body {
  background: #fff; background-image: none; color: var(--n-ink);
  font: 17px/1.55 var(--n-font); -webkit-font-smoothing: antialiased;
}
body.hub { margin: 0; }
body.hub h1, body.hub h2, body.hub h3, html[data-theme="neutral"] h1, html[data-theme="neutral"] h2 {
  font-family: var(--n-font); letter-spacing: -0.02em; margin: 0; line-height: 1.1;
}
body.hub a { color: inherit; }
body.hub :focus-visible, html[data-theme="neutral"] :focus-visible { outline: 3px solid var(--n-ink); outline-offset: 3px; border-radius: 6px; }

/* ---- wordmark: two dots, one for each product ---- */
.wordmark { display: inline-flex; align-items: center; gap: .4rem; font: 700 1.35rem var(--n-font); letter-spacing: -0.02em; color: var(--n-ink); text-decoration: none; }
.wordmark .dots { display: inline-flex; gap: 3px; }
.wordmark .dots i { width: .5rem; height: .5rem; border-radius: 50%; display: block; }
.wordmark .dots i:first-child { background: var(--n-violet); }
.wordmark .dots i:last-child { background: var(--n-teal); }

/* ---- hub ---- */
.hub-bar { max-width: 1120px; margin: 0 auto; padding: 1.25rem 1.5rem; display: flex; align-items: center; gap: 2rem; }
.hub-bar nav { display: flex; gap: 1.6rem; flex: 1; }
.hub-bar nav a { text-decoration: none; color: var(--n-text2); font-weight: 600; }
.hub-bar nav a:hover { color: var(--n-ink); text-decoration: underline; text-underline-offset: 4px; }
.hub-bar .signin { font-weight: 650; text-decoration: none; padding: .45rem 1rem; border: 1.5px solid var(--n-ink); border-radius: 8px; }
.hub-bar .signin:hover { background: var(--n-ink); color: #fff; }

.hub main { max-width: 1120px; margin: 0 auto; padding: 0 1.5rem 3rem; }
.hub-hero { padding: clamp(2.5rem, 7vw, 5.5rem) 0 clamp(2rem, 4vw, 3rem); max-width: 46rem; }
body.hub .hub-hero h1 { font-size: clamp(2.5rem, 6vw, 4.4rem); font-weight: 700; font-stretch: 86%; margin-bottom: 1.1rem; }
.hub-hero p { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--n-text2); max-width: 38rem; margin: 0; }

/* the choice: the two big panels ARE the hero */
.paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.path { border-radius: 20px; padding: clamp(1.5rem, 3vw, 2.25rem); display: flex; flex-direction: column; gap: 1rem; min-height: 24rem; }
.path.family { background: var(--n-violet-soft); }
.path.adult { background: var(--n-teal-soft); }
.path-glyph { min-height: 112px; display: flex; align-items: center; }
.path-glyph .buddy-body { cursor: pointer; }
body.hub .path h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); font-weight: 700; font-stretch: 88%; }
.path .who-for { margin: -.4rem 0 0; color: var(--n-text2); }
.path ul { list-style: none; margin: .2rem 0 auto; padding: 0; display: grid; gap: .55rem; }
.path li { padding-left: 1.4rem; position: relative; }
.path li::before { content: ""; position: absolute; left: 0; top: .6em; width: .55rem; height: .55rem; border-radius: 50%; }
.path.family li::before { background: var(--n-violet); }
.path.adult li::before { background: var(--n-teal); }
.path-actions { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; margin-top: .6rem; }
body.hub .btn-n { display: inline-block; font: 650 1rem var(--n-font); padding: .7rem 1.3rem; border-radius: 8px; text-decoration: none; border: 1.5px solid var(--n-ink); background: var(--n-ink); color: #fff; cursor: pointer; }
.btn-n:hover { transform: translateY(-1px); }
.path.family .btn-n { background: var(--n-violet); border-color: var(--n-violet); }
.path.adult .btn-n { background: var(--n-teal); border-color: var(--n-teal); }
.link-n { font-weight: 650; text-underline-offset: 4px; }

/* what both versions share: plain columns separated by rules, not cards */
.shared { margin-top: clamp(3rem, 7vw, 5rem); }
body.hub .shared h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-stretch: 88%; margin-bottom: 1.5rem; max-width: 30rem; }
.shared-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1.5px solid var(--n-ink); }
.shared-cols > div { padding: 1.2rem 1.5rem 0 0; }
.shared-cols > div + div { padding-left: 1.5rem; border-left: 1px solid var(--n-line); }
body.hub .shared-cols h3 { font-size: 1.15rem; font-weight: 650; margin-bottom: .4rem; }
.shared-cols p { margin: 0; color: var(--n-text2); }

.straight { margin-top: clamp(3rem, 7vw, 5rem); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; padding: 2rem; background: var(--n-soft); border-radius: 16px; }
body.hub .straight h2 { font-size: 1.5rem; font-stretch: 88%; margin-bottom: .6rem; }
.straight p, .straight li { color: var(--n-text2); }
.straight ul { margin: 0; padding-left: 1.2rem; display: grid; gap: .45rem; }

.hub-foot { max-width: 1120px; margin: 0 auto; padding: 1.5rem; border-top: 1px solid var(--n-line); display: flex; gap: 1rem 2rem; flex-wrap: wrap; color: var(--n-text2); font-size: .95rem; }

/* ---- waiting for the server to wake (before we know which version the account is) ---- */
html[data-theme="neutral"] .wait { min-height: 100vh; display: grid; align-content: center; justify-items: center; gap: .9rem; text-align: center; padding: 2rem 1.25rem; }
html[data-theme="neutral"] .wait h1 { font: 700 clamp(1.7rem, 4vw, 2.2rem)/1.15 var(--n-font); font-stretch: 88%; margin: 1.2rem 0 0; }
html[data-theme="neutral"] .wait-note { color: var(--n-text2); max-width: 26rem; margin: 0; }
html[data-theme="neutral"] .wait-bar { width: min(16rem, 70vw); height: 6px; border-radius: 99px; background: var(--n-line); overflow: hidden; margin-top: .6rem; }
html[data-theme="neutral"] .wait-bar i { display: block; height: 100%; width: 40%; border-radius: inherit; background: var(--n-ink); animation: wait-slide 1.5s ease-in-out infinite; }
@keyframes wait-slide { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
@media (prefers-reduced-motion: reduce) { html[data-theme="neutral"] .wait-bar i { animation: none; width: 100%; opacity: .35; } }
html[data-theme="neutral"] .wait button { background: var(--n-ink); border-color: var(--n-ink); border-radius: 8px; font-family: var(--n-font); padding: .65rem 1.3rem; margin-top: .6rem; }

/* ---- sign-in / sign-up (before we know which version the account is) ---- */
html[data-theme="neutral"] .auth { grid-template-columns: minmax(0, 27rem); justify-content: center; align-items: center; padding: 2rem 1.25rem; }
html[data-theme="neutral"] .auth-card { display: grid; gap: .2rem; }
html[data-theme="neutral"] .auth .wordmark { margin-bottom: 1.6rem; }
html[data-theme="neutral"] .auth h1 { font: 700 clamp(1.9rem, 4vw, 2.5rem)/1.1 var(--n-font); font-stretch: 88%; margin-bottom: .5rem; }
html[data-theme="neutral"] .auth .lede-a { color: var(--n-text2); margin: 0 0 .4rem; }
html[data-theme="neutral"] .auth form { background: #fff; border: 1px solid var(--n-line); box-shadow: 0 1px 2px rgba(20, 27, 45, .04), 0 18px 40px -24px rgba(20, 27, 45, .25); -webkit-backdrop-filter: none; backdrop-filter: none; border-radius: 18px; padding: 1.5rem; margin-top: 1rem; }
html[data-theme="neutral"] .auth label { font-weight: 650; }
html[data-theme="neutral"] .auth input[type=email], html[data-theme="neutral"] .auth input[type=password] {
  border: 1.5px solid #c5cad8; border-radius: 10px; background: #fff; width: 100%; font: 500 1rem var(--n-font); padding: .65rem .85rem; min-height: 2.9rem; }
html[data-theme="neutral"] .auth input:focus { border-color: var(--n-ink); }
html[data-theme="neutral"] .auth button[type=submit] { background: var(--n-ink); border-color: var(--n-ink); border-radius: 10px; font-family: var(--n-font); padding: .7rem 1.3rem; width: 100%; font-size: 1rem; }
html[data-theme="neutral"] .auth .switch input { accent-color: var(--n-ink); }
html[data-theme="neutral"] .auth .switch-mode { margin-top: 1rem; font-size: .98rem; }
html[data-theme="neutral"] .auth .switch-mode button { background: none; border: 0; padding: 0; color: var(--n-ink); font: 650 1em var(--n-font); text-decoration: underline; text-underline-offset: 3px; display: inline; }
html[data-theme="neutral"] .auth .switch-mode button:hover { background: none; }
html[data-theme="neutral"] .auth fieldset.kind label.switch { padding: .55rem .8rem; border: 1.5px solid var(--n-line); border-radius: 10px; margin: .4rem 0; }
html[data-theme="neutral"] .auth fieldset.kind label.switch:has(input:checked) { border-color: var(--n-ink); background: var(--n-soft); }
html[data-theme="neutral"] .auth .err { color: #b3261e; }
html[data-theme="neutral"] .auth .or { text-align: center; color: var(--n-text2); margin: .9rem 0 .5rem; font-size: .95rem; }
html[data-theme="neutral"] .auth button.google { width: 100%; background: #fff; color: var(--n-ink); border: 1.5px solid #c5cad8; border-radius: 10px; font: 650 1rem var(--n-font); padding: .7rem 1.3rem; }
html[data-theme="neutral"] .auth button.google:hover { border-color: var(--n-ink); }

@media (max-width: 860px) {
  .hub-bar nav { display: none; }
  .hub-bar { justify-content: space-between; }
  .paths, .straight { grid-template-columns: 1fr; }
  .path { min-height: 0; }
  .shared-cols { grid-template-columns: 1fr; }
  .shared-cols > div, .shared-cols > div + div { padding: 1.1rem 0 .4rem; border-left: 0; border-top: 1px solid var(--n-line); }
  .shared-cols > div:first-child { border-top: 0; }
}
@media (prefers-reduced-motion: reduce) { .btn-n:hover { transform: none; } }

body.hub .btn-n { color: #fff; }
