/* PeerOnCall — shared styling for the landing and auth pages.
   Tokens are copied from index.html so the two stay visually identical. If you
   change a colour here, change it there too (or extract index.html's <style>
   into this file). */

:root {
  --navy:#0f2035; --navy-mid:#1a3350; --navy-light:#234468;
  --ember:#c8401a; --ember-light:#e8562a; --ember-pale:#fdf0eb;
  --slate:#4a5568; --mist:#f4f6f9; --border:#dce3ed;
  --text:#1a2332; --text-muted:#6b7a8d;
  --green:#1a7a4a; --green-bg:#eaf5ef;
  --amber:#9a6200; --amber-bg:#fef9ee;
  --red:#a32020; --red-bg:#fef0f0;
  --shadow:0 2px 12px rgba(15,32,53,0.08);
  --shadow-lg:0 8px 32px rgba(15,32,53,0.14);
}

*{box-sizing:border-box;margin:0;padding:0}
body{font-family:'DM Sans',sans-serif;background:var(--mist);color:var(--text);min-height:100vh}

/* ---- nav (mirrors index.html) ---- */
.nav{background:var(--navy);padding:0 28px;display:flex;align-items:center;justify-content:space-between;height:54px;position:sticky;top:0;z-index:200}
.nav-brand{display:flex;align-items:center;gap:10px;text-decoration:none}
.nav-logo{width:32px;height:32px;display:block;object-fit:contain;flex-shrink:0}
.nav-title{font-family:'DM Serif Display',serif;font-size:17px;color:white}
.nav-subtitle{font-size:10px;color:rgba(255,255,255,0.4);letter-spacing:.1em;text-transform:uppercase}
.nav-right{display:flex;align-items:center;gap:12px}
.nav-link{font-size:13px;font-weight:500;color:rgba(255,255,255,0.75);text-decoration:none;padding:6px 10px;border-radius:6px}
.nav-link:hover{color:white;background:rgba(255,255,255,0.08)}
.nav-user{font-size:12px;color:rgba(255,255,255,0.5);max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* Mobile nav toggle — landing.html only. Scoped under .nav-landing (a class no other
   page's <nav> carries) so it structurally cannot affect index.html/practices.html/
   dashboard.html/login.html/signup.html's nav, none of which render a .nav-toggle button
   or opt into this collapse behaviour. */
.nav-toggle{display:none;background:none;border:none;color:white;font-size:22px;line-height:1;cursor:pointer;padding:4px 8px}

/* ---- account dropdown (mirrored in index.html; built by mountAccountMenu) ---- */
.acct{position:relative}
.acct-btn{display:flex;align-items:center;gap:6px;background:rgba(255,255,255,0.08);border:1px solid rgba(255,255,255,0.14);color:white;font-family:'DM Sans',sans-serif;font-size:13px;font-weight:500;padding:7px 12px;border-radius:8px;cursor:pointer;transition:background .15s}
.acct-btn:hover{background:rgba(255,255,255,0.16)}
.acct-caret{font-size:10px;opacity:.7;transition:transform .15s}
.acct-btn[aria-expanded="true"] .acct-caret{transform:rotate(180deg)}
.acct-menu{position:absolute;top:calc(100% + 8px);right:0;min-width:224px;background:white;border:1px solid var(--border);border-radius:10px;box-shadow:var(--shadow-lg);padding:6px;z-index:300}
.acct-menu[hidden]{display:none}
.acct-email{font-size:12px;color:var(--text-muted);padding:8px 10px 9px;border-bottom:1px solid var(--border);margin-bottom:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.acct-item{display:block;width:100%;text-align:left;background:none;border:none;font-family:'DM Sans',sans-serif;font-size:13px;font-weight:500;color:var(--text);padding:9px 10px;border-radius:7px;cursor:pointer;text-decoration:none}
.acct-item:hover{background:var(--mist)}
.acct-item[aria-current="page"]{color:var(--navy);background:var(--mist)}
.acct-signout{color:var(--red)}

/* ---- practices history ---- */
/* Bottom padding kept modest (was 64px) -- the shared footer now closes the page
   with its own top padding, so a large trailing gap here would double up on it. */
.pracwrap{max-width:760px;margin:0 auto;padding:40px 24px 32px}
.prachead{margin-bottom:24px}
.prachead h1{font-family:'DM Serif Display',serif;font-size:28px;color:var(--navy);font-weight:400;margin-bottom:6px}
.prachead .sub{font-size:13px;color:var(--text-muted);line-height:1.6;max-width:62ch}
.pracempty{background:white;border:1px solid var(--border);border-radius:12px;padding:32px;text-align:center;box-shadow:var(--shadow)}
.pracempty p{font-size:13px;color:var(--text-muted);line-height:1.7;margin-bottom:16px}
.praccard{background:white;border:1px solid var(--border);border-radius:12px;box-shadow:var(--shadow);margin-bottom:12px;overflow:hidden}
.prachdr{display:flex;align-items:center;gap:14px;padding:16px 18px;cursor:pointer;width:100%;background:none;border:none;text-align:left;font-family:'DM Sans',sans-serif}
.prachdr:hover{background:var(--mist)}
.pracmain{flex:1;min-width:0}
.pracname{font-size:14px;font-weight:600;color:var(--navy);margin-bottom:3px}
.pracdate{font-size:12px;color:var(--text-muted)}
.pracscore{font-size:18px;font-weight:600;white-space:nowrap}
.pracscore span{font-size:12px;color:var(--text-muted);font-weight:400}
.pracchev{font-size:16px;color:var(--text-muted);transition:transform .15s}
.prachdr[aria-expanded="true"] .pracchev{transform:rotate(90deg)}
.pracband{font-size:11px;font-weight:600;padding:3px 9px;border-radius:99px;white-space:nowrap}
.pb-ready{background:var(--green-bg);color:var(--green)}
.pb-good{background:var(--mist);color:var(--slate)}
.pb-keep{background:var(--amber-bg);color:var(--amber)}
.pb-more{background:var(--red-bg);color:var(--red)}
.pracbody{padding:0 18px 18px;border-top:1px solid var(--border)}
.pracbody[hidden]{display:none}
.pracsum{font-size:13px;line-height:1.7;color:var(--slate);padding:14px 0}
.practhr{display:flex;gap:8px;font-size:12px;line-height:1.6;color:var(--red);background:var(--red-bg);border-radius:8px;padding:10px 12px;margin-bottom:14px}
.praclbl{font-size:11px;font-weight:600;color:var(--text-muted);letter-spacing:.06em;text-transform:uppercase;margin-bottom:8px}
.praccomp{display:grid;grid-template-columns:1fr auto;gap:8px 14px;align-items:start}
.praccomp .cn{font-size:13px;color:var(--text);line-height:1.5}
.praccomp .cn em{display:block;font-style:normal;font-size:12px;color:var(--text-muted);line-height:1.55;margin-top:2px}
.pracsp{font-size:11px;font-weight:600;padding:2px 8px;border-radius:99px;white-space:nowrap;height:fit-content}
.pracsp1{background:var(--red-bg);color:var(--red)}
.pracsp2{background:var(--amber-bg);color:var(--amber)}
.pracsp3{background:var(--green-bg);color:var(--green)}
.pracnote{font-size:11px;color:var(--text-muted);line-height:1.6;text-align:center;padding:18px 0 0}
@media(max-width:560px){
  .pracwrap{padding:28px 16px 24px}
  .prachdr{flex-wrap:wrap;gap:8px 12px}
  .pracband{order:3}
}

/* ---- buttons (mirrors index.html) ---- */
.btn{padding:9px 18px;border-radius:8px;font-size:13px;font-weight:600;font-family:'DM Sans',sans-serif;cursor:pointer;border:none;transition:all .15s;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:8px}
.btn-primary{background:var(--navy);color:white}
.btn-primary:hover:not(:disabled){background:var(--navy-mid)}
.btn-secondary{background:white;color:var(--text);border:1px solid var(--border)}
.btn-secondary:hover:not(:disabled){background:var(--mist)}
.btn-ember{background:var(--ember);color:white}
.btn-ember:hover:not(:disabled){background:var(--ember-light)}
.btn:disabled{opacity:.45;cursor:default}
.btn-block{width:100%}
.btn-ghost{background:none;border:none;color:var(--navy);font-size:13px;font-weight:500;cursor:pointer;text-decoration:underline;padding:0;font-family:'DM Sans',sans-serif}
.btn-ghost:hover{color:var(--ember)}
.btn-sm{padding:6px 14px;font-size:12px}

/* ---- language toggle (mirrors index.html) ---- */
.lang-sel{display:flex;gap:2px;background:rgba(255,255,255,0.08);border-radius:20px;padding:2px}
.lang-btn{padding:5px 12px;font-size:11px;font-weight:600;color:rgba(255,255,255,0.55);background:none;border:none;cursor:pointer;border-radius:16px;transition:all .15s;font-family:'DM Sans',sans-serif;letter-spacing:.04em}
.lang-btn:hover{color:white}
.lang-btn.active{color:white;background:var(--ember)}

/* button spinner */
.bspin{width:14px;height:14px;border:2px solid rgba(255,255,255,.4);border-top-color:#fff;border-radius:50%;animation:spin .7s linear infinite;display:none}
.btn.loading .bspin{display:inline-block}
.btn-secondary .bspin{border-color:rgba(15,32,53,.2);border-top-color:var(--navy)}
@keyframes spin{to{transform:rotate(360deg)}}

/* ---- landing ---- */
.hero{max-width:1060px;margin:0 auto;padding:64px 32px 8px}
.hero-inner{display:grid;grid-template-columns:1.15fr 0.85fr;gap:40px;align-items:center}
.hero h1{font-family:'DM Serif Display',serif;font-size:44px;line-height:1.1;color:var(--navy);font-weight:400;margin-bottom:16px;max-width:14ch;text-wrap:balance}
.hero .lede{font-size:16px;line-height:1.7;color:var(--slate);max-width:52ch;margin-bottom:28px}
.hero-cta{display:flex;gap:12px;flex-wrap:wrap;align-items:center}
.hero-graphic{width:100%;max-width:340px;justify-self:end}
.hero-graphic svg{width:100%;height:auto;display:block}

/* A caption to the buttons directly above it, not a floating teaser -- tight
   top margin, left-aligned with the rest of the hero text column. */
.hero-caption{font-size:12px;color:var(--text-muted);margin-top:10px}
.hero-caption a{color:var(--ember);font-weight:500;text-decoration:none}
.hero-caption a:hover{text-decoration:underline}

.fsection{background:var(--ember-pale)}
.fgrid{max-width:1060px;margin:0 auto;padding:40px 32px;display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.fcard{background:white;border:1px solid var(--border);border-radius:12px;padding:20px;box-shadow:var(--shadow)}
.fcard .fico{width:34px;height:34px;border-radius:50%;background:white;border:1.5px solid var(--ember-pale);display:flex;align-items:center;justify-content:center;margin-bottom:12px}
.fcard .fico svg{width:17px;height:17px;stroke:var(--ember);fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.fcard h3{font-size:14px;font-weight:600;color:var(--navy);margin-bottom:6px}
.fcard p{font-size:13px;line-height:1.6;color:var(--text-muted)}

/* "How it works" -- numbered, horizontally connected steps, deliberately NOT styled
   as bordered/shadowed cards like .fcard above, so it can't read as a fourth feature
   card. White background, alternating with the ember-pale card section above it. */
.hiw-section{background:white}
.hiw-wrap{max-width:1060px;margin:0 auto;padding:48px 32px}
.hiw-title{font-family:'DM Serif Display',serif;font-size:22px;color:var(--navy);font-weight:400;text-align:center;margin-bottom:32px}
.hiw-steps{display:flex;align-items:flex-start;justify-content:center}
.hiw-step{flex:1;max-width:260px;text-align:center;padding:0 14px}
.hiw-num{width:32px;height:32px;border-radius:50%;background:var(--navy);color:white;display:flex;align-items:center;justify-content:center;font-family:'DM Serif Display',serif;font-size:15px;margin:0 auto 12px}
.hiw-step h3{font-size:14px;font-weight:600;color:var(--navy);margin-bottom:6px}
.hiw-step p{font-size:12px;line-height:1.6;color:var(--text-muted)}
.hiw-connector{flex:0 0 40px;height:2px;background:var(--border);margin-top:16px}

/* Its own proper section -- full-width, a distinct light-neutral tone (mist, not the
   ember-pale already used for feature cards, so all four sections stay visually
   distinct), matching the vertical rhythm of the sections above it rather than
   reading as a squeezed-in aside. Text/content unchanged. */
.privacy-section{background:var(--mist)}
.privacy-wrap{max-width:1060px;margin:0 auto;padding:48px 32px}
.privacy-note{font-size:12px;color:var(--text-muted);line-height:1.6;max-width:640px;margin:0 auto;padding:16px 20px;background:white;border:1px solid var(--border);border-radius:8px;scroll-margin-top:70px}
.privacy-note strong{color:var(--slate);font-weight:600}

/* ---- footer ---- */
/* One continuous container: same background throughout, the two content groups
   (links vs. McMaster credit) separated only by spacing -- no border, no colour
   seam between them. */
.site-footer{background:var(--navy)}
.footer-links{padding:32px 32px 20px;text-align:center}
.footer-links .flinks{display:flex;justify-content:center;flex-wrap:wrap;gap:6px 18px;margin-bottom:14px}
.footer-links .flink{font-size:12px;color:rgba(255,255,255,.75);text-decoration:none}
.footer-links .flink:hover{color:white;text-decoration:underline}
.footer-links button.flink-logout{background:none;border:none;font-family:'DM Sans',sans-serif;cursor:pointer;padding:0}
.footer-links .faccess{font-size:11px;color:rgba(255,255,255,.5);line-height:1.6;max-width:60ch;margin:0 auto}

.footer-mcmaster{text-align:center;padding:20px 24px 28px}
/* assets/mcmaster-logo-white.png is a white monochrome silhouette generated from
   the real (dark-on-transparent) supplied logo, specifically for this navy
   footer -- the original's crest colour doesn't survive, but it reads cleanly
   here with no background plate needed, the same "reversed for dark
   backgrounds" treatment most institutional logos get. */
.footer-logo{height:52px;width:auto;margin:0 auto 10px;display:block}
.fcredit{font-size:10px;color:rgba(255,255,255,.55);max-width:640px;margin:0 auto 6px;line-height:1.5}
.footer-mcmaster .fcopy{font-size:10px;color:rgba(255,255,255,.4)}

/* ---- auth card ---- */
.authwrap{max-width:420px;margin:0 auto;padding:56px 24px}
.authcard{background:white;border:1px solid var(--border);border-radius:16px;padding:32px;box-shadow:var(--shadow)}
.authcard h1{font-family:'DM Serif Display',serif;font-size:25px;color:var(--navy);font-weight:400;margin-bottom:6px}
.authcard .sub{font-size:13px;color:var(--text-muted);line-height:1.6;margin-bottom:24px}

.field{margin-bottom:16px}
.field-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.field-row .field{margin-bottom:0}
@media (max-width:420px){
  .field-row{grid-template-columns:1fr;gap:0}
  .field-row .field{margin-bottom:16px}
  .field-row .field:last-child{margin-bottom:0}
}
.field label{display:block;font-size:11px;font-weight:600;color:var(--text-muted);letter-spacing:.06em;text-transform:uppercase;margin-bottom:6px}
.field input{width:100%;padding:10px 14px;border:1px solid var(--border);border-radius:8px;font-size:14px;font-family:'DM Sans',sans-serif;color:var(--text);background:white;outline:none;transition:border-color .15s}
.field input:focus{border-color:var(--navy-light)}
.field input[aria-invalid="true"]{border-color:var(--red)}
.field .err{display:none;font-size:12px;color:var(--red);margin-top:5px;line-height:1.45}
.field.invalid .err{display:block}
.field .hint{font-size:11px;color:var(--text-muted);margin-top:5px;line-height:1.45}

.alert{border-radius:8px;padding:11px 14px;font-size:13px;line-height:1.55;margin-bottom:18px;border:1px solid;display:none}
.alert.show{display:block}
.alert-error{background:var(--red-bg);border-color:#f5c6c6;color:var(--red)}
.alert-ok{background:var(--green-bg);border-color:#b8e0c8;color:var(--green)}
.alert-info{background:var(--amber-bg);border-color:#f0d89a;color:var(--amber)}

.authfoot{margin-top:20px;padding-top:18px;border-top:1px solid var(--border);font-size:13px;color:var(--text-muted);text-align:center;line-height:1.7}
.authfoot a{color:var(--navy);font-weight:500}
.authfoot a:hover{color:var(--ember)}
.authrow{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}

/* full-page gate shown while the session is being checked */
.gate{position:fixed;inset:0;background:var(--mist);z-index:9999;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px}
.gate .lspinner{width:38px;height:38px;border:3px solid var(--border);border-top-color:var(--navy);border-radius:50%;animation:spin .7s linear infinite}
.gate .gtxt{font-size:13px;color:var(--text-muted)}

/* Single breakpoint driving landing.html's whole mobile/tablet layout (nav collapse,
   hero stacking, card grid) — covers both the 375px and 768px check widths so they get
   the same, consistently-verified simpler layout, rather than an unverified in-between
   state somewhere between two different breakpoints. */
@media (max-width:860px){
  .fgrid{grid-template-columns:1fr;padding:32px 22px 40px}
  .hero{padding:40px 22px 4px}
  .hero h1{font-size:32px;max-width:none}

  .nav-landing .nav-toggle{display:block}
  .nav-landing .nav-right{display:none;position:absolute;top:54px;left:0;right:0;flex-direction:column;align-items:stretch;gap:8px;background:var(--navy);padding:14px 20px 20px;box-shadow:var(--shadow-lg)}
  .nav-landing .nav-right.open{display:flex}
  .nav-landing .nav-right .lang-sel{align-self:flex-start}

  .hero-inner{grid-template-columns:1fr;gap:24px}
  .hero-graphic{max-width:220px;justify-self:center;order:2;margin:0 auto}
  .hero-text{order:1}

  .hiw-wrap{padding:36px 22px}
  .hiw-steps{flex-direction:column;align-items:center;gap:22px}
  .hiw-step{max-width:320px}
  .hiw-connector{display:none}

  .privacy-wrap{padding:36px 22px}

  .footer-links{padding:28px 22px 18px}
  .footer-links .flinks{gap:8px 14px}
  .footer-mcmaster{padding:20px 22px}
}
