/* Docket — shared design system
   Layout/spacing/component conventions follow Vercel's Geist design system:
   monochrome dark surface, one accent color, 8px-based spacing, system fonts. */

:root{
  --bg: #000000;
  --bg-raised: #0a0a0a;
  --surface: #111111;
  --surface-hover: #171717;

  --border: rgba(255,255,255,0.145);
  --border-strong: rgba(255,255,255,0.28);

  --fg: #ffffff;
  --fg-secondary: #a1a1a1;
  --fg-tertiary: #8a8a8a;

  --accent: #0070f3;
  --accent-fg: #ffffff;
  --success: #17c964;
  --success-bg: rgba(23,201,100,0.12);

  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 14px;

  --container: 1180px;
  --gutter: 24px;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", ui-sans-serif, Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
}

*, *::before, *::after{ box-sizing:border-box; }
[hidden]{ display:none !important; }
html{ -webkit-text-size-adjust:100%; }
html, body{ margin:0; padding:0; background:var(--bg); }

body{
  font-family:var(--font-sans);
  color:var(--fg);
  font-size:16px;
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
}

h1,h2,h3,h4{ margin:0; font-weight:600; letter-spacing:-0.02em; color:var(--fg); }
p{ margin:0; }
a{ color:inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
img{ max-width:100%; display:block; }
button{ font-family:inherit; }
::selection{ background:var(--accent); color:#fff; }

:focus-visible{ outline:2px solid var(--accent); outline-offset:2px; border-radius:2px; }

.mono{ font-family:var(--font-mono); }

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

@media (max-width:640px){
  :root{ --gutter:16px; }
}

/* ---------- type scale ---------- */
.text-display{ font-size:clamp(32px, 6vw, 56px); line-height:1.08; }
.text-h1{ font-size:clamp(28px, 5vw, 42px); line-height:1.12; }
.text-h2{ font-size:clamp(22px, 3.4vw, 30px); line-height:1.2; }
.text-h3{ font-size:19px; line-height:1.3; }
.text-lede{ font-size:17px; line-height:1.6; color:var(--fg-secondary); font-weight:400; }
.text-body{ font-size:15px; line-height:1.65; color:var(--fg-secondary); font-weight:400; }
.text-small{ font-size:13px; line-height:1.5; color:var(--fg-tertiary); }

.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-family:var(--font-mono); font-size:12px; font-weight:500;
  letter-spacing:0.02em; color:var(--fg-secondary);
  text-transform:uppercase;
}
.eyebrow::before{
  content:""; width:6px; height:6px; border-radius:50%; background:var(--accent);
  flex-shrink:0;
}

/* ---------- buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  height:44px; padding:0 18px; border-radius:var(--radius-sm);
  font-size:14px; font-weight:500; white-space:nowrap; cursor:pointer;
  border:1px solid transparent; transition:background .15s ease, border-color .15s ease, opacity .15s ease;
}
.btn-lg{ height:48px; padding:0 22px; font-size:15px; }
.btn-primary{ background:#fff; color:#000; }
.btn-primary:hover{ background:#ededed; }
.btn-secondary{ background:transparent; color:var(--fg); border-color:var(--border-strong); }
.btn-secondary:hover{ background:var(--surface); }
.btn-ghost{ background:transparent; color:var(--fg-secondary); }
.btn-ghost:hover{ color:var(--fg); }
.btn:disabled{ opacity:0.5; cursor:not-allowed; }
.btn svg{ flex-shrink:0; }

/* ---------- header / nav ---------- */
.site-header{
  position:sticky; top:0; z-index:50;
  background:rgba(0,0,0,0.75); backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px);
  border-bottom:1px solid var(--border);
}
.site-header .bar{
  display:flex; align-items:center; justify-content:space-between;
  height:64px;
}
.logo{ font-size:16px; font-weight:600; letter-spacing:-0.01em; display:flex; align-items:center; gap:8px; }
.logo-tag{
  font-family:var(--font-mono); font-size:11px; font-weight:600; letter-spacing:0.04em; text-transform:uppercase;
  color:var(--accent); background:rgba(0,112,243,0.12); border:1px solid rgba(0,112,243,0.32);
  padding:3px 7px; border-radius:5px; line-height:1;
  position:relative; top:2px; /* optical nudge: box-centers with the wordmark, but an all-caps mono badge next to mixed-case text reads high otherwise */
}

.nav-links{ display:none; align-items:center; gap:8px; }
.nav-links a{
  font-size:14px; color:var(--fg-secondary); padding:8px 12px; border-radius:var(--radius-sm);
}
.nav-links a:hover{ color:var(--fg); background:var(--surface); }
.nav-links a[aria-current="page"]{ color:var(--fg); }

.nav-actions{ display:flex; align-items:center; gap:10px; }
.nav-toggle{
  display:inline-flex; width:36px; height:36px; align-items:center; justify-content:center;
  border-radius:var(--radius-sm); border:1px solid var(--border-strong); background:transparent; color:var(--fg);
}

.mobile-nav{
  display:none; flex-direction:column; gap:2px;
  border-bottom:1px solid var(--border); background:var(--bg);
  padding:8px var(--gutter) 16px;
}
.mobile-nav.open{ display:flex; }
.mobile-nav a{
  padding:12px 8px; font-size:15px; color:var(--fg-secondary); border-radius:var(--radius-sm);
}
.mobile-nav a[aria-current="page"]{ color:var(--fg); }

@media (min-width:860px){
  .nav-links{ display:flex; }
  .nav-toggle{ display:none; }
  .mobile-nav{ display:none !important; }
}

/* ---------- generic section ---------- */
.section{ padding:88px 0; border-top:1px solid var(--border); }
.section:first-of-type{ border-top:none; }
.section-head{ max-width:640px; margin-bottom:48px; }
.section-head .eyebrow{ margin-bottom:14px; }
.section-head h2{ margin-top:2px; }
.section-head .text-lede{ margin-top:14px; }

@media (max-width:640px){
  .section{ padding:56px 0; }
  .section-head{ margin-bottom:32px; }
}

/* ---------- card ---------- */
.card{
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-md);
  padding:24px;
}

/* ---------- grid helpers ---------- */
.grid{ display:grid; gap:20px; }
.grid > *{ min-width:0; }
.grid-2{ grid-template-columns:repeat(2,1fr); }
.grid-3{ grid-template-columns:repeat(3,1fr); }
.grid-4{ grid-template-columns:repeat(4,1fr); }
@media (max-width:900px){
  .grid-3, .grid-4{ grid-template-columns:repeat(2,1fr); }
}
@media (max-width:640px){
  .grid-2, .grid-3, .grid-4{ grid-template-columns:1fr; }
}

/* ---------- badge ---------- */
.badge{
  display:inline-flex; align-items:center; gap:6px;
  font-size:12px; font-weight:500; padding:4px 10px; border-radius:999px;
  background:var(--surface); border:1px solid var(--border); color:var(--fg-secondary);
}
.badge.success{ background:var(--success-bg); border-color:rgba(23,201,100,0.28); color:var(--success); }

/* ---------- table ---------- */
.table-wrap{ overflow-x:auto; border:1px solid var(--border); border-radius:var(--radius-md); }
table{ width:100%; border-collapse:collapse; min-width:560px; }
thead th{
  text-align:left; font-family:var(--font-mono); font-size:11.5px; font-weight:500;
  letter-spacing:0.06em; text-transform:uppercase; color:var(--fg-tertiary);
  padding:14px 16px; border-bottom:1px solid var(--border); background:var(--bg-raised);
}
tbody td{ padding:16px; border-bottom:1px solid var(--border); font-size:14.5px; }
tbody tr:last-child td{ border-bottom:none; }
tbody tr:hover{ background:var(--surface); }
td.rank{ font-family:var(--font-mono); color:var(--fg-tertiary); width:44px; }
td.score{ font-family:var(--font-mono); font-weight:600; color:var(--fg); text-align:right; }
td.name{ font-weight:500; }
td.area, td.trait{ color:var(--fg-secondary); }

/* ---------- form controls ---------- */
.field{ display:flex; flex-direction:column; gap:6px; }
.field label{ font-size:13px; font-weight:500; color:var(--fg-secondary); }
.field .hint{ font-size:12.5px; color:var(--fg-tertiary); }
input[type="text"], input[type="email"], input[type="password"], input[type="number"],
input[type="search"], input[type="date"], input[type="url"], select, textarea{
  height:44px; padding:0 12px; border-radius:var(--radius-sm);
  background:var(--surface); border:1px solid var(--border-strong); color:var(--fg);
  font-size:14.5px; font-family:inherit;
  -webkit-appearance:none; appearance:none;
}
textarea{ height:auto; padding:10px 12px; min-height:88px; resize:vertical; }
input::placeholder{ color:var(--fg-tertiary); }
input[type="search"]::-webkit-search-cancel-button{ display:none; }
select{
  padding-right:36px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23a1a1a1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:right 10px center;
}
input[type="date"]::-webkit-calendar-picker-indicator{ filter:invert(1) opacity(0.6); cursor:pointer; }

/* ---------- footer ---------- */
.site-footer{ border-top:1px solid var(--border); padding:48px 0 40px; }
.foot-top{
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:16px;
  padding-bottom:24px; border-bottom:1px solid var(--border);
}
.foot-links{ display:flex; gap:22px; flex-wrap:wrap; }
.foot-links a{ font-size:13.5px; color:var(--fg-secondary); }
.foot-links a:hover{ color:var(--fg); }
.fine-print{ margin-top:20px; font-size:12.5px; color:var(--fg-tertiary); max-width:70ch; line-height:1.6; }

/* ---------- utility ---------- */
.stack{ display:flex; flex-direction:column; }
.row{ display:flex; align-items:center; flex-wrap:wrap; row-gap:6px; }
.gap-8{ gap:8px; } .gap-12{ gap:12px; } .gap-16{ gap:16px; } .gap-24{ gap:24px; }
.mt-8{ margin-top:8px; } .mt-16{ margin-top:16px; } .mt-24{ margin-top:24px; } .mt-32{ margin-top:32px; } .mt-48{ margin-top:48px; }
.hairline{ border:none; border-top:1px solid var(--border); }
.notice{
  border:1px solid var(--border-strong); background:var(--surface); border-radius:var(--radius-md);
  padding:14px 16px; font-size:13.5px; color:var(--fg-secondary); line-height:1.55;
}
.notice.warn{ border-color:rgba(240,180,0,0.35); background:rgba(240,180,0,0.08); color:#e0b400; }
.skeleton-row{ color:var(--fg-tertiary); font-size:14px; padding:24px 16px; text-align:center; }

/* ---------- hero ---------- */
.hero{ padding:64px 0 88px; }
.hero-grid{ display:grid; grid-template-columns:1.15fr 0.85fr; gap:48px; align-items:start; }
.hero-grid > *{ min-width:0; }
.hero h1{ margin-top:18px; max-width:16ch; }
.hero .text-lede{ margin-top:20px; max-width:46ch; }
.hero .cta-row{ display:flex; gap:12px; margin-top:32px; flex-wrap:wrap; }
.hero .trust-line{ margin-top:22px; font-family:var(--font-mono); font-size:12px; color:var(--fg-tertiary); }
@media (max-width:900px){
  .hero-grid{ grid-template-columns:1fr; }
}

/* ---------- steps (about the test / home) ---------- */
.steps{ display:flex; flex-direction:column; }
.step{ display:grid; grid-template-columns:48px 1fr; gap:20px; padding:24px 0; border-top:1px solid var(--border); }
.steps .step:last-child{ border-bottom:1px solid var(--border); }
.step .n{ font-family:var(--font-mono); font-size:13px; color:var(--fg-tertiary); padding-top:3px; }
.step h3{ font-size:16.5px; font-weight:600; }
.step p{ margin-top:6px; }
@media (max-width:640px){
  .step{ grid-template-columns:32px 1fr; gap:14px; }
}

/* ---------- assess columns ---------- */
.assess-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.assess-grid > *{ min-width:0; }
.assess-item{ border:1px solid var(--border); border-radius:var(--radius-md); padding:24px; background:var(--surface); }
.assess-item .tag{ font-family:var(--font-mono); font-size:11px; letter-spacing:0.06em; color:var(--fg-tertiary); text-transform:uppercase; }
.assess-item h3{ margin-top:12px; font-size:18px; }
.assess-item p{ margin-top:10px; }
@media (max-width:900px){ .assess-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:640px){ .assess-grid{ grid-template-columns:1fr; } }

/* ---------- audience split ---------- */
.audience-grid{ display:grid; grid-template-columns:1fr 1fr; gap:0; }
.audience-grid > *{ min-width:0; }
.audience-col{ padding:0 32px; }
.audience-col:first-child{ padding-left:0; border-right:1px solid var(--border); }
.audience-col:last-child{ padding-right:0; }
.audience-col h3{ font-size:20px; }
.audience-col .text-body{ margin-top:12px; }
.audience-col ul{ margin-top:20px; }
.audience-col li{ display:flex; gap:10px; padding:12px 0; border-top:1px solid var(--border); font-size:14.5px; }
.audience-col li .dash{ color:var(--accent); flex-shrink:0; }
@media (max-width:860px){
  .audience-grid{ grid-template-columns:1fr; }
  .audience-col:first-child{ border-right:none; border-bottom:1px solid var(--border); padding-bottom:40px; margin-bottom:40px; }
  .audience-col{ padding-left:0; padding-right:0; }
}

/* ---------- trust band ---------- */
.trust-band{ background:var(--bg-raised); border-top:1px solid var(--border); border-bottom:1px solid var(--border); padding:48px 0; }
.trust-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:24px; }
.trust-grid > *{ min-width:0; }
.trust-item{ padding-left:20px; border-left:1px solid var(--border); }
.trust-item:first-child{ padding-left:0; border-left:none; }
.trust-item .label{ font-size:14.5px; font-weight:600; }
.trust-item .desc{ margin-top:6px; font-size:13px; color:var(--fg-tertiary); line-height:1.5; }
@media (max-width:860px){
  .trust-grid{ grid-template-columns:1fr 1fr; }
  .trust-item:nth-child(3){ padding-left:0; border-left:none; }
}
@media (max-width:480px){
  .trust-grid{ grid-template-columns:1fr; }
  .trust-item{ padding-left:0; border-left:none; padding-top:16px; border-top:1px solid var(--border); }
  .trust-item:first-child{ padding-top:0; border-top:none; }
}

/* ---------- cta band ---------- */
.cta-band{ background:var(--surface); border-radius:var(--radius-lg); border:1px solid var(--border); padding:56px; }
.cta-band h2{ text-align:center; max-width:22ch; margin:0 auto 40px; }
.cta-split{ display:grid; grid-template-columns:1fr 1fr; gap:0; }
.cta-split > *{ min-width:0; }
.cta-half{ padding:0 32px; }
.cta-half:first-child{ padding-left:0; border-right:1px solid var(--border); }
.cta-half:last-child{ padding-right:0; }
.cta-half h3{ font-size:17px; }
.cta-half p{ margin-top:10px; }
.cta-half .btn{ margin-top:20px; }
@media (max-width:860px){
  .cta-band{ padding:32px 24px; }
  .cta-split{ grid-template-columns:1fr; }
  .cta-half:first-child{ border-right:none; border-bottom:1px solid var(--border); padding-bottom:28px; margin-bottom:28px; }
  .cta-half{ padding-left:0; padding-right:0; }
}

/* ---------- partner card ---------- */
.partner-card{ border:1px solid var(--border); border-radius:var(--radius-md); padding:22px; background:var(--surface); }
.partner-card .row{ justify-content:space-between; align-items:flex-start; }
.partner-card h3{ font-size:16.5px; }
.partner-card .meta{ margin-top:4px; font-size:13px; color:var(--fg-tertiary); }
.partner-card p{ margin-top:14px; }

/* ---------- tabs ---------- */
.tabs{ display:flex; gap:4px; border-bottom:1px solid var(--border); margin-bottom:32px; }
.tab-btn{
  padding:10px 16px; font-size:14px; font-weight:500; color:var(--fg-secondary);
  background:transparent; border:none; border-bottom:2px solid transparent; cursor:pointer; margin-bottom:-1px;
  font-family:inherit;
}
.tab-btn:hover{ color:var(--fg); }
.tab-btn.active{ color:var(--fg); border-bottom-color:var(--accent); }
.tab-panel{ display:none; }
.tab-panel.active{ display:block; }

/* ---------- stat cards ---------- */
.stat-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:16px; margin-bottom:40px; }
.stat-grid > *{ min-width:0; }
.stat-card{ border:1px solid var(--border); border-radius:var(--radius-md); padding:18px 20px; background:var(--surface); }
.stat-card .value{ font-family:var(--font-mono); font-size:26px; font-weight:600; }
.stat-card .label{ margin-top:4px; font-size:12.5px; color:var(--fg-tertiary); }
@media (max-width:860px){ .stat-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:480px){ .stat-grid{ grid-template-columns:1fr; } }

/* ---------- bulk import ---------- */
.import-box{
  border:1px dashed var(--border-strong); border-radius:var(--radius-md); padding:22px;
  display:flex; flex-direction:column; gap:14px; align-items:flex-start; background:var(--surface);
}
.import-box input[type="file"]{ font-size:13.5px; color:var(--fg-secondary); }
.import-preview{ max-height:280px; overflow:auto; border:1px solid var(--border); border-radius:var(--radius-sm); width:100%; }
.import-preview table{ min-width:0; }

/* ---------- opportunity card (compact preview tile, links to /opportunity/:id) ---------- */
.opp-card{
  display:block; border:1px solid var(--border); border-radius:var(--radius-md);
  padding:18px; background:var(--surface); color:inherit; text-decoration:none;
}
.opp-card .row{ justify-content:space-between; align-items:flex-start; gap:12px; }
.opp-card h3{ font-size:15.5px; line-height:1.3; }
.opp-card .meta{ margin-top:4px; font-size:12.5px; color:var(--fg-tertiary); }
.opp-card .foot{ margin-top:16px; display:flex; align-items:center; justify-content:space-between; gap:12px; }
.opp-card .deadline{ font-family:var(--font-mono); font-size:11.5px; color:var(--fg-tertiary); }
.opp-card .opp-card-cue{ font-size:12.5px; color:var(--fg-secondary); white-space:nowrap; }
.opp-card:hover .opp-card-cue{ color:var(--accent); }

/* ---------- filter bar ---------- */
.filter-bar{ display:flex; gap:12px; align-items:center; flex-wrap:wrap; margin-bottom:20px; }
.filter-bar select{ width:auto; min-width:160px; }
.filter-bar .search-input{ flex:1 1 240px; min-width:200px; }
.filter-count{ margin-left:auto; font-size:13px; color:var(--fg-tertiary); }
@media (max-width:640px){
  .filter-bar select{ flex:1; min-width:0; }
  .filter-bar .search-input{ flex:1 1 100%; }
  .filter-count{ width:100%; margin-left:0; order:3; }
}

/* ---------- motion ---------- */
/* Hover feedback: small, discrete, user-triggered — kept regardless of reduced-motion. */
.card, .assess-item, .opp-card, .partner-card{
  transition:transform .2s ease, border-color .2s ease;
}

/* Entrance + scroll-reveal: page-load and scroll-driven motion — off entirely under reduced-motion. */
@media (prefers-reduced-motion: no-preference){
  @keyframes fade-rise{
    from{ opacity:0; transform:translateY(14px); }
    to{ opacity:1; transform:translateY(0); }
  }

  [data-hero-in]{ animation:fade-rise .6s ease both; }
  [data-hero-in="1"]{ animation-delay:.05s; }
  [data-hero-in="2"]{ animation-delay:.15s; }
  [data-hero-in="3"]{ animation-delay:.25s; }
  [data-hero-in="4"]{ animation-delay:.35s; }
  [data-hero-in="5"]{ animation-delay:.2s; }

  [data-reveal]{
    opacity:0; transform:translateY(18px);
    transition:opacity .5s ease, transform .5s ease;
  }
  [data-reveal].is-visible{ opacity:1; transform:translateY(0); }
  [data-reveal-group] > [data-reveal]:nth-child(2){ transition-delay:.08s; }
  [data-reveal-group] > [data-reveal]:nth-child(3){ transition-delay:.16s; }
  [data-reveal-group] > [data-reveal]:nth-child(4){ transition-delay:.24s; }
}

/* Placed after .is-visible so hover-lift wins the same-specificity tie on revealed cards. */
.card:hover, .assess-item:hover, .opp-card:hover, .partner-card:hover{
  transform:translateY(-3px); border-color:var(--border-strong);
}
