/* PriceSheet Pro — Experiment 001 Customer Styling
   Utilitarian, clean, mobile-first exterior cleaning software design.
   Deep teal accent (#0f766e), crisp typography, 44px+ tap targets, print-ready styles.
*/

:root {
  --primary: #0f766e;
  --primary-hover: #115e59;
  --primary-light: #ccfbf1;
  --primary-focus: rgba(15, 118, 110, 0.25);
  --accent: #f97316;
  --bg: #f8fafc;
  --card-bg: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --border-focus: #0f766e;
  --success: #16a34a;
  --warning: #d97706;
  --danger: #dc2626;
  --radius: 8px;
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.05);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-main);
  background-color: var(--bg);
  line-height: 1.5;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

/* Header & Nav */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 40;
}

.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
}

.brand-badge {
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  padding: 4px 8px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

.brand-title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.brand-title span {
  color: var(--primary);
}

.header-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}

.header-link:hover {
  color: var(--primary);
}

.header-btn {
  background: var(--primary);
  color: #fff;
  padding: 8px 14px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.15s ease;
}

.header-btn:hover {
  background: var(--primary-hover);
}

.brand-title {
  white-space: nowrap;
}

/* Header right cluster: desktop links OR compact CTA + hamburger */
.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Compact Pro CTA + hamburger: hidden on desktop, shown on narrow screens */
.header-cta-compact,
.nav-toggle {
  display: none;
}

.nav-toggle {
  width: 42px;
  height: 42px;
  padding: 10px 9px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  border-radius: 1px;
  background: var(--text-main);
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile nav panel: absolutely positioned under the header so opening the
   menu never shifts page content (no layout jump). */
.mobile-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  z-index: 45;
}

.mobile-nav.open {
  display: flex;
  flex-direction: column;
  padding: 8px 0 12px;
}

.mobile-nav-link {
  padding: 13px 20px;
  color: var(--text-main);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  border-bottom: 1px solid #f1f5f9;
}

.mobile-nav-link:last-child {
  border-bottom: none;
}

.mobile-nav-cta {
  color: var(--primary);
  font-weight: 800;
}

/* Narrow screens: brand + Pro CTA + hamburger; full nav moves into the menu */
@media (max-width: 899px) {
  .header-links {
    display: none;
  }

  .header-inner {
    padding: 12px 16px;
    gap: 10px;
  }

  /* Compact brand so logo + CTA + hamburger fit even at 320px without wrapping */
  .brand-title {
    font-size: 15px;
  }

  .brand-badge {
    font-size: 11px;
    padding: 3px 6px;
  }

  .header-cta-compact {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    padding: 8px 12px;
    font-size: 13px;
  }

  .nav-toggle {
    display: flex;
  }
}

/* Layout */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 20px 60px;
}

/* Hero Section */
.hero {
  text-align: center;
  margin-bottom: 32px;
  padding: 12px 0 8px;
}

.hero-tag {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.hero-title {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.5px;
  color: #0f172a;
  margin-bottom: 12px;
}

.hero-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 20px;
}

/* Two Column Work Area (Desktop) */
.tool-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 900px) {
  .tool-grid {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: start;
  }
}

/* Cards & Panels */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 20px;
}

.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-body {
  padding: 20px;
}

/* Wizard Steps */
.step-indicator {
  display: flex;
  background: #f1f5f9;
  border-radius: 6px;
  padding: 4px;
  margin-bottom: 20px;
}

.step-tab {
  flex: 1;
  text-align: center;
  padding: 8px 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.15s ease;
}

.step-tab.active {
  background: #ffffff;
  color: var(--primary);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  font-weight: 700;
}

.step-content {
  display: none;
}

.step-content.active {
  display: block;
}

/* Form Controls */
.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-main);
}

.tag-badge {
  font-size: 10px;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.tag-badge.user {
  background: #e0f2fe;
  color: #0369a1;
}

.tag-badge.assumption {
  background: #fef3c7;
  color: #b45309;
}

.tag-badge.calculated {
  background: #dcfce7;
  color: #15803d;
}

.form-input, .form-select {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  font-size: 15px;
  color: var(--text-main);
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 6px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.form-input:focus, .form-select:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--primary-focus);
}

.input-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.segmented-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.segmented-btn {
  height: 42px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.segmented-btn.active {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
  font-weight: 700;
}

.addon-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.addon-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  transition: border-color 0.15s;
}

.addon-card:hover {
  border-color: #cbd5e1;
}

.addon-card input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--primary);
  margin-top: 2px;
}

.addon-info {
  flex: 1;
}

.addon-header {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  font-size: 14px;
}

.addon-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.wizard-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
  gap: 12px;
}

.btn {
  height: 44px;
  padding: 0 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  text-decoration: none;
  transition: all 0.15s ease;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-secondary {
  background: #ffffff;
  border-color: var(--border);
  color: var(--text-main);
}

.btn-secondary:hover {
  background: #f1f5f9;
}

.btn-accent {
  background: var(--accent);
  color: #ffffff;
}

.btn-accent:hover {
  background: #ea580c;
}

.btn-block {
  width: 100%;
}

/* Live Results Panel */
/* NOTE: .results-card is intentionally NOT position:sticky. A sticky results
   panel previously slid the paid Pro offer beneath it (V1.3 P0-1). The live
   panel is a plain in-flow block; the Pro offer lives in a separate
   full-width section below the tool grid and can never be overlapped. */
.results-card {
  margin-bottom: 0;
}

.results-hero {
  background: linear-gradient(135deg, #0f766e 0%, #115e59 100%);
  color: #ffffff;
  padding: 24px 20px;
  border-radius: var(--radius) var(--radius) 0 0;
  text-align: center;
}

.results-hero-eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.9;
  font-weight: 600;
}

.results-hero-price {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.1;
  margin: 6px 0 4px;
  letter-spacing: -1px;
}

.results-hero-sub {
  font-size: 13px;
  opacity: 0.85;
}

.metric-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 16px 20px;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
}

.metric-box {
  padding: 10px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 6px;
}

.metric-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.metric-val {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
}

.breakdown-section {
  padding: 16px 20px;
  font-size: 13px;
}

.breakdown-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  color: var(--text-muted);
}

.breakdown-row strong {
  color: var(--text-main);
}

.breakdown-row.total {
  border-top: 1px solid var(--border);
  padding-top: 8px;
  margin-top: 4px;
  font-weight: 700;
  color: var(--text-main);
}

.formula-box {
  background: #f1f5f9;
  border-left: 3px solid var(--primary);
  padding: 10px 12px;
  border-radius: 0 4px 4px 0;
  font-size: 11px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: #334155;
  margin: 12px 20px;
  line-height: 1.4;
  word-break: break-word;
}

.warning-banner {
  margin: 12px 20px;
  padding: 10px 12px;
  background: #fef3c7;
  border: 1px solid #fde68a;
  border-radius: 6px;
  font-size: 12px;
  color: #92400e;
  line-height: 1.4;
}

/* Action Strip */
.action-strip {
  padding: 16px 20px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Pro Offer Callout — full-width section below the tool (V1.3 P0-1 fix) */
.pro-offer-section {
  max-width: 760px;
  margin: 32px auto 0;
}

.pro-offer-card {
  background: linear-gradient(to bottom, #ffffff, #f0fdfa);
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-lg);
}

.pro-offer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.pro-offer-title {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
}

.pro-price-tag {
  background: var(--primary);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 800;
  font-size: 14px;
}

.pro-benefits {
  list-style: none;
  margin: 12px 0 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
}

.pro-benefits li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pro-benefits li::before {
  content: "✓";
  color: var(--primary);
  font-weight: 800;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(2px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}

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

.modal {
  background: #ffffff;
  border-radius: 10px;
  max-width: 540px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.2);
}

.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-close {
  background: none;
  border: none;
  font-size: 20px;
  color: var(--text-muted);
  cursor: pointer;
}

.watermark-badge {
  background: #fee2e2;
  color: #991b1b;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
  padding: 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

/* Footer */
.site-footer {
  margin-top: 60px;
  border-top: 1px solid var(--border);
  background: #ffffff;
  padding: 32px 20px;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.footer-nav a {
  color: var(--text-muted);
  text-decoration: none;
}

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

/* Mini professional quote preview (customer-facing view, free & unlimited) */
.mini-quote {
  margin: 12px 20px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #ffffff;
  overflow: hidden;
}

.mini-quote-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: #f0fdfa;
  border-bottom: 1px solid var(--border);
}

.mini-quote-eyebrow {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  font-weight: 800;
  margin-bottom: 2px;
}

.mini-quote-business {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-main);
}

.mini-quote-meta {
  text-align: right;
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.5;
}

.mini-quote-lines {
  padding: 8px 14px;
}

.mini-quote-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  font-size: 13px;
  color: var(--text-main);
}

.mini-quote-line.muted {
  color: var(--text-muted);
}

.mini-quote-line.total {
  border-top: 1px solid var(--border);
  margin-top: 4px;
  padding-top: 10px;
  font-weight: 800;
  color: var(--primary);
  font-size: 15px;
}

.mini-quote-foot {
  padding: 8px 14px;
  background: #f8fafc;
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: var(--text-muted);
}

/* Free printable-quote allowance badge */
.free-quote-badge {
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  padding: 6px 10px;
  border-radius: 6px;
  background: #f1f5f9;
  color: var(--text-muted);
}

.free-quote-badge.is-pro {
  background: var(--primary-light);
  color: var(--primary);
}

.free-quote-badge.is-exhausted {
  background: #fef3c7;
  color: #92400e;
}

/* Pro offer hierarchy */
.pro-offer-eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  font-weight: 800;
  margin-bottom: 2px;
}

.pro-offer-lede {
  font-size: 14px;
  color: #334155;
  line-height: 1.6;
  margin-bottom: 16px;
}

.pro-hierarchy {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

@media (min-width: 700px) {
  .pro-hierarchy {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}

.pro-hierarchy-block h4 {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-main);
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--primary-light);
}

.pro-hierarchy-block .pro-benefits {
  font-size: 13px;
  line-height: 1.5;
  gap: 10px;
}

/* Mobile sticky bar Pro link */
.mobile-pro-link {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--primary);
  color: var(--primary);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

/* Mobile: single-column pro hierarchy already handled; tighten hero */
@media (max-width: 899px) {
  .hero-title {
    font-size: 26px;
  }
  .hero-subtitle {
    font-size: 14px;
  }
  .mini-quote-head {
    flex-direction: column;
  }
  .mini-quote-meta {
    text-align: left;
  }
}

/* Mobile sticky result bar (375px) */
.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #ffffff;
  border-top: 1px solid var(--border);
  padding: 10px 16px;
  box-shadow: 0 -4px 6px -1px rgba(0,0,0,0.05);
  z-index: 30;
}

@media (max-width: 899px) {
  .mobile-bottom-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  /* Guarantee clearance: page content (incl. the full-width Pro offer CTA)
     never sits beneath the ~64px fixed mobile bar. */
  .container {
    padding-bottom: 104px;
  }
}
