/* SISC e-Gatepass public landing page — minimalist institutional design. */
:root {
  --ink: #21172b;
  --ink-2: #3b2a4b;
  --purple: #4b2770;
  --purple-l: #68418d;
  --purple-soft: #f3eef8;
  --teal: #0b8b79;
  --teal-d: #087563;
  --paper: #ffffff;
  --canvas: #fcfbfd;
  --surface: #f7f5f9;
  --muted: #6c6375;
  --faint: #8b8294;
  --line: #e8e2ed;
  --radius: 14px;
  --radius-sm: 9px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper); color: var(--ink); font-size: 15px; line-height: 1.65;
  overflow-x: hidden; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid #9878b7; outline-offset: 3px; border-radius: 4px; }
::selection { color: #fff; background: var(--purple); }

/* Header */
.nav {
  position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between;
  gap: 22px; min-height: 78px; padding: 13px max(28px, calc((100vw - 1180px) / 2));
  background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line);
  transition: box-shadow .2s ease;
}
.nav.stuck { box-shadow: 0 4px 18px rgba(35, 20, 49, .045); }
.brand { display: flex; align-items: center; gap: 11px; min-width: 0; }
.brand-seal { width: 43px; height: 43px; flex: 0 0 43px; padding: 4px; border: 1px solid var(--line); border-radius: 11px; background: #fff; display: grid; place-items: center; }
.brand-seal img { width: 100%; height: 100%; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.brand-name { color: var(--ink); font-weight: 750; letter-spacing: -.025em; font-size: 15px; }
.brand-sy { color: var(--muted); font-size: 11px; margin-top: 3px; white-space: nowrap; }
.nav-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 42px; padding: 10px 16px; border-radius: 8px; border: 1px solid transparent; font-size: 13px; font-weight: 680; letter-spacing: -.005em; white-space: nowrap; cursor: pointer; transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-solid { background: var(--purple); color: #fff; border-color: var(--purple); box-shadow: none; }
.btn-solid:hover { background: #392054; border-color: #392054; }
.btn-line { color: var(--ink-2); background: #fff; border-color: #d9d0e2; }
.btn-line:hover { background: var(--purple-soft); border-color: #c7b4d9; }
.btn-lg { min-height: 48px; padding: 12px 18px; font-size: 13.5px; }
.btn .arr { transition: transform .18s ease; }
.btn:hover .arr { transform: translateX(3px); }

/* General layout and typography */
main { position: relative; }
.shell { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 28px; }
section { position: relative; padding: 86px 0; }
section.tight { padding-top: 0; padding-bottom: 76px; }
.eyebrow { display: flex; align-items: center; gap: 9px; color: var(--purple); font-size: 10.5px; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); flex: 0 0 auto; }
.eyebrow.center { justify-content: center; }
.sec-head { max-width: 650px; margin-bottom: 42px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head h2 { font-size: clamp(28px, 3.5vw, 40px); font-weight: 690; letter-spacing: -.045em; line-height: 1.18; margin-top: 12px; text-wrap: balance; }
.sec-head p { margin-top: 13px; color: var(--muted); line-height: 1.75; }

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(560px, 68vh, 780px);
  min-height: clamp(560px, 68svh, 780px);
  padding: clamp(64px, 8vw, 104px) 0 70px;
  background-color: #17281d;
  background-image:
    linear-gradient(90deg, rgba(13, 27, 18, .86) 0%, rgba(16, 31, 20, .80) 42%, rgba(16, 31, 20, .66) 100%),
    linear-gradient(0deg, rgba(10, 24, 16, .28), rgba(10, 24, 16, .08)),
    url("../Southville.webp");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center 54%;
  border-bottom: 1px solid rgba(255, 255, 255, .16);
}
.hero .eyebrow { color: rgba(255, 255, 255, .92); }
.hero .eyebrow-dot { background: #d2e8a6; box-shadow: 0 0 0 4px rgba(210, 232, 166, .14); }
.hero-school-year { color: rgba(255, 255, 255, .78); }
.hero h1 { color: #fff; text-shadow: 0 2px 22px rgba(0, 0, 0, .14); }
.hero h1 span { color: #e0d0f2; }
.hero-sub { color: rgba(255, 255, 255, .86); }
.hero-note { color: rgba(255, 255, 255, .78); }
.hero-note svg { color: #d2e8a6; }
.hero .btn-solid { background: #fff; color: var(--purple); border-color: #fff; box-shadow: 0 8px 24px rgba(0, 0, 0, .13); }
.hero .btn-solid:hover { background: #f3edf8; border-color: #f3edf8; }
.hero .btn-line { color: #fff; background: rgba(255, 255, 255, .09); border-color: rgba(255, 255, 255, .64); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.hero .btn-line:hover { color: #fff; background: rgba(255, 255, 255, .17); border-color: #fff; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(350px, .82fr); gap: clamp(38px, 6.5vw, 84px); align-items: center; }
.hero-copy { padding: 8px 0 15px; }
.hero-school-year { margin-top: 18px; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .01em; }
.hero h1 { margin-top: 14px; max-width: 11.5ch; font-size: clamp(43px, 5.4vw, 70px); font-weight: 720; letter-spacing: -.06em; line-height: 1.03; text-wrap: balance; }
.hero h1 span { color: var(--purple); }
.hero-sub { max-width: 52ch; margin-top: 22px; color: var(--muted); font-size: 16px; line-height: 1.8; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 11px; margin-top: 30px; }
.hero-note { display: flex; align-items: center; gap: 8px; margin-top: 23px; color: var(--muted); font-size: 12px; }
.hero-note svg { color: var(--teal); flex: 0 0 auto; }
.hero-panel { overflow: hidden; border: 1px solid #e3d9ec; border-radius: 16px; background: #fff; box-shadow: 0 18px 50px rgba(53, 31, 72, .07); }
.hero-panel-heading { display: flex; align-items: flex-start; gap: 14px; padding: 25px 25px 21px; background: #f8f5fb; border-bottom: 1px solid var(--line); }
.panel-mark { display: grid; place-items: center; width: 47px; height: 47px; flex: 0 0 47px; border: 1px solid #e1d5ec; border-radius: 12px; background: #fff; padding: 5px; }
.panel-overline { display: block; color: var(--purple); font-size: 9.5px; font-weight: 800; letter-spacing: .14em; }
.hero-panel-heading h2 { max-width: 23ch; margin-top: 5px; font-size: 18px; font-weight: 700; letter-spacing: -.025em; line-height: 1.3; }
.portal-steps { padding: 5px 25px; }
.portal-step { display: grid; grid-template-columns: 42px minmax(0,1fr) 22px; align-items: center; gap: 13px; padding: 17px 0; border-bottom: 1px solid #eee9f2; }
.portal-step:last-child { border-bottom: 0; }
.portal-step-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px; color: var(--purple); background: var(--purple-soft); }
.portal-step strong { display: block; color: var(--ink); font-size: 13.5px; font-weight: 700; }
.portal-step small { display: block; margin-top: 2px; color: var(--muted); font-size: 11.5px; line-height: 1.5; }
.portal-step-number { color: #a69aae; font-size: 10px; font-weight: 750; font-variant-numeric: tabular-nums; }
.hero-panel-footer { display: flex; align-items: center; gap: 8px; padding: 14px 25px; color: var(--muted); background: #fcfbfd; border-top: 1px solid var(--line); font-size: 11px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); flex: 0 0 auto; }

/* Static feature strip */
.feature-strip { padding: 0; background: #fff; border-bottom: 1px solid var(--line); }
.feature-strip-inner { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); padding-top: 21px; padding-bottom: 21px; }
.feature-item { display: flex; align-items: center; gap: 12px; padding: 2px 24px; border-right: 1px solid var(--line); }
.feature-item:first-child { padding-left: 0; }
.feature-item:last-child { border-right: 0; padding-right: 0; }
.feature-symbol { display: grid; place-items: center; width: 35px; height: 35px; border: 1px solid #dfd2eb; border-radius: 10px; background: #f7f2fb; color: var(--purple); font-size: 10px; font-weight: 800; flex: 0 0 auto; }
.feature-item strong { display: block; font-size: 12.5px; font-weight: 700; }
.feature-item small { display: block; color: var(--muted); font-size: 11px; margin-top: 1px; }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; align-items: stretch; }
.step { position: relative; padding: 25px 24px 26px; border: 1px solid var(--line); border-radius: 12px; background: #fff; transition: border-color .18s ease, box-shadow .18s ease; }
.step:hover { border-color: #d2c1e0; box-shadow: 0 8px 24px rgba(53,31,72,.045); }
.step-no { display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 21px; border-radius: 9px; background: var(--purple-soft); color: var(--purple); font-size: 11px; font-weight: 800; }
.step h3 { margin-bottom: 8px; font-size: 16px; font-weight: 700; letter-spacing: -.02em; line-height: 1.35; }
.step p { color: var(--muted); font-size: 13px; line-height: 1.75; }


/* Closing call to action */
.cta-wrap { text-align: left; }
.cta-card { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 30px; padding: clamp(28px, 5vw, 48px); border: 1px solid #e1d5eb; border-radius: 15px; background: #f8f5fb; }
.cta-card .eyebrow.center { justify-content: flex-start; }
.cta-card h2 { max-width: 22ch; margin-top: 10px; font-size: clamp(25px, 3vw, 34px); font-weight: 700; letter-spacing: -.045em; line-height: 1.18; text-wrap: balance; }
.cta-card p:not(.eyebrow) { max-width: 58ch; margin-top: 12px; color: var(--muted); font-size: 13px; line-height: 1.75; }
.cta-actions { display: flex; flex-direction: column; align-items: stretch; gap: 10px; min-width: 215px; }

/* Contact form */
.contact-section { padding: 82px 0; background: #fff; border-top: 1px solid var(--line); }
.contact-layout { display: grid; grid-template-columns: minmax(0,.82fr) minmax(0,1.18fr); gap: clamp(28px,6vw,78px); align-items: start; }
.contact-copy h2 { max-width: 14ch; margin: 12px 0 15px; font-size: clamp(30px,4vw,42px); font-weight: 700; letter-spacing: -.045em; line-height: 1.14; text-wrap: balance; }
.contact-copy p:not(.eyebrow) { max-width: 54ch; color: var(--muted); font-size: 13.5px; line-height: 1.8; }
.contact-links, .footer-links { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 22px; }
.contact-links a, .footer-links a, .footer-link-button { color: var(--purple); text-decoration: none; font-size: 12px; font-weight: 650; }
.contact-links a:hover, .footer-links a:hover, .footer-link-button:hover { text-decoration: underline; }
.contact-form { min-width: 0; padding: clamp(20px,3vw,30px); border: 1px solid var(--line); border-radius: 13px; background: #fff; box-shadow: 0 8px 30px rgba(35,20,49,.045); }
.contact-field-row { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.contact-field { display: grid; gap: 7px; margin-bottom: 16px; }
.contact-field label { color: var(--ink-2); font-size: 12px; font-weight: 700; }
.contact-field input, .contact-field select, .contact-field textarea { width: 100%; min-width: 0; border: 1px solid #ddd5e5; border-radius: 8px; background: #fff; color: var(--ink); font: inherit; font-size: 13px; padding: 12px 13px; outline: none; transition: border-color .15s ease, box-shadow .15s ease; }
.contact-field select option { color: #21172b; }
.contact-field textarea { resize: vertical; min-height: 130px; line-height: 1.6; }
.contact-field input:focus, .contact-field select:focus, .contact-field textarea:focus { border-color: var(--purple-l); box-shadow: 0 0 0 3px rgba(75,39,112,.09); }
.contact-form button[disabled] { opacity: .68; cursor: wait; }
.contact-status { min-height: 20px; margin: 12px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.contact-status.is-success { color: #176b4a; } .contact-status.is-error { color: #a62e37; } .contact-status.is-pending { color: var(--purple); }
.contact-honeypot { position: absolute!important; left: -10000px!important; width: 1px!important; height: 1px!important; overflow: hidden!important; }

/* Footer */
footer { display: flex; align-items: center; justify-content: space-between; gap: 18px 28px; flex-wrap: wrap; padding: 24px max(28px, calc((100vw - 1180px) / 2)); border-top: 1px solid var(--line); background: var(--canvas); color: var(--muted); font-size: 11px; }
footer > .footer-brand { display: flex; align-items: center; gap: 9px; color: var(--ink-2); font-weight: 700; letter-spacing: -.01em; }
.footer-brand img { width: 22px; height: 22px; object-fit: contain; border-radius: 5px; background: #fff; padding: 2px; }
.footer-links { margin: 0; align-items: center; gap: 15px; }
.footer-link-button { border: 0; background: none; font-family: inherit; cursor: pointer; padding: 0; }

/* Login modal (markup and behavior remain in index.html) */
.modal-backdrop { position: fixed; inset: 0; z-index: 500; background: rgba(28,20,38,.42); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; pointer-events: none; transition: opacity .22s ease; }
.modal-backdrop.open { opacity: 1; pointer-events: auto; }
.modal { position: relative; width: 100%; max-width: 460px; max-height: 90vh; overflow-y: auto; padding: 36px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 24px 80px rgba(34,18,52,.18); transform: translateY(12px); transition: transform .22s ease; }
.modal-backdrop.open .modal { transform: translateY(0); }
.modal::-webkit-scrollbar { width: 6px; }
.modal::-webkit-scrollbar-track { background: transparent; }
.modal::-webkit-scrollbar-thumb { background: #d7cddd; border-radius: 3px; }
.modal-close { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 9px; background: #f8f5fa; color: var(--muted); font-size: 16px; cursor: pointer; line-height: 1; }
.modal-close:hover { background: var(--purple-soft); color: var(--ink); }
.modal-icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 20px; border: 1px solid #e2d6ef; border-radius: 13px; background: #f2ecf8; font-size: 25px; }
.modal-title { margin-bottom: 6px; color: var(--ink); font-size: 22px; font-weight: 750; letter-spacing: -.03em; }
.modal-sub { margin-bottom: 25px; color: var(--muted); font-size: 13.5px; line-height: 1.65; }
.form-group { margin-bottom: 18px; }
.form-label { display: block; margin-bottom: 7px; color: var(--ink-2); font-size: 11px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.form-input { width: 100%; padding: 11px 14px; border: 1.5px solid #ded6e8; border-radius: 8px; outline: none; background: #fff; color: var(--ink); font-family: inherit; font-size: 14px; transition: border-color .18s ease, box-shadow .18s ease; }
.form-input:focus { border-color: var(--purple-l); box-shadow: 0 0 0 3px rgba(75,39,112,.09); }
.form-input::placeholder { color: #8b8294; }
.input-wrap { position: relative; }
.input-icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: #93889d; pointer-events: none; }
.input-wrap .form-input { padding-left: 38px; }
.toggle-pw { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); display: flex; align-items: center; padding: 2px; border: 0; background: none; color: #84788f; cursor: pointer; }
.toggle-pw:hover { color: var(--purple); }
.login-error { display: none; align-items: center; gap: 10px; margin-bottom: 18px; padding: 11px 14px; border: 1px solid #f4caca; border-radius: 9px; background: #fff1f1; color: #a62e37; font-size: 13px; font-weight: 500; }
.login-error.show { display: flex; }
.login-error.is-notice { border-color: #b8e3cf; background: #effaf5; color: #176b4a; }
@keyframes shake { 0%,100% { transform: translateY(0) translateX(0); } 20% { transform: translateY(0) translateX(-5px); } 40% { transform: translateY(0) translateX(5px); } 60% { transform: translateY(0) translateX(-3px); } 80% { transform: translateY(0) translateX(3px); } }
.modal.shake { animation: shake .32s ease; }
.btn-login-submit { width: 100%; margin-top: 6px; padding: 13px 14px; border: 0; border-radius: 8px; background: var(--purple); color: #fff; font-size: 14px; font-weight: 700; font-family: inherit; cursor: pointer; box-shadow: 0 5px 14px rgba(66,36,103,.16); transition: background .18s ease, transform .18s ease; }
.btn-login-submit:hover:not(:disabled) { background: #392054; transform: translateY(-1px); }
.btn-login-submit:disabled { opacity: .6; cursor: not-allowed; }
.login-divider { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; text-align: center; }

/* Analytics consent */
.privacy-consent-banner { position: fixed; z-index: 10000; left: 20px; right: 20px; bottom: 20px; max-width: 1060px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 22px; border: 1px solid #d8cce4; border-radius: 14px; background: #fff; box-shadow: 0 18px 60px rgba(35,20,49,.18); color: var(--ink); }
.privacy-consent-banner strong { display: block; margin-bottom: 5px; font-size: 14px; }
.privacy-consent-banner p { max-width: 620px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.privacy-consent-actions { display: flex; gap: 10px; flex-shrink: 0; }
.privacy-consent-actions button { padding: 10px 13px; border: 1px solid transparent; border-radius: 8px; font: inherit; font-size: 12px; font-weight: 750; cursor: pointer; }
.privacy-consent-actions .consent-secondary { color: var(--ink-2); border-color: #d9d0e2; background: #fff; }
.privacy-consent-actions .consent-primary { color: #fff; border-color: var(--purple); background: var(--purple); }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: minmax(0,1fr) minmax(300px,.88fr); gap: 30px; }
  .hero h1 { font-size: clamp(42px, 5.2vw, 58px); }
  .feature-item { padding-inline: 15px; }
  .cta-card { grid-template-columns: 1fr; }
  .cta-actions { flex-direction: row; flex-wrap: wrap; min-width: 0; }
}
@media (max-width: 760px) {
  .hero { background-position: 52% 49%; }
  .nav { min-height: 70px; padding: 12px 20px; gap: 12px; }
  .brand-seal { width: 39px; height: 39px; flex-basis: 39px; }
  .brand-sy { font-size: 10px; }
  .nav-actions { gap: 7px; }
  .nav-actions .btn { min-height: 38px; padding: 8px 11px; font-size: 12px; }
  .hero { padding: 58px 0 54px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-copy { padding: 0; }
  .hero h1 { max-width: 12ch; font-size: clamp(43px, 8.8vw, 62px); }
  .hero-panel { max-width: 600px; }
  .feature-strip-inner { grid-template-columns: 1fr; padding-top: 8px; padding-bottom: 8px; }
  .feature-item, .feature-item:first-child, .feature-item:last-child { padding: 13px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .feature-item:last-child { border-bottom: 0; }
  section { padding: 66px 0; }
  section.tight { padding-bottom: 58px; }
  .steps { grid-template-columns: 1fr; gap: 12px; }
  .step { padding: 22px; }
  .showcase { padding-top: 58px !important; }
  .cards-row { gap: 18px; }
  .pgp-card { width: min(100%, 270px); }
  .contact-layout { grid-template-columns: 1fr; gap: 28px; }
  .contact-copy h2 { max-width: 18ch; }
  footer { padding: 22px 20px; }
  .privacy-consent-banner { left: 10px; right: 10px; bottom: 10px; align-items: stretch; flex-direction: column; gap: 14px; padding: 16px; }
  .privacy-consent-actions { width: 100%; }
  .privacy-consent-actions button { flex: 1; }
}
@media (max-width: 520px) {
  .hero { background-position: 51% center; padding-top: 48px; padding-bottom: 46px; }
  .nav { align-items: center; padding-inline: 14px; }
  .brand { gap: 7px; }
  .brand-seal { width: 34px; height: 34px; flex-basis: 34px; padding: 3px; }
  .brand-name { font-size: 12px; }
  .brand-sy { display: none; }
  .nav-actions .btn span { display: none; }
  .nav-actions .btn { min-width: 32px; padding-inline: 8px; }
  .shell { padding-inline: 20px; }
  .hero h1 { font-size: clamp(40px, 10vw, 50px); }
  .hero-sub { font-size: 14px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .hero-note { align-items: flex-start; font-size: 11px; }
  .hero-panel-heading { padding: 20px; }
  .portal-steps { padding-inline: 20px; }
  .hero-panel-footer { padding-inline: 20px; }
  .cards-row { flex-direction: column; align-items: center; }
  .pgp-card { width: min(100%, 310px); }
  .cta-card { padding: 25px 21px; }
  .cta-actions { flex-direction: column; align-items: stretch; }
  .contact-field-row { grid-template-columns: 1fr; gap: 0; }
  .contact-form { padding: 18px; }
  .modal { padding: 28px 22px; }
  footer { justify-content: center; text-align: center; }
  footer > .footer-brand { justify-content: center; }
  .footer-links { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .btn:hover { transform: none; }
}
