/* LondonPlumberAI – dark professional theme, mobile-first */

:root {
  /* Brand tokens (mirror logo system) */
  --brand-navy: #0a1b32;
  --brand-teal: #4cc0c8;
  --brand-teal-deep: #2dabb3;
  --brand-ink: #0c121c;
  --brand-soft: #ebeff5;
  --brand-white: #ffffff;
  /* Surface mapping */
  --bg: #08111e;
  --bg-alt: #0a1b32;      /* matches logo lockup navy */
  --surface: #112338;
  --surface-hover: #16304a;
  --border: #1e3556;
  --text: #cdd5e0;
  --text-heading: #ffffff;
  --accent: #4cc0c8;       /* aligned with logo teal */
  --accent-hover: #2dabb3;
  --error: #ef4444;
  --success: #34d399;
  --max-width: 1200px;
  --radius: 10px;
  --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 {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}
.logo img {
  height: 40px;
  width: auto;
  display: block;
}
@media (max-width: 480px) {
  .logo img { height: 32px; }
}

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

/* Trust signals */
.trust-signals {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-top: 2rem;
  padding: 1rem;
  font-size: 0.85rem;
  color: var(--text);
  opacity: 0.8;
}

.trust-item {
  white-space: nowrap;
}

.trust-divider {
  color: var(--border);
}

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

  .pricing-grid-3 {
    grid-template-columns: repeat(3, 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;
  }
}


/* === Live indicator (24/7 proof) === */
.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  background: rgba(76, 192, 200, 0.12);
  border: 1px solid rgba(76, 192, 200, 0.4);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--brand-teal);
  margin-bottom: 1rem;
}
.live-pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-teal);
  box-shadow: 0 0 0 0 rgba(76, 192, 200, 0.7);
  animation: live-pulse 2s infinite;
}
@keyframes live-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(76, 192, 200, 0.7); }
  70%  { box-shadow: 0 0 0 10px rgba(76, 192, 200, 0); }
  100% { box-shadow: 0 0 0 0 rgba(76, 192, 200, 0); }
}

/* === Hero audio embed === */
.hero-proof {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 32rem;
}
.hero-proof-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-teal);
  margin: 0 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.hero-proof-title {
  font-size: 0.95rem;
  color: var(--text-heading);
  margin: 0 0 0.75rem;
  font-weight: 500;
}
.hero-proof audio {
  width: 100%;
  border-radius: 6px;
}

/* === Trust microline polish === */
.hero-trust {
  font-size: 0.85rem;
  color: var(--text);
  opacity: 0.85;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}
.hero-trust span { white-space: nowrap; }
.hero-trust .dot { opacity: 0.4; }


/* === Global link styling (WCAG AAA on dark surfaces) === */
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover, a:focus-visible { color: var(--accent-hover); }
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

/* Body-prose links get an underline for affordance — calmer than colored-only text */
main p a:not(.btn),
.hero-trust a,
.form-consent a,
.footer-links a,
.legal-section a {
  text-decoration: underline;
  text-decoration-color: rgba(76, 192, 200, 0.55);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.15s ease;
}
main p a:not(.btn):hover,
.hero-trust a:hover,
.form-consent a:hover,
.footer-links a:hover,
.legal-section a:hover {
  text-decoration-color: var(--accent);
}

/* Phone number link specifically — white + teal underline = calm, professional, tappable */
.demo-number a,
a[href^="tel:"]:not(.btn) {
  color: var(--text-heading);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  font-feature-settings: "tnum" 1;  /* tabular numerals — phone digits align */
  font-variant-numeric: tabular-nums;
}
.demo-number a:hover,
a[href^="tel:"]:not(.btn):hover {
  text-decoration-color: var(--accent-hover);
  color: var(--text-heading);
}

/* External-link affordance (privacy etc.) — same as prose links */
.trust-item a {
  color: inherit;  /* trust-item color stays as the muted gray of the row */
  text-decoration: underline;
  text-decoration-color: rgba(76, 192, 200, 0.4);
  text-decoration-thickness: 1px;
  text-underline-offset: 2.5px;
}
.trust-item a:hover {
  text-decoration-color: var(--accent);
  color: var(--text-heading);
}


/* === Value-stack section === */
.value-stack-section { background: var(--bg-alt); }
.value-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}
.value-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.25rem;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}
@media (max-width: 640px) {
  .value-row {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    gap: 0.75rem 1rem;
  }
  .value-row .value-cost { grid-column: 1 / -1; text-align: left; }
}
.value-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: rgba(76, 192, 200, 0.15);
  color: var(--brand-teal);
  font-size: 1.25rem;
  font-weight: 700;
  flex-shrink: 0;
}
.value-icon-keep {
  background: rgba(205, 213, 224, 0.08);
  color: var(--text);
  opacity: 0.7;
}
.value-tool {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-heading);
}
.value-desc {
  margin: 0 0 0.4rem;
  font-size: 0.92rem;
  color: var(--text);
  opacity: 0.85;
  line-height: 1.45;
}
.value-tag {
  margin: 0;
  font-size: 0.88rem;
  color: var(--brand-teal);
  font-weight: 500;
  line-height: 1.4;
}
.value-row-keep .value-tag {
  color: var(--text);
  opacity: 0.7;
}
.value-cost {
  margin: 0;
  text-align: right;
  white-space: nowrap;
}
.cost-num {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-heading);
}
.cost-period {
  font-size: 0.82rem;
  color: var(--text);
  opacity: 0.7;
}
.value-row-keep .cost-num { color: var(--text); opacity: 0.75; }

.value-summary {
  background: linear-gradient(135deg, rgba(76,192,200,0.10), rgba(76,192,200,0.04));
  border: 1px solid rgba(76,192,200,0.3);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  margin-bottom: 1.5rem;
}
.value-summary-headline {
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
  color: var(--text-heading);
  font-weight: 500;
}
.value-summary-headline strong { color: var(--brand-teal); }
.value-summary-sub {
  margin: 0;
  font-size: 1rem;
  color: var(--text);
}
.value-summary-sub strong { color: var(--text-heading); }

.value-details {
  font-size: 0.85rem;
  color: var(--text);
  opacity: 0.75;
  margin: 0 auto;
  max-width: 36rem;
}
.value-details summary {
  cursor: pointer;
  font-weight: 500;
  padding: 0.25rem 0;
  color: var(--brand-teal);
  list-style: none;
}
.value-details summary::-webkit-details-marker { display: none; }
.value-details summary::before { content: "+ "; font-weight: 700; }
.value-details[open] summary::before { content: "- "; }
.value-details p { margin: 0.5rem 0 0; line-height: 1.5; }
.value-details a { color: var(--brand-teal); }
