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

:root {
  --brand: #2E7D32;
  --brand-dark: #1B5E20;
  --gold: #B8860B;
  --ink: #1A1A1A;
  --muted: #5F6B5F;
  --line: #E1E6DE;
  --paper: #FFFFFF;
  --mist: #F4F7F1;
  --cream: #F5F0E8;
  --blue: #1565C0;
  --shadow: 0 18px 48px rgba(25, 48, 25, 0.16);
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  line-height: 1.6;
  background: var(--paper);
}

a { text-decoration: none; color: inherit; }

.skip-link {
  position: absolute;
  top: -40px;
  left: 8px;
  z-index: 10000;
  padding: 8px 16px;
  background: var(--brand);
  color: #fff;
  border-radius: 4px;
  font-weight: 600;
}

.skip-link:focus-visible { top: 8px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 2px; }

.top-banner {
  background: var(--cream);
  text-align: center;
  padding: 8px 16px;
  font-size: 13px;
}

.top-banner a { color: var(--brand); font-weight: 600; }
.top-banner a:hover { text-decoration: underline; }

.header {
  background: rgba(27, 94, 32, 0.96);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.header-brand { color: #fff; font-size: 22px; font-weight: 700; letter-spacing: 0; }
.brand-lockup { display: flex; align-items: baseline; }
.header-sub { color: rgba(255, 255, 255, 0.74); font-size: 12px; margin-left: 8px; }
.header-nav { display: flex; gap: 12px; align-items: center; }
.header-nav a { color: #fff; font-size: 14px; opacity: 0.9; transition: opacity 0.2s, background 0.2s; }
.header-nav a:hover { opacity: 1; }
.btn-login { padding: 8px 18px; border: 1px solid rgba(255, 255, 255, 0.5); border-radius: 6px; }
.btn-signup { padding: 8px 18px; background: var(--gold); color: #fff; border-radius: 6px; font-weight: 700; }

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  min-height: 560px;
  padding: 82px 24px 64px;
  background: var(--brand-dark);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.01);
}

body[data-landing-page="owner"] .hero::before {
  background-image:
    linear-gradient(90deg, rgba(13, 45, 16, 0.92) 0%, rgba(19, 72, 24, 0.72) 44%, rgba(19, 72, 24, 0.14) 100%),
    url('hero-owner.jpg');
}

body[data-landing-page="contractor"] .hero::before {
  background-image:
    linear-gradient(90deg, rgba(13, 45, 16, 0.92) 0%, rgba(19, 72, 24, 0.72) 44%, rgba(19, 72, 24, 0.14) 100%),
    url('hero-contractor.jpg');
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 48px;
  align-items: center;
  max-width: 1120px;
  margin: 0 auto;
}

.hero-copy { max-width: 620px; }
.hero h1 { font-size: clamp(34px, 5vw, 58px); font-weight: 800; margin-bottom: 18px; line-height: 1.08; letter-spacing: 0; }
.hero p { font-size: clamp(16px, 2.2vw, 20px); opacity: 0.92; max-width: 620px; margin: 0 0 32px; }

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  background: var(--gold);
  color: #fff;
  padding: 15px 34px;
  border-radius: 8px;
  font-size: 17px;
  font-weight: 800;
  transition: transform 0.2s, box-shadow 0.2s;
}

.hero-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28); }

.hero-visual {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mockup-card {
  width: min(100%, 390px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.mockup-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  background: var(--mist);
  border-bottom: 1px solid var(--line);
}

.mockup-kicker { color: var(--brand); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.mockup-badge { background: #E8F5E9; color: var(--brand-dark); padding: 6px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.mockup-body { padding: 20px; }
.mockup-title { font-size: 22px; font-weight: 800; line-height: 1.2; margin-bottom: 6px; }
.mockup-meta { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.mockup-list { display: grid; gap: 10px; }

.mockup-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.mockup-row span:first-child { font-size: 14px; font-weight: 700; }
.mockup-row span:last-child { color: var(--brand); font-size: 13px; font-weight: 800; white-space: nowrap; }

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.trust-pill {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.94);
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 13px;
  font-weight: 700;
}

.how-it-works, .categories { padding: 64px 24px; background: #F8F9FA; }
.benefits, .privacy-section { padding: 64px 24px; }
.section-title { text-align: center; font-size: clamp(24px, 4vw, 36px); font-weight: 800; margin-bottom: 12px; line-height: 1.2; }
.section-subtitle { text-align: center; color: #6B7280; font-size: 16px; margin-bottom: 48px; }

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}

.step { text-align: center; padding: 24px; }
.step-number {
  width: 56px;
  height: 56px;
  background: var(--brand);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  margin: 0 auto 16px;
}

body[data-landing-page="contractor"] .step-number { background: var(--brand-dark); }
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { color: #6B7280; font-size: 15px; }

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}

.benefit {
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  padding: 28px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.benefit:hover { box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08); transform: translateY(-1px); }
.benefit-icon { width: 48px; height: 48px; border-radius: 8px; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.benefit-icon svg { width: 24px; height: 24px; }
.benefit h3 { font-size: 17px; margin-bottom: 8px; }
.benefit p { color: #6B7280; font-size: 14px; }

.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  max-width: 760px;
  margin: 0 auto;
}

.cat-item {
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  padding: 20px 12px;
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.cat-item:hover { border-color: var(--brand); box-shadow: 0 2px 8px rgba(46, 125, 50, 0.15); transform: translateY(-1px); }
.cat-item .icon { width: 44px; height: 44px; border-radius: 50%; background: #E8F5E9; display: flex; align-items: center; justify-content: center; margin: 0 auto 8px; }
.cat-item .icon svg { width: 22px; height: 22px; }
.cat-item .name { font-size: 13px; font-weight: 700; }

.privacy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.privacy-item { display: flex; gap: 12px; align-items: flex-start; }
.privacy-item .pi-icon { width: 40px; height: 40px; background: #E8F5E9; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.privacy-item .pi-icon svg { width: 20px; height: 20px; }
.privacy-item h4 { font-size: 15px; margin-bottom: 4px; }
.privacy-item p { color: #6B7280; font-size: 13px; }

.cta-section { background: var(--brand-dark); color: #fff; padding: 64px 24px; text-align: center; }
body[data-landing-page="owner"] .cta-section { background: var(--brand); }
.cta-section h2 { font-size: clamp(22px, 4vw, 32px); margin-bottom: 12px; }
.cta-section p { opacity: 0.9; max-width: 500px; margin: 0 auto 24px; }
.cta-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; background: #fff; color: var(--brand); padding: 13px 32px; border-radius: 8px; font-size: 16px; font-weight: 800; transition: transform 0.2s; }
body[data-landing-page="contractor"] .cta-btn { background: var(--gold); color: #fff; }
.cta-btn:hover { transform: translateY(-2px); }

.contractor-banner, .owner-banner { background: var(--cream); padding: 40px 24px; text-align: center; }
.contractor-banner h3, .owner-banner h3 { font-size: 20px; margin-bottom: 8px; }
.contractor-banner p, .owner-banner p { color: #6B7280; margin-bottom: 16px; }
.contractor-banner a, .owner-banner a { color: var(--brand); font-weight: 800; font-size: 15px; }
.contractor-banner a:hover, .owner-banner a:hover { text-decoration: underline; }

.footer { background: #1A1A1A; color: #9CA3AF; padding: 40px 24px; text-align: center; font-size: 13px; }
.footer a { color: #9CA3AF; }
.footer a:hover { color: #fff; }
.footer-links { margin-bottom: 16px; display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }

@media (max-width: 860px) {
  .hero { min-height: auto; padding: 56px 20px 44px; }
  .hero::before {
    background-position: center top;
  }
  body[data-landing-page="owner"] .hero::before {
    background-image:
      linear-gradient(180deg, rgba(13, 45, 16, 0.9) 0%, rgba(19, 72, 24, 0.82) 100%),
      url('hero-owner.jpg');
  }
  body[data-landing-page="contractor"] .hero::before {
    background-image:
      linear-gradient(180deg, rgba(13, 45, 16, 0.9) 0%, rgba(19, 72, 24, 0.82) 100%),
      url('hero-contractor.jpg');
  }
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-visual { min-height: 0; justify-content: flex-start; }
  .mockup-card { max-width: 420px; }
}

@media (max-width: 600px) {
  html, body { overflow-x: hidden; }
  .header { padding: 12px 16px; }
  .header-brand { font-size: 18px; }
  .header-sub { display: none; }
  .header-nav { gap: 8px; }
  .header,
  .hero,
  .hero-inner,
  .hero-copy,
  .hero-visual,
  .mockup-card {
    max-width: 100%;
    min-width: 0;
  }
  .btn-login, .btn-signup { padding: 8px 9px; font-size: 13px; white-space: nowrap; }
  .top-banner { font-size: 12px; }
  .hero h1 { font-size: 34px; overflow-wrap: anywhere; }
  .hero-cta, .cta-btn { width: 100%; }
  .mockup-row { min-width: 0; }
  .mockup-row span:first-child { min-width: 0; overflow-wrap: anywhere; }
  .trust-strip { display: none; }
  .steps { gap: 16px; }
  .benefits-grid { grid-template-columns: 1fr; }
}
