@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&display=swap');

/* =========================================================
   Free PSIRA — shared stylesheet for students./colleges. subdomains
   Palette: deep navy, warm orange, warm-neutral greys
   Type: Fraunces (display) + Inter (body)
   ========================================================= */

:root{
  --navy:#16233f;
  --navy-2:#22304f;
  --navy-3:#2f3f60;
  --orange:#e8770f;
  --orange-dark:#cf6608;
  --ink:#1d2733;
  --muted:#5b6472;
  --line:#e6e8ec;
  --soft:#f7f8fa;
  --white:#fff;
  --radius:16px;
  --shadow:0 24px 60px rgba(22,35,63,.14);
}

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

html{ scroll-behavior:smooth; }

body{
  margin:0;
  font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Arial,sans-serif;
  color:var(--ink);
  background:var(--white);
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
}

img{ display:block; max-width:100%; }
a{ color:var(--orange-dark); }

h1,h2,h3,h4{
  font-family:'Fraunces','Iowan Old Style',Georgia,'Times New Roman',serif;
  color:var(--navy);
  line-height:1.15;
  margin:0 0 .5em;
  font-weight:600;
  letter-spacing:-.01em;
  text-wrap:balance;
}
p{ margin:0 0 1em; }

.wrap{ max-width:1140px; margin:0 auto; padding:0 24px; }

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

.site-header{
  position:sticky; top:0; z-index:50;
  background:rgba(255,255,255,.94);
  backdrop-filter:saturate(180%) blur(10px);
  -webkit-backdrop-filter:saturate(180%) blur(10px);
  border-bottom:1px solid transparent;
  transition:border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-stuck{
  border-bottom-color:var(--line);
  box-shadow:0 6px 24px rgba(22,35,63,.06);
}

.nav{ display:flex; align-items:center; gap:28px; height:74px; }

.brand{
  display:flex; align-items:center; gap:10px;
  font-weight:700; font-size:17px; letter-spacing:-.01em;
  color:var(--navy); text-decoration:none;
}
.brand .mark{
  width:32px; height:32px; border-radius:8px;
  background:var(--navy); color:#fff;
  display:grid; place-items:center;
  font-family:Georgia,serif; font-size:17px; line-height:1;
}
.brand small{
  display:block; font-size:11px; font-weight:600; letter-spacing:.08em;
  text-transform:uppercase; color:var(--orange-dark); line-height:1;
  margin-top:2px;
}
.brand-text{ display:flex; flex-direction:column; }

.menu{ display:flex; gap:28px; margin-left:auto; align-items:center; }
.menu a{
  color:#3c4655; text-decoration:none; font-size:15px; font-weight:500;
  padding:8px 0; border-bottom:2px solid transparent;
  transition:color .15s ease, border-color .15s ease;
}
.menu a:hover{ color:var(--navy); border-bottom-color:var(--orange); }
/* the menu's copy of the main button is for the mobile panel only */
.menu .btn-sm{ display:none; }

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

.nav-toggle{
  display:none; align-items:center; justify-content:center;
  width:42px; height:42px; padding:0;
  background:#fff; color:var(--navy);
  border:1px solid var(--line); border-radius:9px; cursor:pointer;
}
.nav-toggle:focus-visible{ outline:3px solid var(--orange); outline-offset:2px; }
.nav-toggle svg{ width:20px; height:20px; }

/* ---------- buttons ---------- */

.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  background:var(--orange); color:#fff; text-decoration:none;
  font-weight:600; font-size:16px; padding:15px 28px; border-radius:8px;
  border:2px dashed rgba(255,255,255,.55);
  box-shadow:0 6px 18px rgba(232,119,15,.25);
  transition:transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover{ background:var(--orange-dark); transform:translateY(-1px); }
.btn:focus-visible{ outline:3px solid var(--navy); outline-offset:3px; }
.btn-sm{ padding:11px 20px; font-size:14.5px; border-width:1.5px; }
.btn-ghost{ background:#fff; color:var(--navy); border:1px solid var(--line); box-shadow:none; }
.btn-ghost:hover{ background:var(--soft); }

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

.hero{ padding:76px 0 64px; border-bottom:1px solid var(--line); text-align:center; }
.hero-grid{ display:block; }
.hero h1{ font-size:clamp(34px,4.4vw,56px); max-width:20ch; margin-left:auto; margin-right:auto; }
.hero .lede{ font-size:18px; color:var(--muted); max-width:62ch; margin-left:auto; margin-right:auto; }
.hero-actions{ display:flex; gap:14px; flex-wrap:wrap; justify-content:center; }
.hero .device{ max-width:720px; margin:44px auto 0; }
.hero .panel{ max-width:600px; margin:44px auto 0; }

.badge{
  display:inline-flex; align-items:center; gap:8px;
  background:var(--soft); border:1px solid var(--line); color:#334155;
  font-size:12px; font-weight:600; letter-spacing:.08em; text-transform:uppercase;
  padding:8px 16px; border-radius:999px; margin-bottom:22px;
}
.badge::before{ content:""; width:8px; height:8px; border-radius:50%; background:var(--orange); }

.checks{
  display:flex; gap:32px; flex-wrap:wrap; justify-content:center;
  margin-top:30px;
}
.check{
  display:flex; gap:10px; align-items:flex-start;
  font-size:14px; font-weight:600; color:var(--navy); max-width:240px;
}
.check svg{ flex:0 0 20px; margin-top:2px; color:var(--orange); }

/* ---------- students: quiz mock ---------- */

.device{
  border-radius:18px; padding:26px;
  background:linear-gradient(150deg,#eef2f8 0%,#e3e9f3 55%,#f6f1ea 100%);
  box-shadow:var(--shadow);
}
.device-inner{
  background:var(--navy); border-radius:12px; padding:18px;
  color:#cdd7e8; font-size:11px;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.08);
}
.device-bar{ display:flex; justify-content:space-between; align-items:center; margin-bottom:14px; }
.device-bar span:first-child{ font-weight:600; color:#fff; letter-spacing:.04em; }
.device-bar span:last-child{ color:var(--orange); font-weight:700; }
.q{ background:var(--navy-2); border-radius:8px; padding:12px; margin-bottom:10px; }
.q b{ display:block; color:#fff; font-size:12px; margin-bottom:8px; }
.opt{ height:9px; border-radius:5px; background:var(--navy-3); margin:8px 0; }
.opt.on{ background:var(--orange); width:62%; }

/* ---------- colleges: dashboard mock ---------- */

.panel{
  border-radius:18px; padding:26px;
  background:var(--navy); color:#d7dfec; font-size:13px;
  box-shadow:0 24px 60px rgba(22,35,63,.18);
}
.panel-head{ display:flex; justify-content:space-between; align-items:center; margin-bottom:18px; }
.panel-head b{ color:#fff; font-size:13px; letter-spacing:.04em; }
.panel-head span{ color:var(--orange); font-weight:700; font-size:12px; }
.row{
  display:flex; justify-content:space-between; align-items:center; gap:12px;
  background:var(--navy-2); border-radius:9px; padding:13px 14px; margin-bottom:9px;
}
.row small{ display:block; color:#93a1b8; font-size:11px; }
.row strong{ color:#fff; font-weight:600; font-size:13px; }
.pill{
  background:var(--orange); color:#fff; font-size:11px; font-weight:700;
  padding:5px 10px; border-radius:999px; white-space:nowrap;
}
.pill.grey{ background:var(--navy-3); color:#b7c3d6; }
.panel-foot{
  margin-top:16px; padding-top:14px;
  border-top:1px solid rgba(255,255,255,.1); color:#93a1b8; font-size:11.5px;
}

/* ---------- sections ---------- */

/* Only the page's own sections get the section rhythm — not nested
   elements such as the chat panel, which is also a <section>. */
body > section{ padding:72px 0; scroll-margin-top:90px; }

.section-head{
  max-width:760px;
  margin:0 auto 46px;
  text-align:center;
}
.section-head h2{ font-size:clamp(26px,3vw,38px); }
.section-head p{ color:var(--muted); font-size:17px; margin:0; }

.alt{ background:var(--soft); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }

/* ---------- steps ---------- */

.steps{ display:grid; grid-template-columns:repeat(4,1fr); gap:20px; }
.steps.five{ grid-template-columns:repeat(5,1fr); gap:16px; }
.step{
  background:#fff; border:1px solid var(--line); border-radius:var(--radius);
  padding:26px 22px;
}
.steps.five .step{ padding:22px 18px; }
.step .num{
  width:38px; height:38px; border-radius:50%;
  display:grid; place-items:center;
  background:var(--navy); color:#fff; font-weight:700; font-size:15px;
  margin-bottom:16px;
}
.steps.five .step .num{ width:34px; height:34px; font-size:14px; margin-bottom:14px; }
.step h3{ font-size:19px; margin-bottom:8px; }
.steps.five .step h3{ font-size:17px; margin-bottom:6px; }
.step p{ font-size:14.5px; color:var(--muted); margin:0; }
.steps.five .step p{ font-size:13.5px; }

/* ---------- cards ---------- */

.cards{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.cards.four{ grid-template-columns:repeat(4,1fr); }
.card{
  border:1px solid var(--line); border-radius:var(--radius);
  padding:26px; background:#fff;
}
.card .tag{
  font-size:12px; font-weight:700; letter-spacing:.06em; text-transform:uppercase;
  color:var(--orange-dark);
}
.card h3{ font-size:20px; margin:10px 0 8px; }
.cards.four .card h3{ font-size:18px; }
.card p{ font-size:14.5px; color:var(--muted); margin:0; }
.cards.four .card p{ font-size:14px; }

/* ---------- principles ---------- */

.principles{ display:grid; grid-template-columns:repeat(4,1fr); gap:20px; }
.principle h3{ font-size:18px; margin-bottom:6px; }
.principle p{ font-size:14.5px; color:var(--muted); margin:0; }
.principle::before{
  content:""; display:block; width:38px; height:3px;
  background:var(--orange); border-radius:2px; margin-bottom:14px;
}

/* ---------- split / lists ---------- */

.split{ display:grid; grid-template-columns:1fr 1fr; gap:32px; align-items:start; }

.list{ list-style:none; padding:0; margin:0; }
.list li{
  display:flex; gap:12px; padding:14px 0;
  border-bottom:1px solid var(--line);
  font-size:15px; color:var(--ink);
}
.list li:last-child{ border-bottom:0; }
.list svg{ flex:0 0 20px; margin-top:3px; }
.tick{ color:var(--orange); }
.cross{ color:#b45309; }

.box{ background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:28px; }
.box h3{ font-size:20px; margin-bottom:10px; }

/* ---------- faq ---------- */

.faq{ max-width:820px; margin:0 auto; }
.faq details{ border-bottom:1px solid var(--line); padding:18px 0; }
.faq summary{
  cursor:pointer; font-weight:600; font-size:17px; color:var(--navy);
  list-style:none; display:flex; justify-content:space-between; align-items:center; gap:16px;
}
.faq summary::-webkit-details-marker{ display:none; }
.faq summary::after{ content:"+"; font-size:22px; font-weight:400; color:var(--orange); line-height:1; }
.faq details[open] summary::after{ content:"–"; }
.faq summary:focus-visible{ outline:3px solid var(--orange); outline-offset:4px; border-radius:4px; }
.faq details p{ margin:14px 0 0; color:var(--muted); font-size:15.5px; }

/* ---------- cta ---------- */

.cta{ background:var(--navy); color:#dbe2ee; text-align:center; }
.cta h2{ color:#fff; font-size:clamp(26px,3vw,36px); }
.cta p{ color:#c3cddd; max-width:56ch; margin:0 auto 26px; }
.cta .fine{ font-size:13px; color:#93a1b8; margin-top:18px; }

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

.site-footer{ background:#fff; border-top:1px solid var(--line); padding:56px 0 30px; }
.foot-grid{
  display:grid; grid-template-columns:1.5fr 1fr 1fr; gap:40px;
  padding-bottom:36px; border-bottom:1px solid var(--line);
}
.foot-brand p{ font-size:14px; color:var(--muted); max-width:34ch; margin:12px 0 0; }
.foot-col h4{
  font-family:'Inter',sans-serif; font-size:12px; font-weight:700;
  letter-spacing:.09em; text-transform:uppercase; color:var(--navy);
  margin:0 0 12px;
}
.foot-col a{
  display:block; color:var(--muted); text-decoration:none;
  font-size:14px; padding:6px 0;
}
.foot-col a:hover{ color:var(--orange-dark); }
.foot-bottom{
  display:flex; justify-content:space-between; gap:20px; flex-wrap:wrap;
  padding-top:22px; font-size:13px; color:var(--muted);
}
.foot-bottom a{ color:var(--muted); text-decoration:none; border-bottom:1px solid var(--line); }
.foot-bottom a:hover{ color:var(--navy); }

/* ---------- responsive ---------- */

@media (max-width:1000px){
  .steps{ grid-template-columns:repeat(2,1fr); }
  .steps.five{ grid-template-columns:repeat(3,1fr); }
  .cards{ grid-template-columns:repeat(2,1fr); }
  .cards.four{ grid-template-columns:repeat(2,1fr); }
  .principles{ grid-template-columns:repeat(2,1fr); }
  .foot-grid{ grid-template-columns:1fr 1fr; }
  .foot-brand{ grid-column:1 / -1; }
}

@media (max-width:900px){
  .hero-grid{ grid-template-columns:1fr; gap:36px; }
  .hero{ padding:52px 0 44px; }
  .split{ grid-template-columns:1fr; }
}

@media (max-width:820px){
  .nav{ height:66px; gap:16px; }
  .menu{
    position:absolute; top:66px; left:0; right:0;
    display:none; flex-direction:column; align-items:stretch; gap:0;
    margin:0; padding:6px 24px 18px;
    background:#fff; border-bottom:1px solid var(--line);
    box-shadow:0 18px 30px rgba(22,35,63,.08);
  }
  .site-header[data-open="true"] .menu{ display:flex; }
  .menu a{ padding:14px 0; border-bottom:1px solid var(--line); font-size:16px; }
  .menu a:last-child{ border-bottom:0; }
  .nav-actions{ margin-left:auto; }
  .nav-toggle{ display:inline-flex; }
  .nav-actions .btn-sm{ display:none; }
  .menu .btn-sm{ display:inline-flex; margin-top:14px; width:100%; }
}

@media (max-width:560px){
  .steps, .steps.five, .cards, .cards.four, .principles{ grid-template-columns:1fr; }
  .checks{ gap:18px; }
  .hero-actions .btn{ width:100%; }
  .foot-grid{ grid-template-columns:1fr; gap:28px; }
  .section-head{ margin-bottom:34px; }
  body > section{ padding:56px 0; }
}

@media (prefers-reduced-motion:reduce){
  html{ scroll-behavior:auto; }
  *{ transition:none !important; }
}
