/* ─── CERTKEEPER — STYLES ──────────────────────────────────────────────────── */
/* Audience: general contractors. Design language: trustworthy, professional,
   practical. NOT tech-startup dark. Clean white/light-gray base, strong navy
   anchors, safety-orange accents (construction adjacent), generous whitespace.
   Feels like a tool built by people who understand jobsite operations. */

/* ─── RESET & BASE ─────────────────────────────────────────────────────────── */

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

:root {
  /* Brand colors */
  --navy:        #1a2e4a;
  --navy-light:  #243d5e;
  --orange:      #e8621a;
  --orange-dark: #c9531a;
  --orange-light:#fdf0e8;

  /* Neutrals */
  --white:       #ffffff;
  --gray-50:     #f8f9fa;
  --gray-100:    #f1f3f5;
  --gray-200:    #e9ecef;
  --gray-400:    #adb5bd;
  --gray-600:    #6c757d;
  --gray-800:    #343a40;
  --gray-900:    #212529;

  /* Status */
  --green:       #2d7d46;
  --green-bg:    #eaf6ed;
  --red:         #c0392b;
  --red-bg:      #fdecea;

  /* Typography */
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Sizing */
  --radius:   8px;
  --radius-lg: 12px;
  --shadow:   0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 25px rgba(0,0,0,.1), 0 4px 10px rgba(0,0,0,.05);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--orange);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ─── LAYOUT ────────────────────────────────────────────────────────────────── */

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── NAV ───────────────────────────────────────────────────────────────────── */

.nav {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 2px solid var(--orange);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--white);
}

.logo-icon {
  font-size: 1.2rem;
}

.logo-text {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--white);
}

.nav-cta {
  background: var(--orange);
  color: var(--white);
  padding: 8px 18px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s;
}

.nav-cta:hover {
  background: var(--orange-dark);
  text-decoration: none;
}

/* ─── BUTTONS ───────────────────────────────────────────────────────────────── */

.btn-primary {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  padding: 14px 32px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}

.btn-primary:hover {
  background: var(--orange-dark);
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-full {
  width: 100%;
  text-align: center;
}

/* ─── HERO ──────────────────────────────────────────────────────────────────── */

.hero {
  background: var(--navy);
  color: var(--white);
  padding: 80px 0 72px;
  text-align: center;
}

.hero-eyebrow {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.hero-headline {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.8);
  max-width: 580px;
  margin: 0 auto 32px;
  line-height: 1.65;
}

.hero-note {
  margin-top: 14px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

/* ─── PAIN STRIP ────────────────────────────────────────────────────────────── */

.pain-strip {
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  padding: 48px 0;
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
}

.pain-item {
  text-align: center;
}

.pain-icon {
  display: block;
  font-size: 2rem;
  margin-bottom: 12px;
}

.pain-item p {
  font-size: 0.95rem;
  color: var(--gray-800);
  line-height: 1.55;
}

.pain-item strong {
  color: var(--navy);
}

/* ─── SECTIONS SHARED ───────────────────────────────────────────────────────── */

.section-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy);
  text-align: center;
  margin-bottom: 10px;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--gray-600);
  text-align: center;
  margin-bottom: 48px;
}

/* ─── HOW IT WORKS ──────────────────────────────────────────────────────────── */

.how {
  padding: 80px 0;
  background: var(--white);
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 680px;
  margin: 0 auto;
}

.step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.step-num {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--navy);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  margin-top: 2px;
}

.step-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.step-body p {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.6;
}

/* ─── QUOTES ────────────────────────────────────────────────────────────────── */

.quotes {
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  padding: 80px 0;
}

.quote-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.quote-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-left: 4px solid var(--orange);
  border-radius: var(--radius);
  padding: 24px 24px 20px;
  box-shadow: var(--shadow);
}

.quote-card p {
  font-size: 0.95rem;
  color: var(--gray-800);
  line-height: 1.65;
  font-style: italic;
  margin-bottom: 12px;
}

.quote-card cite {
  font-size: 0.8rem;
  color: var(--gray-400);
  font-style: normal;
  font-weight: 600;
}

/* ─── FEATURES ──────────────────────────────────────────────────────────────── */

.features {
  padding: 80px 0;
  background: var(--white);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.feature-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: box-shadow 0.15s;
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
}

.feature-icon {
  font-size: 1.75rem;
  margin-bottom: 14px;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.6;
}

/* ─── TRUST / FAQ ───────────────────────────────────────────────────────────── */

.faq {
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  padding: 80px 0;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.faq-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
}

.faq-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.faq-card p {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.6;
}

/* ─── PRICING ───────────────────────────────────────────────────────────────── */

.pricing {
  background: var(--navy);
  padding: 80px 0;
}

.pricing .section-title {
  color: var(--white);
}

.pricing .section-sub {
  color: rgba(255,255,255,0.65);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 48px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.pricing-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
}

.pricing-card--featured {
  background: var(--white);
  border-color: var(--white);
  transform: scale(1.02);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--orange);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 14px;
  border-radius: 100px;
  white-space: nowrap;
}

.pricing-tier {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-400);
  margin-bottom: 8px;
}

.pricing-card--featured .pricing-tier {
  color: var(--gray-600);
}

.pricing-price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: 4px;
}

.pricing-card--featured .pricing-price {
  color: var(--navy);
}

.pricing-price span {
  font-size: 1rem;
  font-weight: 500;
  opacity: 0.7;
}

.pricing-desc {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 24px;
}

.pricing-card--featured .pricing-desc {
  color: var(--gray-600);
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pricing-features li {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
  padding-left: 20px;
  position: relative;
}

.pricing-card--featured .pricing-features li {
  color: var(--gray-800);
}

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

.pricing-note {
  text-align: center;
  margin-top: 32px;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
}

/* ─── EARLY ACCESS FORM ─────────────────────────────────────────────────────── */

.early-access {
  background: var(--white);
  padding: 80px 0;
}

.form-wrap {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.form-wrap h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin-bottom: 12px;
}

.form-wrap > p {
  font-size: 0.95rem;
  color: var(--gray-600);
  margin-bottom: 32px;
  line-height: 1.65;
}

.signup-form {
  text-align: left;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.form-row {
  margin-bottom: 20px;
}

.form-row label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 6px;
}

.form-optional {
  font-weight: 400;
  color: var(--gray-400);
}

.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--gray-900);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 10px 14px;
  transition: border-color 0.15s, box-shadow 0.15s;
  resize: vertical;
}

.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(26,46,74,0.1);
}

.form-result {
  margin-top: 12px;
  font-size: 0.875rem;
  text-align: center;
  min-height: 1.4em;
  color: var(--green);
  font-weight: 600;
}

.form-result.error {
  color: var(--red);
}

/* ─── FOOTER ────────────────────────────────────────────────────────────────── */

.footer {
  background: var(--gray-900);
  padding: 40px 0;
  text-align: center;
}

.footer-logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}

.footer-tagline {
  font-size: 0.875rem;
  color: var(--gray-400);
  margin-bottom: 0;
}

/* ─── RESPONSIVE ────────────────────────────────────────────────────────────── */

@media (max-width: 640px) {
  .hero {
    padding: 56px 0 52px;
  }

  .hero-headline {
    font-size: 2rem;
  }

  .pricing-card--featured {
    transform: none;
  }

  .step {
    gap: 16px;
  }

  .signup-form {
    padding: 24px 20px;
  }
}
