/* ===========================================================
   SIMON FREWIN — PROPERTY ACADEMY · RENTING CHECKLIST 2026
   Brutalist brand: Orange #FF4B00, Light Grey #CECEC7, Black
   Same brand language as the 6-Step Buy to Let Guide
   =========================================================== */

: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;
  --green: #34c759;
  --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: 940px;
}

* { 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 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  line-height: 1.05;
  margin: 0;
}

/* ---------- Pill ---------- */
.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; }

/* ---------- 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;
  text-decoration: 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.35rem;
  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;
  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.55rem 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid var(--bg-dark);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: var(--radius-pill);
  transition: all 0.1s ease;
  font-family: inherit;
  white-space: nowrap;
}

.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;
}

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

/* ---------- Hero ---------- */
.hero {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--bg-dark);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  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;
}

.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 800;
  margin: 0 0 1rem;
  letter-spacing: -0.03em;
  line-height: 0.95;
}

.hero-title .pill {
  font-size: 0.95em;
  vertical-align: 0.05em;
}

.hero-tagline {
  font-family: 'Space Mono', monospace;
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 640px;
  margin: 0 0 2rem;
  line-height: 1.6;
}

.hero-principle {
  background: var(--bg-card);
  border: 2px solid var(--bg-dark);
  padding: 1.5rem 1.75rem 1.25rem;
  position: relative;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
}

.quote-mark {
  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);
}

.principle-text {
  font-family: 'Space Mono', monospace;
  color: var(--text);
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.5;
}

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

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

/* ---------- Total progress ---------- */
.total-progress {
  background: var(--bg-card);
  border: 2px solid var(--bg-dark);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-sm);
}

.total-progress-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
}

.total-progress-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
}

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

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

.total-progress-bar {
  height: 10px;
  background: var(--bg);
  border: 1.5px solid var(--bg-dark);
  overflow: hidden;
  position: relative;
}

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

/* ---------- Section blocks ---------- */
.section-block {
  margin: 2.5rem 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--bg-dark);
  flex-wrap: wrap;
}

.section-header-left { flex: 1; min-width: 0; }

.section-header h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 800;
  margin: 0 0 0.4rem;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.section-header h2 .section-emoji {
  font-size: 0.8em;
  background: var(--bg-card);
  border: 2px solid var(--bg-dark);
  width: 2.2rem;
  height: 2.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-transform: none;
}

.section-subtitle {
  font-family: 'Space Mono', monospace;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.45;
}

.section-progress-pill {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  background: var(--accent-soft);
  color: var(--text);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  border: 2px solid var(--bg-dark);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.section-progress-pill.full {
  background: var(--accent);
  color: #fff;
}

/* ---------- Items ---------- */
.items {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}

.item {
  display: grid;
  grid-template-columns: auto 30px 1fr auto;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 0.95rem 1.1rem;
  background: var(--bg-card);
  border: 2px solid var(--bg-dark);
  cursor: pointer;
  transition: all 0.1s ease;
}

.item:hover {
  background: var(--bg-alt);
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--accent);
}

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

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

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

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

.item-no {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  background: var(--bg-alt);
  border-radius: var(--radius-pill);
  padding: 0.18rem 0.55rem;
  margin-top: 0.1rem;
  align-self: start;
}

.item-text {
  font-family: 'Space Mono', monospace;
  font-size: 0.93rem;
  line-height: 1.5;
  color: var(--text);
  user-select: none;
  cursor: pointer;
}

.item-tag {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  background: var(--blue);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-pill);
  align-self: start;
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.item.checked {
  background: var(--accent-soft);
}

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

.item.checked .item-no {
  background: var(--accent);
  color: #fff;
}

/* ---------- Key dates ---------- */
.key-dates {
  margin: 3rem 0 0;
  background: var(--bg-dark);
  color: #fff;
  padding: 2rem 2rem 1.5rem;
  border: 2px solid var(--bg-dark);
  position: relative;
}

.key-dates::before {
  content: "⚠️";
  position: absolute;
  top: -1.25rem;
  left: 1.5rem;
  background: var(--yellow);
  border: 2px solid var(--bg-dark);
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  border-radius: 50%;
}

.key-dates h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.55rem;
  font-weight: 800;
  margin: 0 0 1.25rem;
  text-transform: uppercase;
  color: var(--yellow);
}

.key-date-item {
  border-left: 3px solid var(--yellow);
  padding-left: 1rem;
  margin-bottom: 1.1rem;
}

.key-date-date {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 0.2rem;
}

.key-date-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
  margin: 0 0 0.25rem;
  letter-spacing: -0.01em;
}

.key-date-body {
  font-family: 'Space Mono', monospace;
  font-size: 0.87rem;
  color: rgba(255,255,255,0.78);
  margin: 0;
  line-height: 1.55;
}

.key-date-note {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px dashed rgba(255,255,255,0.2);
  font-family: 'Space Mono', monospace;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.55;
}

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

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

.footer-tagline {
  font-family: 'Space Grotesk', sans-serif;
  font-style: normal;
  font-weight: 700;
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: #fff;
  margin: 0 0 1.25rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  text-transform: uppercase;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

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

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

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

.footer-version { color: rgba(255,255,255,0.4); }

/* ---------- 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.55rem, 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-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: var(--accent-soft);
  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.05rem; }
  .brand-sub { font-size: 0.6rem; padding: 0.1rem 0.45rem; }
  .btn-primary, .btn-ghost { padding: 0.45rem 0.75rem; font-size: 0.7rem; }
  .main-content { padding: 1.75rem 1rem 3rem; }
  .item {
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto;
    gap: 0.55rem 0.75rem;
    padding: 0.85rem 0.95rem;
  }
  .item-no {
    grid-row: 1;
    grid-column: 2;
    margin-top: 0;
  }
  .item-text {
    grid-column: 2 / 4;
    grid-row: 2;
  }
  .item input[type="checkbox"] {
    grid-row: 1 / 3;
    align-self: center;
  }
  .item-tag {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
  }
  .key-dates { padding: 1.75rem 1.5rem 1.25rem; }
}

/* ---------- Print ---------- */
@media print {
  body { background: #fff; }
  .site-header, .site-footer, .header-actions, .lead-modal { display: none !important; }
  .main-content { padding: 1rem; }
  .total-progress, .item, .hero-principle, .key-dates, .section-progress-pill {
    box-shadow: none !important;
    border: 1px solid #000 !important;
  }
  .item.checked { background: #ffe5d9 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .key-dates { background: #fff !important; color: #000 !important; }
  .key-dates h2 { color: #000 !important; }
  .key-date-title { color: #000 !important; }
  .key-date-body, .key-date-note { color: #555 !important; }
}
