/* HokieTransit site styles.
   Colors and type come from the iOS app itself so the page reads as the app:
   true black, iOS dark card grays, HokieOrange, and the system font (SF Pro on
   Apple devices). Green only ever means a bus is reporting live; gray means
   timetable. Do not reuse either decoratively. */

:root {
  --bg: #000000;
  --card: #1C1C1E;
  --card-2: #2C2C2E;
  --ring: rgba(255, 255, 255, 0.10);
  --text: #FFFFFF;
  --text-2: #98989F;

  --orange: #E85D04;      /* HokieOrange, exact iOS value; 6.0:1 on black and with black text */
  --orange-hi: #FF7A1F;
  --live: #30D158;
  --sched: #AEAEB2;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1120px;
  --gut: 20px;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
p { margin: 0; }
h1, h2, h3 { margin: 0; }

a { color: var(--orange); text-decoration: none; }
a:hover { color: var(--orange-hi); }

:focus-visible {
  outline: 2px solid var(--orange-hi);
  outline-offset: 3px;
  border-radius: 8px;
}

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

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--orange); color: #000; padding: 10px 16px; font-weight: 600;
}
.skip:focus { left: 0; }

/* top bar */

.top-row { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; letter-spacing: -0.02em; }
.brand:hover { color: var(--text); }
.brand img { border-radius: 7px; }
.top-links { display: flex; gap: 22px; font-size: 15px; font-weight: 500; }
.top-links a { color: var(--text-2); }
.top-links a:hover { color: var(--text); }

/* buttons */

.get { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 24px; border-radius: 999px;
  font-size: 17px; font-weight: 600; letter-spacing: -0.01em;
}
.btn svg { margin-top: -2px; }
@media (max-width: 420px) {
  .btn { padding: 0 18px; font-size: 16px; }
  .get { gap: 10px; }
}
.btn-primary { background: var(--orange); color: #000; }
.btn-primary:hover { background: var(--orange-hi); color: #000; }
.btn-quiet { background: var(--card); color: var(--text); box-shadow: inset 0 0 0 1px var(--ring); }
.btn-quiet:hover { background: var(--card-2); color: var(--text); }

/* phone frame: an iPhone 17 Pro outline around a real screenshot */

.phone {
  --w: 300px;
  position: relative;
  width: var(--w);
  padding: calc(var(--w) * 0.034);
  background: var(--card);
  border-radius: calc(var(--w) * 0.165);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}
.phone img { width: 100%; border-radius: calc(var(--w) * 0.135); }
.phone::after {
  content: "";
  position: absolute;
  top: calc(var(--w) * 0.059);
  left: 50%;
  width: calc(var(--w) * 0.29);
  height: calc(var(--w) * 0.085);
  transform: translateX(-50%);
  background: #000;
  border-radius: 999px;
}

/* hero */

.hero { padding: 28px 0 72px; overflow: hidden; }
.hero-grid { display: grid; gap: 44px; }

h1 { display: grid; gap: 14px; }
.wordmark {
  font-size: clamp(52px, 14.5vw, 92px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.92;
}
.tagline {
  font-size: clamp(23px, 3.6vw, 36px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--text-2);
}
.hero .get { margin-top: 34px; }
.fine { margin-top: 14px; font-size: 15px; color: var(--text-2); }

.hero-phones { display: flex; justify-content: center; }
.hero-phones .phone { --w: min(76vw, 320px); }
.phone-back { display: none; }

@media (min-width: 900px) {
  .hero { padding: 40px 0 64px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) 560px; align-items: center; gap: 32px; }
  .hero-phones { position: relative; height: 700px; display: block; }
  .hero-phones .phone { position: absolute; }
  .hero-phones .phone-front { --w: 296px; left: 0; top: 0; z-index: 2; }
  .hero-phones .phone-back { display: block; --w: 276px; right: 0; top: 84px; z-index: 1; }
}

/* live and scheduled, using the app's own badges */

.legend { padding: 0 0 96px; }
.legend-row { display: grid; gap: 16px; }
.key { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; font-size: 19px; color: var(--text-2); }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px 7px 11px; border-radius: 999px;
  font-size: 17px; font-weight: 600; letter-spacing: -0.01em;
}
.badge-live { color: var(--live); background: rgba(48, 209, 88, 0.14); }
.badge-sched { color: var(--sched); background: rgba(142, 142, 147, 0.18); }

@media (min-width: 900px) {
  .legend-row { grid-template-columns: auto auto; justify-content: center; gap: 56px; }
}

/* tour: the app's tab bar switches the screenshot */

.tour { padding: 0 0 104px; }
.tour-grid { display: grid; gap: 40px; }

.tour-tabs {
  justify-self: center;
  display: flex;
  padding: 5px;
  gap: 2px;
  background: rgba(28, 28, 30, 0.92);
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--ring);
}
.tour-tabs[hidden] { display: none; }
.tour-tabs button {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  min-width: 76px; padding: 8px 14px 7px;
  border: 0; border-radius: 999px; background: transparent;
  color: var(--text); font: 600 12px/1 var(--font); letter-spacing: 0;
  cursor: pointer;
}
.tour-tabs button[aria-selected="true"] { background: rgba(255, 255, 255, 0.12); color: var(--orange); }
.tour-tabs button:hover { color: var(--orange-hi); }

.panels { display: grid; gap: 88px; }
.panel { display: grid; gap: 28px; justify-items: center; }
.panel figcaption { order: -1; text-align: center; max-width: 420px; }
.panel h2 {
  font-size: clamp(30px, 5vw, 50px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.04;
}
.panel figcaption p { margin-top: 12px; font-size: 19px; color: var(--text-2); }
.panel .phone { --w: min(76vw, 320px); }

.tabs-on .panels { gap: 0; }
.tabs-on .panel[hidden] { display: none; }
.tabs-on.switched .panel img { animation: show 0.22s ease-out; }
@keyframes show { from { opacity: 0.2; } to { opacity: 1; } }

@media (min-width: 900px) {
  .tour-tabs button { min-width: 92px; padding: 9px 18px 8px; font-size: 13px; }
  .panel { grid-template-columns: 400px auto; justify-content: center; justify-items: start; align-items: center; gap: 96px; }
  .panel figcaption { text-align: left; }
  .panel figcaption p { font-size: 21px; }
  .panel .phone { --w: 340px; }
}

@media (prefers-reduced-motion: reduce) {
  .tabs-on.switched .panel img { animation: none; }
}

/* closing */

.end { padding: 24px 0 112px; }
.end-col { display: grid; justify-items: center; text-align: center; gap: 22px; }
.end-icon { width: 88px; height: 88px; border-radius: 20px; }
.end h2 { font-size: clamp(32px, 5vw, 48px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.05; }
.end .get { justify-content: center; margin-top: 6px; }

/* footer */

.foot { border-top: 1px solid var(--ring); padding: 28px 0 40px; font-size: 14px; color: var(--text-2); }
.foot-row { display: grid; gap: 14px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 20px; }
.foot-links a { color: var(--text-2); }
.foot-links a:hover { color: var(--text); }
@media (min-width: 760px) {
  .foot-row { grid-template-columns: 1fr auto; align-items: center; }
}

/* Android install page */

.page { max-width: 640px; padding: 36px 0 96px; }
.page h1 {
  font-size: clamp(34px, 6vw, 48px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.05;
}
.page .intro { margin-top: 14px; font-size: 19px; color: var(--text-2); }
.page h2 { margin: 48px 0 16px; font-size: 24px; font-weight: 700; letter-spacing: -0.025em; }
.page p { color: var(--text-2); }
.page p + p { margin-top: 12px; }

.dl-card {
  margin-top: 32px; padding: 22px;
  background: var(--card); border-radius: 24px;
}
.dl-card .btn { width: 100%; }
.facts { margin: 18px 0 0; display: grid; }
.fact { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 11px 0; border-top: 1px solid var(--ring); font-size: 15px; }
.fact dt { color: var(--text-2); }
.fact dd { margin: 0; overflow-wrap: anywhere; }
.copy-row { display: flex; align-items: flex-start; gap: 10px; }
.copy-row span { font-size: 13px; line-height: 1.5; color: var(--text-2); }
.copy-btn {
  flex: none; border: 0; border-radius: 999px; padding: 5px 12px;
  background: var(--card-2); color: var(--text); font: 600 13px/1.2 var(--font); cursor: pointer;
}

.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 16px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 32px 1fr; gap: 14px; align-items: start; line-height: 1.45; }
.steps li::before {
  content: counter(step);
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: rgba(232, 93, 4, 0.16); color: var(--orange); font-weight: 700; font-size: 15px;
  margin-top: -4px;
}
