/* ProviderChannel — FoundryCRO aesthetic
   Editorial serif headings, minimal palette, mint accent, stock imagery */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Inter:wght@400;500;600&display=swap');

:root {
  --black: #0a0a0a;
  --gray-900: #1a1a1a;
  --gray-800: #2a2a2a;
  --gray-700: #3a3a3a;
  --gray-600: #555555;
  --gray-500: #777777;
  --gray-400: #999999;
  --gray-300: #c4c4c4;
  --gray-200: #e0e0e0;
  --gray-100: #f0f0f0;
  --gray-50: #f8f8f8;
  --white: #ffffff;

  --mint: #6ee7b7;
  --mint-light: #a7f3d0;
  --mint-dark: #34d399;
  --mint-subtle: #ecfdf5;

  --dark-bg: #0f1f1a;

  --font-display: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --max-width: 1140px;
  --transition: 0.2s ease;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

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

/* ---- TYPOGRAPHY ---- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  color: var(--black);
}

h1 { font-size: clamp(2.6rem, 5.5vw, 3.8rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.01em; }

h3 {
  font-size: clamp(1.2rem, 2vw, 1.4rem);
  font-family: var(--font-body);
  font-weight: 600;
  line-height: 1.4;
}

h4 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
}

p { color: var(--gray-600); line-height: 1.7; font-size: 1.05rem; }
p + p { margin-top: 1.2em; }

.accent {
  position: relative;
  font-style: italic;
}

.accent::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 3px;
  background: var(--mint);
  border-radius: 2px;
}

.label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gray-500);
  margin-bottom: 20px;
}

.label--mint { color: var(--mint-dark); }

/* ---- NAV ---- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--gray-100);
}

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

.nav-logo {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--black);
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.01em;
}

.nav-logo svg { width: 22px; height: 22px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gray-500);
  transition: color var(--transition);
}

.nav-links a:hover { color: var(--black); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  background: var(--black);
  color: var(--white) !important;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  transition: all var(--transition);
}

.nav-cta:hover { background: var(--gray-800); transform: translateY(-1px); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--black);
  margin: 5px 0;
  transition: var(--transition);
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary { background: var(--black); color: var(--white); }
.btn-primary:hover { background: var(--gray-800); transform: translateY(-1px); box-shadow: 0 4px 20px rgba(0,0,0,0.15); }

.btn-secondary { background: transparent; color: var(--gray-700); border: 1.5px solid var(--gray-200); }
.btn-secondary:hover { border-color: var(--gray-400); color: var(--black); }

.btn-mint { background: var(--mint); color: var(--dark-bg); }
.btn-mint:hover { background: var(--mint-dark); transform: translateY(-1px); }

.btn-large { padding: 16px 36px; font-size: 0.95rem; }

/* ---- HERO ---- */
.hero {
  padding: 140px 24px 100px;
  position: relative;
}

.hero-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-text h1 { margin-bottom: 24px; }

.hero-sub {
  font-size: 1.05rem;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.trust-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--gray-400);
}

.trust-bar span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.trust-bar span::before {
  content: '';
  width: 5px;
  height: 5px;
  background: var(--mint);
  border-radius: 50%;
  flex-shrink: 0;
}

/* Hero visual — browser mockup */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: flex-end;
}

.browser-mockup {
  width: 100%;
  max-width: 520px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.12), 0 2px 4px rgba(0,0,0,0.04);
  border: 1px solid var(--gray-200);
  background: var(--white);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-100);
}

.browser-dots {
  display: flex;
  gap: 6px;
}

.browser-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.browser-dots span:nth-child(1) { background: #ff5f57; }
.browser-dots span:nth-child(2) { background: #ffbd2e; }
.browser-dots span:nth-child(3) { background: #28c840; }

.browser-url {
  flex: 1;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 0.72rem;
  color: var(--gray-500);
  font-family: var(--font-body);
}

.browser-body {
  padding: 16px;
}

/* Mock nav inside browser */
.mock-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--gray-100);
}

.mock-logo {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--black);
  margin-right: auto;
}

.mock-nav-link {
  font-size: 0.62rem;
  color: var(--gray-400);
  font-weight: 500;
}

.mock-nav-btn {
  font-size: 0.58rem;
  font-weight: 600;
  background: var(--mint);
  color: var(--dark-bg);
  padding: 4px 10px;
  border-radius: 4px;
}

/* Mock content inside browser */
.mock-content {
  margin-bottom: 20px;
}

.mock-label-tag {
  display: block;
  width: 60px;
  height: 6px;
  background: var(--gray-200);
  border-radius: 3px;
  margin-bottom: 10px;
}

.mock-heading {
  width: 100%;
  height: 10px;
  background: var(--gray-900);
  border-radius: 3px;
  margin-bottom: 6px;
}

.mock-heading--short { width: 65%; }

.mock-body-line {
  width: 100%;
  height: 5px;
  background: var(--gray-200);
  border-radius: 2px;
  margin-top: 12px;
}

.mock-body-line--short { width: 80%; margin-top: 5px; }

.mock-cta-row {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.mock-btn-primary {
  display: block;
  width: 72px;
  height: 22px;
  background: var(--black);
  border-radius: 4px;
}

.mock-btn-outline {
  display: block;
  width: 60px;
  height: 22px;
  border: 1.5px solid var(--gray-200);
  border-radius: 4px;
}

/* Mock feature cards */
.mock-features-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.mock-feature-card {
  height: 36px;
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: 6px;
}

/* ---- SECTIONS ---- */
.section { padding: 120px 24px; }
.section--sm { padding: 80px 24px; }

.section-header { max-width: 640px; margin-bottom: 64px; }
.section-header--center { text-align: center; margin-left: auto; margin-right: auto; }
.section-header p { margin-top: 20px; }

.section-divider { width: 100%; height: 1px; background: var(--gray-100); }

/* ---- CONTENT WITH IMAGE (text + photo side by side) ---- */
.content-with-image {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.content-with-image--reverse { direction: rtl; }
.content-with-image--reverse > * { direction: ltr; }

.content-text p { font-size: 1.05rem; line-height: 1.8; }

.section-img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  aspect-ratio: 4/3;
  box-shadow: 0 16px 48px rgba(0,0,0,0.08);
}

.section-img--rounded { border-radius: 12px; }

/* ---- HOW IT WORKS ---- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.step { padding: 0; }

.step-number {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--gray-200);
  line-height: 1;
  margin-bottom: 20px;
}

.step h3 { margin-bottom: 12px; color: var(--black); }
.step p { font-size: 0.95rem; color: var(--gray-500); }

/* ---- FEATURES GRID ---- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 56px 80px;
  max-width: 960px;
  margin: 0 auto;
}

.feature-group h3 { margin-bottom: 16px; color: var(--black); }

.feature-list { list-style: none; }

.feature-list li {
  padding: 7px 0 7px 20px;
  position: relative;
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.6;
}

.feature-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 14px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--mint);
}

/* ---- DARK SECTION ---- */
.section-dark {
  background: var(--dark-bg);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.section-dark::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(110,231,183,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.section-dark h2 { color: var(--white); }
.section-dark p { color: rgba(255,255,255,0.6); }
.section-dark .label { color: var(--mint); }

.dark-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.dark-image img {
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.3);
}

/* ---- FOUNDRYCRO ---- */
.foundry-content { max-width: 640px; }

.foundry-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  padding: 8px 16px;
  border: 1px solid var(--gray-200);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--gray-500);
  transition: all var(--transition);
}

.foundry-badge:hover { border-color: var(--gray-400); color: var(--black); }

/* ---- STATS ROW ---- */
.stats-row {
  display: flex;
  gap: 64px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 56px;
}

.stat { text-align: center; }

.stat-value {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--mint);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

/* ---- PRICING ---- */
.setup-banner {
  text-align: center;
  padding: 28px 32px;
  margin-bottom: 48px;
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: 12px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.setup-banner .price { font-family: var(--font-display); font-size: 2rem; color: var(--black); }
.setup-banner p { font-size: 0.9rem; margin-top: 6px; color: var(--gray-500); }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 960px;
  margin: 0 auto 20px;
}

.pricing-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 12px;
  padding: 36px 28px;
  position: relative;
  transition: all var(--transition);
}

.pricing-card:hover { border-color: var(--gray-200); box-shadow: 0 12px 40px rgba(0,0,0,0.06); }

.pricing-card.featured { border-color: var(--black); }

.pricing-card.featured::before {
  content: 'Most popular';
  position: absolute;
  top: -11px; left: 50%;
  transform: translateX(-50%);
  background: var(--black);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

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

.pricing-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.3rem;
  margin-bottom: 16px;
  color: var(--black);
}

.pricing-amount { margin-bottom: 6px; }
.pricing-amount .dollar { font-family: var(--font-display); font-size: 2.4rem; color: var(--black); }
.pricing-amount .period { font-size: 0.85rem; color: var(--gray-400); }

.pricing-desc {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-bottom: 28px;
  min-height: 40px;
  line-height: 1.5;
}

.pricing-features { list-style: none; margin-bottom: 28px; }

.pricing-features li {
  padding: 6px 0 6px 24px;
  position: relative;
  font-size: 0.85rem;
  color: var(--gray-600);
}

.pricing-features li::before {
  content: '✓';
  position: absolute;
  left: 2px;
  color: var(--mint-dark);
  font-weight: 700;
  font-size: 0.8rem;
}

.pricing-features li.disabled { color: var(--gray-300); }
.pricing-features li.disabled::before { content: '—'; color: var(--gray-300); }

.pricing-card .btn { width: 100%; }

.pricing-note {
  text-align: center;
  font-size: 0.82rem;
  color: var(--gray-400);
  margin-top: 20px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ---- BILLING ---- */
.billing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 960px;
  margin: 0 auto;
}

.billing-item h4 { margin-bottom: 8px; color: var(--black); }
.billing-item p { font-size: 0.9rem; color: var(--gray-500); line-height: 1.6; }

/* ---- PROOF ---- */
.proof-content { max-width: 640px; }
.proof-content p { font-size: 1.05rem; line-height: 1.8; }

/* ---- FAQ ---- */
.faq-list { max-width: 680px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--gray-100); }

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 24px 40px 24px 0;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--black);
  text-align: left;
  cursor: pointer;
  position: relative;
  transition: color var(--transition);
}

.faq-question:hover { color: var(--gray-600); }

.faq-question::after {
  content: '+';
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--gray-300);
  transition: var(--transition);
}

.faq-item.open .faq-question::after { content: '−'; color: var(--black); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item.open .faq-answer { max-height: 500px; padding-bottom: 24px; }
.faq-answer p { font-size: 0.95rem; line-height: 1.7; color: var(--gray-600); }

/* ---- FINAL CTA ---- */
.final-cta {
  text-align: center;
  padding: 100px 24px;
}

.final-cta h2 { margin-bottom: 20px; }

.final-cta p {
  max-width: 460px;
  margin: 0 auto 36px;
  font-size: 1.05rem;
  color: var(--gray-500);
}

/* Final CTA with background image */
.final-cta--image {
  position: relative;
  background: url('https://images.unsplash.com/photo-1576091160550-2173dba999ef?w=1200&q=80&auto=format') center/cover no-repeat;
  padding: 0;
}

.final-cta-overlay {
  padding: 100px 24px;
  background: rgba(15, 31, 26, 0.85);
  backdrop-filter: blur(2px);
}

.final-cta--image h2 { color: var(--white); }
.final-cta--image p { color: rgba(255,255,255,0.6); }

/* ---- FOOTER ---- */
.footer {
  padding: 32px 24px;
  border-top: 1px solid var(--gray-100);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer p { font-size: 0.78rem; color: var(--gray-400); }

.footer-links { display: flex; gap: 24px; list-style: none; }
.footer-links a { font-size: 0.78rem; color: var(--gray-400); transition: color var(--transition); }
.footer-links a:hover { color: var(--black); }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { justify-content: center; }
  .browser-mockup { max-width: 440px; }

  .content-with-image,
  .content-with-image--reverse {
    grid-template-columns: 1fr;
    gap: 40px;
    direction: ltr;
  }

  .dark-grid { grid-template-columns: 1fr; gap: 40px; }

  .features-grid { grid-template-columns: 1fr; gap: 40px; }
  .billing-grid { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 768px) {
  .section { padding: 80px 20px; }

  .nav-links { display: none; }
  .nav-toggle { display: block; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 60px; left: 0; right: 0;
    background: var(--white);
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-100);
    gap: 16px;
    box-shadow: 0 12px 24px rgba(0,0,0,0.06);
  }

  .hero { padding: 100px 20px 60px; }
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 380px; }
  .stats-row { gap: 40px; }
  .footer-inner { flex-direction: column; gap: 12px; }
}

@media (max-width: 480px) {
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { width: 100%; }
  .trust-bar { flex-direction: column; gap: 8px; }
}
