/* Vitua — light theme. No external fonts or assets: the page is fully
   self-contained so it loads fast and renders identically offline. */

:root {
  --blue: #2a78d6;
  --blue-dark: #1f5da8;
  --blue-soft: #eef4fd;
  --green: #1baf7a;
  --green-soft: #e8f7f1;
  --amber: #b4770e;
  --amber-soft: #fdf4e3;

  --ink: #16181d;
  --ink-2: #3a4150;
  --muted: #666e7d;
  --line: #e4e7ec;
  --line-soft: #eff1f4;
  --bg: #ffffff;
  --bg-2: #fafbfc;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(20, 25, 40, .05), 0 8px 24px rgba(20, 25, 40, .06);
  --shadow-lg: 0 2px 4px rgba(20, 25, 40, .05), 0 18px 44px rgba(20, 25, 40, .10);
  --maxw: 1080px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.2; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); font-weight: 650; }
h3 { font-size: 1.12rem; font-weight: 650; }
p  { margin: 0 0 1.1em; }
a  { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section--alt { background: var(--bg-2); border-block: 1px solid var(--line-soft); }
.lede { font-size: clamp(1.02rem, 1.9vw, 1.18rem); color: var(--ink-2); max-width: 64ch; }
.muted { color: var(--muted); }
.center { text-align: center; }
.center .lede { margin-inline: auto; }

/* ---------------------------------------------------------------- header */

header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 680; font-size: 1.06rem; color: var(--ink); }
.brand:hover { text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--ink-2); font-size: .93rem; font-weight: 500; }
.nav-links a:hover { color: var(--blue); text-decoration: none; }
@media (max-width: 720px) { .nav-links a:not(.btn) { display: none; } }

/* ------------------------------------------------------------------ hero */

.hero { padding: clamp(60px, 9vw, 108px) 0 clamp(48px, 7vw, 80px); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--blue); background: var(--blue-soft);
  padding: 6px 13px; border-radius: 100px; margin-bottom: 18px;
}
.hero h1 .accent {
  background: linear-gradient(180deg, transparent 62%, rgba(27,175,122,.28) 62%);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* --------------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--radius-sm);
  font-size: .95rem; font-weight: 600; font-family: inherit;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 1px 2px rgba(42,120,214,.3), 0 6px 18px rgba(42,120,214,.22); }
.btn-primary:hover { background: var(--blue-dark); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: var(--shadow); }
.btn-ghost:hover { border-color: #cfd5de; }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: #169166; }
.btn-sm { padding: 9px 15px; font-size: .87rem; }

/* ------------------------------------------------------------ pair panel */

.pairviz { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 20px; }
.pairviz-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.shot { border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-2); }
.shot-tag { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 7px 11px; }
.shot-a .shot-tag { background: var(--blue-soft); color: var(--blue); }
.shot-b .shot-tag { background: var(--amber-soft); color: var(--amber); }
.shot-body { padding: 12px; font-size: .84rem; color: var(--ink-2); line-height: 1.5; }
.shot-scene { display: block; height: 84px; margin-bottom: 10px; border-radius: 6px; background: #fff; border: 1px solid var(--line-soft); }
.pairviz-note { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); font-size: .84rem; color: var(--muted); text-align: center; }
.pairviz-note strong { color: var(--ink-2); }

/* ----------------------------------------------------------------- cards */

.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }

/* industry application cards — image sits flush, so padding moves to the body */
.subhead { margin-top: 56px; margin-bottom: .5em; }
.lede-sm { font-size: 1rem; }
.card-app { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.card-app-body { padding: 20px 22px 22px; }
.card-app h3 { margin-bottom: .4em; }
.app-img {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 9;
  object-fit: cover; background: var(--bg-2);
  border-bottom: 1px solid var(--line);
}

/* ------------------------------------------- opt-in checkbox + recovery */

.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-weight: 400; }
.check input { margin-top: 3px; flex: 0 0 auto; width: 16px; height: 16px; accent-color: var(--blue); cursor: pointer; }
.check span { font-size: .88rem; line-height: 1.5; color: var(--muted); }

.recover-line { margin: 14px 0 0; font-size: .88rem; color: var(--muted); text-align: center; }
.recover-head { margin-bottom: .3em; }

/* ---------------------------------------------------- contributors table */

.contrib { width: 100%; border-collapse: collapse; font-size: .95rem; }
.contrib th, .contrib td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.contrib thead th {
  font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); border-bottom: 2px solid var(--line);
}
.contrib tbody tr:last-child td { border-bottom: none; }
.contrib-rank, .contrib-num { width: 1%; white-space: nowrap; text-align: right; }
.contrib td.contrib-rank { color: var(--muted); font-variant-numeric: tabular-nums; }
.contrib td.contrib-num { font-weight: 700; font-variant-numeric: tabular-nums; }
.contrib-since { white-space: nowrap; color: var(--muted); }
.contrib-name { font-weight: 600; color: var(--ink); }
/* top three get a quiet nod rather than medals */
.contrib tbody tr:nth-child(-n+3) .contrib-rank { color: var(--blue); font-weight: 700; }
.contrib-note { margin: 14px 0 0; font-size: .88rem; color: var(--muted); }

.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;
}

@media (max-width: 620px) {
  .contrib-since { display: none; }
  .contrib th, .contrib td { padding: 11px 8px; }
}
.card-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 8px; margin-bottom: 14px;
  background: var(--blue-soft); color: var(--blue); font-weight: 700; font-size: .9rem;
}

.callout {
  border-left: 3px solid var(--green); background: var(--green-soft);
  padding: 18px 22px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 28px 0;
}
.callout p:last-child { margin-bottom: 0; }
.callout--amber { border-left-color: var(--amber); background: var(--amber-soft); }

.spec { width: 100%; border-collapse: collapse; font-size: .92rem; margin-top: 8px; }
.spec th, .spec td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.spec th { font-weight: 650; color: var(--ink); width: 34%; }
.spec td { color: var(--ink-2); }
.spec tr:last-child th, .spec tr:last-child td { border-bottom: none; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

code, .mono { font-family: var(--mono); font-size: .89em; background: var(--bg-2); border: 1px solid var(--line-soft); padding: 1px 6px; border-radius: 5px; }

/* ------------------------------------------------------------- volunteer */

.claim-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: clamp(22px, 4vw, 36px); max-width: 760px; margin: 0 auto; }

.progress { margin-bottom: 26px; }
.progress-bar { height: 9px; border-radius: 100px; background: var(--line-soft); overflow: hidden; display: flex; }
.progress-done { background: var(--green); transition: width .5s ease; }
.progress-wip  { background: var(--blue); opacity: .55; transition: width .5s ease; }
.progress-meta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 10px; font-size: .84rem; color: var(--muted); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: baseline; }
.dot-done { background: var(--green); } .dot-wip { background: var(--blue); opacity: .55; } .dot-open { background: var(--line); }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; padding: 11px 13px; font: inherit; font-size: .94rem; color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(42,120,214,.13); }
.field-hint { font-size: .81rem; color: var(--muted); margin-top: 5px; }

.assignment { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.assignment-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 20px; background: var(--blue-soft); border-bottom: 1px solid var(--line); }
.assignment-id { font-family: var(--mono); font-size: 1.15rem; font-weight: 700; color: var(--blue-dark); }
.assignment-cat { font-size: .85rem; color: var(--ink-2); }
.assignment-body { padding: 20px; }
.shot-block { margin-bottom: 18px; }
.shot-block:last-child { margin-bottom: 0; }
.shot-label { display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 3px 9px; border-radius: 5px; margin-bottom: 7px; }
.shot-label-a { background: var(--blue-soft); color: var(--blue); }
.shot-label-b { background: var(--amber-soft); color: var(--amber); }
.shot-label-c { background: var(--green-soft); color: var(--green); }
.shot-text { font-size: .95rem; color: var(--ink-2); }
.filenames { font-family: var(--mono); font-size: .85rem; background: var(--bg-2); border: 1px solid var(--line-soft); border-radius: var(--radius-sm); padding: 12px 14px; margin-top: 6px; }
.expiry { font-size: .86rem; color: var(--amber); background: var(--amber-soft); border-radius: var(--radius-sm); padding: 10px 14px; margin-top: 16px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

.status { padding: 12px 16px; border-radius: var(--radius-sm); font-size: .9rem; margin-top: 16px; }
.status-ok   { background: var(--green-soft); color: #146b4c; }
.status-err  { background: #fdeceb; color: #a3302a; }
.status-info { background: var(--blue-soft); color: var(--blue-dark); }
.hidden { display: none !important; }

.spinner { width: 15px; height: 15px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* ---------------------------------------------------------------- footer */

footer { border-top: 1px solid var(--line); padding: 44px 0 56px; background: var(--bg-2); }
.foot { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center; }
.foot-links { display: flex; flex-wrap: wrap; gap: 22px; font-size: .92rem; }
.badge { display: inline-block; font-size: .76rem; font-weight: 600; padding: 3px 9px; border-radius: 5px; background: var(--bg-2); border: 1px solid var(--line); color: var(--muted); margin-left: 8px; }

/* -------------------------------------------------------- try.html / account */

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

.account-card { margin-top: 28px; }
.account-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.account-email { font-weight: 650; }

.tier-badge {
  display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; padding: 3px 9px; border-radius: 5px;
}
.tier-free { background: var(--line-soft); color: var(--muted); }
.tier-pro  { background: var(--green-soft); color: #146b4c; }

.result { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 20px; }
.pred-row { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.pred-row:last-child { margin-bottom: 0; }
.pred-label { flex: 0 0 auto; width: 30%; font-size: .88rem; color: var(--ink-2); }
.pred-bar { flex: 1 1 auto; height: 10px; border-radius: 999px; background: var(--line-soft); overflow: hidden; }
.pred-fill { display: block; height: 100%; background: var(--blue); border-radius: 999px; }
.pred-val { flex: 0 0 auto; width: 42px; text-align: right; font-size: .84rem; font-variant-numeric: tabular-nums; color: var(--muted); }
.pred-abstain { margin-top: 12px; font-size: .88rem; color: var(--amber); }
