@font-face {
  font-family: "Montserrat";
  src: url("../fonts/Montserrat-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/Montserrat-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/Montserrat-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --neo-blue: #283583;
  --neo-blue-deep: #1f2a68;
  --neo-cream: #f2f2e9;
  --neo-gray: #a3a3a3;
  --neo-white: #ffffff;
  --neo-black: #000000;
  --neo-ink: #1c2040;
  --neo-muted: #6d6f7a;
  --neo-line: #d5d6cf;
  --neo-radius: 2px;
  --neo-content: 1120px;
  --neo-font: "Montserrat", "Calibri", Arial, sans-serif;
  --header-h: 64px;
}

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

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--neo-font);
  color: var(--neo-ink);
  background: var(--neo-cream);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--neo-blue);
}

code,
.mono {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.86em;
}

.wrap {
  width: min(var(--neo-content), calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  background: var(--neo-blue);
  color: var(--neo-white);
}

.site-header .bar {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-link img {
  height: 22px;
  width: auto;
}

.brand-link span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.72;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: var(--neo-radius);
}

.nav a:hover,
.nav a.is-active {
  color: var(--neo-white);
  background: rgba(255, 255, 255, 0.1);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--neo-white);
  padding: 8px 10px;
  font: 600 12px/1 var(--neo-font);
  cursor: pointer;
}

.hero {
  position: relative;
  overflow: hidden;
  background: var(--neo-blue);
  color: var(--neo-white);
  padding: 72px 0 64px;
}

.hero::after {
  content: "";
  position: absolute;
  right: -8%;
  bottom: -28%;
  width: 46%;
  aspect-ratio: 764 / 904;
  background: url("../assets/drop-white.svg") center / contain no-repeat;
  opacity: 0.08;
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.7;
}

.hero h1,
.page-head h1 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero p.lead {
  margin: 0;
  max-width: 640px;
  font-size: 17px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
}

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

.page-head {
  padding: 48px 0 8px;
}

.page-head p {
  margin: 0;
  max-width: 680px;
  color: var(--neo-muted);
}

.section {
  padding: 48px 0;
}

.section h2 {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 700;
  color: var(--neo-blue);
  letter-spacing: -0.02em;
}

.section .lead {
  margin: 0 0 28px;
  max-width: 680px;
  color: var(--neo-muted);
}

.grid {
  display: grid;
  gap: 16px;
}

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

.box {
  background: var(--neo-white);
  border: 1px solid var(--neo-line);
  border-radius: var(--neo-radius);
  padding: 20px;
}

.box h3 {
  margin: 0 0 8px;
  font-size: 16px;
  color: var(--neo-blue);
}

.box p {
  margin: 0;
  color: var(--neo-muted);
  font-size: 14px;
}

.box a.more {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  font-size: 13px;
  line-height: 1;
  padding: 12px 16px;
  border-radius: var(--neo-radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
}

.btn:disabled {
  opacity: 0.55;
  cursor: wait;
}

.btn-primary {
  background: var(--neo-blue);
  color: var(--neo-white);
}

.btn-primary:hover:not(:disabled) {
  background: var(--neo-blue-deep);
}

.btn-ghost {
  background: transparent;
  color: var(--neo-blue);
  border-color: var(--neo-blue);
}

.btn-on-dark {
  background: var(--neo-white);
  color: var(--neo-blue);
}

.btn-on-dark-ghost {
  background: transparent;
  color: var(--neo-white);
  border-color: rgba(255, 255, 255, 0.45);
}

.swatch {
  overflow: hidden;
  border: 1px solid var(--neo-line);
  border-radius: var(--neo-radius);
  background: var(--neo-white);
}

.swatch-fill {
  height: 112px;
}

.swatch-meta {
  padding: 14px 16px 16px;
}

.swatch-meta strong {
  display: block;
  color: var(--neo-blue);
  font-size: 14px;
}

.swatch-meta button,
.copy {
  margin-top: 8px;
  font: 600 12px/1 var(--neo-font);
  color: var(--neo-blue);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--neo-line);
  background: var(--neo-white);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th,
td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--neo-line);
  vertical-align: top;
}

th {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--neo-blue);
  background: #f7f7f2;
}

.logo-board {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.logo-tile {
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px;
  border: 1px solid var(--neo-line);
}

.logo-tile img {
  width: min(260px, 70%);
  height: auto;
}

.logo-tile.is-dark {
  background: var(--neo-blue);
}

.logo-tile.is-light {
  background: var(--neo-white);
}

.rules {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.rules li {
  padding: 12px 14px 12px 40px;
  background: var(--neo-white);
  border: 1px solid var(--neo-line);
  position: relative;
}

.rules li::before {
  position: absolute;
  left: 14px;
  font-weight: 700;
}

.rules.do li::before { content: "✓"; color: var(--neo-blue); }
.rules.dont li::before { content: "×"; color: #8a2a2a; }

.type-sample {
  background: var(--neo-white);
  border: 1px solid var(--neo-line);
  padding: 24px;
}

.type-sample .display {
  margin: 0 0 8px;
  font-size: 40px;
  font-weight: 700;
  color: var(--neo-blue);
  text-transform: uppercase;
  line-height: 1.1;
}

.type-sample .sub {
  margin: 0 0 16px;
  font-size: 20px;
  font-weight: 700;
  color: var(--neo-blue);
}

.type-sample .body {
  margin: 0;
  font-family: Calibri, Carlito, Arial, sans-serif;
  font-size: 16px;
}

.snippet {
  margin: 12px 0 0;
  padding: 12px 14px;
  background: #1c2040;
  color: #e8eadc;
  overflow-x: auto;
  font-size: 12px;
  border-radius: var(--neo-radius);
}

.agent-list a {
  font-weight: 600;
  text-decoration: none;
}

.site-footer {
  margin-top: 48px;
  padding: 28px 0 36px;
  border-top: 1px solid var(--neo-line);
  color: var(--neo-muted);
  font-size: 13px;
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer a {
  color: var(--neo-blue);
  text-decoration: none;
  font-weight: 600;
}

.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--neo-blue);
  color: var(--neo-white);
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--neo-radius);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 80;
}

.toast.is-on {
  opacity: 1;
}

.tool-layout {
  display: grid;
  grid-template-columns: minmax(280px, 380px) 1fr;
  gap: 36px;
  padding: 28px 0 48px;
}

.panel h1 {
  margin: 0 0 8px;
  font-size: 22px;
  color: var(--neo-blue);
}

.panel .lead {
  margin: 0 0 22px;
  font-size: 13px;
  color: var(--neo-muted);
}

form.stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

form.stack label,
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--neo-blue);
}

input,
textarea,
select {
  font: 400 14px/1.4 var(--neo-font);
  padding: 10px 12px;
  border: 1px solid var(--neo-line);
  border-radius: var(--neo-radius);
  background: var(--neo-white);
  color: var(--neo-ink);
  text-transform: none;
  letter-spacing: 0;
  width: 100%;
}

textarea {
  min-height: 160px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--neo-blue);
  outline-offset: 1px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.hint {
  margin: 14px 0 0;
  font-size: 12px;
  color: var(--neo-muted);
}

.preview-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--neo-muted);
  margin: 8px 0;
}

.stage {
  background:
    linear-gradient(45deg, #ecece4 25%, transparent 25%) 0 0 / 16px 16px,
    linear-gradient(45deg, transparent 75%, #ecece4 75%) 8px 8px / 16px 16px,
    #fafaf6;
  padding: 18px;
  display: flex;
  justify-content: center;
  border: 1px solid var(--neo-line);
  overflow: auto;
}

.ui-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.ui-dark {
  background: var(--neo-blue);
  color: var(--neo-white);
  padding: 20px;
}

.anchor {
  color: inherit;
  text-decoration: none;
}

.anchor:hover::after {
  content: " #";
  color: var(--neo-gray);
}

@media (max-width: 920px) {
  .grid-2,
  .grid-3,
  .grid-4,
  .logo-board,
  .tool-layout {
    grid-template-columns: 1fr;
  }

  .nav-toggle { display: block; }
  .nav { display: none; }
  .site-header.is-open .nav {
    display: flex;
    position: absolute;
    left: 0;
    right: 0;
    top: var(--header-h);
    background: var(--neo-blue-deep);
    padding: 12px 20px 16px;
    flex-direction: column;
    align-items: stretch;
  }
}

@media print {
  .site-header,
  .site-footer,
  .hero-actions,
  .nav-toggle,
  .no-print {
    display: none !important;
  }
  body { background: white; }
}
