/* ============================================================================
   1STBOND — design system
   The record. Grotesk display, monospace data, hairline rules, paper ground.
   See DESIGN.md. No gradients, shadows, blur, pills, or hover lifts.
   ========================================================================== */

:root {
  /* Surfaces — paper dominant */
  --page:      #FFFFFF;
  --page-alt:  #F4F4F2;
  --surface:   #FFFFFF;

  /* Ink */
  --ink:       #0A0A0A;
  --ink-2:     #6B6B6B;
  --ink-3:     #8E8E8C;

  /* Structure */
  --rule:      #E2E2E0;   /* hairline */
  --rule-firm: #0A0A0A;   /* 2px rule that opens a record block */

  /* The mark. Belongs to logo.png and nothing else — never an interface color. */
  --mark:      #BE02F3;

  /* State only — never decorative */
  --ok:        #1F5C3D;
  --ok-bg:     #F1F6F2;
  --ok-rule:   #CBDCD1;
  --warn:      #7A5A12;
  --warn-bg:   #FAF6EC;
  --warn-rule: #E8DDC2;
  --bad:       #8A1F1A;
  --bad-bg:    #FAF1F0;
  --bad-rule:  #E8CFCC;

  /* Type */
  --sans: 'Archivo', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Geometry */
  --radius:    2px;
  --measure:   1280px;
  --gutter:    clamp(24px, 6vw, 96px);
  --section-y: clamp(72px, 10vw, 128px);
  --nav-h:     72px;
}

/* Dark surfaces. Used sparingly — one band, plus the app-return screens. */
.on-dark {
  --page:      #0D0D0D;
  --page-alt:  #141413;
  --surface:   #141413;
  --ink:       #F4F4F2;
  --ink-2:     rgba(244, 244, 242, .64);
  --ink-3:     rgba(244, 244, 242, .42);
  --rule:      rgba(244, 244, 242, .16);
  --rule-firm: #F4F4F2;
  --ok:        #7FBF9B;
  --ok-bg:     rgba(127, 191, 155, .08);
  --ok-rule:   rgba(127, 191, 155, .28);
  --warn:      #D8B872;
  --warn-bg:   rgba(216, 184, 114, .08);
  --warn-rule: rgba(216, 184, 114, .28);
  --bad:       #D99790;
  --bad-bg:    rgba(217, 151, 144, .08);
  --bad-rule:  rgba(217, 151, 144, .28);
  background: var(--page);
  color: var(--ink);
}

/* ── Reset ───────────────────────────────────────────────────────────────── */

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

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--page);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

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

.display, .headline, .subhead {
  font-family: var(--sans);
  font-weight: 600;
  color: var(--ink);
  text-wrap: balance;
}
.display  { font-size: clamp(40px, 5.6vw, 76px); line-height: 1.02; letter-spacing: -0.035em; }
.headline { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.08; letter-spacing: -0.028em; }
.subhead  { font-size: clamp(20px, 2vw, 25px);   line-height: 1.2;  letter-spacing: -0.02em; }

/* Monospace is the site's signature: every label, key, code, and status.
   It is the typography of a credential, which is what this product issues. */
.eyebrow {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.eyebrow--ink { color: var(--ink); }

.lede {
  font-size: clamp(16.5px, 1.5vw, 18.5px);
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 56ch;
}

.body-copy { color: var(--ink-2); }
.meta { font-family: var(--mono); font-size: 11.5px; line-height: 1.6; letter-spacing: .04em; color: var(--ink-3); }
.fine { font-size: 12.5px; line-height: 1.6; color: var(--ink-3); }

.figure {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(44px, 5.5vw, 68px);
  line-height: 1;
  letter-spacing: -0.045em;
  color: var(--ink);
}
.figure__label {
  display: block;
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.link {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  text-decoration-color: var(--rule);
  transition: text-decoration-color .18s ease;
}
.link:hover { text-decoration-color: currentColor; }

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

.shell {
  width: 100%;
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.shell--narrow { max-width: 820px; }
.shell--mid    { max-width: 1020px; }

.section        { padding-block: var(--section-y); }
.section--alt   { background: var(--page-alt); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }

/* Headline left, deck right. A lone left column reads as a hole, not restraint. */
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  column-gap: clamp(40px, 6vw, 96px);
  align-items: end;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.section-head .eyebrow  { grid-column: 1; grid-row: 1; margin-bottom: 18px; }
.section-head .headline { grid-column: 1; grid-row: 2; }
.section-head .lede     { grid-column: 2; grid-row: 2; max-width: 46ch; }

@media (max-width: 900px) {
  .section-head { grid-template-columns: 1fr; }
  .section-head .eyebrow,
  .section-head .headline,
  .section-head .lede { grid-column: 1; grid-row: auto; }
  .section-head .lede { margin-top: 20px; }
}

.rule { border: 0; border-top: 1px solid var(--rule); }

/* ── Record — the house structure. Field, value, hairline. ───────────────── */

.record { border-top: 2px solid var(--rule-firm); }
.record > div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 8px 28px;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
}
.record dt {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-top: 3px;
}
.record dd { font-size: 15.5px; line-height: 1.5; color: var(--ink); }

@media (max-width: 560px) {
  .record > div { grid-template-columns: 1fr; gap: 6px; }
}

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

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-inline: var(--gutter);
  background: var(--page);
  border-bottom: 1px solid var(--rule);
}
.wordmark { display: flex; align-items: center; gap: 11px; }
.wordmark img { width: 26px; height: 26px; }
.wordmark span {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .18em;
  color: var(--ink);
}
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  font-size: 14px;
  color: var(--ink-2);
  padding-block: 4px;
  border-bottom: 1px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}
.nav-links a:hover { color: var(--ink); border-bottom-color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 20px; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--page);
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1.2;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.btn:hover { background: transparent; color: var(--ink); }
.btn:disabled, .btn[aria-disabled='true'] {
  opacity: .4; cursor: not-allowed;
  background: var(--ink); color: var(--page);
}
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn--ghost:hover { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--danger { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn--danger:hover { background: transparent; color: var(--bad); }
.btn--block { width: 100%; }
.btn--sm { padding: 10px 18px; font-size: 11.5px; }

.btn-text {
  background: none;
  border: 0;
  padding: 0;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-2);
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 1px solid var(--rule);
  transition: color .18s ease, border-color .18s ease;
}
.btn-text:hover { color: var(--ink); border-bottom-color: var(--ink); }

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

.card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 36px;
  transition: border-color .18s ease;
}
.card--flush { padding: 0; }
.card__title {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.card__body { margin-top: 12px; font-size: 15.5px; line-height: 1.6; color: var(--ink-2); }
.card .eyebrow { margin-bottom: 14px; }

/* ── Forms — underline only, never boxed ─────────────────────────────────── */

.field { margin-bottom: 26px; }
.field__label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 10px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { min-height: 116px; line-height: 1.6; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: var(--ink-3); }
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-bottom-color: var(--ink);
  box-shadow: 0 1px 0 0 var(--ink);
}
.field input:-webkit-autofill {
  -webkit-text-fill-color: var(--ink);
  transition: background-color 100000s;
}
.field__hint { margin-top: 8px; font-size: 12.5px; color: var(--ink-3); }
.field__control { position: relative; }
.field__control input { padding-right: 34px; }
.reveal-btn {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 0;
  padding: 2px;
  cursor: pointer;
  color: var(--ink-3);
  line-height: 0;
  transition: color .18s ease;
}
.reveal-btn:hover { color: var(--ink); }
.reveal-btn svg { width: 18px; height: 18px; }

/* ── Notices ─────────────────────────────────────────────────────────────── */

.notice {
  border: 1px solid var(--rule);
  border-left: 2px solid var(--ink-3);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--surface);
}
.notice--ok   { border-left-color: var(--ok);   background: var(--ok-bg); }
.notice--warn { border-left-color: var(--warn); background: var(--warn-bg); }
.notice--bad  { border-left-color: var(--bad);  background: var(--bad-bg); color: var(--bad); }
.notice strong { color: var(--ink); font-weight: 600; }

/* ── Tags — stamped statuses ─────────────────────────────────────────────── */

.tag {
  display: inline-block;
  padding: 3px 9px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
  background: transparent;
}
.tag--ink  { border-color: var(--ink);       color: var(--ink); }
.tag--ok   { border-color: var(--ok-rule);   color: var(--ok); }
.tag--warn { border-color: var(--warn-rule); color: var(--warn); }
.tag--bad  { border-color: var(--bad-rule);  color: var(--bad); }

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

.site-footer {
  border-top: 1px solid var(--rule);
  padding-block: clamp(48px, 6vw, 72px) 40px;
  background: var(--page);
}
.site-footer__top {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  justify-content: space-between;
  padding-bottom: 40px;
}
.footer-col { min-width: 150px; }
.footer-col .eyebrow { margin-bottom: 18px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer-col a {
  font-size: 14px;
  color: var(--ink-2);
  border-bottom: 1px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}
.footer-col a:hover { color: var(--ink); border-bottom-color: var(--ink); }
.site-footer__base {
  border-top: 1px solid var(--rule);
  padding-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  justify-content: space-between;
  align-items: baseline;
}

/* ── Spinner ─────────────────────────────────────────────────────────────── */

.spinner {
  display: inline-block;
  width: 14px; height: 14px;
  border: 1.5px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin .8s linear infinite;
  flex-shrink: 0;
  opacity: .7;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Motion — fade + short rise, nothing bouncy ──────────────────────────── */

.fade-up {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s ease, transform .5s ease;
}
.fade-up.visible { opacity: 1; transform: none; }
.d1 { transition-delay: .08s; }
.d2 { transition-delay: .16s; }
.d3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .fade-up { opacity: 1; transform: none; }
}

/* ── Utility ─────────────────────────────────────────────────────────────── */

.hidden { display: none !important; }
.stack-sm > * + * { margin-top: 12px; }
.stack    > * + * { margin-top: 20px; }
.stack-lg > * + * { margin-top: 36px; }

@media (max-width: 768px) {
  body { font-size: 16px; }
  .nav-links { display: none; }
  .card { padding: 28px 24px; }
}

/* The nav runs out of room for the wordmark once the actions can't compress
   further. The mark alone still identifies the site. */
@media (max-width: 560px) {
  .site-nav { gap: 14px; }
  .site-nav .wordmark span { display: none; }
  .nav-actions { gap: 14px; }
}
