/* ============================================================
   consult.lil.business — Nothing Design System
   Tokens match lil.business DESIGN-SYSTEM.md exactly.
   No shadows. No gradients. No glow. Flat surfaces only.
   ============================================================ */

/* === Google Fonts Import === */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Space+Mono:wght@400;700&display=swap');

/* === Design Tokens === */
:root {
  --black:      #0a0a0a;
  --dark:       #111111;
  --card:       #111111;
  --border:     #1a1a1a;
  --border-mid: #2a2a2a;
  --text:       #e8e8e8;
  --text-dim:   #888888;
  --red:        #D71921;
  --red-dim:    rgba(215, 25, 33, 0.15);
  --white:      #ffffff;
  --mono:       'Space Mono', monospace;
  --sans:       'Space Grotesk', sans-serif;
  --green:      #4A9E5C;
  --error:      #D71921;
}

/* === Reset === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* === Base === */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  background: var(--black);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

::selection {
  background: var(--red);
  color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--sans);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
}

/* === Navigation === */
.nav {
  background: var(--black);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.nav-brand-img {
  height: 28px;
  width: auto;
  display: block;
}

.nav-brand-text {
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links a {
  font-size: 0.875rem;
  font-family: var(--sans);
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.15s;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links .nav-cta {
  background: var(--red);
  color: var(--white);
  padding: 0.4rem 1rem;
  border-radius: 2px;
  font-weight: 600;
  font-size: 0.85rem;
  transition: background 0.15s;
}

.nav-links .nav-cta:hover {
  background: #b8151b;
  color: var(--white);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
}

/* === Hero === */
.page-hero {
  background: var(--black);
  border-bottom: 1px solid var(--border);
  padding: 4rem 1.5rem 3rem;
  text-align: center;
}

.hero-inner {
  max-width: 640px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  border: 1px solid var(--border-mid);
  padding: 0.35rem 0.8rem;
  border-radius: 2px;
  margin-bottom: 1.5rem;
}

.hero-badge svg {
  stroke: var(--text-dim);
  flex-shrink: 0;
}

.hero-title {
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero-title span {
  color: var(--red);
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-dim);
  line-height: 1.7;
  max-width: 520px;
  margin: 0 auto 0.5rem;
}

.hero-sub-note {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.6;
  max-width: 520px;
  margin: 0 auto;
}

/* === Services Section === */
.services-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 1.5rem 2rem;
}

.services-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color 0.15s;
}

.service-card:hover {
  border-color: var(--border-mid);
}

.service-card--wide {
  grid-column: 1 / -1;
}

.service-icon {
  color: var(--text-dim);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-mid);
  border-radius: 2px;
}

.service-icon svg {
  stroke: var(--text-dim);
}

.service-price {
  font-family: var(--mono);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.02em;
}

.service-price--free {
  color: var(--green);
}

.service-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
}

.service-desc {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.65;
  flex: 1;
}

.service-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.service-list li {
  font-size: 0.85rem;
  color: var(--text-dim);
  padding-left: 1.25rem;
  position: relative;
}

.service-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 5px;
  height: 1px;
  background: var(--border-mid);
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  border-radius: 2px;
  font-weight: 600;
  font-size: 0.9rem;
  font-family: var(--sans);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  border: 1px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

.btn-primary:hover:not(:disabled) {
  background: #b8151b;
  border-color: #b8151b;
  color: var(--white);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border-mid);
}

.btn-secondary:hover {
  border-color: var(--text-dim);
  color: var(--white);
}

/* === Form Section === */
.form-section {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.form-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 2rem;
  position: relative;
}

/* === Trust Header === */
.trust-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.trust-header svg {
  stroke: var(--text-dim);
  flex-shrink: 0;
}

.trust-header-text {
  flex: 1;
}

.trust-header-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  font-family: var(--sans);
}

.trust-header-sub {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 0.15rem;
  font-family: var(--mono);
}

/* === Wizard Progress === */
.wizard-progress {
  display: flex;
  justify-content: center;
  margin-bottom: 1.75rem;
}

.wizard-step-indicator {
  display: flex;
  align-items: center;
}

.wizard-dot {
  width: 28px;
  height: 28px;
  border-radius: 2px;
  border: 1px solid var(--border-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--mono);
  color: var(--text-dim);
  background: var(--black);
  flex-shrink: 0;
}

.wizard-dot.active {
  border-color: var(--red);
  color: var(--red);
}

.wizard-dot.completed {
  border-color: var(--green);
  background: var(--green);
  color: var(--black);
  font-size: 0.6rem;
  letter-spacing: -0.05em;
}

.wizard-line {
  width: 48px;
  height: 1px;
  background: var(--border-mid);
  flex-shrink: 0;
}

.wizard-line.completed {
  background: var(--green);
}

/* === Lead Form === */
.lead-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-step {
  display: none;
  flex-direction: column;
  gap: 1rem;
}

.form-step.active {
  display: flex;
}

.step-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.step-description {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-top: -0.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group label {
  font-size: 0.78rem;
  font-weight: 500;
  font-family: var(--sans);
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.label-optional {
  font-size: 0.7rem;
  color: var(--text-dim);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

.required {
  color: var(--red);
  margin-left: 1px;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--border-mid);
  border-radius: 2px;
  background: var(--black);
  color: var(--text);
  font-size: 0.9rem;
  font-family: var(--sans);
  outline: none;
  width: 100%;
  transition: border-color 0.15s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--red);
}

.form-group input.invalid,
.form-group select.invalid,
.form-group textarea.invalid {
  border-color: var(--red);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-dim);
  opacity: 0.6;
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888888' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  background-color: var(--black);
}

.form-group select option {
  background: var(--dark);
  color: var(--text);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.error {
  font-size: 0.78rem;
  color: var(--red);
  font-weight: 500;
  font-family: var(--mono);
  min-height: 1.1em;
}

/* === Checkbox and Radio Groups === */
.checkbox-group,
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.checkbox-group-label,
.radio-group-label {
  font-size: 0.78rem;
  font-weight: 500;
  font-family: var(--sans);
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
}

.radio-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.checkbox-item,
.radio-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  min-height: 40px;
  border: 1px solid var(--border-mid);
  border-radius: 2px;
  cursor: pointer;
  transition: border-color 0.15s;
  font-size: 0.82rem;
  color: var(--text-dim);
}

.checkbox-item:hover,
.radio-item:hover {
  border-color: var(--text-dim);
}

.checkbox-item.checked,
.radio-item.checked {
  border-color: var(--red);
  color: var(--text);
}

.checkbox-item input[type="checkbox"],
.radio-item input[type="radio"] {
  appearance: none;
  width: 14px;
  height: 14px;
  border: 1px solid var(--border-mid);
  border-radius: 2px;
  background: var(--black);
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  padding: 0;
  transition: background 0.15s, border-color 0.15s;
}

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

.checkbox-item input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 1px;
  width: 5px;
  height: 8px;
  border: 1.5px solid var(--white);
  border-top: none;
  border-left: none;
  transform: rotate(40deg);
}

.radio-item input[type="radio"] {
  border-radius: 2px;
}

.radio-item input[type="radio"]:checked {
  border-color: var(--red);
}

.radio-item input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--red);
}

/* === Wizard Nav === */
.wizard-nav {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.btn-back {
  flex: 0 0 auto;
  padding: 0.65rem 1.2rem;
  font-size: 0.9rem;
  font-family: var(--sans);
  font-weight: 500;
  background: transparent;
  border: 1px solid var(--border-mid);
  color: var(--text-dim);
  border-radius: 2px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.btn-back:hover {
  border-color: var(--text-dim);
  color: var(--text);
}

.wizard-nav .btn-primary {
  flex: 1;
}

/* === Honeypot === */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
  pointer-events: none;
}

/* === Disclaimer === */
.disclaimer {
  margin-top: 1rem;
  padding: 0.9rem 1.1rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 2px;
  text-align: center;
}

.disclaimer-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-family: var(--mono);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  margin-bottom: 0.4rem;
}

.disclaimer-title svg {
  stroke: var(--text-dim);
  flex-shrink: 0;
}

.disclaimer p {
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.5;
}

/* === Success State === */
.success {
  text-align: center;
  padding: 3rem 2rem;
}

.success[hidden] {
  display: none;
}

.success-icon {
  width: 48px;
  height: 48px;
  border: 1px solid var(--border-mid);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.success-icon svg {
  stroke: var(--green);
}

.success h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.success p {
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.65;
  max-width: 420px;
  margin: 0 auto 0.75rem;
}

/* === Section Title === */
.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  text-align: center;
  color: var(--white);
  margin-bottom: 2.5rem;
  letter-spacing: -0.02em;
}

/* === FAQ Section === */
.faq-section {
  background: var(--dark);
  border-top: 1px solid var(--border);
  padding: 5rem 1.5rem;
}

.faq-inner {
  max-width: 800px;
  margin: 0 auto;
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.faq-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.25rem;
  background: var(--black);
  border: 1px solid var(--border);
  border-radius: 2px;
}

.faq-q {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.4;
  font-family: var(--sans);
}

.faq-a {
  font-size: 0.875rem;
  color: var(--text-dim);
  line-height: 1.7;
}

/* === Footer === */
.footer {
  background: var(--black);
  border-top: 1px solid var(--border);
  padding: 2.5rem 1.5rem;
  text-align: center;
  display: flex;
  justify-content: center;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.footer-brand {
  font-family: var(--mono);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0.02em;
  margin-bottom: 0.25rem;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-sep {
  color: var(--border-mid);
}

.footer-copy {
  color: var(--text-dim);
  font-family: var(--mono);
  font-size: 0.75rem;
  margin-top: 0.1rem;
}

.footer p {
  margin-bottom: 0.35rem;
}

.footer a {
  color: var(--text-dim);
  transition: color 0.15s;
}

.footer a:hover {
  color: var(--text);
}

/* === Chrome autofill fix === */
input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0px 1000px var(--black) inset !important;
  -webkit-text-fill-color: var(--text) !important;
}

/* === Reduced motion === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* === Forced colors (high-contrast) === */
@media (forced-colors: active) {
  .service-card,
  .form-card {
    border: 1px solid ButtonText;
  }
}

/* === Print === */
@media print {
  body {
    background: white !important;
    color: black !important;
  }
  .nav, .footer { display: none; }
}

/* === Responsive === */
@media (max-width: 900px) {
  .faq-grid {
    grid-template-columns: 1fr;
  }
  .service-card--wide {
    grid-column: auto;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: var(--black);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1rem 1.5rem;
    gap: 1rem;
    z-index: 99;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-toggle {
    display: flex;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .checkbox-grid {
    grid-template-columns: 1fr;
  }
  .radio-options {
    flex-direction: column;
  }
  .wizard-line {
    width: 28px;
  }
}

@media (max-width: 520px) {
  .page-hero {
    padding: 3rem 1rem 2rem;
  }
  .services-section {
    padding: 2.5rem 1rem 1.5rem;
  }
  .form-card {
    padding: 1.5rem 1rem;
  }
  .form-section {
    padding: 1.5rem 1rem 3rem;
  }
  .faq-section {
    padding: 3rem 1rem;
  }
}
