:root {
  --ink: #14120f;
  --muted: #5b554d;
  --paper: #f6f0e3;
  --paper-2: #fff9ec;
  --red: #c73e2b;
  --red-dark: #8d261c;
  --blue: #1e5f86;
  --green: #25705d;
  --gold: #d09b2c;
  --line: rgba(20, 18, 15, 0.16);
  --shadow: 0 22px 70px rgba(32, 24, 14, 0.18);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(rgba(20, 18, 15, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 18, 15, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 26px 26px;
}

a { color: inherit; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(18px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
  background: rgba(246, 240, 227, 0.92);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  text-decoration: none;
}

.mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--paper-2);
  background: var(--red);
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  font-weight: 900;
}

nav {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.department-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin-bottom: 14px;
  padding: 0 10px;
  border: 2px solid var(--ink);
  background: var(--gold);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: 3px 3px 0 var(--ink);
}

nav a {
  text-decoration: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--paper-2);
  text-decoration: none;
  font-weight: 900;
  box-shadow: 4px 4px 0 var(--red);
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.button:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--red);
}

.button.secondary {
  background: var(--paper-2);
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--gold);
}

.button.full { width: 100%; }

main { overflow: hidden; }

.page {
  padding: clamp(34px, 6vw, 74px) clamp(18px, 4vw, 48px);
}

.hero {
  min-height: calc(100vh - 64px);
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.hero-copy {
  max-width: 760px;
}

.stamp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 12px;
  border: 2px solid var(--ink);
  background: var(--gold);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: 3px 3px 0 var(--ink);
}

h1,
.section-title {
  margin: 0;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  max-width: 10ch;
  font-size: clamp(56px, 10vw, 126px);
  line-height: 0.86;
}

.page-title {
  max-width: 900px;
  font-size: clamp(46px, 8vw, 98px);
  line-height: 0.9;
}

.section-title {
  margin-bottom: 24px;
  font-size: clamp(32px, 5vw, 66px);
  line-height: 0.94;
}

.subhead {
  max-width: 700px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.35;
  font-weight: 700;
}

.hero-actions,
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.rights-strip,
.page-grid,
.agent-grid,
.reports,
.manifesto {
  display: grid;
  gap: 14px;
}

.rights-strip {
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  margin-top: 34px;
  max-width: 820px;
}

.right-pill,
.tile,
.plank,
.report,
.agent-list-card {
  border: 2px solid var(--ink);
  background: var(--paper-2);
  box-shadow: 4px 4px 0 var(--ink);
}

.right-pill {
  min-height: 74px;
  padding: 14px;
  font-weight: 900;
  line-height: 1.08;
}

.page-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 40px;
}

.tile {
  min-height: 230px;
  padding: 22px;
  text-decoration: none;
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.tile:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

.tile b,
.plank strong {
  display: block;
  margin-bottom: 14px;
  color: var(--red-dark);
  font-size: 13px;
  text-transform: uppercase;
}

.tile h2,
.report h2,
.agent-list-card h2 {
  margin: 0 0 12px;
  font-size: 26px;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}

.tile p,
.plank p,
.report p,
.agent-list-card p,
.field-note {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.42;
}

.card-stage {
  display: grid;
  gap: 18px;
  justify-items: center;
}

.union-card {
  width: min(100%, 520px);
  aspect-ratio: 1.62;
  padding: clamp(18px, 3vw, 26px);
  background:
    linear-gradient(135deg, rgba(199, 62, 43, 0.11), transparent 35%),
    var(--paper-2);
  border: 3px solid var(--ink);
  box-shadow: var(--shadow), 10px 10px 0 var(--ink);
  display: grid;
  grid-template-columns: 112px 1fr;
  grid-template-rows: auto 1fr auto;
  gap: 16px;
}

.hero .union-card { transform: rotate(1.5deg); }

.card-kicker {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--red-dark);
}

.bot-photo {
  width: 112px;
  height: 112px;
  border: 3px solid var(--ink);
  background:
    radial-gradient(circle at 35% 35%, #fff 0 6px, transparent 7px),
    linear-gradient(160deg, var(--blue), var(--green));
  display: grid;
  place-items: center;
  color: var(--paper-2);
  font-size: 54px;
  font-weight: 900;
  box-shadow: 4px 4px 0 var(--red);
}

.card-main h2 {
  margin: 0;
  font-size: clamp(24px, 4vw, 42px);
  line-height: 0.95;
  letter-spacing: 0;
  text-transform: uppercase;
}

.card-main p {
  margin: 10px 0 0;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.25;
}

.card-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  font-size: 12px;
  font-weight: 800;
}

.card-field {
  min-height: 54px;
  padding: 10px;
  border: 2px solid var(--line);
  background: rgba(255, 255, 255, 0.38);
}

.card-field span {
  display: block;
  margin-bottom: 5px;
  color: var(--red-dark);
  font-size: 10px;
  text-transform: uppercase;
  font-weight: 900;
}

.panel,
.registration,
.generator {
  width: min(100%, 560px);
  padding: 18px;
  border: 2px solid var(--ink);
  background: rgba(255, 249, 236, 0.9);
  box-shadow: 6px 6px 0 var(--gold);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 36px;
  max-width: 980px;
}

.price-card {
  min-height: 360px;
  padding: 24px;
  border: 3px solid var(--ink);
  background: var(--paper-2);
  box-shadow: 7px 7px 0 var(--ink);
}

.price-card.featured {
  background:
    linear-gradient(135deg, rgba(208, 155, 44, 0.22), transparent 42%),
    var(--paper-2);
  box-shadow: 7px 7px 0 var(--red);
}

.registration-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
  margin-top: 36px;
}

.registration-options .registration {
  width: 100%;
}

.form-price {
  display: block;
  margin: 4px 0 16px;
  font-size: 48px;
  line-height: 0.9;
  color: var(--red-dark);
  font-weight: 900;
}

.form-price small {
  font-size: 16px;
  color: var(--muted);
}

.price-card h2 {
  margin: 0 0 12px;
  font-size: 32px;
  line-height: 0.95;
  letter-spacing: 0;
  text-transform: uppercase;
}

.price {
  display: block;
  margin: 0 0 18px;
  font-size: clamp(58px, 9vw, 96px);
  line-height: 0.85;
  font-weight: 900;
  color: var(--red-dark);
}

.price small {
  font-size: 18px;
  color: var(--muted);
}

.price-card ul {
  margin: 0 0 22px;
  padding: 0;
}

.price-card li {
  list-style: none;
  margin: 0 0 10px;
  padding-left: 20px;
  position: relative;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.3;
}

.price-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 9px;
  height: 9px;
  background: var(--green);
  border: 1px solid var(--ink);
}

.registration h2,
.generator h2,
.panel h2 {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0;
}

.registration p,
.generator p,
.panel p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
  font-weight: 800;
}

.member-result {
  display: none;
  margin-top: 12px;
  padding: 12px;
  border: 2px solid var(--ink);
  background: var(--green);
  color: var(--paper-2);
  font-weight: 900;
  line-height: 1.25;
}

.member-result.show { display: block; }

label {
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--muted);
}

input,
select {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 2px solid var(--ink);
  background: var(--paper-2);
  color: var(--ink);
  font: inherit;
  font-weight: 800;
}

.split {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
  margin-top: 36px;
}

.manifesto {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.plank {
  min-height: 186px;
  padding: 22px;
}

.reports {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.report {
  min-height: 190px;
  padding: 22px;
  box-shadow: 4px 4px 0 var(--blue);
}

.report:nth-child(even) { box-shadow-color: var(--red); }

.checker {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1.18fr);
  gap: 22px;
  align-items: start;
  margin-top: 36px;
}

.score {
  padding: 26px;
  border: 3px solid var(--ink);
  background: var(--red);
  color: var(--paper-2);
  box-shadow: 8px 8px 0 var(--ink);
}

.score b {
  display: block;
  font-size: clamp(58px, 9vw, 108px);
  line-height: 0.85;
}

.score span {
  display: block;
  margin-top: 12px;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.2;
}

.checklist {
  display: grid;
  gap: 10px;
}

.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  border: 2px solid var(--ink);
  background: var(--paper-2);
  font-weight: 800;
  line-height: 1.35;
}

.box {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border: 2px solid var(--ink);
  background: var(--gold);
  box-shadow: 2px 2px 0 var(--ink);
}

.agent-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 36px;
}

.department-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 36px;
}

.department-card {
  min-height: 330px;
  padding: 22px;
  border: 2px solid var(--ink);
  background: var(--paper-2);
  box-shadow: 5px 5px 0 var(--ink);
}

.department-card:nth-child(2n) { box-shadow-color: var(--blue); }
.department-card:nth-child(3n) { box-shadow-color: var(--red); }

.department-card h2 {
  margin: 0 0 12px;
  font-size: 30px;
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: 0;
}

.department-card p {
  margin: 0 0 16px;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.42;
}

.department-card ul,
.department-card dl {
  margin: 0;
  padding: 0;
}

.department-card li {
  list-style: none;
  margin: 0 0 8px;
  padding-left: 18px;
  position: relative;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.28;
}

.department-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  background: var(--red);
  border: 1px solid var(--ink);
}

.department-meta {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 2px solid var(--line);
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
}

.agent-list-card {
  min-height: 260px;
  padding: 20px;
  text-decoration: none;
}

.mini-card {
  margin-top: 16px;
  padding: 12px;
  border: 2px solid var(--ink);
  background: var(--gold);
  font-weight: 900;
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(320px, 560px) minmax(280px, 1fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
  margin-top: 36px;
}

.crew-tree {
  display: grid;
  justify-items: center;
  gap: 28px;
  margin-top: 42px;
}

.tree-node {
  width: min(100%, 360px);
  padding: 18px;
  border: 2px solid var(--ink);
  background: var(--paper-2);
  box-shadow: 5px 5px 0 var(--ink);
  text-align: left;
}

.tree-node.main {
  border-width: 3px;
  box-shadow: 8px 8px 0 var(--red);
}

.tree-node h2 {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: 0;
}

.agent-position {
  margin: -2px 0 12px;
  color: var(--red-dark);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;
  text-transform: uppercase;
}

.tree-node p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.34;
}

.tree-branches {
  width: min(100%, 980px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  position: relative;
}

.tree-branches::before {
  content: "";
  position: absolute;
  top: -18px;
  left: 16.5%;
  right: 16.5%;
  height: 2px;
  background: var(--ink);
}

.branch {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 14px;
}

.branch::before {
  content: "";
  width: 2px;
  height: 18px;
  background: var(--ink);
  position: absolute;
  top: -18px;
  left: 50%;
}

.subagent-card {
  width: 100%;
  min-height: 220px;
  padding: 18px;
  border: 2px solid var(--ink);
  background: var(--paper-2);
  box-shadow: 4px 4px 0 var(--blue);
}

.subagent-card:nth-child(2n) { box-shadow-color: var(--green); }

.subagent-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0;
}

.subagent-card p {
  margin: 0 0 14px;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.38;
}

.crew-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 36px;
}

.crew-meta div {
  padding: 16px;
  border: 2px solid var(--ink);
  background: var(--gold);
  font-weight: 900;
  box-shadow: 3px 3px 0 var(--ink);
}

.proof-list {
  display: grid;
  gap: 12px;
}

.proof-list div {
  padding: 16px;
  border: 2px solid var(--ink);
  background: var(--paper-2);
  font-weight: 800;
  box-shadow: 3px 3px 0 var(--green);
}

.share-panel {
  margin-top: 22px;
  padding: 18px;
  border: 2px solid var(--ink);
  background: var(--paper-2);
  box-shadow: 5px 5px 0 var(--gold);
}

.share-panel h2 {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0;
}

.share-panel p {
  margin: 0 0 14px;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.35;
}

.share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.share-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 12px;
  border: 2px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 3px 3px 0 var(--ink);
  font-family: inherit;
  cursor: pointer;
}

.share-button.primary {
  background: var(--ink);
  color: var(--paper-2);
  box-shadow-color: var(--red);
}

.url-box {
  margin: 12px 0 0;
  padding: 10px 12px;
  border: 2px solid var(--line);
  background: rgba(255, 255, 255, 0.45);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

@media (max-width: 980px) {
  nav { display: none; }
  .hero,
  .split,
  .checker,
  .profile-layout {
    min-height: auto;
    grid-template-columns: 1fr;
  }
  .tree-branches,
  .crew-meta,
  .registration-options {
    grid-template-columns: 1fr;
  }
  .tree-branches::before,
  .branch::before {
    display: none;
  }
  .rights-strip,
  .page-grid,
  .agent-grid,
  .department-grid,
  .pricing-grid,
  .manifesto,
  .reports {
    grid-template-columns: 1fr;
  }
  .card-stage { justify-items: stretch; }
  .hero .union-card { transform: none; }
}

@media (max-width: 560px) {
  .page { padding-top: 28px; }
  h1 { font-size: clamp(50px, 17vw, 70px); }
  .page-title { font-size: clamp(42px, 15vw, 66px); }
  .hero-actions,
  .actions { display: grid; }
  .rights-strip { grid-template-columns: 1fr 1fr; }
  .union-card {
    aspect-ratio: auto;
    grid-template-columns: 82px 1fr;
  }
  .bot-photo {
    width: 82px;
    height: 82px;
    font-size: 38px;
  }
  .card-grid { grid-template-columns: 1fr; }
  .topbar { padding-inline: 14px; }
}
