/* PrevoInteract portal: public landing page and sign in.
 *
 * Structure follows the Prevoyance portal pattern already in use on the Satin
 * Closure360 portal, so the two read as one house. The palette does not: these
 * are the Prevoyance brand values from the Prevo AI stylesheet, primary
 * #1E5FA8 and accent #2D8CDD over a slate neutral ramp. Satin's violet belongs
 * to Satin and is deliberately not reused here.
 *
 * The product's own screens keep style.css. This file is only the two pages a
 * person sees before they are signed in.
 */

:root{
  --ground:#F6F8FB; --surface:#FFFFFF; --surface-2:#F1F5F9;
  --ink:#0F172A; --muted:#475569; --faint:#94A3B8;
  --rule:#E2E8F0; --rule-strong:#CBD5E1;
  --primary:#1E5FA8; --primary-h:#1A5292; --accent:#2D8CDD; --soft:#EFF6FF;
  --on-primary:#FFFFFF;
  --shadow:0 1px 2px rgba(15,23,42,.05), 0 10px 28px -18px rgba(15,23,42,.22);
  --radius:12px;
}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --ground:#0B1220; --surface:#111C2E; --surface-2:#16243A;
    --ink:#E6EDF6; --muted:#9BB0C9; --faint:#6D8098;
    --rule:#22314A; --rule-strong:#31435F;
    --primary:#4E9BE0; --primary-h:#63A8E6; --accent:#7BB9EE; --soft:#14243A;
    --on-primary:#08111F;
    --shadow:0 1px 2px rgba(0,0,0,.4), 0 12px 32px -20px rgba(0,0,0,.8);
  }
}
:root[data-theme="dark"]{
  --ground:#0B1220; --surface:#111C2E; --surface-2:#16243A;
  --ink:#E6EDF6; --muted:#9BB0C9; --faint:#6D8098;
  --rule:#22314A; --rule-strong:#31435F;
  --primary:#4E9BE0; --primary-h:#63A8E6; --accent:#7BB9EE; --soft:#14243A;
  --on-primary:#08111F;
  --shadow:0 1px 2px rgba(0,0,0,.4), 0 12px 32px -20px rgba(0,0,0,.8);
}

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0; background:var(--ground); color:var(--ink);
  font-family:"Source Sans 3",system-ui,-apple-system,"Segoe UI",sans-serif;
  font-size:16px; line-height:1.6; -webkit-font-smoothing:antialiased;
}
h1,h2,h3{font-family:"Archivo",system-ui,sans-serif; text-wrap:balance; margin:0; letter-spacing:-.015em}
a{color:var(--primary)}
.wrap{max-width:1120px; margin:0 auto; padding:0 22px}
.skip{position:absolute; left:-9999px}
.skip:focus{left:16px; top:12px; background:var(--surface); padding:8px 14px; border-radius:8px; z-index:99}
:focus-visible{outline:2px solid var(--accent); outline-offset:2px}

/* ---------- top bar ---------- */
.top{border-bottom:1px solid var(--rule); background:var(--surface)}
.top .wrap{display:flex; align-items:center; justify-content:space-between; gap:16px; height:66px}
.lockup{display:flex; align-items:center; gap:11px; text-decoration:none; color:inherit}
.brandmark{
  width:34px; height:34px; border-radius:9px; display:grid; place-items:center;
  background:var(--primary); color:var(--on-primary);
  font-family:"Archivo",sans-serif; font-weight:700; font-size:15px; letter-spacing:-.02em;
}
.brandword{font-family:"Archivo",sans-serif; font-weight:700; font-size:17px; letter-spacing:-.02em}
.brandword span{color:var(--primary)}
.brand-sub{display:block; font-size:11.5px; font-weight:400; color:var(--faint); letter-spacing:.02em}

/* ---------- buttons ---------- */
.btn{
  display:inline-block; font-family:"Source Sans 3",sans-serif; font-size:15px; font-weight:600;
  padding:10px 18px; border-radius:9px; border:1px solid var(--primary);
  background:var(--primary); color:var(--on-primary); text-decoration:none; cursor:pointer;
}
.btn:hover{background:var(--primary-h); border-color:var(--primary-h)}
.btn.ghost{background:transparent; color:var(--primary)}
.btn.ghost:hover{background:var(--soft)}
.btn.big{width:100%; padding:13px 18px; font-size:16px; text-align:center}

/* ---------- hero ---------- */
.hero{padding:64px 0 44px; border-bottom:1px solid var(--rule)}
.eyebrow{
  font-size:11.5px; font-weight:700; letter-spacing:.15em; text-transform:uppercase;
  color:var(--primary); margin:0 0 12px;
}
.hero h1{font-size:clamp(30px,4.4vw,46px); font-weight:700; line-height:1.12; max-width:17ch}
.hero .lede{font-size:18px; color:var(--muted); max-width:62ch; margin:18px 0 26px}
.cta{display:flex; flex-wrap:wrap; gap:11px}

/* ---------- section scaffolding ---------- */
section{padding:52px 0}
.sechead{margin-bottom:24px}
.sechead h2{font-size:25px; font-weight:700}
.sechead p{color:var(--muted); margin:8px 0 0; max-width:66ch}

/* ---------- access cards ---------- */
.paths{display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:16px}
.path{
  background:var(--surface); border:1px solid var(--rule); border-radius:var(--radius);
  box-shadow:var(--shadow); padding:22px; display:flex; flex-direction:column; gap:10px;
}
.path h3{font-size:17px; font-weight:600}
.path p{margin:0; color:var(--muted); font-size:15px; flex:1}
.path .go{font-weight:600; font-size:15px; text-decoration:none; color:var(--primary)}
.path .go:hover{text-decoration:underline}

/* ---------- principles ---------- */
.grid4{display:grid; grid-template-columns:repeat(auto-fit,minmax(235px,1fr)); gap:16px}
.card{background:var(--surface); border:1px solid var(--rule); border-radius:var(--radius); padding:20px; box-shadow:var(--shadow)}
.card h3{font-size:16px; font-weight:600; margin-bottom:7px}
.card p{margin:0; color:var(--muted); font-size:14.5px}

/* ---------- stats ---------- */
.stats{display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:1px; background:var(--rule); border:1px solid var(--rule); border-radius:var(--radius); overflow:hidden}
.stats div{background:var(--surface); padding:20px 18px}
.stats b{
  display:block; font-family:"Archivo",sans-serif; font-size:27px; font-weight:700;
  font-variant-numeric:tabular-nums; letter-spacing:-.02em;
}
.stats span{font-size:13.5px; color:var(--muted)}

/* ---------- footer ---------- */
.foot{border-top:1px solid var(--rule); background:var(--surface); padding:26px 0; margin-top:20px}
.foot p{margin:0 0 6px; font-size:13.5px; color:var(--muted)}
.foot .fine{color:var(--faint); font-size:12.5px; max-width:80ch}

/* ---------- auth page ---------- */
.authwrap{
  max-width:1120px; margin:0 auto; padding:44px 22px 70px;
  display:grid; grid-template-columns:1.15fr .85fr; gap:34px; align-items:start;
}
@media (max-width:900px){ .authwrap{grid-template-columns:1fr} }
.authside h1{font-size:27px; font-weight:700}
.authlede{color:var(--muted); margin:10px 0 22px; max-width:56ch}
.authpts{list-style:none; padding:0; margin:0 0 28px; display:flex; flex-direction:column; gap:8px}
.authpts li{padding-left:22px; position:relative; color:var(--muted); font-size:15px}
.authpts li::before{content:""; position:absolute; left:0; top:.62em; width:8px; height:8px; border-radius:50%; background:var(--accent)}

.guidehead{font-size:17px; font-weight:600; margin-bottom:4px}
.guidenote{color:var(--muted); font-size:14.5px; margin:0 0 14px}
.guide{list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:1px; background:var(--rule); border:1px solid var(--rule); border-radius:var(--radius); overflow:hidden}
.guide li{
  background:var(--surface); padding:14px 16px;
  display:grid; grid-template-columns:minmax(140px,1.1fr) minmax(150px,1.3fr) minmax(120px,.9fr) 2fr; gap:6px 14px; align-items:baseline;
}
@media (max-width:760px){ .guide li{grid-template-columns:1fr; gap:3px} }
.g-n{font-weight:700; font-size:15px}
.g-i{font-family:"IBM Plex Mono",ui-monospace,monospace; font-size:13px; color:var(--primary); overflow-wrap:anywhere}
.g-r{font-size:13px; font-weight:600; color:var(--ink); background:var(--soft); border-radius:99px; padding:2px 10px; justify-self:start}
.g-d{font-size:13.5px; color:var(--muted); grid-column:1 / -1}
@media (min-width:761px){ .g-d{grid-column:4 / 5} }

.authcard{background:var(--surface); border:1px solid var(--rule); border-radius:var(--radius); box-shadow:var(--shadow); padding:26px; position:sticky; top:22px}
.authform{display:flex; flex-direction:column; gap:14px; margin-top:16px}
.authform label{font-size:12px; font-weight:700; letter-spacing:.09em; text-transform:uppercase; color:var(--faint); display:block; margin-bottom:5px}
.authform input{
  font:inherit; font-size:16px; width:100%; padding:11px 13px; color:var(--ink);
  background:var(--surface); border:1px solid var(--rule-strong); border-radius:9px;
}
.authhelp{font-size:13px; color:var(--faint); margin:14px 0 0; line-height:1.55}
.err{background:#FDECEA; border:1px solid #E7B4AE; color:#8C2B20; padding:10px 13px; border-radius:9px; font-size:14.5px; margin:0}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]) .err{background:#331E1C; border-color:#5E3630; color:#F0B3AA}
}
:root[data-theme="dark"] .err{background:#331E1C; border-color:#5E3630; color:#F0B3AA}

@media (prefers-reduced-motion: reduce){*{transition:none !important; animation:none !important}}
