/* ===========================================================
   SIMON FREWIN — PROPERTY ACADEMY
   Brand-true: Orange #FF4B00, Light Grey #CECEC7, Black
   Typography: Space Grotesk (Sonic) + Space Mono (Nekst Mono)
   =========================================================== */

:root {
  --bg: #CECEC7;
  --bg-alt: #DAD9D2;
  --bg-card: #FFFFFF;
  --bg-dark: #000000;
  --text: #000000;
  --text-muted: #4a4a47;
  --text-dim: #7a7a73;
  --accent: #FF4B00;
  --accent-dark: #cc3c00;
  --accent-soft: #FFE5D9;
  --blue: #455DFD;
  --blue-soft: #E0E5FF;
  --yellow: #FADC57;
  --border: #000000;
  --border-soft: rgba(0, 0, 0, 0.12);
  --shadow-sm: 4px 4px 0 #000;
  --shadow-md: 6px 6px 0 #000;
  --shadow-lg: 8px 8px 0 #000;
  --radius: 0;
  --radius-pill: 999px;
  --maxw: 1200px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Space Mono', ui-monospace, 'Menlo', monospace;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  font-size: 15px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- Headings — Space Grotesk in CAPS ---------- */
h1, h2, h3, h4, h5, .display, .caps {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  line-height: 1.05;
  margin: 0;
}

/* ---------- Pill highlight (signature brand element) ---------- */
.pill {
  display: inline-block;
  background: var(--bg-dark);
  color: #fff;
  padding: 0.05em 0.6em 0.15em;
  border-radius: var(--radius-pill);
  margin: 0 0.05em;
  white-space: nowrap;
}

.pill-orange { background: var(--accent); color: #fff; }
.pill-blue { background: var(--blue); color: #fff; }
.pill-yellow { background: var(--yellow); color: #000; }
.pill-white { background: #fff; color: #000; border: 2px solid #000; }

/* ---------- Header ---------- */
.site-header {
  background: var(--bg);
  border-bottom: 2px solid var(--bg-dark);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-mark {
  display: none;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 0.25rem;
}

.brand-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-transform: uppercase;
}

.brand-title .win { color: var(--accent); }

.brand-sub {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--accent);
  color: #fff;
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-pill);
  width: fit-content;
}

.header-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.btn-primary, .btn-ghost {
  font-family: 'Space Grotesk', sans-serif;
  padding: 0.6rem 1.1rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid var(--bg-dark);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: var(--radius-pill);
}

.btn-primary {
  background: var(--bg-dark);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent);
  border-color: var(--bg-dark);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
}

.btn-ghost:hover {
  background: var(--bg-dark);
  color: #fff;
}

/* ---------- Tabs ---------- */
.tabs {
  background: var(--bg-dark);
  border-bottom: 2px solid var(--bg-dark);
  position: sticky;
  top: 73px;
  z-index: 90;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tabs-inner {
  display: flex;
  gap: 0;
  padding: 0 1rem;
  min-width: max-content;
}

.tab-btn {
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.65);
  padding: 1rem 1.1rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  position: relative;
  transition: color 0.1s ease;
}

.tab-btn:hover {
  color: #fff;
}

.tab-btn.active {
  color: var(--accent);
}

.tab-btn.active::after {
  content: "";
  position: absolute;
  left: 0.5rem;
  right: 0.5rem;
  bottom: 0;
  height: 4px;
  background: var(--accent);
}

.tab-btn .tab-num {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(255,255,255,0.1);
  color: #fff;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-pill);
  min-width: 1.4rem;
  text-align: center;
  line-height: 1.2;
}

.tab-btn.active .tab-num {
  background: var(--accent);
  color: #fff;
}

.tab-btn .tab-progress {
  position: absolute;
  left: 0.5rem;
  right: 0.5rem;
  bottom: 0;
  height: 2px;
  background: rgba(255,255,255,0.1);
}

.tab-btn .tab-progress-bar {
  height: 100%;
  background: var(--accent);
  width: 0%;
  transition: width 0.3s ease;
}

.tab-btn.active .tab-progress {
  display: none;
}

/* ---------- Main ---------- */
.main-content {
  padding: 2.5rem 1.5rem 4rem;
}

.tab-panel {
  display: none;
  animation: fadeIn 0.25s ease;
}

.tab-panel.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Step hero ---------- */
.step-hero {
  margin-bottom: 2.5rem;
}

.step-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: var(--bg-dark);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1.25rem;
}

.step-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.25rem, 6vw, 4rem);
  font-weight: 800;
  margin: 0 0 0.75rem;
  letter-spacing: -0.025em;
  line-height: 0.95;
  text-transform: uppercase;
}

.step-title .pill {
  font-size: 0.85em;
  vertical-align: 0.05em;
}

.step-focus {
  font-family: 'Space Mono', monospace;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.step-intro {
  background: var(--bg-card);
  border: 2px solid var(--bg-dark);
  padding: 1.5rem 1.75rem;
  font-size: 1.02rem;
  font-family: 'Space Mono', monospace;
  line-height: 1.6;
  box-shadow: var(--shadow-sm);
}

/* ---------- Sections ---------- */
.section {
  margin: 2.75rem 0;
}

.section h2 {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  margin: 0 0 1rem;
  color: var(--text);
}

.section h3 {
  font-size: 1.05rem;
  margin: 1.5rem 0 0.5rem;
  color: var(--accent);
}

.section p {
  margin: 0 0 1rem;
  color: var(--text);
  font-family: 'Space Mono', monospace;
  font-size: 0.95rem;
  line-height: 1.7;
}

.section ul, .section ol {
  margin: 0 0 1rem;
  padding-left: 1.5rem;
  font-family: 'Space Mono', monospace;
  font-size: 0.95rem;
}

.section li {
  margin-bottom: 0.55rem;
  color: var(--text);
  line-height: 1.6;
}

.section li::marker {
  color: var(--accent);
  font-weight: 700;
}

.list-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  margin-bottom: 0.75rem !important;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.85rem;
  background: var(--yellow);
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
}

/* ---------- Quotes ---------- */
.quote {
  background: var(--bg-card);
  border: 2px solid var(--bg-dark);
  padding: 1.5rem 1.75rem 1.25rem;
  margin: 1.5rem 0;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.quote::before {
  content: "”";
  position: absolute;
  top: -1.5rem;
  left: 1rem;
  background: var(--accent);
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  width: 2.4rem;
  height: 2.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid var(--bg-dark);
  transform: rotate(180deg);
}

.quote-text {
  font-family: 'Space Mono', monospace;
  color: var(--text);
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  line-height: 1.65;
}

.quote-author {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.quote-author::before {
  content: "— ";
}

/* ---------- Tip callouts ---------- */
.tip {
  background: var(--yellow);
  border: 2px solid var(--bg-dark);
  padding: 1.1rem 1.4rem;
  margin: 1.5rem 0;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  box-shadow: var(--shadow-sm);
}

.tip-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  line-height: 1;
}

.tip-body {
  flex: 1;
  font-family: 'Space Mono', monospace;
  font-size: 0.92rem;
  line-height: 1.55;
}

.tip-label {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  color: var(--bg-dark);
  margin-right: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ---------- Tables ---------- */
.table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
  border: 2px solid var(--bg-dark);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Space Mono', monospace;
  font-size: 0.9rem;
}

th, td {
  text-align: left;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-soft);
}

th {
  background: var(--bg-dark);
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  border-bottom: 2px solid var(--bg-dark);
}

tr:last-child td {
  border-bottom: none;
}

tbody tr:hover {
  background: var(--bg-alt);
}

/* ---------- Checklists / KPI / Metrics cards ---------- */
.checklist-card, .metrics-card, .kpi-card {
  background: var(--bg-card);
  border: 2px solid var(--bg-dark);
  padding: 1.75rem;
  margin: 1.75rem 0;
  box-shadow: var(--shadow-md);
}

.checklist-header, .metrics-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--bg-dark);
  gap: 1rem;
  flex-wrap: wrap;
}

.checklist-header h2, .metrics-header h2 {
  margin: 0;
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
}

.progress-pill {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  font-weight: 800;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  background: var(--bg-dark);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.progress-pill.full {
  background: var(--accent);
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}

.check-item {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 0.85rem 1rem;
  background: var(--bg);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.1s ease;
}

.check-item:hover {
  border-color: var(--bg-dark);
  background: var(--bg-alt);
}

.check-item input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border: 2px solid var(--bg-dark);
  background: #fff;
  cursor: pointer;
  margin: 0;
  flex-shrink: 0;
  position: relative;
  transition: all 0.1s ease;
  margin-top: 1px;
  border-radius: 4px;
}

.check-item input[type="checkbox"]:hover {
  background: var(--accent-soft);
}

.check-item input[type="checkbox"]:checked {
  background: var(--accent);
  border-color: var(--bg-dark);
}

.check-item input[type="checkbox"]:checked::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  line-height: 1;
}

.check-item label {
  flex: 1;
  cursor: pointer;
  user-select: none;
  color: var(--text);
  line-height: 1.55;
  font-family: 'Space Mono', monospace;
  font-size: 0.92rem;
}

.check-item.checked {
  background: var(--bg-alt);
  border-color: var(--accent);
}

.check-item.checked label {
  color: var(--text-dim);
  text-decoration: line-through;
  text-decoration-color: var(--accent);
}

/* ---------- Metrics ---------- */
.metrics-table th {
  background: transparent;
  color: var(--text);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.6rem 0.85rem;
  border-bottom: 2px solid var(--bg-dark);
  font-family: 'Space Grotesk', sans-serif;
}

.metrics-table td {
  padding: 0.85rem;
  border-bottom: 1px solid var(--border-soft);
  vertical-align: middle;
  font-family: 'Space Mono', monospace;
}

.metrics-table tr:last-child td {
  border-bottom: none;
}

.metric-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

.metric-target {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.metric-input {
  background: var(--bg);
  border: 2px solid var(--bg-dark);
  color: var(--accent);
  font-weight: 700;
  font-family: 'Space Mono', monospace;
  font-size: 0.95rem;
  padding: 0.5rem 0.75rem;
  width: 100%;
  max-width: 140px;
  border-radius: 0;
  transition: all 0.1s ease;
}

.metric-input:focus {
  outline: none;
  background: #fff;
  box-shadow: 3px 3px 0 var(--accent);
  transform: translate(-2px, -2px);
}

.metric-input::placeholder {
  color: var(--text-dim);
  font-weight: 400;
}

/* ---------- Outcome ---------- */
.outcome {
  background: var(--accent);
  color: #fff;
  border: 2px solid var(--bg-dark);
  padding: 1.75rem;
  margin-top: 2rem;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.outcome-eyebrow {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: var(--bg-dark);
  display: inline-block;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1rem;
}

.outcome-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.05rem, 2.5vw, 1.4rem);
  font-weight: 700;
  color: #fff;
  margin: 0;
  text-transform: uppercase;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

/* ---------- Overview hero ---------- */
.overview-hero {
  background: var(--bg-dark);
  color: #fff;
  padding: 3.5rem 2rem;
  margin: -2.5rem -1.5rem 2.5rem;
  text-align: left;
  border-bottom: 4px solid var(--accent);
}

.overview-eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.overview-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 800;
  margin: 0 0 1.25rem;
  letter-spacing: -0.03em;
  line-height: 0.92;
  text-transform: uppercase;
  color: #fff;
  max-width: 900px;
}

.overview-title .pill {
  background: var(--accent);
  color: #fff;
  font-size: 0.95em;
  padding: 0.05em 0.5em 0.15em;
  border-radius: var(--radius-pill);
}

.overview-tagline {
  font-family: 'Space Mono', monospace;
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
  max-width: 640px;
  margin: 0;
  line-height: 1.6;
}

/* ---------- Steps grid (overview) ---------- */
.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  margin: 2.5rem 0 1.25rem;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0 3rem;
}

.step-card {
  background: var(--bg-card);
  border: 2px solid var(--bg-dark);
  padding: 1.5rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: left;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.step-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 7px 7px 0 var(--accent);
}

.step-card:nth-child(2n):hover { box-shadow: 7px 7px 0 var(--blue); }
.step-card:nth-child(3n):hover { box-shadow: 7px 7px 0 var(--yellow); }

.step-card-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.04em;
}

.step-card-icon {
  font-size: 1.75rem;
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: var(--bg);
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  border: 2px solid var(--bg-dark);
}

.step-card-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  margin: 0.25rem 0 0;
  text-transform: uppercase;
  line-height: 1.1;
}

.step-card-focus {
  font-family: 'Space Mono', monospace;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.4;
}

.step-card-progress {
  margin-top: 0.75rem;
  height: 6px;
  background: var(--bg);
  border: 1px solid var(--bg-dark);
  overflow: hidden;
}

.step-card-progress-bar {
  height: 100%;
  background: var(--accent);
  width: 0%;
  transition: width 0.4s ease;
}

.step-card-progress-text {
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
  margin-top: 1rem;
}

.tool-card {
  background: var(--bg-card);
  border: 2px solid var(--bg-dark);
  padding: 1.1rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.tool-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--blue);
}

.tool-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.tool-desc {
  font-family: 'Space Mono', monospace;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* ---------- Mission special ---------- */
.mission-section {
  background: var(--bg-dark);
  color: #fff;
  padding: 2rem;
  margin: 2.5rem 0;
  border: 2px solid var(--bg-dark);
}

.mission-section h2 {
  color: var(--yellow);
}

.mission-section p {
  color: rgba(255,255,255,0.85);
  font-size: 1.05rem;
}

.mission-section .quote {
  background: transparent;
  border-color: rgba(255,255,255,0.2);
  box-shadow: none;
}

.mission-section .quote-text { color: #fff; }
.mission-section .quote-author { color: var(--yellow); }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 4rem;
  border-top: 4px solid var(--accent);
  background: var(--bg-dark);
  color: #fff;
  padding: 3rem 0;
}

.footer-inner {
  text-align: center;
}

.footer-quote {
  font-family: 'Space Grotesk', sans-serif;
  font-style: normal;
  font-weight: 700;
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  color: #fff;
  margin: 0 0 1.5rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  text-transform: uppercase;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.footer-meta {
  font-family: 'Space Mono', monospace;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-meta a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
}

.footer-meta a:hover {
  text-decoration: underline;
}

/* ---------- Lead capture modal ---------- */
.lead-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow-y: auto;
}

.lead-modal.open {
  display: flex;
}

body.lead-locked {
  overflow: hidden;
}

.lead-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.lead-modal-card {
  position: relative;
  background: #fff;
  border: 2px solid var(--bg-dark);
  box-shadow: 8px 8px 0 var(--accent);
  padding: 2rem 1.85rem 1.85rem;
  max-width: 520px;
  width: 100%;
  margin: auto;
  animation: leadIn 0.25s ease;
}

@keyframes leadIn {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.lead-modal-eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: var(--bg-dark);
  display: inline-block;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1rem;
}

.lead-modal-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin: 0 0 0.85rem;
  color: var(--text);
}

.lead-modal-title .pill {
  font-size: 0.95em;
  padding: 0.05em 0.55em 0.15em;
}

.lead-modal-sub {
  font-family: 'Space Mono', monospace;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0 0 1.5rem;
  line-height: 1.55;
}

.lead-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.lead-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.lead-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text);
}

.lead-form input[type="text"],
.lead-form input[type="email"],
.lead-form input[type="tel"] {
  font-family: 'Space Mono', monospace;
  font-size: 0.95rem;
  padding: 0.7rem 0.85rem;
  border: 2px solid var(--bg-dark);
  background: var(--bg);
  color: var(--text);
  border-radius: 0;
  width: 100%;
  transition: all 0.1s ease;
}

.lead-form input:focus {
  outline: none;
  background: #fff;
  box-shadow: 4px 4px 0 var(--accent);
  transform: translate(-2px, -2px);
}

.lead-form input.error {
  border-color: var(--accent);
  background: #FFE5DD;
}

.lead-goal {
  border: none;
  margin: 0;
  padding: 0;
}

.lead-goal .lead-label {
  margin-bottom: 0.25rem;
}

.lead-radios {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.lead-radio {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 0.5rem;
  border: 2px solid var(--bg-dark);
  background: var(--bg);
  cursor: pointer;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: center;
  transition: all 0.1s ease;
  user-select: none;
}

.lead-radio:hover {
  background: var(--bg-alt);
}

.lead-radio input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.lead-radio:has(input:checked) {
  background: var(--accent);
  color: #fff;
  border-color: var(--bg-dark);
  box-shadow: 3px 3px 0 var(--bg-dark);
  transform: translate(-1px, -1px);
}

.lead-submit {
  margin-top: 0.5rem;
  background: var(--accent);
  color: #fff;
  border: 2px solid var(--bg-dark);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.95rem 1.25rem;
  cursor: pointer;
  border-radius: var(--radius-pill);
  box-shadow: 4px 4px 0 var(--bg-dark);
  transition: all 0.1s ease;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.lead-submit:hover:not(:disabled) {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--bg-dark);
}

.lead-submit:active:not(:disabled) {
  transform: translate(2px, 2px);
  box-shadow: 0 0 0 var(--bg-dark);
}

.lead-submit:disabled {
  cursor: not-allowed;
  opacity: 0.85;
}

.lead-submit-spinner {
  display: none;
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: leadSpin 0.7s linear infinite;
}

.lead-submit.loading .lead-submit-spinner {
  display: inline-block;
}

@keyframes leadSpin {
  to { transform: rotate(360deg); }
}

.lead-error {
  font-family: 'Space Mono', monospace;
  font-size: 0.85rem;
  color: var(--accent);
  background: #FFE5DD;
  border: 2px solid var(--accent);
  padding: 0.65rem 0.85rem;
  margin: 0.5rem 0 0;
}

.lead-fineprint {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  color: var(--text-dim);
  margin: 0.5rem 0 0;
  text-align: center;
  line-height: 1.4;
}

@media (max-width: 480px) {
  .lead-modal-card {
    padding: 1.5rem 1.25rem 1.25rem;
    box-shadow: 5px 5px 0 var(--accent);
  }
  .lead-radios {
    grid-template-columns: 1fr;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .header-inner {
    padding: 0.85rem 1rem;
  }

  .brand-title {
    font-size: 1.1rem;
  }

  .brand-sub {
    font-size: 0.6rem;
    padding: 0.1rem 0.45rem;
  }

  .btn-primary, .btn-ghost {
    padding: 0.5rem 0.85rem;
    font-size: 0.7rem;
  }

  .tabs-inner {
    padding: 0 0.75rem;
  }

  .tab-btn {
    padding: 0.85rem 0.85rem;
    font-size: 0.72rem;
  }

  .main-content {
    padding: 1.75rem 1rem 3rem;
  }

  .overview-hero {
    margin: -1.75rem -1rem 2rem;
    padding: 2.5rem 1.5rem;
  }

  .checklist-card, .metrics-card {
    padding: 1.25rem;
  }

  .step-card-icon {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.4rem;
  }
}
