
/*
  credi.build — Marketing Homepage — style.css v1.0
  Same design system as the worker profile.
  Mobile-first. Warm dark. Orange accent. Inter font.

  COLOUR DOCTRINE (locked — matches profile):
  - Background: warm near-black #0f0e0d
  - Brand accent: orange #e8703a
  - CTA / positive action: green #22c55e
  - Buttons: pill (999px). Containers: 2px radius.

  SECTIONS:
  1.  Reset + Variables
  2.  Base
  3.  Nav
  4.  Hero
  5.  Sections (shared)
  6.  Problem
  7.  Solution
  8.  Features
  9.  Pricing
  10. How it works
  11. Footer CTA
  12. Footer
  13. Responsive
*/

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


/* ================================================================
   1. RESET + VARIABLES
================================================================ */

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
img  { max-width: 100%; display: block; }

:root {
  /* Backgrounds — warm near-black */
  --bg:    #0f0e0d;
  --bg-2:  #1a1917;
  --bg-3:  #242220;
  --bg-4:  #2a2826;
  --bg-5:  #333130;

  /* Brand */
  --orange:       #e8703a;
  --orange-faint: rgba(232, 112, 58, 0.12);

  /* CTA — green for positive action */
  --green:        #22c55e;
  --green-subtle: rgba(34, 197, 94, 0.12);

  /* Text */
  --text:       #f0ece8;   /* Primary — warm near-white */
  --text-muted: #c4c9c5;   /* Body copy — bumped up for contrast (was #9ca3a0) */
  --text-faint: #6b7280;   /* Timestamps, small print (was #4b5563) */

  /* Borders */
  --border:     #2a2826;
  --border-mid: #3a3734;

  /* Type */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Layout */
  --nav-h: 60px;
  --max-w: 720px;   /* Wider than profile — marketing page */

  /* Radius */
  --radius:     2px;
  --radius-btn: 999px;

  /* Spacing (8pt grid) */
  --sp-1: 8px;
  --sp-2: 16px;
  --sp-3: 24px;
  --sp-4: 32px;
  --sp-5: 40px;
  --sp-6: 48px;
  --sp-8: 64px;
  --sp-10: 80px;
}


/* ================================================================
   2. BASE
================================================================ */

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}


/* ================================================================
   3. NAV
================================================================ */

.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(15, 14, 13, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-mid);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--sp-2);
}

/* credi = white, .build = green — locked doctrine */
.nav-brand {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.03em;
}
.nav-brand span { color: var(--green); }

/* Nav CTA — small pill, green */
.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  background: var(--green);
  color: #ffffff;
  border-radius: var(--radius-btn);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 150ms ease;
}
.nav-cta:active { opacity: 0.85; }


/* ================================================================
   4. HERO
================================================================ */

.hero {
  padding-top: var(--nav-h);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--sp-10) var(--sp-2) var(--sp-8);
  text-align: center;
}

/* "Free for a limited time" badge */
.hero-badge {
  display: inline-block;
  padding: 5px 14px;
  background: var(--orange-faint);
  border: 1px solid rgba(232, 112, 58, 0.35);
  border-radius: var(--radius-btn);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: var(--sp-3);
}

.hero-headline {
  font-size: clamp(2rem, 6vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: var(--sp-3);
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: var(--sp-4);
}

/* Primary CTA button — green, pill */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  background: var(--green);
  color: #ffffff;
  border-radius: var(--radius-btn);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity 150ms ease;
  min-height: 52px;
}
.btn-primary:active { opacity: 0.85; }

.btn-large {
  font-size: 1.1rem;
  padding: 18px 40px;
}

.hero-small {
  margin-top: var(--sp-2);
  font-size: 0.8rem;
  color: var(--text-muted);
}


/* ================================================================
   5. DEMO — phone frame showcase
================================================================ */

.section-demo {
  padding: var(--sp-10) 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
  text-align: center;
}

.demo-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--sp-2);
}

.demo-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: var(--sp-2);
}

.demo-headline {
  font-size: clamp(1.4rem, 3.5vw, 1.9rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: var(--sp-6);
  line-height: 1.2;
}

/* Phone shell */
.phone-wrap {
  display: inline-block;
  position: relative;
  margin-bottom: var(--sp-4);
}

.phone-shell {
  width: 272px;
  height: 556px;
  border-radius: 44px;
  border: 8px solid #1c1c1e;
  background: #000;
  overflow: hidden;
  position: relative;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.06),
    0 40px 100px rgba(0,0,0,0.7),
    0 8px 20px rgba(0,0,0,0.4);
}

/* Dynamic island notch */
.phone-shell::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 28px;
  background: #000;
  border-radius: 20px;
  z-index: 10;
}

/* Side buttons */
.phone-shell::after {
  content: '';
  position: absolute;
  right: -10px;
  top: 100px;
  width: 3px;
  height: 60px;
  background: #2a2a2a;
  border-radius: 2px;
  box-shadow: 0 80px 0 #2a2a2a;
}

.phone-iframe {
  width: 390px;
  height: 844px;
  border: none;
  transform: scale(0.6974);
  transform-origin: top left;
  pointer-events: none; /* preview only — interaction via the link below */
}

/* "See full profile" link */
.demo-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--orange);
  text-decoration: none;
  border-bottom: 1px solid rgba(232, 112, 58, 0.3);
  padding-bottom: 2px;
  transition: border-color 150ms ease;
}
.demo-link:hover {
  border-bottom-color: var(--orange);
}
.demo-link svg {
  transition: transform 150ms ease;
}
.demo-link:hover svg {
  transform: translateX(3px);
}

/* ================================================================
   6. SECTIONS — shared layout
================================================================ */

.section {
  padding: var(--sp-10) 0;
  border-bottom: 1px solid var(--border);
}

.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--sp-2);
}

/* Small uppercase label above headline */
.section-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: var(--sp-1);
}

/* Section headline */
.section-headline {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: var(--sp-4);
}

/* Body copy */
.section-body {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.section-body strong { color: var(--text); }


/* ================================================================
   6. PROBLEM — the agency problem
================================================================ */

.section-problem { background: var(--bg-2); }

/* The "might" stanza */
.might-block {
  margin-bottom: var(--sp-4);
  padding: var(--sp-3) var(--sp-3);
  border-left: 3px solid var(--border-mid);
}

.might-block p {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 2;
}

/* "Might." — the gut-punch word */
.might-word {
  color: var(--orange) !important;
  font-weight: 800 !important;
  font-size: 1.3rem !important;
  margin-top: var(--sp-1);
}


/* ================================================================
   7. SOLUTION — construction workers online
================================================================ */

.section-solution { background: var(--bg); }

/* Trade names — stacked, bold */
.trades-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  margin-bottom: var(--sp-4);
  padding-left: var(--sp-2);
  border-left: 3px solid var(--orange);
}

.trade-item {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

/* Pull quote */
.section-pull {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-top: var(--sp-4);
  padding: var(--sp-3);
  background: var(--orange-faint);
  border: 1px solid rgba(232, 112, 58, 0.25);
  border-radius: var(--radius);
}


/* ================================================================
   7b. AUDIENCES — who it's for (workers / agencies / employers)
================================================================ */

.section-audiences { background: var(--bg); }

.audience-grid {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  margin-bottom: var(--sp-4);
}

.audience-card {
  padding: var(--sp-3);
  background: var(--bg-2);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius);
  border-top: 3px solid var(--orange);
}

.audience-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--orange-faint);
  border-radius: var(--radius);
  color: var(--orange);
  margin-bottom: var(--sp-2);
}

.audience-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-1);
}

.audience-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}


/* ================================================================
   8. FEATURES — what you get
================================================================ */

.section-features { background: var(--bg-2); }

.feature-grid {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  margin-bottom: var(--sp-4);
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
  padding: var(--sp-2);
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.feature-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--orange-faint);
  border-radius: var(--radius);
  color: var(--orange);
}

.feature-text { flex: 1; }

.feature-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}

.feature-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.features-sub {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.9;
}


/* ================================================================
   9. PRICING
================================================================ */

.section-pricing { background: var(--bg); }

.pricing-stack {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-mid);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: var(--sp-3);
}

.pricing-row {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-3);
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
}

.pricing-row:last-child { border-bottom: none; }

/* Featured row — the free tier, slightly elevated */
.pricing-row-featured {
  background: var(--bg-3);
  border-left: 3px solid var(--green);
}

/* Coming soon row — muted */
.pricing-row-soon {
  background: var(--bg);
  opacity: 0.6;
}

.pricing-plan {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  min-width: 100px;
  flex-shrink: 0;
}

.pricing-desc {
  flex: 1;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.pricing-price {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
  flex-shrink: 0;
  text-align: right;
}

.pricing-price span {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
}

.pricing-note {
  font-size: 0.8rem;
  color: var(--text-faint);
  margin-bottom: var(--sp-2);
}

.pricing-urgency {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--orange);
}


/* ================================================================
   10. HOW IT WORKS
================================================================ */

.section-how { background: var(--bg-2); }

.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-3) 0;
}

/* Orange numbered circle */
.step-number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--orange);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-text { flex: 1; padding-top: 8px; }

.step-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.step-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Vertical connector line between steps */
.step-connector {
  width: 2px;
  height: 24px;
  background: var(--border-mid);
  margin-left: 19px;   /* Aligns with centre of step-number circle */
}


/* ================================================================
   11. FOOTER CTA
================================================================ */

.section-footer-cta {
  background: var(--bg-3);
  text-align: center;
  border-bottom: none;
}

.footer-cta-headline {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: var(--sp-3);
}

.footer-cta-sub {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: var(--sp-5);
}

.footer-cta-small {
  margin-top: var(--sp-2);
  font-size: 0.8rem;
  color: var(--text-faint);
}


/* ================================================================
   12. FOOTER
================================================================ */

.site-footer {
  padding: var(--sp-5) 0 var(--sp-4);
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--sp-2);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.footer-wordmark {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}
.footer-wordmark span { color: var(--green); }

.footer-strapline {
  font-size: 0.8rem;
  color: var(--text-faint);
  margin-top: 4px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.footer-links a {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 150ms ease;
}
.footer-links a:hover { color: var(--text); }

.footer-small {
  font-size: 0.75rem;
  color: var(--text-faint);
}
.footer-small a {
  color: var(--text-faint);
  text-decoration: underline;
  text-underline-offset: 3px;
}


/* ================================================================
   13. RESPONSIVE — desktop
================================================================ */

@media (min-width: 640px) {
  /* Audience grid — 3 columns on tablet and up */
  .audience-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-2);
  }

  /* Feature grid goes 2 columns on tablet and up */
  .feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-2);
  }

  /* Steps go horizontal on desktop */
  .steps {
    flex-direction: row;
    align-items: flex-start;
    gap: 0;
  }

  .step {
    flex: 1;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 var(--sp-2);
  }

  .step-text { padding-top: var(--sp-2); }

  /* Horizontal connector between steps */
  .step-connector {
    width: 40px;
    height: 2px;
    margin: 0;
    margin-top: 20px;   /* Aligns with vertical centre of circle */
    flex-shrink: 0;
  }
}

@media (min-width: 480px) {
  .section-inner { padding: 0 var(--sp-3); }
  .nav-inner     { padding: 0 var(--sp-3); }
  .hero-inner    { padding: var(--sp-10) var(--sp-3) var(--sp-8); }
}

