/* Password Audit. Contained width; tokens from layout.css. */

body {
  --copy: #eef4f8;
}

body.grid-bg {
  background:
    radial-gradient(ellipse 70% 52% at 50% 36%, rgba(0, 170, 210, 0.22) 0%, transparent 48%),
    radial-gradient(ellipse 90% 46% at 50% 100%, rgba(4, 14, 24, 0.88) 0%, transparent 58%),
    #050c14;
}

body.grid-bg::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse at 50% 38%, transparent 44%, rgba(4, 10, 18, 0.58) 100%),
    linear-gradient(180deg, rgba(0, 216, 240, 0.05) 0%, transparent 18%, transparent 78%, rgba(4, 14, 24, 0.45) 100%);
}

main,
.footer { position: relative; z-index: 1; }

.page-wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 var(--pad);
}

.tool-page {
  padding-top: calc(var(--nav-h) + 40px);
  padding-bottom: 56px;
}

.tool-intro {
  max-width: 640px;
  margin: 0 auto 36px;
  text-align: center;
}

.tool-intro .label {
  font-size: 13px;
  color: var(--copy);
}

.tool-intro h1 {
  font-family: "Inter Tight", Inter, sans-serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
  margin: 10px 0 12px;
}

.tool-intro h1 .a { color: var(--lime); }

.tool-intro p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--copy);
}

.trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
  margin-top: 18px;
}

.trust span {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copy);
}

.trust span::before {
  content: "◆";
  color: var(--lime);
  margin-right: 8px;
  font-size: 8px;
}

.board {
  display: grid;
  grid-template-columns: minmax(280px, 0.36fr) minmax(0, 0.64fr);
  border: 1px solid rgba(0, 216, 240, 0.28);
  background: rgba(5, 12, 20, 0.62);
  box-shadow: 0 0 80px rgba(0, 216, 240, 0.1);
}

.board-setup {
  padding: 22px 20px 24px;
  border-right: 1px solid var(--line);
}

.setup-label {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--copy);
}

.setup-label em {
  font-style: normal;
  letter-spacing: 0.04em;
  text-transform: none;
  color: #c8d6e0;
}

.audit-field {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line);
}

.audit-input {
  flex: 1;
  min-width: 0;
  border: 0;
  padding: 10px 0;
  background: transparent;
  color: var(--white);
  font: inherit;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 16px;
}

.audit-input:focus {
  outline: none;
}

.audit-field:focus-within {
  border-bottom-color: var(--lime);
}

.audit-toggle {
  flex-shrink: 0;
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--lime);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--lime);
  background: transparent;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.audit-note {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--copy);
}

.hint {
  margin-top: 10px;
  font-size: 13px;
  color: #fbbf24;
}

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

.setup-actions .btn:hover {
  border-color: #fff;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.setup-actions .btn:active {
  border-color: var(--lime);
  color: #041018;
  background: var(--lime);
}

.board-out {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.result-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}

.output-lead {
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--copy);
}

.audit-empty,
.audit-result {
  padding: 22px 20px 24px;
}

.audit-empty p {
  color: var(--copy);
  font-size: 15px;
  line-height: 1.7;
}

.crack-hero {
  margin-bottom: 20px;
}

.crack-kicker {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--copy);
}

.crack-value {
  font-family: "Inter Tight", Inter, sans-serif;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin: 8px 0 10px;
  color: var(--lime);
}

.grade-line {
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--copy);
}

.grade-badge {
  font-family: "Inter Tight", Inter, sans-serif;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: none;
}

.metric-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.metric-pair span {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--copy);
}

.metric-pair strong {
  font-family: "Inter Tight", Inter, sans-serif;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.class-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.class-chip {
  padding: 8px 12px;
  border: 1px solid #143044;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8aa0b2;
}

.class-chip.is-on {
  border-color: var(--lime);
  color: #041018;
  background: var(--lime);
}

.class-chip.is-off {
  border-color: #143044;
  color: #8aa0b2;
}

.audit-alert {
  margin: 0 0 16px;
  padding: 12px 0;
  border-top: 1px solid #ef4444;
  border-bottom: 1px solid #ef4444;
  color: #fecaca;
  font-size: 14px;
  line-height: 1.7;
}

.audit-panel {
  margin-top: 16px;
}

.audit-panel-title {
  margin-bottom: 8px;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--copy);
}

.audit-panel ul {
  display: grid;
  gap: 6px;
}

.audit-panel li {
  font-size: 15px;
  line-height: 1.7;
  color: var(--copy);
}

.audit-panel li::before {
  content: "◆ ";
  color: var(--lime);
  font-size: 8px;
}

.audit-inline-next {
  margin-top: 18px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--copy);
}

.audit-inline-next a {
  color: var(--lime);
  letter-spacing: 0.06em;
}

.audit-inline-next a::after {
  content: " →";
  opacity: 0.5;
}

.audit-inline-next a:hover { color: #5eefff; }

.chapter {
  padding: 28px 24px 12px;
  margin: 0 0 24px;
  border: 1px solid rgba(0, 216, 240, 0.28);
  background: rgba(5, 12, 20, 0.62);
  box-shadow: 0 0 64px rgba(0, 216, 240, 0.08);
}

.sec-head {
  display: grid;
  grid-template-columns: minmax(220px, 0.95fr) minmax(200px, 1.05fr);
  gap: 20px 48px;
  align-items: end;
  margin-bottom: 24px;
}

.sec-head h2 {
  font-family: "Inter Tight", Inter, sans-serif;
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.sec-head h2 em {
  font-style: normal;
  color: var(--lime);
}

.craft-lead {
  color: var(--copy);
  font-size: 15px;
  line-height: 1.7;
  max-width: 520px;
}

.line-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 40px;
}

.line-item {
  display: block;
  width: 100%;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  cursor: pointer;
}

.line-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.line-item .name,
.next-item .name {
  font-family: "Inter Tight", Inter, sans-serif;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #d2d2d2;
}

.line-item .num,
.next-item .num {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: #b8b8b8;
}


.line-desc {
  display: block;
  margin-top: 10px;
  color: var(--copy);
  font-size: 15px;
  line-height: 1.7;
}

.line-desc a {
  color: var(--lime);
  letter-spacing: 0.06em;
}

.line-desc a::after {
  content: " →";
  opacity: 0.5;
}

.line-desc a:hover { color: #5eefff; }

.next {
  padding-bottom: 28px;
  margin-bottom: 64px;
}

.next-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 36px;
}

.next-item {
  min-width: 160px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

@media (hover: hover) and (pointer: fine) {
  .line-item:hover .name,
  .next-item:hover .name,
  .line-item:hover .num,
  .next-item:hover .num {
    color: var(--lime);
  }

  .audit-toggle:hover {
    border-color: #fff;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
  }
}

.audit-toggle:active {
  border-color: var(--lime);
  color: #041018;
  background: var(--lime);
}

@media (max-width: 860px) {
  .board { grid-template-columns: 1fr; }
  .board-setup { border-right: 0; border-bottom: 1px solid var(--line); }
  .sec-head,
  .line-list,
  .metric-pair { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .line-desc { display: none; }
  .line-item.is-on .line-desc { display: block; }
  .line-item.is-on .name,
  .line-item.is-on .num { color: var(--lime); }
  .next-item { width: 100%; }
}
