/* LondonPlumberAI – dark professional theme, mobile-first */

:root {
  --bg: #0f1419;
  --bg-alt: #1a1f26;
  --surface: #1e262e;
  --surface-hover: #252d36;
  --border: #2d3748;
  --text: #e6e6e6;
  --text-heading: #ffffff;
  --accent: #0d9488;
  --accent-hover: #0f766e;
  --error: #dc2626;
  --success: #16a34a;
  --max-width: 1200px;
  --radius: 8px;
  --font: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.container-narrow {
  max-width: 42rem;
}

.legal-section h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-heading);
  margin: 2rem 0 0.75rem;
}

.legal-section h2:first-of-type {
  margin-top: 1rem;
}

.legal-section p,
.legal-section ul {
  margin: 0 0 1rem;
  color: var(--text);
}

.legal-section ul {
  padding-left: 1.5rem;
}

.legal-section li {
  margin-bottom: 0.5rem;
}

.legal-updated {
  font-size: 0.9rem;
  color: var(--border);
  margin-bottom: 2rem;
}

.legal-section a {
  color: var(--accent);
  text-decoration: none;
}

.legal-section a:hover {
  text-decoration: underline;
}

/* Header */
.site-header {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-heading);
  text-decoration: none;
}

.nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
}

.nav a:hover {
  color: var(--accent);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.btn-primary {
  background: var(--accent);
  color: var(--text-heading);
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text-heading);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--surface-hover);
}

/* Hero */
.hero {
  padding: 4rem 0;
  background: var(--bg-alt);
}

.hero-headline {
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: 700;
  color: var(--text-heading);
  margin: 0 0 1rem;
  line-height: 1.2;
}

.hero-sub {
  font-size: 1.125rem;
  margin: 0 0 1.5rem;
  max-width: 42ch;
}

/* Sections */
.section {
  padding: 3rem 0;
}

.section-title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  color: var(--text-heading);
  margin: 0 0 0.5rem;
}

.section-sub {
  margin: 0 0 2rem;
  color: var(--text);
}

/* Calculator */
.calculator-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 32rem;
}

.calculator-inputs {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.calculator-inputs label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.calculator-inputs input {
  width: 100%;
  max-width: 12rem;
  padding: 0.6rem 0.75rem;
  font-family: var(--font);
  font-size: 1rem;
  color: var(--text-heading);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.calculator-inputs input:focus {
  outline: none;
  border-color: var(--accent);
}

.calculator-results {
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.result-line {
  margin: 0.25rem 0;
  font-size: 1.125rem;
}

.result-line strong {
  color: var(--accent);
  font-size: 1.25rem;
}

/* Pain section */
.pain-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.pain-stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.pain-stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.pain-stat-desc {
  margin: 0;
  color: var(--text);
}

/* Compare table */
.compare-section {
  overflow: hidden;
}

.compare-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -1.25rem;
  padding: 0 1.25rem;
}

.compare-table {
  width: 100%;
  min-width: 36rem;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.compare-table th,
.compare-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border: 1px solid var(--border);
}

.compare-table th {
  background: var(--surface);
  color: var(--text-heading);
  font-weight: 600;
}

.compare-table td {
  background: var(--bg);
  color: var(--text);
}

.compare-table tbody tr:nth-child(even) td {
  background: var(--bg-alt);
}

.compare-table .tick {
  color: var(--success);
  font-weight: 600;
}

.compare-table .cross {
  color: var(--text);
  opacity: 0.7;
}

/* Demo section */
.demo-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 32rem;
}

.demo-number {
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
}

.demo-number strong {
  color: var(--text-heading);
}

.demo-badge {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  margin-left: 0.5rem;
}

.demo-cta {
  margin: 0 0 1rem;
  color: var(--text);
}

.demo-audio {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text);
}

.demo-audio em {
  color: var(--border);
}

/* Footer links */
.footer-links {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
}

.footer-links a {
  color: var(--accent);
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* How it works */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--accent);
  color: var(--text-heading);
  font-weight: 700;
  border-radius: 50%;
  margin-bottom: 1rem;
}

.step-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-heading);
  margin: 0 0 0.5rem;
}

.step-desc {
  margin: 0;
  color: var(--text);
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 44rem;
  margin: 0 auto;
}

.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  position: relative;
}

.pricing-card-featured {
  border-color: var(--accent);
}

.badge {
  position: absolute;
  top: -0.75rem;
  left: 1rem;
  background: var(--accent);
  color: var(--text-heading);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
}

.plan-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-heading);
  margin: 0 0 0.5rem;
}

.plan-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-heading);
  margin: 0 0 1.5rem;
}

.plan-price .currency {
  font-size: 1.25rem;
}

.plan-price .period {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.plan-features li {
  padding: 0.35rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.plan-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.pricing-card .btn {
  width: 100%;
  text-align: center;
}

/* Contact form */
.contact-form {
  max-width: 28rem;
  display: grid;
  gap: 1rem;
}

.contact-form label {
  font-weight: 500;
  display: block;
  margin-bottom: 0.25rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  font-family: var(--font);
  font-size: 1rem;
  color: var(--text-heading);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.contact-form textarea {
  resize: vertical;
  min-height: 100px;
}

.contact-form .hidden {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.form-message {
  max-width: 28rem;
  padding: 1rem;
  border-radius: var(--radius);
  margin-top: 1rem;
}

.form-success {
  background: rgba(22, 163, 74, 0.15);
  color: var(--success);
  border: 1px solid var(--success);
}

.form-error {
  background: rgba(220, 38, 38, 0.15);
  color: var(--error);
  border: 1px solid var(--error);
}

/* Footer */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  margin-top: 2rem;
}

.site-footer p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text);
}

/* Responsive: tablet and up */
@media (min-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }

  .hero {
    padding: 5rem 0;
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .pain-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .calculator-inputs {
    grid-template-columns: auto 1fr;
    align-items: center;
  }

  .calculator-inputs label {
    margin-bottom: 0;
  }
}

@media (min-width: 1024px) {
  .section {
    padding: 4rem 0;
  }
}
