/* BIDR Bunker coming-soon page, built on BIDR Technologies' design system ("The Contract File, Played Straight",
   DESIGN.md in the bidr-tech repo): Contract Navy ground, a white quote panel for the form, Seal Gold only for the
   action and the 3px accent bar, Assistant for everything, hairlines instead of cards, no shadows. */
:root {
  color-scheme: dark;
  --navy-950: #05192d;
  --navy-900: #0a2248;
  --navy-700: #1f3a5f;
  --ink-600: #42526a;
  --gold-500: #d6ac4e;
  --gold-400: #e0bb68;
  --focus-gold: #f0c45a;
  --paper: #ffffff;
  --rule: #c8ced6;
  --field-border: #768296;
  --placeholder: #66748a;
  --on-navy: #e1e9f5;
  --navy-muted-text: #aebbd0;
  --error-red: #a3261b;

  --font: Assistant, "Assistant Fallback", "Segoe UI", system-ui, -apple-system, sans-serif;
  --text-peak: clamp(2.6rem, 6.2vw, 5.75rem);
  --text-title-lg: 1.5rem;
  --text-lede: clamp(1.0625rem, 1.2vw, 1.125rem);
  --text-body: 1rem;
  --text-ui: 0.9375rem;
  --text-small: 0.875rem;
  --measure: 31em;
  --gutter: clamp(1rem, 4.76vw, 6rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; background-color: var(--navy-950); scrollbar-color: #5d6b80 var(--navy-950); }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background-color: var(--navy-950);
  /* drafting-sheet grid, barely there */
  background-image:
    linear-gradient(rgba(225, 233, 245, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(225, 233, 245, 0.03) 1px, transparent 1px);
  background-size: 2rem 2rem;
  color: var(--on-navy);
  font-family: var(--font);
  font-size: var(--text-body);
  line-height: 1.55;
  letter-spacing: 0.01em;
}

::selection { background: var(--gold-500); color: var(--navy-950); }

a { color: var(--paper); text-decoration-color: var(--gold-500); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }

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

/* header */
/* header, hero and footer share one column so the logo, heading and footer line up */
.top, .hero, .foot { width: 100%; max-width: 82rem; margin-inline: auto; }

.top { padding: clamp(1.25rem, 3vw, 2.25rem) var(--gutter) 0; }
.brand { display: inline-block; }
.brand img { display: block; width: 14rem; height: auto; }

/* hero */
.hero {
  flex: 1;
  padding: clamp(2.5rem, 7vw, 5.5rem) var(--gutter);
  display: grid;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

h1 {
  margin: 0;
  color: var(--paper);
  font-size: var(--text-peak);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
/* the system's 3px Seal Gold bar under a heading */
h1::after {
  content: "";
  display: block;
  width: 3.15rem;
  height: 3px;
  margin-top: clamp(1.25rem, 2.2vw, 1.75rem);
  background: var(--gold-500);
}

.lede {
  max-width: var(--measure);
  margin: clamp(1.25rem, 2.2vw, 1.75rem) 0 clamp(2rem, 3.5vw, 2.75rem);
  color: var(--on-navy);
  font-size: var(--text-lede);
  line-height: 1.6;
  text-wrap-style: pretty;
}

/* the white quote panel that holds the form, as on bidrtech.com's contact section */
.panel {
  color-scheme: light;
  max-width: 34rem;
  padding: 1.5rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink-600);
  letter-spacing: 0;
}
.panel :focus-visible { outline-color: var(--navy-900); outline-offset: 1px; }

.waitlist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.field { display: grid; gap: 0.375rem; min-width: 0; align-content: start; }
.field--wide { grid-column: 1 / -1; }

label {
  color: var(--navy-900);
  font-size: var(--text-small);
  font-weight: 700;
  line-height: 1.3;
}
.optional { color: var(--ink-600); font-weight: 400; }

input {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--field-border);
  border-radius: 3px;
  background: var(--paper);
  color: var(--navy-950);
  caret-color: var(--navy-900);
  font: inherit;
  font-size: var(--text-body);
  transition: border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
input::placeholder { color: var(--placeholder); opacity: 1; }
input:hover { border-color: var(--navy-700); }
input:focus-visible { border-color: var(--navy-900); }
input[aria-invalid="true"] { border-color: var(--error-red); box-shadow: inset 0 0 0 1px var(--error-red); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.btn {
  grid-column: 1 / -1;
  justify-self: start;
  min-height: 2.9rem;
  margin-top: 0.25rem;
  padding: 0.5rem 1.75rem;
  border: 2px solid var(--gold-500);
  border-radius: 3px;
  background: var(--gold-500);
  color: var(--navy-950);
  font: inherit;
  font-size: var(--text-ui);
  font-weight: 700;
  line-height: 1.1;
  cursor: pointer;
  transition: background-color 0.2s var(--ease-out), border-color 0.2s var(--ease-out), transform 0.1s var(--ease-out);
}
.btn:hover { background: var(--gold-400); border-color: var(--gold-400); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.6; cursor: progress; transform: none; }

.status { grid-column: 1 / -1; margin: 0; color: var(--error-red); font-size: var(--text-small); font-weight: 700; }
.status:empty { display: none; }

.fine { grid-column: 1 / -1; margin: 0; padding-top: 1rem; border-top: 1px solid var(--rule); font-size: var(--text-small); }

/* success replaces the form inside the panel */
.joined:focus { outline: none; }
.joined h2 {
  margin: 0;
  color: var(--navy-900);
  font-size: var(--text-title-lg);
  font-weight: 700;
  line-height: 1.2;
}
.joined h2::after {
  content: "";
  display: block;
  width: 3.15rem;
  height: 3px;
  margin: 0.875rem 0 1rem;
  background: var(--gold-500);
}
.joined p { margin: 0; text-wrap-style: pretty; }
.joined strong { color: var(--navy-900); font-weight: 700; overflow-wrap: anywhere; }
.joined a { color: var(--navy-900); }

/* FIG. 1: a patent-style line drawing on the navy ground */
.figure { margin: 0; }
.figure svg { display: block; width: 100%; max-width: 36rem; height: auto; margin: 0 auto; }
.figure .void { fill: var(--navy-950); }
.figure .line { stroke: var(--on-navy); stroke-width: 2; }
.figure .line--fine { stroke-width: 1.25; opacity: 0.85; }
.figure .hatch { stroke: var(--on-navy); stroke-width: 1; }
.figure .hatch--earth { opacity: 0.16; }
.figure .hatch--section { opacity: 0.5; }
.figure .leader { stroke: var(--navy-muted-text); stroke-width: 1; }
.figure .numeral {
  fill: var(--on-navy);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums lining-nums;
}
.figure .fig {
  fill: var(--on-navy);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

/* footer */
.foot {
  padding: 1.5rem var(--gutter) max(1.5rem, env(safe-area-inset-bottom));
  background: linear-gradient(rgba(225, 233, 245, 0.14), rgba(225, 233, 245, 0.14)) var(--gutter) 0 / calc(100% - 2 * var(--gutter)) 1px no-repeat;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.375rem 1.5rem;
  color: var(--navy-muted-text);
  font-size: var(--text-ui);
}
.foot p { margin: 0; }
.foot a { color: var(--on-navy); }

@media (min-width: 901px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

@media (max-width: 720px) {
  .brand img { width: 11rem; }
  .figure svg { max-width: 26rem; }
}

@media (max-width: 480px) {
  .waitlist { grid-template-columns: 1fr; }
  .btn { justify-self: stretch; }
}

@media (pointer: coarse) {
  .foot a { display: inline-block; padding: 0.6rem 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
