/* Sprint brand page (/brand).
   Sections: tokens and base, top bar, hero, jump nav, sections, cards,
   logo assets, misuse grid, motion, icon, swatches, specimen, footer, responsive. */

@font-face {
  font-family: 'Google Sans';
  src: url('/assets/fonts/GoogleSans-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink:         #FFFFFF;
  --ink-2:       rgba(255,255,255,0.78);
  --muted:       rgba(255,255,255,0.55);
  --muted-2:     rgba(255,255,255,0.38);
  --paper:       #000000;
  --paper-2:     #0B0B0F;
  --card:        rgba(255,255,255,0.035);
  --line:        rgba(255,255,255,0.12);
  --accent:      #4D8FFF;
  --accent-deep: #7AABFF;
  --sans:        'Google Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono:        ui-monospace, SFMono-Regular, 'JetBrains Mono', Menlo, Consolas, monospace;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Top bar ---------- */
.top {
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(16px + env(safe-area-inset-top, 0px)) 20px 0;
}
.home img { display: block; width: 84px; height: auto; }
.pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 20px;
  background: var(--ink); color: var(--paper);
  border: 1px solid var(--ink); border-radius: 999px;
  font-size: 14px; font-weight: 600; text-decoration: none;
  transition: background .2s ease, border-color .2s ease;
}
.pill svg { width: 16px; height: 16px; }
.pill--ghost { background: rgba(255,255,255,0.05); color: var(--ink); border-color: rgba(255,255,255,0.18); padding: 8px 16px; font-size: 13px; }
.pill--ghost:hover { border-color: rgba(255,255,255,0.4); }
.pill:not(.pill--ghost):hover { background: var(--accent-deep); border-color: var(--accent-deep); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  max-width: 720px; margin: 0 auto;
  padding: 56px 24px 40px;
  text-align: center;
}
.hero::before { /* the homepage's blue glow, behind the logo */
  content: ""; position: absolute; left: 50%; top: 40%; z-index: -1;
  width: 620px; height: 340px; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(77,143,255,0.22), rgba(77,143,255,0));
  pointer-events: none;
}
.eyebrow, .tag {
  margin: 0;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted);
}
.hero-logo { display: block; width: min(360px, 70vw); height: auto; margin: 22px auto 26px; }
.lede { margin: 0 auto; max-width: 56ch; font-size: 16px; line-height: 1.55; color: var(--ink-2); text-wrap: balance; }

/* ---------- Jump nav ---------- */
.jump {
  position: sticky; top: 0; z-index: 5;
  display: flex; gap: 6px; justify-content: center;
  padding: 12px 16px;
  overflow-x: auto; scrollbar-width: none;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.jump::-webkit-scrollbar { display: none; }
.jump a {
  flex: none;
  padding: 6px 13px; border-radius: 999px;
  font-size: 13px; color: var(--muted); text-decoration: none;
  border: 1px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.jump a:hover { color: var(--ink); border-color: var(--line); }

/* ---------- Sections ---------- */
.wrap { max-width: 920px; margin: 0 auto; padding: 8px 24px 40px; }
section { padding: 56px 0 8px; }
section + section { border-top: 1px solid var(--line); margin-top: 48px; }
h2 { margin: 0 0 14px; font-size: clamp(26px, 4vw, 34px); font-weight: 700; letter-spacing: -0.02em; }
.lead { margin: 0 0 26px; max-width: 68ch; font-size: 15.5px; line-height: 1.6; color: var(--ink-2); }
.lead strong { color: var(--ink); }
.note { margin: 18px 0 0; max-width: 68ch; font-size: 13.5px; line-height: 1.6; color: var(--muted); }
.actions { margin: 22px 0 0; }

.grid { display: grid; gap: 14px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
figure { margin: 0; }

/* ---------- Cards ---------- */
.card {
  border: 1px solid var(--line); border-radius: 16px;
  background: var(--card);
  padding: 18px 20px;
}
.card b { display: block; font-size: 15px; margin-bottom: 6px; }
.card p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--muted); }
figure.card { padding: 0; overflow: hidden; }
figure.card figcaption { padding: 12px 18px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); }
.card-art { min-height: 200px; display: flex; align-items: center; justify-content: center; padding: 28px; }
.card-art--sizes { gap: 28px; align-items: flex-end; }
.card-art--sizes img { height: auto; }
.clearspace { border: 1.5px dashed var(--accent); border-radius: 8px; padding: 26px; }
.clearspace img { display: block; width: 150px; height: auto; }

.card--list ul { margin: 12px 0 0; padding-left: 18px; }
.card--list li { margin: 0 0 8px; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.card--list li::marker { color: var(--muted-2); }
.tag { display: inline-block; padding: 4px 10px; border-radius: 999px; font-weight: 600; }
.tag--do   { color: #7DE3A6; background: rgba(61,214,140,0.12); }
.tag--dont { color: #FF8A8A; background: rgba(255,90,90,0.12); }

/* ---------- Logo assets ---------- */
.asset { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.asset-art { height: 220px; display: flex; align-items: center; justify-content: center; padding: 32px; }
.asset-art img { width: min(240px, 80%); height: auto; }
.asset--dark .asset-art { background: var(--paper-2); }
.asset--light .asset-art { background: #FFFFFF; }
.asset figcaption {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; font-size: 14px; font-weight: 600;
  background: var(--card); border-top: 1px solid var(--line);
}
.files { display: inline-flex; gap: 6px; }
.files a {
  padding: 5px 12px; border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 12.5px; font-weight: 600; color: var(--accent-deep); text-decoration: none;
  transition: border-color .2s ease, color .2s ease;
}
.files a:hover { color: var(--ink); border-color: var(--accent); }

/* ---------- Misuse grid ---------- */
.misuse { margin-top: 14px; }
.misuse figure { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.misuse figure > div {
  position: relative; height: 128px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: var(--paper-2);
}
.misuse figure > div::after { /* the red strike */
  content: ""; position: absolute; left: 12%; right: 12%; top: 50%;
  height: 2px; background: #FF5A5A; transform: rotate(-18deg); opacity: .85;
}
.misuse img { width: 110px; height: auto; }
.misuse figcaption { padding: 10px 14px; font-size: 12.5px; color: var(--muted); border-top: 1px solid var(--line); }

/* ---------- Motion ---------- */
.motion-stage { overflow: hidden; background: var(--paper-2); }
.motion-stage svg, .motion-stage img { display: block; width: min(240px, 80%); height: auto; overflow: visible; } /* the dot falls in from the card edge */
.motion-cap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.replay {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: none;
  font: 600 12.5px var(--sans); color: var(--accent-deep); cursor: pointer;
  transition: border-color .2s ease, color .2s ease;
}
.replay:hover { color: var(--ink); border-color: var(--accent); }
.replay svg { width: 13px; height: 13px; }
.motion-notes { margin-top: 14px; }

/* ---------- Icon ---------- */
.icon-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 22px; }
.icon-row img { display: block; border-radius: 22%; box-shadow: 0 0 0 1px var(--line); }
.icon-row .files { margin-left: auto; align-self: center; }

/* ---------- Swatches ---------- */
.swatches figure { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.swatches figure > div { height: 112px; }
.swatches figcaption { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; background: var(--card); }
.swatches b { font-size: 14px; }
.swatches span { font-family: var(--mono); font-size: 12px; color: var(--muted); }

/* ---------- Specimen ---------- */
.specimen {
  border: 1px solid var(--line); border-radius: 16px;
  padding: 30px 32px;
  background: radial-gradient(ellipse 70% 120% at 0% 0%, rgba(77,143,255,0.14), rgba(77,143,255,0) 70%), var(--card);
}
.specimen p { margin: 0; }
.specimen-name { font-size: clamp(40px, 7vw, 60px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; }
.specimen-glyphs { margin-top: 12px !important; font-size: 22px; color: var(--ink-2); }
.specimen-line { margin-top: 16px !important; font-size: 17px; color: var(--muted); }
.specimen-eyebrow { margin-top: 18px !important; font-size: 11px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-2); }

/* ---------- Name + contact ---------- */
.contact { margin: 0; font-size: 14px; color: var(--muted); }
.contact a { color: var(--ink-2); text-decoration: none; border-bottom: 1px solid var(--line); }
.contact a:hover { color: var(--ink); border-color: var(--accent); }

/* ---------- Footer ---------- */
footer {
  margin-top: 56px;
  padding: 36px 24px calc(36px + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  border-top: 1px solid var(--line);
  text-align: center; font-size: 12px; color: var(--muted-2);
}
footer p { margin: 0; }
.brand-group { display: inline-flex; align-items: center; gap: 10px; opacity: 0.62; text-decoration: none; transition: opacity 200ms ease; }
.brand-group:hover { opacity: 1; }
.brand-group__label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.brand-group img { height: 30px; width: auto; display: block; filter: brightness(0) invert(1); }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jump { justify-content: flex-start; }
}
@media (max-width: 560px) {
  .grid--2 { grid-template-columns: 1fr; }
  .wrap { padding: 0 16px 32px; }
  .hero { padding: 40px 16px 32px; }
  .top { padding-left: 16px; padding-right: 16px; }
  section { padding-top: 44px; }
  section + section { margin-top: 36px; }
  .specimen { padding: 24px 20px; }
  .icon-row .files { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
