@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ── Design Tokens ─────────────────────────────────────── */
:root {
  --primary: #0066CC;
  --primary-dark: #004C99;
  --primary-glow: rgba(0, 102, 204, 0.35);
  --secondary: #00B894;
  --secondary-glow: rgba(0, 184, 148, 0.3);
  --warning: #FDCB6E;
  --danger: #E17055;
  --grey-50: #F8F9FA;
  --grey-100: #F1F3F5;
  --grey-200: #DFE6E9;
  --grey-300: #B2BEC3;
  --grey-800: #2D3436;
  --white: #FFFFFF;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--grey-800);
  background: var(--grey-50);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

/* ── Layout ────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Navigation ────────────────────────────────────────── */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--white);
  border-bottom: 1px solid var(--grey-200);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--grey-800);
  text-decoration: none;
}

.nav-logo:hover { text-decoration: none; }

.nav-logo svg {
  width: 28px;
  height: 28px;
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--grey-800);
  transition: color 0.15s;
}

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

/* ── Buttons ───────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #0077E6 0%, #0055AA 100%);
  border: none;
  border-radius: 14px;
  padding: 18px 36px;
  color: white;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 102, 204, 0.35),
              inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: all 0.2s ease;
  font-family: inherit;
  text-decoration: none;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 102, 204, 0.45),
              inset 0 1px 0 rgba(255, 255, 255, 0.25);
  text-decoration: none;
  color: white;
}
.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 102, 204, 0.3);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--white);
  border: 2px solid var(--primary);
  border-radius: 14px;
  padding: 16px 34px;
  color: var(--primary);
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.2s ease;
  font-family: inherit;
  text-decoration: none;
}
.btn-secondary:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
  text-decoration: none;
}

/* ── Pill Select ───────────────────────────────────────── */
.pill-select {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  height: 56px;
  padding: 12px 20px;
  border-radius: 14px;
  border: 2px solid var(--grey-200);
  background: var(--white);
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: all 0.15s ease;
  user-select: none;
  font-family: inherit;
  color: var(--grey-800);
}
.pill-select:hover { border-color: var(--primary); }
.pill-select.selected {
  background: linear-gradient(135deg, #0077E6 0%, #0055AA 100%);
  border-color: transparent;
  color: white;
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ── Icon Card ─────────────────────────────────────────── */
.icon-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 16px;
  border-radius: 16px;
  border: 2px solid var(--grey-200);
  background: var(--white);
  cursor: pointer;
  min-width: 100px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: all 0.15s ease;
  user-select: none;
}
.icon-card:hover { border-color: var(--primary); }
.icon-card.selected {
  border-color: var(--primary);
  background: rgba(0, 102, 204, 0.06);
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.2);
}
.icon-card .icon { font-size: 2rem; }
.icon-card .label { font-size: 0.85rem; font-weight: 500; }

.icon-card-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ── Hero Card ─────────────────────────────────────────── */
.hero-card {
  width: 100%;
  max-width: 420px;
  padding: 48px 36px;
  background: var(--white);
  border-radius: 20px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08),
              inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: all 0.25s ease;
  text-decoration: none;
  color: var(--grey-800);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.hero-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  text-decoration: none;
  color: var(--grey-800);
}
.hero-card .hero-icon { font-size: 3rem; }
.hero-card h2 {
  font-size: 1.4rem;
  font-weight: 700;
}
.hero-card p {
  font-size: 0.95rem;
  color: #636e72;
  line-height: 1.5;
}

/* ── Landing Page ──────────────────────────────────────── */
.landing-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 60px 20px 40px;
}

.landing-hero h1 {
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}

.landing-hero .subtitle {
  font-size: 1.15rem;
  color: #636e72;
  max-width: 520px;
  margin-bottom: 48px;
}

.hero-cards {
  display: flex;
  gap: 28px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.trust-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--grey-300);
  padding: 20px 0;
}

.trust-bar span {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ── Footer ────────────────────────────────────────────── */
.footer {
  text-align: center;
  padding: 32px 20px;
  font-size: 0.85rem;
  color: var(--grey-300);
  border-top: 1px solid var(--grey-200);
  margin-top: 60px;
}

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

/* ── Location Bar ──────────────────────────────────────── */
.location-bar {
  background: var(--white);
  border: 2px solid var(--grey-200);
  border-radius: 16px;
  padding: 20px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.location-bar .location-msg {
  font-weight: 600;
  font-size: 1rem;
  flex: 1;
  min-width: 200px;
}

.location-bar .location-sub {
  width: 100%;
  font-size: 0.9rem;
  color: #636e72;
  margin-top: -4px;
}

.location-bar .btn-sm {
  padding: 10px 20px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
}

.btn-confirm {
  background: var(--secondary);
  color: white;
}
.btn-confirm:hover { opacity: 0.9; }

.btn-change {
  background: var(--grey-100);
  color: var(--grey-800);
}
.btn-change:hover { background: var(--grey-200); }

/* ── Tabs ──────────────────────────────────────────────── */
.tab-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 14px;
  border: 2px solid var(--grey-200);
  background: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
  font-family: inherit;
  color: var(--grey-800);
}
.tab-btn:hover { border-color: var(--primary); }
.tab-btn.active {
  background: linear-gradient(135deg, #0077E6 0%, #0055AA 100%);
  border-color: transparent;
  color: white;
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── Form Sections ─────────────────────────────────────── */
.form-section {
  margin-bottom: 28px;
}

.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.form-note {
  font-size: 0.85rem;
  color: #636e72;
  margin-top: 6px;
}

.form-hint {
  font-size: 0.85rem;
  color: var(--grey-300);
  margin-top: 8px;
}

/* ── Number Inputs ─────────────────────────────────────── */
.number-input {
  width: 120px;
  height: 56px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 2px solid var(--grey-200);
  background: var(--white);
  font-size: 1.1rem;
  font-weight: 500;
  font-family: inherit;
  text-align: center;
  transition: border-color 0.15s;
  color: var(--grey-800);
}
.number-input:focus {
  outline: none;
  border-color: var(--primary);
}

.number-field {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.number-field .field-label {
  min-width: 100px;
  font-weight: 500;
  font-size: 0.95rem;
}

.number-field .field-unit {
  font-size: 0.85rem;
  color: var(--grey-300);
}

/* ── Upload Zone ───────────────────────────────────────── */
.upload-zone {
  border: 2px dashed var(--grey-200);
  border-radius: 20px;
  padding: 48px 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  background: var(--white);
  margin-bottom: 24px;
}
.upload-zone:hover,
.upload-zone.dragover {
  border-color: var(--primary);
  background: rgba(0, 102, 204, 0.03);
}
.upload-zone .upload-icon { font-size: 3rem; margin-bottom: 12px; }
.upload-zone .upload-text { font-weight: 600; font-size: 1.05rem; }
.upload-zone .upload-hint { font-size: 0.85rem; color: var(--grey-300); margin-top: 6px; }
.upload-zone .upload-preview { margin-top: 16px; }
.upload-zone .upload-preview img {
  max-height: 200px;
  border-radius: 12px;
  margin: 0 auto;
}
.upload-zone .file-name {
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 500;
  margin-top: 8px;
}

.upload-zone input[type="file"] { display: none; }

/* ── City Chips ────────────────────────────────────────── */
.city-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ── Privacy Note ──────────────────────────────────────── */
.privacy-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--grey-300);
  margin-top: 16px;
}

/* ── Loading ───────────────────────────────────────────── */
.loading-screen {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  text-align: center;
}
.loading-screen.active { display: flex; }

.loading-droplet {
  width: 80px;
  height: 80px;
  margin-bottom: 32px;
  position: relative;
}

.loading-droplet .drop {
  font-size: 4rem;
  animation: dropPulse 1.5s ease-in-out infinite;
}

@keyframes dropPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.7; }
}

.ripple {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 12px;
  border-radius: 50%;
  background: rgba(0, 102, 204, 0.15);
  animation: rippleExpand 1.5s ease-out infinite;
}

@keyframes rippleExpand {
  0% { transform: translateX(-50%) scale(0.6); opacity: 0.6; }
  100% { transform: translateX(-50%) scale(1.8); opacity: 0; }
}

.loading-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 28px;
}

.loading-steps {
  list-style: none;
  text-align: left;
}

.loading-steps li {
  font-size: 1rem;
  padding: 8px 0;
  color: var(--grey-300);
  transition: color 0.3s;
  display: flex;
  align-items: center;
  gap: 10px;
}

.loading-steps li.done {
  color: var(--secondary);
}

.loading-steps li .step-icon {
  width: 22px;
  text-align: center;
}

/* ── Results ───────────────────────────────────────────── */
.results-screen {
  display: none;
  padding: 20px 0 60px;
}
.results-screen.active { display: block; }

.results-header {
  text-align: center;
  margin-bottom: 36px;
  font-size: 0.9rem;
  color: #636e72;
}

/* Score Gauge */
.score-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 48px;
}

.score-gauge {
  position: relative;
  width: 200px;
  height: 200px;
  margin-bottom: 20px;
}

.score-gauge svg {
  width: 200px;
  height: 200px;
  transform: rotate(-90deg);
}

.score-gauge .gauge-bg {
  fill: none;
  stroke: var(--grey-200);
  stroke-width: 12;
}

.score-gauge .gauge-fill {
  fill: none;
  stroke-width: 12;
  stroke-linecap: round;
  transition: stroke-dashoffset 1.5s ease, stroke 0.5s;
}

.score-value {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.score-value .number {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
}

.score-value .out-of {
  font-size: 0.9rem;
  color: var(--grey-300);
}

.score-label {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.score-summary {
  font-size: 1rem;
  color: #636e72;
  max-width: 500px;
  text-align: center;
}

/* Parameter Cards */
.section-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.param-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 48px;
}

.param-card {
  background: var(--white);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.param-card .param-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.param-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}
.param-dot.good { background: var(--secondary); }
.param-dot.caution { background: var(--warning); }
.param-dot.action { background: var(--danger); }
.param-dot.not-tested { background: var(--grey-300); }
.param-dot.estimated_good { background: var(--secondary); opacity: 0.6; }
.param-dot.estimated_caution { background: var(--warning); opacity: 0.6; }
.param-dot.estimated_action { background: var(--danger); opacity: 0.6; }

.param-name {
  font-weight: 600;
  font-size: 1rem;
}

.param-value {
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 600;
  margin-left: auto;
}

.param-label {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.param-explanation {
  font-size: 0.85rem;
  color: #636e72;
  line-height: 1.5;
}

.param-estimated {
  font-size: 0.75rem;
  color: var(--grey-300);
  font-style: italic;
  margin-top: 4px;
}

/* Treatment / Recommendations */
.recommendations {
  background: var(--white);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  margin-bottom: 48px;
}

.rec-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--grey-100);
}
.rec-item:last-child { border-bottom: none; }

.rec-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.rec-urgency {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 10px;
  border-radius: 8px;
  margin-left: 8px;
}
.rec-urgency.critical { background: #fde8e4; color: var(--danger); }
.rec-urgency.recommended { background: #fef3d6; color: #e67e22; }
.rec-urgency.optional { background: #e8f5e9; color: var(--secondary); }

.rec-category { font-weight: 600; }
.rec-reason { font-size: 0.9rem; color: #636e72; margin-top: 4px; }
.rec-sizing { font-size: 0.85rem; color: var(--primary); margin-top: 4px; font-weight: 500; }

/* Email Gate */
.email-gate {
  background: var(--white);
  border: 2px solid var(--grey-200);
  border-radius: 20px;
  padding: 40px 32px;
  text-align: center;
  max-width: 520px;
  margin: 0 auto 48px;
}

.email-gate .gate-icon { font-size: 2rem; margin-bottom: 12px; }
.email-gate h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.email-gate .gate-benefits {
  list-style: none;
  text-align: left;
  margin: 16px 0 24px;
}
.email-gate .gate-benefits li {
  padding: 4px 0;
  font-size: 0.95rem;
}

.email-gate input {
  width: 100%;
  height: 56px;
  padding: 12px 20px;
  border-radius: 14px;
  border: 2px solid var(--grey-200);
  font-size: 1rem;
  font-family: inherit;
  margin-bottom: 12px;
  transition: border-color 0.15s;
}
.email-gate input:focus {
  outline: none;
  border-color: var(--primary);
}

.email-gate .gate-privacy {
  font-size: 0.8rem;
  color: var(--grey-300);
  margin-top: 12px;
}

/* Product Cards */
.products-section {
  display: none;
  margin-bottom: 48px;
}
.products-section.visible,
.products-section.unlocked { display: block; }

.product-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.product-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

.product-card .product-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--grey-100);
}

.product-card .product-body {
  padding: 24px;
}

.product-card .product-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.product-card .product-tagline {
  font-size: 0.9rem;
  color: #636e72;
  margin-bottom: 16px;
}

.product-card .product-features {
  list-style: none;
  margin-bottom: 20px;
}

.product-card .product-features li {
  font-size: 0.85rem;
  padding: 3px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.product-card .product-features li::before {
  content: '✓';
  color: var(--secondary);
  font-weight: 700;
}

.product-card .product-sizing {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 16px;
  padding: 10px 14px;
  background: rgba(0, 102, 204, 0.05);
  border-radius: 10px;
}

.product-card .product-actions {
  display: flex;
  gap: 10px;
}

.product-card .btn-detail,
.product-card .btn-quote {
  flex: 1;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  border: none;
  font-family: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.product-card .btn-detail {
  background: var(--grey-100);
  color: var(--grey-800);
}
.product-card .btn-detail:hover {
  background: var(--grey-200);
  text-decoration: none;
}

.product-card .btn-quote {
  background: linear-gradient(135deg, #0077E6 0%, #0055AA 100%);
  color: white;
}
.product-card .btn-quote:hover {
  opacity: 0.9;
  text-decoration: none;
}

/* Service Area */
.service-section {
  margin-bottom: 48px;
}

.service-card {
  background: var(--white);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.service-card.featured {
  border: 2px solid var(--primary);
}

.service-card .service-name { font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; }
.service-card .service-office { font-size: 0.9rem; color: #636e72; margin-bottom: 16px; }
.service-card .service-phone {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
}

/* Share */
.share-section {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.share-btn {
  padding: 12px 24px;
  border-radius: 12px;
  border: 2px solid var(--grey-200);
  background: var(--white);
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.share-btn:hover { border-color: var(--primary); color: var(--primary); }

/* ── Estimate Disclaimer ───────────────────────────────── */
.estimate-banner {
  background: #fef3d6;
  border: 1px solid var(--warning);
  border-radius: 14px;
  padding: 16px 20px;
  font-size: 0.9rem;
  margin-bottom: 28px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

/* ── Analyze Page Layout ───────────────────────────────── */
.analyze-container {
  max-width: 680px;
  margin: 0 auto;
  padding: 32px 20px 80px;
}

.analyze-title {
  font-size: 1.6rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
}

.analyze-subtitle {
  text-align: center;
  color: #636e72;
  margin-bottom: 32px;
}

/* ── Estimate Sequential Steps ─────────────────────────── */
.estimate-steps {
  position: relative;
}

.estimate-step {
  opacity: 0;
  transform: translateY(24px);
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.45s ease, transform 0.45s ease, max-height 0.45s ease, margin 0.45s ease;
  margin-bottom: 0;
}

.estimate-step.active {
  opacity: 1;
  transform: translateY(0);
  max-height: 500px;
  overflow: visible;
  margin-bottom: 24px;
}

.estimate-step.answered {
  opacity: 1;
  transform: translateY(0) scale(0.97);
  max-height: 500px;
  overflow: visible;
  margin-bottom: 12px;
}

.estimate-step.answered .form-section {
  opacity: 0.55;
  transition: opacity 0.3s ease;
}

.estimate-step.answered:hover .form-section {
  opacity: 0.85;
}

.estimate-step.answered .form-label::after {
  content: ' ✓';
  color: var(--secondary);
  font-size: 0.85em;
}

/* Step progress indicator */
.estimate-steps::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background: var(--grey-200);
  border-radius: 2px;
}

.estimate-steps {
  padding-left: 20px;
  position: relative;
}

/* ── Mobile ────────────────────────────────────────────── */
@media (max-width: 600px) {
  .landing-hero h1 { font-size: 1.8rem; }
  .hero-card { padding: 36px 24px; max-width: 100%; }
  .hero-cards { gap: 16px; }
  .nav-links { gap: 16px; }
  .btn-primary { padding: 16px 28px; font-size: 1rem; }
  .btn-secondary { padding: 14px 28px; font-size: 1rem; }
  .tab-bar { gap: 6px; }
  .tab-btn { padding: 12px 16px; font-size: 0.85rem; }
  .param-cards { grid-template-columns: 1fr; }
  .product-cards { grid-template-columns: 1fr; }
  .email-gate { padding: 28px 20px; }
  .analyze-container { padding: 20px 16px 60px; }
  .number-field { flex-wrap: wrap; }
  .icon-card { min-width: 80px; padding: 16px 12px; }
}
