@font-face {
  font-family: Archivo;
  src: url("fonts/archivo-latin.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 400 700;
}
@font-face {
  font-family: Archivo;
  src: url("fonts/archivo-core.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 400 700;
  unicode-range: U+0000-00FF, U+2010-2015, U+2018-201F, U+2022,
    U+2026, U+20AC, U+2122, U+2190-2193;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/jetbrainsmono-latin.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 400 700;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/jetbrainsmono-core.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 400 700;
  unicode-range: U+0000-00FF, U+2010-2015, U+2018-201F, U+2022,
    U+2026, U+20AC, U+2122, U+2190-2193;
}
:root {
  --blue: #1a3bd2;
  --ink: #111216;
  --paper: #f4f4f2;
  --line: #cfd1d7;
  --muted: #62656e;
  --white: #fff;
  --max: 1180px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Archivo, Arial, sans-serif;
  line-height: 1.45;
}
a {
  color: inherit;
}
button, input, select, textarea {
  font: inherit;
}
button, input, select, textarea, a, summary {
  -webkit-tap-highlight-color: rgba(26, 59, 210, 0.18);
}
button, [href], input, select, textarea, summary {
  touch-action: manipulation;
}
button:focus-visible, [href]:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid #2f5cff;
  outline-offset: 3px;
}
.m-shell {
  width: 100%;
  max-width: calc(var(--max) + 40px);
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left));
  padding-right: max(20px, env(safe-area-inset-right));
}
.wrap.admin {
  width: 100%;
  max-width: 1248px;
  margin-inline: auto;
  padding-left: max(24px, env(safe-area-inset-left));
  padding-right: max(24px, env(safe-area-inset-right));
}
.m-hero {
  padding-top: env(safe-area-inset-top);
}
.m-nav {
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid currentColor;
}
.m-logo {
  display: block;
  width: 126px;
}
.m-nav > a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}
.m-links {
  display: flex;
  gap: 28px;
  align-items: center;
  font-weight: 650;
}
.m-links a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  text-decoration: none;
}
.m-hero {
  background: var(--ink);
  color: var(--white);
  padding-bottom: 72px;
}
.m-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 70px;
  align-items: end;
  padding: 70px 0 20px;
}
.m-kicker, .m-label {
  font-family: "JetBrains Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 12px;
  font-weight: 700;
}
.m-title {
  font-size: clamp(50px, 7vw, 96px);
  line-height: 0.92;
  letter-spacing: -0.055em;
  max-width: 900px;
  margin: 20px 0 26px;
}
.m-lede {
  font-size: clamp(19px, 2vw, 26px);
  line-height: 1.35;
  max-width: 720px;
  margin: 0;
  color: #d7d8dc;
}
.m-hero-note {
  border-top: 4px solid var(--blue);
  padding-top: 22px;
  font-size: 17px;
}
.m-hero-note strong {
  display: block;
  color: #fff;
  font-size: 38px;
  line-height: 1;
  margin-bottom: 12px;
}
.m-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}
.m-btn {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 2px solid var(--blue);
  background: var(--blue);
  color: white;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  transition: color 150ms ease, background-color 150ms ease,
    border-color 150ms ease;
}
.m-btn.secondary {
  background: transparent;
  border-color: currentColor;
}
.m-btn.light {
  background: white;
  color: var(--ink);
  border-color: white;
}
.m-btn:disabled {
  opacity: 0.55;
  cursor: wait;
}
.m-section {
  padding: 86px 0;
  border-bottom: 1px solid var(--line);
}
.m-section.blue {
  background: var(--blue);
  color: white;
}
.m-section.ink {
  background: var(--ink);
  color: white;
}
.m-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 44px;
}
.m-head h2 {
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -0.045em;
  margin: 0;
}
.m-head p {
  font-size: 19px;
  max-width: 590px;
  margin: 8px 0 0;
}
.m-menu {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.m-menu article {
  padding: 28px;
  min-height: 250px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.m-menu h3 {
  font-size: 26px;
  margin: 10px 0;
}
.m-price {
  font-size: 42px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--blue);
}
.m-menu p {
  color: var(--muted);
  margin-bottom: 0;
}
.m-menu .m-label {
  margin-top: auto;
  padding-top: 20px;
}
.m-example {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  border: 1px solid #555;
}
.m-example > div {
  padding: 34px;
}
.m-example .closer {
  background: white;
  color: var(--ink);
}
.m-money {
  font-family: "JetBrains Mono", monospace;
  font-size: clamp(42px, 7vw, 78px);
  font-weight: 700;
  color: var(--blue);
  line-height: 1;
}
.m-breakdown {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: #555;
  margin-top: 24px;
}
.m-breakdown div {
  background: var(--ink);
  padding: 18px;
}
.m-breakdown strong {
  display: block;
  font-size: 25px;
  color: #1a3bd2;
}
.m-table-wrap {
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}
.m-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
}
.m-table th, .m-table td {
  padding: 18px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.m-table th {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.m-table td:first-child {
  font-size: 21px;
  font-weight: 700;
}
.m-steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.m-step {
  border-top: 4px solid var(--blue);
  padding-top: 20px;
}
.m-step:before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  font: 700 13px "JetBrains Mono";
  color: var(--blue);
  margin-bottom: 28px;
}
.m-step h3 {
  font-size: 24px;
  margin: 0 0 10px;
}
.m-form {
  background: white;
  color: var(--ink);
  padding: 28px;
}
.m-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.m-field label {
  display: block;
  font: 700 11px "JetBrains Mono";
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 7px;
}
.m-field input, .m-field select, .m-field textarea {
  width: 100%;
  min-height: 51px;
  border: 1px solid #aeb1b8;
  background: #fafafa;
  padding: 13px;
  border-radius: 0;
  font-size: 16px;
}
.m-field input:focus, .m-field select:focus, .m-field textarea:focus {
  border-color: var(--blue);
}
.m-field input[type="checkbox"] {
  display: inline-block;
  width: 24px;
  min-height: 44px;
  margin: 0 8px 0 0;
  vertical-align: middle;
}
.m-section.blue button:focus-visible, .m-section.blue [href]:focus-visible,
.m-section.ink button:focus-visible, .m-section.ink [href]:focus-visible,
.m-hero button:focus-visible, .m-hero [href]:focus-visible {
  outline-color: #fff;
}
.m-field.full {
  grid-column: 1/-1;
}
.m-honey {
  position: absolute;
  left: -9999px;
}
.m-status {
  min-height: 24px;
  margin: 14px 0 0;
  font-weight: 650;
  overflow-wrap: anywhere;
}
.m-status.error {
  color: #b42318;
}
.m-footer {
  background: var(--ink);
  color: white;
  padding: 50px 0 calc(50px + env(safe-area-inset-bottom));
}
.m-footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.m-footer a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  margin-right: 20px;
}
.founder-identity {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: end;
}
.founder-number {
  font: 700 clamp(74px, 12vw, 160px)/0.82 "JetBrains Mono";
  letter-spacing: -0.08em;
}
.founder-link {
  font: 600 15px "JetBrains Mono";
  overflow-wrap: anywhere;
  padding: 18px;
  background: #202127;
  border-left: 5px solid var(--blue);
}
.founder-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
}
.founder-stat {
  padding: 25px;
  border-right: 1px solid var(--line);
}
.founder-stat:last-child {
  border: 0;
}
.founder-stat strong {
  display: block;
  font-size: 40px;
  overflow-wrap: anywhere;
}
.card-canvas {
  display: block;
  width: min(100%, 540px);
  height: auto;
  background: #111;
}
.founder-retry {
  display: flex;
  margin-top: 16px;
}
.admin-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.admin-stat {
  background: white;
  padding: 22px;
  border-top: 4px solid var(--blue);
}
.admin-stat strong {
  display: block;
  font-size: 33px;
}
.admin-block {
  background: white;
  border: 1px solid var(--line);
  padding: 26px;
  margin: 22px 0;
}
.admin-block h2 {
  font-size: 27px;
  margin: 0 0 6px;
}
.admin-row {
  display: grid;
  grid-template-columns: 1.2fr 0.65fr 0.8fr auto;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.admin-row:last-child {
  border-bottom: 0;
}
.admin-subhead {
  margin: 28px 0 8px;
  font-size: 16px;
}
.journal-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr 1fr 1.2fr 1fr 1fr;
  gap: 12px;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.journal-money {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
}
.component-action, .page-state-controls {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  margin: 3px;
}
.component-action input, .page-state-controls input {
  min-height: 44px;
  border: 1px solid #aeb1b8;
  padding: 5px 7px;
  font-size: 16px;
}
.enquiry-card {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.enquiry-card summary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  cursor: pointer;
  font-weight: 700;
  min-height: 48px;
  align-items: center;
}
.enquiry-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 28px;
  padding: 18px 0 4px;
}
.enquiry-detail p {
  margin: 0;
  overflow-wrap: anywhere;
}
.enquiry-detail select {
  width: 100%;
  min-height: 44px;
  border: 1px solid #aeb1b8;
  background: #fff;
  padding: 9px 12px;
  font-size: 16px;
}
.enquiry-detail a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}
.tree-cert {
  min-height: 44px;
  padding-block: 9px;
}
.enquiry-brief {
  grid-column: 1 / -1;
  padding: 14px;
  background: var(--paper);
  white-space: pre-wrap;
}
.product-editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.product-row {
  display: grid;
  grid-template-columns:
    minmax(150px, 1.3fr) 110px 120px minmax(170px, 1fr) minmax(170px, 1fr) auto;
  gap: 10px;
  align-items: end;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.product-row label {
  display: block;
  font: 700 10px "JetBrains Mono";
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.product-row input[type="text"],
.product-row input[type="number"] {
  width: 100%;
  min-height: 48px;
  margin-top: 6px;
  border: 1px solid #aeb1b8;
  padding: 10px;
}
.product-stock {
  min-height: 44px;
  display: flex !important;
  align-items: center;
  gap: 8px;
}
.tiny {
  font-size: 13px;
  color: var(--muted);
}
.legal {
  max-width: 800px;
}
.legal h2 {
  font-size: 28px;
  margin: 48px 0 10px;
}
.legal p, .legal li {
  font-size: 17px;
}
.legal .effective {
  padding: 18px;
  border-left: 5px solid var(--blue);
  background: white;
}
.skip {
  position: absolute;
  left: -999px;
}
.skip:focus {
  left: 10px;
  top: 10px;
  background: white;
  padding: 10px;
  z-index: 99;
}
.drop, .pick, .pill, .tree-head, .product-editor-head button {
  min-height: 44px;
}
.tree-head {
  padding-block: 8px;
}
.admin-row, .journal-row, .enquiry-detail, .product-row,
.component-action, .page-state-controls {
  min-width: 0;
}
@media (max-width: 800px) {
  .wrap.admin {
    width: 100%;
    margin-inline: auto;
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
  }
  .m-shell {
    width: 100%;
    margin-inline: auto;
    padding-left: max(14px, env(safe-area-inset-left));
    padding-right: max(14px, env(safe-area-inset-right));
  }
  .m-nav {
    height: 68px;
  }
  .m-links a:not(.keep) {
    display: none;
  }
  .m-hero-grid, .m-head, .m-example {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .m-hero-grid {
    padding-top: 48px;
  }
  .m-title {
    font-size: 52px;
  }
  .m-section {
    padding: 58px 0;
  }
  .m-menu {
    grid-template-columns: 1fr;
  }
  .m-menu article {
    min-height: 0;
  }
  .m-steps {
    grid-template-columns: 1fr 1fr;
  }
  .m-form-grid {
    grid-template-columns: 1fr;
  }
  .m-field.full {
    grid-column: auto;
  }
  .founder-identity {
    grid-template-columns: 1fr;
  }
  .founder-stats {
    grid-template-columns: 1fr;
  }
  .admin-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 18px;
  }
  .admin-stat {
    padding: 12px;
    border-top-color: var(--blue);
  }
  .admin-stat .cap {
    font-size: 11px;
    line-height: 1.5;
  }
  .admin-stat strong {
    font-size: 26px;
  }
  .founder-stat {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .admin-row {
    grid-template-columns: 1fr auto;
  }
  .admin-block {
    padding: 18px;
  }
  .admin-row > *:nth-child(3) {
    grid-column: 1;
  }
  .journal-row {
    grid-template-columns: 1fr 1fr;
    gap: 7px 12px;
  }
  .component-action, .page-state-controls {
    display: flex;
    flex-wrap: wrap;
    margin: 5px 0;
  }
  .enquiry-detail {
    grid-template-columns: 1fr;
  }
  .enquiry-brief {
    grid-column: 1;
  }
  .product-row {
    grid-template-columns: 1fr 1fr;
    padding: 18px 0;
  }
  .product-row .product-wide {
    grid-column: 1 / -1;
  }
  .m-breakdown {
    grid-template-columns: 1fr;
  }
  .m-actions .m-btn {
    width: 100%;
  }
}
@media (max-width: 430px) {
  .m-title {
    font-size: 45px;
  }
  .m-steps {
    grid-template-columns: 1fr;
  }
  .m-head h2 {
    font-size: 38px;
  }
  .m-menu article {
    padding: 22px;
  }
  .m-form {
    padding: 20px;
  }
  .m-section {
    padding: 48px 0;
  }
  .product-editor-head {
    align-items: flex-start;
    flex-direction: column;
  }
}
@media (max-height: 500px) and (orientation: landscape) and (max-width: 900px) {
  .m-nav {
    height: 58px;
  }
  .m-hero {
    padding-bottom: 34px;
  }
  .m-hero-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(220px, 0.65fr);
    gap: 28px;
    padding-top: 28px;
  }
  .m-title {
    font-size: 42px;
    margin-block: 12px 16px;
  }
  .m-lede, .m-hero-note {
    font-size: 15px;
  }
  .m-actions {
    margin-top: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
/* Member-specific contrast corrections. */
.founder-link {
  color: #fff;
}
.m-section:not(.ink):not(.blue) .m-btn.secondary {
  color: var(--ink);
}
@media (max-width: 600px) {
  .earn-page .m-hero-grid {
    padding-top: 24px;
    gap: 24px;
  }
  .earn-page .m-hero {
    padding-bottom: 38px;
  }
}
