/* ==========================================================================
   GradGPS — shared stylesheet for every page on gradgps.com.
   Edit here, not in the pages. Page-specific rules hang off a body class
   (e.g. body.page-faq) so the whole site stays one cached request.
   ========================================================================== */

@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/barlow-400.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/barlow-500.woff2) format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/barlow-semi-condensed-600.woff2) format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/barlow-semi-condensed-700.woff2) format("woff2"); }

:root {
  --paper:    #FAFBFD;
  --ink:      #16233A;
  --ink-soft: #52627D;
  --navy:     #1a3a6b;
  --blue:     #2a5298;
  --tint:     #EDF2FA;
  --line:     #DCE3EE;
  --done:     #16a34a;
  /* Non-text only (graphic indicators). ~3.0:1 on paper — never use for text. */
  --progress: #d97706;
  /* Darkened from #6E7684, which measured ~4.3:1 and failed WCAG 1.4.3 for body text. */
  --missing:  #5F6874;
  --head-h:   62px;
  --display: "Barlow Semi Condensed", "Arial Narrow", "Segoe UI", sans-serif;
  --sans: "Barlow", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "Cascadia Code", ui-monospace, "SF Mono", Consolas, Menlo, monospace;
}

* { box-sizing: border-box; }

html {
  /* scroll-padding keeps the sticky header from covering a focused or
     linked-to element (WCAG 2.2 AA 2.4.11 Focus Not Obscured). */
  scroll-padding-top: calc(var(--head-h) + 12px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background-color: var(--paper);
  background-image: radial-gradient(rgba(26, 58, 107, 0.07) 1px, transparent 1.5px);
  background-size: 26px 26px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }

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

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Cross-document transitions so a multi-page site still feels like one product.
   Chromium 126+ / Safari 18.2+; everywhere else this is a normal page load. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- skip link ---------- */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--navy); color: #fff; text-decoration: none;
  font-family: var(--display); font-weight: 600; letter-spacing: 0.04em;
  padding: 11px 18px; border-radius: 0 0 10px 10px;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 0; }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 251, 253, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap {
  display: flex; align-items: center; gap: 24px;
  height: var(--head-h); position: relative;
}
/* Brand pinned left, CTA pinned right, the four links spread evenly through
   the space between them so the bar reads as one full-width row. */
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand img { width: 32px; height: 32px; border-radius: 7px; display: block; }
.brand span {
  font-family: var(--display); font-weight: 700; font-size: 22px;
  letter-spacing: 0.01em; color: var(--navy);
}
.brand span b { color: var(--blue); font-weight: 700; }

.site-nav { flex: 1; display: flex; align-items: center; gap: 24px; }
.nav-links {
  flex: 1; display: flex; align-items: center; justify-content: space-evenly;
  gap: 12px; list-style: none; margin: 0; padding: 0;
}
.nav-cta { flex: none; }
.nav-links a {
  color: var(--ink-soft); text-decoration: none; font-size: 15px; font-weight: 500;
  display: inline-flex; align-items: center; min-height: 34px;
}
.nav-links a:hover { color: var(--navy); }
/* Active page: weight + rule, never colour alone (WCAG 1.4.1). */
.nav-links a[aria-current="page"] {
  color: var(--navy); font-weight: 600;
  box-shadow: inset 0 -2px 0 var(--blue);
}

.nav-toggle {
  display: none; align-items: center; gap: 7px;
  font-family: var(--display); font-weight: 600; font-size: 15px;
  letter-spacing: 0.04em; color: var(--navy);
  background: #fff; border: 1.5px solid var(--line); border-radius: 10px;
  padding: 0 13px; min-height: 44px; cursor: pointer;
}
.nav-toggle svg { width: 19px; height: 19px; }
.nav-toggle:hover { border-color: var(--blue); }

@media (max-width: 860px) {
  .site-head .wrap { gap: 12px; }
  .nav-toggle { display: inline-flex; }
  /* Links collapse into the disclosure, so the row is just CTA + Menu, right-aligned. */
  .site-nav { justify-content: flex-end; gap: 10px; }
  .site-nav .nav-links { display: none; }
  /* The CTA never hides behind the disclosure — it is the only conversion. */
  .site-nav.nav-open .nav-links {
    display: flex; flex-direction: column; align-items: stretch;
    justify-content: flex-start; gap: 0;
    position: absolute; top: var(--head-h); left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 6px 24px 14px;
    box-shadow: 0 18px 34px rgba(22, 35, 58, 0.10);
  }
  .site-nav.nav-open .nav-links a {
    min-height: 48px; font-size: 16.5px;
    border-top: 1px solid var(--line);
  }
  .site-nav.nav-open .nav-links li:first-child a { border-top: none; }
}
@media (max-width: 420px) {
  .nav-cta { padding: 10px 14px; font-size: 14.5px; }
  .nav-toggle { padding: 0 10px; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block; text-decoration: none; font-weight: 600;
  font-family: var(--sans);
  border-radius: 10px; padding: 12px 24px; font-size: 15.5px;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-navy { background: var(--navy); color: #fff; box-shadow: 0 3px 12px rgba(26, 58, 107, 0.25); }
.btn-navy:hover { background: var(--blue); }
.btn-line { color: var(--navy); border: 1.5px solid var(--line); background: #fff; }
.btn-line:hover { border-color: var(--blue); }
.site-nav .btn { padding: 9px 18px; }
/* .nav-links a (0,1,1) would otherwise override .btn-navy's white text with grey. */
.site-nav a.btn-navy, .site-nav a.btn-navy:hover { color: #fff; }

/* ---------- shared section furniture ---------- */
main { display: block; }
section.block { padding: 96px 0 0; }
.kicker {
  font-size: 13px; font-weight: 600; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--blue); margin: 0 0 10px;
}
h2 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(32px, 4.2vw, 46px); line-height: 1.04;
  margin: 0 0 14px; text-wrap: balance; letter-spacing: -0.003em;
}
.section-lede { color: var(--ink-soft); max-width: 40em; margin: 0 0 44px; font-size: 18px; }
.eyebrow {
  display: inline-flex; align-items: center;
  font-size: 13px; font-weight: 600; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--blue);
  margin: 0 0 22px;
}

/* ---------- hero ---------- */
.hero { padding: 70px 0 34px; text-align: center; }
.hero-copy { max-width: 40em; margin: 0 auto; }
.hero .eyebrow { justify-content: center; }
.hero-brand {
  display: inline-flex; align-items: center; gap: 15px;
  text-decoration: none; margin: 0 0 26px;
}
.hero-brand img { width: 64px; height: 64px; border-radius: 15px; display: block; }
.hero-brand span {
  font-family: var(--display); font-weight: 700; line-height: 1;
  font-size: clamp(38px, 5vw, 56px); letter-spacing: -0.015em; color: var(--navy);
}
.hero-brand span b { color: var(--blue); font-weight: 700; }
.hero-ctas { justify-content: center; }
.hero-shots { margin-top: 56px; }
.hero-shots .shots-grid { max-width: 940px; margin: 0 auto; }
/* All three sit on one baseline. The old staggered translateY offsets read as
   decoration rather than hierarchy, and misaligned the captions. */
.hero h1 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(46px, 7vw, 78px);
  line-height: 0.98; letter-spacing: -0.005em;
  margin: 0 0 22px; text-wrap: balance; max-width: 13em;
}
.hero h1 .dest { color: var(--blue); }
.hero p.lede {
  font-size: 19px; color: var(--ink-soft); max-width: 33em;
  margin: 0 auto 30px;
}
/* Keeps "You are here. Graduation is that way." doing work now that the H1
   carries the positioning line. */
.hero .lede-lead {
  display: block; color: var(--ink);
  font-family: var(--display); font-weight: 600;
  font-size: 25px; line-height: 1.15; letter-spacing: 0.005em;
  margin-bottom: 8px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-note { font-size: 14px; color: var(--missing); margin: 16px 0 0; }

/* ---------- page header (interior pages) ---------- */
.page-head { padding: 62px 0 10px; }
.page-head h1 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(38px, 5.4vw, 60px); line-height: 1.0;
  margin: 0 0 16px; text-wrap: balance; letter-spacing: -0.005em;
}
.page-head .lede { font-size: 19px; color: var(--ink-soft); max-width: 36em; margin: 0; }

/* ---------- route map ---------- */
.routemap-card {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 30px 22px 18px;
  box-shadow: 0 20px 50px rgba(22, 35, 58, 0.07);
  overflow-x: auto;
}
.routemap-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 0 10px 4px;
}
.routemap-head .t { font-family: var(--display); font-weight: 600; font-size: 17px; letter-spacing: 0.02em; }
.routemap-head .m { font-family: var(--mono); font-size: 12.5px; color: var(--ink-soft); font-variant-numeric: tabular-nums; white-space: nowrap; }
.routemap-card svg { display: block; min-width: 760px; width: 100%; height: auto; }
.routemap-card text { font-family: var(--sans); }
.rm-label { font-size: 13px; font-weight: 600; fill: var(--ink); }
.rm-sub { font-size: 11px; fill: var(--ink-soft); }
.rm-flag { font-family: var(--display); font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em; fill: #b45309; }
.rm-dest { font-family: var(--display); font-size: 14px; font-weight: 700; letter-spacing: 0.05em; fill: var(--navy); }

#rm-svg, #rm-title, #rm-meta { transition: opacity 0.3s ease; }
@media (prefers-reduced-motion: no-preference) {
  .rm-traveled { animation: draw 1.6s ease-out 0.2s forwards; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
  .rm-pulse { animation: pulse 2.2s ease-out 1.8s infinite; transform-origin: center; transform-box: fill-box; }
  @keyframes pulse { 0% { opacity: 0.55; transform: scale(0.6); } 70% { opacity: 0; transform: scale(1.7); } 100% { opacity: 0; } }
}

/* ---------- trip stats ---------- */
.stats .wrap {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 22px 10px; margin-top: 8px;
}
.stat { text-align: center; padding: 4px 12px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat .n {
  font-family: var(--display); font-weight: 700; font-size: 34px; color: var(--navy);
  font-variant-numeric: tabular-nums; line-height: 1.05;
}
.stat .l { font-size: 13px; color: var(--ink-soft); margin-top: 3px; }
@media (max-width: 720px) {
  .stats .wrap { grid-template-columns: repeat(2, 1fr); row-gap: 18px; }
  .stat:nth-child(3) { border-left: none; }
}

/* ---------- directions (how it works) ---------- */
.directions { max-width: 640px; }
.dir-row { display: flex; gap: 22px; position: relative; padding-bottom: 34px; }
.dir-row:last-child { padding-bottom: 0; }
.dir-row::before {
  content: ""; position: absolute; left: 25px; top: 52px; bottom: 6px;
  border-left: 2.5px dashed var(--line);
}
.dir-row:last-child::before { display: none; }
.dir-badge {
  flex: none; width: 52px; height: 52px; border-radius: 50%;
  background: #fff; border: 2px solid var(--navy); color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(22, 35, 58, 0.10);
}
.dir-badge svg { width: 22px; height: 22px; }
.dir-row:last-child .dir-badge { background: var(--navy); color: #fff; }
.dir-body h3 {
  font-family: var(--display); font-weight: 600; font-size: 21px;
  margin: 3px 0 6px; letter-spacing: 0.005em;
}
.dir-body p { margin: 0; color: var(--ink-soft); font-size: 16px; }
.dir-body .then {
  display: inline-block; font-family: var(--mono); font-size: 11.5px;
  color: var(--blue); letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 2px;
}

/* ---------- screenshots ---------- */
.shots-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 34px; align-items: start; }
.shot { text-align: center; }
.phone {
  max-width: 280px; margin: 0 auto;
  border: 9px solid var(--ink); border-radius: 40px; overflow: hidden;
  background: #fff; box-shadow: 0 24px 60px rgba(22, 35, 58, 0.16);
}
.phone img { display: block; width: 100%; height: auto; }
/* h2 on the home hero (keeps the heading order h1 -> h2), h3 elsewhere. */
.shot h2, .shot h3 {
  font-family: var(--display); font-weight: 600; font-size: 19px;
  line-height: 1.25; letter-spacing: 0; margin: 18px 0 4px;
}
.shot p { margin: 0 auto; color: var(--ink-soft); font-size: 15px; max-width: 24em; }
@media (max-width: 780px) {
  .shots-grid {
    display: flex; overflow-x: auto; gap: 22px;
    scroll-snap-type: x mandatory; padding-bottom: 10px;
    margin: 0 -24px;
  }
  .shot { flex: 0 0 78%; scroll-snap-align: center; }
  /* The first/last card can only reach the centre if there is empty track
     beside it, so give each an outer margin of half the leftover width
     ((100% - 78%) / 2). Percentages resolve against the same content box as
     the flex-basis, so the maths stays exact at any viewport. Container
     padding would shrink that box and break the 78%, hence margins. */
  .shots-grid > .shot:first-child { margin-left: 11%; }
  .shots-grid > .shot:last-child { margin-right: 11%; }
}

/* ---------- legend (features) ---------- */
.legend-panel {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 8px 34px;
}
.legend-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px; }
.leg { display: flex; gap: 18px; align-items: flex-start; padding: 26px 0; }
.legend-grid .leg { border-top: 1px solid var(--line); }
.legend-grid .leg:nth-child(-n+2) { border-top: none; }
.leg-sym { flex: none; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; margin-top: 2px; }
.leg-sym svg { width: 36px; height: 36px; }
.leg h3 { font-family: var(--display); font-weight: 600; font-size: 19px; margin: 0 0 5px; letter-spacing: 0.005em; }
.leg p { margin: 0; color: var(--ink-soft); font-size: 15px; line-height: 1.55; }
.leg code, code.c {
  font-family: var(--mono); font-size: 12.5px;
  background: var(--tint); border: 1px solid var(--line);
  padding: 1px 6px; border-radius: 6px; white-space: nowrap;
}
@media (max-width: 780px) {
  .legend-grid { grid-template-columns: 1fr; }
  .legend-grid .leg:nth-child(2) { border-top: 1px solid var(--line); }
  .legend-panel { padding: 4px 22px; }
}

/* ---------- support form ---------- */
.support-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: start; }
@media (max-width: 820px) { .support-grid { grid-template-columns: 1fr; gap: 12px; } }
.support-form {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 30px 30px 28px;
  box-shadow: 0 20px 50px rgba(22, 35, 58, 0.07);
  display: flex; flex-direction: column; gap: 16px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-family: var(--display); font-weight: 600; font-size: 14px;
  letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink);
}
.field .opt {
  font-family: var(--sans); text-transform: none; letter-spacing: 0;
  color: var(--missing); font-weight: 400; font-size: 13px;
}
.field input, .field textarea {
  font-family: var(--sans); font-size: 16px; color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--line); border-radius: 10px;
  padding: 11px 14px; width: 100%;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(42, 82, 152, 0.15);
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #b42318; }
.field-error { color: #b42318; font-size: 14px; margin: 0; }
.field-error:empty { display: none; }
.support-form button { font-family: var(--sans); cursor: pointer; border: none; align-self: flex-start; }
.support-form button:disabled { opacity: 0.6; cursor: default; transform: none; }
.form-status { font-size: 15px; margin: 0; min-height: 1.4em; }
.form-status.err { color: #b42318; }
.form-status.ok { color: #15803d; font-weight: 500; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.support-aside p { color: var(--ink-soft); font-size: 16px; max-width: 30em; }

/* ---------- cta ---------- */
.cta { padding: 110px 0 100px; text-align: center; }
.cta .pin { width: 68px; height: 68px; border-radius: 16px; margin-bottom: 20px; box-shadow: 0 14px 34px rgba(22, 35, 58, 0.22); }
.cta h2 { font-size: clamp(38px, 5vw, 58px); }
.cta p { color: var(--ink-soft); max-width: 32em; margin: 0 auto 32px; font-size: 18px; }
.cta .hero-note { margin-top: 16px; }

/* ---------- prose pages (privacy, terms, about) ---------- */
.prose { max-width: 44em; padding: 8px 0 90px; }
.prose h2 {
  font-size: clamp(22px, 2.6vw, 27px); line-height: 1.2;
  margin: 44px 0 10px; letter-spacing: 0;
}
.prose h3 {
  font-family: var(--display); font-weight: 600; font-size: 19px;
  margin: 28px 0 6px;
}
.prose p, .prose li { color: var(--ink-soft); font-size: 16.5px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--blue); }
.prose strong { color: var(--ink); }
.prose .updated {
  font-family: var(--mono); font-size: 13px; color: var(--missing); margin: 0 0 8px;
}
.prose .callout {
  background: var(--tint); border: 1px solid var(--line); border-radius: 14px;
  padding: 4px 22px; margin: 26px 0;
}

/* ---------- faq ---------- */
.faq-list { max-width: 44em; padding: 18px 0 40px; }
.faq-item { border-top: 1px solid var(--line); padding: 26px 0; }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item h2 {
  font-size: clamp(20px, 2.4vw, 24px); line-height: 1.25;
  margin: 0 0 8px; letter-spacing: 0;
}
.faq-item p { color: var(--ink-soft); font-size: 16.5px; margin: 0 0 10px; }
.faq-item p:last-child { margin-bottom: 0; }
.faq-item a { color: var(--blue); }

/* ---------- beta page ---------- */
.beta-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 44px; align-items: start; padding: 18px 0 20px; }
@media (max-width: 860px) { .beta-grid { grid-template-columns: 1fr; gap: 26px; } }
.beta-steps { list-style: none; padding: 0; margin: 26px 0 0; max-width: 34em; counter-reset: step; }
.beta-steps li {
  position: relative; padding: 0 0 22px 52px; counter-increment: step;
  color: var(--ink-soft); font-size: 16.5px;
}
.beta-steps li::before {
  content: counter(step); position: absolute; left: 0; top: -2px;
  width: 34px; height: 34px; border-radius: 50%;
  background: #fff; border: 2px solid var(--navy); color: var(--navy);
  font-family: var(--display); font-weight: 700; font-size: 17px;
  display: flex; align-items: center; justify-content: center;
}
.beta-steps strong { color: var(--ink); }
.beta-card {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 28px 30px; box-shadow: 0 20px 50px rgba(22, 35, 58, 0.07);
}
.beta-card h2 { font-size: 22px; margin-bottom: 8px; }
.beta-card p { color: var(--ink-soft); font-size: 15.5px; }
.beta-card p:last-child { margin-bottom: 0; }

/* ---------- footer ---------- */
.site-foot {
  border-top: 1px solid var(--line); background: #fff;
  color: var(--ink-soft); font-size: 14.5px; margin-top: 40px;
}
.site-foot .wrap { padding: 40px 24px 34px; }
.foot-cols {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px; max-width: 700px;
}
.foot-h {
  font-family: var(--display); font-weight: 700; font-size: 13px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink);
  margin: 0 0 10px;
}
.foot-col ul { list-style: none; margin: 0; padding: 0; }
.foot-col li { margin-bottom: 4px; }
.foot-col a { text-decoration: none; display: inline-flex; align-items: center; min-height: 30px; }
.foot-col a:hover { color: var(--navy); text-decoration: underline; }
.foot-legal-note {
  margin: 34px 0 0; padding-top: 20px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--missing); max-width: 62em; line-height: 1.55;
}
.foot-legal-note strong { color: var(--ink-soft); }
@media (max-width: 560px) {
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
