/* =========================================
   ROOFFLOW — For Contractors Page
   ========================================= */

/* ---- Hero ---- */
.ctr-hero {
  background: var(--slate);
  color: var(--white);
  padding: 5rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}

.ctr-hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -80px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(232,97,26,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.ctr-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.ctr-hero-headline {
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.25rem;
  line-height: 1.1;
}

.ctr-hero-lede {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.72);
  max-width: 50ch;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.ctr-btn-primary {
  display: inline-block;
  background: var(--terracotta);
  color: var(--white);
  padding: 0.85rem 2rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.1s ease;
}
.ctr-btn-primary:hover { background: var(--terracotta-light); transform: translateY(-1px); }

.ctr-hero-stats {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 2rem 2.5rem;
  min-width: 180px;
}

.ctr-stat-value {
  display: block;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--terracotta-light);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.ctr-stat-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.4;
}

/* ---- Value Props ---- */
.ctr-values {
  background: var(--cream);
  padding: 5rem 2rem;
}

.ctr-values-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.ctr-value-card {
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: 16px;
  padding: 2.25rem 2rem 2.5rem;
}

.ctr-value-icon {
  color: var(--terracotta);
  margin-bottom: 1.25rem;
}

.ctr-value-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.75rem;
  font-family: 'DM Sans', sans-serif;
}

.ctr-value-body {
  font-size: 0.9rem;
  color: var(--ink-light);
  line-height: 1.7;
}

/* ---- Pricing ---- */
.ctr-pricing {
  background: var(--warm-bg);
  padding: 5rem 2rem;
}

.ctr-pricing-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.ctr-pricing-header {
  margin-bottom: 3rem;
}

.ctr-pricing-headline {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--slate);
  margin-bottom: 0.75rem;
}

.ctr-pricing-subhead {
  font-size: 1rem;
  color: var(--ink-light);
}

.ctr-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.ctr-pricing-card {
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: 16px;
  padding: 2rem 2rem 2.5rem;
  position: relative;
}

.ctr-pricing-card--featured {
  border: 2px solid var(--terracotta);
}

.ctr-pricing-badge {
  display: inline-block;
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--terracotta);
  border: 1px solid var(--terracotta);
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 0.75rem;
}

.ctr-pricing-tag {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--terracotta);
  color: var(--white);
  font-size: 0.65rem;
  font-family: 'DM Mono', monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 20px;
  white-space: nowrap;
}

.ctr-pricing-tier {
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.5rem;
}

.ctr-pricing-price {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 1.25rem;
  line-height: 1;
}

.ctr-pricing-per {
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  color: var(--ink-muted);
}

.ctr-pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 1.25rem;
}

.ctr-pricing-features li {
  font-size: 0.87rem;
  color: var(--ink-light);
  padding-left: 1.25rem;
  position: relative;
}

.ctr-pricing-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--terracotta);
  font-weight: 700;
}

.ctr-pricing-note {
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  color: var(--ink-muted);
  border-top: 1px solid var(--cream-dark);
  padding-top: 0.9rem;
}

.ctr-pricing-disclaimer {
  font-size: 0.8rem;
  color: var(--ink-muted);
  font-style: italic;
}

/* ---- How It Works ---- */
.ctr-how {
  background: var(--cream);
  padding: 5rem 2rem;
}

.ctr-how-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.ctr-how-headline {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--slate);
  margin-bottom: 2.5rem;
}

.ctr-how-steps {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.ctr-how-step {
  flex: 1;
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: 16px;
  padding: 2rem;
}

.ctr-how-arrow {
  font-size: 1.5rem;
  color: var(--terracotta);
  flex-shrink: 0;
}

/* ---- Signup ---- */
.ctr-signup {
  background: var(--warm-bg);
  padding: 5rem 2rem 6rem;
  border-top: 2px solid var(--slate);
}

.ctr-signup-inner {
  max-width: 760px;
  margin: 0 auto;
}

.ctr-signup-header {
  margin-bottom: 2.5rem;
}

.ctr-signup-headline {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  color: var(--slate);
  margin-bottom: 0.75rem;
}

.ctr-signup-subhead {
  font-size: 1rem;
  color: var(--ink-light);
}

/* Form layout tweaks for contractors page */
.contractor-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-label-hint {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  color: var(--ink-muted);
  font-weight: 400;
  letter-spacing: 0;
}

.ctr-btn-submit {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
}

/* ---- Plan Selector ---- */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.875rem;
  margin-top: 0.5rem;
}

.plan-option {
  cursor: pointer;
}

.plan-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.plan-option-inner {
  border: 2px solid var(--cream-dark);
  border-radius: 12px;
  padding: 1rem 0.875rem;
  background: var(--white);
  transition: border-color 0.15s, box-shadow 0.15s;
  position: relative;
}

.plan-option input[type="radio"]:checked + .plan-option-inner {
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(232,97,26,0.12);
  background: #fffaf7;
}

.plan-popular {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--terracotta);
  margin-bottom: 0.25rem;
}

.plan-name {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--ink);
  margin-bottom: 0.2rem;
}

.plan-price {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 0.2rem;
}

.plan-price span {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--ink-muted);
}

.plan-desc {
  font-size: 0.72rem;
  color: var(--ink-muted);
  line-height: 1.4;
}

.plan-note {
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  color: var(--ink-muted);
  margin-top: 0.5rem;
  line-height: 1.5;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .ctr-hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .ctr-hero-stats { flex-direction: row; justify-content: flex-start; gap: 2rem; padding: 1.5rem 2rem; }
  .ctr-values-inner,
  .ctr-pricing-grid { grid-template-columns: 1fr; }
  .ctr-how-steps { flex-direction: column; align-items: stretch; }
  .ctr-how-arrow { display: none; }
  .plan-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .ctr-hero { padding: 3rem 1.25rem 2.5rem; }
  .ctr-values, .ctr-pricing, .ctr-how, .ctr-signup { padding: 3rem 1.25rem; }
  .contractor-form .form-row { grid-template-columns: 1fr; }
  .ctr-hero-stats { flex-direction: column; gap: 1.5rem; }
}
