/*
 * Cite — joincite.com
 *
 * The palette is the app's darkColors table, and specifically `surface`
 * (#141414) for the page rather than `background` (#000000): every screen in
 * the app renders on surface, so black made the site look like a different
 * product.
 */

:root {
  --surface: #141414;
  --raised: #1c1c1e;
  --high: #242424;
  --hairline: #232327;
  --hairline-soft: #1e1e21;
  --rule-strong: #3a3a3c;

  --text: #ffffff;
  --text-2: #aeaeb2;
  --text-3: #85858b;

  --accent: #3ddc91;
  --accent-dim: rgba(61, 220, 145, 0.12);

  --food: #ff6b35;
  --hazard: #ff9500;
  --safety: #ff3b30;
  --campus: #5856d6;
  --access: #007aff;
  --gold: #ffb800;

  --page: 1020px;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font: 400 16px/1.55 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
svg { display: block; }

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

/* ── Type ───────────────────────────────────────────────────────────────── */

/* The app's field label: 11px, 700, wide tracking, muted. Reused here so the
   two share a vocabulary rather than merely a palette. */
.label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 0;
}

h1 {
  font-size: clamp(34px, 5.4vw, 54px);
  line-height: 1.06;
  letter-spacing: -0.035em;
  font-weight: 700;
  margin: 18px 0 0;
  max-width: 15ch;
}

h2 {
  font-size: clamp(25px, 3.2vw, 33px);
  line-height: 1.14;
  letter-spacing: -0.028em;
  font-weight: 700;
  margin: 14px 0 0;
  max-width: 20ch;
}

p { margin: 0; }

.body {
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.62;
  max-width: 52ch;
}

.small { color: var(--text-3); font-size: 13.5px; line-height: 1.55; }

/* ── Nav ────────────────────────────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(20, 20, 20, 0.82);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 220ms var(--ease), background 220ms var(--ease);
}

.nav[data-scrolled] { border-bottom-color: var(--hairline); }

.nav-in { display: flex; align-items: center; justify-content: space-between; height: 60px; }

.brand { display: flex; align-items: center; gap: 9px; font-size: 17px; font-weight: 700; letter-spacing: -0.02em; }

.nav-links { display: flex; gap: 26px; font-size: 14px; color: var(--text-2); }
.nav-links a { transition: color 150ms var(--ease); }
.nav-links a:hover { color: var(--text); }

/* ── The app's marker, in CSS ───────────────────────────────────────────── */

.pin { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; }
.pin i { width: 14px; height: 14px; border-radius: 50%; background: #fff; display: block; }
.pin b { width: 2px; height: 9px; margin-top: -1px; border-radius: 1px; background: #fff; display: block; }

/* ── Buttons ────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 22px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  transition: transform 140ms var(--ease), background 140ms var(--ease), border-color 140ms var(--ease);
}
.btn:active { transform: scale(0.975); }

.btn-fill { background: var(--text); color: #101010; }
.btn-fill:hover { background: #e6e6e6; }

.btn-line { background: transparent; border-color: var(--rule-strong); color: var(--text); }
.btn-line:hover { background: var(--raised); }

/* ── Layout ─────────────────────────────────────────────────────────────── */

section { padding: clamp(58px, 8.5vw, 100px) 0; }

.head { margin-bottom: 40px; }
.head .body { margin-top: 14px; }

/* Copy left, artefact right, with the artefact allowed to be the wider thing. */
.duo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(36px, 6vw, 72px);
  align-items: center;
}

/* ── Hero ───────────────────────────────────────────────────────────────── */

.hero { padding-top: clamp(48px, 7vw, 84px); }
.hero .body { margin-top: 20px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.hero-note { margin-top: 16px; }

/* ── Phone ──────────────────────────────────────────────────────────────── */

.phone {
  width: 292px;
  justify-self: center;
  border-radius: 40px;
  padding: 9px;
  background: #0b0b0b;
  border: 1px solid #303034;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6);
}

.screen {
  position: relative;
  height: 536px;
  border-radius: 32px;
  overflow: hidden;
  background: #0f1519;
  display: flex;
  flex-direction: column;
}

/* Roads, not graph paper: a few strokes at believable angles. */
.map { position: relative; flex: 1; }
.map svg { position: absolute; inset: 0; width: 100%; height: 100%; }

.map-chip {
  position: absolute;
  width: 26px;
  height: 26px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--raised);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

/* The pin sheet, rebuilt from the real one. */
.sheet {
  position: relative;
  background: var(--surface);
  border-top: 1px solid var(--hairline);
  border-radius: 22px 22px 0 0;
  padding: 9px 14px 14px;
}

.grab { width: 34px; height: 4px; border-radius: 2px; background: var(--rule-strong); margin: 0 auto 12px; }

.sheet-row { display: flex; align-items: center; gap: 10px; }

.tile {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: grid; place-items: center;
  flex-shrink: 0;
}

.sheet-title { font-size: 16px; font-weight: 700; letter-spacing: -0.025em; }
.sheet-meta {
  display: flex; align-items: center; gap: 5px;
  font-size: 11.5px; color: var(--text-2); margin-top: 3px;
}
.dot { width: 2px; height: 2px; border-radius: 50%; background: var(--text-3); flex-shrink: 0; }

.sheet-btns { display: flex; gap: 7px; margin-top: 13px; }
.sbtn {
  height: 34px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; gap: 5px;
  font-size: 12.5px; font-weight: 600;
}
.sbtn.go { flex: 1; background: var(--accent); color: #06180e; }
.sbtn.alt { flex: 1; background: var(--raised); color: var(--text); }
.sbtn.sq { width: 34px; background: var(--raised); }

.sheet-sec { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--hairline); }
.sheet-sec .label { font-size: 9.5px; }

.verify { display: flex; gap: 7px; margin-top: 8px; }
.vbtn {
  flex: 1; height: 32px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center; gap: 5px;
  font-size: 11.5px; font-weight: 600;
  border: 1px solid;
}

/* ── Divided list (what the app does with its own lists) ────────────────── */

.list { border-top: 1px solid var(--hairline-soft); }

.item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 18px;
  padding: 26px 0;
  border-bottom: 1px solid var(--hairline-soft);
  align-items: start;
}

.item-ico { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; }
.item h3 { margin: 0 0 6px; font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
.item p { color: var(--text-3); font-size: 14.5px; line-height: 1.6; max-width: 62ch; }

/* ── Expiry table ───────────────────────────────────────────────────────── */

.ttl { width: 100%; border-collapse: collapse; }
.ttl caption { text-align: left; padding-bottom: 14px; }
.ttl th {
  text-align: left;
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-3);
  padding: 0 0 10px;
  border-bottom: 1px solid var(--hairline-soft);
}
.ttl th:last-child, .ttl td:last-child { text-align: right; }
.ttl td { padding: 13px 0; border-bottom: 1px solid var(--hairline-soft); font-size: 15px; }
.ttl tr:last-child td { border-bottom: 0; }
.ttl .kind { display: flex; align-items: center; gap: 9px; font-weight: 500; }
.swatch { width: 7px; height: 7px; border-radius: 2px; flex-shrink: 0; }
.dur { font-variant-numeric: tabular-nums; color: var(--text-2); }

/* ── Audience switch (the real component) ───────────────────────────────── */

.aud { background: var(--raised); border: 1px solid var(--hairline); border-radius: 20px; padding: 16px; }
.aud-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px; border-radius: 14px;
  border: 1px solid transparent;
  background: var(--high);
}
.aud-row + .aud-row { margin-top: 8px; }
.aud-row.on { background: var(--accent-dim); border-color: var(--accent); }
.aud-ico { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; flex-shrink: 0; }
.aud-name { font-size: 14.5px; font-weight: 600; }
.aud-sub { font-size: 12px; color: var(--text-3); margin-top: 1px; }

/* ── Footer ─────────────────────────────────────────────────────────────── */

footer { border-top: 1px solid var(--hairline-soft); padding: 34px 0 46px; margin-top: 20px; }
.foot { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
.foot a { color: var(--text-3); font-size: 13.5px; transition: color 150ms var(--ease); }
.foot a:hover { color: var(--text); }
.foot-links { display: flex; gap: 20px; }

/* ── Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 860px) {
  .duo { grid-template-columns: 1fr; gap: 40px; }
  .hero .phone { order: -1; }
  .nav-links { display: none; }
  .item { grid-template-columns: 38px minmax(0, 1fr); gap: 14px; padding: 22px 0; }
  .item-ico { width: 38px; height: 38px; border-radius: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ── Detail ─────────────────────────────────────────────────────────────── */

::selection { background: rgba(61, 220, 145, 0.24); color: #fff; }

/* Keyboard focus was invisible, which on a page that is mostly links matters
   more than it looks like it should. */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}
:focus:not(:focus-visible) { outline: none; }

/* ── Entrance ───────────────────────────────────────────────────────────── */

/* Seen once per visit, so a small amount is affordable. 10px and 420ms: enough
   to feel like the page is arriving, not enough to wait for.
   Scoped to .js, set by an inline script in <head>: unscoped, a reader with
   JavaScript off would get a blank page rather than an unanimated one. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 420ms var(--ease), transform 420ms var(--ease);
}
.js [data-reveal].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
}
