/* ═══════════════════════════════════════════════════════════
   Who'll Do — public site stylesheet
   Palette: slate-800 nav · indigo-600 accent · amber-500 badge
   ═══════════════════════════════════════════════════════════ */

/* ─── Tokens ─────────────────────────────────────────────── */
:root {
  --slate-900:  #0F172A;
  --slate-800:  #1E293B;
  --slate-700:  #334155;
  --slate-600:  #475569;
  --slate-500:  #64748B;
  --slate-200:  #E2E8F0;
  --slate-100:  #F1F5F9;
  --slate-50:   #F8FAFC;
  --indigo-700: #4338CA;
  --indigo-600: #4F46E5;
  --indigo-500: #6366F1;
  --indigo-100: #E0E7FF;
  --amber-500:  #F59E0B;
  --amber-100:  #FEF3C7;
  --green-500:  #10B981;
  --white:      #FFFFFF;
  --text:       #0F172A;
  --muted:      #64748B;
  --radius:     8px;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --shadow-md:  0 4px 12px rgba(0,0,0,.10);
}

/* ─── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
}

img { max-width: 100%; display: block; }
a   { color: var(--indigo-600); text-decoration: none; }

/* ─── Layout ─────────────────────────────────────────────── */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ─── Navigation ─────────────────────────────────────────── */
.site-nav {
  background: var(--slate-800);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 4px rgba(0,0,0,.25);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 64px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.nav-brand {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  white-space: nowrap;
  text-decoration: none;
}

.nav-brand span {
  color: var(--indigo-500);
}

.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.25rem;
  flex: 1;
}

.nav-links a {
  color: rgba(255,255,255,.75);
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color .15s, background .15s;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: rgba(255,255,255,.1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Ghost button */
.btn-ghost {
  color: rgba(255,255,255,.85);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.4rem 0.9rem;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 6px;
  text-decoration: none;
  transition: background .15s, color .15s;
}

.btn-ghost:hover {
  background: rgba(255,255,255,.1);
  color: var(--white);
}

/* Primary filled button */
.btn-primary,
.cta-button {
  display: inline-block;
  background: var(--indigo-600);
  color: var(--white) !important;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.45rem 1.1rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s, transform .1s;
}

.btn-primary:hover,
.cta-button:hover {
  background: var(--indigo-700);
}

/* Large CTA variant */
.btn-primary-lg {
  font-size: 1rem;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
}

/* Mobile burger — hidden on desktop */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}

.nav-burger span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}

/* Mobile menu */
.nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--slate-900);
  padding: 1rem 1.5rem 1.5rem;
  gap: 0.25rem;
}

.nav-mobile a {
  color: rgba(255,255,255,.8);
  padding: 0.5rem 0;
  font-size: 1rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
  text-decoration: none;
}

.nav-mobile a:last-child { border-bottom: none; }

.nav-mobile .btn-primary {
  margin-top: 0.5rem;
  text-align: center;
}

/* Show mobile menu when open */
.site-nav.nav-open .nav-mobile { display: flex; }

/* ─── Hero ───────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--slate-800) 0%, #1a1060 100%);
  color: var(--white);
  padding: 6rem 1.5rem 5rem;
  text-align: center;
}

.hero-inner {
  max-width: 680px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  background: rgba(99,102,241,.25);
  border: 1px solid rgba(99,102,241,.5);
  color: #a5b4fc;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.25rem 0.85rem;
  border-radius: 20px;
  margin-bottom: 1.25rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 1rem;
  letter-spacing: -0.03em;
}

.hero h1 span { color: #a5b4fc; }

.hero p {
  font-size: 1.15rem;
  color: rgba(255,255,255,.75);
  margin: 0 0 2rem;
  line-height: 1.7;
}

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

.hero-actions .btn-primary-lg {
  font-size: 1rem;
  padding: 0.8rem 1.75rem;
}

.hero-actions .btn-ghost-lg {
  font-size: 1rem;
  padding: 0.8rem 1.75rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.35);
  color: rgba(255,255,255,.9);
  text-decoration: none;
  font-weight: 600;
  transition: background .15s;
}

.hero-actions .btn-ghost-lg:hover {
  background: rgba(255,255,255,.1);
}

.hero-trust {
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,.45);
}

/* ─── How it works ───────────────────────────────────────── */
.how-it-works {
  padding: 5rem 1.5rem;
  background: var(--slate-50);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-label {
  display: inline-block;
  color: var(--indigo-600);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
  color: var(--slate-900);
}

.section-header p {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 2rem;
  left: calc(33.33% - 1px);
  right: calc(33.33% - 1px);
  height: 2px;
  background: var(--indigo-100);
  z-index: 0;
}

.step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 4rem;
  height: 4rem;
  background: var(--indigo-600);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0 auto 1.25rem;
  box-shadow: 0 0 0 6px var(--indigo-100);
}

.step h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--slate-900);
}

.step p {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

/* ─── Features ───────────────────────────────────────────── */
.features {
  padding: 5rem 1.5rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s;
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--slate-900);
}

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

/* ─── CTA Banner ─────────────────────────────────────────── */
.cta-banner {
  background: var(--indigo-600);
  color: var(--white);
  padding: 4rem 1.5rem;
  text-align: center;
}

.cta-banner h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.cta-banner p {
  opacity: 0.85;
  margin: 0 0 1.75rem;
  font-size: 1.05rem;
}

.cta-banner .btn-white {
  display: inline-block;
  background: var(--white);
  color: var(--indigo-600);
  font-weight: 700;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1rem;
  transition: opacity .15s;
}

.cta-banner .btn-white:hover { opacity: 0.92; }

/* ─── Pricing ────────────────────────────────────────────── */
.pricing {
  padding: 5rem 1.5rem;
}

.pricing .section-header { margin-bottom: 1.5rem; }

/* Annual/monthly toggle */
.billing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
  cursor: pointer;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.toggle-track {
  position: absolute;
  inset: 0;
  background: var(--slate-200);
  border-radius: 12px;
  transition: background .2s;
}

.toggle-switch input:checked + .toggle-track {
  background: var(--indigo-600);
}

.toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: var(--white);
  border-radius: 50%;
  transition: transform .2s;
  box-shadow: var(--shadow-sm);
}

.toggle-switch input:checked ~ .toggle-thumb {
  transform: translateX(20px);
}

.billing-toggle strong {
  color: var(--slate-800);
  font-weight: 600;
}

.annual-badge {
  background: var(--amber-100);
  color: #92400E;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 20px;
  white-space: nowrap;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
  align-items: start;
}

.pricing-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s;
}

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

.pricing-card.featured {
  border-color: var(--indigo-600);
  box-shadow: 0 8px 28px rgba(79,70,229,.18);
  transform: translateY(-8px);
}

.pricing-badge {
  position: absolute;
  top: -0.8rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--amber-500);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.75rem;
  border-radius: 20px;
  white-space: nowrap;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pricing-card h2 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
  color: var(--slate-700);
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 0.2rem;
}

.price-amount {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--slate-900);
  line-height: 1;
}

.price-currency {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--slate-500);
  align-self: flex-start;
  margin-top: 0.4rem;
}

.price-period {
  font-size: 0.9rem;
  color: var(--slate-500);
}

.price-annual {
  display: none;
}

body.annual .price-monthly { display: none; }
body.annual .price-annual  { display: flex; }

.pricing-desc {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0;
}

.pricing-card ul {
  flex: 1;
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pricing-card li {
  font-size: 0.875rem;
  color: var(--slate-700);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pricing-card li::before {
  content: '✓';
  color: var(--green-500);
  font-weight: 800;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.pricing-card .btn-primary,
.pricing-card .cta-button {
  width: 100%;
  text-align: center;
  padding: 0.65rem 1rem;
  font-size: 0.9rem;
  border-radius: 6px;
}

.pricing-card.featured .btn-primary,
.pricing-card.featured .cta-button {
  background: var(--indigo-600);
}

/* ─── Contact ────────────────────────────────────────────── */
.contact {
  padding: 5rem 1.5rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: 900px;
  margin: 0 auto;
  align-items: start;
}

.contact-info h2 {
  font-size: 1.75rem;
  font-weight: 800;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
  color: var(--slate-900);
}

.contact-info p {
  color: var(--muted);
  margin: 0 0 1.5rem;
  line-height: 1.7;
}

.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.contact-detail-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--slate-700);
}

.contact-icon {
  font-size: 1.2rem;
  width: 2rem;
  text-align: center;
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--slate-700);
}

.form-group input,
.form-group textarea {
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--slate-200);
  border-radius: 6px;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--slate-50);
  transition: border-color .15s, box-shadow .15s;
  font-family: inherit;
  width: 100%;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--indigo-500);
  box-shadow: 0 0 0 3px rgba(99,102,241,.15);
  background: var(--white);
}

.form-group textarea { resize: vertical; min-height: 120px; }

/* ─── Footer ─────────────────────────────────────────────── */
.site-footer {
  background: var(--slate-900);
  color: rgba(255,255,255,.65);
  padding: 3rem 1.5rem 2rem;
}

.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: start;
}

.footer-brand {
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  display: block;
  margin-bottom: 0.5rem;
}

.footer-tagline {
  font-size: 0.85rem;
  margin: 0 0 1.5rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  color: rgba(255,255,255,.55);
  font-size: 0.85rem;
  text-decoration: none;
  transition: color .15s;
}

.footer-links a:hover { color: var(--white); }

.footer-copy {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: 0.8rem;
  max-width: 1160px;
  margin: 2rem auto 0;
}

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links,
  .nav-actions { display: none; }

  .nav-burger { display: flex; }

  .steps { grid-template-columns: 1fr; }
  .steps::before { display: none; }

  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card.featured { transform: none; }

  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }

  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 900px) and (min-width: 541px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-card.featured { transform: none; }
}
