/* Skillflow landing site.
   Palette lifted from the portals so the marketing site and the apps read as
   one product. */

:root {
  --navy: #0a2540;
  --navy-dark: #061a30;
  --navy-light: #123b6b;
  --gold: #d4af37;
  --gold-light: #f2c94c;
  --gold-dark: #a8862a;
  --white: #ffffff;
  --off-white: #f4f6fa;
  --text: #16253a;
  --text-muted: #6b7a93;
  --border: #e3e8f0;
  --success: #2e9e5b;

  --radius: 14px;
  --shadow: 0 10px 30px rgba(6, 26, 48, 0.10);
  --max: 1140px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", Roboto, -apple-system, BlinkMacSystemFont, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--navy-light); }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

/* Keyboard users need to be able to jump the nav. */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: var(--navy-dark);
  padding: 10px 16px;
  z-index: 100;
  font-weight: 700;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .15s, border-color .15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-gold { background: var(--gold); color: var(--navy-dark); }
.btn-gold:hover { background: var(--gold-light); box-shadow: 0 8px 20px rgba(212,175,55,.35); }

.btn-outline { border-color: rgba(255,255,255,.5); color: var(--white); }
.btn-outline:hover { border-color: var(--gold-light); color: var(--gold-light); }

.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-light); }

.btn-sm { padding: 9px 16px; font-size: 14px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 26, 48, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  text-decoration: none;
  font-weight: 800;
  font-size: 19px;
  flex-shrink: 0;
}
.brand img { width: 34px; height: 34px; object-fit: contain; }
.brand span b { color: var(--gold-light); }

.nav-links {
  display: flex;
  gap: 22px;
  margin-left: auto;
  list-style: none;
  align-items: center;
}
.nav-links a {
  color: #cdd8e6;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}
.nav-links a:hover { color: var(--gold-light); }

.nav-cta { display: flex; gap: 10px; flex-shrink: 0; }

/* Mobile nav: a checkbox toggle keeps the page script-free. */
.nav-toggle, .nav-toggle-label { display: none; }

/* ---------- Hero ---------- */

.hero {
  background:
    radial-gradient(1000px 400px at 85% -10%, rgba(212,175,55,.16), transparent 60%),
    linear-gradient(165deg, var(--navy-dark), var(--navy-light));
  color: var(--white);
  padding: 76px 0 84px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  background: rgba(212,175,55,.15);
  border: 1px solid rgba(212,175,55,.35);
  color: var(--gold-light);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .3px;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(30px, 4.6vw, 47px);
  line-height: 1.14;
  font-weight: 900;
  letter-spacing: -.5px;
  margin-bottom: 18px;
}
.hero h1 em { color: var(--gold-light); font-style: normal; }

.hero p.lead {
  font-size: 17px;
  color: #d3dce8;
  max-width: 52ch;
  margin-bottom: 28px;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }

.hero-stats {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.14);
}
.hero-stats div strong {
  display: block;
  font-size: 21px;
  color: var(--gold-light);
  font-weight: 800;
}
.hero-stats div span { font-size: 13px; color: #b8c6d8; }

/* ---------- Sections ---------- */

.section { padding: 76px 0; }
.section-alt { background: var(--off-white); }

.section-head { max-width: 720px; margin: 0 auto 46px; text-align: center; }
.section-head h2 {
  font-size: clamp(25px, 3.2vw, 34px);
  font-weight: 900;
  color: var(--navy-dark);
  letter-spacing: -.3px;
  margin-bottom: 12px;
}
.section-head p { color: var(--text-muted); font-size: 16px; }

.tag {
  display: inline-block;
  color: var(--gold-dark);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

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

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 20px;
}

.feature {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(212,175,55,.5);
}
.feature .icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: linear-gradient(160deg, var(--navy-dark), var(--navy-light));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.feature h3 { font-size: 17px; color: var(--navy-dark); margin-bottom: 8px; font-weight: 800; }
.feature p { color: var(--text-muted); font-size: 14.5px; }

/* ---------- How it works ---------- */

.how-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.how-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow);
}
.how-card > h3 {
  font-size: 20px;
  color: var(--navy-dark);
  margin-bottom: 6px;
  font-weight: 900;
}
.how-card > p.sub { color: var(--text-muted); font-size: 14.5px; margin-bottom: 22px; }

ol.steps { list-style: none; counter-reset: step; }
ol.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 22px 52px;
  border-left: 2px dashed var(--border);
  margin-left: 16px;
}
ol.steps li:last-child { border-left-color: transparent; padding-bottom: 0; }
ol.steps li::before {
  content: counter(step);
  position: absolute;
  left: -17px;
  top: -2px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy-dark);
  font-weight: 900;
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
ol.steps li h4 { font-size: 15.5px; color: var(--navy-dark); margin-bottom: 3px; font-weight: 800; }
ol.steps li p { font-size: 14px; color: var(--text-muted); }

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

.portals {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.portal {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  padding: 34px 30px;
  color: var(--white);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 250px;
  transition: transform .18s, box-shadow .18s;
}
.portal:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(6,26,48,.28); }
.portal-student { background: linear-gradient(155deg, var(--navy-dark), var(--navy-light)); }
.portal-teacher { background: linear-gradient(155deg, #3a2c05, var(--gold-dark)); }

.portal .portal-icon {
  width: 52px; height: 52px;
  border-radius: 13px;
  background: rgba(255,255,255,.14);
  display: flex; align-items: center; justify-content: center;
}
.portal h3 { font-size: 22px; font-weight: 900; }
.portal p { font-size: 14.5px; color: rgba(255,255,255,.86); flex: 1; }
.portal .go {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 800; font-size: 14.5px; color: var(--gold-light);
}
.portal-teacher .go { color: #fff6d6; }
.portal .url { font-size: 12.5px; color: rgba(255,255,255,.6); }

/* ---------- Privacy ---------- */

.privacy-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
  margin-bottom: 30px;
}
.privacy-point {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: 10px;
  padding: 20px;
}
.privacy-point h4 { font-size: 15px; color: var(--navy-dark); margin-bottom: 6px; font-weight: 800; }
.privacy-point p { font-size: 14px; color: var(--text-muted); }

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.contact-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  text-align: center;
}
.contact-card .icon {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--off-white);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
}
.contact-card h3 { font-size: 16px; color: var(--navy-dark); margin-bottom: 6px; font-weight: 800; }
.contact-card a { color: var(--navy-light); font-weight: 700; text-decoration: none; word-break: break-word; }
.contact-card a:hover { text-decoration: underline; }
.contact-card p { color: var(--text-muted); font-size: 14px; }

/* ---------- CTA band ---------- */

.cta-band {
  background: linear-gradient(150deg, var(--navy-dark), var(--navy-light));
  color: var(--white);
  text-align: center;
  padding: 66px 0;
}
.cta-band h2 { font-size: clamp(24px, 3.2vw, 33px); font-weight: 900; margin-bottom: 12px; }
.cta-band p { color: #cfdaea; margin-bottom: 26px; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-dark);
  color: #a9b8cb;
  padding: 50px 0 26px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 34px;
}
.footer-grid h4 {
  color: var(--white);
  font-size: 14px;
  margin-bottom: 12px;
  font-weight: 800;
  letter-spacing: .3px;
}
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: #a9b8cb; text-decoration: none; }
.footer-grid a:hover { color: var(--gold-light); }
.footer-brand p { margin-top: 12px; max-width: 34ch; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 13px;
}

/* ---------- Legal pages ---------- */

.legal-hero {
  background: linear-gradient(160deg, var(--navy-dark), var(--navy-light));
  color: var(--white);
  padding: 56px 0;
}
.legal-hero h1 { font-size: clamp(27px, 4vw, 38px); font-weight: 900; margin-bottom: 10px; }
.legal-hero p { color: #cfdaea; }

.legal-body { padding: 54px 0 70px; }
.legal-layout { display: grid; grid-template-columns: 230px 1fr; gap: 44px; align-items: start; }

.legal-nav {
  position: sticky;
  top: 84px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  background: var(--off-white);
}
.legal-nav h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .6px; color: var(--text-muted); margin-bottom: 10px; }
.legal-nav ul { list-style: none; }
.legal-nav li { margin-bottom: 7px; }
.legal-nav a { color: var(--navy); text-decoration: none; font-size: 13.5px; font-weight: 600; }
.legal-nav a:hover { color: var(--gold-dark); }

.legal-content h2 {
  font-size: 21px;
  color: var(--navy-dark);
  margin: 34px 0 12px;
  font-weight: 800;
  scroll-margin-top: 84px;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 { font-size: 16px; color: var(--navy); margin: 20px 0 8px; font-weight: 800; }
.legal-content p { margin-bottom: 12px; color: #33465e; }
.legal-content ul { margin: 0 0 14px 20px; color: #33465e; }
.legal-content li { margin-bottom: 7px; }

.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 18px;
  font-size: 14.5px;
}
.legal-content th, .legal-content td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
.legal-content th { background: var(--off-white); color: var(--navy-dark); font-weight: 800; }

.callout {
  background: #fff9e6;
  border: 1px solid rgba(212,175,55,.45);
  border-left: 4px solid var(--gold);
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 22px;
  font-size: 14.5px;
  color: #4a3c10;
}
.callout strong { color: #3a2f08; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero-grid, .how-columns, .portals, .legal-layout { grid-template-columns: 1fr; }
  .hero { padding: 54px 0 60px; }
  .hero-art { order: -1; max-width: 460px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .legal-nav { position: static; }

  /* Collapse the link list behind a toggle. The checkbox stays in the page
     rather than being display:none, so it can still take keyboard focus —
     otherwise the menu is reachable only with a pointer. */
  .nav-toggle {
    display: block;
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    margin: 0;
  }

  .nav-toggle-label {
    display: flex;
    margin-left: auto;
    cursor: pointer;
    color: var(--white);
    padding: 6px;
    border-radius: 6px;
  }

  .nav-toggle:focus-visible + .nav-toggle-label {
    outline: 2px solid var(--gold-light);
    outline-offset: 2px;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy-dark);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 20px 16px;
    border-bottom: 1px solid rgba(255,255,255,.1);
  }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 11px 0; }
  .nav-toggle:checked ~ .nav-links { display: flex; }
  .site-header .wrap { position: relative; }
  .nav-cta .btn:not(.btn-gold) { display: none; }
}

@media (max-width: 560px) {
  .section { padding: 54px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 18px; }
  .brand span { font-size: 17px; }
}

@media print {
  .site-header, .cta-band, .legal-nav, .site-footer .footer-grid { display: none; }
  body { color: #000; }
}
