/* CrewBonusApp Marketing Site */

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

:root {
  --primary: #2d7d46;
  --primary-dark: #1e5c32;
  --primary-light: #d4edda;
  --text: #1a1a1a;
  --text-light: #555;
  --text-muted: #888;
  --bg: #ffffff;
  --bg-light: #f8f9fa;
  --bg-dark: #1a1a1a;
  --border: #e0e0e0;
  --accent: #4a90d9;
  --max-width: 1100px;
}

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

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── Header / Nav ────────────────────────────── */

.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.site-logo:hover { text-decoration: none; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-nav a {
  color: var(--text-light);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--text);
  text-decoration: none;
}

.btn {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background 0.15s;
}

.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover { background: var(--primary-dark); }

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover { background: var(--primary-light); }

.btn-white {
  background: #fff;
  color: var(--primary);
}
.btn-white:hover { background: #f0f0f0; }

.btn-outline-white {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.6);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
}

.btn-lg {
  padding: 0.75rem 2rem;
  font-size: 1rem;
}

/* Mobile hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text);
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    gap: 0.75rem;
  }
  .site-nav.open { display: flex; }
  .site-nav a { font-size: 1rem; }
}

/* ── Hero ─────────────────────────────────────── */

.hero {
  padding: 5rem 0 4rem;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-light) 0%, var(--bg) 100%);
}

.hero h1 {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
  color: var(--text);
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 2rem;
}

.hero-note {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-composite {
  margin-top: 3rem;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 1.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-desktop {
  max-width: 480px;
  width: 68%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.12);
}

.hero-mobile {
  max-width: 160px;
  width: 22%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.15);
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .hero { padding: 3rem 0 2rem; }
  .hero h1 { font-size: 1.8rem; }
  .hero p { font-size: 1rem; }
  .hero-composite { gap: 0.75rem; margin-top: 2rem; max-width: 400px; }
  .hero-desktop { max-width: 280px; }
  .hero-mobile { max-width: 100px; }
}

/* ── Sections ─────────────────────────────────── */

.section {
  padding: 5rem 0;
}

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

.section-dark {
  background: var(--bg-dark);
  color: #fff;
}

.section-dark .text-muted { color: #aaa; }

.section h2 {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.75rem;
}

.section .subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

@media (max-width: 768px) {
  .section { padding: 3.5rem 0; }
  .section h2 { font-size: 1.5rem; }
}

/* ── Workflow Strip ──────────────────────────── */

.workflow-strip {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 1rem;
  text-align: center;
  align-items: center;
}

.workflow-arrow {
  font-size: 2rem;
  color: var(--primary);
  font-weight: 700;
  opacity: 0.5;
}

.workflow-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  transition: box-shadow 0.2s;
}

.workflow-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.workflow-img {
  width: 100%;
  max-width: 160px;
  height: auto;
  border-radius: 10px;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.workflow-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.workflow-card p {
  font-size: 0.9rem;
  color: var(--text-light);
}

@media (max-width: 768px) {
  .workflow-strip {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .workflow-arrow {
    display: none;
  }
  .workflow-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
    padding: 1rem;
  }
  .workflow-img {
    max-width: 100px;
    margin-bottom: 0;
    flex-shrink: 0;
  }
}

/* ── Pain Section ────────────────────────────── */

.pain-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 800px;
  margin: 2rem auto 0;
}

.pain-item {
  padding: 1.25rem;
  border-left: 3px solid #d9534f;
  background: #fff;
  border-radius: 0 6px 6px 0;
}

.pain-item strong {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.95rem;
}

.pain-item p {
  color: var(--text-light);
  font-size: 0.9rem;
}

@media (max-width: 600px) {
  .pain-grid { grid-template-columns: 1fr; }
}

/* ── Feature Rows (Screenshot + Text) ────────── */

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
  margin-top: 1rem;
}

.feature-row.reverse .feature-img-wrap {
  order: 2;
}
.feature-row.reverse .feature-text {
  order: 1;
}

.feature-img-wrap {
  text-align: center;
}

.feature-img-card {
  display: inline-block;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

.feature-img {
  display: block;
  width: 100%;
  max-width: 460px;
  height: auto;
  border-radius: 8px;
}

/* When img is NOT inside a card, give it its own shadow */
.feature-img-wrap > .feature-img {
  box-shadow: 0 4px 24px rgba(0,0,0,0.1);
  border-radius: 10px;
  max-width: 460px;
}

.feature-text h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.feature-text p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .feature-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .feature-row.reverse .feature-img-wrap { order: 0; }
  .feature-row.reverse .feature-text { order: 0; }
  .feature-img,
  .feature-img-wrap > .feature-img { max-width: 100%; }
}

/* ── Bonus Example Card ──────────────────────── */

.bonus-example-card {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

.bonus-line {
  display: flex;
  justify-content: space-between;
  padding: 0.35rem 0;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border);
}

.bonus-line:last-child { border-bottom: none; }

.bonus-line span { color: var(--text-light); }

.bonus-line.highlight {
  color: var(--primary-dark);
  font-weight: 600;
}

.bonus-line.highlight span { color: var(--primary-dark); }

/* ── Payout Table ────────────────────────────── */

.payout-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin-top: 1rem;
}

.payout-table th {
  text-align: left;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.5rem 0.5rem;
  border-bottom: 2px solid var(--border);
}

.payout-table td {
  padding: 0.5rem 0.5rem;
  border-bottom: 1px solid var(--border);
}

.payout-table tbody tr:last-child td {
  border-bottom: none;
}

/* ── Highlight Stat ──────────────────────────── */

.highlight-stat {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.stat-label {
  display: block;
  font-size: 0.85rem;
  opacity: 0.85;
  margin-bottom: 0.25rem;
}

.stat-value {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.1;
}

.stat-value span {
  font-size: 1rem;
  font-weight: 400;
  opacity: 0.8;
}

.stat-detail {
  display: block;
  font-size: 0.85rem;
  opacity: 0.8;
  margin-top: 0.25rem;
}

/* ── Mobile Proof (paired phone screenshots) ── */

.mobile-proof {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.mobile-proof-img {
  max-width: 180px;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

@media (max-width: 600px) {
  .mobile-proof { gap: 0.75rem; }
  .mobile-proof-img { max-width: 45%; }
}

/* ── Section Dividers ────────────────────────── */

.section-divider {
  padding: 2.5rem 0;
  text-align: center;
  background: var(--primary-light);
  border-top: 3px solid var(--primary);
}

.section-divider h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.section-divider p {
  color: var(--text-light);
  font-size: 1rem;
  max-width: 500px;
  margin: 0 auto;
}

.section-divider-dark {
  background: var(--bg-dark);
  border-top-color: var(--primary);
}

.section-divider-dark h2 {
  color: #fff;
}

.section-divider-dark p {
  color: #aaa;
}

/* ── Two-Up Layout (side-by-side features) ──── */

.two-up {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.two-up-item {
  text-align: center;
}

.two-up-img-card {
  display: inline-block;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.75rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  margin-bottom: 1.25rem;
}

.two-up-img {
  display: block;
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 8px;
}

.two-up-item h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.two-up-item p {
  color: var(--text-light);
  font-size: 0.95rem;
  max-width: 400px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .two-up {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ── Feature Mobile Peek ─────────────────────── */

.feature-mobile-peek {
  margin-top: 1rem;
}

.feature-mobile-peek-img {
  max-width: 120px;
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--border);
  box-shadow: 0 3px 12px rgba(0,0,0,0.08);
}

/* ── Trades Grid ─────────────────────────────── */

.trades-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
  max-width: 800px;
  margin: 0 auto;
}

.trade-card {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
  text-align: center;
}

.trade-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.trade-card p {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* ── Cards Grid ───────────────────────────────── */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
}

.card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* ── Steps ────────────────────────────────────── */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  text-align: center;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.steps h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.steps p {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* ── Pricing ──────────────────────────────────── */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  max-width: 900px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
}

.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: 0 4px 20px rgba(45,125,70,0.15);
}

.pricing-card .badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.75rem;
  border-radius: 20px;
  text-transform: uppercase;
}

.pricing-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}

.pricing-card .workers {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.pricing-card .price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text);
}

.pricing-card .price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
}

.pricing-card .btn {
  margin-top: 1.25rem;
  width: 100%;
}

/* ── Who It's For ─────────────────────────────── */

.audience-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.audience-tag {
  background: var(--primary-light);
  color: var(--primary-dark);
  padding: 0.5rem 1.25rem;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.9rem;
}

/* ── CTA Banner ───────────────────────────────── */

.cta-banner {
  padding: 4rem 0;
  text-align: center;
  background: var(--primary);
  color: #fff;
}

.cta-banner h2 {
  color: #fff;
  margin-bottom: 0.75rem;
}

.cta-banner p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 1.5rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-note {
  margin-top: 1rem;
  font-size: 0.85rem;
  opacity: 0.7;
}

.cta-banner .btn-white { margin: 0 0.5rem; }

/* ── Footer ───────────────────────────────────── */

.site-footer {
  background: var(--bg-dark);
  color: #aaa;
  padding: 3rem 0;
  font-size: 0.85rem;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-grid a {
  color: #ccc;
  text-decoration: none;
}

.footer-grid a:hover { color: #fff; }

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-copy {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #333;
  text-align: center;
  color: #666;
}

/* ── How It Works page ────────────────────────── */

.role-section {
  margin-bottom: 2.5rem;
}

.role-section h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--primary);
}

.role-section ul {
  list-style: none;
  padding: 0;
}

.role-section li {
  padding: 0.4rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-light);
}

.role-section li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* ── Contact ──────────────────────────────────── */

.contact-card {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.contact-card p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.contact-email {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary);
}

/* ── Legal pages ──────────────────────────────── */

.legal-content {
  max-width: 700px;
  margin: 0 auto;
}

.legal-content h1 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.legal-content h2 {
  font-size: 1.3rem;
  text-align: left;
  margin: 2rem 0 0.75rem;
}

.legal-content p {
  color: var(--text-light);
  margin-bottom: 1rem;
}

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

.faq-list {
  max-width: 700px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
}

.faq-item h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.faq-item p {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* ── Social proof placeholder ─────────────────── */

.testimonial-placeholder {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  font-style: italic;
}
