/* shared.css — Direction A (refined AuthBuild) tool pages */

:root {
  --ink: #0b1220;
  --paper: #fafaf7;
  --cream: #f3efe6;
  --muted: #5b6477;
  --line: #e6e3da;
  --accent: #1e40af;
  --accent-hover: #1e3a8a;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--paper);
  color: var(--ink);
  letter-spacing: -0.005em;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

button { font-family: inherit; cursor: pointer; }

.mono {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
}

/* Header */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 56px;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 28px; height: 28px; background: var(--ink); color: var(--paper);
  display: grid; place-items: center;
  font-weight: 700; font-size: 16px; letter-spacing: -0.04em;
}
.brand-name { font-weight: 600; font-size: 16px; letter-spacing: -0.02em; }
.brand-sub {
  margin-left: 14px; padding-left: 14px;
  border-left: 1px solid var(--line);
  color: var(--muted); font-size: 14px;
}
.site-nav { display: flex; align-items: center; gap: 28px; font-size: 14px; }
.site-nav a { color: var(--muted); }
.site-nav a.active { color: var(--ink); }
.btn-primary {
  background: var(--ink); color: var(--paper); border: none;
  padding: 10px 18px; font-size: 14px; font-weight: 500;
}
.btn-primary:hover { background: #1a2236; }

/* Breadcrumbs */
.breadcrumb {
  padding: 14px 56px;
  border-bottom: 1px solid var(--line);
  background: var(--cream);
  font-size: 13px;
  color: var(--muted);
  display: flex; gap: 8px; align-items: center;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb-sep { opacity: 0.4; }
.breadcrumb-current { color: var(--ink); font-weight: 500; }

/* Hero */
.tool-hero {
  padding: 64px 56px 56px;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
.tool-hero h1 {
  font-weight: 700;
  font-size: 64px;
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 18px 0 20px;
}
.tool-hero h1 em {
  font-style: normal;
  color: var(--accent);
}
.tool-hero p.lede {
  font-size: 18px; line-height: 1.55; color: var(--muted);
  max-width: 520px; margin: 0 0 28px;
}
.tag {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent); font-weight: 500;
}
.kbd-stats { display: flex; gap: 28px; margin-top: 8px; }
.kbd-stat .n {
  font-size: 28px; font-weight: 600; letter-spacing: -0.025em;
  color: var(--ink);
}
.kbd-stat .l { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* Tool card (the interactive widget) */
.tool-card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 32px;
  box-shadow: 0 1px 0 rgba(11, 18, 32, 0.02);
}
.tool-card .step-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--muted); margin-bottom: 20px;
  font-family: 'JetBrains Mono', monospace; letter-spacing: 0.1em; text-transform: uppercase;
}
.tool-card label.field-label {
  display: block; font-size: 12px; font-weight: 500;
  color: var(--ink); margin: 0 0 8px;
  letter-spacing: 0.02em;
}
.tool-card .field { margin-bottom: 18px; }
.tool-card select,
.tool-card input[type="text"],
.tool-card input[type="email"],
.tool-card textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 14.5px;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s;
}
.tool-card select:focus,
.tool-card input:focus,
.tool-card textarea:focus {
  border-color: var(--accent);
}
.tool-card textarea { min-height: 140px; resize: vertical; line-height: 1.5; }

.tool-card .submit-btn {
  background: var(--accent); color: #fff; border: none;
  padding: 14px 22px; font-size: 15px; font-weight: 500;
  width: 100%; margin-top: 4px;
}
.tool-card .submit-btn:hover { background: var(--accent-hover); }
.tool-card .submit-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.progress-track {
  height: 4px; background: var(--cream); overflow: hidden; margin-bottom: 24px;
}
.progress-fill { height: 100%; background: var(--accent); transition: width 0.4s ease; }

/* Section heading */
.section { padding: 80px 56px; border-top: 1px solid var(--line); }
.section.cream { background: var(--cream); }
.section h2 {
  font-weight: 700; font-size: 44px; letter-spacing: -0.025em;
  line-height: 1.05; margin: 12px 0 0;
}

/* Stats grid */
.stat-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
}
.stat-grid > div { background: var(--paper); padding: 28px; }
.stat-grid .n {
  font-size: 44px; font-weight: 600; letter-spacing: -0.03em; color: var(--accent);
  line-height: 1;
}
.stat-grid .l { font-size: 13px; color: var(--muted); margin-top: 8px; line-height: 1.4; }

/* Testimonial */
.testimonial blockquote {
  font-size: 32px; font-weight: 500; line-height: 1.22; letter-spacing: -0.02em;
  margin: 16px 0 20px;
}
.testimonial figcaption { display: flex; align-items: center; gap: 14px; }
.testimonial .avatar {
  width: 44px; height: 44px; border-radius: 999px;
  background: var(--ink); color: var(--paper);
  display: grid; place-items: center; font-weight: 600; font-size: 14px;
}

/* Other tools strip */
.other-tools-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px;
}
.other-tool-card {
  border: 1px solid var(--line); background: var(--paper);
  padding: 24px;
  display: flex; flex-direction: column; gap: 12px;
  text-decoration: none; color: var(--ink);
  transition: transform 0.15s, border-color 0.15s;
}
.other-tool-card:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
  color: var(--ink);
}
.other-tool-card h4 {
  font-size: 22px; font-weight: 600; letter-spacing: -0.025em; margin: 0;
}
.other-tool-card p { font-size: 14px; color: var(--muted); margin: 0; flex: 1; line-height: 1.5; }
.other-tool-card .arrow { color: var(--accent); font-weight: 500; font-size: 14px; }

/* Final CTA */
.final-cta {
  background: var(--ink); color: var(--paper);
  padding: 80px 56px;
}
.final-cta h2 {
  font-size: 56px; font-weight: 700; letter-spacing: -0.03em;
  line-height: 1; margin: 14px 0 20px;
}
.final-cta p { font-size: 17px; line-height: 1.55; color: #a8b3c8; max-width: 540px; margin: 0 0 28px; }
.final-cta .btn-light {
  background: var(--paper); color: var(--ink); border: none;
  padding: 16px 26px; font-size: 15px; font-weight: 500; margin-right: 10px;
}
.final-cta .btn-ghost {
  background: transparent; color: var(--paper); border: 1px solid #4a5267;
  padding: 16px 26px; font-size: 15px; font-weight: 500;
}

footer.site-footer {
  padding: 32px 56px; border-top: 1px solid #1a2236;
  background: var(--ink); color: #7a8499; font-size: 13px;
  display: flex; justify-content: space-between;
}

/* Result panel — locked & unlocked states */
.result-panel { background: var(--cream); border: 1px solid var(--line); padding: 28px; margin-top: 24px; }
.result-panel h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 12px; }
.result-panel.locked { position: relative; }
.result-panel.locked .blur-target { filter: blur(6px); pointer-events: none; user-select: none; }
.result-panel .gate {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: linear-gradient(180deg, rgba(243, 239, 230, 0.4) 0%, rgba(243, 239, 230, 0.96) 60%);
  padding: 24px;
}
.gate-card {
  background: #fff; border: 1px solid var(--line); padding: 24px; max-width: 460px; width: 100%;
  text-align: center;
}
.gate-card h4 { font-size: 22px; font-weight: 600; margin: 0 0 8px; letter-spacing: -0.02em; }
.gate-card p { font-size: 14px; color: var(--muted); margin: 0 0 18px; }
.gate-card form { display: flex; gap: 8px; }
.gate-card input { flex: 1; padding: 12px 14px; font-size: 14px; border: 1px solid var(--line); background: var(--paper); }
.gate-card button { background: var(--accent); color: #fff; border: none; padding: 12px 18px; font-size: 14px; font-weight: 500; }
.gate-card .small { font-size: 11px; color: var(--muted); margin-top: 10px; }

/* Misc */
.divider { height: 1px; background: var(--line); margin: 32px 0; }
.score-radial { position: relative; width: 240px; height: 240px; }
.score-radial svg { transform: rotate(-90deg); }
.score-num {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 64px; font-weight: 700; letter-spacing: -0.04em;
}
.score-label { font-size: 12px; color: var(--muted); text-align: center; margin-top: 8px; letter-spacing: 0.1em; text-transform: uppercase; }
