/* DataVisuals Labs — static site */

:root {
  --bg: #081A30;
  --surface: #0E2747;
  --blue: #1A63B0;
  --blue-hover: #1f6fc4;
  --ink: #F4F7FB;
  --slate: #9DB3CD;
  --slate-faint: rgba(157, 179, 205, 0.55);
  --border: rgba(157, 179, 205, 0.18);
  --font-sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  --max: 1120px;
  --gutter: 24px;
  --radius: 8px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

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

/* ─── Header ─────────────────────────────────────────────── */

.site-header {
  border-bottom: 1px solid var(--border);
}

.site-header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.site-brand:hover { text-decoration: none; }

.site-brand img {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.site-brand-text {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.site-brand-text sup {
  font-size: 0.62em;
  vertical-align: super;
  line-height: 0;
}

.labs-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border: 1px solid var(--blue-hover);
  border-radius: 999px;
  background: var(--blue);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  vertical-align: middle;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 15px;
}

.site-nav a {
  color: var(--slate);
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--ink);
  text-decoration: none;
}

/* ─── Main ───────────────────────────────────────────────── */

main {
  flex: 1 1 auto;
}

.frame {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

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

.hero {
  padding: 72px 0 56px;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.15;
  max-width: 18ch;
}

.hero-sub {
  margin: 0 0 12px;
  font-size: 1.25rem;
  color: var(--ink);
  font-weight: 400;
}

.hero-about {
  margin: 0;
  color: var(--slate);
  max-width: 42ch;
}

/* ─── Sections ───────────────────────────────────────────── */

.section {
  padding: 0 0 64px;
}

.section-heading {
  margin: 0 0 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
}

.section-heading:has(+ .section-deck) {
  margin-bottom: 6px;
}

.section-deck {
  margin: 0 0 24px;
  max-width: 46ch;
  color: var(--slate);
  font-size: 1rem;
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 768px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* A section holding a single card: span the full content width */
.card-grid.is-single { grid-template-columns: 1fr; }

/* ─── Cards ──────────────────────────────────────────────── */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card h2 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

/* Top-banner thumbnail (landscape) — bleeds to the card edges */
.card-thumb {
  display: block;
  width: calc(100% + 56px);
  height: 184px;
  margin: -28px -28px 18px;
  object-fit: cover;
  object-position: center;
  border-bottom: 1px solid var(--border);
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
}

/* Media card: portrait screenshot beside the copy (full-width single card) */
.card-media { flex-direction: row; align-items: stretch; gap: 28px; }

.card-media-img {
  flex: 0 0 auto;
  width: auto;
  height: auto;
  max-height: 220px;
  max-width: 190px;
  align-self: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.card-media-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1 1 auto;
  min-width: 0;
}

@media (max-width: 620px) {
  .card-thumb { height: 150px; }
  .card-media { flex-direction: column; }
  .card-media-img { align-self: flex-start; max-width: 150px; }
}

.card-lede {
  margin: 0;
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.4;
}

.card-body {
  margin: 0;
  color: var(--slate);
  flex: 1 1 auto;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(26, 99, 176, 0.15);
  border: 1px solid rgba(26, 99, 176, 0.35);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--slate);
  white-space: nowrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 10px 18px;
  border-radius: 6px;
  background: var(--blue);
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn:hover {
  background: var(--blue-hover);
  text-decoration: none;
  color: var(--ink);
}

/* ─── Page (brochure / about) ────────────────────────────── */

.page {
  padding: 56px 0 72px;
}

.page-kicker {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
}

.page h1 {
  margin: 0 0 20px;
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.page-lede {
  margin: 0 0 32px;
  color: var(--slate);
  max-width: 52ch;
  font-size: 1.1rem;
}

.page-shot {
  margin: 0 0 32px;
}

.page-shot img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 460px;
  height: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* Phone-screenshot gallery (app pages) — input → chart → reshape */
.shots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 0 0 36px;
  max-width: 760px;
}

.shots figure { margin: 0; }

.shots img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.shots figcaption {
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--slate);
}

@media (max-width: 620px) {
  .shots { grid-template-columns: 1fr; max-width: 320px; }
}

.page-body {
  max-width: 52ch;
}

.page-body p {
  margin: 0 0 1em;
  color: var(--slate);
}

.page-body p:last-child {
  margin-bottom: 0;
}

.page-cta {
  margin-top: 36px;
}

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

.site-footer {
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.site-footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px var(--gutter);
  font-size: 14px;
  color: var(--slate-faint);
}

.site-footer-inner a {
  color: var(--slate);
}

.site-footer-inner a:hover {
  color: var(--ink);
}

.footer-sep {
  margin: 0 8px;
  opacity: 0.4;
}

/* ─── Services ───────────────────────────────────────────── */

/* Accent utility + wider hero for the Services page */
.svc-hero h1 { max-width: 22ch; }
.svc-hero .accent { color: var(--blue); }

/* Services call-out band (homepage) — horizontal, breaks the stacked rhythm */
.svc-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 32px;
}

.svc-band-copy {
  margin: 0;
  max-width: 60ch;
  color: var(--slate);
}

.svc-band .btn { flex: none; }

/* Value-prop ribbon under the Services band */
.svc-strip {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* Offer spec-sheet cards */
.offers {
  display: grid;
  gap: 24px;
}

.offer {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.offer-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 24px 28px 14px;
}

.offer-head h3 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.price {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  background: rgba(26, 99, 176, 0.18);
  border: 1px solid rgba(26, 99, 176, 0.35);
  padding: 4px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.offer-sub {
  margin: 0;
  padding: 0 28px 20px;
  color: var(--slate);
  max-width: 62ch;
}

/* The You bring / You get / Good for ledger */
.ledger {
  border-top: 1px solid var(--border);
}

.ledger-row {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 20px;
  padding: 14px 28px;
  border-bottom: 1px solid var(--border);
}

.ledger-row:last-child { border-bottom: none; }

.ledger-key {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate);
  padding-top: 3px;
}

.ledger-val {
  margin: 0;
  color: var(--ink);
  font-size: 0.98rem;
}

.ledger-val .note { color: var(--slate); }
.ledger-val .mono { font-family: var(--font-mono); font-size: 0.92em; }

.offer-foot {
  padding: 16px 28px;
  background: rgba(0, 0, 0, 0.14);
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--slate);
}

/* Shipped-work proof strip */
.proof-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 768px) {
  .proof-grid { grid-template-columns: repeat(3, 1fr); }
}

.proof {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.15s ease;
}

.proof:hover, .proof:focus-visible {
  border-color: var(--blue);
  text-decoration: none;
  color: var(--ink);
}

.proof .tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
}

.proof h3 {
  margin: 6px 0;
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.proof p { margin: 0; font-size: 0.92rem; color: var(--slate); }

.proof-note { margin: 18px 0 0; color: var(--slate); }

/* Capacity + CTA box (focal panel on the dark page) */
.cta-box {
  background: var(--surface);
  border: 1px solid rgba(26, 99, 176, 0.5);
  border-radius: 12px;
  padding: 36px;
}

.cta-box .capacity {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
  text-decoration: none;
}

a.capacity:hover { color: var(--ink); text-decoration: none; }

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ED3A5;
  display: inline-block;
  flex: none;
}

.cta-box h2 {
  margin: 14px 0 0;
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.cta-box > p {
  margin: 10px 0 0;
  color: var(--slate);
  max-width: 52ch;
}

.cta-box .btn { margin-top: 22px; }

.cta-alt {
  display: block;
  margin-top: 14px;
  font-size: 0.9rem;
  color: var(--slate);
}

@media (max-width: 620px) {
  .ledger-row { grid-template-columns: 1fr; gap: 4px; }
  .cta-box { padding: 28px 22px; }
}

/* ─── Legal / prose (privacy, terms) ─────────────────────── */

.page-body h2 {
  margin: 34px 0 10px;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.page-body h2:first-child { margin-top: 0; }

.page-body ul {
  margin: 0 0 1em;
  padding-left: 1.2em;
  color: var(--slate);
}

.page-body li { margin: 0 0 0.4em; }

.page-body a { color: var(--blue); }

.page-updated {
  margin: 0 0 28px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--slate-faint);
}

/* ─── 404 ────────────────────────────────────────────────── */

.not-found {
  padding: 96px 0;
  text-align: center;
}

.not-found h1 {
  margin: 0 0 12px;
  font-size: 1.5rem;
  font-weight: 500;
}

.not-found p {
  margin: 0 0 28px;
  color: var(--slate);
}
