/* ──────────────────────────────────────────────────────────────────
   Homekept — landing page styles.
   Mirrors the mobile app's indigo/violet system + Inter typography
   so the website feels like the same product.
   ────────────────────────────────────────────────────────────────── */

:root {
  --bg: #FAFAF9;
  --bg-alt: #F4F4F2;
  --surface: #FFFFFF;
  --border: #ECECEA;
  --text: #0F172A;
  --text-muted: #64748B;
  --primary: #4F46E5;
  --primary-dark: #3730A3;
  --accent: #7C3AED;
  --shadow-sm: 0 4px 14px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 12px 28px rgba(15, 23, 42, 0.10);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --max: 1120px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

img { display: block; max-width: 100%; }

/* ── Top bar ──────────────────────────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: rgba(250, 250, 249, 0.85);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 17px;
  color: var(--text);
}
.brand img { border-radius: 8px; }
.brand.small { font-size: 14px; }
.nav { display: flex; gap: 22px; }
.nav a { color: var(--text); font-weight: 600; font-size: 14px; }
.nav a:hover { color: var(--primary); }

@media (max-width: 640px) {
  .nav a { display: none; }
  .nav a:last-child {
    display: inline-flex;
    align-items: center;
    background: var(--primary);
    color: #FFFFFF;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
  }
}

/* ── Hero ─────────────────────────────────────────────────────── */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 72px 24px 64px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: center;
}

@media (max-width: 880px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 48px;
    gap: 40px;
  }
  .hero-art { order: -1; }
}

.eyebrow {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: #EEF2FF;
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 16px;
}

.hero h1 {
  font-size: clamp(38px, 6vw, 64px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  background: linear-gradient(135deg, #0F172A 30%, #4F46E5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  font-size: 18px;
  color: var(--text-muted);
  margin: 0 0 28px;
  max-width: 32em;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.08s ease, box-shadow 0.15s ease, background 0.15s ease;
  cursor: pointer;
}
.btn.primary {
  background: linear-gradient(135deg, #4F46E5, #7C3AED);
  color: #FFFFFF;
  box-shadow: var(--shadow-sm);
}
.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  color: #FFFFFF;
}
.btn.ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn.ghost:hover {
  background: var(--surface);
}
.btn.big { padding: 14px 28px; font-size: 16px; }

.hero-fineprint {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
}

.hero-art {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-art-card {
  width: min(340px, 80vw);
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #4F46E5, #7C3AED);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transform: rotate(-4deg);
  transition: transform 0.3s ease;
}
.hero-art-card:hover { transform: rotate(0deg) scale(1.02); }
.hero-art-card img {
  width: 60%;
  height: 60%;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.18));
}

/* ── Features ─────────────────────────────────────────────────── */
.features {
  max-width: var(--max);
  margin: 0 auto;
  padding: 64px 24px;
}
.features h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.01em;
  text-align: center;
  margin: 0 0 48px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.feature:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.feature h3 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 700;
}
.feature p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

/* ── How it works ─────────────────────────────────────────────── */
.how {
  max-width: 820px;
  margin: 0 auto;
  padding: 64px 24px;
}
.how h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.01em;
  text-align: center;
  margin: 0 0 40px;
}
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.steps li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 18px;
  align-items: start;
}
.step-num {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: linear-gradient(135deg, #4F46E5, #7C3AED);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  box-shadow: var(--shadow-sm);
}
.steps h3 {
  margin: 6px 0 4px;
  font-size: 18px;
  font-weight: 700;
}
.steps p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

/* ── Waitlist ─────────────────────────────────────────────────── */
.waitlist {
  max-width: var(--max);
  margin: 24px auto 80px;
  padding: 0 24px;
}
.waitlist-card {
  background: linear-gradient(135deg, #4F46E5, #7C3AED);
  border-radius: var(--radius-lg);
  padding: 56px 32px;
  text-align: center;
  color: #FFFFFF;
  box-shadow: var(--shadow-md);
}
.waitlist h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.01em;
}
.waitlist p {
  margin: 0 auto 28px;
  max-width: 30em;
  color: rgba(255, 255, 255, 0.85);
  font-size: 16px;
}
.waitlist .btn.primary {
  background: #FFFFFF;
  color: var(--primary-dark);
}
.waitlist .btn.primary:hover { color: var(--primary-dark); }
.waitlist .btn.primary.google {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #1a73e8;
  color: #FFFFFF;
}
.waitlist .btn.primary.google:hover {
  background: #1660c4;
  color: #FFFFFF;
}
.waitlist .btn.primary.google[disabled] { opacity: 0.6; cursor: progress; }
.fineprint {
  margin-top: 16px !important;
  font-size: 12px !important;
  color: rgba(255, 255, 255, 0.75) !important;
}
.waitlist .btn.ghost {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  color: #FFFFFF;
}
.waitlist .btn.ghost:hover { background: rgba(255, 255, 255, 0.25); }
.success-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.18);
  margin: 0 auto 20px;
}
#waitlist-success h3 {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 800;
  color: #FFFFFF;
}
#waitlist-success p {
  margin: 0 auto 24px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
  max-width: 28em;
}
#waitlist-success p strong { color: #FFFFFF; }
.error-message {
  margin-top: 14px !important;
  padding: 10px 14px;
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-radius: 10px;
  color: #FFFFFF !important;
  font-size: 13px !important;
}

/* ── Contractors section ─────────────────────────────────────────
   Intentionally darker + amber-accented so a homeowner scrolling
   past knows this isn't aimed at them, and a contractor knows
   instantly it's their section. */
.contractors {
  background: #0F172A;
  color: #E2E8F0;
  padding: 80px 24px;
}
.contractors-wrap {
  max-width: 980px;
  margin: 0 auto;
}
.eyebrow.amber {
  background: rgba(245, 158, 11, 0.15);
  color: #FBBF24;
}
.contractors h2 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  line-height: 1.05;
  color: #FFFFFF;
}
.lede.dark {
  color: #94A3B8;
  font-size: 17px;
  max-width: 38em;
  margin: 0 0 40px;
}
.value-grid {
  list-style: none;
  padding: 0;
  margin: 0 0 48px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.value-grid li {
  padding: 20px;
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-md);
  background: rgba(245, 158, 11, 0.05);
  color: #CBD5E1;
  font-size: 14px;
  line-height: 1.5;
}
.value-grid strong {
  display: block;
  color: #FBBF24;
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 6px;
}
.value-grid em {
  color: #FBBF24;
  font-style: normal;
  font-weight: 700;
}

.contractor-card {
  background: #1E293B;
  border: 1px solid #334155;
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}
.contractor-card h3 {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 800;
  color: #FFFFFF;
}
.contractor-card p.muted {
  margin: 0 0 28px;
  color: #94A3B8;
  font-size: 14px;
}
.contractor-fineprint {
  margin-top: 12px !important;
  font-size: 12px;
  color: #64748B;
  text-align: center;
}
.btn.primary.amber {
  background: #F59E0B;
  color: #0F172A;
  width: 100%;
}
.btn.primary.amber:hover {
  background: #FBBF24;
  color: #0F172A;
}
.btn.primary.amber[disabled] { opacity: 0.6; cursor: progress; }

/* ── Contact section ─────────────────────────────────────────────
   Lighter sibling of the contractor card — same form primitives,
   different audience. */
.contact {
  background: var(--bg-alt);
  padding: 80px 24px;
}
.contact-wrap {
  max-width: 680px;
  margin: 0 auto;
}
.contact h2 {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
  text-align: center;
}
.contact p.muted {
  text-align: center;
  color: var(--text-muted);
  margin: 0 0 32px;
}
.contact form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

/* ── Shared form primitives ──────────────────────────────────────
   Used by both contractor and contact forms. The dark-themed
   contractor card overrides input colors via a parent scope. */
form .form-row {
  margin-bottom: 18px;
}
form .form-row.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 640px) {
  form .form-row.two { grid-template-columns: 1fr; }
}
form label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
form label > span,
form .form-label {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
}
form .opt {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 12px;
}
form input[type="text"],
form input[type="email"],
form input[type="tel"],
form textarea {
  width: 100%;
  font-family: inherit;
  font-size: 14px;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #FFFFFF;
  color: var(--text);
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
form input:focus,
form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.18);
}
form textarea {
  resize: vertical;
  min-height: 96px;
}
form label.single {
  display: block;
  margin-bottom: 18px;
}

/* Contractor (dark) input scoping. The label > span selector matches
   the spec we set in the light-mode block above, so it needs to be
   restated here at the same depth or the dark card inherits dark text
   on a dark background — which is what the user complained about. */
.contractor-card form input,
.contractor-card form textarea {
  background: #1E2A40;
  border-color: #475569;
  color: #FFFFFF;
}
.contractor-card form input::placeholder,
.contractor-card form textarea::placeholder {
  color: #94A3B8;
}
.contractor-card form label,
.contractor-card form label > span,
.contractor-card form .form-label {
  color: #F1F5F9;
}
.contractor-card form .opt { color: #94A3B8; }
.contractor-card form input:focus,
.contractor-card form textarea:focus {
  border-color: #F59E0B;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.25);
}

/* Honeypot — visually hidden but stays in the form for bots. */
.hp {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Chips for the category multi-select. */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chips .chip {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid #334155;
  background: #0F172A;
  color: #CBD5E1;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}
.chips .chip:hover { border-color: #475569; }
.chips .chip.chip-on {
  background: #F59E0B;
  border-color: #F59E0B;
  color: #0F172A;
}

/* Inline success block (shared by both forms). */
.form-success {
  margin-top: 14px;
  padding: 14px 18px;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #065F46;
  font-size: 14px;
  line-height: 1.5;
}
.form-success strong { color: #047857; display: block; margin-bottom: 2px; }
.contractor-card .form-success {
  background: rgba(16, 185, 129, 0.15);
  color: #A7F3D0;
}
.contractor-card .form-success strong { color: #6EE7B7; }

/* ── Footer ───────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 24px;
  text-align: center;
}
.footer-row {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
footer nav { display: flex; gap: 10px; color: var(--text-muted); font-size: 13px; }
footer nav a { color: var(--text-muted); font-weight: 600; }
footer nav a:hover { color: var(--primary); }
.copyright {
  margin: 12px auto 0;
  color: var(--text-muted);
  font-size: 12px;
}
