/* Off Campus Dev — brand tokens carried over from the LinkedIn brand sheet */
:root {
  --navy-900: #0B162C;
  --navy-850: #0E1B33;
  --navy-800: #101A31;
  --navy-700: #16233D;
  --line: #22314F;
  --blue: #007AFF;
  --sky: #38BDF8;
  --white: #FFFFFF;
  --grey-300: #C7D2E1;
  --grey-400: #94A3B8;
  --grey-500: #6E7F97;
  --green: #34D399;
  --radius: 8px;
  --radius-lg: 14px;
  --maxw: 1120px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--navy-900);
  color: var(--white);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--sky); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.15; margin: 0; font-weight: 800; }

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

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--blue); color: #fff; padding: 10px 16px; z-index: 100;
}
.skip:focus { left: 12px; top: 12px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 22, 44, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--white); }
.brand:hover { text-decoration: none; }
.brand svg { display: block; flex: none; }
.brand-name { font-weight: 800; font-size: 16px; letter-spacing: -0.01em; }

.nav { display: flex; align-items: center; gap: 8px; }
.nav a {
  color: var(--grey-300); font-size: 14px; font-weight: 500;
  padding: 8px 12px; border-radius: var(--radius); min-height: 40px;
  display: inline-flex; align-items: center;
}
.nav a:hover { color: var(--white); background: var(--navy-700); text-decoration: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 12px 20px; border-radius: var(--radius);
  font-family: var(--font); font-size: 15px; font-weight: 600;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: #0069DB; text-decoration: none; }
.btn-ghost { background: transparent; color: var(--white); border-color: var(--line); }
.btn-ghost:hover { background: var(--navy-700); text-decoration: none; }
.btn:focus-visible, a:focus-visible, input:focus-visible, button:focus-visible {
  outline: 2px solid var(--sky); outline-offset: 2px;
}

/* ---------- hero ---------- */
.hero { padding: 72px 0 88px; border-bottom: 1px solid var(--line); position: relative; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px; align-items: center;
}
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(0, 122, 255, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: var(--sky);
  font-size: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.06em; padding: 6px 12px; border-radius: 999px;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sky); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.7); } }

.hero h1 { font-size: clamp(34px, 4.4vw, 52px); margin: 20px 0 0; }
.hero h1 em { font-style: normal; color: var(--sky); }
.hero-sub { color: var(--grey-300); font-size: 17px; margin: 18px 0 0; max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.waitlist { margin-top: 28px; max-width: 440px; }
.waitlist-row { display: flex; gap: 10px; }
.waitlist input {
  flex: 1 1 auto; min-width: 0; min-height: 44px;
  background: var(--navy-800); color: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 14px; font-family: var(--font); font-size: 15px;
}
.waitlist input::placeholder { color: var(--grey-500); }
.form-note { font-size: 13px; color: var(--grey-400); margin: 10px 0 0; min-height: 20px; }
.form-note.error { color: #FCA5A5; }
.form-note.ok { color: var(--green); }

/* ---------- product mockup ---------- */
.mock {
  background: var(--navy-850); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.mock-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--navy-800);
}
.mock-dots { display: flex; gap: 6px; }
.mock-dots i { width: 10px; height: 10px; border-radius: 50%; background: #2B3A57; display: block; }
.mock-title { font-size: 12px; color: var(--grey-400); font-weight: 500; }
.mock-body { padding: 16px; }

.mock-search {
  display: flex; align-items: center; gap: 10px;
  background: var(--navy-900); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 12px 14px;
}
.mock-search svg { flex: none; }
.mock-query { font-size: 14px; color: var(--white); min-height: 22px; }
.caret { display: inline-block; width: 2px; height: 15px; background: var(--sky); vertical-align: -2px; animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

.mock-meta {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11px; color: var(--grey-500); text-transform: uppercase;
  letter-spacing: 0.06em; font-weight: 600; margin: 16px 2px 10px;
}
.mock-rows { display: flex; flex-direction: column; gap: 8px; }
.row {
  display: grid; grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 12px; align-items: center;
  background: var(--navy-800); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 10px 12px;
}
.row-logo {
  width: 34px; height: 34px; border-radius: 7px; flex: none;
  display: grid; place-items: center;
  font-size: 13px; font-weight: 800; color: #fff; background: #24345273;
}
.row-title { font-size: 13.5px; font-weight: 600; color: var(--white); }
.row-meta { font-size: 12px; color: var(--grey-300); }
.score {
  font-size: 12px; font-weight: 700; color: var(--green);
  background: rgba(52, 211, 153, 0.12); border: 1px solid rgba(52, 211, 153, 0.3);
  border-radius: 999px; padding: 4px 9px; white-space: nowrap;
}
.score.mid { color: var(--sky); background: rgba(56, 189, 248, 0.12); border-color: rgba(56, 189, 248, 0.3); }

/* ---------- sections ---------- */
section { padding: 72px 0; border-bottom: 1px solid var(--line); }
.sec-head { max-width: 60ch; margin-bottom: 40px; }
.eyebrow {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--sky); margin: 0 0 12px;
}
.sec-head h2 { font-size: clamp(26px, 3vw, 34px); }
.sec-head p { color: var(--grey-300); margin: 14px 0 0; font-size: 16.5px; }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card {
  background: var(--navy-850); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px;
}
.card-icon {
  width: 40px; height: 40px; border-radius: var(--radius);
  background: rgba(0, 122, 255, 0.14); border: 1px solid rgba(56, 189, 248, 0.28);
  display: grid; place-items: center; margin-bottom: 16px;
}
.card h3 { font-size: 17px; font-weight: 700; }
.card p { color: var(--grey-400); font-size: 14.5px; margin: 10px 0 0; }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 780px; }
.plan {
  background: var(--navy-850); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column;
}
.plan.featured { border-color: rgba(56, 189, 248, 0.45); }
.plan-name { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--grey-400); }
.plan-price { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; margin: 12px 0 2px; }
.plan-price span { font-size: 15px; font-weight: 500; color: var(--grey-400); letter-spacing: 0; }
.plan-alt { font-size: 13px; color: var(--grey-400); margin: 0; }
.plan ul { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-direction: column; gap: 10px; }
.plan li { font-size: 14.5px; color: var(--grey-300); display: flex; gap: 10px; align-items: flex-start; }
.plan li svg { flex: none; margin-top: 4px; }
.tax-note { font-size: 13px; color: var(--grey-400); margin: 20px 0 0; }

/* ---------- company ---------- */
.company-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 48px; align-items: start; }
.company-grid p { color: var(--grey-300); margin: 0 0 16px; }
.facts { background: var(--navy-850); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 20px; }
.facts dl { margin: 0; }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts div:last-child { border-bottom: 0; }
.facts dt { font-size: 13px; color: var(--grey-400); }
.facts dd { margin: 0; font-size: 13.5px; font-weight: 600; text-align: right; }

/* ---------- footer ---------- */
.site-footer { padding: 56px 0 40px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 40px; }
.footer-grid p { color: var(--grey-400); font-size: 14px; margin: 16px 0 0; max-width: 40ch; }
.footer-col h4 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--grey-400); margin: 0 0 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--grey-300); font-size: 14px; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-size: 13px; color: var(--grey-500);
}

/* ---------- legal pages ---------- */
.legal { padding: 56px 0 72px; border: 0; }
.legal-inner { max-width: 760px; }
.legal h1 { font-size: clamp(28px, 3.4vw, 38px); }
.legal .updated { color: var(--grey-400); font-size: 14px; margin: 12px 0 0; }
.legal h2 { font-size: 19px; margin: 40px 0 0; }
.legal p, .legal li { color: var(--grey-300); font-size: 15.5px; }
.legal p { margin: 14px 0 0; }
.legal ul { margin: 14px 0 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.legal table { width: 100%; border-collapse: collapse; margin-top: 18px; font-size: 14.5px; }
.legal th, .legal td { text-align: left; padding: 12px 14px; border: 1px solid var(--line); color: var(--grey-300); }
.legal th { background: var(--navy-800); color: var(--white); font-weight: 600; }
.callout {
  background: var(--navy-850); border: 1px solid var(--line);
  border-left: 3px solid var(--sky); border-radius: var(--radius);
  padding: 18px 20px; margin-top: 24px;
}
.callout p { margin: 0; }
.back { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; margin-bottom: 28px; color: var(--grey-300); }

/* ---------- reveal animation ---------- */
/* Hidden state is applied only when JS is running (html.js), so crawlers,
   full-page screenshots and no-JS visitors always see the content. */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .company-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 18px; }
  .hero { padding: 48px 0 44px; }
  section { padding: 52px 0; }
  .nav a { padding: 8px 9px; font-size: 13.5px; }
  .brand-name { font-size: 15px; }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .waitlist-row { flex-direction: column; }
  .waitlist input, .waitlist .btn { width: 100%; }
  .facts div { flex-direction: column; gap: 4px; }
  .facts dd { text-align: left; }

  /* Nav must never push the page wider than the viewport: drop the text links
     and keep the brand + primary action, which is what a phone needs. */
  .nav a:not(.btn) { display: none; }

  /* Policy tables have fixed-width content that cannot compress below ~380px,
     so let them scroll inside their own container instead of the whole page. */
  .legal table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

@media (max-width: 400px) {
  .brand-name { display: none; }
}

@media (max-width: 480px) {
  /* The match badge steals ~90px from the title column, forcing job titles and
     deadlines to double-wrap. Drop it to its own line so both read cleanly. */
  .row { grid-template-columns: 34px minmax(0, 1fr); row-gap: 8px; }
  .row .score { grid-column: 2; justify-self: start; }
}
